
void handle_remove_section_option(char *section_pattern)

{
  long lVar1;
  byte *pbVar2;
  byte *pbVar3;
  undefined1 in_CF;
  bool bVar4;
  undefined1 in_ZF;
  bool bVar5;
  
  lVar1 = 6;
  pbVar2 = (byte *)section_pattern;
  pbVar3 = (byte *)".rela.";
  do {
    if (lVar1 == 0) break;
    lVar1 = lVar1 + -1;
    in_CF = *pbVar2 < *pbVar3;
    in_ZF = *pbVar2 == *pbVar3;
    pbVar2 = pbVar2 + 1;
    pbVar3 = pbVar3 + 1;
  } while ((bool)in_ZF);
  bVar4 = false;
  bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;
  if (bVar5) {
    find_section_list(section_pattern + 5,1,0x80);
    return;
  }
  lVar1 = 5;
  pbVar2 = (byte *)section_pattern;
  pbVar3 = (byte *)".rel.";
  do {
    if (lVar1 == 0) break;
    lVar1 = lVar1 + -1;
    bVar4 = *pbVar2 < *pbVar3;
    bVar5 = *pbVar2 == *pbVar3;
    pbVar2 = pbVar2 + 1;
    pbVar3 = pbVar3 + 1;
  } while (bVar5);
  if ((!bVar4 && !bVar5) == bVar4) {
    find_section_list(section_pattern + 4,1,0x80);
    return;
  }
  find_section_list(section_pattern,1,1);
  sections_removed = 1;
  return;
}



void FUN_00108020(byte *param_1)

{
  long lVar1;
  byte *pbVar2;
  byte *pbVar3;
  undefined1 in_CF;
  bool bVar4;
  undefined1 in_ZF;
  bool bVar5;
  
  lVar1 = 6;
  pbVar2 = param_1;
  pbVar3 = (byte *)".rela.";
  do {
    if (lVar1 == 0) break;
    lVar1 = lVar1 + -1;
    in_CF = *pbVar2 < *pbVar3;
    in_ZF = *pbVar2 == *pbVar3;
    pbVar2 = pbVar2 + 1;
    pbVar3 = pbVar3 + 1;
  } while ((bool)in_ZF);
  bVar4 = false;
  bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;
  if (bVar5) {
    FUN_00107360(param_1 + 5,1,0x80);
    return;
  }
  lVar1 = 5;
  pbVar2 = param_1;
  pbVar3 = (byte *)".rel.";
  do {
    if (lVar1 == 0) break;
    lVar1 = lVar1 + -1;
    bVar4 = *pbVar2 < *pbVar3;
    bVar5 = *pbVar2 == *pbVar3;
    pbVar2 = pbVar2 + 1;
    pbVar3 = pbVar3 + 1;
  } while (bVar5);
  if ((!bVar4 && !bVar5) == bVar4) {
    FUN_00107360(param_1 + 4,1,0x80);
    return;
  }
  FUN_00107360(param_1,1,1);
  DAT_0012cafc = 1;
  return;
}


