
bfd_boolean frag_offset_fixed_p(fragS *frag1,fragS *frag2,offsetT *offset)

{
  offsetT *poVar1;
  offsetT *poVar2;
  offsetT *poVar3;
  relax_stateT rVar4;
  frag *pfVar5;
  int iVar6;
  int iVar7;
  
  iVar7 = frag1->fr_address - frag2->fr_address;
  pfVar5 = frag1;
  iVar6 = iVar7;
  if (frag1 != frag2) {
    while (pfVar5->fr_type == rs_fill) {
      poVar1 = &pfVar5->fr_offset;
      poVar2 = &pfVar5->fr_var;
      poVar3 = &pfVar5->fr_fix;
      pfVar5 = pfVar5->fr_next;
      iVar6 = iVar6 + *poVar1 * *poVar2 + *poVar3;
      if (pfVar5 == (frag *)0x0) goto LAB_00023a8f;
      if (frag2 == pfVar5) {
        *offset = iVar6;
        return 1;
      }
    }
    rVar4 = frag2->fr_type;
    while( true ) {
      if (rVar4 != rs_fill) {
        return 0;
      }
      poVar1 = &frag2->fr_offset;
      poVar2 = &frag2->fr_var;
      poVar3 = &frag2->fr_fix;
      frag2 = frag2->fr_next;
      iVar7 = iVar7 - (*poVar1 * *poVar2 + *poVar3);
      if (frag2 == (fragS *)0x0) {
        return 0;
      }
      if (frag1 == frag2) break;
LAB_00023a8f:
      rVar4 = frag2->fr_type;
    }
  }
  *offset = iVar7;
  return 1;
}



undefined4 FUN_00023a30(int *param_1,int *param_2,int *param_3)

{
  int *piVar1;
  int *piVar2;
  int *piVar3;
  int *piVar4;
  int iVar5;
  int iVar6;
  
  iVar6 = *param_1 - *param_2;
  piVar4 = param_1;
  iVar5 = iVar6;
  if (param_1 != param_2) {
    while (piVar4[0xc] == 1) {
      piVar1 = piVar4 + 4;
      piVar2 = piVar4 + 3;
      piVar3 = piVar4 + 2;
      piVar4 = (int *)piVar4[7];
      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;
      if (piVar4 == (int *)0x0) goto LAB_00023a8f;
      if (param_2 == piVar4) {
        *param_3 = iVar5;
        return 1;
      }
    }
    iVar5 = param_2[0xc];
    while( true ) {
      if (iVar5 != 1) {
        return 0;
      }
      piVar4 = param_2 + 4;
      piVar1 = param_2 + 3;
      piVar2 = param_2 + 2;
      param_2 = (int *)param_2[7];
      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);
      if (param_2 == (int *)0x0) {
        return 0;
      }
      if (param_1 == param_2) break;
LAB_00023a8f:
      iVar5 = param_2[0xc];
    }
  }
  *param_3 = iVar6;
  return 1;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0x14]
