
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void find_address_in_section(bfd *abfd,asection *section,void *data)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  
  if ((found == 0) && ((section->flags & 1) != 0)) {
    uVar1 = (uint)section->vma;
    uVar2 = *(uint *)((int)&section->vma + 4);
    if ((uVar2 <= pc._4_4_ && (uint)((uint)pc < uVar1) <= pc._4_4_ - uVar2) &&
       (uVar3 = uVar2 + *(int *)((int)&section->size + 4) + (uint)CARRY4(uVar1,(uint)section->size),
       pc._4_4_ < uVar3 || pc._4_4_ - uVar3 < (uint)((uint)pc < uVar1 + (int)section->size))) {
      found = (*abfd->xvec->_bfd_find_nearest_line)
                        (abfd,syms,section,
                         CONCAT44((pc._4_4_ - uVar2) - (uint)((uint)pc < uVar1),(uint)pc - uVar1),
                         &filename,&functionname,&line,&discriminator);
    }
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

uint FUN_00012210(int param_1,int param_2)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  
  uVar3 = DAT_00018228;
  if ((DAT_00018228 == 0) && ((*(byte *)(param_2 + 0x14) & 1) != 0)) {
    uVar1 = *(uint *)(param_2 + 0x1c);
    uVar2 = *(uint *)(param_2 + 0x20);
    uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1);
    if ((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&
       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),
       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),
       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))) {
      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))
                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,
                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,
                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);
      DAT_00018228 = uVar3;
    }
  }
  return uVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00011ff0
