
int abs_sub_add_n(mp_ptr rm,mp_ptr rp,mp_srcptr rs,mp_size_t n)

{
  int extraout_ECX;
  uint uVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  int unaff_EDI;
  undefined4 *puVar5;
  undefined8 uVar6;
  mp_ptr local_20;
  
  uVar6 = __x86_get_pc_thunk_di();
  iVar2 = (int)((ulonglong)uVar6 >> 0x20);
  iVar4 = (int)uVar6;
  local_20 = (mp_ptr)((int)rm + -1);
  uVar1 = *(uint *)(iVar2 + (int)local_20 * 4);
  uVar3 = *(uint *)(extraout_ECX + (int)local_20 * 4);
  if (uVar1 == uVar3) {
    *(undefined4 *)(iVar4 + (int)local_20 * 4) = 0;
    do {
      uVar1 = *(uint *)(iVar2 + -4 + (int)local_20 * 4);
      uVar3 = *(uint *)(extraout_ECX + -4 + (int)local_20 * 4);
      if (uVar1 != uVar3) goto LAB_0005cc50;
      *(undefined4 *)(iVar4 + -4 + (int)local_20 * 4) = 0;
      local_20 = (mp_ptr)((int)local_20 + -1);
    } while (local_20 != (mp_ptr)0x0);
    puVar5 = *(undefined4 **)(unaff_EDI + 0x3c1bd);
    iVar4 = 0;
  }
  else {
    local_20 = rm;
LAB_0005cc50:
    puVar5 = *(undefined4 **)(unaff_EDI + 0x3c1bd);
    if (uVar3 < uVar1) {
      (*(code *)puVar5[0x22])(uVar6,extraout_ECX,local_20);
      iVar4 = 0;
    }
    else {
      (*(code *)puVar5[0x22])(iVar4,extraout_ECX,iVar2,local_20);
      iVar4 = -1;
    }
  }
  (*(code *)*puVar5)(iVar2,iVar2,extraout_ECX,rm);
  return iVar4;
}



undefined4 FUN_0005cbd0(int param_1)

{
  int iVar1;
  int extraout_ECX;
  uint uVar2;
  int iVar3;
  uint uVar4;
  undefined4 uVar5;
  int unaff_EDI;
  undefined4 *puVar6;
  undefined8 uVar7;
  int local_20;
  
  uVar7 = FUN_00021fa2();
  iVar3 = (int)((ulonglong)uVar7 >> 0x20);
  iVar1 = (int)uVar7;
  local_20 = param_1 + -1;
  uVar2 = *(uint *)(iVar3 + local_20 * 4);
  uVar4 = *(uint *)(extraout_ECX + local_20 * 4);
  if (uVar2 == uVar4) {
    *(undefined4 *)(iVar1 + local_20 * 4) = 0;
    do {
      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);
      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);
      if (uVar2 != uVar4) goto LAB_0005cc50;
      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;
      local_20 = local_20 + -1;
    } while (local_20 != 0);
    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);
    uVar5 = 0;
  }
  else {
    local_20 = param_1;
LAB_0005cc50:
    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);
    if (uVar4 < uVar2) {
      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);
      uVar5 = 0;
    }
    else {
      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);
      uVar5 = 0xffffffff;
    }
  }
  (*(code *)*puVar6)(iVar3,iVar3,extraout_ECX,param_1);
  return uVar5;
}


