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

bfd_boolean __regparm3 unique_section_p(asection *sec,lang_output_section_statement_type *os)

{
  bfd *pbVar1;
  char *name;
  unique_sections *puVar2;
  bfd_boolean bVar3;
  int iVar4;
  byte *pbVar5;
  byte *pbVar6;
  bool bVar7;
  bool bVar8;
  byte bVar9;
  
  bVar9 = 0;
  if ((((link_info._1_1_ & 0x10) == 0) && (pbVar1 = sec->owner, pbVar1 != (bfd *)0x0)) &&
     (bVar3 = (*pbVar1->xvec->_bfd_is_group_section)(pbVar1,sec), bVar3 != 0)) {
    bVar7 = false;
    bVar8 = os == (lang_output_section_statement_type *)0x0;
    if (!bVar8) {
      iVar4 = 10;
      pbVar5 = (byte *)os->name;
      pbVar6 = (byte *)"/DISCARD/";
      do {
        if (iVar4 == 0) break;
        iVar4 = iVar4 + -1;
        bVar7 = *pbVar5 < *pbVar6;
        bVar8 = *pbVar5 == *pbVar6;
        pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;
        pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;
      } while (bVar8);
      return (uint)((!bVar7 && !bVar8) != bVar7);
    }
  }
  else {
    name = sec->name;
    puVar2 = unique_section_list;
    while( true ) {
      if (puVar2 == (unique_sections *)0x0) {
        return 0;
      }
      iVar4 = name_match(puVar2->name,name);
      if (iVar4 == 0) break;
      puVar2 = puVar2->next;
    }
  }
  return 1;
}



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

bool __regparm3 FUN_000220f0(int param_1,int param_2)

