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

uint location_print(location loc,FILE *out)

{
  char *pcVar1;
  uint uVar2;
  int iVar3;
  int iVar4;
  
  iVar4 = loc.end.column + -1 + (uint)(loc.end.column == 0);
  pcVar1 = quotearg_n_style(3,escape_quoting_style,loc.start.file);
  uVar2 = rpl_fprintf(out,"%s",pcVar1);
  if (-1 < loc.start.line) {
    iVar3 = rpl_fprintf(out,":%d",loc.start.line);
    uVar2 = uVar2 + iVar3;
    if (-1 < loc.start.column) {
      iVar3 = rpl_fprintf(out,".%d",loc.start.column);
      uVar2 = uVar2 + iVar3;
    }
  }
  if (loc.start.file == loc.end.file) {
    if (loc.end.line < 0) {
      return uVar2;
    }
    if (loc.end.line <= loc.start.line) {
      if (iVar4 < 0) {
        return uVar2;
      }
      if (iVar4 <= loc.start.column) {
        return uVar2;
      }
      pcVar1 = "-%d";
      goto LAB_000228d7;
    }
    pcVar1 = "-%d";
  }
  else {
    pcVar1 = quotearg_n_style(3,escape_quoting_style,loc.end.file);
    iVar3 = rpl_fprintf(out,"-%s",pcVar1);
    uVar2 = uVar2 + iVar3;
    if (loc.end.line < 0) {
      return uVar2;
    }
    pcVar1 = ":%d";
  }
  iVar3 = rpl_fprintf(out,pcVar1,loc.end.line);
  uVar2 = uVar2 + iVar3;
  if (iVar4 < 0) {
    return uVar2;
  }
  pcVar1 = ".%d";
LAB_000228d7:
  iVar4 = rpl_fprintf(out,pcVar1,iVar4);
  return uVar2 + iVar4;
}



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

int FUN_00022800(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6,
                undefined4 param_7)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  undefined *puVar4;
  int iVar5;
  
  iVar5 = param_6 + -1 + (uint)(param_6 == 0);
  uVar1 = FUN_00063e50(3,7,param_1);
  iVar2 = FUN_00067160(param_7,&DAT_00072a88,uVar1);
  if (-1 < param_2) {
    iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2);
    iVar2 = iVar2 + iVar3;
    if (-1 < param_3) {
      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);
      iVar2 = iVar2 + iVar3;
    }
  }
  if (param_1 == param_4) {
    if (param_5 < 0) {
      return iVar2;
    }
    if (param_5 <= param_2) {
      if (iVar5 < 0) {
        return iVar2;
      }
      if (iVar5 <= param_3) {
        return iVar2;
      }
      puVar4 = &DAT_0006fc38;
      goto LAB_000228d7;
    }
    puVar4 = &DAT_0006fc38;
  }
  else {
    uVar1 = FUN_00063e50(3,7,param_4);
    iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);
    iVar2 = iVar2 + iVar3;
    if (param_5 < 0) {
      return iVar2;
    }
    puVar4 = &DAT_0006fc2c;
  }
  iVar3 = FUN_00067160(param_7,puVar4,param_5);
  iVar2 = iVar2 + iVar3;
  if (iVar5 < 0) {
    return iVar2;
  }
  puVar4 = &DAT_0006fc30;
LAB_000228d7:
  iVar5 = FUN_00067160(param_7,puVar4,iVar5);
  return iVar2 + iVar5;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013d10