PUSH EBP
PUSH EDI
CALL 0x00021fa2
ADD EDI,0x3c429
PUSH ESI
MOV ESI,ECX
PUSH EBX
MOV EBX,EDX
SUB ESP,0x1c
MOV EDX,dword ptr [ESP + 0x30]
LEA EBP,[EDX + -0x1]
MOV ECX,dword ptr [EBX + EBP*0x4]
MOV EDX,dword ptr [ESI + EBP*0x4]
CMP ECX,EDX
JNZ 0x0005cc40
MOV dword ptr [EAX + EBP*0x4],0x0
NOP
MOV ECX,dword ptr [EBX + EBP*0x4 + -0x4]
MOV EDX,dword ptr [ESI + EBP*0x4 + -0x4]
MOV dword ptr [ESP + 0xc],EBP
CMP ECX,EDX
JNZ 0x0005cc50
MOV dword ptr [EAX + EBP*0x4 + -0x4],0x0
SUB EBP,0x1
JNZ 0x0005cc00
MOV EDI,dword ptr [EDI + 0xfffffd94]
XOR EBP,EBP
PUSH dword ptr [ESP + 0x30]
PUSH ESI
PUSH EBX
PUSH EBX
CALL dword ptr [EDI]
MOV EAX,EBP
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBP,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0xc],EBP
LEA ESI,[ESI]
NOP
MOV EDI,dword ptr [EDI + 0xfffffd94]
MOV EBP,dword ptr [EDI + 0x88]
CMP ECX,EDX
JBE 0x0005cc70
PUSH dword ptr [ESP + 0xc]
PUSH ESI
PUSH EBX
PUSH EAX
CALL EBP
XOR EBP,EBP
ADD ESP,0x10
JMP 0x0005cc25
PUSH dword ptr [ESP + 0xc]
PUSH EBX
PUSH ESI
PUSH EAX
CALL EBP
MOV EBP,0xffffffff
ADD ESP,0x10
JMP 0x0005cc25
(translation_unit "undefined4 FUN_0005cbd0(int param_1)\n\n{\n  int iVar1;\n  int extraout_ECX;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  int unaff_EDI;\n  undefined4 *puVar6;\n  undefined8 uVar7;\n  int local_20;\n  \n  uVar7 = FUN_00021fa2();\n  iVar3 = (int)((ulonglong)uVar7 >> 0x20);\n  iVar1 = (int)uVar7;\n  local_20 = param_1 + -1;\n  uVar2 = *(uint *)(iVar3 + local_20 * 4);\n  uVar4 = *(uint *)(extraout_ECX + local_20 * 4);\n  if (uVar2 == uVar4) {\n    *(undefined4 *)(iVar1 + local_20 * 4) = 0;\n    do {\n      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);\n      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);\n      if (uVar2 != uVar4) goto LAB_0005cc50;\n      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;\n      local_20 = local_20 + -1;\n    } while (local_20 != 0);\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    uVar5 = 0;\n  }\n  else {\n    local_20 = param_1;\nLAB_0005cc50:\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar4 < uVar2) {\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }\n    else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }\n  }\n  (*(code *)*puVar6)(iVar3,iVar3,extraout_ECX,param_1);\n  return uVar5;\n}\n\n" (function_definition "undefined4 FUN_0005cbd0(int param_1)\n\n{\n  int iVar1;\n  int extraout_ECX;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  int unaff_EDI;\n  undefined4 *puVar6;\n  undefined8 uVar7;\n  int local_20;\n  \n  uVar7 = FUN_00021fa2();\n  iVar3 = (int)((ulonglong)uVar7 >> 0x20);\n  iVar1 = (int)uVar7;\n  local_20 = param_1 + -1;\n  uVar2 = *(uint *)(iVar3 + local_20 * 4);\n  uVar4 = *(uint *)(extraout_ECX + local_20 * 4);\n  if (uVar2 == uVar4) {\n    *(undefined4 *)(iVar1 + local_20 * 4) = 0;\n    do {\n      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);\n      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);\n      if (uVar2 != uVar4) goto LAB_0005cc50;\n      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;\n      local_20 = local_20 + -1;\n    } while (local_20 != 0);\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    uVar5 = 0;\n  }\n  else {\n    local_20 = param_1;\nLAB_0005cc50:\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar4 < uVar2) {\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }\n    else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }\n  }\n  (*(code *)*puVar6)(iVar3,iVar3,extraout_ECX,param_1);\n  return uVar5;\n}" type_identifier (function_declarator "FUN_0005cbd0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int extraout_ECX;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  int unaff_EDI;\n  undefined4 *puVar6;\n  undefined8 uVar7;\n  int local_20;\n  \n  uVar7 = FUN_00021fa2();\n  iVar3 = (int)((ulonglong)uVar7 >> 0x20);\n  iVar1 = (int)uVar7;\n  local_20 = param_1 + -1;\n  uVar2 = *(uint *)(iVar3 + local_20 * 4);\n  uVar4 = *(uint *)(extraout_ECX + local_20 * 4);\n  if (uVar2 == uVar4) {\n    *(undefined4 *)(iVar1 + local_20 * 4) = 0;\n    do {\n      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);\n      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);\n      if (uVar2 != uVar4) goto LAB_0005cc50;\n      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;\n      local_20 = local_20 + -1;\n    } while (local_20 != 0);\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    uVar5 = 0;\n  }\n  else {\n    local_20 = param_1;\nLAB_0005cc50:\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar4 < uVar2) {\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }\n    else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }\n  }\n  (*(code *)*puVar6)(iVar3,iVar3,extraout_ECX,param_1);\n  return uVar5;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "uVar7 = FUN_00021fa2();" (assignment_expression "uVar7 = FUN_00021fa2()" identifier = (call_expression "FUN_00021fa2()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = (int)((ulonglong)uVar7 >> 0x20);" (assignment_expression "iVar3 = (int)((ulonglong)uVar7 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar7 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" ( (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar1 = (int)uVar7;" (assignment_expression "iVar1 = (int)uVar7" identifier = (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "local_20 = param_1 + -1;" (assignment_expression "local_20 = param_1 + -1" identifier = (binary_expression "param_1 + -1" identifier + number_literal)) ;) (expression_statement "uVar2 = *(uint *)(iVar3 + local_20 * 4);" (assignment_expression "uVar2 = *(uint *)(iVar3 + local_20 * 4)" identifier = (pointer_expression "*(uint *)(iVar3 + local_20 * 4)" * (cast_expression "(uint *)(iVar3 + local_20 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + local_20 * 4)" ( (binary_expression "iVar3 + local_20 * 4" identifier + (binary_expression "local_20 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar4 = *(uint *)(extraout_ECX + local_20 * 4);" (assignment_expression "uVar4 = *(uint *)(extraout_ECX + local_20 * 4)" identifier = (pointer_expression "*(uint *)(extraout_ECX + local_20 * 4)" * (cast_expression "(uint *)(extraout_ECX + local_20 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX + local_20 * 4)" ( (binary_expression "extraout_ECX + local_20 * 4" identifier + (binary_expression "local_20 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (uVar2 == uVar4) {\n    *(undefined4 *)(iVar1 + local_20 * 4) = 0;\n    do {\n      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);\n      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);\n      if (uVar2 != uVar4) goto LAB_0005cc50;\n      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;\n      local_20 = local_20 + -1;\n    } while (local_20 != 0);\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    uVar5 = 0;\n  }\n  else {\n    local_20 = param_1;\nLAB_0005cc50:\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar4 < uVar2) {\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }\n    else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }\n  }" if (parenthesized_expression "(uVar2 == uVar4)" ( (binary_expression "uVar2 == uVar4" identifier == identifier) )) (compound_statement "{\n    *(undefined4 *)(iVar1 + local_20 * 4) = 0;\n    do {\n      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);\n      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);\n      if (uVar2 != uVar4) goto LAB_0005cc50;\n      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;\n      local_20 = local_20 + -1;\n    } while (local_20 != 0);\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    uVar5 = 0;\n  }" { (expression_statement "*(undefined4 *)(iVar1 + local_20 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + local_20 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar1 + local_20 * 4)" * (cast_expression "(undefined4 *)(iVar1 + local_20 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + local_20 * 4)" ( (binary_expression "iVar1 + local_20 * 4" identifier + (binary_expression "local_20 * 4" identifier * number_literal)) )))) = number_literal) ;) (do_statement "do {\n      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);\n      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);\n      if (uVar2 != uVar4) goto LAB_0005cc50;\n      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;\n      local_20 = local_20 + -1;\n    } while (local_20 != 0);" do (compound_statement "{\n      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);\n      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);\n      if (uVar2 != uVar4) goto LAB_0005cc50;\n      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;\n      local_20 = local_20 + -1;\n    }" { (expression_statement "uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);" (assignment_expression "uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4)" identifier = (pointer_expression "*(uint *)(iVar3 + -4 + local_20 * 4)" * (cast_expression "(uint *)(iVar3 + -4 + local_20 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -4 + local_20 * 4)" ( (binary_expression "iVar3 + -4 + local_20 * 4" (binary_expression "iVar3 + -4" identifier + number_literal) + (binary_expression "local_20 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);" (assignment_expression "uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4)" identifier = (pointer_expression "*(uint *)(extraout_ECX + -4 + local_20 * 4)" * (cast_expression "(uint *)(extraout_ECX + -4 + local_20 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX + -4 + local_20 * 4)" ( (binary_expression "extraout_ECX + -4 + local_20 * 4" (binary_expression "extraout_ECX + -4" identifier + number_literal) + (binary_expression "local_20 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (uVar2 != uVar4) goto LAB_0005cc50;" if (parenthesized_expression "(uVar2 != uVar4)" ( (binary_expression "uVar2 != uVar4" identifier != identifier) )) (goto_statement "goto LAB_0005cc50;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar1 + -4 + local_20 * 4)" * (cast_expression "(undefined4 *)(iVar1 + -4 + local_20 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4 + local_20 * 4)" ( (binary_expression "iVar1 + -4 + local_20 * 4" (binary_expression "iVar1 + -4" identifier + number_literal) + (binary_expression "local_20 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "local_20 = local_20 + -1;" (assignment_expression "local_20 = local_20 + -1" identifier = (binary_expression "local_20 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(local_20 != 0)" ( (binary_expression "local_20 != 0" identifier != number_literal) )) ;) (expression_statement "puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);" (assignment_expression "puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd)" identifier = (pointer_expression "*(undefined4 **)(unaff_EDI + 0x3c1bd)" * (cast_expression "(undefined4 **)(unaff_EDI + 0x3c1bd)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x3c1bd)" ( (binary_expression "unaff_EDI + 0x3c1bd" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_20 = param_1;\nLAB_0005cc50:\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar4 < uVar2) {\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }\n    else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }\n  }" else (compound_statement "{\n    local_20 = param_1;\nLAB_0005cc50:\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar4 < uVar2) {\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }\n    else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }\n  }" { (expression_statement "local_20 = param_1;" (assignment_expression "local_20 = param_1" identifier = identifier) ;) (labeled_statement "LAB_0005cc50:\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);" statement_identifier : (expression_statement "puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);" (assignment_expression "puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd)" identifier = (pointer_expression "*(undefined4 **)(unaff_EDI + 0x3c1bd)" * (cast_expression "(undefined4 **)(unaff_EDI + 0x3c1bd)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x3c1bd)" ( (binary_expression "unaff_EDI + 0x3c1bd" identifier + number_literal) ))))) ;)) (if_statement "if (uVar4 < uVar2) {\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }\n    else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }" if (parenthesized_expression "(uVar4 < uVar2)" ( (binary_expression "uVar4 < uVar2" identifier < identifier) )) (compound_statement "{\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }" { (expression_statement "(*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);" (call_expression "(*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20)" (parenthesized_expression "(*(code *)puVar6[0x22])" ( (pointer_expression "*(code *)puVar6[0x22]" * (cast_expression "(code *)puVar6[0x22]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar6[0x22]" identifier [ number_literal ]))) )) (argument_list "(uVar7,extraout_ECX,local_20)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }" else (compound_statement "{\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }" { (expression_statement "(*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);" (call_expression "(*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20)" (parenthesized_expression "(*(code *)puVar6[0x22])" ( (pointer_expression "*(code *)puVar6[0x22]" * (cast_expression "(code *)puVar6[0x22]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar6[0x22]" identifier [ number_literal ]))) )) (argument_list "(iVar1,extraout_ECX,iVar3,local_20)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) }))) }))) (expression_statement "(*(code *)*puVar6)(iVar3,iVar3,extraout_ECX,param_1);" (call_expression "(*(code *)*puVar6)(iVar3,iVar3,extraout_ECX,param_1)" (parenthesized_expression "(*(code *)*puVar6)" ( (pointer_expression "*(code *)*puVar6" * (cast_expression "(code *)*puVar6" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar6" * identifier))) )) (argument_list "(iVar3,iVar3,extraout_ECX,param_1)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit "int abs_sub_add_n(mp_ptr rm,mp_ptr rp,mp_srcptr rs,mp_size_t n)\n\n{\n  int extraout_ECX;\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int unaff_EDI;\n  undefined4 *puVar5;\n  undefined8 uVar6;\n  mp_ptr local_20;\n  \n  uVar6 = __x86_get_pc_thunk_di();\n  iVar2 = (int)((ulonglong)uVar6 >> 0x20);\n  iVar4 = (int)uVar6;\n  local_20 = (mp_ptr)((int)rm + -1);\n  uVar1 = *(uint *)(iVar2 + (int)local_20 * 4);\n  uVar3 = *(uint *)(extraout_ECX + (int)local_20 * 4);\n  if (uVar1 == uVar3) {\n    *(undefined4 *)(iVar4 + (int)local_20 * 4) = 0;\n    do {\n      uVar1 = *(uint *)(iVar2 + -4 + (int)local_20 * 4);\n      uVar3 = *(uint *)(extraout_ECX + -4 + (int)local_20 * 4);\n      if (uVar1 != uVar3) goto LAB_0005cc50;\n      *(undefined4 *)(iVar4 + -4 + (int)local_20 * 4) = 0;\n      local_20 = (mp_ptr)((int)local_20 + -1);\n    } while (local_20 != (mp_ptr)0x0);\n    puVar5 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    iVar4 = 0;\n  }\n  else {\n    local_20 = rm;\nLAB_0005cc50:\n    puVar5 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar3 < uVar1) {\n      (*(code *)puVar5[0x22])(uVar6,extraout_ECX,local_20);\n      iVar4 = 0;\n    }\n    else {\n      (*(code *)puVar5[0x22])(iVar4,extraout_ECX,iVar2,local_20);\n      iVar4 = -1;\n    }\n  }\n  (*(code *)*puVar5)(iVar2,iVar2,extraout_ECX,rm);\n  return iVar4;\n}\n\n" (function_definition "int abs_sub_add_n(mp_ptr rm,mp_ptr rp,mp_srcptr rs,mp_size_t n)\n\n{\n  int extraout_ECX;\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int unaff_EDI;\n  undefined4 *puVar5;\n  undefined8 uVar6;\n  mp_ptr local_20;\n  \n  uVar6 = __x86_get_pc_thunk_di();\n  iVar2 = (int)((ulonglong)uVar6 >> 0x20);\n  iVar4 = (int)uVar6;\n  local_20 = (mp_ptr)((int)rm + -1);\n  uVar1 = *(uint *)(iVar2 + (int)local_20 * 4);\n  uVar3 = *(uint *)(extraout_ECX + (int)local_20 * 4);\n  if (uVar1 == uVar3) {\n    *(undefined4 *)(iVar4 + (int)local_20 * 4) = 0;\n    do {\n      uVar1 = *(uint *)(iVar2 + -4 + (int)local_20 * 4);\n      uVar3 = *(uint *)(extraout_ECX + -4 + (int)local_20 * 4);\n      if (uVar1 != uVar3) goto LAB_0005cc50;\n      *(undefined4 *)(iVar4 + -4 + (int)local_20 * 4) = 0;\n      local_20 = (mp_ptr)((int)local_20 + -1);\n    } while (local_20 != (mp_ptr)0x0);\n    puVar5 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    iVar4 = 0;\n  }\n  else {\n    local_20 = rm;\nLAB_0005cc50:\n    puVar5 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar3 < uVar1) {\n      (*(code *)puVar5[0x22])(uVar6,extraout_ECX,local_20);\n      iVar4 = 0;\n    }\n    else {\n      (*(code *)puVar5[0x22])(iVar4,extraout_ECX,iVar2,local_20);\n      iVar4 = -1;\n    }\n  }\n  (*(code *)*puVar5)(iVar2,iVar2,extraout_ECX,rm);\n  return iVar4;\n}" primitive_type (function_declarator "abs_sub_add_n(mp_ptr rm,mp_ptr rp,mp_srcptr rs,mp_size_t n)" identifier (parameter_list "(mp_ptr rm,mp_ptr rp,mp_srcptr rs,mp_size_t n)" ( (parameter_declaration "mp_ptr rm" type_identifier identifier) , (parameter_declaration "mp_ptr rp" type_identifier identifier) , (parameter_declaration "mp_srcptr rs" type_identifier identifier) , (parameter_declaration "mp_size_t n" type_identifier identifier) ))) (compound_statement "{\n  int extraout_ECX;\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int unaff_EDI;\n  undefined4 *puVar5;\n  undefined8 uVar6;\n  mp_ptr local_20;\n  \n  uVar6 = __x86_get_pc_thunk_di();\n  iVar2 = (int)((ulonglong)uVar6 >> 0x20);\n  iVar4 = (int)uVar6;\n  local_20 = (mp_ptr)((int)rm + -1);\n  uVar1 = *(uint *)(iVar2 + (int)local_20 * 4);\n  uVar3 = *(uint *)(extraout_ECX + (int)local_20 * 4);\n  if (uVar1 == uVar3) {\n    *(undefined4 *)(iVar4 + (int)local_20 * 4) = 0;\n    do {\n      uVar1 = *(uint *)(iVar2 + -4 + (int)local_20 * 4);\n      uVar3 = *(uint *)(extraout_ECX + -4 + (int)local_20 * 4);\n      if (uVar1 != uVar3) goto LAB_0005cc50;\n      *(undefined4 *)(iVar4 + -4 + (int)local_20 * 4) = 0;\n      local_20 = (mp_ptr)((int)local_20 + -1);\n    } while (local_20 != (mp_ptr)0x0);\n    puVar5 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    iVar4 = 0;\n  }\n  else {\n    local_20 = rm;\nLAB_0005cc50:\n    puVar5 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar3 < uVar1) {\n      (*(code *)puVar5[0x22])(uVar6,extraout_ECX,local_20);\n      iVar4 = 0;\n    }\n    else {\n      (*(code *)puVar5[0x22])(iVar4,extraout_ECX,iVar2,local_20);\n      iVar4 = -1;\n    }\n  }\n  (*(code *)*puVar5)(iVar2,iVar2,extraout_ECX,rm);\n  return iVar4;\n}" { (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "mp_ptr local_20;" type_identifier identifier ;) (expression_statement "uVar6 = __x86_get_pc_thunk_di();" (assignment_expression "uVar6 = __x86_get_pc_thunk_di()" identifier = (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = (int)((ulonglong)uVar6 >> 0x20);" (assignment_expression "iVar2 = (int)((ulonglong)uVar6 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar6 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar6 >> 0x20)" ( (binary_expression "(ulonglong)uVar6 >> 0x20" (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar4 = (int)uVar6;" (assignment_expression "iVar4 = (int)uVar6" identifier = (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "local_20 = (mp_ptr)((int)rm + -1);" (assignment_expression "local_20 = (mp_ptr)((int)rm + -1)" identifier = (call_expression "(mp_ptr)((int)rm + -1)" (parenthesized_expression "(mp_ptr)" ( identifier )) (argument_list "((int)rm + -1)" ( (binary_expression "(int)rm + -1" (cast_expression "(int)rm" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "uVar1 = *(uint *)(iVar2 + (int)local_20 * 4);" (assignment_expression "uVar1 = *(uint *)(iVar2 + (int)local_20 * 4)" identifier = (pointer_expression "*(uint *)(iVar2 + (int)local_20 * 4)" * (cast_expression "(uint *)(iVar2 + (int)local_20 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + (int)local_20 * 4)" ( (binary_expression "iVar2 + (int)local_20 * 4" identifier + (binary_expression "(int)local_20 * 4" (cast_expression "(int)local_20" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) ))))) ;) (expression_statement "uVar3 = *(uint *)(extraout_ECX + (int)local_20 * 4);" (assignment_expression "uVar3 = *(uint *)(extraout_ECX + (int)local_20 * 4)" identifier = (pointer_expression "*(uint *)(extraout_ECX + (int)local_20 * 4)" * (cast_expression "(uint *)(extraout_ECX + (int)local_20 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX + (int)local_20 * 4)" ( (binary_expression "extraout_ECX + (int)local_20 * 4" identifier + (binary_expression "(int)local_20 * 4" (cast_expression "(int)local_20" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) ))))) ;) (if_statement "if (uVar1 == uVar3) {\n    *(undefined4 *)(iVar4 + (int)local_20 * 4) = 0;\n    do {\n      uVar1 = *(uint *)(iVar2 + -4 + (int)local_20 * 4);\n      uVar3 = *(uint *)(extraout_ECX + -4 + (int)local_20 * 4);\n      if (uVar1 != uVar3) goto LAB_0005cc50;\n      *(undefined4 *)(iVar4 + -4 + (int)local_20 * 4) = 0;\n      local_20 = (mp_ptr)((int)local_20 + -1);\n    } while (local_20 != (mp_ptr)0x0);\n    puVar5 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    iVar4 = 0;\n  }\n  else {\n    local_20 = rm;\nLAB_0005cc50:\n    puVar5 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar3 < uVar1) {\n      (*(code *)puVar5[0x22])(uVar6,extraout_ECX,local_20);\n      iVar4 = 0;\n    }\n    else {\n      (*(code *)puVar5[0x22])(iVar4,extraout_ECX,iVar2,local_20);\n      iVar4 = -1;\n    }\n  }" if (parenthesized_expression "(uVar1 == uVar3)" ( (binary_expression "uVar1 == uVar3" identifier == identifier) )) (compound_statement "{\n    *(undefined4 *)(iVar4 + (int)local_20 * 4) = 0;\n    do {\n      uVar1 = *(uint *)(iVar2 + -4 + (int)local_20 * 4);\n      uVar3 = *(uint *)(extraout_ECX + -4 + (int)local_20 * 4);\n      if (uVar1 != uVar3) goto LAB_0005cc50;\n      *(undefined4 *)(iVar4 + -4 + (int)local_20 * 4) = 0;\n      local_20 = (mp_ptr)((int)local_20 + -1);\n    } while (local_20 != (mp_ptr)0x0);\n    puVar5 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    iVar4 = 0;\n  }" { (expression_statement "*(undefined4 *)(iVar4 + (int)local_20 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + (int)local_20 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar4 + (int)local_20 * 4)" * (cast_expression "(undefined4 *)(iVar4 + (int)local_20 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + (int)local_20 * 4)" ( (binary_expression "iVar4 + (int)local_20 * 4" identifier + (binary_expression "(int)local_20 * 4" (cast_expression "(int)local_20" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) )))) = number_literal) ;) (do_statement "do {\n      uVar1 = *(uint *)(iVar2 + -4 + (int)local_20 * 4);\n      uVar3 = *(uint *)(extraout_ECX + -4 + (int)local_20 * 4);\n      if (uVar1 != uVar3) goto LAB_0005cc50;\n      *(undefined4 *)(iVar4 + -4 + (int)local_20 * 4) = 0;\n      local_20 = (mp_ptr)((int)local_20 + -1);\n    } while (local_20 != (mp_ptr)0x0);" do (compound_statement "{\n      uVar1 = *(uint *)(iVar2 + -4 + (int)local_20 * 4);\n      uVar3 = *(uint *)(extraout_ECX + -4 + (int)local_20 * 4);\n      if (uVar1 != uVar3) goto LAB_0005cc50;\n      *(undefined4 *)(iVar4 + -4 + (int)local_20 * 4) = 0;\n      local_20 = (mp_ptr)((int)local_20 + -1);\n    }" { (expression_statement "uVar1 = *(uint *)(iVar2 + -4 + (int)local_20 * 4);" (assignment_expression "uVar1 = *(uint *)(iVar2 + -4 + (int)local_20 * 4)" identifier = (pointer_expression "*(uint *)(iVar2 + -4 + (int)local_20 * 4)" * (cast_expression "(uint *)(iVar2 + -4 + (int)local_20 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4 + (int)local_20 * 4)" ( (binary_expression "iVar2 + -4 + (int)local_20 * 4" (binary_expression "iVar2 + -4" identifier + number_literal) + (binary_expression "(int)local_20 * 4" (cast_expression "(int)local_20" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) ))))) ;) (expression_statement "uVar3 = *(uint *)(extraout_ECX + -4 + (int)local_20 * 4);" (assignment_expression "uVar3 = *(uint *)(extraout_ECX + -4 + (int)local_20 * 4)" identifier = (pointer_expression "*(uint *)(extraout_ECX + -4 + (int)local_20 * 4)" * (cast_expression "(uint *)(extraout_ECX + -4 + (int)local_20 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX + -4 + (int)local_20 * 4)" ( (binary_expression "extraout_ECX + -4 + (int)local_20 * 4" (binary_expression "extraout_ECX + -4" identifier + number_literal) + (binary_expression "(int)local_20 * 4" (cast_expression "(int)local_20" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) ))))) ;) (if_statement "if (uVar1 != uVar3) goto LAB_0005cc50;" if (parenthesized_expression "(uVar1 != uVar3)" ( (binary_expression "uVar1 != uVar3" identifier != identifier) )) (goto_statement "goto LAB_0005cc50;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(iVar4 + -4 + (int)local_20 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + -4 + (int)local_20 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar4 + -4 + (int)local_20 * 4)" * (cast_expression "(undefined4 *)(iVar4 + -4 + (int)local_20 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -4 + (int)local_20 * 4)" ( (binary_expression "iVar4 + -4 + (int)local_20 * 4" (binary_expression "iVar4 + -4" identifier + number_literal) + (binary_expression "(int)local_20 * 4" (cast_expression "(int)local_20" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) )))) = number_literal) ;) (expression_statement "local_20 = (mp_ptr)((int)local_20 + -1);" (assignment_expression "local_20 = (mp_ptr)((int)local_20 + -1)" identifier = (call_expression "(mp_ptr)((int)local_20 + -1)" (parenthesized_expression "(mp_ptr)" ( identifier )) (argument_list "((int)local_20 + -1)" ( (binary_expression "(int)local_20 + -1" (cast_expression "(int)local_20" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) }) while (parenthesized_expression "(local_20 != (mp_ptr)0x0)" ( (binary_expression "local_20 != (mp_ptr)0x0" identifier != (cast_expression "(mp_ptr)0x0" ( (type_descriptor "mp_ptr" type_identifier) ) number_literal)) )) ;) (expression_statement "puVar5 = *(undefined4 **)(unaff_EDI + 0x3c1bd);" (assignment_expression "puVar5 = *(undefined4 **)(unaff_EDI + 0x3c1bd)" identifier = (pointer_expression "*(undefined4 **)(unaff_EDI + 0x3c1bd)" * (cast_expression "(undefined4 **)(unaff_EDI + 0x3c1bd)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x3c1bd)" ( (binary_expression "unaff_EDI + 0x3c1bd" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_20 = rm;\nLAB_0005cc50:\n    puVar5 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar3 < uVar1) {\n      (*(code *)puVar5[0x22])(uVar6,extraout_ECX,local_20);\n      iVar4 = 0;\n    }\n    else {\n      (*(code *)puVar5[0x22])(iVar4,extraout_ECX,iVar2,local_20);\n      iVar4 = -1;\n    }\n  }" else (compound_statement "{\n    local_20 = rm;\nLAB_0005cc50:\n    puVar5 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar3 < uVar1) {\n      (*(code *)puVar5[0x22])(uVar6,extraout_ECX,local_20);\n      iVar4 = 0;\n    }\n    else {\n      (*(code *)puVar5[0x22])(iVar4,extraout_ECX,iVar2,local_20);\n      iVar4 = -1;\n    }\n  }" { (expression_statement "local_20 = rm;" (assignment_expression "local_20 = rm" identifier = identifier) ;) (labeled_statement "LAB_0005cc50:\n    puVar5 = *(undefined4 **)(unaff_EDI + 0x3c1bd);" statement_identifier : (expression_statement "puVar5 = *(undefined4 **)(unaff_EDI + 0x3c1bd);" (assignment_expression "puVar5 = *(undefined4 **)(unaff_EDI + 0x3c1bd)" identifier = (pointer_expression "*(undefined4 **)(unaff_EDI + 0x3c1bd)" * (cast_expression "(undefined4 **)(unaff_EDI + 0x3c1bd)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x3c1bd)" ( (binary_expression "unaff_EDI + 0x3c1bd" identifier + number_literal) ))))) ;)) (if_statement "if (uVar3 < uVar1) {\n      (*(code *)puVar5[0x22])(uVar6,extraout_ECX,local_20);\n      iVar4 = 0;\n    }\n    else {\n      (*(code *)puVar5[0x22])(iVar4,extraout_ECX,iVar2,local_20);\n      iVar4 = -1;\n    }" if (parenthesized_expression "(uVar3 < uVar1)" ( (binary_expression "uVar3 < uVar1" identifier < identifier) )) (compound_statement "{\n      (*(code *)puVar5[0x22])(uVar6,extraout_ECX,local_20);\n      iVar4 = 0;\n    }" { (expression_statement "(*(code *)puVar5[0x22])(uVar6,extraout_ECX,local_20);" (call_expression "(*(code *)puVar5[0x22])(uVar6,extraout_ECX,local_20)" (parenthesized_expression "(*(code *)puVar5[0x22])" ( (pointer_expression "*(code *)puVar5[0x22]" * (cast_expression "(code *)puVar5[0x22]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar5[0x22]" identifier [ number_literal ]))) )) (argument_list "(uVar6,extraout_ECX,local_20)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      (*(code *)puVar5[0x22])(iVar4,extraout_ECX,iVar2,local_20);\n      iVar4 = -1;\n    }" else (compound_statement "{\n      (*(code *)puVar5[0x22])(iVar4,extraout_ECX,iVar2,local_20);\n      iVar4 = -1;\n    }" { (expression_statement "(*(code *)puVar5[0x22])(iVar4,extraout_ECX,iVar2,local_20);" (call_expression "(*(code *)puVar5[0x22])(iVar4,extraout_ECX,iVar2,local_20)" (parenthesized_expression "(*(code *)puVar5[0x22])" ( (pointer_expression "*(code *)puVar5[0x22]" * (cast_expression "(code *)puVar5[0x22]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar5[0x22]" identifier [ number_literal ]))) )) (argument_list "(iVar4,extraout_ECX,iVar2,local_20)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) }))) }))) (expression_statement "(*(code *)*puVar5)(iVar2,iVar2,extraout_ECX,rm);" (call_expression "(*(code *)*puVar5)(iVar2,iVar2,extraout_ECX,rm)" (parenthesized_expression "(*(code *)*puVar5)" ( (pointer_expression "*(code *)*puVar5" * (cast_expression "(code *)*puVar5" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) )) (argument_list "(iVar2,iVar2,extraout_ECX,rm)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "undefined4 FUN_0005cbd0(int param_1)\n\n{\n  int iVar1;\n  int extraout_ECX;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  int unaff_EDI;\n  undefined4 *puVar6;\n  undefined8 uVar7;\n  int local_20;\n  \n  uVar7 = FUN_00021fa2();\n  iVar3 = (int)((ulonglong)uVar7 >> 0x20);\n  iVar1 = (int)uVar7;\n  local_20 = param_1 + -1;\n  uVar2 = *(uint *)(iVar3 + local_20 * 4);\n  uVar4 = *(uint *)(extraout_ECX + local_20 * 4);\n  if (uVar2 == uVar4) {\n    *(undefined4 *)(iVar1 + local_20 * 4) = 0;\n    do {\n      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);\n      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);\n      if (uVar2 != uVar4) goto LAB_0005cc50;\n      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;\n      local_20 = local_20 + -1;\n    } while (local_20 != 0);\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    uVar5 = 0;\n  }\n  else {\n    local_20 = param_1;\nLAB_0005cc50:\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar4 < uVar2) {\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }\n    else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }\n  }\n  (*(code *)*puVar6)(iVar3,iVar3,extraout_ECX,param_1);\n  return uVar5;\n}\n\n" (function_definition "undefined4 FUN_0005cbd0(int param_1)\n\n{\n  int iVar1;\n  int extraout_ECX;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  int unaff_EDI;\n  undefined4 *puVar6;\n  undefined8 uVar7;\n  int local_20;\n  \n  uVar7 = FUN_00021fa2();\n  iVar3 = (int)((ulonglong)uVar7 >> 0x20);\n  iVar1 = (int)uVar7;\n  local_20 = param_1 + -1;\n  uVar2 = *(uint *)(iVar3 + local_20 * 4);\n  uVar4 = *(uint *)(extraout_ECX + local_20 * 4);\n  if (uVar2 == uVar4) {\n    *(undefined4 *)(iVar1 + local_20 * 4) = 0;\n    do {\n      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);\n      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);\n      if (uVar2 != uVar4) goto LAB_0005cc50;\n      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;\n      local_20 = local_20 + -1;\n    } while (local_20 != 0);\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    uVar5 = 0;\n  }\n  else {\n    local_20 = param_1;\nLAB_0005cc50:\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar4 < uVar2) {\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }\n    else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }\n  }\n  (*(code *)*puVar6)(iVar3,iVar3,extraout_ECX,param_1);\n  return uVar5;\n}" type_identifier (function_declarator "FUN_0005cbd0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int extraout_ECX;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  int unaff_EDI;\n  undefined4 *puVar6;\n  undefined8 uVar7;\n  int local_20;\n  \n  uVar7 = FUN_00021fa2();\n  iVar3 = (int)((ulonglong)uVar7 >> 0x20);\n  iVar1 = (int)uVar7;\n  local_20 = param_1 + -1;\n  uVar2 = *(uint *)(iVar3 + local_20 * 4);\n  uVar4 = *(uint *)(extraout_ECX + local_20 * 4);\n  if (uVar2 == uVar4) {\n    *(undefined4 *)(iVar1 + local_20 * 4) = 0;\n    do {\n      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);\n      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);\n      if (uVar2 != uVar4) goto LAB_0005cc50;\n      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;\n      local_20 = local_20 + -1;\n    } while (local_20 != 0);\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    uVar5 = 0;\n  }\n  else {\n    local_20 = param_1;\nLAB_0005cc50:\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar4 < uVar2) {\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }\n    else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }\n  }\n  (*(code *)*puVar6)(iVar3,iVar3,extraout_ECX,param_1);\n  return uVar5;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "uVar7 = FUN_00021fa2();" (assignment_expression "uVar7 = FUN_00021fa2()" identifier = (call_expression "FUN_00021fa2()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = (int)((ulonglong)uVar7 >> 0x20);" (assignment_expression "iVar3 = (int)((ulonglong)uVar7 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar7 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" ( (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar1 = (int)uVar7;" (assignment_expression "iVar1 = (int)uVar7" identifier = (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "local_20 = param_1 + -1;" (assignment_expression "local_20 = param_1 + -1" identifier = (binary_expression "param_1 + -1" identifier + number_literal)) ;) (expression_statement "uVar2 = *(uint *)(iVar3 + local_20 * 4);" (assignment_expression "uVar2 = *(uint *)(iVar3 + local_20 * 4)" identifier = (pointer_expression "*(uint *)(iVar3 + local_20 * 4)" * (cast_expression "(uint *)(iVar3 + local_20 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + local_20 * 4)" ( (binary_expression "iVar3 + local_20 * 4" identifier + (binary_expression "local_20 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar4 = *(uint *)(extraout_ECX + local_20 * 4);" (assignment_expression "uVar4 = *(uint *)(extraout_ECX + local_20 * 4)" identifier = (pointer_expression "*(uint *)(extraout_ECX + local_20 * 4)" * (cast_expression "(uint *)(extraout_ECX + local_20 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX + local_20 * 4)" ( (binary_expression "extraout_ECX + local_20 * 4" identifier + (binary_expression "local_20 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (uVar2 == uVar4) {\n    *(undefined4 *)(iVar1 + local_20 * 4) = 0;\n    do {\n      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);\n      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);\n      if (uVar2 != uVar4) goto LAB_0005cc50;\n      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;\n      local_20 = local_20 + -1;\n    } while (local_20 != 0);\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    uVar5 = 0;\n  }\n  else {\n    local_20 = param_1;\nLAB_0005cc50:\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar4 < uVar2) {\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }\n    else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }\n  }" if (parenthesized_expression "(uVar2 == uVar4)" ( (binary_expression "uVar2 == uVar4" identifier == identifier) )) (compound_statement "{\n    *(undefined4 *)(iVar1 + local_20 * 4) = 0;\n    do {\n      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);\n      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);\n      if (uVar2 != uVar4) goto LAB_0005cc50;\n      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;\n      local_20 = local_20 + -1;\n    } while (local_20 != 0);\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    uVar5 = 0;\n  }" { (expression_statement "*(undefined4 *)(iVar1 + local_20 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + local_20 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar1 + local_20 * 4)" * (cast_expression "(undefined4 *)(iVar1 + local_20 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + local_20 * 4)" ( (binary_expression "iVar1 + local_20 * 4" identifier + (binary_expression "local_20 * 4" identifier * number_literal)) )))) = number_literal) ;) (do_statement "do {\n      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);\n      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);\n      if (uVar2 != uVar4) goto LAB_0005cc50;\n      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;\n      local_20 = local_20 + -1;\n    } while (local_20 != 0);" do (compound_statement "{\n      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);\n      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);\n      if (uVar2 != uVar4) goto LAB_0005cc50;\n      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;\n      local_20 = local_20 + -1;\n    }" { (expression_statement "uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);" (assignment_expression "uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4)" identifier = (pointer_expression "*(uint *)(iVar3 + -4 + local_20 * 4)" * (cast_expression "(uint *)(iVar3 + -4 + local_20 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -4 + local_20 * 4)" ( (binary_expression "iVar3 + -4 + local_20 * 4" (binary_expression "iVar3 + -4" identifier + number_literal) + (binary_expression "local_20 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);" (assignment_expression "uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4)" identifier = (pointer_expression "*(uint *)(extraout_ECX + -4 + local_20 * 4)" * (cast_expression "(uint *)(extraout_ECX + -4 + local_20 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX + -4 + local_20 * 4)" ( (binary_expression "extraout_ECX + -4 + local_20 * 4" (binary_expression "extraout_ECX + -4" identifier + number_literal) + (binary_expression "local_20 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (uVar2 != uVar4) goto LAB_0005cc50;" if (parenthesized_expression "(uVar2 != uVar4)" ( (binary_expression "uVar2 != uVar4" identifier != identifier) )) (goto_statement "goto LAB_0005cc50;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar1 + -4 + local_20 * 4)" * (cast_expression "(undefined4 *)(iVar1 + -4 + local_20 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4 + local_20 * 4)" ( (binary_expression "iVar1 + -4 + local_20 * 4" (binary_expression "iVar1 + -4" identifier + number_literal) + (binary_expression "local_20 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "local_20 = local_20 + -1;" (assignment_expression "local_20 = local_20 + -1" identifier = (binary_expression "local_20 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(local_20 != 0)" ( (binary_expression "local_20 != 0" identifier != number_literal) )) ;) (expression_statement "puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);" (assignment_expression "puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd)" identifier = (pointer_expression "*(undefined4 **)(unaff_EDI + 0x3c1bd)" * (cast_expression "(undefined4 **)(unaff_EDI + 0x3c1bd)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x3c1bd)" ( (binary_expression "unaff_EDI + 0x3c1bd" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_20 = param_1;\nLAB_0005cc50:\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar4 < uVar2) {\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }\n    else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }\n  }" else (compound_statement "{\n    local_20 = param_1;\nLAB_0005cc50:\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar4 < uVar2) {\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }\n    else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }\n  }" { (expression_statement "local_20 = param_1;" (assignment_expression "local_20 = param_1" identifier = identifier) ;) (labeled_statement "LAB_0005cc50:\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);" statement_identifier : (expression_statement "puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);" (assignment_expression "puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd)" identifier = (pointer_expression "*(undefined4 **)(unaff_EDI + 0x3c1bd)" * (cast_expression "(undefined4 **)(unaff_EDI + 0x3c1bd)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x3c1bd)" ( (binary_expression "unaff_EDI + 0x3c1bd" identifier + number_literal) ))))) ;)) (if_statement "if (uVar4 < uVar2) {\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }\n    else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }" if (parenthesized_expression "(uVar4 < uVar2)" ( (binary_expression "uVar4 < uVar2" identifier < identifier) )) (compound_statement "{\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }" { (expression_statement "(*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);" (call_expression "(*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20)" (parenthesized_expression "(*(code *)puVar6[0x22])" ( (pointer_expression "*(code *)puVar6[0x22]" * (cast_expression "(code *)puVar6[0x22]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar6[0x22]" identifier [ number_literal ]))) )) (argument_list "(uVar7,extraout_ECX,local_20)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }" else (compound_statement "{\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }" { (expression_statement "(*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);" (call_expression "(*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20)" (parenthesized_expression "(*(code *)puVar6[0x22])" ( (pointer_expression "*(code *)puVar6[0x22]" * (cast_expression "(code *)puVar6[0x22]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar6[0x22]" identifier [ number_literal ]))) )) (argument_list "(iVar1,extraout_ECX,iVar3,local_20)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) }))) }))) (expression_statement "(*(code *)*puVar6)(iVar3,iVar3,extraout_ECX,param_1);" (call_expression "(*(code *)*puVar6)(iVar3,iVar3,extraout_ECX,param_1)" (parenthesized_expression "(*(code *)*puVar6)" ( (pointer_expression "*(code *)*puVar6" * (cast_expression "(code *)*puVar6" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar6" * identifier))) )) (argument_list "(iVar3,iVar3,extraout_ECX,param_1)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0005cbd0(int param_1)\n\n{\n  int iVar1;\n  int extraout_ECX;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  int unaff_EDI;\n  undefined4 *puVar6;\n  undefined8 uVar7;\n  int local_20;\n  \n  uVar7 = FUN_00021fa2();\n  iVar3 = (int)((ulonglong)uVar7 >> 0x20);\n  iVar1 = (int)uVar7;\n  local_20 = param_1 + -1;\n  uVar2 = *(uint *)(iVar3 + local_20 * 4);\n  uVar4 = *(uint *)(extraout_ECX + local_20 * 4);\n  if (uVar2 == uVar4) {\n    *(undefined4 *)(iVar1 + local_20 * 4) = 0;\n    do {\n      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);\n      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);\n      if (uVar2 != uVar4) goto LAB_0005cc50;\n      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;\n      local_20 = local_20 + -1;\n    } while (local_20 != 0);\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    uVar5 = 0;\n  }\n  else {\n    local_20 = param_1;\nLAB_0005cc50:\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar4 < uVar2) {\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }\n    else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }\n  }\n  (*(code *)*puVar6)(iVar3,iVar3,extraout_ECX,param_1);\n  return uVar5;\n}" (type_identifier "undefined4") (function_declarator "FUN_0005cbd0(int param_1)" (identifier "FUN_0005cbd0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int extraout_ECX;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  int unaff_EDI;\n  undefined4 *puVar6;\n  undefined8 uVar7;\n  int local_20;\n  \n  uVar7 = FUN_00021fa2();\n  iVar3 = (int)((ulonglong)uVar7 >> 0x20);\n  iVar1 = (int)uVar7;\n  local_20 = param_1 + -1;\n  uVar2 = *(uint *)(iVar3 + local_20 * 4);\n  uVar4 = *(uint *)(extraout_ECX + local_20 * 4);\n  if (uVar2 == uVar4) {\n    *(undefined4 *)(iVar1 + local_20 * 4) = 0;\n    do {\n      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);\n      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);\n      if (uVar2 != uVar4) goto LAB_0005cc50;\n      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;\n      local_20 = local_20 + -1;\n    } while (local_20 != 0);\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    uVar5 = 0;\n  }\n  else {\n    local_20 = param_1;\nLAB_0005cc50:\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar4 < uVar2) {\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }\n    else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }\n  }\n  (*(code *)*puVar6)(iVar3,iVar3,extraout_ECX,param_1);\n  return uVar5;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int extraout_ECX;" (primitive_type "int") (identifier "extraout_ECX") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined8 uVar7;" (type_identifier "undefined8") (identifier "uVar7") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "uVar7 = FUN_00021fa2();" (assignment_expression "uVar7 = FUN_00021fa2()" (identifier "uVar7") (= "=") (call_expression "FUN_00021fa2()" (identifier "FUN_00021fa2") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar3 = (int)((ulonglong)uVar7 >> 0x20);" (assignment_expression "iVar3 = (int)((ulonglong)uVar7 >> 0x20)" (identifier "iVar3") (= "=") (cast_expression "(int)((ulonglong)uVar7 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar7")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "iVar1 = (int)uVar7;" (assignment_expression "iVar1 = (int)uVar7" (identifier "iVar1") (= "=") (cast_expression "(int)uVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar7"))) (; ";")) (expression_statement "local_20 = param_1 + -1;" (assignment_expression "local_20 = param_1 + -1" (identifier "local_20") (= "=") (binary_expression "param_1 + -1" (identifier "param_1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar2 = *(uint *)(iVar3 + local_20 * 4);" (assignment_expression "uVar2 = *(uint *)(iVar3 + local_20 * 4)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(iVar3 + local_20 * 4)" (* "*") (cast_expression "(uint *)(iVar3 + local_20 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + local_20 * 4)" (( "(") (binary_expression "iVar3 + local_20 * 4" (identifier "iVar3") (+ "+") (binary_expression "local_20 * 4" (identifier "local_20") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "uVar4 = *(uint *)(extraout_ECX + local_20 * 4);" (assignment_expression "uVar4 = *(uint *)(extraout_ECX + local_20 * 4)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(extraout_ECX + local_20 * 4)" (* "*") (cast_expression "(uint *)(extraout_ECX + local_20 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(extraout_ECX + local_20 * 4)" (( "(") (binary_expression "extraout_ECX + local_20 * 4" (identifier "extraout_ECX") (+ "+") (binary_expression "local_20 * 4" (identifier "local_20") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (uVar2 == uVar4) {\n    *(undefined4 *)(iVar1 + local_20 * 4) = 0;\n    do {\n      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);\n      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);\n      if (uVar2 != uVar4) goto LAB_0005cc50;\n      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;\n      local_20 = local_20 + -1;\n    } while (local_20 != 0);\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    uVar5 = 0;\n  }\n  else {\n    local_20 = param_1;\nLAB_0005cc50:\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar4 < uVar2) {\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }\n    else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }\n  }" (if "if") (parenthesized_expression "(uVar2 == uVar4)" (( "(") (binary_expression "uVar2 == uVar4" (identifier "uVar2") (== "==") (identifier "uVar4")) () ")")) (compound_statement "{\n    *(undefined4 *)(iVar1 + local_20 * 4) = 0;\n    do {\n      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);\n      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);\n      if (uVar2 != uVar4) goto LAB_0005cc50;\n      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;\n      local_20 = local_20 + -1;\n    } while (local_20 != 0);\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    uVar5 = 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(iVar1 + local_20 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + local_20 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar1 + local_20 * 4)" (* "*") (cast_expression "(undefined4 *)(iVar1 + local_20 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + local_20 * 4)" (( "(") (binary_expression "iVar1 + local_20 * 4" (identifier "iVar1") (+ "+") (binary_expression "local_20 * 4" (identifier "local_20") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);\n      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);\n      if (uVar2 != uVar4) goto LAB_0005cc50;\n      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;\n      local_20 = local_20 + -1;\n    } while (local_20 != 0);" (do "do") (compound_statement "{\n      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);\n      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);\n      if (uVar2 != uVar4) goto LAB_0005cc50;\n      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;\n      local_20 = local_20 + -1;\n    }" ({ "{") (expression_statement "uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);" (assignment_expression "uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(iVar3 + -4 + local_20 * 4)" (* "*") (cast_expression "(uint *)(iVar3 + -4 + local_20 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + -4 + local_20 * 4)" (( "(") (binary_expression "iVar3 + -4 + local_20 * 4" (binary_expression "iVar3 + -4" (identifier "iVar3") (+ "+") (number_literal "-4")) (+ "+") (binary_expression "local_20 * 4" (identifier "local_20") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);" (assignment_expression "uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(extraout_ECX + -4 + local_20 * 4)" (* "*") (cast_expression "(uint *)(extraout_ECX + -4 + local_20 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(extraout_ECX + -4 + local_20 * 4)" (( "(") (binary_expression "extraout_ECX + -4 + local_20 * 4" (binary_expression "extraout_ECX + -4" (identifier "extraout_ECX") (+ "+") (number_literal "-4")) (+ "+") (binary_expression "local_20 * 4" (identifier "local_20") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (uVar2 != uVar4) goto LAB_0005cc50;" (if "if") (parenthesized_expression "(uVar2 != uVar4)" (( "(") (binary_expression "uVar2 != uVar4" (identifier "uVar2") (!= "!=") (identifier "uVar4")) () ")")) (goto_statement "goto LAB_0005cc50;" (goto "goto") (statement_identifier "LAB_0005cc50") (; ";"))) (expression_statement "*(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar1 + -4 + local_20 * 4)" (* "*") (cast_expression "(undefined4 *)(iVar1 + -4 + local_20 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -4 + local_20 * 4)" (( "(") (binary_expression "iVar1 + -4 + local_20 * 4" (binary_expression "iVar1 + -4" (identifier "iVar1") (+ "+") (number_literal "-4")) (+ "+") (binary_expression "local_20 * 4" (identifier "local_20") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_20 = local_20 + -1;" (assignment_expression "local_20 = local_20 + -1" (identifier "local_20") (= "=") (binary_expression "local_20 + -1" (identifier "local_20") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_20 != 0)" (( "(") (binary_expression "local_20 != 0" (identifier "local_20") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);" (assignment_expression "puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd)" (identifier "puVar6") (= "=") (pointer_expression "*(undefined4 **)(unaff_EDI + 0x3c1bd)" (* "*") (cast_expression "(undefined4 **)(unaff_EDI + 0x3c1bd)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EDI + 0x3c1bd)" (( "(") (binary_expression "unaff_EDI + 0x3c1bd" (identifier "unaff_EDI") (+ "+") (number_literal "0x3c1bd")) () ")"))))) (; ";")) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    local_20 = param_1;\nLAB_0005cc50:\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar4 < uVar2) {\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }\n    else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }\n  }" (else "else") (compound_statement "{\n    local_20 = param_1;\nLAB_0005cc50:\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);\n    if (uVar4 < uVar2) {\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }\n    else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }\n  }" ({ "{") (expression_statement "local_20 = param_1;" (assignment_expression "local_20 = param_1" (identifier "local_20") (= "=") (identifier "param_1")) (; ";")) (labeled_statement "LAB_0005cc50:\n    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);" (statement_identifier "LAB_0005cc50") (: ":") (expression_statement "puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);" (assignment_expression "puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd)" (identifier "puVar6") (= "=") (pointer_expression "*(undefined4 **)(unaff_EDI + 0x3c1bd)" (* "*") (cast_expression "(undefined4 **)(unaff_EDI + 0x3c1bd)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EDI + 0x3c1bd)" (( "(") (binary_expression "unaff_EDI + 0x3c1bd" (identifier "unaff_EDI") (+ "+") (number_literal "0x3c1bd")) () ")"))))) (; ";"))) (if_statement "if (uVar4 < uVar2) {\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }\n    else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }" (if "if") (parenthesized_expression "(uVar4 < uVar2)" (( "(") (binary_expression "uVar4 < uVar2" (identifier "uVar4") (< "<") (identifier "uVar2")) () ")")) (compound_statement "{\n      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);\n      uVar5 = 0;\n    }" ({ "{") (expression_statement "(*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);" (call_expression "(*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20)" (parenthesized_expression "(*(code *)puVar6[0x22])" (( "(") (pointer_expression "*(code *)puVar6[0x22]" (* "*") (cast_expression "(code *)puVar6[0x22]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar6[0x22]" (identifier "puVar6") ([ "[") (number_literal "0x22") (] "]")))) () ")")) (argument_list "(uVar7,extraout_ECX,local_20)" (( "(") (identifier "uVar7") (, ",") (identifier "extraout_ECX") (, ",") (identifier "local_20") () ")"))) (; ";")) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }" (else "else") (compound_statement "{\n      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);\n      uVar5 = 0xffffffff;\n    }" ({ "{") (expression_statement "(*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);" (call_expression "(*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20)" (parenthesized_expression "(*(code *)puVar6[0x22])" (( "(") (pointer_expression "*(code *)puVar6[0x22]" (* "*") (cast_expression "(code *)puVar6[0x22]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar6[0x22]" (identifier "puVar6") ([ "[") (number_literal "0x22") (] "]")))) () ")")) (argument_list "(iVar1,extraout_ECX,iVar3,local_20)" (( "(") (identifier "iVar1") (, ",") (identifier "extraout_ECX") (, ",") (identifier "iVar3") (, ",") (identifier "local_20") () ")"))) (; ";")) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" (identifier "uVar5") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")))) (} "}")))) (expression_statement "(*(code *)*puVar6)(iVar3,iVar3,extraout_ECX,param_1);" (call_expression "(*(code *)*puVar6)(iVar3,iVar3,extraout_ECX,param_1)" (parenthesized_expression "(*(code *)*puVar6)" (( "(") (pointer_expression "*(code *)*puVar6" (* "*") (cast_expression "(code *)*puVar6" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")))) () ")")) (argument_list "(iVar3,iVar3,extraout_ECX,param_1)" (( "(") (identifier "iVar3") (, ",") (identifier "iVar3") (, ",") (identifier "extraout_ECX") (, ",") (identifier "param_1") () ")"))) (; ";")) (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}")))

int function_1(type_1 rm,type_1 rp,type_2 rs,type_3 n)

{
  int var_3;
  type_4 var_4;
  int var_2;
  type_4 var_5;
  int var_6;
  int var_8;
  type_5 *puVar5;
  type_6 uVar6;
  type_1 var_7;
  
  uVar6 = var_1();
  var_2 = (int)((type_7)uVar6 >> 0x20);
  var_6 = (int)uVar6;
  var_7 = (type_1)((int)rm + -1);
  var_4 = *(type_4 *)(var_2 + (int)var_7 * 4);
  var_5 = *(type_4 *)(var_3 + (int)var_7 * 4);
  if (var_4 == var_5) {
    *(type_5 *)(var_6 + (int)var_7 * 4) = 0;
    do {
      var_4 = *(type_4 *)(var_2 + -4 + (int)var_7 * 4);
      var_5 = *(type_4 *)(var_3 + -4 + (int)var_7 * 4);
      if (var_4 != var_5) goto LAB_0005cc50;
      *(type_5 *)(var_6 + -4 + (int)var_7 * 4) = 0;
      var_7 = (type_1)((int)var_7 + -1);
    } while (var_7 != (type_1)0x0);
    puVar5 = *(type_5 **)(var_8 + 0x3c1bd);
    var_6 = 0;
  }
  else {
    var_7 = rm;
LAB_0005cc50:
    puVar5 = *(type_5 **)(var_8 + 0x3c1bd);
    if (var_5 < var_4) {
      (*(type_8 *)puVar5[0x22])(uVar6,var_3,var_7);
      var_6 = 0;
    }
    else {
      (*(type_8 *)puVar5[0x22])(var_6,var_3,var_2,var_7);
      var_6 = -1;
    }
  }
  (*(type_8 *)*puVar5)(var_2,var_2,var_3,rm);
  return var_6;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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: (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: (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_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: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))) (do_statement body: (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: (binary_expression left: (identifier) right: (number_literal)) right: (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: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (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 declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))) (return_statement (identifier)))))

undefined4 MASKED(int param_1)

{
  int iVar1;
  int extraout_ECX;
  uint uVar2;
  int iVar3;
  uint uVar4;
  undefined4 uVar5;
  int unaff_EDI;
  undefined4 *puVar6;
  undefined8 uVar7;
  int local_20;
  
  uVar7 = FUN_00021fa2();
  iVar3 = (int)((ulonglong)uVar7 >> 0x20);
  iVar1 = (int)uVar7;
  local_20 = param_1 + -1;
  uVar2 = *(uint *)(iVar3 + local_20 * 4);
  uVar4 = *(uint *)(extraout_ECX + local_20 * 4);
  if (uVar2 == uVar4) {
    *(undefined4 *)(iVar1 + local_20 * 4) = 0;
    do {
      uVar2 = *(uint *)(iVar3 + -4 + local_20 * 4);
      uVar4 = *(uint *)(extraout_ECX + -4 + local_20 * 4);
      if (uVar2 != uVar4) goto LAB_0005cc50;
      *(undefined4 *)(iVar1 + -4 + local_20 * 4) = 0;
      local_20 = local_20 + -1;
    } while (local_20 != 0);
    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);
    uVar5 = 0;
  }
  else {
    local_20 = param_1;
LAB_0005cc50:
    puVar6 = *(undefined4 **)(unaff_EDI + 0x3c1bd);
    if (uVar4 < uVar2) {
      (*(code *)puVar6[0x22])(uVar7,extraout_ECX,local_20);
      uVar5 = 0;
    }
    else {
      (*(code *)puVar6[0x22])(iVar1,extraout_ECX,iVar3,local_20);
      uVar5 = 0xffffffff;
    }
  }
  (*(code *)*puVar6)(iVar3,iVar3,extraout_ECX,param_1);
  return uVar5;
}

