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

void __regparm3 handle_remove_section_option(char *section_pattern)

{
  char *name;
  int iVar1;
  byte *pbVar2;
  byte *pbVar3;
  bool bVar4;
  bool bVar5;
  bool bVar6;
  
  iVar1 = 6;
  bVar4 = false;
  bVar6 = false;
  pbVar2 = (byte *)section_pattern;
  pbVar3 = (byte *)".rela.";
  do {
    if (iVar1 == 0) break;
    iVar1 = iVar1 + -1;
    bVar4 = *pbVar2 < *pbVar3;
    bVar6 = *pbVar2 == *pbVar3;
    pbVar2 = pbVar2 + 1;
    pbVar3 = pbVar3 + 1;
  } while (bVar6);
  bVar5 = false;
  bVar4 = (!bVar4 && !bVar6) == bVar4;
  if (bVar4) {
    name = section_pattern + 5;
  }
  else {
    iVar1 = 5;
    pbVar2 = (byte *)section_pattern;
    pbVar3 = (byte *)".rel.";
    do {
      if (iVar1 == 0) break;
      iVar1 = iVar1 + -1;
      bVar5 = *pbVar2 < *pbVar3;
      bVar4 = *pbVar2 == *pbVar3;
      pbVar2 = pbVar2 + 1;
      pbVar3 = pbVar3 + 1;
    } while (bVar4);
    if ((!bVar5 && !bVar4) != bVar5) {
      find_section_list(section_pattern,1,1);
      sections_removed = 1;
      return;
    }
    name = section_pattern + 4;
  }
  find_section_list(name,1,0x80);
  return;
}



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

void __regparm3 FUN_00017760(byte *param_1)

{
  int iVar1;
  byte *pbVar2;
  byte *pbVar3;
  bool bVar4;
  bool bVar5;
  bool bVar6;
  
  iVar1 = 6;
  bVar4 = false;
  bVar6 = false;
  pbVar2 = param_1;
  pbVar3 = (byte *)".rela.";
  do {
    if (iVar1 == 0) break;
    iVar1 = iVar1 + -1;
    bVar4 = *pbVar2 < *pbVar3;
    bVar6 = *pbVar2 == *pbVar3;
    pbVar2 = pbVar2 + 1;
    pbVar3 = pbVar3 + 1;
  } while (bVar6);
  bVar5 = false;
  bVar4 = (!bVar4 && !bVar6) == bVar4;
  if (!bVar4) {
    iVar1 = 5;
    pbVar2 = (byte *)".rel.";
    do {
      if (iVar1 == 0) break;
      iVar1 = iVar1 + -1;
      bVar5 = *param_1 < *pbVar2;
      bVar4 = *param_1 == *pbVar2;
      param_1 = param_1 + 1;
      pbVar2 = pbVar2 + 1;
    } while (bVar4);
    if ((!bVar5 && !bVar4) != bVar5) {
      FUN_00016a30();
      DAT_00040ba4 = 1;
      return;
    }
  }
  FUN_00016a30();
  return;
}