MOV RAX,RDI
MOV ECX,0x6
LEA RDI,[0x11e0d6]
MOV RSI,RAX
CMPSB.REPE RDI,RSI
SETA DL
SBB DL,0x0
TEST DL,DL
JZ 0x00108098
MOV ECX,0x5
LEA RDI,[0x11e0dd]
MOV RSI,RAX
CMPSB.REPE RDI,RSI
SETA DL
SBB DL,0x0
TEST DL,DL
JNZ 0x00108070
LEA RDI,[RAX + 0x4]
MOV EDX,0x80
MOV ESI,0x1
JMP 0x00107360
SUB RSP,0x8
MOV RDI,RAX
MOV EDX,0x1
MOV ESI,0x1
CALL 0x00107360
MOV dword ptr [0x0012cafc],0x1
ADD RSP,0x8
RET
LEA RDI,[RAX + 0x5]
MOV EDX,0x80
MOV ESI,0x1
JMP 0x00107360
(translation_unit "void FUN_00108020(byte *param_1)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  undefined1 in_CF;\n  bool bVar4;\n  undefined1 in_ZF;\n  bool bVar5;\n  \n  lVar1 = 6;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < *pbVar3;\n    in_ZF = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while ((bool)in_ZF);\n  bVar4 = false;\n  bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;\n  if (bVar5) {\n    FUN_00107360(param_1 + 5,1,0x80);\n    return;\n  }\n  lVar1 = 5;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rel.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar5 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar5);\n  if ((!bVar4 && !bVar5) == bVar4) {\n    FUN_00107360(param_1 + 4,1,0x80);\n    return;\n  }\n  FUN_00107360(param_1,1,1);\n  DAT_0012cafc = 1;\n  return;\n}\n\n" (function_definition "void FUN_00108020(byte *param_1)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  undefined1 in_CF;\n  bool bVar4;\n  undefined1 in_ZF;\n  bool bVar5;\n  \n  lVar1 = 6;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < *pbVar3;\n    in_ZF = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while ((bool)in_ZF);\n  bVar4 = false;\n  bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;\n  if (bVar5) {\n    FUN_00107360(param_1 + 5,1,0x80);\n    return;\n  }\n  lVar1 = 5;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rel.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar5 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar5);\n  if ((!bVar4 && !bVar5) == bVar4) {\n    FUN_00107360(param_1 + 4,1,0x80);\n    return;\n  }\n  FUN_00107360(param_1,1,1);\n  DAT_0012cafc = 1;\n  return;\n}" primitive_type (function_declarator "FUN_00108020(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  undefined1 in_CF;\n  bool bVar4;\n  undefined1 in_ZF;\n  bool bVar5;\n  \n  lVar1 = 6;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < *pbVar3;\n    in_ZF = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while ((bool)in_ZF);\n  bVar4 = false;\n  bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;\n  if (bVar5) {\n    FUN_00107360(param_1 + 5,1,0x80);\n    return;\n  }\n  lVar1 = 5;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rel.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar5 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar5);\n  if ((!bVar4 && !bVar5) == bVar4) {\n    FUN_00107360(param_1 + 4,1,0x80);\n    return;\n  }\n  FUN_00107360(param_1,1,1);\n  DAT_0012cafc = 1;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "undefined1 in_CF;" type_identifier identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "undefined1 in_ZF;" type_identifier identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (expression_statement "lVar1 = 6;" (assignment_expression "lVar1 = 6" identifier = number_literal) ;) (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 (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < *pbVar3;\n    in_ZF = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while ((bool)in_ZF);" do (compound_statement "{\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < *pbVar3;\n    in_ZF = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  }" { (if_statement "if (lVar1 == 0) break;" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar1 = lVar1 + -1;" (assignment_expression "lVar1 = lVar1 + -1" identifier = (binary_expression "lVar1 + -1" identifier + number_literal)) ;) (expression_statement "in_CF = *pbVar2 < *pbVar3;" (assignment_expression "in_CF = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "in_ZF = *pbVar2 == *pbVar3;" (assignment_expression "in_ZF = *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 "((bool)in_ZF)" ( (cast_expression "(bool)in_ZF" ( (type_descriptor "bool" primitive_type) ) identifier) )) ;) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (expression_statement "bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;" (assignment_expression "bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF" identifier = (binary_expression "(!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF" (parenthesized_expression "(!(bool)in_CF && !(bool)in_ZF)" ( (binary_expression "!(bool)in_CF && !(bool)in_ZF" (unary_expression "!(bool)in_CF" ! (cast_expression "(bool)in_CF" ( (type_descriptor "bool" primitive_type) ) identifier)) && (unary_expression "!(bool)in_ZF" ! (cast_expression "(bool)in_ZF" ( (type_descriptor "bool" primitive_type) ) identifier))) )) == (cast_expression "(bool)in_CF" ( (type_descriptor "bool" primitive_type) ) identifier))) ;) (if_statement "if (bVar5) {\n    FUN_00107360(param_1 + 5,1,0x80);\n    return;\n  }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n    FUN_00107360(param_1 + 5,1,0x80);\n    return;\n  }" { (expression_statement "FUN_00107360(param_1 + 5,1,0x80);" (call_expression "FUN_00107360(param_1 + 5,1,0x80)" identifier (argument_list "(param_1 + 5,1,0x80)" ( (binary_expression "param_1 + 5" identifier + number_literal) , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "lVar1 = 5;" (assignment_expression "lVar1 = 5" identifier = number_literal) ;) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = 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 (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar5 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar5);" do (compound_statement "{\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar5 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  }" { (if_statement "if (lVar1 == 0) break;" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar1 = lVar1 + -1;" (assignment_expression "lVar1 = lVar1 + -1" identifier = (binary_expression "lVar1 + -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 "bVar5 = *pbVar2 == *pbVar3;" (assignment_expression "bVar5 = *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 "(bVar5)" ( identifier )) ;) (if_statement "if ((!bVar4 && !bVar5) == bVar4) {\n    FUN_00107360(param_1 + 4,1,0x80);\n    return;\n  }" if (parenthesized_expression "((!bVar4 && !bVar5) == bVar4)" ( (binary_expression "(!bVar4 && !bVar5) == bVar4" (parenthesized_expression "(!bVar4 && !bVar5)" ( (binary_expression "!bVar4 && !bVar5" (unary_expression "!bVar4" ! identifier) && (unary_expression "!bVar5" ! identifier)) )) == identifier) )) (compound_statement "{\n    FUN_00107360(param_1 + 4,1,0x80);\n    return;\n  }" { (expression_statement "FUN_00107360(param_1 + 4,1,0x80);" (call_expression "FUN_00107360(param_1 + 4,1,0x80)" identifier (argument_list "(param_1 + 4,1,0x80)" ( (binary_expression "param_1 + 4" identifier + number_literal) , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00107360(param_1,1,1);" (call_expression "FUN_00107360(param_1,1,1)" identifier (argument_list "(param_1,1,1)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "DAT_0012cafc = 1;" (assignment_expression "DAT_0012cafc = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void handle_remove_section_option(char *section_pattern)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  undefined1 in_CF;\n  bool bVar4;\n  undefined1 in_ZF;\n  bool bVar5;\n  \n  lVar1 = 6;\n  pbVar2 = (byte *)section_pattern;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < *pbVar3;\n    in_ZF = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while ((bool)in_ZF);\n  bVar4 = false;\n  bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;\n  if (bVar5) {\n    find_section_list(section_pattern + 5,1,0x80);\n    return;\n  }\n  lVar1 = 5;\n  pbVar2 = (byte *)section_pattern;\n  pbVar3 = (byte *)".rel.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar5 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar5);\n  if ((!bVar4 && !bVar5) == bVar4) {\n    find_section_list(section_pattern + 4,1,0x80);\n    return;\n  }\n  find_section_list(section_pattern,1,1);\n  sections_removed = 1;\n  return;\n}\n\n" (function_definition "void handle_remove_section_option(char *section_pattern)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  undefined1 in_CF;\n  bool bVar4;\n  undefined1 in_ZF;\n  bool bVar5;\n  \n  lVar1 = 6;\n  pbVar2 = (byte *)section_pattern;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < *pbVar3;\n    in_ZF = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while ((bool)in_ZF);\n  bVar4 = false;\n  bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;\n  if (bVar5) {\n    find_section_list(section_pattern + 5,1,0x80);\n    return;\n  }\n  lVar1 = 5;\n  pbVar2 = (byte *)section_pattern;\n  pbVar3 = (byte *)".rel.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar5 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar5);\n  if ((!bVar4 && !bVar5) == bVar4) {\n    find_section_list(section_pattern + 4,1,0x80);\n    return;\n  }\n  find_section_list(section_pattern,1,1);\n  sections_removed = 1;\n  return;\n}" primitive_type (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  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  undefined1 in_CF;\n  bool bVar4;\n  undefined1 in_ZF;\n  bool bVar5;\n  \n  lVar1 = 6;\n  pbVar2 = (byte *)section_pattern;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < *pbVar3;\n    in_ZF = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while ((bool)in_ZF);\n  bVar4 = false;\n  bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;\n  if (bVar5) {\n    find_section_list(section_pattern + 5,1,0x80);\n    return;\n  }\n  lVar1 = 5;\n  pbVar2 = (byte *)section_pattern;\n  pbVar3 = (byte *)".rel.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar5 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar5);\n  if ((!bVar4 && !bVar5) == bVar4) {\n    find_section_list(section_pattern + 4,1,0x80);\n    return;\n  }\n  find_section_list(section_pattern,1,1);\n  sections_removed = 1;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "undefined1 in_CF;" type_identifier identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "undefined1 in_ZF;" type_identifier identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (expression_statement "lVar1 = 6;" (assignment_expression "lVar1 = 6" 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 *)".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 (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < *pbVar3;\n    in_ZF = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while ((bool)in_ZF);" do (compound_statement "{\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < *pbVar3;\n    in_ZF = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  }" { (if_statement "if (lVar1 == 0) break;" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar1 = lVar1 + -1;" (assignment_expression "lVar1 = lVar1 + -1" identifier = (binary_expression "lVar1 + -1" identifier + number_literal)) ;) (expression_statement "in_CF = *pbVar2 < *pbVar3;" (assignment_expression "in_CF = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "in_ZF = *pbVar2 == *pbVar3;" (assignment_expression "in_ZF = *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 "((bool)in_ZF)" ( (cast_expression "(bool)in_ZF" ( (type_descriptor "bool" primitive_type) ) identifier) )) ;) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (expression_statement "bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;" (assignment_expression "bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF" identifier = (binary_expression "(!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF" (parenthesized_expression "(!(bool)in_CF && !(bool)in_ZF)" ( (binary_expression "!(bool)in_CF && !(bool)in_ZF" (unary_expression "!(bool)in_CF" ! (cast_expression "(bool)in_CF" ( (type_descriptor "bool" primitive_type) ) identifier)) && (unary_expression "!(bool)in_ZF" ! (cast_expression "(bool)in_ZF" ( (type_descriptor "bool" primitive_type) ) identifier))) )) == (cast_expression "(bool)in_CF" ( (type_descriptor "bool" primitive_type) ) identifier))) ;) (if_statement "if (bVar5) {\n    find_section_list(section_pattern + 5,1,0x80);\n    return;\n  }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n    find_section_list(section_pattern + 5,1,0x80);\n    return;\n  }" { (expression_statement "find_section_list(section_pattern + 5,1,0x80);" (call_expression "find_section_list(section_pattern + 5,1,0x80)" identifier (argument_list "(section_pattern + 5,1,0x80)" ( (binary_expression "section_pattern + 5" identifier + number_literal) , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "lVar1 = 5;" (assignment_expression "lVar1 = 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 (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar5 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar5);" do (compound_statement "{\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar5 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  }" { (if_statement "if (lVar1 == 0) break;" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar1 = lVar1 + -1;" (assignment_expression "lVar1 = lVar1 + -1" identifier = (binary_expression "lVar1 + -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 "bVar5 = *pbVar2 == *pbVar3;" (assignment_expression "bVar5 = *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 "(bVar5)" ( identifier )) ;) (if_statement "if ((!bVar4 && !bVar5) == bVar4) {\n    find_section_list(section_pattern + 4,1,0x80);\n    return;\n  }" if (parenthesized_expression "((!bVar4 && !bVar5) == bVar4)" ( (binary_expression "(!bVar4 && !bVar5) == bVar4" (parenthesized_expression "(!bVar4 && !bVar5)" ( (binary_expression "!bVar4 && !bVar5" (unary_expression "!bVar4" ! identifier) && (unary_expression "!bVar5" ! identifier)) )) == identifier) )) (compound_statement "{\n    find_section_list(section_pattern + 4,1,0x80);\n    return;\n  }" { (expression_statement "find_section_list(section_pattern + 4,1,0x80);" (call_expression "find_section_list(section_pattern + 4,1,0x80)" identifier (argument_list "(section_pattern + 4,1,0x80)" ( (binary_expression "section_pattern + 4" identifier + number_literal) , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })) (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 ;) })))
(translation_unit "void FUN_00108020(byte *param_1)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  undefined1 in_CF;\n  bool bVar4;\n  undefined1 in_ZF;\n  bool bVar5;\n  \n  lVar1 = 6;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < *pbVar3;\n    in_ZF = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while ((bool)in_ZF);\n  bVar4 = false;\n  bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;\n  if (bVar5) {\n    FUN_00107360(param_1 + 5,1,0x80);\n    return;\n  }\n  lVar1 = 5;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rel.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar5 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar5);\n  if ((!bVar4 && !bVar5) == bVar4) {\n    FUN_00107360(param_1 + 4,1,0x80);\n    return;\n  }\n  FUN_00107360(param_1,1,1);\n  DAT_0012cafc = 1;\n  return;\n}\n\n" (function_definition "void FUN_00108020(byte *param_1)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  undefined1 in_CF;\n  bool bVar4;\n  undefined1 in_ZF;\n  bool bVar5;\n  \n  lVar1 = 6;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < *pbVar3;\n    in_ZF = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while ((bool)in_ZF);\n  bVar4 = false;\n  bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;\n  if (bVar5) {\n    FUN_00107360(param_1 + 5,1,0x80);\n    return;\n  }\n  lVar1 = 5;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rel.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar5 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar5);\n  if ((!bVar4 && !bVar5) == bVar4) {\n    FUN_00107360(param_1 + 4,1,0x80);\n    return;\n  }\n  FUN_00107360(param_1,1,1);\n  DAT_0012cafc = 1;\n  return;\n}" primitive_type (function_declarator "FUN_00108020(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  undefined1 in_CF;\n  bool bVar4;\n  undefined1 in_ZF;\n  bool bVar5;\n  \n  lVar1 = 6;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < *pbVar3;\n    in_ZF = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while ((bool)in_ZF);\n  bVar4 = false;\n  bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;\n  if (bVar5) {\n    FUN_00107360(param_1 + 5,1,0x80);\n    return;\n  }\n  lVar1 = 5;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rel.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar5 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar5);\n  if ((!bVar4 && !bVar5) == bVar4) {\n    FUN_00107360(param_1 + 4,1,0x80);\n    return;\n  }\n  FUN_00107360(param_1,1,1);\n  DAT_0012cafc = 1;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "undefined1 in_CF;" type_identifier identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "undefined1 in_ZF;" type_identifier identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (expression_statement "lVar1 = 6;" (assignment_expression "lVar1 = 6" identifier = number_literal) ;) (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 (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < *pbVar3;\n    in_ZF = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while ((bool)in_ZF);" do (compound_statement "{\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < *pbVar3;\n    in_ZF = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  }" { (if_statement "if (lVar1 == 0) break;" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar1 = lVar1 + -1;" (assignment_expression "lVar1 = lVar1 + -1" identifier = (binary_expression "lVar1 + -1" identifier + number_literal)) ;) (expression_statement "in_CF = *pbVar2 < *pbVar3;" (assignment_expression "in_CF = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "in_ZF = *pbVar2 == *pbVar3;" (assignment_expression "in_ZF = *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 "((bool)in_ZF)" ( (cast_expression "(bool)in_ZF" ( (type_descriptor "bool" primitive_type) ) identifier) )) ;) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (expression_statement "bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;" (assignment_expression "bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF" identifier = (binary_expression "(!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF" (parenthesized_expression "(!(bool)in_CF && !(bool)in_ZF)" ( (binary_expression "!(bool)in_CF && !(bool)in_ZF" (unary_expression "!(bool)in_CF" ! (cast_expression "(bool)in_CF" ( (type_descriptor "bool" primitive_type) ) identifier)) && (unary_expression "!(bool)in_ZF" ! (cast_expression "(bool)in_ZF" ( (type_descriptor "bool" primitive_type) ) identifier))) )) == (cast_expression "(bool)in_CF" ( (type_descriptor "bool" primitive_type) ) identifier))) ;) (if_statement "if (bVar5) {\n    FUN_00107360(param_1 + 5,1,0x80);\n    return;\n  }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n    FUN_00107360(param_1 + 5,1,0x80);\n    return;\n  }" { (expression_statement "FUN_00107360(param_1 + 5,1,0x80);" (call_expression "FUN_00107360(param_1 + 5,1,0x80)" identifier (argument_list "(param_1 + 5,1,0x80)" ( (binary_expression "param_1 + 5" identifier + number_literal) , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "lVar1 = 5;" (assignment_expression "lVar1 = 5" identifier = number_literal) ;) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = 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 (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar5 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar5);" do (compound_statement "{\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar5 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  }" { (if_statement "if (lVar1 == 0) break;" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar1 = lVar1 + -1;" (assignment_expression "lVar1 = lVar1 + -1" identifier = (binary_expression "lVar1 + -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 "bVar5 = *pbVar2 == *pbVar3;" (assignment_expression "bVar5 = *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 "(bVar5)" ( identifier )) ;) (if_statement "if ((!bVar4 && !bVar5) == bVar4) {\n    FUN_00107360(param_1 + 4,1,0x80);\n    return;\n  }" if (parenthesized_expression "((!bVar4 && !bVar5) == bVar4)" ( (binary_expression "(!bVar4 && !bVar5) == bVar4" (parenthesized_expression "(!bVar4 && !bVar5)" ( (binary_expression "!bVar4 && !bVar5" (unary_expression "!bVar4" ! identifier) && (unary_expression "!bVar5" ! identifier)) )) == identifier) )) (compound_statement "{\n    FUN_00107360(param_1 + 4,1,0x80);\n    return;\n  }" { (expression_statement "FUN_00107360(param_1 + 4,1,0x80);" (call_expression "FUN_00107360(param_1 + 4,1,0x80)" identifier (argument_list "(param_1 + 4,1,0x80)" ( (binary_expression "param_1 + 4" identifier + number_literal) , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00107360(param_1,1,1);" (call_expression "FUN_00107360(param_1,1,1)" identifier (argument_list "(param_1,1,1)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "DAT_0012cafc = 1;" (assignment_expression "DAT_0012cafc = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 ( (cast_expression ( (type_descriptor TYPE) ) IDENT) )) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! (cast_expression ( (type_descriptor TYPE) ) IDENT)) && (unary_expression ! (cast_expression ( (type_descriptor TYPE) ) IDENT))) )) == (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , LIT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (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 )) ;) (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 ( (binary_expression IDENT + LIT) , LIT , LIT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00108020(byte *param_1)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  undefined1 in_CF;\n  bool bVar4;\n  undefined1 in_ZF;\n  bool bVar5;\n  \n  lVar1 = 6;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < *pbVar3;\n    in_ZF = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while ((bool)in_ZF);\n  bVar4 = false;\n  bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;\n  if (bVar5) {\n    FUN_00107360(param_1 + 5,1,0x80);\n    return;\n  }\n  lVar1 = 5;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rel.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar5 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar5);\n  if ((!bVar4 && !bVar5) == bVar4) {\n    FUN_00107360(param_1 + 4,1,0x80);\n    return;\n  }\n  FUN_00107360(param_1,1,1);\n  DAT_0012cafc = 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00108020(byte *param_1)" (identifier "FUN_00108020") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  long lVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  undefined1 in_CF;\n  bool bVar4;\n  undefined1 in_ZF;\n  bool bVar5;\n  \n  lVar1 = 6;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rela.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < *pbVar3;\n    in_ZF = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while ((bool)in_ZF);\n  bVar4 = false;\n  bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;\n  if (bVar5) {\n    FUN_00107360(param_1 + 5,1,0x80);\n    return;\n  }\n  lVar1 = 5;\n  pbVar2 = param_1;\n  pbVar3 = (byte *)".rel.";\n  do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar5 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar5);\n  if ((!bVar4 && !bVar5) == bVar4) {\n    FUN_00107360(param_1 + 4,1,0x80);\n    return;\n  }\n  FUN_00107360(param_1,1,1);\n  DAT_0012cafc = 1;\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "undefined1 in_CF;" (type_identifier "undefined1") (identifier "in_CF") (; ";")) (declaration "bool bVar4;" (primitive_type "bool") (identifier "bVar4") (; ";")) (declaration "undefined1 in_ZF;" (type_identifier "undefined1") (identifier "in_ZF") (; ";")) (declaration "bool bVar5;" (primitive_type "bool") (identifier "bVar5") (; ";")) (expression_statement "lVar1 = 6;" (assignment_expression "lVar1 = 6" (identifier "lVar1") (= "=") (number_literal "6")) (; ";")) (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 (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < *pbVar3;\n    in_ZF = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while ((bool)in_ZF);" (do "do") (compound_statement "{\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < *pbVar3;\n    in_ZF = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  }" ({ "{") (if_statement "if (lVar1 == 0) break;" (if "if") (parenthesized_expression "(lVar1 == 0)" (( "(") (binary_expression "lVar1 == 0" (identifier "lVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar1 = lVar1 + -1;" (assignment_expression "lVar1 = lVar1 + -1" (identifier "lVar1") (= "=") (binary_expression "lVar1 + -1" (identifier "lVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "in_CF = *pbVar2 < *pbVar3;" (assignment_expression "in_CF = *pbVar2 < *pbVar3" (identifier "in_CF") (= "=") (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (< "<") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")))) (; ";")) (expression_statement "in_ZF = *pbVar2 == *pbVar3;" (assignment_expression "in_ZF = *pbVar2 == *pbVar3" (identifier "in_ZF") (= "=") (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 "((bool)in_ZF)" (( "(") (cast_expression "(bool)in_ZF" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (identifier "in_ZF")) () ")")) (; ";")) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" (identifier "bVar4") (= "=") (false "false")) (; ";")) (expression_statement "bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;" (assignment_expression "bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF" (identifier "bVar5") (= "=") (binary_expression "(!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF" (parenthesized_expression "(!(bool)in_CF && !(bool)in_ZF)" (( "(") (binary_expression "!(bool)in_CF && !(bool)in_ZF" (unary_expression "!(bool)in_CF" (! "!") (cast_expression "(bool)in_CF" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (identifier "in_CF"))) (&& "&&") (unary_expression "!(bool)in_ZF" (! "!") (cast_expression "(bool)in_ZF" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (identifier "in_ZF")))) () ")")) (== "==") (cast_expression "(bool)in_CF" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (identifier "in_CF")))) (; ";")) (if_statement "if (bVar5) {\n    FUN_00107360(param_1 + 5,1,0x80);\n    return;\n  }" (if "if") (parenthesized_expression "(bVar5)" (( "(") (identifier "bVar5") () ")")) (compound_statement "{\n    FUN_00107360(param_1 + 5,1,0x80);\n    return;\n  }" ({ "{") (expression_statement "FUN_00107360(param_1 + 5,1,0x80);" (call_expression "FUN_00107360(param_1 + 5,1,0x80)" (identifier "FUN_00107360") (argument_list "(param_1 + 5,1,0x80)" (( "(") (binary_expression "param_1 + 5" (identifier "param_1") (+ "+") (number_literal "5")) (, ",") (number_literal "1") (, ",") (number_literal "0x80") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "lVar1 = 5;" (assignment_expression "lVar1 = 5" (identifier "lVar1") (= "=") (number_literal "5")) (; ";")) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" (identifier "pbVar2") (= "=") (identifier "param_1")) (; ";")) (expression_statement "pbVar3 = (byte *)".rel.";" (assignment_expression "pbVar3 = (byte *)".rel."" (identifier "pbVar3") (= "=") (cast_expression "(byte *)".rel."" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal "".rel."" (" """) (string_content ".rel.") (" """)))) (; ";")) (do_statement "do {\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar5 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  } while (bVar5);" (do "do") (compound_statement "{\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    bVar4 = *pbVar2 < *pbVar3;\n    bVar5 = *pbVar2 == *pbVar3;\n    pbVar2 = pbVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n  }" ({ "{") (if_statement "if (lVar1 == 0) break;" (if "if") (parenthesized_expression "(lVar1 == 0)" (( "(") (binary_expression "lVar1 == 0" (identifier "lVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar1 = lVar1 + -1;" (assignment_expression "lVar1 = lVar1 + -1" (identifier "lVar1") (= "=") (binary_expression "lVar1 + -1" (identifier "lVar1") (+ "+") (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 "bVar5 = *pbVar2 == *pbVar3;" (assignment_expression "bVar5 = *pbVar2 == *pbVar3" (identifier "bVar5") (= "=") (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 "(bVar5)" (( "(") (identifier "bVar5") () ")")) (; ";")) (if_statement "if ((!bVar4 && !bVar5) == bVar4) {\n    FUN_00107360(param_1 + 4,1,0x80);\n    return;\n  }" (if "if") (parenthesized_expression "((!bVar4 && !bVar5) == bVar4)" (( "(") (binary_expression "(!bVar4 && !bVar5) == bVar4" (parenthesized_expression "(!bVar4 && !bVar5)" (( "(") (binary_expression "!bVar4 && !bVar5" (unary_expression "!bVar4" (! "!") (identifier "bVar4")) (&& "&&") (unary_expression "!bVar5" (! "!") (identifier "bVar5"))) () ")")) (== "==") (identifier "bVar4")) () ")")) (compound_statement "{\n    FUN_00107360(param_1 + 4,1,0x80);\n    return;\n  }" ({ "{") (expression_statement "FUN_00107360(param_1 + 4,1,0x80);" (call_expression "FUN_00107360(param_1 + 4,1,0x80)" (identifier "FUN_00107360") (argument_list "(param_1 + 4,1,0x80)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) (, ",") (number_literal "1") (, ",") (number_literal "0x80") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00107360(param_1,1,1);" (call_expression "FUN_00107360(param_1,1,1)" (identifier "FUN_00107360") (argument_list "(param_1,1,1)" (( "(") (identifier "param_1") (, ",") (number_literal "1") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "DAT_0012cafc = 1;" (assignment_expression "DAT_0012cafc = 1" (identifier "DAT_0012cafc") (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char *var_5)

{
  long var_1;
  type_1 *var_2;
  type_1 *var_3;
  type_2 in_CF;
  bool var_6;
  type_2 in_ZF;
  bool bVar5;
  
  var_1 = 6;
  var_2 = (type_1 *)var_5;
  var_3 = (type_1 *)".rela.";
  do {
    if (var_1 == 0) break;
    var_1 = var_1 + -1;
    in_CF = *var_2 < *var_3;
    in_ZF = *var_2 == *var_3;
    var_2 = var_2 + 1;
    var_3 = var_3 + 1;
  } while ((bool)in_ZF);
  var_6 = false;
  bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;
  if (bVar5) {
    var_4(var_5 + 5,1,0x80);
    return;
  }
  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;
    bVar5 = *var_2 == *var_3;
    var_2 = var_2 + 1;
    var_3 = var_3 + 1;
  } while (bVar5);
  if ((!var_6 && !bVar5) == var_6) {
    var_4(var_5 + 4,1,0x80);
    return;
  }
  var_4(var_5,1,1);
  sections_removed = 1;
  return;
}


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

void MASKED(byte *param_1)

{
  long lVar1;
  byte *pbVar2;
  byte *pbVar3;
  undefined1 in_CF;
  bool bVar4;
  undefined1 in_ZF;
  bool bVar5;
  
  lVar1 = 6;
  pbVar2 = param_1;
  pbVar3 = (byte *)".rela.";
  do {
    if (lVar1 == 0) break;
    lVar1 = lVar1 + -1;
    in_CF = *pbVar2 < *pbVar3;
    in_ZF = *pbVar2 == *pbVar3;
    pbVar2 = pbVar2 + 1;
    pbVar3 = pbVar3 + 1;
  } while ((bool)in_ZF);
  bVar4 = false;
  bVar5 = (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;
  if (bVar5) {
    FUN_00107360(param_1 + 5,1,0x80);
    return;
  }
  lVar1 = 5;
  pbVar2 = param_1;
  pbVar3 = (byte *)".rel.";
  do {
    if (lVar1 == 0) break;
    lVar1 = lVar1 + -1;
    bVar4 = *pbVar2 < *pbVar3;
    bVar5 = *pbVar2 == *pbVar3;
    pbVar2 = pbVar2 + 1;
    pbVar3 = pbVar3 + 1;
  } while (bVar5);
  if ((!bVar4 && !bVar5) == bVar4) {
    FUN_00107360(param_1 + 4,1,0x80);
    return;
  }
  FUN_00107360(param_1,1,1);
  DAT_0012cafc = 1;
  return;
}