{
  undefined4 *puVar1;
  int iVar2;
  byte *pbVar3;
  byte *pbVar4;
  bool bVar5;
  bool bVar6;
  byte bVar7;
  
  bVar7 = 0;
  puVar1 = DAT_0013cef4;
  if ((((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)) &&
     (iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,
     iVar2 != 0)) {
    bVar5 = false;
    bVar6 = param_2 == 0;
    if (!bVar6) {
      iVar2 = 10;
      pbVar3 = *(byte **)(param_2 + 0x18);
      pbVar4 = (byte *)"/DISCARD/";
      do {
        if (iVar2 == 0) break;
        iVar2 = iVar2 + -1;
        bVar5 = *pbVar3 < *pbVar4;
        bVar6 = *pbVar3 == *pbVar4;
        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;
        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;
      } while (bVar6);
      return (!bVar5 && !bVar6) != bVar5;
    }
  }
  else {
    while( true ) {
      if (puVar1 == (undefined4 *)0x0) {
        return false;
      }
      iVar2 = FUN_00021990();
      if (iVar2 == 0) break;
      puVar1 = (undefined4 *)*puVar1;
    }
  }
  return true;
}


PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00016a30
ADD EBX,0x119f06
LEA EAX,[EBX + 0x16c0]
TEST byte ptr [EAX + 0x1],0x10
JNZ 0x0002212d
MOV EAX,dword ptr [ESI + 0xac]
TEST EAX,EAX
JZ 0x0002212d
SUB ESP,0x8
MOV EDI,EDX
MOV EDX,dword ptr [EAX + 0x4]
PUSH ESI
PUSH EAX
CALL dword ptr [EDX + 0x190]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00022170
MOV EBX,dword ptr [EBX + 0xef4]
MOV ESI,dword ptr [ESI]
TEST EBX,EBX
JNZ 0x00022146
JMP 0x00022160
MOV EBX,dword ptr [EBX]
TEST EBX,EBX
JZ 0x00022160
MOV EAX,dword ptr [EBX + 0x4]
MOV EDX,ESI
CALL 0x00021990
TEST EAX,EAX
JNZ 0x00022140
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
RET
POP EBX
XOR EAX,EAX
POP ESI
POP EDI
RET
TEST EDI,EDI
JZ 0x00022154
MOV ESI,dword ptr [EDI + 0x18]
MOV ECX,0xa
LEA EDI,[EBX + 0xfff25f82]
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
TEST AL,AL
SETNZ AL
MOVZX EAX,AL
JMP 0x00022159
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool __regparm3 FUN_000220f0(int param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  puVar1 = DAT_0013cef4;\n  if ((((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)) &&\n     (iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0)) {\n    bVar5 = false;\n    bVar6 = param_2 == 0;\n    if (!bVar6) {\n      iVar2 = 10;\n      pbVar3 = *(byte **)(param_2 + 0x18);\n      pbVar4 = (byte *)"/DISCARD/";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) != bVar5;\n    }\n  }\n  else {\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n  }\n  return true;\n}\n\n" comment (function_definition "bool __regparm3 FUN_000220f0(int param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  puVar1 = DAT_0013cef4;\n  if ((((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)) &&\n     (iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0)) {\n    bVar5 = false;\n    bVar6 = param_2 == 0;\n    if (!bVar6) {\n      iVar2 = 10;\n      pbVar3 = *(byte **)(param_2 + 0x18);\n      pbVar4 = (byte *)"/DISCARD/";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) != bVar5;\n    }\n  }\n  else {\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n  }\n  return true;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000220f0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  puVar1 = DAT_0013cef4;\n  if ((((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)) &&\n     (iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0)) {\n    bVar5 = false;\n    bVar6 = param_2 == 0;\n    if (!bVar6) {\n      iVar2 = 10;\n      pbVar3 = *(byte **)(param_2 + 0x18);\n      pbVar4 = (byte *)"/DISCARD/";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) != bVar5;\n    }\n  }\n  else {\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n  }\n  return true;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "puVar1 = DAT_0013cef4;" (assignment_expression "puVar1 = DAT_0013cef4" identifier = identifier) ;) (if_statement "if ((((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)) &&\n     (iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0)) {\n    bVar5 = false;\n    bVar6 = param_2 == 0;\n    if (!bVar6) {\n      iVar2 = 10;\n      pbVar3 = *(byte **)(param_2 + 0x18);\n      pbVar4 = (byte *)"/DISCARD/";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) != bVar5;\n    }\n  }\n  else {\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n  }" if (parenthesized_expression "((((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)) &&\n     (iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0))" ( (binary_expression "(((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)) &&\n     (iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0)" (parenthesized_expression "(((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0))" ( (binary_expression "((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)" (parenthesized_expression "((DAT_0013d6c1 & 0x10) == 0)" ( (binary_expression "(DAT_0013d6c1 & 0x10) == 0" (parenthesized_expression "(DAT_0013d6c1 & 0x10)" ( (binary_expression "DAT_0013d6c1 & 0x10" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)" ( (comma_expression "iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0" (assignment_expression "iVar2 = *(int *)(param_1 + 0xac)" identifier = (pointer_expression "*(int *)(param_1 + 0xac)" * (cast_expression "(int *)(param_1 + 0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xac)" ( (binary_expression "param_1 + 0xac" identifier + number_literal) ))))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "(iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0)" ( (comma_expression "iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0" (assignment_expression "iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1)" identifier = (call_expression "(**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1)" (parenthesized_expression "(**(code **)(*(int *)(iVar2 + 4) + 400))" ( (pointer_expression "**(code **)(*(int *)(iVar2 + 4) + 400)" * (pointer_expression "*(code **)(*(int *)(iVar2 + 4) + 400)" * (cast_expression "(code **)(*(int *)(iVar2 + 4) + 400)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar2 + 4) + 400)" ( (binary_expression "*(int *)(iVar2 + 4) + 400" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(iVar2,param_1)" ( identifier , identifier )))) , (comma_expression "puVar1 = DAT_0013cef4,\n     iVar2 != 0" (assignment_expression "puVar1 = DAT_0013cef4" identifier = identifier) , (binary_expression "iVar2 != 0" identifier != number_literal))) ))) )) (compound_statement "{\n    bVar5 = false;\n    bVar6 = param_2 == 0;\n    if (!bVar6) {\n      iVar2 = 10;\n      pbVar3 = *(byte **)(param_2 + 0x18);\n      pbVar4 = (byte *)"/DISCARD/";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) != bVar5;\n    }\n  }" { (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "bVar6 = param_2 == 0;" (assignment_expression "bVar6 = param_2 == 0" identifier = (binary_expression "param_2 == 0" identifier == number_literal)) ;) (if_statement "if (!bVar6) {\n      iVar2 = 10;\n      pbVar3 = *(byte **)(param_2 + 0x18);\n      pbVar4 = (byte *)"/DISCARD/";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) != bVar5;\n    }" if (parenthesized_expression "(!bVar6)" ( (unary_expression "!bVar6" ! identifier) )) (compound_statement "{\n      iVar2 = 10;\n      pbVar3 = *(byte **)(param_2 + 0x18);\n      pbVar4 = (byte *)"/DISCARD/";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) != bVar5;\n    }" { (expression_statement "iVar2 = 10;" (assignment_expression "iVar2 = 10" identifier = number_literal) ;) (expression_statement "pbVar3 = *(byte **)(param_2 + 0x18);" (assignment_expression "pbVar3 = *(byte **)(param_2 + 0x18)" identifier = (pointer_expression "*(byte **)(param_2 + 0x18)" * (cast_expression "(byte **)(param_2 + 0x18)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "pbVar4 = (byte *)"/DISCARD/";" (assignment_expression "pbVar4 = (byte *)"/DISCARD/"" identifier = (cast_expression "(byte *)"/DISCARD/"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""/DISCARD/"" " string_content "))) ;) (do_statement "do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);" do (compound_statement "{\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      }" { (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar3 < *pbVar4;" (assignment_expression "bVar5 = *pbVar3 < *pbVar4" identifier = (binary_expression "*pbVar3 < *pbVar4" (pointer_expression "*pbVar3" * identifier) < (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "bVar6 = *pbVar3 == *pbVar4;" (assignment_expression "bVar6 = *pbVar3 == *pbVar4" identifier = (binary_expression "*pbVar3 == *pbVar4" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar3 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar4 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (return_statement "return (!bVar5 && !bVar6) != bVar5;" return (binary_expression "(!bVar5 && !bVar6) != bVar5" (parenthesized_expression "(!bVar5 && !bVar6)" ( (binary_expression "!bVar5 && !bVar6" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) != identifier) ;) })) }) (else_clause "else {\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n  }" else (compound_statement "{\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n  }" { (while_statement "while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }" { (if_statement "if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) (expression_statement "iVar2 = FUN_00021990();" (assignment_expression "iVar2 = FUN_00021990()" identifier = (call_expression "FUN_00021990()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined4 *)*puVar1;" (assignment_expression "puVar1 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) }))) (return_statement "return true;" return true ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbfd_boolean __regparm3 unique_section_p(asection *sec,lang_output_section_statement_type *os)\n\n{\n  bfd *pbVar1;\n  char *name;\n  unique_sections *puVar2;\n  bfd_boolean bVar3;\n  int iVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  if ((((link_info._1_1_ & 0x10) == 0) && (pbVar1 = sec->owner, pbVar1 != (bfd *)0x0)) &&\n     (bVar3 = (*pbVar1->xvec->_bfd_is_group_section)(pbVar1,sec), bVar3 != 0)) {\n    bVar7 = false;\n    bVar8 = os == (lang_output_section_statement_type *)0x0;\n    if (!bVar8) {\n      iVar4 = 10;\n      pbVar5 = (byte *)os->name;\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (uint)((!bVar7 && !bVar8) != bVar7);\n    }\n  }\n  else {\n    name = sec->name;\n    puVar2 = unique_section_list;\n    while( true ) {\n      if (puVar2 == (unique_sections *)0x0) {\n        return 0;\n      }\n      iVar4 = name_match(puVar2->name,name);\n      if (iVar4 == 0) break;\n      puVar2 = puVar2->next;\n    }\n  }\n  return 1;\n}\n\n" comment (function_definition "bfd_boolean __regparm3 unique_section_p(asection *sec,lang_output_section_statement_type *os)\n\n{\n  bfd *pbVar1;\n  char *name;\n  unique_sections *puVar2;\n  bfd_boolean bVar3;\n  int iVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  if ((((link_info._1_1_ & 0x10) == 0) && (pbVar1 = sec->owner, pbVar1 != (bfd *)0x0)) &&\n     (bVar3 = (*pbVar1->xvec->_bfd_is_group_section)(pbVar1,sec), bVar3 != 0)) {\n    bVar7 = false;\n    bVar8 = os == (lang_output_section_statement_type *)0x0;\n    if (!bVar8) {\n      iVar4 = 10;\n      pbVar5 = (byte *)os->name;\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (uint)((!bVar7 && !bVar8) != bVar7);\n    }\n  }\n  else {\n    name = sec->name;\n    puVar2 = unique_section_list;\n    while( true ) {\n      if (puVar2 == (unique_sections *)0x0) {\n        return 0;\n      }\n      iVar4 = name_match(puVar2->name,name);\n      if (iVar4 == 0) break;\n      puVar2 = puVar2->next;\n    }\n  }\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "unique_section_p(asection *sec,lang_output_section_statement_type *os)" identifier (parameter_list "(asection *sec,lang_output_section_statement_type *os)" ( (parameter_declaration "asection *sec" type_identifier (pointer_declarator "*sec" * identifier)) , (parameter_declaration "lang_output_section_statement_type *os" type_identifier (pointer_declarator "*os" * identifier)) ))) (compound_statement "{\n  bfd *pbVar1;\n  char *name;\n  unique_sections *puVar2;\n  bfd_boolean bVar3;\n  int iVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  if ((((link_info._1_1_ & 0x10) == 0) && (pbVar1 = sec->owner, pbVar1 != (bfd *)0x0)) &&\n     (bVar3 = (*pbVar1->xvec->_bfd_is_group_section)(pbVar1,sec), bVar3 != 0)) {\n    bVar7 = false;\n    bVar8 = os == (lang_output_section_statement_type *)0x0;\n    if (!bVar8) {\n      iVar4 = 10;\n      pbVar5 = (byte *)os->name;\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (uint)((!bVar7 && !bVar8) != bVar7);\n    }\n  }\n  else {\n    name = sec->name;\n    puVar2 = unique_section_list;\n    while( true ) {\n      if (puVar2 == (unique_sections *)0x0) {\n        return 0;\n      }\n      iVar4 = name_match(puVar2->name,name);\n      if (iVar4 == 0) break;\n      puVar2 = puVar2->next;\n    }\n  }\n  return 1;\n}" { (declaration "bfd *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "char *name;" primitive_type (pointer_declarator "*name" * identifier) ;) (declaration "unique_sections *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "bfd_boolean bVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (if_statement "if ((((link_info._1_1_ & 0x10) == 0) && (pbVar1 = sec->owner, pbVar1 != (bfd *)0x0)) &&\n     (bVar3 = (*pbVar1->xvec->_bfd_is_group_section)(pbVar1,sec), bVar3 != 0)) {\n    bVar7 = false;\n    bVar8 = os == (lang_output_section_statement_type *)0x0;\n    if (!bVar8) {\n      iVar4 = 10;\n      pbVar5 = (byte *)os->name;\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (uint)((!bVar7 && !bVar8) != bVar7);\n    }\n  }\n  else {\n    name = sec->name;\n    puVar2 = unique_section_list;\n    while( true ) {\n      if (puVar2 == (unique_sections *)0x0) {\n        return 0;\n      }\n      iVar4 = name_match(puVar2->name,name);\n      if (iVar4 == 0) break;\n      puVar2 = puVar2->next;\n    }\n  }" if (parenthesized_expression "((((link_info._1_1_ & 0x10) == 0) && (pbVar1 = sec->owner, pbVar1 != (bfd *)0x0)) &&\n     (bVar3 = (*pbVar1->xvec->_bfd_is_group_section)(pbVar1,sec), bVar3 != 0))" ( (binary_expression "(((link_info._1_1_ & 0x10) == 0) && (pbVar1 = sec->owner, pbVar1 != (bfd *)0x0)) &&\n     (bVar3 = (*pbVar1->xvec->_bfd_is_group_section)(pbVar1,sec), bVar3 != 0)" (parenthesized_expression "(((link_info._1_1_ & 0x10) == 0) && (pbVar1 = sec->owner, pbVar1 != (bfd *)0x0))" ( (binary_expression "((link_info._1_1_ & 0x10) == 0) && (pbVar1 = sec->owner, pbVar1 != (bfd *)0x0)" (parenthesized_expression "((link_info._1_1_ & 0x10) == 0)" ( (binary_expression "(link_info._1_1_ & 0x10) == 0" (parenthesized_expression "(link_info._1_1_ & 0x10)" ( (binary_expression "link_info._1_1_ & 0x10" (field_expression "link_info._1_1_" identifier . field_identifier) & number_literal) )) == number_literal) )) && (parenthesized_expression "(pbVar1 = sec->owner, pbVar1 != (bfd *)0x0)" ( (comma_expression "pbVar1 = sec->owner, pbVar1 != (bfd *)0x0" (assignment_expression "pbVar1 = sec->owner" identifier = (field_expression "sec->owner" identifier -> field_identifier)) , (binary_expression "pbVar1 != (bfd *)0x0" identifier != (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(bVar3 = (*pbVar1->xvec->_bfd_is_group_section)(pbVar1,sec), bVar3 != 0)" ( (comma_expression "bVar3 = (*pbVar1->xvec->_bfd_is_group_section)(pbVar1,sec), bVar3 != 0" (assignment_expression "bVar3 = (*pbVar1->xvec->_bfd_is_group_section)(pbVar1,sec)" identifier = (call_expression "(*pbVar1->xvec->_bfd_is_group_section)(pbVar1,sec)" (parenthesized_expression "(*pbVar1->xvec->_bfd_is_group_section)" ( (pointer_expression "*pbVar1->xvec->_bfd_is_group_section" * (field_expression "pbVar1->xvec->_bfd_is_group_section" (field_expression "pbVar1->xvec" identifier -> field_identifier) -> field_identifier)) )) (argument_list "(pbVar1,sec)" ( identifier , identifier )))) , (binary_expression "bVar3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    bVar7 = false;\n    bVar8 = os == (lang_output_section_statement_type *)0x0;\n    if (!bVar8) {\n      iVar4 = 10;\n      pbVar5 = (byte *)os->name;\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (uint)((!bVar7 && !bVar8) != bVar7);\n    }\n  }" { (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "bVar8 = os == (lang_output_section_statement_type *)0x0;" (assignment_expression "bVar8 = os == (lang_output_section_statement_type *)0x0" identifier = (binary_expression "os == (lang_output_section_statement_type *)0x0" identifier == (cast_expression "(lang_output_section_statement_type *)0x0" ( (type_descriptor "lang_output_section_statement_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (!bVar8) {\n      iVar4 = 10;\n      pbVar5 = (byte *)os->name;\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (uint)((!bVar7 && !bVar8) != bVar7);\n    }" if (parenthesized_expression "(!bVar8)" ( (unary_expression "!bVar8" ! identifier) )) (compound_statement "{\n      iVar4 = 10;\n      pbVar5 = (byte *)os->name;\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (uint)((!bVar7 && !bVar8) != bVar7);\n    }" { (expression_statement "iVar4 = 10;" (assignment_expression "iVar4 = 10" identifier = number_literal) ;) (expression_statement "pbVar5 = (byte *)os->name;" (assignment_expression "pbVar5 = (byte *)os->name" identifier = (cast_expression "(byte *)os->name" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "os->name" identifier -> field_identifier))) ;) (expression_statement "pbVar6 = (byte *)"/DISCARD/";" (assignment_expression "pbVar6 = (byte *)"/DISCARD/"" identifier = (cast_expression "(byte *)"/DISCARD/"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""/DISCARD/"" " string_content "))) ;) (do_statement "do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n      } while (bVar8);" do (compound_statement "{\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;\n      }" { (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "bVar7 = *pbVar5 < *pbVar6;" (assignment_expression "bVar7 = *pbVar5 < *pbVar6" identifier = (binary_expression "*pbVar5 < *pbVar6" (pointer_expression "*pbVar5" * identifier) < (pointer_expression "*pbVar6" * identifier))) ;) (expression_statement "bVar8 = *pbVar5 == *pbVar6;" (assignment_expression "bVar8 = *pbVar5 == *pbVar6" identifier = (binary_expression "*pbVar5 == *pbVar6" (pointer_expression "*pbVar5" * identifier) == (pointer_expression "*pbVar6" * identifier))) ;) (expression_statement "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar5 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar5 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1;" (assignment_expression "pbVar6 = pbVar6 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "pbVar6 + (uint)bVar9 * -2 + 1" (binary_expression "pbVar6 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar8)" ( identifier )) ;) (return_statement "return (uint)((!bVar7 && !bVar8) != bVar7);" return (call_expression "(uint)((!bVar7 && !bVar8) != bVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((!bVar7 && !bVar8) != bVar7)" ( (binary_expression "(!bVar7 && !bVar8) != bVar7" (parenthesized_expression "(!bVar7 && !bVar8)" ( (binary_expression "!bVar7 && !bVar8" (unary_expression "!bVar7" ! identifier) && (unary_expression "!bVar8" ! identifier)) )) != identifier) ))) ;) })) }) (else_clause "else {\n    name = sec->name;\n    puVar2 = unique_section_list;\n    while( true ) {\n      if (puVar2 == (unique_sections *)0x0) {\n        return 0;\n      }\n      iVar4 = name_match(puVar2->name,name);\n      if (iVar4 == 0) break;\n      puVar2 = puVar2->next;\n    }\n  }" else (compound_statement "{\n    name = sec->name;\n    puVar2 = unique_section_list;\n    while( true ) {\n      if (puVar2 == (unique_sections *)0x0) {\n        return 0;\n      }\n      iVar4 = name_match(puVar2->name,name);\n      if (iVar4 == 0) break;\n      puVar2 = puVar2->next;\n    }\n  }" { (expression_statement "name = sec->name;" (assignment_expression "name = sec->name" identifier = (field_expression "sec->name" identifier -> field_identifier)) ;) (expression_statement "puVar2 = unique_section_list;" (assignment_expression "puVar2 = unique_section_list" identifier = identifier) ;) (while_statement "while( true ) {\n      if (puVar2 == (unique_sections *)0x0) {\n        return 0;\n      }\n      iVar4 = name_match(puVar2->name,name);\n      if (iVar4 == 0) break;\n      puVar2 = puVar2->next;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (puVar2 == (unique_sections *)0x0) {\n        return 0;\n      }\n      iVar4 = name_match(puVar2->name,name);\n      if (iVar4 == 0) break;\n      puVar2 = puVar2->next;\n    }" { (if_statement "if (puVar2 == (unique_sections *)0x0) {\n        return 0;\n      }" if (parenthesized_expression "(puVar2 == (unique_sections *)0x0)" ( (binary_expression "puVar2 == (unique_sections *)0x0" identifier == (cast_expression "(unique_sections *)0x0" ( (type_descriptor "unique_sections *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar4 = name_match(puVar2->name,name);" (assignment_expression "iVar4 = name_match(puVar2->name,name)" identifier = (call_expression "name_match(puVar2->name,name)" identifier (argument_list "(puVar2->name,name)" ( (field_expression "puVar2->name" identifier -> field_identifier) , identifier )))) ;) (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar2 = puVar2->next;" (assignment_expression "puVar2 = puVar2->next" identifier = (field_expression "puVar2->next" identifier -> field_identifier)) ;) })) }))) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "bool __regparm3 FUN_000220f0(int param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  puVar1 = DAT_0013cef4;\n  if ((((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)) &&\n     (iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0)) {\n    bVar5 = false;\n    bVar6 = param_2 == 0;\n    if (!bVar6) {\n      iVar2 = 10;\n      pbVar3 = *(byte **)(param_2 + 0x18);\n      pbVar4 = (byte *)"/DISCARD/";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) != bVar5;\n    }\n  }\n  else {\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n  }\n  return true;\n}\n\n" (function_definition "bool __regparm3 FUN_000220f0(int param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  puVar1 = DAT_0013cef4;\n  if ((((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)) &&\n     (iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0)) {\n    bVar5 = false;\n    bVar6 = param_2 == 0;\n    if (!bVar6) {\n      iVar2 = 10;\n      pbVar3 = *(byte **)(param_2 + 0x18);\n      pbVar4 = (byte *)"/DISCARD/";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) != bVar5;\n    }\n  }\n  else {\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n  }\n  return true;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000220f0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  puVar1 = DAT_0013cef4;\n  if ((((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)) &&\n     (iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0)) {\n    bVar5 = false;\n    bVar6 = param_2 == 0;\n    if (!bVar6) {\n      iVar2 = 10;\n      pbVar3 = *(byte **)(param_2 + 0x18);\n      pbVar4 = (byte *)"/DISCARD/";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) != bVar5;\n    }\n  }\n  else {\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n  }\n  return true;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "puVar1 = DAT_0013cef4;" (assignment_expression "puVar1 = DAT_0013cef4" identifier = identifier) ;) (if_statement "if ((((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)) &&\n     (iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0)) {\n    bVar5 = false;\n    bVar6 = param_2 == 0;\n    if (!bVar6) {\n      iVar2 = 10;\n      pbVar3 = *(byte **)(param_2 + 0x18);\n      pbVar4 = (byte *)"/DISCARD/";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) != bVar5;\n    }\n  }\n  else {\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n  }" if (parenthesized_expression "((((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)) &&\n     (iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0))" ( (binary_expression "(((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)) &&\n     (iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0)" (parenthesized_expression "(((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0))" ( (binary_expression "((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)" (parenthesized_expression "((DAT_0013d6c1 & 0x10) == 0)" ( (binary_expression "(DAT_0013d6c1 & 0x10) == 0" (parenthesized_expression "(DAT_0013d6c1 & 0x10)" ( (binary_expression "DAT_0013d6c1 & 0x10" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)" ( (comma_expression "iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0" (assignment_expression "iVar2 = *(int *)(param_1 + 0xac)" identifier = (pointer_expression "*(int *)(param_1 + 0xac)" * (cast_expression "(int *)(param_1 + 0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xac)" ( (binary_expression "param_1 + 0xac" identifier + number_literal) ))))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "(iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0)" ( (comma_expression "iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0" (assignment_expression "iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1)" identifier = (call_expression "(**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1)" (parenthesized_expression "(**(code **)(*(int *)(iVar2 + 4) + 400))" ( (pointer_expression "**(code **)(*(int *)(iVar2 + 4) + 400)" * (pointer_expression "*(code **)(*(int *)(iVar2 + 4) + 400)" * (cast_expression "(code **)(*(int *)(iVar2 + 4) + 400)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar2 + 4) + 400)" ( (binary_expression "*(int *)(iVar2 + 4) + 400" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(iVar2,param_1)" ( identifier , identifier )))) , (comma_expression "puVar1 = DAT_0013cef4,\n     iVar2 != 0" (assignment_expression "puVar1 = DAT_0013cef4" identifier = identifier) , (binary_expression "iVar2 != 0" identifier != number_literal))) ))) )) (compound_statement "{\n    bVar5 = false;\n    bVar6 = param_2 == 0;\n    if (!bVar6) {\n      iVar2 = 10;\n      pbVar3 = *(byte **)(param_2 + 0x18);\n      pbVar4 = (byte *)"/DISCARD/";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) != bVar5;\n    }\n  }" { (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "bVar6 = param_2 == 0;" (assignment_expression "bVar6 = param_2 == 0" identifier = (binary_expression "param_2 == 0" identifier == number_literal)) ;) (if_statement "if (!bVar6) {\n      iVar2 = 10;\n      pbVar3 = *(byte **)(param_2 + 0x18);\n      pbVar4 = (byte *)"/DISCARD/";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) != bVar5;\n    }" if (parenthesized_expression "(!bVar6)" ( (unary_expression "!bVar6" ! identifier) )) (compound_statement "{\n      iVar2 = 10;\n      pbVar3 = *(byte **)(param_2 + 0x18);\n      pbVar4 = (byte *)"/DISCARD/";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) != bVar5;\n    }" { (expression_statement "iVar2 = 10;" (assignment_expression "iVar2 = 10" identifier = number_literal) ;) (expression_statement "pbVar3 = *(byte **)(param_2 + 0x18);" (assignment_expression "pbVar3 = *(byte **)(param_2 + 0x18)" identifier = (pointer_expression "*(byte **)(param_2 + 0x18)" * (cast_expression "(byte **)(param_2 + 0x18)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "pbVar4 = (byte *)"/DISCARD/";" (assignment_expression "pbVar4 = (byte *)"/DISCARD/"" identifier = (cast_expression "(byte *)"/DISCARD/"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""/DISCARD/"" " string_content "))) ;) (do_statement "do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);" do (compound_statement "{\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      }" { (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar3 < *pbVar4;" (assignment_expression "bVar5 = *pbVar3 < *pbVar4" identifier = (binary_expression "*pbVar3 < *pbVar4" (pointer_expression "*pbVar3" * identifier) < (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "bVar6 = *pbVar3 == *pbVar4;" (assignment_expression "bVar6 = *pbVar3 == *pbVar4" identifier = (binary_expression "*pbVar3 == *pbVar4" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar3 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar4 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (return_statement "return (!bVar5 && !bVar6) != bVar5;" return (binary_expression "(!bVar5 && !bVar6) != bVar5" (parenthesized_expression "(!bVar5 && !bVar6)" ( (binary_expression "!bVar5 && !bVar6" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) != identifier) ;) })) }) (else_clause "else {\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n  }" else (compound_statement "{\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n  }" { (while_statement "while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }" { (if_statement "if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) (expression_statement "iVar2 = FUN_00021990();" (assignment_expression "iVar2 = FUN_00021990()" identifier = (call_expression "FUN_00021990()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined4 *)*puVar1;" (assignment_expression "puVar1 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) }))) (return_statement "return true;" return true ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (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 = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT != LIT)) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (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 (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (return_statement return (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) != IDENT) ;) })) }) (else_clause else (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return BOOL ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) })) }))) (return_statement return BOOL ;) })))
(function_definition "bool __regparm3 FUN_000220f0(int param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  puVar1 = DAT_0013cef4;\n  if ((((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)) &&\n     (iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0)) {\n    bVar5 = false;\n    bVar6 = param_2 == 0;\n    if (!bVar6) {\n      iVar2 = 10;\n      pbVar3 = *(byte **)(param_2 + 0x18);\n      pbVar4 = (byte *)"/DISCARD/";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) != bVar5;\n    }\n  }\n  else {\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n  }\n  return true;\n}" (primitive_type "bool") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000220f0(int param_1,int param_2)" (identifier "FUN_000220f0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  puVar1 = DAT_0013cef4;\n  if ((((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)) &&\n     (iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0)) {\n    bVar5 = false;\n    bVar6 = param_2 == 0;\n    if (!bVar6) {\n      iVar2 = 10;\n      pbVar3 = *(byte **)(param_2 + 0x18);\n      pbVar4 = (byte *)"/DISCARD/";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) != bVar5;\n    }\n  }\n  else {\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n  }\n  return true;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "bool bVar5;" (primitive_type "bool") (identifier "bVar5") (; ";")) (declaration "bool bVar6;" (primitive_type "bool") (identifier "bVar6") (; ";")) (declaration "byte bVar7;" (type_identifier "byte") (identifier "bVar7") (; ";")) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" (identifier "bVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = DAT_0013cef4;" (assignment_expression "puVar1 = DAT_0013cef4" (identifier "puVar1") (= "=") (identifier "DAT_0013cef4")) (; ";")) (if_statement "if ((((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)) &&\n     (iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0)) {\n    bVar5 = false;\n    bVar6 = param_2 == 0;\n    if (!bVar6) {\n      iVar2 = 10;\n      pbVar3 = *(byte **)(param_2 + 0x18);\n      pbVar4 = (byte *)"/DISCARD/";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) != bVar5;\n    }\n  }\n  else {\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n  }" (if "if") (parenthesized_expression "((((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)) &&\n     (iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0))" (( "(") (binary_expression "(((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)) &&\n     (iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0)" (parenthesized_expression "(((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0))" (( "(") (binary_expression "((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)" (parenthesized_expression "((DAT_0013d6c1 & 0x10) == 0)" (( "(") (binary_expression "(DAT_0013d6c1 & 0x10) == 0" (parenthesized_expression "(DAT_0013d6c1 & 0x10)" (( "(") (binary_expression "DAT_0013d6c1 & 0x10" (identifier "DAT_0013d6c1") (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)" (( "(") (comma_expression "iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0" (assignment_expression "iVar2 = *(int *)(param_1 + 0xac)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0xac)" (* "*") (cast_expression "(int *)(param_1 + 0xac)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xac)" (( "(") (binary_expression "param_1 + 0xac" (identifier "param_1") (+ "+") (number_literal "0xac")) () ")"))))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0)" (( "(") (comma_expression "iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,\n     iVar2 != 0" (assignment_expression "iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1)" (parenthesized_expression "(**(code **)(*(int *)(iVar2 + 4) + 400))" (( "(") (pointer_expression "**(code **)(*(int *)(iVar2 + 4) + 400)" (* "*") (pointer_expression "*(code **)(*(int *)(iVar2 + 4) + 400)" (* "*") (cast_expression "(code **)(*(int *)(iVar2 + 4) + 400)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(iVar2 + 4) + 400)" (( "(") (binary_expression "*(int *)(iVar2 + 4) + 400" (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "400")) () ")"))))) () ")")) (argument_list "(iVar2,param_1)" (( "(") (identifier "iVar2") (, ",") (identifier "param_1") () ")")))) (, ",") (comma_expression "puVar1 = DAT_0013cef4,\n     iVar2 != 0" (assignment_expression "puVar1 = DAT_0013cef4" (identifier "puVar1") (= "=") (identifier "DAT_0013cef4")) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")))) () ")"))) () ")")) (compound_statement "{\n    bVar5 = false;\n    bVar6 = param_2 == 0;\n    if (!bVar6) {\n      iVar2 = 10;\n      pbVar3 = *(byte **)(param_2 + 0x18);\n      pbVar4 = (byte *)"/DISCARD/";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) != bVar5;\n    }\n  }" ({ "{") (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" (identifier "bVar5") (= "=") (false "false")) (; ";")) (expression_statement "bVar6 = param_2 == 0;" (assignment_expression "bVar6 = param_2 == 0" (identifier "bVar6") (= "=") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0"))) (; ";")) (if_statement "if (!bVar6) {\n      iVar2 = 10;\n      pbVar3 = *(byte **)(param_2 + 0x18);\n      pbVar4 = (byte *)"/DISCARD/";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) != bVar5;\n    }" (if "if") (parenthesized_expression "(!bVar6)" (( "(") (unary_expression "!bVar6" (! "!") (identifier "bVar6")) () ")")) (compound_statement "{\n      iVar2 = 10;\n      pbVar3 = *(byte **)(param_2 + 0x18);\n      pbVar4 = (byte *)"/DISCARD/";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      return (!bVar5 && !bVar6) != bVar5;\n    }" ({ "{") (expression_statement "iVar2 = 10;" (assignment_expression "iVar2 = 10" (identifier "iVar2") (= "=") (number_literal "10")) (; ";")) (expression_statement "pbVar3 = *(byte **)(param_2 + 0x18);" (assignment_expression "pbVar3 = *(byte **)(param_2 + 0x18)" (identifier "pbVar3") (= "=") (pointer_expression "*(byte **)(param_2 + 0x18)" (* "*") (cast_expression "(byte **)(param_2 + 0x18)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "pbVar4 = (byte *)"/DISCARD/";" (assignment_expression "pbVar4 = (byte *)"/DISCARD/"" (identifier "pbVar4") (= "=") (cast_expression "(byte *)"/DISCARD/"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""/DISCARD/"" (" """) (string_content "/DISCARD/") (" """)))) (; ";")) (do_statement "do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);" (do "do") (compound_statement "{\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;\n      }" ({ "{") (if_statement "if (iVar2 == 0) break;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar5 = *pbVar3 < *pbVar4;" (assignment_expression "bVar5 = *pbVar3 < *pbVar4" (identifier "bVar5") (= "=") (binary_expression "*pbVar3 < *pbVar4" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (< "<") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")))) (; ";")) (expression_statement "bVar6 = *pbVar3 == *pbVar4;" (assignment_expression "bVar6 = *pbVar3 == *pbVar4" (identifier "bVar6") (= "=") (binary_expression "*pbVar3 == *pbVar4" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (== "==") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")))) (; ";")) (expression_statement "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar7 * -2" (identifier "pbVar3") (+ "+") (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar7")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar7 * -2" (identifier "pbVar4") (+ "+") (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar7")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar6)" (( "(") (identifier "bVar6") () ")")) (; ";")) (return_statement "return (!bVar5 && !bVar6) != bVar5;" (return "return") (binary_expression "(!bVar5 && !bVar6) != bVar5" (parenthesized_expression "(!bVar5 && !bVar6)" (( "(") (binary_expression "!bVar5 && !bVar6" (unary_expression "!bVar5" (! "!") (identifier "bVar5")) (&& "&&") (unary_expression "!bVar6" (! "!") (identifier "bVar6"))) () ")")) (!= "!=") (identifier "bVar5")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n  }" (else "else") (compound_statement "{\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n  }" ({ "{") (while_statement "while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }\n      iVar2 = FUN_00021990();\n      if (iVar2 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }" ({ "{") (if_statement "if (puVar1 == (undefined4 *)0x0) {\n        return false;\n      }" (if "if") (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined4 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return false;\n      }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00021990();" (assignment_expression "iVar2 = FUN_00021990()" (identifier "iVar2") (= "=") (call_expression "FUN_00021990()" (identifier "FUN_00021990") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) break;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar1 = (undefined4 *)*puVar1;" (assignment_expression "puVar1 = (undefined4 *)*puVar1" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)*puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (} "}"))) (} "}")))) (return_statement "return true;" (return "return") (true "true") (; ";")) (} "}")))

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

type_1 __regparm3 function_1(type_2 *sec,type_3 *var_3)

{
  type_4 *var_1;
  char *name;
  type_5 *var_8;
  type_1 var_2;
  int var_4;
  type_6 *var_5;
  type_6 *var_6;
  bool var_7;
  bool bVar8;
  type_6 bVar9;
  
  bVar9 = 0;
  if ((((link_info._1_1_ & 0x10) == 0) && (var_1 = sec->owner, var_1 != (type_4 *)0x0)) &&
     (var_2 = (*var_1->xvec->_bfd_is_group_section)(var_1,sec), var_2 != 0)) {
    var_7 = false;
    bVar8 = var_3 == (type_3 *)0x0;
    if (!bVar8) {
      var_4 = 10;
      var_5 = (type_6 *)var_3->name;
      var_6 = (type_6 *)"/DISCARD/";
      do {
        if (var_4 == 0) break;
        var_4 = var_4 + -1;
        var_7 = *var_5 < *var_6;
        bVar8 = *var_5 == *var_6;
        var_5 = var_5 + (type_7)bVar9 * -2 + 1;
        var_6 = var_6 + (type_7)bVar9 * -2 + 1;
      } while (bVar8);
      return (type_7)((!var_7 && !bVar8) != var_7);
    }
  }
  else {
    name = sec->name;
    var_8 = unique_section_list;
    while( true ) {
      if (var_8 == (type_5 *)0x0) {
        return 0;
      }
      var_4 = var_9(var_8->name,name);
      if (var_4 == 0) break;
      var_8 = var_8->next;
    }
  }
  return 1;
}


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

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

bool __regparm3 MASKED(int param_1,int param_2)

{
  undefined4 *puVar1;
  int iVar2;
  byte *pbVar3;
  byte *pbVar4;
  bool bVar5;
  bool bVar6;
  byte bVar7;
  
  bVar7 = 0;
  puVar1 = DAT_0013cef4;
  if ((((DAT_0013d6c1 & 0x10) == 0) && (iVar2 = *(int *)(param_1 + 0xac), iVar2 != 0)) &&
     (iVar2 = (**(code **)(*(int *)(iVar2 + 4) + 400))(iVar2,param_1), puVar1 = DAT_0013cef4,
     iVar2 != 0)) {
    bVar5 = false;
    bVar6 = param_2 == 0;
    if (!bVar6) {
      iVar2 = 10;
      pbVar3 = *(byte **)(param_2 + 0x18);
      pbVar4 = (byte *)"/DISCARD/";
      do {
        if (iVar2 == 0) break;
        iVar2 = iVar2 + -1;
        bVar5 = *pbVar3 < *pbVar4;
        bVar6 = *pbVar3 == *pbVar4;
        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;
        pbVar4 = pbVar4 + (uint)bVar7 * -2 + 1;
      } while (bVar6);
      return (!bVar5 && !bVar6) != bVar5;
    }
  }
  else {
    while( true ) {
      if (puVar1 == (undefined4 *)0x0) {
        return false;
      }
      iVar2 = FUN_00021990();
      if (iVar2 == 0) break;
      puVar1 = (undefined4 *)*puVar1;
    }
  }
  return true;
}