ADD EBX,0x737f7
SUB ESP,0x20
MOV ECX,dword ptr [ESP + 0x40]
MOV EDX,dword ptr [ESP + 0x3c]
MOV EAX,dword ptr [ESP + 0x38]
MOV EDI,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0xc],ECX
MOV ECX,dword ptr [ESP + 0x44]
MOV ESI,dword ptr [ESP + 0x48]
MOV dword ptr [ESP + 0x10],EDX
MOV dword ptr [ESP + 0x8],ECX
MOV dword ptr [ESP + 0x4],EAX
CMP ESI,0x1
PUSH EDI
ADC ESI,-0x1
PUSH 0x7
PUSH 0x3
CALL 0x00063e50
ADD ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xfffdca88]
PUSH EAX
PUSH dword ptr [ESP + 0x54]
CALL 0x00067160
ADD ESP,0x10
MOV EBP,EAX
MOV EAX,dword ptr [ESP]
TEST EAX,EAX
JNS 0x00022918
MOV EAX,dword ptr [ESP + 0x8]
CMP EDI,EAX
JZ 0x000228f0
SUB ESP,0x4
PUSH EAX
PUSH 0x7
PUSH 0x3
CALL 0x00063e50
ADD ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xfffd9c34]
PUSH EAX
PUSH dword ptr [ESP + 0x54]
CALL 0x00067160
ADD ESP,0x10
ADD EBP,EAX
MOV EAX,dword ptr [ESP + 0x4]
TEST EAX,EAX
JNS 0x000228b0
ADD ESP,0x1c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH EAX
LEA EAX,[EBX + 0xfffd9c2c]
PUSH EAX
PUSH dword ptr [ESP + 0x54]
CALL 0x00067160
ADD ESP,0x10
ADD EBP,EAX
TEST ESI,ESI
JS 0x000228a4
SUB ESP,0x4
LEA EAX,[EBX + 0xfffd9c30]
PUSH ESI
PUSH EAX
PUSH dword ptr [ESP + 0x54]
CALL 0x00067160
ADD ESP,0x10
ADD ESP,0x1c
ADD EBP,EAX
POP EBX
MOV EAX,EBP
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x4]
TEST EAX,EAX
JS 0x000228a4
CMP dword ptr [ESP],EAX
JL 0x00022960
TEST ESI,ESI
JS 0x000228a4
CMP ESI,dword ptr [ESP + 0xc]
JLE 0x000228a4
SUB ESP,0x4
LEA EAX,[EBX + 0xfffd9c38]
PUSH ESI
JMP 0x000228d7
SUB ESP,0x4
PUSH EAX
LEA EAX,[EBX + 0xfffd9c2c]
PUSH EAX
PUSH dword ptr [ESP + 0x54]
CALL 0x00067160
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
ADD EBP,EAX
TEST EDX,EDX
JS 0x0002286e
SUB ESP,0x4
LEA EAX,[EBX + 0xfffd9c30]
PUSH EDX
PUSH EAX
PUSH dword ptr [ESP + 0x54]
CALL 0x00067160
ADD ESP,0x10
ADD EBP,EAX
JMP 0x0002286e
SUB ESP,0x4
LEA EAX,[EBX + 0xfffd9c38]
PUSH dword ptr [ESP + 0x8]
JMP 0x000228ba
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00022800(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                undefined4 param_7)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined *puVar4;\n  int iVar5;\n  \n  iVar5 = param_6 + -1 + (uint)(param_6 == 0);\n  uVar1 = FUN_00063e50(3,7,param_1);\n  iVar2 = FUN_00067160(param_7,&DAT_00072a88,uVar1);\n  if (-1 < param_2) {\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2);\n    iVar2 = iVar2 + iVar3;\n    if (-1 < param_3) {\n      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);\n      iVar2 = iVar2 + iVar3;\n    }\n  }\n  if (param_1 == param_4) {\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    if (param_5 <= param_2) {\n      if (iVar5 < 0) {\n        return iVar2;\n      }\n      if (iVar5 <= param_3) {\n        return iVar2;\n      }\n      puVar4 = &DAT_0006fc38;\n      goto LAB_000228d7;\n    }\n    puVar4 = &DAT_0006fc38;\n  }\n  else {\n    uVar1 = FUN_00063e50(3,7,param_4);\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);\n    iVar2 = iVar2 + iVar3;\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    puVar4 = &DAT_0006fc2c;\n  }\n  iVar3 = FUN_00067160(param_7,puVar4,param_5);\n  iVar2 = iVar2 + iVar3;\n  if (iVar5 < 0) {\n    return iVar2;\n  }\n  puVar4 = &DAT_0006fc30;\nLAB_000228d7:\n  iVar5 = FUN_00067160(param_7,puVar4,iVar5);\n  return iVar2 + iVar5;\n}\n\n" comment (function_definition "int FUN_00022800(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                undefined4 param_7)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined *puVar4;\n  int iVar5;\n  \n  iVar5 = param_6 + -1 + (uint)(param_6 == 0);\n  uVar1 = FUN_00063e50(3,7,param_1);\n  iVar2 = FUN_00067160(param_7,&DAT_00072a88,uVar1);\n  if (-1 < param_2) {\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2);\n    iVar2 = iVar2 + iVar3;\n    if (-1 < param_3) {\n      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);\n      iVar2 = iVar2 + iVar3;\n    }\n  }\n  if (param_1 == param_4) {\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    if (param_5 <= param_2) {\n      if (iVar5 < 0) {\n        return iVar2;\n      }\n      if (iVar5 <= param_3) {\n        return iVar2;\n      }\n      puVar4 = &DAT_0006fc38;\n      goto LAB_000228d7;\n    }\n    puVar4 = &DAT_0006fc38;\n  }\n  else {\n    uVar1 = FUN_00063e50(3,7,param_4);\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);\n    iVar2 = iVar2 + iVar3;\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    puVar4 = &DAT_0006fc2c;\n  }\n  iVar3 = FUN_00067160(param_7,puVar4,param_5);\n  iVar2 = iVar2 + iVar3;\n  if (iVar5 < 0) {\n    return iVar2;\n  }\n  puVar4 = &DAT_0006fc30;\nLAB_000228d7:\n  iVar5 = FUN_00067160(param_7,puVar4,iVar5);\n  return iVar2 + iVar5;\n}" primitive_type (function_declarator "FUN_00022800(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                undefined4 param_7)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                undefined4 param_7)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined *puVar4;\n  int iVar5;\n  \n  iVar5 = param_6 + -1 + (uint)(param_6 == 0);\n  uVar1 = FUN_00063e50(3,7,param_1);\n  iVar2 = FUN_00067160(param_7,&DAT_00072a88,uVar1);\n  if (-1 < param_2) {\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2);\n    iVar2 = iVar2 + iVar3;\n    if (-1 < param_3) {\n      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);\n      iVar2 = iVar2 + iVar3;\n    }\n  }\n  if (param_1 == param_4) {\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    if (param_5 <= param_2) {\n      if (iVar5 < 0) {\n        return iVar2;\n      }\n      if (iVar5 <= param_3) {\n        return iVar2;\n      }\n      puVar4 = &DAT_0006fc38;\n      goto LAB_000228d7;\n    }\n    puVar4 = &DAT_0006fc38;\n  }\n  else {\n    uVar1 = FUN_00063e50(3,7,param_4);\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);\n    iVar2 = iVar2 + iVar3;\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    puVar4 = &DAT_0006fc2c;\n  }\n  iVar3 = FUN_00067160(param_7,puVar4,param_5);\n  iVar2 = iVar2 + iVar3;\n  if (iVar5 < 0) {\n    return iVar2;\n  }\n  puVar4 = &DAT_0006fc30;\nLAB_000228d7:\n  iVar5 = FUN_00067160(param_7,puVar4,iVar5);\n  return iVar2 + iVar5;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar5 = param_6 + -1 + (uint)(param_6 == 0);" (assignment_expression "iVar5 = param_6 + -1 + (uint)(param_6 == 0)" identifier = (binary_expression "param_6 + -1 + (uint)(param_6 == 0)" (binary_expression "param_6 + -1" identifier + number_literal) + (call_expression "(uint)(param_6 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) ))))) ;) (expression_statement "uVar1 = FUN_00063e50(3,7,param_1);" (assignment_expression "uVar1 = FUN_00063e50(3,7,param_1)" identifier = (call_expression "FUN_00063e50(3,7,param_1)" identifier (argument_list "(3,7,param_1)" ( number_literal , number_literal , identifier )))) ;) (expression_statement "iVar2 = FUN_00067160(param_7,&DAT_00072a88,uVar1);" (assignment_expression "iVar2 = FUN_00067160(param_7,&DAT_00072a88,uVar1)" identifier = (call_expression "FUN_00067160(param_7,&DAT_00072a88,uVar1)" identifier (argument_list "(param_7,&DAT_00072a88,uVar1)" ( identifier , (pointer_expression "&DAT_00072a88" & identifier) , identifier )))) ;) (if_statement "if (-1 < param_2) {\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2);\n    iVar2 = iVar2 + iVar3;\n    if (-1 < param_3) {\n      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);\n      iVar2 = iVar2 + iVar3;\n    }\n  }" if (parenthesized_expression "(-1 < param_2)" ( (binary_expression "-1 < param_2" number_literal < identifier) )) (compound_statement "{\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2);\n    iVar2 = iVar2 + iVar3;\n    if (-1 < param_3) {\n      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);\n      iVar2 = iVar2 + iVar3;\n    }\n  }" { (expression_statement "iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2);" (assignment_expression "iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2)" identifier = (call_expression "FUN_00067160(param_7,&DAT_0006fc2c,param_2)" identifier (argument_list "(param_7,&DAT_0006fc2c,param_2)" ( identifier , (pointer_expression "&DAT_0006fc2c" & identifier) , identifier )))) ;) (expression_statement "iVar2 = iVar2 + iVar3;" (assignment_expression "iVar2 = iVar2 + iVar3" identifier = (binary_expression "iVar2 + iVar3" identifier + identifier)) ;) (if_statement "if (-1 < param_3) {\n      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);\n      iVar2 = iVar2 + iVar3;\n    }" if (parenthesized_expression "(-1 < param_3)" ( (binary_expression "-1 < param_3" number_literal < identifier) )) (compound_statement "{\n      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);\n      iVar2 = iVar2 + iVar3;\n    }" { (expression_statement "iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);" (assignment_expression "iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3)" identifier = (call_expression "FUN_00067160(param_7,&DAT_0006fc30,param_3)" identifier (argument_list "(param_7,&DAT_0006fc30,param_3)" ( identifier , (pointer_expression "&DAT_0006fc30" & identifier) , identifier )))) ;) (expression_statement "iVar2 = iVar2 + iVar3;" (assignment_expression "iVar2 = iVar2 + iVar3" identifier = (binary_expression "iVar2 + iVar3" identifier + identifier)) ;) })) })) (if_statement "if (param_1 == param_4) {\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    if (param_5 <= param_2) {\n      if (iVar5 < 0) {\n        return iVar2;\n      }\n      if (iVar5 <= param_3) {\n        return iVar2;\n      }\n      puVar4 = &DAT_0006fc38;\n      goto LAB_000228d7;\n    }\n    puVar4 = &DAT_0006fc38;\n  }\n  else {\n    uVar1 = FUN_00063e50(3,7,param_4);\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);\n    iVar2 = iVar2 + iVar3;\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    puVar4 = &DAT_0006fc2c;\n  }" if (parenthesized_expression "(param_1 == param_4)" ( (binary_expression "param_1 == param_4" identifier == identifier) )) (compound_statement "{\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    if (param_5 <= param_2) {\n      if (iVar5 < 0) {\n        return iVar2;\n      }\n      if (iVar5 <= param_3) {\n        return iVar2;\n      }\n      puVar4 = &DAT_0006fc38;\n      goto LAB_000228d7;\n    }\n    puVar4 = &DAT_0006fc38;\n  }" { (if_statement "if (param_5 < 0) {\n      return iVar2;\n    }" if (parenthesized_expression "(param_5 < 0)" ( (binary_expression "param_5 < 0" identifier < number_literal) )) (compound_statement "{\n      return iVar2;\n    }" { (return_statement "return iVar2;" return identifier ;) })) (if_statement "if (param_5 <= param_2) {\n      if (iVar5 < 0) {\n        return iVar2;\n      }\n      if (iVar5 <= param_3) {\n        return iVar2;\n      }\n      puVar4 = &DAT_0006fc38;\n      goto LAB_000228d7;\n    }" if (parenthesized_expression "(param_5 <= param_2)" ( (binary_expression "param_5 <= param_2" identifier <= identifier) )) (compound_statement "{\n      if (iVar5 < 0) {\n        return iVar2;\n      }\n      if (iVar5 <= param_3) {\n        return iVar2;\n      }\n      puVar4 = &DAT_0006fc38;\n      goto LAB_000228d7;\n    }" { (if_statement "if (iVar5 < 0) {\n        return iVar2;\n      }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n        return iVar2;\n      }" { (return_statement "return iVar2;" return identifier ;) })) (if_statement "if (iVar5 <= param_3) {\n        return iVar2;\n      }" if (parenthesized_expression "(iVar5 <= param_3)" ( (binary_expression "iVar5 <= param_3" identifier <= identifier) )) (compound_statement "{\n        return iVar2;\n      }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "puVar4 = &DAT_0006fc38;" (assignment_expression "puVar4 = &DAT_0006fc38" identifier = (pointer_expression "&DAT_0006fc38" & identifier)) ;) (goto_statement "goto LAB_000228d7;" goto statement_identifier ;) })) (expression_statement "puVar4 = &DAT_0006fc38;" (assignment_expression "puVar4 = &DAT_0006fc38" identifier = (pointer_expression "&DAT_0006fc38" & identifier)) ;) }) (else_clause "else {\n    uVar1 = FUN_00063e50(3,7,param_4);\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);\n    iVar2 = iVar2 + iVar3;\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    puVar4 = &DAT_0006fc2c;\n  }" else (compound_statement "{\n    uVar1 = FUN_00063e50(3,7,param_4);\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);\n    iVar2 = iVar2 + iVar3;\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    puVar4 = &DAT_0006fc2c;\n  }" { (expression_statement "uVar1 = FUN_00063e50(3,7,param_4);" (assignment_expression "uVar1 = FUN_00063e50(3,7,param_4)" identifier = (call_expression "FUN_00063e50(3,7,param_4)" identifier (argument_list "(3,7,param_4)" ( number_literal , number_literal , identifier )))) ;) (expression_statement "iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);" (assignment_expression "iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1)" identifier = (call_expression "FUN_00067160(param_7,&DAT_0006fc34,uVar1)" identifier (argument_list "(param_7,&DAT_0006fc34,uVar1)" ( identifier , (pointer_expression "&DAT_0006fc34" & identifier) , identifier )))) ;) (expression_statement "iVar2 = iVar2 + iVar3;" (assignment_expression "iVar2 = iVar2 + iVar3" identifier = (binary_expression "iVar2 + iVar3" identifier + identifier)) ;) (if_statement "if (param_5 < 0) {\n      return iVar2;\n    }" if (parenthesized_expression "(param_5 < 0)" ( (binary_expression "param_5 < 0" identifier < number_literal) )) (compound_statement "{\n      return iVar2;\n    }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "puVar4 = &DAT_0006fc2c;" (assignment_expression "puVar4 = &DAT_0006fc2c" identifier = (pointer_expression "&DAT_0006fc2c" & identifier)) ;) }))) (expression_statement "iVar3 = FUN_00067160(param_7,puVar4,param_5);" (assignment_expression "iVar3 = FUN_00067160(param_7,puVar4,param_5)" identifier = (call_expression "FUN_00067160(param_7,puVar4,param_5)" identifier (argument_list "(param_7,puVar4,param_5)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar2 = iVar2 + iVar3;" (assignment_expression "iVar2 = iVar2 + iVar3" identifier = (binary_expression "iVar2 + iVar3" identifier + identifier)) ;) (if_statement "if (iVar5 < 0) {\n    return iVar2;\n  }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "puVar4 = &DAT_0006fc30;" (assignment_expression "puVar4 = &DAT_0006fc30" identifier = (pointer_expression "&DAT_0006fc30" & identifier)) ;) (labeled_statement "LAB_000228d7:\n  iVar5 = FUN_00067160(param_7,puVar4,iVar5);" statement_identifier : (expression_statement "iVar5 = FUN_00067160(param_7,puVar4,iVar5);" (assignment_expression "iVar5 = FUN_00067160(param_7,puVar4,iVar5)" identifier = (call_expression "FUN_00067160(param_7,puVar4,iVar5)" identifier (argument_list "(param_7,puVar4,iVar5)" ( identifier , identifier , identifier )))) ;)) (return_statement "return iVar2 + iVar5;" return (binary_expression "iVar2 + iVar5" identifier + identifier) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint location_print(location loc,FILE *out)\n\n{\n  char *pcVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar4 = loc.end.column + -1 + (uint)(loc.end.column == 0);\n  pcVar1 = quotearg_n_style(3,escape_quoting_style,loc.start.file);\n  uVar2 = rpl_fprintf(out,"%s",pcVar1);\n  if (-1 < loc.start.line) {\n    iVar3 = rpl_fprintf(out,":%d",loc.start.line);\n    uVar2 = uVar2 + iVar3;\n    if (-1 < loc.start.column) {\n      iVar3 = rpl_fprintf(out,".%d",loc.start.column);\n      uVar2 = uVar2 + iVar3;\n    }\n  }\n  if (loc.start.file == loc.end.file) {\n    if (loc.end.line < 0) {\n      return uVar2;\n    }\n    if (loc.end.line <= loc.start.line) {\n      if (iVar4 < 0) {\n        return uVar2;\n      }\n      if (iVar4 <= loc.start.column) {\n        return uVar2;\n      }\n      pcVar1 = "-%d";\n      goto LAB_000228d7;\n    }\n    pcVar1 = "-%d";\n  }\n  else {\n    pcVar1 = quotearg_n_style(3,escape_quoting_style,loc.end.file);\n    iVar3 = rpl_fprintf(out,"-%s",pcVar1);\n    uVar2 = uVar2 + iVar3;\n    if (loc.end.line < 0) {\n      return uVar2;\n    }\n    pcVar1 = ":%d";\n  }\n  iVar3 = rpl_fprintf(out,pcVar1,loc.end.line);\n  uVar2 = uVar2 + iVar3;\n  if (iVar4 < 0) {\n    return uVar2;\n  }\n  pcVar1 = ".%d";\nLAB_000228d7:\n  iVar4 = rpl_fprintf(out,pcVar1,iVar4);\n  return uVar2 + iVar4;\n}\n\n" comment (function_definition "uint location_print(location loc,FILE *out)\n\n{\n  char *pcVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar4 = loc.end.column + -1 + (uint)(loc.end.column == 0);\n  pcVar1 = quotearg_n_style(3,escape_quoting_style,loc.start.file);\n  uVar2 = rpl_fprintf(out,"%s",pcVar1);\n  if (-1 < loc.start.line) {\n    iVar3 = rpl_fprintf(out,":%d",loc.start.line);\n    uVar2 = uVar2 + iVar3;\n    if (-1 < loc.start.column) {\n      iVar3 = rpl_fprintf(out,".%d",loc.start.column);\n      uVar2 = uVar2 + iVar3;\n    }\n  }\n  if (loc.start.file == loc.end.file) {\n    if (loc.end.line < 0) {\n      return uVar2;\n    }\n    if (loc.end.line <= loc.start.line) {\n      if (iVar4 < 0) {\n        return uVar2;\n      }\n      if (iVar4 <= loc.start.column) {\n        return uVar2;\n      }\n      pcVar1 = "-%d";\n      goto LAB_000228d7;\n    }\n    pcVar1 = "-%d";\n  }\n  else {\n    pcVar1 = quotearg_n_style(3,escape_quoting_style,loc.end.file);\n    iVar3 = rpl_fprintf(out,"-%s",pcVar1);\n    uVar2 = uVar2 + iVar3;\n    if (loc.end.line < 0) {\n      return uVar2;\n    }\n    pcVar1 = ":%d";\n  }\n  iVar3 = rpl_fprintf(out,pcVar1,loc.end.line);\n  uVar2 = uVar2 + iVar3;\n  if (iVar4 < 0) {\n    return uVar2;\n  }\n  pcVar1 = ".%d";\nLAB_000228d7:\n  iVar4 = rpl_fprintf(out,pcVar1,iVar4);\n  return uVar2 + iVar4;\n}" type_identifier (function_declarator "location_print(location loc,FILE *out)" identifier (parameter_list "(location loc,FILE *out)" ( (parameter_declaration "location loc" type_identifier identifier) , (parameter_declaration "FILE *out" type_identifier (pointer_declarator "*out" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar4 = loc.end.column + -1 + (uint)(loc.end.column == 0);\n  pcVar1 = quotearg_n_style(3,escape_quoting_style,loc.start.file);\n  uVar2 = rpl_fprintf(out,"%s",pcVar1);\n  if (-1 < loc.start.line) {\n    iVar3 = rpl_fprintf(out,":%d",loc.start.line);\n    uVar2 = uVar2 + iVar3;\n    if (-1 < loc.start.column) {\n      iVar3 = rpl_fprintf(out,".%d",loc.start.column);\n      uVar2 = uVar2 + iVar3;\n    }\n  }\n  if (loc.start.file == loc.end.file) {\n    if (loc.end.line < 0) {\n      return uVar2;\n    }\n    if (loc.end.line <= loc.start.line) {\n      if (iVar4 < 0) {\n        return uVar2;\n      }\n      if (iVar4 <= loc.start.column) {\n        return uVar2;\n      }\n      pcVar1 = "-%d";\n      goto LAB_000228d7;\n    }\n    pcVar1 = "-%d";\n  }\n  else {\n    pcVar1 = quotearg_n_style(3,escape_quoting_style,loc.end.file);\n    iVar3 = rpl_fprintf(out,"-%s",pcVar1);\n    uVar2 = uVar2 + iVar3;\n    if (loc.end.line < 0) {\n      return uVar2;\n    }\n    pcVar1 = ":%d";\n  }\n  iVar3 = rpl_fprintf(out,pcVar1,loc.end.line);\n  uVar2 = uVar2 + iVar3;\n  if (iVar4 < 0) {\n    return uVar2;\n  }\n  pcVar1 = ".%d";\nLAB_000228d7:\n  iVar4 = rpl_fprintf(out,pcVar1,iVar4);\n  return uVar2 + iVar4;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar4 = loc.end.column + -1 + (uint)(loc.end.column == 0);" (assignment_expression "iVar4 = loc.end.column + -1 + (uint)(loc.end.column == 0)" identifier = (binary_expression "loc.end.column + -1 + (uint)(loc.end.column == 0)" (binary_expression "loc.end.column + -1" (field_expression "loc.end.column" (field_expression "loc.end" identifier . field_identifier) . field_identifier) + number_literal) + (call_expression "(uint)(loc.end.column == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(loc.end.column == 0)" ( (binary_expression "loc.end.column == 0" (field_expression "loc.end.column" (field_expression "loc.end" identifier . field_identifier) . field_identifier) == number_literal) ))))) ;) (expression_statement "pcVar1 = quotearg_n_style(3,escape_quoting_style,loc.start.file);" (assignment_expression "pcVar1 = quotearg_n_style(3,escape_quoting_style,loc.start.file)" identifier = (call_expression "quotearg_n_style(3,escape_quoting_style,loc.start.file)" identifier (argument_list "(3,escape_quoting_style,loc.start.file)" ( number_literal , identifier , (field_expression "loc.start.file" (field_expression "loc.start" identifier . field_identifier) . field_identifier) )))) ;) (expression_statement "uVar2 = rpl_fprintf(out,"%s",pcVar1);" (assignment_expression "uVar2 = rpl_fprintf(out,"%s",pcVar1)" identifier = (call_expression "rpl_fprintf(out,"%s",pcVar1)" identifier (argument_list "(out,"%s",pcVar1)" ( identifier , (string_literal ""%s"" " string_content ") , identifier )))) ;) (if_statement "if (-1 < loc.start.line) {\n    iVar3 = rpl_fprintf(out,":%d",loc.start.line);\n    uVar2 = uVar2 + iVar3;\n    if (-1 < loc.start.column) {\n      iVar3 = rpl_fprintf(out,".%d",loc.start.column);\n      uVar2 = uVar2 + iVar3;\n    }\n  }" if (parenthesized_expression "(-1 < loc.start.line)" ( (binary_expression "-1 < loc.start.line" number_literal < (field_expression "loc.start.line" (field_expression "loc.start" identifier . field_identifier) . field_identifier)) )) (compound_statement "{\n    iVar3 = rpl_fprintf(out,":%d",loc.start.line);\n    uVar2 = uVar2 + iVar3;\n    if (-1 < loc.start.column) {\n      iVar3 = rpl_fprintf(out,".%d",loc.start.column);\n      uVar2 = uVar2 + iVar3;\n    }\n  }" { (expression_statement "iVar3 = rpl_fprintf(out,":%d",loc.start.line);" (assignment_expression "iVar3 = rpl_fprintf(out,":%d",loc.start.line)" identifier = (call_expression "rpl_fprintf(out,":%d",loc.start.line)" identifier (argument_list "(out,":%d",loc.start.line)" ( identifier , (string_literal "":%d"" " string_content ") , (field_expression "loc.start.line" (field_expression "loc.start" identifier . field_identifier) . field_identifier) )))) ;) (expression_statement "uVar2 = uVar2 + iVar3;" (assignment_expression "uVar2 = uVar2 + iVar3" identifier = (binary_expression "uVar2 + iVar3" identifier + identifier)) ;) (if_statement "if (-1 < loc.start.column) {\n      iVar3 = rpl_fprintf(out,".%d",loc.start.column);\n      uVar2 = uVar2 + iVar3;\n    }" if (parenthesized_expression "(-1 < loc.start.column)" ( (binary_expression "-1 < loc.start.column" number_literal < (field_expression "loc.start.column" (field_expression "loc.start" identifier . field_identifier) . field_identifier)) )) (compound_statement "{\n      iVar3 = rpl_fprintf(out,".%d",loc.start.column);\n      uVar2 = uVar2 + iVar3;\n    }" { (expression_statement "iVar3 = rpl_fprintf(out,".%d",loc.start.column);" (assignment_expression "iVar3 = rpl_fprintf(out,".%d",loc.start.column)" identifier = (call_expression "rpl_fprintf(out,".%d",loc.start.column)" identifier (argument_list "(out,".%d",loc.start.column)" ( identifier , (string_literal "".%d"" " string_content ") , (field_expression "loc.start.column" (field_expression "loc.start" identifier . field_identifier) . field_identifier) )))) ;) (expression_statement "uVar2 = uVar2 + iVar3;" (assignment_expression "uVar2 = uVar2 + iVar3" identifier = (binary_expression "uVar2 + iVar3" identifier + identifier)) ;) })) })) (if_statement "if (loc.start.file == loc.end.file) {\n    if (loc.end.line < 0) {\n      return uVar2;\n    }\n    if (loc.end.line <= loc.start.line) {\n      if (iVar4 < 0) {\n        return uVar2;\n      }\n      if (iVar4 <= loc.start.column) {\n        return uVar2;\n      }\n      pcVar1 = "-%d";\n      goto LAB_000228d7;\n    }\n    pcVar1 = "-%d";\n  }\n  else {\n    pcVar1 = quotearg_n_style(3,escape_quoting_style,loc.end.file);\n    iVar3 = rpl_fprintf(out,"-%s",pcVar1);\n    uVar2 = uVar2 + iVar3;\n    if (loc.end.line < 0) {\n      return uVar2;\n    }\n    pcVar1 = ":%d";\n  }" if (parenthesized_expression "(loc.start.file == loc.end.file)" ( (binary_expression "loc.start.file == loc.end.file" (field_expression "loc.start.file" (field_expression "loc.start" identifier . field_identifier) . field_identifier) == (field_expression "loc.end.file" (field_expression "loc.end" identifier . field_identifier) . field_identifier)) )) (compound_statement "{\n    if (loc.end.line < 0) {\n      return uVar2;\n    }\n    if (loc.end.line <= loc.start.line) {\n      if (iVar4 < 0) {\n        return uVar2;\n      }\n      if (iVar4 <= loc.start.column) {\n        return uVar2;\n      }\n      pcVar1 = "-%d";\n      goto LAB_000228d7;\n    }\n    pcVar1 = "-%d";\n  }" { (if_statement "if (loc.end.line < 0) {\n      return uVar2;\n    }" if (parenthesized_expression "(loc.end.line < 0)" ( (binary_expression "loc.end.line < 0" (field_expression "loc.end.line" (field_expression "loc.end" identifier . field_identifier) . field_identifier) < number_literal) )) (compound_statement "{\n      return uVar2;\n    }" { (return_statement "return uVar2;" return identifier ;) })) (if_statement "if (loc.end.line <= loc.start.line) {\n      if (iVar4 < 0) {\n        return uVar2;\n      }\n      if (iVar4 <= loc.start.column) {\n        return uVar2;\n      }\n      pcVar1 = "-%d";\n      goto LAB_000228d7;\n    }" if (parenthesized_expression "(loc.end.line <= loc.start.line)" ( (binary_expression "loc.end.line <= loc.start.line" (field_expression "loc.end.line" (field_expression "loc.end" identifier . field_identifier) . field_identifier) <= (field_expression "loc.start.line" (field_expression "loc.start" identifier . field_identifier) . field_identifier)) )) (compound_statement "{\n      if (iVar4 < 0) {\n        return uVar2;\n      }\n      if (iVar4 <= loc.start.column) {\n        return uVar2;\n      }\n      pcVar1 = "-%d";\n      goto LAB_000228d7;\n    }" { (if_statement "if (iVar4 < 0) {\n        return uVar2;\n      }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n        return uVar2;\n      }" { (return_statement "return uVar2;" return identifier ;) })) (if_statement "if (iVar4 <= loc.start.column) {\n        return uVar2;\n      }" if (parenthesized_expression "(iVar4 <= loc.start.column)" ( (binary_expression "iVar4 <= loc.start.column" identifier <= (field_expression "loc.start.column" (field_expression "loc.start" identifier . field_identifier) . field_identifier)) )) (compound_statement "{\n        return uVar2;\n      }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "pcVar1 = "-%d";" (assignment_expression "pcVar1 = "-%d"" identifier = (string_literal ""-%d"" " string_content ")) ;) (goto_statement "goto LAB_000228d7;" goto statement_identifier ;) })) (expression_statement "pcVar1 = "-%d";" (assignment_expression "pcVar1 = "-%d"" identifier = (string_literal ""-%d"" " string_content ")) ;) }) (else_clause "else {\n    pcVar1 = quotearg_n_style(3,escape_quoting_style,loc.end.file);\n    iVar3 = rpl_fprintf(out,"-%s",pcVar1);\n    uVar2 = uVar2 + iVar3;\n    if (loc.end.line < 0) {\n      return uVar2;\n    }\n    pcVar1 = ":%d";\n  }" else (compound_statement "{\n    pcVar1 = quotearg_n_style(3,escape_quoting_style,loc.end.file);\n    iVar3 = rpl_fprintf(out,"-%s",pcVar1);\n    uVar2 = uVar2 + iVar3;\n    if (loc.end.line < 0) {\n      return uVar2;\n    }\n    pcVar1 = ":%d";\n  }" { (expression_statement "pcVar1 = quotearg_n_style(3,escape_quoting_style,loc.end.file);" (assignment_expression "pcVar1 = quotearg_n_style(3,escape_quoting_style,loc.end.file)" identifier = (call_expression "quotearg_n_style(3,escape_quoting_style,loc.end.file)" identifier (argument_list "(3,escape_quoting_style,loc.end.file)" ( number_literal , identifier , (field_expression "loc.end.file" (field_expression "loc.end" identifier . field_identifier) . field_identifier) )))) ;) (expression_statement "iVar3 = rpl_fprintf(out,"-%s",pcVar1);" (assignment_expression "iVar3 = rpl_fprintf(out,"-%s",pcVar1)" identifier = (call_expression "rpl_fprintf(out,"-%s",pcVar1)" identifier (argument_list "(out,"-%s",pcVar1)" ( identifier , (string_literal ""-%s"" " string_content ") , identifier )))) ;) (expression_statement "uVar2 = uVar2 + iVar3;" (assignment_expression "uVar2 = uVar2 + iVar3" identifier = (binary_expression "uVar2 + iVar3" identifier + identifier)) ;) (if_statement "if (loc.end.line < 0) {\n      return uVar2;\n    }" if (parenthesized_expression "(loc.end.line < 0)" ( (binary_expression "loc.end.line < 0" (field_expression "loc.end.line" (field_expression "loc.end" identifier . field_identifier) . field_identifier) < number_literal) )) (compound_statement "{\n      return uVar2;\n    }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "pcVar1 = ":%d";" (assignment_expression "pcVar1 = ":%d"" identifier = (string_literal "":%d"" " string_content ")) ;) }))) (expression_statement "iVar3 = rpl_fprintf(out,pcVar1,loc.end.line);" (assignment_expression "iVar3 = rpl_fprintf(out,pcVar1,loc.end.line)" identifier = (call_expression "rpl_fprintf(out,pcVar1,loc.end.line)" identifier (argument_list "(out,pcVar1,loc.end.line)" ( identifier , identifier , (field_expression "loc.end.line" (field_expression "loc.end" identifier . field_identifier) . field_identifier) )))) ;) (expression_statement "uVar2 = uVar2 + iVar3;" (assignment_expression "uVar2 = uVar2 + iVar3" identifier = (binary_expression "uVar2 + iVar3" identifier + identifier)) ;) (if_statement "if (iVar4 < 0) {\n    return uVar2;\n  }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "pcVar1 = ".%d";" (assignment_expression "pcVar1 = ".%d"" identifier = (string_literal "".%d"" " string_content ")) ;) (labeled_statement "LAB_000228d7:\n  iVar4 = rpl_fprintf(out,pcVar1,iVar4);" statement_identifier : (expression_statement "iVar4 = rpl_fprintf(out,pcVar1,iVar4);" (assignment_expression "iVar4 = rpl_fprintf(out,pcVar1,iVar4)" identifier = (call_expression "rpl_fprintf(out,pcVar1,iVar4)" identifier (argument_list "(out,pcVar1,iVar4)" ( identifier , identifier , identifier )))) ;)) (return_statement "return uVar2 + iVar4;" return (binary_expression "uVar2 + iVar4" identifier + identifier) ;) })))
(translation_unit "int FUN_00022800(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                undefined4 param_7)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined *puVar4;\n  int iVar5;\n  \n  iVar5 = param_6 + -1 + (uint)(param_6 == 0);\n  uVar1 = FUN_00063e50(3,7,param_1);\n  iVar2 = FUN_00067160(param_7,&DAT_00072a88,uVar1);\n  if (-1 < param_2) {\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2);\n    iVar2 = iVar2 + iVar3;\n    if (-1 < param_3) {\n      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);\n      iVar2 = iVar2 + iVar3;\n    }\n  }\n  if (param_1 == param_4) {\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    if (param_5 <= param_2) {\n      if (iVar5 < 0) {\n        return iVar2;\n      }\n      if (iVar5 <= param_3) {\n        return iVar2;\n      }\n      puVar4 = &DAT_0006fc38;\n      goto LAB_000228d7;\n    }\n    puVar4 = &DAT_0006fc38;\n  }\n  else {\n    uVar1 = FUN_00063e50(3,7,param_4);\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);\n    iVar2 = iVar2 + iVar3;\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    puVar4 = &DAT_0006fc2c;\n  }\n  iVar3 = FUN_00067160(param_7,puVar4,param_5);\n  iVar2 = iVar2 + iVar3;\n  if (iVar5 < 0) {\n    return iVar2;\n  }\n  puVar4 = &DAT_0006fc30;\nLAB_000228d7:\n  iVar5 = FUN_00067160(param_7,puVar4,iVar5);\n  return iVar2 + iVar5;\n}\n\n" (function_definition "int FUN_00022800(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                undefined4 param_7)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined *puVar4;\n  int iVar5;\n  \n  iVar5 = param_6 + -1 + (uint)(param_6 == 0);\n  uVar1 = FUN_00063e50(3,7,param_1);\n  iVar2 = FUN_00067160(param_7,&DAT_00072a88,uVar1);\n  if (-1 < param_2) {\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2);\n    iVar2 = iVar2 + iVar3;\n    if (-1 < param_3) {\n      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);\n      iVar2 = iVar2 + iVar3;\n    }\n  }\n  if (param_1 == param_4) {\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    if (param_5 <= param_2) {\n      if (iVar5 < 0) {\n        return iVar2;\n      }\n      if (iVar5 <= param_3) {\n        return iVar2;\n      }\n      puVar4 = &DAT_0006fc38;\n      goto LAB_000228d7;\n    }\n    puVar4 = &DAT_0006fc38;\n  }\n  else {\n    uVar1 = FUN_00063e50(3,7,param_4);\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);\n    iVar2 = iVar2 + iVar3;\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    puVar4 = &DAT_0006fc2c;\n  }\n  iVar3 = FUN_00067160(param_7,puVar4,param_5);\n  iVar2 = iVar2 + iVar3;\n  if (iVar5 < 0) {\n    return iVar2;\n  }\n  puVar4 = &DAT_0006fc30;\nLAB_000228d7:\n  iVar5 = FUN_00067160(param_7,puVar4,iVar5);\n  return iVar2 + iVar5;\n}" primitive_type (function_declarator "FUN_00022800(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                undefined4 param_7)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                undefined4 param_7)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined *puVar4;\n  int iVar5;\n  \n  iVar5 = param_6 + -1 + (uint)(param_6 == 0);\n  uVar1 = FUN_00063e50(3,7,param_1);\n  iVar2 = FUN_00067160(param_7,&DAT_00072a88,uVar1);\n  if (-1 < param_2) {\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2);\n    iVar2 = iVar2 + iVar3;\n    if (-1 < param_3) {\n      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);\n      iVar2 = iVar2 + iVar3;\n    }\n  }\n  if (param_1 == param_4) {\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    if (param_5 <= param_2) {\n      if (iVar5 < 0) {\n        return iVar2;\n      }\n      if (iVar5 <= param_3) {\n        return iVar2;\n      }\n      puVar4 = &DAT_0006fc38;\n      goto LAB_000228d7;\n    }\n    puVar4 = &DAT_0006fc38;\n  }\n  else {\n    uVar1 = FUN_00063e50(3,7,param_4);\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);\n    iVar2 = iVar2 + iVar3;\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    puVar4 = &DAT_0006fc2c;\n  }\n  iVar3 = FUN_00067160(param_7,puVar4,param_5);\n  iVar2 = iVar2 + iVar3;\n  if (iVar5 < 0) {\n    return iVar2;\n  }\n  puVar4 = &DAT_0006fc30;\nLAB_000228d7:\n  iVar5 = FUN_00067160(param_7,puVar4,iVar5);\n  return iVar2 + iVar5;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar5 = param_6 + -1 + (uint)(param_6 == 0);" (assignment_expression "iVar5 = param_6 + -1 + (uint)(param_6 == 0)" identifier = (binary_expression "param_6 + -1 + (uint)(param_6 == 0)" (binary_expression "param_6 + -1" identifier + number_literal) + (call_expression "(uint)(param_6 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) ))))) ;) (expression_statement "uVar1 = FUN_00063e50(3,7,param_1);" (assignment_expression "uVar1 = FUN_00063e50(3,7,param_1)" identifier = (call_expression "FUN_00063e50(3,7,param_1)" identifier (argument_list "(3,7,param_1)" ( number_literal , number_literal , identifier )))) ;) (expression_statement "iVar2 = FUN_00067160(param_7,&DAT_00072a88,uVar1);" (assignment_expression "iVar2 = FUN_00067160(param_7,&DAT_00072a88,uVar1)" identifier = (call_expression "FUN_00067160(param_7,&DAT_00072a88,uVar1)" identifier (argument_list "(param_7,&DAT_00072a88,uVar1)" ( identifier , (pointer_expression "&DAT_00072a88" & identifier) , identifier )))) ;) (if_statement "if (-1 < param_2) {\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2);\n    iVar2 = iVar2 + iVar3;\n    if (-1 < param_3) {\n      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);\n      iVar2 = iVar2 + iVar3;\n    }\n  }" if (parenthesized_expression "(-1 < param_2)" ( (binary_expression "-1 < param_2" number_literal < identifier) )) (compound_statement "{\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2);\n    iVar2 = iVar2 + iVar3;\n    if (-1 < param_3) {\n      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);\n      iVar2 = iVar2 + iVar3;\n    }\n  }" { (expression_statement "iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2);" (assignment_expression "iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2)" identifier = (call_expression "FUN_00067160(param_7,&DAT_0006fc2c,param_2)" identifier (argument_list "(param_7,&DAT_0006fc2c,param_2)" ( identifier , (pointer_expression "&DAT_0006fc2c" & identifier) , identifier )))) ;) (expression_statement "iVar2 = iVar2 + iVar3;" (assignment_expression "iVar2 = iVar2 + iVar3" identifier = (binary_expression "iVar2 + iVar3" identifier + identifier)) ;) (if_statement "if (-1 < param_3) {\n      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);\n      iVar2 = iVar2 + iVar3;\n    }" if (parenthesized_expression "(-1 < param_3)" ( (binary_expression "-1 < param_3" number_literal < identifier) )) (compound_statement "{\n      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);\n      iVar2 = iVar2 + iVar3;\n    }" { (expression_statement "iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);" (assignment_expression "iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3)" identifier = (call_expression "FUN_00067160(param_7,&DAT_0006fc30,param_3)" identifier (argument_list "(param_7,&DAT_0006fc30,param_3)" ( identifier , (pointer_expression "&DAT_0006fc30" & identifier) , identifier )))) ;) (expression_statement "iVar2 = iVar2 + iVar3;" (assignment_expression "iVar2 = iVar2 + iVar3" identifier = (binary_expression "iVar2 + iVar3" identifier + identifier)) ;) })) })) (if_statement "if (param_1 == param_4) {\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    if (param_5 <= param_2) {\n      if (iVar5 < 0) {\n        return iVar2;\n      }\n      if (iVar5 <= param_3) {\n        return iVar2;\n      }\n      puVar4 = &DAT_0006fc38;\n      goto LAB_000228d7;\n    }\n    puVar4 = &DAT_0006fc38;\n  }\n  else {\n    uVar1 = FUN_00063e50(3,7,param_4);\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);\n    iVar2 = iVar2 + iVar3;\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    puVar4 = &DAT_0006fc2c;\n  }" if (parenthesized_expression "(param_1 == param_4)" ( (binary_expression "param_1 == param_4" identifier == identifier) )) (compound_statement "{\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    if (param_5 <= param_2) {\n      if (iVar5 < 0) {\n        return iVar2;\n      }\n      if (iVar5 <= param_3) {\n        return iVar2;\n      }\n      puVar4 = &DAT_0006fc38;\n      goto LAB_000228d7;\n    }\n    puVar4 = &DAT_0006fc38;\n  }" { (if_statement "if (param_5 < 0) {\n      return iVar2;\n    }" if (parenthesized_expression "(param_5 < 0)" ( (binary_expression "param_5 < 0" identifier < number_literal) )) (compound_statement "{\n      return iVar2;\n    }" { (return_statement "return iVar2;" return identifier ;) })) (if_statement "if (param_5 <= param_2) {\n      if (iVar5 < 0) {\n        return iVar2;\n      }\n      if (iVar5 <= param_3) {\n        return iVar2;\n      }\n      puVar4 = &DAT_0006fc38;\n      goto LAB_000228d7;\n    }" if (parenthesized_expression "(param_5 <= param_2)" ( (binary_expression "param_5 <= param_2" identifier <= identifier) )) (compound_statement "{\n      if (iVar5 < 0) {\n        return iVar2;\n      }\n      if (iVar5 <= param_3) {\n        return iVar2;\n      }\n      puVar4 = &DAT_0006fc38;\n      goto LAB_000228d7;\n    }" { (if_statement "if (iVar5 < 0) {\n        return iVar2;\n      }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n        return iVar2;\n      }" { (return_statement "return iVar2;" return identifier ;) })) (if_statement "if (iVar5 <= param_3) {\n        return iVar2;\n      }" if (parenthesized_expression "(iVar5 <= param_3)" ( (binary_expression "iVar5 <= param_3" identifier <= identifier) )) (compound_statement "{\n        return iVar2;\n      }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "puVar4 = &DAT_0006fc38;" (assignment_expression "puVar4 = &DAT_0006fc38" identifier = (pointer_expression "&DAT_0006fc38" & identifier)) ;) (goto_statement "goto LAB_000228d7;" goto statement_identifier ;) })) (expression_statement "puVar4 = &DAT_0006fc38;" (assignment_expression "puVar4 = &DAT_0006fc38" identifier = (pointer_expression "&DAT_0006fc38" & identifier)) ;) }) (else_clause "else {\n    uVar1 = FUN_00063e50(3,7,param_4);\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);\n    iVar2 = iVar2 + iVar3;\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    puVar4 = &DAT_0006fc2c;\n  }" else (compound_statement "{\n    uVar1 = FUN_00063e50(3,7,param_4);\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);\n    iVar2 = iVar2 + iVar3;\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    puVar4 = &DAT_0006fc2c;\n  }" { (expression_statement "uVar1 = FUN_00063e50(3,7,param_4);" (assignment_expression "uVar1 = FUN_00063e50(3,7,param_4)" identifier = (call_expression "FUN_00063e50(3,7,param_4)" identifier (argument_list "(3,7,param_4)" ( number_literal , number_literal , identifier )))) ;) (expression_statement "iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);" (assignment_expression "iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1)" identifier = (call_expression "FUN_00067160(param_7,&DAT_0006fc34,uVar1)" identifier (argument_list "(param_7,&DAT_0006fc34,uVar1)" ( identifier , (pointer_expression "&DAT_0006fc34" & identifier) , identifier )))) ;) (expression_statement "iVar2 = iVar2 + iVar3;" (assignment_expression "iVar2 = iVar2 + iVar3" identifier = (binary_expression "iVar2 + iVar3" identifier + identifier)) ;) (if_statement "if (param_5 < 0) {\n      return iVar2;\n    }" if (parenthesized_expression "(param_5 < 0)" ( (binary_expression "param_5 < 0" identifier < number_literal) )) (compound_statement "{\n      return iVar2;\n    }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "puVar4 = &DAT_0006fc2c;" (assignment_expression "puVar4 = &DAT_0006fc2c" identifier = (pointer_expression "&DAT_0006fc2c" & identifier)) ;) }))) (expression_statement "iVar3 = FUN_00067160(param_7,puVar4,param_5);" (assignment_expression "iVar3 = FUN_00067160(param_7,puVar4,param_5)" identifier = (call_expression "FUN_00067160(param_7,puVar4,param_5)" identifier (argument_list "(param_7,puVar4,param_5)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar2 = iVar2 + iVar3;" (assignment_expression "iVar2 = iVar2 + iVar3" identifier = (binary_expression "iVar2 + iVar3" identifier + identifier)) ;) (if_statement "if (iVar5 < 0) {\n    return iVar2;\n  }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "puVar4 = &DAT_0006fc30;" (assignment_expression "puVar4 = &DAT_0006fc30" identifier = (pointer_expression "&DAT_0006fc30" & identifier)) ;) (labeled_statement "LAB_000228d7:\n  iVar5 = FUN_00067160(param_7,puVar4,iVar5);" statement_identifier : (expression_statement "iVar5 = FUN_00067160(param_7,puVar4,iVar5);" (assignment_expression "iVar5 = FUN_00067160(param_7,puVar4,iVar5)" identifier = (call_expression "FUN_00067160(param_7,puVar4,iVar5)" identifier (argument_list "(param_7,puVar4,iVar5)" ( identifier , identifier , identifier )))) ;)) (return_statement "return iVar2 + iVar5;" return (binary_expression "iVar2 + iVar5" identifier + identifier) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;)) (return_statement return (binary_expression IDENT + IDENT) ;) })))
(function_definition "int FUN_00022800(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                undefined4 param_7)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined *puVar4;\n  int iVar5;\n  \n  iVar5 = param_6 + -1 + (uint)(param_6 == 0);\n  uVar1 = FUN_00063e50(3,7,param_1);\n  iVar2 = FUN_00067160(param_7,&DAT_00072a88,uVar1);\n  if (-1 < param_2) {\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2);\n    iVar2 = iVar2 + iVar3;\n    if (-1 < param_3) {\n      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);\n      iVar2 = iVar2 + iVar3;\n    }\n  }\n  if (param_1 == param_4) {\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    if (param_5 <= param_2) {\n      if (iVar5 < 0) {\n        return iVar2;\n      }\n      if (iVar5 <= param_3) {\n        return iVar2;\n      }\n      puVar4 = &DAT_0006fc38;\n      goto LAB_000228d7;\n    }\n    puVar4 = &DAT_0006fc38;\n  }\n  else {\n    uVar1 = FUN_00063e50(3,7,param_4);\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);\n    iVar2 = iVar2 + iVar3;\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    puVar4 = &DAT_0006fc2c;\n  }\n  iVar3 = FUN_00067160(param_7,puVar4,param_5);\n  iVar2 = iVar2 + iVar3;\n  if (iVar5 < 0) {\n    return iVar2;\n  }\n  puVar4 = &DAT_0006fc30;\nLAB_000228d7:\n  iVar5 = FUN_00067160(param_7,puVar4,iVar5);\n  return iVar2 + iVar5;\n}" (primitive_type "int") (function_declarator "FUN_00022800(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                undefined4 param_7)" (identifier "FUN_00022800") (parameter_list "(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                undefined4 param_7)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined *puVar4;\n  int iVar5;\n  \n  iVar5 = param_6 + -1 + (uint)(param_6 == 0);\n  uVar1 = FUN_00063e50(3,7,param_1);\n  iVar2 = FUN_00067160(param_7,&DAT_00072a88,uVar1);\n  if (-1 < param_2) {\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2);\n    iVar2 = iVar2 + iVar3;\n    if (-1 < param_3) {\n      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);\n      iVar2 = iVar2 + iVar3;\n    }\n  }\n  if (param_1 == param_4) {\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    if (param_5 <= param_2) {\n      if (iVar5 < 0) {\n        return iVar2;\n      }\n      if (iVar5 <= param_3) {\n        return iVar2;\n      }\n      puVar4 = &DAT_0006fc38;\n      goto LAB_000228d7;\n    }\n    puVar4 = &DAT_0006fc38;\n  }\n  else {\n    uVar1 = FUN_00063e50(3,7,param_4);\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);\n    iVar2 = iVar2 + iVar3;\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    puVar4 = &DAT_0006fc2c;\n  }\n  iVar3 = FUN_00067160(param_7,puVar4,param_5);\n  iVar2 = iVar2 + iVar3;\n  if (iVar5 < 0) {\n    return iVar2;\n  }\n  puVar4 = &DAT_0006fc30;\nLAB_000228d7:\n  iVar5 = FUN_00067160(param_7,puVar4,iVar5);\n  return iVar2 + iVar5;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "iVar5 = param_6 + -1 + (uint)(param_6 == 0);" (assignment_expression "iVar5 = param_6 + -1 + (uint)(param_6 == 0)" (identifier "iVar5") (= "=") (binary_expression "param_6 + -1 + (uint)(param_6 == 0)" (binary_expression "param_6 + -1" (identifier "param_6") (+ "+") (number_literal "-1")) (+ "+") (call_expression "(uint)(param_6 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_6 == 0)" (( "(") (binary_expression "param_6 == 0" (identifier "param_6") (== "==") (number_literal "0")) () ")"))))) (; ";")) (expression_statement "uVar1 = FUN_00063e50(3,7,param_1);" (assignment_expression "uVar1 = FUN_00063e50(3,7,param_1)" (identifier "uVar1") (= "=") (call_expression "FUN_00063e50(3,7,param_1)" (identifier "FUN_00063e50") (argument_list "(3,7,param_1)" (( "(") (number_literal "3") (, ",") (number_literal "7") (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar2 = FUN_00067160(param_7,&DAT_00072a88,uVar1);" (assignment_expression "iVar2 = FUN_00067160(param_7,&DAT_00072a88,uVar1)" (identifier "iVar2") (= "=") (call_expression "FUN_00067160(param_7,&DAT_00072a88,uVar1)" (identifier "FUN_00067160") (argument_list "(param_7,&DAT_00072a88,uVar1)" (( "(") (identifier "param_7") (, ",") (pointer_expression "&DAT_00072a88" (& "&") (identifier "DAT_00072a88")) (, ",") (identifier "uVar1") () ")")))) (; ";")) (if_statement "if (-1 < param_2) {\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2);\n    iVar2 = iVar2 + iVar3;\n    if (-1 < param_3) {\n      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);\n      iVar2 = iVar2 + iVar3;\n    }\n  }" (if "if") (parenthesized_expression "(-1 < param_2)" (( "(") (binary_expression "-1 < param_2" (number_literal "-1") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2);\n    iVar2 = iVar2 + iVar3;\n    if (-1 < param_3) {\n      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);\n      iVar2 = iVar2 + iVar3;\n    }\n  }" ({ "{") (expression_statement "iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2);" (assignment_expression "iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2)" (identifier "iVar3") (= "=") (call_expression "FUN_00067160(param_7,&DAT_0006fc2c,param_2)" (identifier "FUN_00067160") (argument_list "(param_7,&DAT_0006fc2c,param_2)" (( "(") (identifier "param_7") (, ",") (pointer_expression "&DAT_0006fc2c" (& "&") (identifier "DAT_0006fc2c")) (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar2 = iVar2 + iVar3;" (assignment_expression "iVar2 = iVar2 + iVar3" (identifier "iVar2") (= "=") (binary_expression "iVar2 + iVar3" (identifier "iVar2") (+ "+") (identifier "iVar3"))) (; ";")) (if_statement "if (-1 < param_3) {\n      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);\n      iVar2 = iVar2 + iVar3;\n    }" (if "if") (parenthesized_expression "(-1 < param_3)" (( "(") (binary_expression "-1 < param_3" (number_literal "-1") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);\n      iVar2 = iVar2 + iVar3;\n    }" ({ "{") (expression_statement "iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);" (assignment_expression "iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3)" (identifier "iVar3") (= "=") (call_expression "FUN_00067160(param_7,&DAT_0006fc30,param_3)" (identifier "FUN_00067160") (argument_list "(param_7,&DAT_0006fc30,param_3)" (( "(") (identifier "param_7") (, ",") (pointer_expression "&DAT_0006fc30" (& "&") (identifier "DAT_0006fc30")) (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "iVar2 = iVar2 + iVar3;" (assignment_expression "iVar2 = iVar2 + iVar3" (identifier "iVar2") (= "=") (binary_expression "iVar2 + iVar3" (identifier "iVar2") (+ "+") (identifier "iVar3"))) (; ";")) (} "}"))) (} "}"))) (if_statement "if (param_1 == param_4) {\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    if (param_5 <= param_2) {\n      if (iVar5 < 0) {\n        return iVar2;\n      }\n      if (iVar5 <= param_3) {\n        return iVar2;\n      }\n      puVar4 = &DAT_0006fc38;\n      goto LAB_000228d7;\n    }\n    puVar4 = &DAT_0006fc38;\n  }\n  else {\n    uVar1 = FUN_00063e50(3,7,param_4);\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);\n    iVar2 = iVar2 + iVar3;\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    puVar4 = &DAT_0006fc2c;\n  }" (if "if") (parenthesized_expression "(param_1 == param_4)" (( "(") (binary_expression "param_1 == param_4" (identifier "param_1") (== "==") (identifier "param_4")) () ")")) (compound_statement "{\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    if (param_5 <= param_2) {\n      if (iVar5 < 0) {\n        return iVar2;\n      }\n      if (iVar5 <= param_3) {\n        return iVar2;\n      }\n      puVar4 = &DAT_0006fc38;\n      goto LAB_000228d7;\n    }\n    puVar4 = &DAT_0006fc38;\n  }" ({ "{") (if_statement "if (param_5 < 0) {\n      return iVar2;\n    }" (if "if") (parenthesized_expression "(param_5 < 0)" (( "(") (binary_expression "param_5 < 0" (identifier "param_5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      return iVar2;\n    }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (if_statement "if (param_5 <= param_2) {\n      if (iVar5 < 0) {\n        return iVar2;\n      }\n      if (iVar5 <= param_3) {\n        return iVar2;\n      }\n      puVar4 = &DAT_0006fc38;\n      goto LAB_000228d7;\n    }" (if "if") (parenthesized_expression "(param_5 <= param_2)" (( "(") (binary_expression "param_5 <= param_2" (identifier "param_5") (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n      if (iVar5 < 0) {\n        return iVar2;\n      }\n      if (iVar5 <= param_3) {\n        return iVar2;\n      }\n      puVar4 = &DAT_0006fc38;\n      goto LAB_000228d7;\n    }" ({ "{") (if_statement "if (iVar5 < 0) {\n        return iVar2;\n      }" (if "if") (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        return iVar2;\n      }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (if_statement "if (iVar5 <= param_3) {\n        return iVar2;\n      }" (if "if") (parenthesized_expression "(iVar5 <= param_3)" (( "(") (binary_expression "iVar5 <= param_3" (identifier "iVar5") (<= "<=") (identifier "param_3")) () ")")) (compound_statement "{\n        return iVar2;\n      }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "puVar4 = &DAT_0006fc38;" (assignment_expression "puVar4 = &DAT_0006fc38" (identifier "puVar4") (= "=") (pointer_expression "&DAT_0006fc38" (& "&") (identifier "DAT_0006fc38"))) (; ";")) (goto_statement "goto LAB_000228d7;" (goto "goto") (statement_identifier "LAB_000228d7") (; ";")) (} "}"))) (expression_statement "puVar4 = &DAT_0006fc38;" (assignment_expression "puVar4 = &DAT_0006fc38" (identifier "puVar4") (= "=") (pointer_expression "&DAT_0006fc38" (& "&") (identifier "DAT_0006fc38"))) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = FUN_00063e50(3,7,param_4);\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);\n    iVar2 = iVar2 + iVar3;\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    puVar4 = &DAT_0006fc2c;\n  }" (else "else") (compound_statement "{\n    uVar1 = FUN_00063e50(3,7,param_4);\n    iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);\n    iVar2 = iVar2 + iVar3;\n    if (param_5 < 0) {\n      return iVar2;\n    }\n    puVar4 = &DAT_0006fc2c;\n  }" ({ "{") (expression_statement "uVar1 = FUN_00063e50(3,7,param_4);" (assignment_expression "uVar1 = FUN_00063e50(3,7,param_4)" (identifier "uVar1") (= "=") (call_expression "FUN_00063e50(3,7,param_4)" (identifier "FUN_00063e50") (argument_list "(3,7,param_4)" (( "(") (number_literal "3") (, ",") (number_literal "7") (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);" (assignment_expression "iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1)" (identifier "iVar3") (= "=") (call_expression "FUN_00067160(param_7,&DAT_0006fc34,uVar1)" (identifier "FUN_00067160") (argument_list "(param_7,&DAT_0006fc34,uVar1)" (( "(") (identifier "param_7") (, ",") (pointer_expression "&DAT_0006fc34" (& "&") (identifier "DAT_0006fc34")) (, ",") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "iVar2 = iVar2 + iVar3;" (assignment_expression "iVar2 = iVar2 + iVar3" (identifier "iVar2") (= "=") (binary_expression "iVar2 + iVar3" (identifier "iVar2") (+ "+") (identifier "iVar3"))) (; ";")) (if_statement "if (param_5 < 0) {\n      return iVar2;\n    }" (if "if") (parenthesized_expression "(param_5 < 0)" (( "(") (binary_expression "param_5 < 0" (identifier "param_5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      return iVar2;\n    }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "puVar4 = &DAT_0006fc2c;" (assignment_expression "puVar4 = &DAT_0006fc2c" (identifier "puVar4") (= "=") (pointer_expression "&DAT_0006fc2c" (& "&") (identifier "DAT_0006fc2c"))) (; ";")) (} "}")))) (expression_statement "iVar3 = FUN_00067160(param_7,puVar4,param_5);" (assignment_expression "iVar3 = FUN_00067160(param_7,puVar4,param_5)" (identifier "iVar3") (= "=") (call_expression "FUN_00067160(param_7,puVar4,param_5)" (identifier "FUN_00067160") (argument_list "(param_7,puVar4,param_5)" (( "(") (identifier "param_7") (, ",") (identifier "puVar4") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "iVar2 = iVar2 + iVar3;" (assignment_expression "iVar2 = iVar2 + iVar3" (identifier "iVar2") (= "=") (binary_expression "iVar2 + iVar3" (identifier "iVar2") (+ "+") (identifier "iVar3"))) (; ";")) (if_statement "if (iVar5 < 0) {\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    return iVar2;\n  }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "puVar4 = &DAT_0006fc30;" (assignment_expression "puVar4 = &DAT_0006fc30" (identifier "puVar4") (= "=") (pointer_expression "&DAT_0006fc30" (& "&") (identifier "DAT_0006fc30"))) (; ";")) (labeled_statement "LAB_000228d7:\n  iVar5 = FUN_00067160(param_7,puVar4,iVar5);" (statement_identifier "LAB_000228d7") (: ":") (expression_statement "iVar5 = FUN_00067160(param_7,puVar4,iVar5);" (assignment_expression "iVar5 = FUN_00067160(param_7,puVar4,iVar5)" (identifier "iVar5") (= "=") (call_expression "FUN_00067160(param_7,puVar4,iVar5)" (identifier "FUN_00067160") (argument_list "(param_7,puVar4,iVar5)" (( "(") (identifier "param_7") (, ",") (identifier "puVar4") (, ",") (identifier "iVar5") () ")")))) (; ";"))) (return_statement "return iVar2 + iVar5;" (return "return") (binary_expression "iVar2 + iVar5" (identifier "iVar2") (+ "+") (identifier "iVar5")) (; ";")) (} "}")))

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

type_1 function_1(type_2 loc,type_3 *out)

{
  char *pcVar1;
  type_1 var_3;
  int var_4;
  int var_5;
  
  var_5 = loc.end.column + -1 + (type_1)(loc.end.column == 0);
  pcVar1 = var_1(3,escape_quoting_style,loc.start.file);
  var_3 = var_2(out,"%s",pcVar1);
  if (-1 < loc.start.line) {
    var_4 = var_2(out,":%d",loc.start.line);
    var_3 = var_3 + var_4;
    if (-1 < loc.start.column) {
      var_4 = var_2(out,".%d",loc.start.column);
      var_3 = var_3 + var_4;
    }
  }
  if (loc.start.file == loc.end.file) {
    if (loc.end.line < 0) {
      return var_3;
    }
    if (loc.end.line <= loc.start.line) {
      if (var_5 < 0) {
        return var_3;
      }
      if (var_5 <= loc.start.column) {
        return var_3;
      }
      pcVar1 = "-%d";
      goto LAB_000228d7;
    }
    pcVar1 = "-%d";
  }
  else {
    pcVar1 = var_1(3,escape_quoting_style,loc.end.file);
    var_4 = var_2(out,"-%s",pcVar1);
    var_3 = var_3 + var_4;
    if (loc.end.line < 0) {
      return var_3;
    }
    pcVar1 = ":%d";
  }
  var_4 = var_2(out,pcVar1,loc.end.line);
  var_3 = var_3 + var_4;
  if (var_5 < 0) {
    return var_3;
  }
  pcVar1 = ".%d";
LAB_000228d7:
  var_5 = var_2(out,pcVar1,var_5);
  return var_3 + var_5;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))) (return_statement (binary_expression left: (identifier) right: (identifier))))))

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

int MASKED(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6,
                undefined4 param_7)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  undefined *puVar4;
  int iVar5;
  
  iVar5 = param_6 + -1 + (uint)(param_6 == 0);
  uVar1 = FUN_00063e50(3,7,param_1);
  iVar2 = FUN_00067160(param_7,&DAT_00072a88,uVar1);
  if (-1 < param_2) {
    iVar3 = FUN_00067160(param_7,&DAT_0006fc2c,param_2);
    iVar2 = iVar2 + iVar3;
    if (-1 < param_3) {
      iVar3 = FUN_00067160(param_7,&DAT_0006fc30,param_3);
      iVar2 = iVar2 + iVar3;
    }
  }
  if (param_1 == param_4) {
    if (param_5 < 0) {
      return iVar2;
    }
    if (param_5 <= param_2) {
      if (iVar5 < 0) {
        return iVar2;
      }
      if (iVar5 <= param_3) {
        return iVar2;
      }
      puVar4 = &DAT_0006fc38;
      goto LAB_000228d7;
    }
    puVar4 = &DAT_0006fc38;
  }
  else {
    uVar1 = FUN_00063e50(3,7,param_4);
    iVar3 = FUN_00067160(param_7,&DAT_0006fc34,uVar1);
    iVar2 = iVar2 + iVar3;
    if (param_5 < 0) {
      return iVar2;
    }
    puVar4 = &DAT_0006fc2c;
  }
  iVar3 = FUN_00067160(param_7,puVar4,param_5);
  iVar2 = iVar2 + iVar3;
  if (iVar5 < 0) {
    return iVar2;
  }
  puVar4 = &DAT_0006fc30;
LAB_000228d7:
  iVar5 = FUN_00067160(param_7,puVar4,iVar5);
  return iVar2 + iVar5;
}