PUSH EDI
MOV ECX,0x6
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x000166c0
ADD EBX,0x28891
LEA EDI,[EBX + 0xfffef0da]
CMPSB.REPE ES:EDI,ESI
SETA DL
SBB DL,0x0
TEST DL,DL
JZ 0x000177d8
MOV ECX,0x5
LEA EDI,[EBX + 0xfffef0e1]
MOV ESI,EAX
CMPSB.REPE ES:EDI,ESI
SETA DL
SBB DL,0x0
TEST DL,DL
JNZ 0x000177b8
ADD EAX,0x4
POP EBX
MOV ECX,0x80
POP ESI
MOV EDX,0x1
POP EDI
JMP 0x00016a30
MOV ECX,0x1
MOV EDX,0x1
CALL 0x00016a30
MOV dword ptr [EBX + 0xba4],0x1
POP EBX
POP ESI
POP EDI
RET
ADD EAX,0x5
JMP 0x000177a3
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00017760(byte *param_1)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  iVar1 = 6;\n  bVar4 = false;\n  bVar6 = false;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    iVar1 = 5;\n    pbVar2 = (byte *)".rel.";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *param_1 < *pbVar2;\n      bVar4 = *param_1 == *pbVar2;\n      param_1 = param_1 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n      FUN_00016a30();\n      DAT_00040ba4 = 1;\n      return;\n    }\n  }\n  FUN_00016a30();\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00017760(byte *param_1)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  iVar1 = 6;\n  bVar4 = false;\n  bVar6 = false;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    iVar1 = 5;\n    pbVar2 = (byte *)".rel.";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *param_1 < *pbVar2;\n      bVar4 = *param_1 == *pbVar2;\n      param_1 = param_1 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n      FUN_00016a30();\n      DAT_00040ba4 = 1;\n      return;\n    }\n  }\n  FUN_00016a30();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00017760(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  iVar1 = 6;\n  bVar4 = false;\n  bVar6 = false;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    iVar1 = 5;\n    pbVar2 = (byte *)".rel.";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *param_1 < *pbVar2;\n      bVar4 = *param_1 == *pbVar2;\n      param_1 = param_1 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n      FUN_00016a30();\n      DAT_00040ba4 = 1;\n      return;\n    }\n  }\n  FUN_00016a30();\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (expression_statement "iVar1 = 6;" (assignment_expression "iVar1 = 6" identifier = number_literal) ;) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = identifier) ;) (expression_statement "pbVar3 = (byte *)".rela.";" (assignment_expression "pbVar3 = (byte *)".rela."" identifier = (cast_expression "(byte *)".rela."" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal "".rela."" " string_content "))) ;) (do_statement "do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar6);" do (compound_statement "{\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  }" { (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar4 = *pbVar2 < *pbVar3;" (assignment_expression "bVar4 = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar6 = *pbVar2 == *pbVar3;" (assignment_expression "bVar6 = *pbVar2 == *pbVar3" identifier = (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "bVar4 = (!bVar4 && !bVar6) == bVar4;" (assignment_expression "bVar4 = (!bVar4 && !bVar6) == bVar4" identifier = (binary_expression "(!bVar4 && !bVar6) == bVar4" (parenthesized_expression "(!bVar4 && !bVar6)" ( (binary_expression "!bVar4 && !bVar6" (unary_expression "!bVar4" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar4) {\n    iVar1 = 5;\n    pbVar2 = (byte *)".rel.";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *param_1 < *pbVar2;\n      bVar4 = *param_1 == *pbVar2;\n      param_1 = param_1 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n      FUN_00016a30();\n      DAT_00040ba4 = 1;\n      return;\n    }\n  }" if (parenthesized_expression "(!bVar4)" ( (unary_expression "!bVar4" ! identifier) )) (compound_statement "{\n    iVar1 = 5;\n    pbVar2 = (byte *)".rel.";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *param_1 < *pbVar2;\n      bVar4 = *param_1 == *pbVar2;\n      param_1 = param_1 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n      FUN_00016a30();\n      DAT_00040ba4 = 1;\n      return;\n    }\n  }" { (expression_statement "iVar1 = 5;" (assignment_expression "iVar1 = 5" identifier = number_literal) ;) (expression_statement "pbVar2 = (byte *)".rel.";" (assignment_expression "pbVar2 = (byte *)".rel."" identifier = (cast_expression "(byte *)".rel."" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal "".rel."" " string_content "))) ;) (do_statement "do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *param_1 < *pbVar2;\n      bVar4 = *param_1 == *pbVar2;\n      param_1 = param_1 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (bVar4);" do (compound_statement "{\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *param_1 < *pbVar2;\n      bVar4 = *param_1 == *pbVar2;\n      param_1 = param_1 + 1;\n      pbVar2 = pbVar2 + 1;\n    }" { (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *param_1 < *pbVar2;" (assignment_expression "bVar5 = *param_1 < *pbVar2" identifier = (binary_expression "*param_1 < *pbVar2" (pointer_expression "*param_1" * identifier) < (pointer_expression "*pbVar2" * identifier))) ;) (expression_statement "bVar4 = *param_1 == *pbVar2;" (assignment_expression "bVar4 = *param_1 == *pbVar2" identifier = (binary_expression "*param_1 == *pbVar2" (pointer_expression "*param_1" * identifier) == (pointer_expression "*pbVar2" * identifier))) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar4)" ( identifier )) ;) (if_statement "if ((!bVar5 && !bVar4) != bVar5) {\n      FUN_00016a30();\n      DAT_00040ba4 = 1;\n      return;\n    }" if (parenthesized_expression "((!bVar5 && !bVar4) != bVar5)" ( (binary_expression "(!bVar5 && !bVar4) != bVar5" (parenthesized_expression "(!bVar5 && !bVar4)" ( (binary_expression "!bVar5 && !bVar4" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar4" ! identifier)) )) != identifier) )) (compound_statement "{\n      FUN_00016a30();\n      DAT_00040ba4 = 1;\n      return;\n    }" { (expression_statement "FUN_00016a30();" (call_expression "FUN_00016a30()" identifier (argument_list "()" ( ))) ;) (expression_statement "DAT_00040ba4 = 1;" (assignment_expression "DAT_00040ba4 = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })) })) (expression_statement "FUN_00016a30();" (call_expression "FUN_00016a30()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 handle_remove_section_option(char *section_pattern)\n\n{\n  char *name;\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  iVar1 = 6;\n  bVar4 = false;\n  bVar6 = false;\n  pbVar2 = (byte *)section_pattern;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (bVar4) {\n    name = section_pattern + 5;\n  }\n  else {\n    iVar1 = 5;\n    pbVar2 = (byte *)section_pattern;\n    pbVar3 = (byte *)".rel.";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n      find_section_list(section_pattern,1,1);\n      sections_removed = 1;\n      return;\n    }\n    name = section_pattern + 4;\n  }\n  find_section_list(name,1,0x80);\n  return;\n}\n\n" comment (function_definition "void __regparm3 handle_remove_section_option(char *section_pattern)\n\n{\n  char *name;\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  iVar1 = 6;\n  bVar4 = false;\n  bVar6 = false;\n  pbVar2 = (byte *)section_pattern;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (bVar4) {\n    name = section_pattern + 5;\n  }\n  else {\n    iVar1 = 5;\n    pbVar2 = (byte *)section_pattern;\n    pbVar3 = (byte *)".rel.";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n      find_section_list(section_pattern,1,1);\n      sections_removed = 1;\n      return;\n    }\n    name = section_pattern + 4;\n  }\n  find_section_list(name,1,0x80);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "handle_remove_section_option(char *section_pattern)" identifier (parameter_list "(char *section_pattern)" ( (parameter_declaration "char *section_pattern" primitive_type (pointer_declarator "*section_pattern" * identifier)) ))) (compound_statement "{\n  char *name;\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  iVar1 = 6;\n  bVar4 = false;\n  bVar6 = false;\n  pbVar2 = (byte *)section_pattern;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (bVar4) {\n    name = section_pattern + 5;\n  }\n  else {\n    iVar1 = 5;\n    pbVar2 = (byte *)section_pattern;\n    pbVar3 = (byte *)".rel.";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n      find_section_list(section_pattern,1,1);\n      sections_removed = 1;\n      return;\n    }\n    name = section_pattern + 4;\n  }\n  find_section_list(name,1,0x80);\n  return;\n}" { (declaration "char *name;" primitive_type (pointer_declarator "*name" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (expression_statement "iVar1 = 6;" (assignment_expression "iVar1 = 6" identifier = number_literal) ;) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "pbVar2 = (byte *)section_pattern;" (assignment_expression "pbVar2 = (byte *)section_pattern" identifier = (cast_expression "(byte *)section_pattern" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar3 = (byte *)".rela.";" (assignment_expression "pbVar3 = (byte *)".rela."" identifier = (cast_expression "(byte *)".rela."" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal "".rela."" " string_content "))) ;) (do_statement "do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar6);" do (compound_statement "{\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  }" { (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar4 = *pbVar2 < *pbVar3;" (assignment_expression "bVar4 = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar6 = *pbVar2 == *pbVar3;" (assignment_expression "bVar6 = *pbVar2 == *pbVar3" identifier = (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "bVar4 = (!bVar4 && !bVar6) == bVar4;" (assignment_expression "bVar4 = (!bVar4 && !bVar6) == bVar4" identifier = (binary_expression "(!bVar4 && !bVar6) == bVar4" (parenthesized_expression "(!bVar4 && !bVar6)" ( (binary_expression "!bVar4 && !bVar6" (unary_expression "!bVar4" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) == identifier)) ;) (if_statement "if (bVar4) {\n    name = section_pattern + 5;\n  }\n  else {\n    iVar1 = 5;\n    pbVar2 = (byte *)section_pattern;\n    pbVar3 = (byte *)".rel.";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n      find_section_list(section_pattern,1,1);\n      sections_removed = 1;\n      return;\n    }\n    name = section_pattern + 4;\n  }" if (parenthesized_expression "(bVar4)" ( identifier )) (compound_statement "{\n    name = section_pattern + 5;\n  }" { (expression_statement "name = section_pattern + 5;" (assignment_expression "name = section_pattern + 5" identifier = (binary_expression "section_pattern + 5" identifier + number_literal)) ;) }) (else_clause "else {\n    iVar1 = 5;\n    pbVar2 = (byte *)section_pattern;\n    pbVar3 = (byte *)".rel.";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n      find_section_list(section_pattern,1,1);\n      sections_removed = 1;\n      return;\n    }\n    name = section_pattern + 4;\n  }" else (compound_statement "{\n    iVar1 = 5;\n    pbVar2 = (byte *)section_pattern;\n    pbVar3 = (byte *)".rel.";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n      find_section_list(section_pattern,1,1);\n      sections_removed = 1;\n      return;\n    }\n    name = section_pattern + 4;\n  }" { (expression_statement "iVar1 = 5;" (assignment_expression "iVar1 = 5" identifier = number_literal) ;) (expression_statement "pbVar2 = (byte *)section_pattern;" (assignment_expression "pbVar2 = (byte *)section_pattern" identifier = (cast_expression "(byte *)section_pattern" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar3 = (byte *)".rel.";" (assignment_expression "pbVar3 = (byte *)".rel."" identifier = (cast_expression "(byte *)".rel."" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal "".rel."" " string_content "))) ;) (do_statement "do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (bVar4);" do (compound_statement "{\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *pbVar2 < *pbVar3;\n      bVar4 = *pbVar2 == *pbVar3;\n      pbVar2 = pbVar2 + 1;\n      pbVar3 = pbVar3 + 1;\n    }" { (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar2 < *pbVar3;" (assignment_expression "bVar5 = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar4 = *pbVar2 == *pbVar3;" (assignment_expression "bVar4 = *pbVar2 == *pbVar3" identifier = (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar4)" ( identifier )) ;) (if_statement "if ((!bVar5 && !bVar4) != bVar5) {\n      find_section_list(section_pattern,1,1);\n      sections_removed = 1;\n      return;\n    }" if (parenthesized_expression "((!bVar5 && !bVar4) != bVar5)" ( (binary_expression "(!bVar5 && !bVar4) != bVar5" (parenthesized_expression "(!bVar5 && !bVar4)" ( (binary_expression "!bVar5 && !bVar4" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar4" ! identifier)) )) != identifier) )) (compound_statement "{\n      find_section_list(section_pattern,1,1);\n      sections_removed = 1;\n      return;\n    }" { (expression_statement "find_section_list(section_pattern,1,1);" (call_expression "find_section_list(section_pattern,1,1)" identifier (argument_list "(section_pattern,1,1)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "sections_removed = 1;" (assignment_expression "sections_removed = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "name = section_pattern + 4;" (assignment_expression "name = section_pattern + 4" identifier = (binary_expression "section_pattern + 4" identifier + number_literal)) ;) }))) (expression_statement "find_section_list(name,1,0x80);" (call_expression "find_section_list(name,1,0x80)" identifier (argument_list "(name,1,0x80)" ( identifier , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00017760(byte *param_1)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  iVar1 = 6;\n  bVar4 = false;\n  bVar6 = false;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    iVar1 = 5;\n    pbVar2 = (byte *)".rel.";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *param_1 < *pbVar2;\n      bVar4 = *param_1 == *pbVar2;\n      param_1 = param_1 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n      FUN_00016a30();\n      DAT_00040ba4 = 1;\n      return;\n    }\n  }\n  FUN_00016a30();\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00017760(byte *param_1)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  iVar1 = 6;\n  bVar4 = false;\n  bVar6 = false;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    iVar1 = 5;\n    pbVar2 = (byte *)".rel.";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *param_1 < *pbVar2;\n      bVar4 = *param_1 == *pbVar2;\n      param_1 = param_1 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n      FUN_00016a30();\n      DAT_00040ba4 = 1;\n      return;\n    }\n  }\n  FUN_00016a30();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00017760(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  iVar1 = 6;\n  bVar4 = false;\n  bVar6 = false;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    iVar1 = 5;\n    pbVar2 = (byte *)".rel.";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *param_1 < *pbVar2;\n      bVar4 = *param_1 == *pbVar2;\n      param_1 = param_1 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n      FUN_00016a30();\n      DAT_00040ba4 = 1;\n      return;\n    }\n  }\n  FUN_00016a30();\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (expression_statement "iVar1 = 6;" (assignment_expression "iVar1 = 6" identifier = number_literal) ;) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = identifier) ;) (expression_statement "pbVar3 = (byte *)".rela.";" (assignment_expression "pbVar3 = (byte *)".rela."" identifier = (cast_expression "(byte *)".rela."" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal "".rela."" " string_content "))) ;) (do_statement "do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar6);" do (compound_statement "{\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  }" { (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar4 = *pbVar2 < *pbVar3;" (assignment_expression "bVar4 = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar6 = *pbVar2 == *pbVar3;" (assignment_expression "bVar6 = *pbVar2 == *pbVar3" identifier = (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "bVar4 = (!bVar4 && !bVar6) == bVar4;" (assignment_expression "bVar4 = (!bVar4 && !bVar6) == bVar4" identifier = (binary_expression "(!bVar4 && !bVar6) == bVar4" (parenthesized_expression "(!bVar4 && !bVar6)" ( (binary_expression "!bVar4 && !bVar6" (unary_expression "!bVar4" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar4) {\n    iVar1 = 5;\n    pbVar2 = (byte *)".rel.";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *param_1 < *pbVar2;\n      bVar4 = *param_1 == *pbVar2;\n      param_1 = param_1 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n      FUN_00016a30();\n      DAT_00040ba4 = 1;\n      return;\n    }\n  }" if (parenthesized_expression "(!bVar4)" ( (unary_expression "!bVar4" ! identifier) )) (compound_statement "{\n    iVar1 = 5;\n    pbVar2 = (byte *)".rel.";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *param_1 < *pbVar2;\n      bVar4 = *param_1 == *pbVar2;\n      param_1 = param_1 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n      FUN_00016a30();\n      DAT_00040ba4 = 1;\n      return;\n    }\n  }" { (expression_statement "iVar1 = 5;" (assignment_expression "iVar1 = 5" identifier = number_literal) ;) (expression_statement "pbVar2 = (byte *)".rel.";" (assignment_expression "pbVar2 = (byte *)".rel."" identifier = (cast_expression "(byte *)".rel."" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal "".rel."" " string_content "))) ;) (do_statement "do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *param_1 < *pbVar2;\n      bVar4 = *param_1 == *pbVar2;\n      param_1 = param_1 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (bVar4);" do (compound_statement "{\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *param_1 < *pbVar2;\n      bVar4 = *param_1 == *pbVar2;\n      param_1 = param_1 + 1;\n      pbVar2 = pbVar2 + 1;\n    }" { (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *param_1 < *pbVar2;" (assignment_expression "bVar5 = *param_1 < *pbVar2" identifier = (binary_expression "*param_1 < *pbVar2" (pointer_expression "*param_1" * identifier) < (pointer_expression "*pbVar2" * identifier))) ;) (expression_statement "bVar4 = *param_1 == *pbVar2;" (assignment_expression "bVar4 = *param_1 == *pbVar2" identifier = (binary_expression "*param_1 == *pbVar2" (pointer_expression "*param_1" * identifier) == (pointer_expression "*pbVar2" * identifier))) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar4)" ( identifier )) ;) (if_statement "if ((!bVar5 && !bVar4) != bVar5) {\n      FUN_00016a30();\n      DAT_00040ba4 = 1;\n      return;\n    }" if (parenthesized_expression "((!bVar5 && !bVar4) != bVar5)" ( (binary_expression "(!bVar5 && !bVar4) != bVar5" (parenthesized_expression "(!bVar5 && !bVar4)" ( (binary_expression "!bVar5 && !bVar4" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar4" ! identifier)) )) != identifier) )) (compound_statement "{\n      FUN_00016a30();\n      DAT_00040ba4 = 1;\n      return;\n    }" { (expression_statement "FUN_00016a30();" (call_expression "FUN_00016a30()" identifier (argument_list "()" ( ))) ;) (expression_statement "DAT_00040ba4 = 1;" (assignment_expression "DAT_00040ba4 = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })) })) (expression_statement "FUN_00016a30();" (call_expression "FUN_00016a30()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT)) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00017760(byte *param_1)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  iVar1 = 6;\n  bVar4 = false;\n  bVar6 = false;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    iVar1 = 5;\n    pbVar2 = (byte *)".rel.";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *param_1 < *pbVar2;\n      bVar4 = *param_1 == *pbVar2;\n      param_1 = param_1 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n      FUN_00016a30();\n      DAT_00040ba4 = 1;\n      return;\n    }\n  }\n  FUN_00016a30();\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00017760(byte *param_1)" (identifier "FUN_00017760") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  iVar1 = 6;\n  bVar4 = false;\n  bVar6 = false;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar6);\n  bVar5 = false;\n  bVar4 = (!bVar4 && !bVar6) == bVar4;\n  if (!bVar4) {\n    iVar1 = 5;\n    pbVar2 = (byte *)".rel.";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *param_1 < *pbVar2;\n      bVar4 = *param_1 == *pbVar2;\n      param_1 = param_1 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n      FUN_00016a30();\n      DAT_00040ba4 = 1;\n      return;\n    }\n  }\n  FUN_00016a30();\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "bool bVar4;" (primitive_type "bool") (identifier "bVar4") (; ";")) (declaration "bool bVar5;" (primitive_type "bool") (identifier "bVar5") (; ";")) (declaration "bool bVar6;" (primitive_type "bool") (identifier "bVar6") (; ";")) (expression_statement "iVar1 = 6;" (assignment_expression "iVar1 = 6" (identifier "iVar1") (= "=") (number_literal "6")) (; ";")) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" (identifier "bVar4") (= "=") (false "false")) (; ";")) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" (identifier "bVar6") (= "=") (false "false")) (; ";")) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" (identifier "pbVar2") (= "=") (identifier "param_1")) (; ";")) (expression_statement "pbVar3 = (byte *)".rela.";" (assignment_expression "pbVar3 = (byte *)".rela."" (identifier "pbVar3") (= "=") (cast_expression "(byte *)".rela."" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal "".rela."" (" """) (string_content ".rela.") (" """)))) (; ";")) (do_statement "do {\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar6);" (do "do") (compound_statement "{\n    if (iVar1 == 0) break;\n    iVar1 = iVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar6 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  }" ({ "{") (if_statement "if (iVar1 == 0) break;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar4 = *pbVar2 < *pbVar3;" (assignment_expression "bVar4 = *pbVar2 < *pbVar3" (identifier "bVar4") (= "=") (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (< "<") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")))) (; ";")) (expression_statement "bVar6 = *pbVar2 == *pbVar3;" (assignment_expression "bVar6 = *pbVar2 == *pbVar3" (identifier "bVar6") (= "=") (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (== "==") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")))) (; ";")) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar6)" (( "(") (identifier "bVar6") () ")")) (; ";")) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" (identifier "bVar5") (= "=") (false "false")) (; ";")) (expression_statement "bVar4 = (!bVar4 && !bVar6) == bVar4;" (assignment_expression "bVar4 = (!bVar4 && !bVar6) == bVar4" (identifier "bVar4") (= "=") (binary_expression "(!bVar4 && !bVar6) == bVar4" (parenthesized_expression "(!bVar4 && !bVar6)" (( "(") (binary_expression "!bVar4 && !bVar6" (unary_expression "!bVar4" (! "!") (identifier "bVar4")) (&& "&&") (unary_expression "!bVar6" (! "!") (identifier "bVar6"))) () ")")) (== "==") (identifier "bVar4"))) (; ";")) (if_statement "if (!bVar4) {\n    iVar1 = 5;\n    pbVar2 = (byte *)".rel.";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *param_1 < *pbVar2;\n      bVar4 = *param_1 == *pbVar2;\n      param_1 = param_1 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n      FUN_00016a30();\n      DAT_00040ba4 = 1;\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(!bVar4)" (( "(") (unary_expression "!bVar4" (! "!") (identifier "bVar4")) () ")")) (compound_statement "{\n    iVar1 = 5;\n    pbVar2 = (byte *)".rel.";\n    do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *param_1 < *pbVar2;\n      bVar4 = *param_1 == *pbVar2;\n      param_1 = param_1 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (bVar4);\n    if ((!bVar5 && !bVar4) != bVar5) {\n      FUN_00016a30();\n      DAT_00040ba4 = 1;\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar1 = 5;" (assignment_expression "iVar1 = 5" (identifier "iVar1") (= "=") (number_literal "5")) (; ";")) (expression_statement "pbVar2 = (byte *)".rel.";" (assignment_expression "pbVar2 = (byte *)".rel."" (identifier "pbVar2") (= "=") (cast_expression "(byte *)".rel."" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal "".rel."" (" """) (string_content ".rel.") (" """)))) (; ";")) (do_statement "do {\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *param_1 < *pbVar2;\n      bVar4 = *param_1 == *pbVar2;\n      param_1 = param_1 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (bVar4);" (do "do") (compound_statement "{\n      if (iVar1 == 0) break;\n      iVar1 = iVar1 + -1;\n      bVar5 = *param_1 < *pbVar2;\n      bVar4 = *param_1 == *pbVar2;\n      param_1 = param_1 + 1;\n      pbVar2 = pbVar2 + 1;\n    }" ({ "{") (if_statement "if (iVar1 == 0) break;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar5 = *param_1 < *pbVar2;" (assignment_expression "bVar5 = *param_1 < *pbVar2" (identifier "bVar5") (= "=") (binary_expression "*param_1 < *pbVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (< "<") (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")))) (; ";")) (expression_statement "bVar4 = *param_1 == *pbVar2;" (assignment_expression "bVar4 = *param_1 == *pbVar2" (identifier "bVar4") (= "=") (binary_expression "*param_1 == *pbVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")))) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar4)" (( "(") (identifier "bVar4") () ")")) (; ";")) (if_statement "if ((!bVar5 && !bVar4) != bVar5) {\n      FUN_00016a30();\n      DAT_00040ba4 = 1;\n      return;\n    }" (if "if") (parenthesized_expression "((!bVar5 && !bVar4) != bVar5)" (( "(") (binary_expression "(!bVar5 && !bVar4) != bVar5" (parenthesized_expression "(!bVar5 && !bVar4)" (( "(") (binary_expression "!bVar5 && !bVar4" (unary_expression "!bVar5" (! "!") (identifier "bVar5")) (&& "&&") (unary_expression "!bVar4" (! "!") (identifier "bVar4"))) () ")")) (!= "!=") (identifier "bVar5")) () ")")) (compound_statement "{\n      FUN_00016a30();\n      DAT_00040ba4 = 1;\n      return;\n    }" ({ "{") (expression_statement "FUN_00016a30();" (call_expression "FUN_00016a30()" (identifier "FUN_00016a30") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "DAT_00040ba4 = 1;" (assignment_expression "DAT_00040ba4 = 1" (identifier "DAT_00040ba4") (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_00016a30();" (call_expression "FUN_00016a30()" (identifier "FUN_00016a30") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(char *var_5)

{
  char *name;
  int var_1;
  type_1 *var_2;
  type_1 *var_3;
  bool var_4;
  bool var_6;
  bool bVar6;
  
  var_1 = 6;
  var_4 = false;
  bVar6 = false;
  var_2 = (type_1 *)var_5;
  var_3 = (type_1 *)".rela.";
  do {
    if (var_1 == 0) break;
    var_1 = var_1 + -1;
    var_4 = *var_2 < *var_3;
    bVar6 = *var_2 == *var_3;
    var_2 = var_2 + 1;
    var_3 = var_3 + 1;
  } while (bVar6);
  var_6 = false;
  var_4 = (!var_4 && !bVar6) == var_4;
  if (var_4) {
    name = var_5 + 5;
  }
  else {
    var_1 = 5;
    var_2 = (type_1 *)var_5;
    var_3 = (type_1 *)".rel.";
    do {
      if (var_1 == 0) break;
      var_1 = var_1 + -1;
      var_6 = *var_2 < *var_3;
      var_4 = *var_2 == *var_3;
      var_2 = var_2 + 1;
      var_3 = var_3 + 1;
    } while (var_4);
    if ((!var_6 && !var_4) != var_6) {
      var_7(var_5,1,1);
      sections_removed = 1;
      return;
    }
    name = var_5 + 4;
  }
  var_7(name,1,0x80);
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (string_literal (string_content))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_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: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (identifier))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (unary_expression argument: (identifier)))) right: (identifier)))) (if_statement condition: (parenthesized_expression (unary_expression argument: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (string_literal (string_content))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_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: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (unary_expression argument: (identifier)))) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (return_statement))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

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

void __regparm3 MASKED(byte *param_1)

{
  int iVar1;
  byte *pbVar2;
  byte *pbVar3;
  bool bVar4;
  bool bVar5;
  bool bVar6;
  
  iVar1 = 6;
  bVar4 = false;
  bVar6 = false;
  pbVar2 = param_1;
  pbVar3 = (byte *)".rela.";
  do {
    if (iVar1 == 0) break;
    iVar1 = iVar1 + -1;
    bVar4 = *pbVar2 < *pbVar3;
    bVar6 = *pbVar2 == *pbVar3;
    pbVar2 = pbVar2 + 1;
    pbVar3 = pbVar3 + 1;
  } while (bVar6);
  bVar5 = false;
  bVar4 = (!bVar4 && !bVar6) == bVar4;
  if (!bVar4) {
    iVar1 = 5;
    pbVar2 = (byte *)".rel.";
    do {
      if (iVar1 == 0) break;
      iVar1 = iVar1 + -1;
      bVar5 = *param_1 < *pbVar2;
      bVar4 = *param_1 == *pbVar2;
      param_1 = param_1 + 1;
      pbVar2 = pbVar2 + 1;
    } while (bVar4);
    if ((!bVar5 && !bVar4) != bVar5) {
      FUN_00016a30();
      DAT_00040ba4 = 1;
      return;
    }
  }
  FUN_00016a30();
  return;
}