MOV ESI,dword ptr [EDI]
MOV EAX,EDI
SUB ESI,dword ptr [EDX]
MOV EBX,ESI
CMP EDI,EDX
JNZ 0x00023a67
JMP 0x00023aa0
MOV ECX,dword ptr [EAX + 0x10]
IMUL ECX,dword ptr [EAX + 0xc]
ADD ECX,dword ptr [EAX + 0x8]
MOV EAX,dword ptr [EAX + 0x1c]
ADD EBX,ECX
TEST EAX,EAX
JZ 0x00023a8f
CMP EDX,EAX
JZ 0x00023ab0
CMP dword ptr [EAX + 0x30],0x1
JZ 0x00023a50
CMP dword ptr [EDX + 0x30],0x1
JNZ 0x00023a95
LEA ESI,[ESI]
NOP
MOV EAX,dword ptr [EDX + 0x10]
IMUL EAX,dword ptr [EDX + 0xc]
ADD EAX,dword ptr [EDX + 0x8]
MOV EDX,dword ptr [EDX + 0x1c]
SUB ESI,EAX
TEST EDX,EDX
JZ 0x00023a95
CMP EDI,EDX
JZ 0x00023aa0
CMP dword ptr [EDX + 0x30],0x1
JZ 0x00023a78
POP EBX
XOR EAX,EAX
POP ESI
POP EDI
RET
MOV EAX,dword ptr [ESP + 0x18]
MOV dword ptr [EAX],ESI
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
RET
MOV EAX,dword ptr [ESP + 0x18]
MOV dword ptr [EAX],EBX
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
RET
(translation_unit "undefined4 FUN_00023a30(int *param_1,int *param_2,int *param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar6 = *param_1 - *param_2;\n  piVar4 = param_1;\n  iVar5 = iVar6;\n  if (param_1 != param_2) {\n    while (piVar4[0xc] == 1) {\n      piVar1 = piVar4 + 4;\n      piVar2 = piVar4 + 3;\n      piVar3 = piVar4 + 2;\n      piVar4 = (int *)piVar4[7];\n      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;\n      if (piVar4 == (int *)0x0) goto LAB_00023a8f;\n      if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }\n    }\n    iVar5 = param_2[0xc];\n    while( true ) {\n      if (iVar5 != 1) {\n        return 0;\n      }\n      piVar4 = param_2 + 4;\n      piVar1 = param_2 + 3;\n      piVar2 = param_2 + 2;\n      param_2 = (int *)param_2[7];\n      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);\n      if (param_2 == (int *)0x0) {\n        return 0;\n      }\n      if (param_1 == param_2) break;\nLAB_00023a8f:\n      iVar5 = param_2[0xc];\n    }\n  }\n  *param_3 = iVar6;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00023a30(int *param_1,int *param_2,int *param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar6 = *param_1 - *param_2;\n  piVar4 = param_1;\n  iVar5 = iVar6;\n  if (param_1 != param_2) {\n    while (piVar4[0xc] == 1) {\n      piVar1 = piVar4 + 4;\n      piVar2 = piVar4 + 3;\n      piVar3 = piVar4 + 2;\n      piVar4 = (int *)piVar4[7];\n      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;\n      if (piVar4 == (int *)0x0) goto LAB_00023a8f;\n      if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }\n    }\n    iVar5 = param_2[0xc];\n    while( true ) {\n      if (iVar5 != 1) {\n        return 0;\n      }\n      piVar4 = param_2 + 4;\n      piVar1 = param_2 + 3;\n      piVar2 = param_2 + 2;\n      param_2 = (int *)param_2[7];\n      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);\n      if (param_2 == (int *)0x0) {\n        return 0;\n      }\n      if (param_1 == param_2) break;\nLAB_00023a8f:\n      iVar5 = param_2[0xc];\n    }\n  }\n  *param_3 = iVar6;\n  return 1;\n}" type_identifier (function_declarator "FUN_00023a30(int *param_1,int *param_2,int *param_3)" identifier (parameter_list "(int *param_1,int *param_2,int *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar6 = *param_1 - *param_2;\n  piVar4 = param_1;\n  iVar5 = iVar6;\n  if (param_1 != param_2) {\n    while (piVar4[0xc] == 1) {\n      piVar1 = piVar4 + 4;\n      piVar2 = piVar4 + 3;\n      piVar3 = piVar4 + 2;\n      piVar4 = (int *)piVar4[7];\n      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;\n      if (piVar4 == (int *)0x0) goto LAB_00023a8f;\n      if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }\n    }\n    iVar5 = param_2[0xc];\n    while( true ) {\n      if (iVar5 != 1) {\n        return 0;\n      }\n      piVar4 = param_2 + 4;\n      piVar1 = param_2 + 3;\n      piVar2 = param_2 + 2;\n      param_2 = (int *)param_2[7];\n      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);\n      if (param_2 == (int *)0x0) {\n        return 0;\n      }\n      if (param_1 == param_2) break;\nLAB_00023a8f:\n      iVar5 = param_2[0xc];\n    }\n  }\n  *param_3 = iVar6;\n  return 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar6 = *param_1 - *param_2;" (assignment_expression "iVar6 = *param_1 - *param_2" identifier = (binary_expression "*param_1 - *param_2" (pointer_expression "*param_1" * identifier) - (pointer_expression "*param_2" * identifier))) ;) (expression_statement "piVar4 = param_1;" (assignment_expression "piVar4 = param_1" identifier = identifier) ;) (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" identifier = identifier) ;) (if_statement "if (param_1 != param_2) {\n    while (piVar4[0xc] == 1) {\n      piVar1 = piVar4 + 4;\n      piVar2 = piVar4 + 3;\n      piVar3 = piVar4 + 2;\n      piVar4 = (int *)piVar4[7];\n      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;\n      if (piVar4 == (int *)0x0) goto LAB_00023a8f;\n      if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }\n    }\n    iVar5 = param_2[0xc];\n    while( true ) {\n      if (iVar5 != 1) {\n        return 0;\n      }\n      piVar4 = param_2 + 4;\n      piVar1 = param_2 + 3;\n      piVar2 = param_2 + 2;\n      param_2 = (int *)param_2[7];\n      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);\n      if (param_2 == (int *)0x0) {\n        return 0;\n      }\n      if (param_1 == param_2) break;\nLAB_00023a8f:\n      iVar5 = param_2[0xc];\n    }\n  }" if (parenthesized_expression "(param_1 != param_2)" ( (binary_expression "param_1 != param_2" identifier != identifier) )) (compound_statement "{\n    while (piVar4[0xc] == 1) {\n      piVar1 = piVar4 + 4;\n      piVar2 = piVar4 + 3;\n      piVar3 = piVar4 + 2;\n      piVar4 = (int *)piVar4[7];\n      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;\n      if (piVar4 == (int *)0x0) goto LAB_00023a8f;\n      if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }\n    }\n    iVar5 = param_2[0xc];\n    while( true ) {\n      if (iVar5 != 1) {\n        return 0;\n      }\n      piVar4 = param_2 + 4;\n      piVar1 = param_2 + 3;\n      piVar2 = param_2 + 2;\n      param_2 = (int *)param_2[7];\n      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);\n      if (param_2 == (int *)0x0) {\n        return 0;\n      }\n      if (param_1 == param_2) break;\nLAB_00023a8f:\n      iVar5 = param_2[0xc];\n    }\n  }" { (while_statement "while (piVar4[0xc] == 1) {\n      piVar1 = piVar4 + 4;\n      piVar2 = piVar4 + 3;\n      piVar3 = piVar4 + 2;\n      piVar4 = (int *)piVar4[7];\n      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;\n      if (piVar4 == (int *)0x0) goto LAB_00023a8f;\n      if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }\n    }" while (parenthesized_expression "(piVar4[0xc] == 1)" ( (binary_expression "piVar4[0xc] == 1" (subscript_expression "piVar4[0xc]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      piVar1 = piVar4 + 4;\n      piVar2 = piVar4 + 3;\n      piVar3 = piVar4 + 2;\n      piVar4 = (int *)piVar4[7];\n      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;\n      if (piVar4 == (int *)0x0) goto LAB_00023a8f;\n      if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }\n    }" { (expression_statement "piVar1 = piVar4 + 4;" (assignment_expression "piVar1 = piVar4 + 4" identifier = (binary_expression "piVar4 + 4" identifier + number_literal)) ;) (expression_statement "piVar2 = piVar4 + 3;" (assignment_expression "piVar2 = piVar4 + 3" identifier = (binary_expression "piVar4 + 3" identifier + number_literal)) ;) (expression_statement "piVar3 = piVar4 + 2;" (assignment_expression "piVar3 = piVar4 + 2" identifier = (binary_expression "piVar4 + 2" identifier + number_literal)) ;) (expression_statement "piVar4 = (int *)piVar4[7];" (assignment_expression "piVar4 = (int *)piVar4[7]" identifier = (cast_expression "(int *)piVar4[7]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[7]" identifier [ number_literal ]))) ;) (expression_statement "iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;" (assignment_expression "iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3" identifier = (binary_expression "iVar5 + *piVar1 * *piVar2 + *piVar3" (binary_expression "iVar5 + *piVar1 * *piVar2" identifier + (binary_expression "*piVar1 * *piVar2" (pointer_expression "*piVar1" * identifier) * (pointer_expression "*piVar2" * identifier))) + (pointer_expression "*piVar3" * identifier))) ;) (if_statement "if (piVar4 == (int *)0x0) goto LAB_00023a8f;" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00023a8f;" goto statement_identifier ;)) (if_statement "if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }" if (parenthesized_expression "(param_2 == piVar4)" ( (binary_expression "param_2 == piVar4" identifier == identifier) )) (compound_statement "{\n        *param_3 = iVar5;\n        return 1;\n      }" { (expression_statement "*param_3 = iVar5;" (assignment_expression "*param_3 = iVar5" (pointer_expression "*param_3" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "iVar5 = param_2[0xc];" (assignment_expression "iVar5 = param_2[0xc]" identifier = (subscript_expression "param_2[0xc]" identifier [ number_literal ])) ;) (while_statement "while( true ) {\n      if (iVar5 != 1) {\n        return 0;\n      }\n      piVar4 = param_2 + 4;\n      piVar1 = param_2 + 3;\n      piVar2 = param_2 + 2;\n      param_2 = (int *)param_2[7];\n      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);\n      if (param_2 == (int *)0x0) {\n        return 0;\n      }\n      if (param_1 == param_2) break;\nLAB_00023a8f:\n      iVar5 = param_2[0xc];\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (iVar5 != 1) {\n        return 0;\n      }\n      piVar4 = param_2 + 4;\n      piVar1 = param_2 + 3;\n      piVar2 = param_2 + 2;\n      param_2 = (int *)param_2[7];\n      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);\n      if (param_2 == (int *)0x0) {\n        return 0;\n      }\n      if (param_1 == param_2) break;\nLAB_00023a8f:\n      iVar5 = param_2[0xc];\n    }" { (if_statement "if (iVar5 != 1) {\n        return 0;\n      }" if (parenthesized_expression "(iVar5 != 1)" ( (binary_expression "iVar5 != 1" identifier != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar4 = param_2 + 4;" (assignment_expression "piVar4 = param_2 + 4" identifier = (binary_expression "param_2 + 4" identifier + number_literal)) ;) (expression_statement "piVar1 = param_2 + 3;" (assignment_expression "piVar1 = param_2 + 3" identifier = (binary_expression "param_2 + 3" identifier + number_literal)) ;) (expression_statement "piVar2 = param_2 + 2;" (assignment_expression "piVar2 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "param_2 = (int *)param_2[7];" (assignment_expression "param_2 = (int *)param_2[7]" identifier = (cast_expression "(int *)param_2[7]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[7]" identifier [ number_literal ]))) ;) (expression_statement "iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);" (assignment_expression "iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2)" identifier = (binary_expression "iVar6 - (*piVar4 * *piVar1 + *piVar2)" identifier - (parenthesized_expression "(*piVar4 * *piVar1 + *piVar2)" ( (binary_expression "*piVar4 * *piVar1 + *piVar2" (binary_expression "*piVar4 * *piVar1" (pointer_expression "*piVar4" * identifier) * (pointer_expression "*piVar1" * identifier)) + (pointer_expression "*piVar2" * identifier)) )))) ;) (if_statement "if (param_2 == (int *)0x0) {\n        return 0;\n      }" if (parenthesized_expression "(param_2 == (int *)0x0)" ( (binary_expression "param_2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_1 == param_2) break;" if (parenthesized_expression "(param_1 == param_2)" ( (binary_expression "param_1 == param_2" identifier == identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_00023a8f:\n      iVar5 = param_2[0xc];" statement_identifier : (expression_statement "iVar5 = param_2[0xc];" (assignment_expression "iVar5 = param_2[0xc]" identifier = (subscript_expression "param_2[0xc]" identifier [ number_literal ])) ;)) })) })) (expression_statement "*param_3 = iVar6;" (assignment_expression "*param_3 = iVar6" (pointer_expression "*param_3" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "bfd_boolean frag_offset_fixed_p(fragS *frag1,fragS *frag2,offsetT *offset)\n\n{\n  offsetT *poVar1;\n  offsetT *poVar2;\n  offsetT *poVar3;\n  relax_stateT rVar4;\n  frag *pfVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar7 = frag1->fr_address - frag2->fr_address;\n  pfVar5 = frag1;\n  iVar6 = iVar7;\n  if (frag1 != frag2) {\n    while (pfVar5->fr_type == rs_fill) {\n      poVar1 = &pfVar5->fr_offset;\n      poVar2 = &pfVar5->fr_var;\n      poVar3 = &pfVar5->fr_fix;\n      pfVar5 = pfVar5->fr_next;\n      iVar6 = iVar6 + *poVar1 * *poVar2 + *poVar3;\n      if (pfVar5 == (frag *)0x0) goto LAB_00023a8f;\n      if (frag2 == pfVar5) {\n        *offset = iVar6;\n        return 1;\n      }\n    }\n    rVar4 = frag2->fr_type;\n    while( true ) {\n      if (rVar4 != rs_fill) {\n        return 0;\n      }\n      poVar1 = &frag2->fr_offset;\n      poVar2 = &frag2->fr_var;\n      poVar3 = &frag2->fr_fix;\n      frag2 = frag2->fr_next;\n      iVar7 = iVar7 - (*poVar1 * *poVar2 + *poVar3);\n      if (frag2 == (fragS *)0x0) {\n        return 0;\n      }\n      if (frag1 == frag2) break;\nLAB_00023a8f:\n      rVar4 = frag2->fr_type;\n    }\n  }\n  *offset = iVar7;\n  return 1;\n}\n\n" (function_definition "bfd_boolean frag_offset_fixed_p(fragS *frag1,fragS *frag2,offsetT *offset)\n\n{\n  offsetT *poVar1;\n  offsetT *poVar2;\n  offsetT *poVar3;\n  relax_stateT rVar4;\n  frag *pfVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar7 = frag1->fr_address - frag2->fr_address;\n  pfVar5 = frag1;\n  iVar6 = iVar7;\n  if (frag1 != frag2) {\n    while (pfVar5->fr_type == rs_fill) {\n      poVar1 = &pfVar5->fr_offset;\n      poVar2 = &pfVar5->fr_var;\n      poVar3 = &pfVar5->fr_fix;\n      pfVar5 = pfVar5->fr_next;\n      iVar6 = iVar6 + *poVar1 * *poVar2 + *poVar3;\n      if (pfVar5 == (frag *)0x0) goto LAB_00023a8f;\n      if (frag2 == pfVar5) {\n        *offset = iVar6;\n        return 1;\n      }\n    }\n    rVar4 = frag2->fr_type;\n    while( true ) {\n      if (rVar4 != rs_fill) {\n        return 0;\n      }\n      poVar1 = &frag2->fr_offset;\n      poVar2 = &frag2->fr_var;\n      poVar3 = &frag2->fr_fix;\n      frag2 = frag2->fr_next;\n      iVar7 = iVar7 - (*poVar1 * *poVar2 + *poVar3);\n      if (frag2 == (fragS *)0x0) {\n        return 0;\n      }\n      if (frag1 == frag2) break;\nLAB_00023a8f:\n      rVar4 = frag2->fr_type;\n    }\n  }\n  *offset = iVar7;\n  return 1;\n}" type_identifier (function_declarator "frag_offset_fixed_p(fragS *frag1,fragS *frag2,offsetT *offset)" identifier (parameter_list "(fragS *frag1,fragS *frag2,offsetT *offset)" ( (parameter_declaration "fragS *frag1" type_identifier (pointer_declarator "*frag1" * identifier)) , (parameter_declaration "fragS *frag2" type_identifier (pointer_declarator "*frag2" * identifier)) , (parameter_declaration "offsetT *offset" type_identifier (pointer_declarator "*offset" * identifier)) ))) (compound_statement "{\n  offsetT *poVar1;\n  offsetT *poVar2;\n  offsetT *poVar3;\n  relax_stateT rVar4;\n  frag *pfVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar7 = frag1->fr_address - frag2->fr_address;\n  pfVar5 = frag1;\n  iVar6 = iVar7;\n  if (frag1 != frag2) {\n    while (pfVar5->fr_type == rs_fill) {\n      poVar1 = &pfVar5->fr_offset;\n      poVar2 = &pfVar5->fr_var;\n      poVar3 = &pfVar5->fr_fix;\n      pfVar5 = pfVar5->fr_next;\n      iVar6 = iVar6 + *poVar1 * *poVar2 + *poVar3;\n      if (pfVar5 == (frag *)0x0) goto LAB_00023a8f;\n      if (frag2 == pfVar5) {\n        *offset = iVar6;\n        return 1;\n      }\n    }\n    rVar4 = frag2->fr_type;\n    while( true ) {\n      if (rVar4 != rs_fill) {\n        return 0;\n      }\n      poVar1 = &frag2->fr_offset;\n      poVar2 = &frag2->fr_var;\n      poVar3 = &frag2->fr_fix;\n      frag2 = frag2->fr_next;\n      iVar7 = iVar7 - (*poVar1 * *poVar2 + *poVar3);\n      if (frag2 == (fragS *)0x0) {\n        return 0;\n      }\n      if (frag1 == frag2) break;\nLAB_00023a8f:\n      rVar4 = frag2->fr_type;\n    }\n  }\n  *offset = iVar7;\n  return 1;\n}" { (declaration "offsetT *poVar1;" type_identifier (pointer_declarator "*poVar1" * identifier) ;) (declaration "offsetT *poVar2;" type_identifier (pointer_declarator "*poVar2" * identifier) ;) (declaration "offsetT *poVar3;" type_identifier (pointer_declarator "*poVar3" * identifier) ;) (declaration "relax_stateT rVar4;" type_identifier identifier ;) (declaration "frag *pfVar5;" type_identifier (pointer_declarator "*pfVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (expression_statement "iVar7 = frag1->fr_address - frag2->fr_address;" (assignment_expression "iVar7 = frag1->fr_address - frag2->fr_address" identifier = (binary_expression "frag1->fr_address - frag2->fr_address" (field_expression "frag1->fr_address" identifier -> field_identifier) - (field_expression "frag2->fr_address" identifier -> field_identifier))) ;) (expression_statement "pfVar5 = frag1;" (assignment_expression "pfVar5 = frag1" identifier = identifier) ;) (expression_statement "iVar6 = iVar7;" (assignment_expression "iVar6 = iVar7" identifier = identifier) ;) (if_statement "if (frag1 != frag2) {\n    while (pfVar5->fr_type == rs_fill) {\n      poVar1 = &pfVar5->fr_offset;\n      poVar2 = &pfVar5->fr_var;\n      poVar3 = &pfVar5->fr_fix;\n      pfVar5 = pfVar5->fr_next;\n      iVar6 = iVar6 + *poVar1 * *poVar2 + *poVar3;\n      if (pfVar5 == (frag *)0x0) goto LAB_00023a8f;\n      if (frag2 == pfVar5) {\n        *offset = iVar6;\n        return 1;\n      }\n    }\n    rVar4 = frag2->fr_type;\n    while( true ) {\n      if (rVar4 != rs_fill) {\n        return 0;\n      }\n      poVar1 = &frag2->fr_offset;\n      poVar2 = &frag2->fr_var;\n      poVar3 = &frag2->fr_fix;\n      frag2 = frag2->fr_next;\n      iVar7 = iVar7 - (*poVar1 * *poVar2 + *poVar3);\n      if (frag2 == (fragS *)0x0) {\n        return 0;\n      }\n      if (frag1 == frag2) break;\nLAB_00023a8f:\n      rVar4 = frag2->fr_type;\n    }\n  }" if (parenthesized_expression "(frag1 != frag2)" ( (binary_expression "frag1 != frag2" identifier != identifier) )) (compound_statement "{\n    while (pfVar5->fr_type == rs_fill) {\n      poVar1 = &pfVar5->fr_offset;\n      poVar2 = &pfVar5->fr_var;\n      poVar3 = &pfVar5->fr_fix;\n      pfVar5 = pfVar5->fr_next;\n      iVar6 = iVar6 + *poVar1 * *poVar2 + *poVar3;\n      if (pfVar5 == (frag *)0x0) goto LAB_00023a8f;\n      if (frag2 == pfVar5) {\n        *offset = iVar6;\n        return 1;\n      }\n    }\n    rVar4 = frag2->fr_type;\n    while( true ) {\n      if (rVar4 != rs_fill) {\n        return 0;\n      }\n      poVar1 = &frag2->fr_offset;\n      poVar2 = &frag2->fr_var;\n      poVar3 = &frag2->fr_fix;\n      frag2 = frag2->fr_next;\n      iVar7 = iVar7 - (*poVar1 * *poVar2 + *poVar3);\n      if (frag2 == (fragS *)0x0) {\n        return 0;\n      }\n      if (frag1 == frag2) break;\nLAB_00023a8f:\n      rVar4 = frag2->fr_type;\n    }\n  }" { (while_statement "while (pfVar5->fr_type == rs_fill) {\n      poVar1 = &pfVar5->fr_offset;\n      poVar2 = &pfVar5->fr_var;\n      poVar3 = &pfVar5->fr_fix;\n      pfVar5 = pfVar5->fr_next;\n      iVar6 = iVar6 + *poVar1 * *poVar2 + *poVar3;\n      if (pfVar5 == (frag *)0x0) goto LAB_00023a8f;\n      if (frag2 == pfVar5) {\n        *offset = iVar6;\n        return 1;\n      }\n    }" while (parenthesized_expression "(pfVar5->fr_type == rs_fill)" ( (binary_expression "pfVar5->fr_type == rs_fill" (field_expression "pfVar5->fr_type" identifier -> field_identifier) == identifier) )) (compound_statement "{\n      poVar1 = &pfVar5->fr_offset;\n      poVar2 = &pfVar5->fr_var;\n      poVar3 = &pfVar5->fr_fix;\n      pfVar5 = pfVar5->fr_next;\n      iVar6 = iVar6 + *poVar1 * *poVar2 + *poVar3;\n      if (pfVar5 == (frag *)0x0) goto LAB_00023a8f;\n      if (frag2 == pfVar5) {\n        *offset = iVar6;\n        return 1;\n      }\n    }" { (expression_statement "poVar1 = &pfVar5->fr_offset;" (assignment_expression "poVar1 = &pfVar5->fr_offset" identifier = (pointer_expression "&pfVar5->fr_offset" & (field_expression "pfVar5->fr_offset" identifier -> field_identifier))) ;) (expression_statement "poVar2 = &pfVar5->fr_var;" (assignment_expression "poVar2 = &pfVar5->fr_var" identifier = (pointer_expression "&pfVar5->fr_var" & (field_expression "pfVar5->fr_var" identifier -> field_identifier))) ;) (expression_statement "poVar3 = &pfVar5->fr_fix;" (assignment_expression "poVar3 = &pfVar5->fr_fix" identifier = (pointer_expression "&pfVar5->fr_fix" & (field_expression "pfVar5->fr_fix" identifier -> field_identifier))) ;) (expression_statement "pfVar5 = pfVar5->fr_next;" (assignment_expression "pfVar5 = pfVar5->fr_next" identifier = (field_expression "pfVar5->fr_next" identifier -> field_identifier)) ;) (expression_statement "iVar6 = iVar6 + *poVar1 * *poVar2 + *poVar3;" (assignment_expression "iVar6 = iVar6 + *poVar1 * *poVar2 + *poVar3" identifier = (binary_expression "iVar6 + *poVar1 * *poVar2 + *poVar3" (binary_expression "iVar6 + *poVar1 * *poVar2" identifier + (binary_expression "*poVar1 * *poVar2" (pointer_expression "*poVar1" * identifier) * (pointer_expression "*poVar2" * identifier))) + (pointer_expression "*poVar3" * identifier))) ;) (if_statement "if (pfVar5 == (frag *)0x0) goto LAB_00023a8f;" if (parenthesized_expression "(pfVar5 == (frag *)0x0)" ( (binary_expression "pfVar5 == (frag *)0x0" identifier == (cast_expression "(frag *)0x0" ( (type_descriptor "frag *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00023a8f;" goto statement_identifier ;)) (if_statement "if (frag2 == pfVar5) {\n        *offset = iVar6;\n        return 1;\n      }" if (parenthesized_expression "(frag2 == pfVar5)" ( (binary_expression "frag2 == pfVar5" identifier == identifier) )) (compound_statement "{\n        *offset = iVar6;\n        return 1;\n      }" { (expression_statement "*offset = iVar6;" (assignment_expression "*offset = iVar6" (pointer_expression "*offset" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "rVar4 = frag2->fr_type;" (assignment_expression "rVar4 = frag2->fr_type" identifier = (field_expression "frag2->fr_type" identifier -> field_identifier)) ;) (while_statement "while( true ) {\n      if (rVar4 != rs_fill) {\n        return 0;\n      }\n      poVar1 = &frag2->fr_offset;\n      poVar2 = &frag2->fr_var;\n      poVar3 = &frag2->fr_fix;\n      frag2 = frag2->fr_next;\n      iVar7 = iVar7 - (*poVar1 * *poVar2 + *poVar3);\n      if (frag2 == (fragS *)0x0) {\n        return 0;\n      }\n      if (frag1 == frag2) break;\nLAB_00023a8f:\n      rVar4 = frag2->fr_type;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (rVar4 != rs_fill) {\n        return 0;\n      }\n      poVar1 = &frag2->fr_offset;\n      poVar2 = &frag2->fr_var;\n      poVar3 = &frag2->fr_fix;\n      frag2 = frag2->fr_next;\n      iVar7 = iVar7 - (*poVar1 * *poVar2 + *poVar3);\n      if (frag2 == (fragS *)0x0) {\n        return 0;\n      }\n      if (frag1 == frag2) break;\nLAB_00023a8f:\n      rVar4 = frag2->fr_type;\n    }" { (if_statement "if (rVar4 != rs_fill) {\n        return 0;\n      }" if (parenthesized_expression "(rVar4 != rs_fill)" ( (binary_expression "rVar4 != rs_fill" identifier != identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "poVar1 = &frag2->fr_offset;" (assignment_expression "poVar1 = &frag2->fr_offset" identifier = (pointer_expression "&frag2->fr_offset" & (field_expression "frag2->fr_offset" identifier -> field_identifier))) ;) (expression_statement "poVar2 = &frag2->fr_var;" (assignment_expression "poVar2 = &frag2->fr_var" identifier = (pointer_expression "&frag2->fr_var" & (field_expression "frag2->fr_var" identifier -> field_identifier))) ;) (expression_statement "poVar3 = &frag2->fr_fix;" (assignment_expression "poVar3 = &frag2->fr_fix" identifier = (pointer_expression "&frag2->fr_fix" & (field_expression "frag2->fr_fix" identifier -> field_identifier))) ;) (expression_statement "frag2 = frag2->fr_next;" (assignment_expression "frag2 = frag2->fr_next" identifier = (field_expression "frag2->fr_next" identifier -> field_identifier)) ;) (expression_statement "iVar7 = iVar7 - (*poVar1 * *poVar2 + *poVar3);" (assignment_expression "iVar7 = iVar7 - (*poVar1 * *poVar2 + *poVar3)" identifier = (binary_expression "iVar7 - (*poVar1 * *poVar2 + *poVar3)" identifier - (parenthesized_expression "(*poVar1 * *poVar2 + *poVar3)" ( (binary_expression "*poVar1 * *poVar2 + *poVar3" (binary_expression "*poVar1 * *poVar2" (pointer_expression "*poVar1" * identifier) * (pointer_expression "*poVar2" * identifier)) + (pointer_expression "*poVar3" * identifier)) )))) ;) (if_statement "if (frag2 == (fragS *)0x0) {\n        return 0;\n      }" if (parenthesized_expression "(frag2 == (fragS *)0x0)" ( (binary_expression "frag2 == (fragS *)0x0" identifier == (cast_expression "(fragS *)0x0" ( (type_descriptor "fragS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (frag1 == frag2) break;" if (parenthesized_expression "(frag1 == frag2)" ( (binary_expression "frag1 == frag2" identifier == identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_00023a8f:\n      rVar4 = frag2->fr_type;" statement_identifier : (expression_statement "rVar4 = frag2->fr_type;" (assignment_expression "rVar4 = frag2->fr_type" identifier = (field_expression "frag2->fr_type" identifier -> field_identifier)) ;)) })) })) (expression_statement "*offset = iVar7;" (assignment_expression "*offset = iVar7" (pointer_expression "*offset" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00023a30(int *param_1,int *param_2,int *param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar6 = *param_1 - *param_2;\n  piVar4 = param_1;\n  iVar5 = iVar6;\n  if (param_1 != param_2) {\n    while (piVar4[0xc] == 1) {\n      piVar1 = piVar4 + 4;\n      piVar2 = piVar4 + 3;\n      piVar3 = piVar4 + 2;\n      piVar4 = (int *)piVar4[7];\n      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;\n      if (piVar4 == (int *)0x0) goto LAB_00023a8f;\n      if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }\n    }\n    iVar5 = param_2[0xc];\n    while( true ) {\n      if (iVar5 != 1) {\n        return 0;\n      }\n      piVar4 = param_2 + 4;\n      piVar1 = param_2 + 3;\n      piVar2 = param_2 + 2;\n      param_2 = (int *)param_2[7];\n      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);\n      if (param_2 == (int *)0x0) {\n        return 0;\n      }\n      if (param_1 == param_2) break;\nLAB_00023a8f:\n      iVar5 = param_2[0xc];\n    }\n  }\n  *param_3 = iVar6;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00023a30(int *param_1,int *param_2,int *param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar6 = *param_1 - *param_2;\n  piVar4 = param_1;\n  iVar5 = iVar6;\n  if (param_1 != param_2) {\n    while (piVar4[0xc] == 1) {\n      piVar1 = piVar4 + 4;\n      piVar2 = piVar4 + 3;\n      piVar3 = piVar4 + 2;\n      piVar4 = (int *)piVar4[7];\n      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;\n      if (piVar4 == (int *)0x0) goto LAB_00023a8f;\n      if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }\n    }\n    iVar5 = param_2[0xc];\n    while( true ) {\n      if (iVar5 != 1) {\n        return 0;\n      }\n      piVar4 = param_2 + 4;\n      piVar1 = param_2 + 3;\n      piVar2 = param_2 + 2;\n      param_2 = (int *)param_2[7];\n      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);\n      if (param_2 == (int *)0x0) {\n        return 0;\n      }\n      if (param_1 == param_2) break;\nLAB_00023a8f:\n      iVar5 = param_2[0xc];\n    }\n  }\n  *param_3 = iVar6;\n  return 1;\n}" type_identifier (function_declarator "FUN_00023a30(int *param_1,int *param_2,int *param_3)" identifier (parameter_list "(int *param_1,int *param_2,int *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar6 = *param_1 - *param_2;\n  piVar4 = param_1;\n  iVar5 = iVar6;\n  if (param_1 != param_2) {\n    while (piVar4[0xc] == 1) {\n      piVar1 = piVar4 + 4;\n      piVar2 = piVar4 + 3;\n      piVar3 = piVar4 + 2;\n      piVar4 = (int *)piVar4[7];\n      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;\n      if (piVar4 == (int *)0x0) goto LAB_00023a8f;\n      if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }\n    }\n    iVar5 = param_2[0xc];\n    while( true ) {\n      if (iVar5 != 1) {\n        return 0;\n      }\n      piVar4 = param_2 + 4;\n      piVar1 = param_2 + 3;\n      piVar2 = param_2 + 2;\n      param_2 = (int *)param_2[7];\n      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);\n      if (param_2 == (int *)0x0) {\n        return 0;\n      }\n      if (param_1 == param_2) break;\nLAB_00023a8f:\n      iVar5 = param_2[0xc];\n    }\n  }\n  *param_3 = iVar6;\n  return 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar6 = *param_1 - *param_2;" (assignment_expression "iVar6 = *param_1 - *param_2" identifier = (binary_expression "*param_1 - *param_2" (pointer_expression "*param_1" * identifier) - (pointer_expression "*param_2" * identifier))) ;) (expression_statement "piVar4 = param_1;" (assignment_expression "piVar4 = param_1" identifier = identifier) ;) (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" identifier = identifier) ;) (if_statement "if (param_1 != param_2) {\n    while (piVar4[0xc] == 1) {\n      piVar1 = piVar4 + 4;\n      piVar2 = piVar4 + 3;\n      piVar3 = piVar4 + 2;\n      piVar4 = (int *)piVar4[7];\n      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;\n      if (piVar4 == (int *)0x0) goto LAB_00023a8f;\n      if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }\n    }\n    iVar5 = param_2[0xc];\n    while( true ) {\n      if (iVar5 != 1) {\n        return 0;\n      }\n      piVar4 = param_2 + 4;\n      piVar1 = param_2 + 3;\n      piVar2 = param_2 + 2;\n      param_2 = (int *)param_2[7];\n      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);\n      if (param_2 == (int *)0x0) {\n        return 0;\n      }\n      if (param_1 == param_2) break;\nLAB_00023a8f:\n      iVar5 = param_2[0xc];\n    }\n  }" if (parenthesized_expression "(param_1 != param_2)" ( (binary_expression "param_1 != param_2" identifier != identifier) )) (compound_statement "{\n    while (piVar4[0xc] == 1) {\n      piVar1 = piVar4 + 4;\n      piVar2 = piVar4 + 3;\n      piVar3 = piVar4 + 2;\n      piVar4 = (int *)piVar4[7];\n      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;\n      if (piVar4 == (int *)0x0) goto LAB_00023a8f;\n      if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }\n    }\n    iVar5 = param_2[0xc];\n    while( true ) {\n      if (iVar5 != 1) {\n        return 0;\n      }\n      piVar4 = param_2 + 4;\n      piVar1 = param_2 + 3;\n      piVar2 = param_2 + 2;\n      param_2 = (int *)param_2[7];\n      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);\n      if (param_2 == (int *)0x0) {\n        return 0;\n      }\n      if (param_1 == param_2) break;\nLAB_00023a8f:\n      iVar5 = param_2[0xc];\n    }\n  }" { (while_statement "while (piVar4[0xc] == 1) {\n      piVar1 = piVar4 + 4;\n      piVar2 = piVar4 + 3;\n      piVar3 = piVar4 + 2;\n      piVar4 = (int *)piVar4[7];\n      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;\n      if (piVar4 == (int *)0x0) goto LAB_00023a8f;\n      if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }\n    }" while (parenthesized_expression "(piVar4[0xc] == 1)" ( (binary_expression "piVar4[0xc] == 1" (subscript_expression "piVar4[0xc]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      piVar1 = piVar4 + 4;\n      piVar2 = piVar4 + 3;\n      piVar3 = piVar4 + 2;\n      piVar4 = (int *)piVar4[7];\n      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;\n      if (piVar4 == (int *)0x0) goto LAB_00023a8f;\n      if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }\n    }" { (expression_statement "piVar1 = piVar4 + 4;" (assignment_expression "piVar1 = piVar4 + 4" identifier = (binary_expression "piVar4 + 4" identifier + number_literal)) ;) (expression_statement "piVar2 = piVar4 + 3;" (assignment_expression "piVar2 = piVar4 + 3" identifier = (binary_expression "piVar4 + 3" identifier + number_literal)) ;) (expression_statement "piVar3 = piVar4 + 2;" (assignment_expression "piVar3 = piVar4 + 2" identifier = (binary_expression "piVar4 + 2" identifier + number_literal)) ;) (expression_statement "piVar4 = (int *)piVar4[7];" (assignment_expression "piVar4 = (int *)piVar4[7]" identifier = (cast_expression "(int *)piVar4[7]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[7]" identifier [ number_literal ]))) ;) (expression_statement "iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;" (assignment_expression "iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3" identifier = (binary_expression "iVar5 + *piVar1 * *piVar2 + *piVar3" (binary_expression "iVar5 + *piVar1 * *piVar2" identifier + (binary_expression "*piVar1 * *piVar2" (pointer_expression "*piVar1" * identifier) * (pointer_expression "*piVar2" * identifier))) + (pointer_expression "*piVar3" * identifier))) ;) (if_statement "if (piVar4 == (int *)0x0) goto LAB_00023a8f;" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00023a8f;" goto statement_identifier ;)) (if_statement "if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }" if (parenthesized_expression "(param_2 == piVar4)" ( (binary_expression "param_2 == piVar4" identifier == identifier) )) (compound_statement "{\n        *param_3 = iVar5;\n        return 1;\n      }" { (expression_statement "*param_3 = iVar5;" (assignment_expression "*param_3 = iVar5" (pointer_expression "*param_3" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "iVar5 = param_2[0xc];" (assignment_expression "iVar5 = param_2[0xc]" identifier = (subscript_expression "param_2[0xc]" identifier [ number_literal ])) ;) (while_statement "while( true ) {\n      if (iVar5 != 1) {\n        return 0;\n      }\n      piVar4 = param_2 + 4;\n      piVar1 = param_2 + 3;\n      piVar2 = param_2 + 2;\n      param_2 = (int *)param_2[7];\n      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);\n      if (param_2 == (int *)0x0) {\n        return 0;\n      }\n      if (param_1 == param_2) break;\nLAB_00023a8f:\n      iVar5 = param_2[0xc];\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (iVar5 != 1) {\n        return 0;\n      }\n      piVar4 = param_2 + 4;\n      piVar1 = param_2 + 3;\n      piVar2 = param_2 + 2;\n      param_2 = (int *)param_2[7];\n      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);\n      if (param_2 == (int *)0x0) {\n        return 0;\n      }\n      if (param_1 == param_2) break;\nLAB_00023a8f:\n      iVar5 = param_2[0xc];\n    }" { (if_statement "if (iVar5 != 1) {\n        return 0;\n      }" if (parenthesized_expression "(iVar5 != 1)" ( (binary_expression "iVar5 != 1" identifier != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar4 = param_2 + 4;" (assignment_expression "piVar4 = param_2 + 4" identifier = (binary_expression "param_2 + 4" identifier + number_literal)) ;) (expression_statement "piVar1 = param_2 + 3;" (assignment_expression "piVar1 = param_2 + 3" identifier = (binary_expression "param_2 + 3" identifier + number_literal)) ;) (expression_statement "piVar2 = param_2 + 2;" (assignment_expression "piVar2 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "param_2 = (int *)param_2[7];" (assignment_expression "param_2 = (int *)param_2[7]" identifier = (cast_expression "(int *)param_2[7]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[7]" identifier [ number_literal ]))) ;) (expression_statement "iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);" (assignment_expression "iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2)" identifier = (binary_expression "iVar6 - (*piVar4 * *piVar1 + *piVar2)" identifier - (parenthesized_expression "(*piVar4 * *piVar1 + *piVar2)" ( (binary_expression "*piVar4 * *piVar1 + *piVar2" (binary_expression "*piVar4 * *piVar1" (pointer_expression "*piVar4" * identifier) * (pointer_expression "*piVar1" * identifier)) + (pointer_expression "*piVar2" * identifier)) )))) ;) (if_statement "if (param_2 == (int *)0x0) {\n        return 0;\n      }" if (parenthesized_expression "(param_2 == (int *)0x0)" ( (binary_expression "param_2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_1 == param_2) break;" if (parenthesized_expression "(param_1 == param_2)" ( (binary_expression "param_1 == param_2" identifier == identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_00023a8f:\n      iVar5 = param_2[0xc];" statement_identifier : (expression_statement "iVar5 = param_2[0xc];" (assignment_expression "iVar5 = param_2[0xc]" identifier = (subscript_expression "param_2[0xc]" identifier [ number_literal ])) ;)) })) })) (expression_statement "*param_3 = iVar6;" (assignment_expression "*param_3 = iVar6" (pointer_expression "*param_3" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) - (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (pointer_expression * IDENT) * (pointer_expression * IDENT))) + (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) * (pointer_expression * IDENT)) + (pointer_expression * IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;)) })) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00023a30(int *param_1,int *param_2,int *param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar6 = *param_1 - *param_2;\n  piVar4 = param_1;\n  iVar5 = iVar6;\n  if (param_1 != param_2) {\n    while (piVar4[0xc] == 1) {\n      piVar1 = piVar4 + 4;\n      piVar2 = piVar4 + 3;\n      piVar3 = piVar4 + 2;\n      piVar4 = (int *)piVar4[7];\n      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;\n      if (piVar4 == (int *)0x0) goto LAB_00023a8f;\n      if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }\n    }\n    iVar5 = param_2[0xc];\n    while( true ) {\n      if (iVar5 != 1) {\n        return 0;\n      }\n      piVar4 = param_2 + 4;\n      piVar1 = param_2 + 3;\n      piVar2 = param_2 + 2;\n      param_2 = (int *)param_2[7];\n      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);\n      if (param_2 == (int *)0x0) {\n        return 0;\n      }\n      if (param_1 == param_2) break;\nLAB_00023a8f:\n      iVar5 = param_2[0xc];\n    }\n  }\n  *param_3 = iVar6;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00023a30(int *param_1,int *param_2,int *param_3)" (identifier "FUN_00023a30") (parameter_list "(int *param_1,int *param_2,int *param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar6 = *param_1 - *param_2;\n  piVar4 = param_1;\n  iVar5 = iVar6;\n  if (param_1 != param_2) {\n    while (piVar4[0xc] == 1) {\n      piVar1 = piVar4 + 4;\n      piVar2 = piVar4 + 3;\n      piVar3 = piVar4 + 2;\n      piVar4 = (int *)piVar4[7];\n      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;\n      if (piVar4 == (int *)0x0) goto LAB_00023a8f;\n      if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }\n    }\n    iVar5 = param_2[0xc];\n    while( true ) {\n      if (iVar5 != 1) {\n        return 0;\n      }\n      piVar4 = param_2 + 4;\n      piVar1 = param_2 + 3;\n      piVar2 = param_2 + 2;\n      param_2 = (int *)param_2[7];\n      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);\n      if (param_2 == (int *)0x0) {\n        return 0;\n      }\n      if (param_1 == param_2) break;\nLAB_00023a8f:\n      iVar5 = param_2[0xc];\n    }\n  }\n  *param_3 = iVar6;\n  return 1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "iVar6 = *param_1 - *param_2;" (assignment_expression "iVar6 = *param_1 - *param_2" (identifier "iVar6") (= "=") (binary_expression "*param_1 - *param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (- "-") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "piVar4 = param_1;" (assignment_expression "piVar4 = param_1" (identifier "piVar4") (= "=") (identifier "param_1")) (; ";")) (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" (identifier "iVar5") (= "=") (identifier "iVar6")) (; ";")) (if_statement "if (param_1 != param_2) {\n    while (piVar4[0xc] == 1) {\n      piVar1 = piVar4 + 4;\n      piVar2 = piVar4 + 3;\n      piVar3 = piVar4 + 2;\n      piVar4 = (int *)piVar4[7];\n      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;\n      if (piVar4 == (int *)0x0) goto LAB_00023a8f;\n      if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }\n    }\n    iVar5 = param_2[0xc];\n    while( true ) {\n      if (iVar5 != 1) {\n        return 0;\n      }\n      piVar4 = param_2 + 4;\n      piVar1 = param_2 + 3;\n      piVar2 = param_2 + 2;\n      param_2 = (int *)param_2[7];\n      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);\n      if (param_2 == (int *)0x0) {\n        return 0;\n      }\n      if (param_1 == param_2) break;\nLAB_00023a8f:\n      iVar5 = param_2[0xc];\n    }\n  }" (if "if") (parenthesized_expression "(param_1 != param_2)" (( "(") (binary_expression "param_1 != param_2" (identifier "param_1") (!= "!=") (identifier "param_2")) () ")")) (compound_statement "{\n    while (piVar4[0xc] == 1) {\n      piVar1 = piVar4 + 4;\n      piVar2 = piVar4 + 3;\n      piVar3 = piVar4 + 2;\n      piVar4 = (int *)piVar4[7];\n      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;\n      if (piVar4 == (int *)0x0) goto LAB_00023a8f;\n      if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }\n    }\n    iVar5 = param_2[0xc];\n    while( true ) {\n      if (iVar5 != 1) {\n        return 0;\n      }\n      piVar4 = param_2 + 4;\n      piVar1 = param_2 + 3;\n      piVar2 = param_2 + 2;\n      param_2 = (int *)param_2[7];\n      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);\n      if (param_2 == (int *)0x0) {\n        return 0;\n      }\n      if (param_1 == param_2) break;\nLAB_00023a8f:\n      iVar5 = param_2[0xc];\n    }\n  }" ({ "{") (while_statement "while (piVar4[0xc] == 1) {\n      piVar1 = piVar4 + 4;\n      piVar2 = piVar4 + 3;\n      piVar3 = piVar4 + 2;\n      piVar4 = (int *)piVar4[7];\n      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;\n      if (piVar4 == (int *)0x0) goto LAB_00023a8f;\n      if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }\n    }" (while "while") (parenthesized_expression "(piVar4[0xc] == 1)" (( "(") (binary_expression "piVar4[0xc] == 1" (subscript_expression "piVar4[0xc]" (identifier "piVar4") ([ "[") (number_literal "0xc") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      piVar1 = piVar4 + 4;\n      piVar2 = piVar4 + 3;\n      piVar3 = piVar4 + 2;\n      piVar4 = (int *)piVar4[7];\n      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;\n      if (piVar4 == (int *)0x0) goto LAB_00023a8f;\n      if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }\n    }" ({ "{") (expression_statement "piVar1 = piVar4 + 4;" (assignment_expression "piVar1 = piVar4 + 4" (identifier "piVar1") (= "=") (binary_expression "piVar4 + 4" (identifier "piVar4") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "piVar2 = piVar4 + 3;" (assignment_expression "piVar2 = piVar4 + 3" (identifier "piVar2") (= "=") (binary_expression "piVar4 + 3" (identifier "piVar4") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "piVar3 = piVar4 + 2;" (assignment_expression "piVar3 = piVar4 + 2" (identifier "piVar3") (= "=") (binary_expression "piVar4 + 2" (identifier "piVar4") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "piVar4 = (int *)piVar4[7];" (assignment_expression "piVar4 = (int *)piVar4[7]" (identifier "piVar4") (= "=") (cast_expression "(int *)piVar4[7]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[7]" (identifier "piVar4") ([ "[") (number_literal "7") (] "]")))) (; ";")) (expression_statement "iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;" (assignment_expression "iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3" (identifier "iVar5") (= "=") (binary_expression "iVar5 + *piVar1 * *piVar2 + *piVar3" (binary_expression "iVar5 + *piVar1 * *piVar2" (identifier "iVar5") (+ "+") (binary_expression "*piVar1 * *piVar2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (* "*") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")))) (+ "+") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")))) (; ";")) (if_statement "if (piVar4 == (int *)0x0) goto LAB_00023a8f;" (if "if") (parenthesized_expression "(piVar4 == (int *)0x0)" (( "(") (binary_expression "piVar4 == (int *)0x0" (identifier "piVar4") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00023a8f;" (goto "goto") (statement_identifier "LAB_00023a8f") (; ";"))) (if_statement "if (param_2 == piVar4) {\n        *param_3 = iVar5;\n        return 1;\n      }" (if "if") (parenthesized_expression "(param_2 == piVar4)" (( "(") (binary_expression "param_2 == piVar4" (identifier "param_2") (== "==") (identifier "piVar4")) () ")")) (compound_statement "{\n        *param_3 = iVar5;\n        return 1;\n      }" ({ "{") (expression_statement "*param_3 = iVar5;" (assignment_expression "*param_3 = iVar5" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar5")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar5 = param_2[0xc];" (assignment_expression "iVar5 = param_2[0xc]" (identifier "iVar5") (= "=") (subscript_expression "param_2[0xc]" (identifier "param_2") ([ "[") (number_literal "0xc") (] "]"))) (; ";")) (while_statement "while( true ) {\n      if (iVar5 != 1) {\n        return 0;\n      }\n      piVar4 = param_2 + 4;\n      piVar1 = param_2 + 3;\n      piVar2 = param_2 + 2;\n      param_2 = (int *)param_2[7];\n      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);\n      if (param_2 == (int *)0x0) {\n        return 0;\n      }\n      if (param_1 == param_2) break;\nLAB_00023a8f:\n      iVar5 = param_2[0xc];\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (iVar5 != 1) {\n        return 0;\n      }\n      piVar4 = param_2 + 4;\n      piVar1 = param_2 + 3;\n      piVar2 = param_2 + 2;\n      param_2 = (int *)param_2[7];\n      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);\n      if (param_2 == (int *)0x0) {\n        return 0;\n      }\n      if (param_1 == param_2) break;\nLAB_00023a8f:\n      iVar5 = param_2[0xc];\n    }" ({ "{") (if_statement "if (iVar5 != 1) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(iVar5 != 1)" (( "(") (binary_expression "iVar5 != 1" (identifier "iVar5") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "piVar4 = param_2 + 4;" (assignment_expression "piVar4 = param_2 + 4" (identifier "piVar4") (= "=") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "piVar1 = param_2 + 3;" (assignment_expression "piVar1 = param_2 + 3" (identifier "piVar1") (= "=") (binary_expression "param_2 + 3" (identifier "param_2") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "piVar2 = param_2 + 2;" (assignment_expression "piVar2 = param_2 + 2" (identifier "piVar2") (= "=") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "param_2 = (int *)param_2[7];" (assignment_expression "param_2 = (int *)param_2[7]" (identifier "param_2") (= "=") (cast_expression "(int *)param_2[7]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]")))) (; ";")) (expression_statement "iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);" (assignment_expression "iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2)" (identifier "iVar6") (= "=") (binary_expression "iVar6 - (*piVar4 * *piVar1 + *piVar2)" (identifier "iVar6") (- "-") (parenthesized_expression "(*piVar4 * *piVar1 + *piVar2)" (( "(") (binary_expression "*piVar4 * *piVar1 + *piVar2" (binary_expression "*piVar4 * *piVar1" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (* "*") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (+ "+") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) () ")")))) (; ";")) (if_statement "if (param_2 == (int *)0x0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(param_2 == (int *)0x0)" (( "(") (binary_expression "param_2 == (int *)0x0" (identifier "param_2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_1 == param_2) break;" (if "if") (parenthesized_expression "(param_1 == param_2)" (( "(") (binary_expression "param_1 == param_2" (identifier "param_1") (== "==") (identifier "param_2")) () ")")) (break_statement "break;" (break "break") (; ";"))) (labeled_statement "LAB_00023a8f:\n      iVar5 = param_2[0xc];" (statement_identifier "LAB_00023a8f") (: ":") (expression_statement "iVar5 = param_2[0xc];" (assignment_expression "iVar5 = param_2[0xc]" (identifier "iVar5") (= "=") (subscript_expression "param_2[0xc]" (identifier "param_2") ([ "[") (number_literal "0xc") (] "]"))) (; ";"))) (} "}"))) (} "}"))) (expression_statement "*param_3 = iVar6;" (assignment_expression "*param_3 = iVar6" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar6")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

type_1 function_1(type_2 *var_1,type_2 *var_2,type_3 *offset)

{
  type_3 *poVar1;
  type_3 *poVar2;
  type_3 *poVar3;
  type_4 var_6;
  type_5 *var_5;
  int var_4;
  int var_7;
  
  var_7 = var_1->fr_address - var_2->fr_address;
  var_5 = var_1;
  var_4 = var_7;
  if (var_1 != var_2) {
    while (var_5->fr_type == var_3) {
      poVar1 = &var_5->fr_offset;
      poVar2 = &var_5->fr_var;
      poVar3 = &var_5->fr_fix;
      var_5 = var_5->fr_next;
      var_4 = var_4 + *poVar1 * *poVar2 + *poVar3;
      if (var_5 == (type_5 *)0x0) goto LAB_00023a8f;
      if (var_2 == var_5) {
        *offset = var_4;
        return 1;
      }
    }
    var_6 = var_2->fr_type;
    while( true ) {
      if (var_6 != var_3) {
        return 0;
      }
      poVar1 = &var_2->fr_offset;
      poVar2 = &var_2->fr_var;
      poVar3 = &var_2->fr_fix;
      var_2 = var_2->fr_next;
      var_7 = var_7 - (*poVar1 * *poVar2 + *poVar3);
      if (var_2 == (type_2 *)0x0) {
        return 0;
      }
      if (var_1 == var_2) break;
LAB_00023a8f:
      var_6 = var_2->fr_type;
    }
  }
  *offset = var_7;
  return 1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (while_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) right: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))) right: (pointer_expression argument: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (break_statement)) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (number_literal)))))

undefined4 MASKED(int *param_1,int *param_2,int *param_3)

{
  int *piVar1;
  int *piVar2;
  int *piVar3;
  int *piVar4;
  int iVar5;
  int iVar6;
  
  iVar6 = *param_1 - *param_2;
  piVar4 = param_1;
  iVar5 = iVar6;
  if (param_1 != param_2) {
    while (piVar4[0xc] == 1) {
      piVar1 = piVar4 + 4;
      piVar2 = piVar4 + 3;
      piVar3 = piVar4 + 2;
      piVar4 = (int *)piVar4[7];
      iVar5 = iVar5 + *piVar1 * *piVar2 + *piVar3;
      if (piVar4 == (int *)0x0) goto LAB_00023a8f;
      if (param_2 == piVar4) {
        *param_3 = iVar5;
        return 1;
      }
    }
    iVar5 = param_2[0xc];
    while( true ) {
      if (iVar5 != 1) {
        return 0;
      }
      piVar4 = param_2 + 4;
      piVar1 = param_2 + 3;
      piVar2 = param_2 + 2;
      param_2 = (int *)param_2[7];
      iVar6 = iVar6 - (*piVar4 * *piVar1 + *piVar2);
      if (param_2 == (int *)0x0) {
        return 0;
      }
      if (param_1 == param_2) break;
LAB_00023a8f:
      iVar5 = param_2[0xc];
    }
  }
  *param_3 = iVar6;
  return 1;
}