ADD EBX,0x5de7
SUB ESP,0x1c
MOV ECX,dword ptr [ESP + 0x34]
MOV EAX,dword ptr [EBX + 0x228]
TEST EAX,EAX
JNZ 0x000122ca
TEST byte ptr [ECX + 0x14],0x1
JZ 0x000122ca
MOV EAX,dword ptr [EBX + 0x240]
MOV EDX,dword ptr [EBX + 0x244]
MOV EDI,dword ptr [ECX + 0x1c]
MOV EBP,dword ptr [ECX + 0x20]
MOV dword ptr [ESP],EAX
CMP EAX,EDI
MOV EAX,EDX
MOV dword ptr [ESP + 0x4],EDX
SBB EAX,EBP
JC 0x000122ca
MOV ESI,dword ptr [ESP + 0x4]
MOV EAX,EDI
MOV EDX,EBP
ADD EAX,dword ptr [ECX + 0x2c]
ADC EDX,dword ptr [ECX + 0x30]
CMP dword ptr [ESP],EAX
SBB ESI,EDX
JNC 0x000122ca
SUB ESP,0xc
LEA ESI,[EBX + 0x22c]
MOV EAX,dword ptr [ESP + 0x3c]
MOV EAX,dword ptr [EAX + 0x4]
MOV dword ptr [ESP + 0x18],EAX
PUSH ESI
LEA ESI,[EBX + 0x230]
PUSH ESI
LEA ESI,[EBX + 0x234]
PUSH ESI
LEA ESI,[EBX + 0x238]
PUSH ESI
MOV EAX,dword ptr [ESP + 0x1c]
MOV EDX,dword ptr [ESP + 0x20]
SUB EAX,EDI
SBB EDX,EBP
PUSH EDX
PUSH EAX
PUSH ECX
PUSH dword ptr [EBX + 0x248]
PUSH dword ptr [ESP + 0x5c]
MOV EAX,dword ptr [ESP + 0x3c]
CALL dword ptr [EAX + 0x128]
ADD ESP,0x30
MOV dword ptr [EBX + 0x228],EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint FUN_00012210(int param_1,int param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar3 = DAT_00018228;\n  if ((DAT_00018228 == 0) && ((*(byte *)(param_2 + 0x14) & 1) != 0)) {\n    uVar1 = *(uint *)(param_2 + 0x1c);\n    uVar2 = *(uint *)(param_2 + 0x20);\n    uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1);\n    if ((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))) {\n      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);\n      DAT_00018228 = uVar3;\n    }\n  }\n  return uVar3;\n}\n\n" comment (function_definition "uint FUN_00012210(int param_1,int param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar3 = DAT_00018228;\n  if ((DAT_00018228 == 0) && ((*(byte *)(param_2 + 0x14) & 1) != 0)) {\n    uVar1 = *(uint *)(param_2 + 0x1c);\n    uVar2 = *(uint *)(param_2 + 0x20);\n    uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1);\n    if ((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))) {\n      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);\n      DAT_00018228 = uVar3;\n    }\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00012210(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar3 = DAT_00018228;\n  if ((DAT_00018228 == 0) && ((*(byte *)(param_2 + 0x14) & 1) != 0)) {\n    uVar1 = *(uint *)(param_2 + 0x1c);\n    uVar2 = *(uint *)(param_2 + 0x20);\n    uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1);\n    if ((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))) {\n      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);\n      DAT_00018228 = uVar3;\n    }\n  }\n  return uVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "uVar3 = DAT_00018228;" (assignment_expression "uVar3 = DAT_00018228" identifier = identifier) ;) (if_statement "if ((DAT_00018228 == 0) && ((*(byte *)(param_2 + 0x14) & 1) != 0)) {\n    uVar1 = *(uint *)(param_2 + 0x1c);\n    uVar2 = *(uint *)(param_2 + 0x20);\n    uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1);\n    if ((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))) {\n      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);\n      DAT_00018228 = uVar3;\n    }\n  }" if (parenthesized_expression "((DAT_00018228 == 0) && ((*(byte *)(param_2 + 0x14) & 1) != 0))" ( (binary_expression "(DAT_00018228 == 0) && ((*(byte *)(param_2 + 0x14) & 1) != 0)" (parenthesized_expression "(DAT_00018228 == 0)" ( (binary_expression "DAT_00018228 == 0" identifier == number_literal) )) && (parenthesized_expression "((*(byte *)(param_2 + 0x14) & 1) != 0)" ( (binary_expression "(*(byte *)(param_2 + 0x14) & 1) != 0" (parenthesized_expression "(*(byte *)(param_2 + 0x14) & 1)" ( (binary_expression "*(byte *)(param_2 + 0x14) & 1" (pointer_expression "*(byte *)(param_2 + 0x14)" * (cast_expression "(byte *)(param_2 + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    uVar1 = *(uint *)(param_2 + 0x1c);\n    uVar2 = *(uint *)(param_2 + 0x20);\n    uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1);\n    if ((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))) {\n      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);\n      DAT_00018228 = uVar3;\n    }\n  }" { (expression_statement "uVar1 = *(uint *)(param_2 + 0x1c);" (assignment_expression "uVar1 = *(uint *)(param_2 + 0x1c)" identifier = (pointer_expression "*(uint *)(param_2 + 0x1c)" * (cast_expression "(uint *)(param_2 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(uint *)(param_2 + 0x20);" (assignment_expression "uVar2 = *(uint *)(param_2 + 0x20)" identifier = (pointer_expression "*(uint *)(param_2 + 0x20)" * (cast_expression "(uint *)(param_2 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1);" (assignment_expression "uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1)" identifier = (binary_expression "(DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1)" (parenthesized_expression "(DAT_00018244 - uVar2)" ( (binary_expression "DAT_00018244 - uVar2" identifier - identifier) )) - (call_expression "(uint)(DAT_00018240 < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_00018240 < uVar1)" ( (binary_expression "DAT_00018240 < uVar1" identifier < identifier) ))))) ;) (if_statement "if ((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))) {\n      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);\n      DAT_00018228 = uVar3;\n    }" if (parenthesized_expression "((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3)))" ( (binary_expression "(uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))" (parenthesized_expression "(uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2)" ( (binary_expression "uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2" (binary_expression "uVar2 <= DAT_00018244" identifier <= identifier) && (binary_expression "(uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2" (call_expression "(uint)(DAT_00018240 < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_00018240 < uVar1)" ( (binary_expression "DAT_00018240 < uVar1" identifier < identifier) ))) <= (binary_expression "DAT_00018244 - uVar2" identifier - identifier))) )) && (parenthesized_expression "(uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))" ( (comma_expression "uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3)" (assignment_expression "uVar3 = uVar1 + *(uint *)(param_2 + 0x2c)" identifier = (binary_expression "uVar1 + *(uint *)(param_2 + 0x2c)" identifier + (pointer_expression "*(uint *)(param_2 + 0x2c)" * (cast_expression "(uint *)(param_2 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))))) , (comma_expression "uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3)" (assignment_expression "uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c))" identifier = (binary_expression "uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c))" (binary_expression "uVar2 + *(int *)(param_2 + 0x30)" identifier + (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) + (cast_expression "(uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c))" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar1,*(uint *)(param_2 + 0x2c))" identifier (argument_list "(uVar1,*(uint *)(param_2 + 0x2c))" ( identifier , (pointer_expression "*(uint *)(param_2 + 0x2c)" * (cast_expression "(uint *)(param_2 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) )))))) , (binary_expression "DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3)" (binary_expression "DAT_00018244 < uVar4" identifier < identifier) || (binary_expression "DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3)" (binary_expression "DAT_00018244 - uVar4" identifier - identifier) < (call_expression "(uint)(DAT_00018240 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_00018240 < uVar3)" ( (binary_expression "DAT_00018240 < uVar3" identifier < identifier) ))))))) ))) )) (compound_statement "{\n      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);\n      DAT_00018228 = uVar3;\n    }" { (expression_statement "uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);" (assignment_expression "uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c)" identifier = (call_expression "(**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c)" (parenthesized_expression "(**(code **)(*(int *)(param_1 + 4) + 0x128))" ( (pointer_expression "**(code **)(*(int *)(param_1 + 4) + 0x128)" * (pointer_expression "*(code **)(*(int *)(param_1 + 4) + 0x128)" * (cast_expression "(code **)(*(int *)(param_1 + 4) + 0x128)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0x128)" ( (binary_expression "*(int *)(param_1 + 4) + 0x128" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c)" ( identifier , identifier , identifier , (binary_expression "DAT_00018240 - uVar1" identifier - identifier) , (binary_expression "(DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1)" (parenthesized_expression "(DAT_00018244 - uVar2)" ( (binary_expression "DAT_00018244 - uVar2" identifier - identifier) )) - (call_expression "(uint)(DAT_00018240 < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_00018240 < uVar1)" ( (binary_expression "DAT_00018240 < uVar1" identifier < identifier) )))) , (pointer_expression "&DAT_00018238" & identifier) , (pointer_expression "&DAT_00018234" & identifier) , (pointer_expression "&DAT_00018230" & identifier) , (pointer_expression "&DAT_0001822c" & identifier) )))) ;) (expression_statement "DAT_00018228 = uVar3;" (assignment_expression "DAT_00018228 = uVar3" identifier = identifier) ;) })) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid find_address_in_section(bfd *abfd,asection *section,void *data)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if ((found == 0) && ((section->flags & 1) != 0)) {\n    uVar1 = (uint)section->vma;\n    uVar2 = *(uint *)((int)&section->vma + 4);\n    if ((uVar2 <= pc._4_4_ && (uint)((uint)pc < uVar1) <= pc._4_4_ - uVar2) &&\n       (uVar3 = uVar2 + *(int *)((int)&section->size + 4) + (uint)CARRY4(uVar1,(uint)section->size),\n       pc._4_4_ < uVar3 || pc._4_4_ - uVar3 < (uint)((uint)pc < uVar1 + (int)section->size))) {\n      found = (*abfd->xvec->_bfd_find_nearest_line)\n                        (abfd,syms,section,\n                         CONCAT44((pc._4_4_ - uVar2) - (uint)((uint)pc < uVar1),(uint)pc - uVar1),\n                         &filename,&functionname,&line,&discriminator);\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void find_address_in_section(bfd *abfd,asection *section,void *data)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if ((found == 0) && ((section->flags & 1) != 0)) {\n    uVar1 = (uint)section->vma;\n    uVar2 = *(uint *)((int)&section->vma + 4);\n    if ((uVar2 <= pc._4_4_ && (uint)((uint)pc < uVar1) <= pc._4_4_ - uVar2) &&\n       (uVar3 = uVar2 + *(int *)((int)&section->size + 4) + (uint)CARRY4(uVar1,(uint)section->size),\n       pc._4_4_ < uVar3 || pc._4_4_ - uVar3 < (uint)((uint)pc < uVar1 + (int)section->size))) {\n      found = (*abfd->xvec->_bfd_find_nearest_line)\n                        (abfd,syms,section,\n                         CONCAT44((pc._4_4_ - uVar2) - (uint)((uint)pc < uVar1),(uint)pc - uVar1),\n                         &filename,&functionname,&line,&discriminator);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "find_address_in_section(bfd *abfd,asection *section,void *data)" identifier (parameter_list "(bfd *abfd,asection *section,void *data)" ( (parameter_declaration "bfd *abfd" type_identifier (pointer_declarator "*abfd" * identifier)) , (parameter_declaration "asection *section" type_identifier (pointer_declarator "*section" * identifier)) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if ((found == 0) && ((section->flags & 1) != 0)) {\n    uVar1 = (uint)section->vma;\n    uVar2 = *(uint *)((int)&section->vma + 4);\n    if ((uVar2 <= pc._4_4_ && (uint)((uint)pc < uVar1) <= pc._4_4_ - uVar2) &&\n       (uVar3 = uVar2 + *(int *)((int)&section->size + 4) + (uint)CARRY4(uVar1,(uint)section->size),\n       pc._4_4_ < uVar3 || pc._4_4_ - uVar3 < (uint)((uint)pc < uVar1 + (int)section->size))) {\n      found = (*abfd->xvec->_bfd_find_nearest_line)\n                        (abfd,syms,section,\n                         CONCAT44((pc._4_4_ - uVar2) - (uint)((uint)pc < uVar1),(uint)pc - uVar1),\n                         &filename,&functionname,&line,&discriminator);\n    }\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if ((found == 0) && ((section->flags & 1) != 0)) {\n    uVar1 = (uint)section->vma;\n    uVar2 = *(uint *)((int)&section->vma + 4);\n    if ((uVar2 <= pc._4_4_ && (uint)((uint)pc < uVar1) <= pc._4_4_ - uVar2) &&\n       (uVar3 = uVar2 + *(int *)((int)&section->size + 4) + (uint)CARRY4(uVar1,(uint)section->size),\n       pc._4_4_ < uVar3 || pc._4_4_ - uVar3 < (uint)((uint)pc < uVar1 + (int)section->size))) {\n      found = (*abfd->xvec->_bfd_find_nearest_line)\n                        (abfd,syms,section,\n                         CONCAT44((pc._4_4_ - uVar2) - (uint)((uint)pc < uVar1),(uint)pc - uVar1),\n                         &filename,&functionname,&line,&discriminator);\n    }\n  }" if (parenthesized_expression "((found == 0) && ((section->flags & 1) != 0))" ( (binary_expression "(found == 0) && ((section->flags & 1) != 0)" (parenthesized_expression "(found == 0)" ( (binary_expression "found == 0" identifier == number_literal) )) && (parenthesized_expression "((section->flags & 1) != 0)" ( (binary_expression "(section->flags & 1) != 0" (parenthesized_expression "(section->flags & 1)" ( (binary_expression "section->flags & 1" (field_expression "section->flags" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    uVar1 = (uint)section->vma;\n    uVar2 = *(uint *)((int)&section->vma + 4);\n    if ((uVar2 <= pc._4_4_ && (uint)((uint)pc < uVar1) <= pc._4_4_ - uVar2) &&\n       (uVar3 = uVar2 + *(int *)((int)&section->size + 4) + (uint)CARRY4(uVar1,(uint)section->size),\n       pc._4_4_ < uVar3 || pc._4_4_ - uVar3 < (uint)((uint)pc < uVar1 + (int)section->size))) {\n      found = (*abfd->xvec->_bfd_find_nearest_line)\n                        (abfd,syms,section,\n                         CONCAT44((pc._4_4_ - uVar2) - (uint)((uint)pc < uVar1),(uint)pc - uVar1),\n                         &filename,&functionname,&line,&discriminator);\n    }\n  }" { (expression_statement "uVar1 = (uint)section->vma;" (assignment_expression "uVar1 = (uint)section->vma" identifier = (cast_expression "(uint)section->vma" ( (type_descriptor "uint" type_identifier) ) (field_expression "section->vma" identifier -> field_identifier))) ;) (expression_statement "uVar2 = *(uint *)((int)&section->vma + 4);" (assignment_expression "uVar2 = *(uint *)((int)&section->vma + 4)" identifier = (pointer_expression "*(uint *)((int)&section->vma + 4)" * (cast_expression "(uint *)((int)&section->vma + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&section->vma + 4)" ( (binary_expression "(int)&section->vma + 4" (cast_expression "(int)&section->vma" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&section->vma" & (field_expression "section->vma" identifier -> field_identifier))) + number_literal) ))))) ;) (if_statement "if ((uVar2 <= pc._4_4_ && (uint)((uint)pc < uVar1) <= pc._4_4_ - uVar2) &&\n       (uVar3 = uVar2 + *(int *)((int)&section->size + 4) + (uint)CARRY4(uVar1,(uint)section->size),\n       pc._4_4_ < uVar3 || pc._4_4_ - uVar3 < (uint)((uint)pc < uVar1 + (int)section->size))) {\n      found = (*abfd->xvec->_bfd_find_nearest_line)\n                        (abfd,syms,section,\n                         CONCAT44((pc._4_4_ - uVar2) - (uint)((uint)pc < uVar1),(uint)pc - uVar1),\n                         &filename,&functionname,&line,&discriminator);\n    }" if (parenthesized_expression "((uVar2 <= pc._4_4_ && (uint)((uint)pc < uVar1) <= pc._4_4_ - uVar2) &&\n       (uVar3 = uVar2 + *(int *)((int)&section->size + 4) + (uint)CARRY4(uVar1,(uint)section->size),\n       pc._4_4_ < uVar3 || pc._4_4_ - uVar3 < (uint)((uint)pc < uVar1 + (int)section->size)))" ( (binary_expression "(uVar2 <= pc._4_4_ && (uint)((uint)pc < uVar1) <= pc._4_4_ - uVar2) &&\n       (uVar3 = uVar2 + *(int *)((int)&section->size + 4) + (uint)CARRY4(uVar1,(uint)section->size),\n       pc._4_4_ < uVar3 || pc._4_4_ - uVar3 < (uint)((uint)pc < uVar1 + (int)section->size))" (parenthesized_expression "(uVar2 <= pc._4_4_ && (uint)((uint)pc < uVar1) <= pc._4_4_ - uVar2)" ( (binary_expression "uVar2 <= pc._4_4_ && (uint)((uint)pc < uVar1) <= pc._4_4_ - uVar2" (binary_expression "uVar2 <= pc._4_4_" identifier <= (field_expression "pc._4_4_" identifier . field_identifier)) && (binary_expression "(uint)((uint)pc < uVar1) <= pc._4_4_ - uVar2" (call_expression "(uint)((uint)pc < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)pc < uVar1)" ( (binary_expression "(uint)pc < uVar1" (cast_expression "(uint)pc" ( (type_descriptor "uint" type_identifier) ) identifier) < identifier) ))) <= (binary_expression "pc._4_4_ - uVar2" (field_expression "pc._4_4_" identifier . field_identifier) - identifier))) )) && (parenthesized_expression "(uVar3 = uVar2 + *(int *)((int)&section->size + 4) + (uint)CARRY4(uVar1,(uint)section->size),\n       pc._4_4_ < uVar3 || pc._4_4_ - uVar3 < (uint)((uint)pc < uVar1 + (int)section->size))" ( (comma_expression "uVar3 = uVar2 + *(int *)((int)&section->size + 4) + (uint)CARRY4(uVar1,(uint)section->size),\n       pc._4_4_ < uVar3 || pc._4_4_ - uVar3 < (uint)((uint)pc < uVar1 + (int)section->size)" (assignment_expression "uVar3 = uVar2 + *(int *)((int)&section->size + 4) + (uint)CARRY4(uVar1,(uint)section->size)" identifier = (binary_expression "uVar2 + *(int *)((int)&section->size + 4) + (uint)CARRY4(uVar1,(uint)section->size)" (binary_expression "uVar2 + *(int *)((int)&section->size + 4)" identifier + (pointer_expression "*(int *)((int)&section->size + 4)" * (cast_expression "(int *)((int)&section->size + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&section->size + 4)" ( (binary_expression "(int)&section->size + 4" (cast_expression "(int)&section->size" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&section->size" & (field_expression "section->size" identifier -> field_identifier))) + number_literal) ))))) + (cast_expression "(uint)CARRY4(uVar1,(uint)section->size)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar1,(uint)section->size)" identifier (argument_list "(uVar1,(uint)section->size)" ( identifier , (cast_expression "(uint)section->size" ( (type_descriptor "uint" type_identifier) ) (field_expression "section->size" identifier -> field_identifier)) )))))) , (binary_expression "pc._4_4_ < uVar3 || pc._4_4_ - uVar3 < (uint)((uint)pc < uVar1 + (int)section->size)" (binary_expression "pc._4_4_ < uVar3" (field_expression "pc._4_4_" identifier . field_identifier) < identifier) || (binary_expression "pc._4_4_ - uVar3 < (uint)((uint)pc < uVar1 + (int)section->size)" (binary_expression "pc._4_4_ - uVar3" (field_expression "pc._4_4_" identifier . field_identifier) - identifier) < (call_expression "(uint)((uint)pc < uVar1 + (int)section->size)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)pc < uVar1 + (int)section->size)" ( (binary_expression "(uint)pc < uVar1 + (int)section->size" (cast_expression "(uint)pc" ( (type_descriptor "uint" type_identifier) ) identifier) < (binary_expression "uVar1 + (int)section->size" identifier + (cast_expression "(int)section->size" ( (type_descriptor "int" primitive_type) ) (field_expression "section->size" identifier -> field_identifier)))) )))))) ))) )) (compound_statement "{\n      found = (*abfd->xvec->_bfd_find_nearest_line)\n                        (abfd,syms,section,\n                         CONCAT44((pc._4_4_ - uVar2) - (uint)((uint)pc < uVar1),(uint)pc - uVar1),\n                         &filename,&functionname,&line,&discriminator);\n    }" { (expression_statement "found = (*abfd->xvec->_bfd_find_nearest_line)\n                        (abfd,syms,section,\n                         CONCAT44((pc._4_4_ - uVar2) - (uint)((uint)pc < uVar1),(uint)pc - uVar1),\n                         &filename,&functionname,&line,&discriminator);" (assignment_expression "found = (*abfd->xvec->_bfd_find_nearest_line)\n                        (abfd,syms,section,\n                         CONCAT44((pc._4_4_ - uVar2) - (uint)((uint)pc < uVar1),(uint)pc - uVar1),\n                         &filename,&functionname,&line,&discriminator)" identifier = (call_expression "(*abfd->xvec->_bfd_find_nearest_line)\n                        (abfd,syms,section,\n                         CONCAT44((pc._4_4_ - uVar2) - (uint)((uint)pc < uVar1),(uint)pc - uVar1),\n                         &filename,&functionname,&line,&discriminator)" (parenthesized_expression "(*abfd->xvec->_bfd_find_nearest_line)" ( (pointer_expression "*abfd->xvec->_bfd_find_nearest_line" * (field_expression "abfd->xvec->_bfd_find_nearest_line" (field_expression "abfd->xvec" identifier -> field_identifier) -> field_identifier)) )) (argument_list "(abfd,syms,section,\n                         CONCAT44((pc._4_4_ - uVar2) - (uint)((uint)pc < uVar1),(uint)pc - uVar1),\n                         &filename,&functionname,&line,&discriminator)" ( identifier , identifier , identifier , (call_expression "CONCAT44((pc._4_4_ - uVar2) - (uint)((uint)pc < uVar1),(uint)pc - uVar1)" identifier (argument_list "((pc._4_4_ - uVar2) - (uint)((uint)pc < uVar1),(uint)pc - uVar1)" ( (binary_expression "(pc._4_4_ - uVar2) - (uint)((uint)pc < uVar1)" (parenthesized_expression "(pc._4_4_ - uVar2)" ( (binary_expression "pc._4_4_ - uVar2" (field_expression "pc._4_4_" identifier . field_identifier) - identifier) )) - (call_expression "(uint)((uint)pc < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)pc < uVar1)" ( (binary_expression "(uint)pc < uVar1" (cast_expression "(uint)pc" ( (type_descriptor "uint" type_identifier) ) identifier) < identifier) )))) , (binary_expression "(uint)pc - uVar1" (cast_expression "(uint)pc" ( (type_descriptor "uint" type_identifier) ) identifier) - identifier) ))) , (pointer_expression "&filename" & identifier) , (pointer_expression "&functionname" & identifier) , (pointer_expression "&line" & identifier) , (pointer_expression "&discriminator" & identifier) )))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "uint FUN_00012210(int param_1,int param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar3 = DAT_00018228;\n  if ((DAT_00018228 == 0) && ((*(byte *)(param_2 + 0x14) & 1) != 0)) {\n    uVar1 = *(uint *)(param_2 + 0x1c);\n    uVar2 = *(uint *)(param_2 + 0x20);\n    uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1);\n    if ((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))) {\n      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);\n      DAT_00018228 = uVar3;\n    }\n  }\n  return uVar3;\n}\n\n" (function_definition "uint FUN_00012210(int param_1,int param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar3 = DAT_00018228;\n  if ((DAT_00018228 == 0) && ((*(byte *)(param_2 + 0x14) & 1) != 0)) {\n    uVar1 = *(uint *)(param_2 + 0x1c);\n    uVar2 = *(uint *)(param_2 + 0x20);\n    uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1);\n    if ((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))) {\n      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);\n      DAT_00018228 = uVar3;\n    }\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00012210(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar3 = DAT_00018228;\n  if ((DAT_00018228 == 0) && ((*(byte *)(param_2 + 0x14) & 1) != 0)) {\n    uVar1 = *(uint *)(param_2 + 0x1c);\n    uVar2 = *(uint *)(param_2 + 0x20);\n    uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1);\n    if ((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))) {\n      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);\n      DAT_00018228 = uVar3;\n    }\n  }\n  return uVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "uVar3 = DAT_00018228;" (assignment_expression "uVar3 = DAT_00018228" identifier = identifier) ;) (if_statement "if ((DAT_00018228 == 0) && ((*(byte *)(param_2 + 0x14) & 1) != 0)) {\n    uVar1 = *(uint *)(param_2 + 0x1c);\n    uVar2 = *(uint *)(param_2 + 0x20);\n    uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1);\n    if ((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))) {\n      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);\n      DAT_00018228 = uVar3;\n    }\n  }" if (parenthesized_expression "((DAT_00018228 == 0) && ((*(byte *)(param_2 + 0x14) & 1) != 0))" ( (binary_expression "(DAT_00018228 == 0) && ((*(byte *)(param_2 + 0x14) & 1) != 0)" (parenthesized_expression "(DAT_00018228 == 0)" ( (binary_expression "DAT_00018228 == 0" identifier == number_literal) )) && (parenthesized_expression "((*(byte *)(param_2 + 0x14) & 1) != 0)" ( (binary_expression "(*(byte *)(param_2 + 0x14) & 1) != 0" (parenthesized_expression "(*(byte *)(param_2 + 0x14) & 1)" ( (binary_expression "*(byte *)(param_2 + 0x14) & 1" (pointer_expression "*(byte *)(param_2 + 0x14)" * (cast_expression "(byte *)(param_2 + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    uVar1 = *(uint *)(param_2 + 0x1c);\n    uVar2 = *(uint *)(param_2 + 0x20);\n    uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1);\n    if ((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))) {\n      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);\n      DAT_00018228 = uVar3;\n    }\n  }" { (expression_statement "uVar1 = *(uint *)(param_2 + 0x1c);" (assignment_expression "uVar1 = *(uint *)(param_2 + 0x1c)" identifier = (pointer_expression "*(uint *)(param_2 + 0x1c)" * (cast_expression "(uint *)(param_2 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(uint *)(param_2 + 0x20);" (assignment_expression "uVar2 = *(uint *)(param_2 + 0x20)" identifier = (pointer_expression "*(uint *)(param_2 + 0x20)" * (cast_expression "(uint *)(param_2 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1);" (assignment_expression "uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1)" identifier = (binary_expression "(DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1)" (parenthesized_expression "(DAT_00018244 - uVar2)" ( (binary_expression "DAT_00018244 - uVar2" identifier - identifier) )) - (call_expression "(uint)(DAT_00018240 < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_00018240 < uVar1)" ( (binary_expression "DAT_00018240 < uVar1" identifier < identifier) ))))) ;) (if_statement "if ((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))) {\n      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);\n      DAT_00018228 = uVar3;\n    }" if (parenthesized_expression "((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3)))" ( (binary_expression "(uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))" (parenthesized_expression "(uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2)" ( (binary_expression "uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2" (binary_expression "uVar2 <= DAT_00018244" identifier <= identifier) && (binary_expression "(uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2" (call_expression "(uint)(DAT_00018240 < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_00018240 < uVar1)" ( (binary_expression "DAT_00018240 < uVar1" identifier < identifier) ))) <= (binary_expression "DAT_00018244 - uVar2" identifier - identifier))) )) && (parenthesized_expression "(uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))" ( (comma_expression "uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3)" (assignment_expression "uVar3 = uVar1 + *(uint *)(param_2 + 0x2c)" identifier = (binary_expression "uVar1 + *(uint *)(param_2 + 0x2c)" identifier + (pointer_expression "*(uint *)(param_2 + 0x2c)" * (cast_expression "(uint *)(param_2 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))))) , (comma_expression "uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3)" (assignment_expression "uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c))" identifier = (binary_expression "uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c))" (binary_expression "uVar2 + *(int *)(param_2 + 0x30)" identifier + (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) + (cast_expression "(uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c))" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar1,*(uint *)(param_2 + 0x2c))" identifier (argument_list "(uVar1,*(uint *)(param_2 + 0x2c))" ( identifier , (pointer_expression "*(uint *)(param_2 + 0x2c)" * (cast_expression "(uint *)(param_2 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) )))))) , (binary_expression "DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3)" (binary_expression "DAT_00018244 < uVar4" identifier < identifier) || (binary_expression "DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3)" (binary_expression "DAT_00018244 - uVar4" identifier - identifier) < (call_expression "(uint)(DAT_00018240 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_00018240 < uVar3)" ( (binary_expression "DAT_00018240 < uVar3" identifier < identifier) ))))))) ))) )) (compound_statement "{\n      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);\n      DAT_00018228 = uVar3;\n    }" { (expression_statement "uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);" (assignment_expression "uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c)" identifier = (call_expression "(**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c)" (parenthesized_expression "(**(code **)(*(int *)(param_1 + 4) + 0x128))" ( (pointer_expression "**(code **)(*(int *)(param_1 + 4) + 0x128)" * (pointer_expression "*(code **)(*(int *)(param_1 + 4) + 0x128)" * (cast_expression "(code **)(*(int *)(param_1 + 4) + 0x128)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0x128)" ( (binary_expression "*(int *)(param_1 + 4) + 0x128" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c)" ( identifier , identifier , identifier , (binary_expression "DAT_00018240 - uVar1" identifier - identifier) , (binary_expression "(DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1)" (parenthesized_expression "(DAT_00018244 - uVar2)" ( (binary_expression "DAT_00018244 - uVar2" identifier - identifier) )) - (call_expression "(uint)(DAT_00018240 < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_00018240 < uVar1)" ( (binary_expression "DAT_00018240 < uVar1" identifier < identifier) )))) , (pointer_expression "&DAT_00018238" & identifier) , (pointer_expression "&DAT_00018234" & identifier) , (pointer_expression "&DAT_00018230" & identifier) , (pointer_expression "&DAT_0001822c" & identifier) )))) ;) (expression_statement "DAT_00018228 = uVar3;" (assignment_expression "DAT_00018228 = uVar3" identifier = identifier) ;) })) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT <= IDENT) && (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) <= (binary_expression IDENT - IDENT))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) , (comma_expression (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))))) , (binary_expression (binary_expression IDENT < IDENT) || (binary_expression (binary_expression IDENT - IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))))))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT , (binary_expression IDENT - IDENT) , (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) )))) , (pointer_expression & IDENT) , (pointer_expression & IDENT) , (pointer_expression & IDENT) , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "uint FUN_00012210(int param_1,int param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar3 = DAT_00018228;\n  if ((DAT_00018228 == 0) && ((*(byte *)(param_2 + 0x14) & 1) != 0)) {\n    uVar1 = *(uint *)(param_2 + 0x1c);\n    uVar2 = *(uint *)(param_2 + 0x20);\n    uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1);\n    if ((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))) {\n      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);\n      DAT_00018228 = uVar3;\n    }\n  }\n  return uVar3;\n}" (type_identifier "uint") (function_declarator "FUN_00012210(int param_1,int param_2)" (identifier "FUN_00012210") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar3 = DAT_00018228;\n  if ((DAT_00018228 == 0) && ((*(byte *)(param_2 + 0x14) & 1) != 0)) {\n    uVar1 = *(uint *)(param_2 + 0x1c);\n    uVar2 = *(uint *)(param_2 + 0x20);\n    uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1);\n    if ((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))) {\n      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);\n      DAT_00018228 = uVar3;\n    }\n  }\n  return uVar3;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (expression_statement "uVar3 = DAT_00018228;" (assignment_expression "uVar3 = DAT_00018228" (identifier "uVar3") (= "=") (identifier "DAT_00018228")) (; ";")) (if_statement "if ((DAT_00018228 == 0) && ((*(byte *)(param_2 + 0x14) & 1) != 0)) {\n    uVar1 = *(uint *)(param_2 + 0x1c);\n    uVar2 = *(uint *)(param_2 + 0x20);\n    uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1);\n    if ((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))) {\n      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);\n      DAT_00018228 = uVar3;\n    }\n  }" (if "if") (parenthesized_expression "((DAT_00018228 == 0) && ((*(byte *)(param_2 + 0x14) & 1) != 0))" (( "(") (binary_expression "(DAT_00018228 == 0) && ((*(byte *)(param_2 + 0x14) & 1) != 0)" (parenthesized_expression "(DAT_00018228 == 0)" (( "(") (binary_expression "DAT_00018228 == 0" (identifier "DAT_00018228") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(param_2 + 0x14) & 1) != 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 0x14) & 1) != 0" (parenthesized_expression "(*(byte *)(param_2 + 0x14) & 1)" (( "(") (binary_expression "*(byte *)(param_2 + 0x14) & 1" (pointer_expression "*(byte *)(param_2 + 0x14)" (* "*") (cast_expression "(byte *)(param_2 + 0x14)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    uVar1 = *(uint *)(param_2 + 0x1c);\n    uVar2 = *(uint *)(param_2 + 0x20);\n    uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1);\n    if ((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))) {\n      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);\n      DAT_00018228 = uVar3;\n    }\n  }" ({ "{") (expression_statement "uVar1 = *(uint *)(param_2 + 0x1c);" (assignment_expression "uVar1 = *(uint *)(param_2 + 0x1c)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_2 + 0x1c)" (* "*") (cast_expression "(uint *)(param_2 + 0x1c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(uint *)(param_2 + 0x20);" (assignment_expression "uVar2 = *(uint *)(param_2 + 0x20)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(param_2 + 0x20)" (* "*") (cast_expression "(uint *)(param_2 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1);" (assignment_expression "uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1)" (identifier "uVar3") (= "=") (binary_expression "(DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1)" (parenthesized_expression "(DAT_00018244 - uVar2)" (( "(") (binary_expression "DAT_00018244 - uVar2" (identifier "DAT_00018244") (- "-") (identifier "uVar2")) () ")")) (- "-") (call_expression "(uint)(DAT_00018240 < uVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(DAT_00018240 < uVar1)" (( "(") (binary_expression "DAT_00018240 < uVar1" (identifier "DAT_00018240") (< "<") (identifier "uVar1")) () ")"))))) (; ";")) (if_statement "if ((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))) {\n      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);\n      DAT_00018228 = uVar3;\n    }" (if "if") (parenthesized_expression "((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3)))" (( "(") (binary_expression "(uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&\n       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))" (parenthesized_expression "(uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2)" (( "(") (binary_expression "uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2" (binary_expression "uVar2 <= DAT_00018244" (identifier "uVar2") (<= "<=") (identifier "DAT_00018244")) (&& "&&") (binary_expression "(uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2" (call_expression "(uint)(DAT_00018240 < uVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(DAT_00018240 < uVar1)" (( "(") (binary_expression "DAT_00018240 < uVar1" (identifier "DAT_00018240") (< "<") (identifier "uVar1")) () ")"))) (<= "<=") (binary_expression "DAT_00018244 - uVar2" (identifier "DAT_00018244") (- "-") (identifier "uVar2")))) () ")")) (&& "&&") (parenthesized_expression "(uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))" (( "(") (comma_expression "uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),\n       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3)" (assignment_expression "uVar3 = uVar1 + *(uint *)(param_2 + 0x2c)" (identifier "uVar3") (= "=") (binary_expression "uVar1 + *(uint *)(param_2 + 0x2c)" (identifier "uVar1") (+ "+") (pointer_expression "*(uint *)(param_2 + 0x2c)" (* "*") (cast_expression "(uint *)(param_2 + 0x2c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2c)" (( "(") (binary_expression "param_2 + 0x2c" (identifier "param_2") (+ "+") (number_literal "0x2c")) () ")")))))) (, ",") (comma_expression "uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),\n       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3)" (assignment_expression "uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c))" (identifier "uVar4") (= "=") (binary_expression "uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c))" (binary_expression "uVar2 + *(int *)(param_2 + 0x30)" (identifier "uVar2") (+ "+") (pointer_expression "*(int *)(param_2 + 0x30)" (* "*") (cast_expression "(int *)(param_2 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")"))))) (+ "+") (cast_expression "(uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c))" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY4(uVar1,*(uint *)(param_2 + 0x2c))" (identifier "CARRY4") (argument_list "(uVar1,*(uint *)(param_2 + 0x2c))" (( "(") (identifier "uVar1") (, ",") (pointer_expression "*(uint *)(param_2 + 0x2c)" (* "*") (cast_expression "(uint *)(param_2 + 0x2c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2c)" (( "(") (binary_expression "param_2 + 0x2c" (identifier "param_2") (+ "+") (number_literal "0x2c")) () ")")))) () ")")))))) (, ",") (binary_expression "DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3)" (binary_expression "DAT_00018244 < uVar4" (identifier "DAT_00018244") (< "<") (identifier "uVar4")) (|| "||") (binary_expression "DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3)" (binary_expression "DAT_00018244 - uVar4" (identifier "DAT_00018244") (- "-") (identifier "uVar4")) (< "<") (call_expression "(uint)(DAT_00018240 < uVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(DAT_00018240 < uVar3)" (( "(") (binary_expression "DAT_00018240 < uVar3" (identifier "DAT_00018240") (< "<") (identifier "uVar3")) () ")"))))))) () ")"))) () ")")) (compound_statement "{\n      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);\n      DAT_00018228 = uVar3;\n    }" ({ "{") (expression_statement "uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);" (assignment_expression "uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c)" (identifier "uVar3") (= "=") (call_expression "(**(code **)(*(int *)(param_1 + 4) + 0x128))\n                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c)" (parenthesized_expression "(**(code **)(*(int *)(param_1 + 4) + 0x128))" (( "(") (pointer_expression "**(code **)(*(int *)(param_1 + 4) + 0x128)" (* "*") (pointer_expression "*(code **)(*(int *)(param_1 + 4) + 0x128)" (* "*") (cast_expression "(code **)(*(int *)(param_1 + 4) + 0x128)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 4) + 0x128)" (( "(") (binary_expression "*(int *)(param_1 + 4) + 0x128" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x128")) () ")"))))) () ")")) (argument_list "(param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,\n                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,\n                         &DAT_00018234,&DAT_00018230,&DAT_0001822c)" (( "(") (identifier "param_1") (, ",") (identifier "DAT_00018248") (, ",") (identifier "param_2") (, ",") (binary_expression "DAT_00018240 - uVar1" (identifier "DAT_00018240") (- "-") (identifier "uVar1")) (, ",") (binary_expression "(DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1)" (parenthesized_expression "(DAT_00018244 - uVar2)" (( "(") (binary_expression "DAT_00018244 - uVar2" (identifier "DAT_00018244") (- "-") (identifier "uVar2")) () ")")) (- "-") (call_expression "(uint)(DAT_00018240 < uVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(DAT_00018240 < uVar1)" (( "(") (binary_expression "DAT_00018240 < uVar1" (identifier "DAT_00018240") (< "<") (identifier "uVar1")) () ")")))) (, ",") (pointer_expression "&DAT_00018238" (& "&") (identifier "DAT_00018238")) (, ",") (pointer_expression "&DAT_00018234" (& "&") (identifier "DAT_00018234")) (, ",") (pointer_expression "&DAT_00018230" (& "&") (identifier "DAT_00018230")) (, ",") (pointer_expression "&DAT_0001822c" (& "&") (identifier "DAT_0001822c")) () ")")))) (; ";")) (expression_statement "DAT_00018228 = uVar3;" (assignment_expression "DAT_00018228 = uVar3" (identifier "DAT_00018228") (= "=") (identifier "uVar3")) (; ";")) (} "}"))) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void function_1(type_1 *abfd,type_2 *section,void *data)

{
  type_3 var_3;
  type_3 var_2;
  type_3 var_5;
  
  if ((var_1 == 0) && ((section->flags & 1) != 0)) {
    var_3 = (type_3)section->vma;
    var_2 = *(type_3 *)((int)&section->vma + 4);
    if ((var_2 <= pc._4_4_ && (type_3)((type_3)pc < var_3) <= pc._4_4_ - var_2) &&
       (var_5 = var_2 + *(int *)((int)&section->size + 4) + (type_3)var_4(var_3,(type_3)section->size),
       pc._4_4_ < var_5 || pc._4_4_ - var_5 < (type_3)((type_3)pc < var_3 + (int)section->size))) {
      var_1 = (*abfd->xvec->_bfd_find_nearest_line)
                        (abfd,syms,section,
                         var_6((pc._4_4_ - var_2) - (type_3)((type_3)pc < var_3),(type_3)pc - var_3),
                         &filename,&functionname,&line,&discriminator);
    }
  }
  return;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (binary_expression left: (identifier) right: (identifier))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) right: (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (identifier) (binary_expression left: (identifier) right: (identifier)) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

uint MASKED(int param_1,int param_2)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  
  uVar3 = DAT_00018228;
  if ((DAT_00018228 == 0) && ((*(byte *)(param_2 + 0x14) & 1) != 0)) {
    uVar1 = *(uint *)(param_2 + 0x1c);
    uVar2 = *(uint *)(param_2 + 0x20);
    uVar3 = (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1);
    if ((uVar2 <= DAT_00018244 && (uint)(DAT_00018240 < uVar1) <= DAT_00018244 - uVar2) &&
       (uVar3 = uVar1 + *(uint *)(param_2 + 0x2c),
       uVar4 = uVar2 + *(int *)(param_2 + 0x30) + (uint)CARRY4(uVar1,*(uint *)(param_2 + 0x2c)),
       DAT_00018244 < uVar4 || DAT_00018244 - uVar4 < (uint)(DAT_00018240 < uVar3))) {
      uVar3 = (**(code **)(*(int *)(param_1 + 4) + 0x128))
                        (param_1,DAT_00018248,param_2,DAT_00018240 - uVar1,
                         (DAT_00018244 - uVar2) - (uint)(DAT_00018240 < uVar1),&DAT_00018238,
                         &DAT_00018234,&DAT_00018230,&DAT_0001822c);
      DAT_00018228 = uVar3;
    }
  }
  return uVar3;
}

