
bfd_boolean unique_section_p(asection *sec,lang_output_section_statement_type *os)

{
  bfd *pbVar1;
  char *name;
  unique_sections *puVar2;
  bfd_boolean bVar3;
  int iVar4;
  long lVar5;
  byte *pbVar6;
  byte *pbVar7;
  bool bVar8;
  bool bVar9;
  byte bVar10;
  
  bVar10 = 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)) {
    bVar8 = false;
    bVar9 = os == (lang_output_section_statement_type *)0x0;
    if (!bVar9) {
      lVar5 = 10;
      pbVar6 = (byte *)os->name;
      pbVar7 = (byte *)"/DISCARD/";
      do {
        if (lVar5 == 0) break;
        lVar5 = lVar5 + -1;
        bVar8 = *pbVar6 < *pbVar7;
        bVar9 = *pbVar6 == *pbVar7;
        pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;
        pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;
      } while (bVar9);
      return (uint)((!bVar8 && !bVar9) != bVar8);
    }
  }
  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;
}



bool FUN_00118270(undefined8 *param_1,long param_2)

{
  undefined8 uVar1;
  undefined8 *puVar2;
  int iVar3;
  long lVar4;
  byte *pbVar5;
  byte *pbVar6;
  bool bVar7;
  bool bVar8;
  byte bVar9;
  
  bVar9 = 0;
  if ((((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)) &&
     (iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0)) {
    bVar7 = false;
    bVar8 = param_2 == 0;
    if (!bVar8) {
      lVar4 = 10;
      pbVar5 = *(byte **)(param_2 + 0x30);
      pbVar6 = (byte *)"/DISCARD/";
      do {
        if (lVar4 == 0) break;
        lVar4 = lVar4 + -1;
        bVar7 = *pbVar5 < *pbVar6;
        bVar8 = *pbVar5 == *pbVar6;
        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;
        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;
      } while (bVar8);
      return (!bVar7 && !bVar8) != bVar7;
    }
  }
  else {
    uVar1 = *param_1;
    puVar2 = DAT_002a5978;
    while( true ) {
      if (puVar2 == (undefined8 *)0x0) {
        return false;
      }
      iVar3 = FUN_00117a50(puVar2[1],uVar1);
      if (iVar3 == 0) break;
      puVar2 = (undefined8 *)*puVar2;
    }
  }
  return true;
}


PUSH RBP
PUSH RBX
MOV RBX,RDI
SUB RSP,0x8
TEST byte ptr [0x002a67c1],0x10
JNZ 0x001182a2
MOV RDI,qword ptr [RDI + 0xf0]
TEST RDI,RDI
JZ 0x001182a2
MOV RAX,qword ptr [RDI + 0x8]
MOV RBP,RSI
MOV RSI,RBX
CALL qword ptr [RAX + 0x308]
TEST EAX,EAX
JNZ 0x001182f0
MOV RBP,qword ptr [RBX]
MOV RBX,qword ptr [0x002a5978]
TEST RBX,RBX
JNZ 0x001182c0
JMP 0x001182e0
MOV RBX,qword ptr [RBX]
TEST RBX,RBX
JZ 0x001182e0
MOV RDI,qword ptr [RBX + 0x8]
MOV RSI,RBP
CALL 0x00117a50
TEST EAX,EAX
JNZ 0x001182b8
MOV EAX,0x1
ADD RSP,0x8
POP RBX
POP RBP
RET
ADD RSP,0x8
XOR EAX,EAX
POP RBX
POP RBP
RET
TEST RBP,RBP
JZ 0x001182d0
MOV RSI,qword ptr [RBP + 0x30]
MOV ECX,0xa
LEA RDI,[0x1611a5]
CMPSB.REPE RDI,RSI
SETA AL
SBB AL,0x0
TEST AL,AL
SETNZ AL
MOVZX EAX,AL
JMP 0x001182d5
(translation_unit "bool FUN_00118270(undefined8 *param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  long lVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  if ((((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)) &&\n     (iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0)) {\n    bVar7 = false;\n    bVar8 = param_2 == 0;\n    if (!bVar8) {\n      lVar4 = 10;\n      pbVar5 = *(byte **)(param_2 + 0x30);\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (!bVar7 && !bVar8) != bVar7;\n    }\n  }\n  else {\n    uVar1 = *param_1;\n    puVar2 = DAT_002a5978;\n    while( true ) {\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }\n  }\n  return true;\n}\n\n" (function_definition "bool FUN_00118270(undefined8 *param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  long lVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  if ((((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)) &&\n     (iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0)) {\n    bVar7 = false;\n    bVar8 = param_2 == 0;\n    if (!bVar8) {\n      lVar4 = 10;\n      pbVar5 = *(byte **)(param_2 + 0x30);\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (!bVar7 && !bVar8) != bVar7;\n    }\n  }\n  else {\n    uVar1 = *param_1;\n    puVar2 = DAT_002a5978;\n    while( true ) {\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }\n  }\n  return true;\n}" primitive_type (function_declarator "FUN_00118270(undefined8 *param_1,long param_2)" identifier (parameter_list "(undefined8 *param_1,long param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  long lVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  if ((((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)) &&\n     (iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0)) {\n    bVar7 = false;\n    bVar8 = param_2 == 0;\n    if (!bVar8) {\n      lVar4 = 10;\n      pbVar5 = *(byte **)(param_2 + 0x30);\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (!bVar7 && !bVar8) != bVar7;\n    }\n  }\n  else {\n    uVar1 = *param_1;\n    puVar2 = DAT_002a5978;\n    while( true ) {\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }\n  }\n  return true;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) 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 ((((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)) &&\n     (iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0)) {\n    bVar7 = false;\n    bVar8 = param_2 == 0;\n    if (!bVar8) {\n      lVar4 = 10;\n      pbVar5 = *(byte **)(param_2 + 0x30);\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (!bVar7 && !bVar8) != bVar7;\n    }\n  }\n  else {\n    uVar1 = *param_1;\n    puVar2 = DAT_002a5978;\n    while( true ) {\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }\n  }" if (parenthesized_expression "((((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)) &&\n     (iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0))" ( (binary_expression "(((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)) &&\n     (iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0)" (parenthesized_expression "(((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0))" ( (binary_expression "((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)" (parenthesized_expression "((DAT_002a67c1 & 0x10) == 0)" ( (binary_expression "(DAT_002a67c1 & 0x10) == 0" (parenthesized_expression "(DAT_002a67c1 & 0x10)" ( (binary_expression "DAT_002a67c1 & 0x10" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(lVar4 = param_1[0x1e], lVar4 != 0)" ( (comma_expression "lVar4 = param_1[0x1e], lVar4 != 0" (assignment_expression "lVar4 = param_1[0x1e]" identifier = (subscript_expression "param_1[0x1e]" identifier [ number_literal ])) , (binary_expression "lVar4 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "(iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0)" ( (comma_expression "iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0" (assignment_expression "iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1)" identifier = (call_expression "(**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1)" (parenthesized_expression "(**(code **)(*(long *)(lVar4 + 8) + 0x308))" ( (pointer_expression "**(code **)(*(long *)(lVar4 + 8) + 0x308)" * (pointer_expression "*(code **)(*(long *)(lVar4 + 8) + 0x308)" * (cast_expression "(code **)(*(long *)(lVar4 + 8) + 0x308)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(lVar4 + 8) + 0x308)" ( (binary_expression "*(long *)(lVar4 + 8) + 0x308" (pointer_expression "*(long *)(lVar4 + 8)" * (cast_expression "(long *)(lVar4 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 8)" ( (binary_expression "lVar4 + 8" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(lVar4,param_1)" ( identifier , identifier )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    bVar7 = false;\n    bVar8 = param_2 == 0;\n    if (!bVar8) {\n      lVar4 = 10;\n      pbVar5 = *(byte **)(param_2 + 0x30);\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (!bVar7 && !bVar8) != bVar7;\n    }\n  }" { (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "bVar8 = param_2 == 0;" (assignment_expression "bVar8 = param_2 == 0" identifier = (binary_expression "param_2 == 0" identifier == number_literal)) ;) (if_statement "if (!bVar8) {\n      lVar4 = 10;\n      pbVar5 = *(byte **)(param_2 + 0x30);\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (!bVar7 && !bVar8) != bVar7;\n    }" if (parenthesized_expression "(!bVar8)" ( (unary_expression "!bVar8" ! identifier) )) (compound_statement "{\n      lVar4 = 10;\n      pbVar5 = *(byte **)(param_2 + 0x30);\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (!bVar7 && !bVar8) != bVar7;\n    }" { (expression_statement "lVar4 = 10;" (assignment_expression "lVar4 = 10" identifier = number_literal) ;) (expression_statement "pbVar5 = *(byte **)(param_2 + 0x30);" (assignment_expression "pbVar5 = *(byte **)(param_2 + 0x30)" identifier = (pointer_expression "*(byte **)(param_2 + 0x30)" * (cast_expression "(byte **)(param_2 + 0x30)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) ;) (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 (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);" do (compound_statement "{\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      }" { (if_statement "if (lVar4 == 0) break;" if (parenthesized_expression "(lVar4 == 0)" ( (binary_expression "lVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar4 = lVar4 + -1;" (assignment_expression "lVar4 = lVar4 + -1" identifier = (binary_expression "lVar4 + -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 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pbVar5 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar5 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pbVar6 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar6 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar8)" ( identifier )) ;) (return_statement "return (!bVar7 && !bVar8) != bVar7;" return (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    uVar1 = *param_1;\n    puVar2 = DAT_002a5978;\n    while( true ) {\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }\n  }" else (compound_statement "{\n    uVar1 = *param_1;\n    puVar2 = DAT_002a5978;\n    while( true ) {\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }\n  }" { (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "puVar2 = DAT_002a5978;" (assignment_expression "puVar2 = DAT_002a5978" identifier = identifier) ;) (while_statement "while( true ) {\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }" { (if_statement "if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }" if (parenthesized_expression "(puVar2 == (undefined8 *)0x0)" ( (binary_expression "puVar2 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) (expression_statement "iVar3 = FUN_00117a50(puVar2[1],uVar1);" (assignment_expression "iVar3 = FUN_00117a50(puVar2[1],uVar1)" identifier = (call_expression "FUN_00117a50(puVar2[1],uVar1)" identifier (argument_list "(puVar2[1],uVar1)" ( (subscript_expression "puVar2[1]" identifier [ number_literal ]) , identifier )))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar2 = (undefined8 *)*puVar2;" (assignment_expression "puVar2 = (undefined8 *)*puVar2" identifier = (cast_expression "(undefined8 *)*puVar2" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) })) }))) (return_statement "return true;" return true ;) })))
(translation_unit "bfd_boolean 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  long lVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  byte bVar10;\n  \n  bVar10 = 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    bVar8 = false;\n    bVar9 = os == (lang_output_section_statement_type *)0x0;\n    if (!bVar9) {\n      lVar5 = 10;\n      pbVar6 = (byte *)os->name;\n      pbVar7 = (byte *)"/DISCARD/";\n      do {\n        if (lVar5 == 0) break;\n        lVar5 = lVar5 + -1;\n        bVar8 = *pbVar6 < *pbVar7;\n        bVar9 = *pbVar6 == *pbVar7;\n        pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n        pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n      } while (bVar9);\n      return (uint)((!bVar8 && !bVar9) != bVar8);\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" (function_definition "bfd_boolean 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  long lVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  byte bVar10;\n  \n  bVar10 = 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    bVar8 = false;\n    bVar9 = os == (lang_output_section_statement_type *)0x0;\n    if (!bVar9) {\n      lVar5 = 10;\n      pbVar6 = (byte *)os->name;\n      pbVar7 = (byte *)"/DISCARD/";\n      do {\n        if (lVar5 == 0) break;\n        lVar5 = lVar5 + -1;\n        bVar8 = *pbVar6 < *pbVar7;\n        bVar9 = *pbVar6 == *pbVar7;\n        pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n        pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n      } while (bVar9);\n      return (uint)((!bVar8 && !bVar9) != bVar8);\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 (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  long lVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  byte bVar10;\n  \n  bVar10 = 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    bVar8 = false;\n    bVar9 = os == (lang_output_section_statement_type *)0x0;\n    if (!bVar9) {\n      lVar5 = 10;\n      pbVar6 = (byte *)os->name;\n      pbVar7 = (byte *)"/DISCARD/";\n      do {\n        if (lVar5 == 0) break;\n        lVar5 = lVar5 + -1;\n        bVar8 = *pbVar6 < *pbVar7;\n        bVar9 = *pbVar6 == *pbVar7;\n        pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n        pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n      } while (bVar9);\n      return (uint)((!bVar8 && !bVar9) != bVar8);\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 "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "bool bVar9;" primitive_type identifier ;) (declaration "byte bVar10;" type_identifier identifier ;) (expression_statement "bVar10 = 0;" (assignment_expression "bVar10 = 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    bVar8 = false;\n    bVar9 = os == (lang_output_section_statement_type *)0x0;\n    if (!bVar9) {\n      lVar5 = 10;\n      pbVar6 = (byte *)os->name;\n      pbVar7 = (byte *)"/DISCARD/";\n      do {\n        if (lVar5 == 0) break;\n        lVar5 = lVar5 + -1;\n        bVar8 = *pbVar6 < *pbVar7;\n        bVar9 = *pbVar6 == *pbVar7;\n        pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n        pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n      } while (bVar9);\n      return (uint)((!bVar8 && !bVar9) != bVar8);\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    bVar8 = false;\n    bVar9 = os == (lang_output_section_statement_type *)0x0;\n    if (!bVar9) {\n      lVar5 = 10;\n      pbVar6 = (byte *)os->name;\n      pbVar7 = (byte *)"/DISCARD/";\n      do {\n        if (lVar5 == 0) break;\n        lVar5 = lVar5 + -1;\n        bVar8 = *pbVar6 < *pbVar7;\n        bVar9 = *pbVar6 == *pbVar7;\n        pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n        pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n      } while (bVar9);\n      return (uint)((!bVar8 && !bVar9) != bVar8);\n    }\n  }" { (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) (expression_statement "bVar9 = os == (lang_output_section_statement_type *)0x0;" (assignment_expression "bVar9 = 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 (!bVar9) {\n      lVar5 = 10;\n      pbVar6 = (byte *)os->name;\n      pbVar7 = (byte *)"/DISCARD/";\n      do {\n        if (lVar5 == 0) break;\n        lVar5 = lVar5 + -1;\n        bVar8 = *pbVar6 < *pbVar7;\n        bVar9 = *pbVar6 == *pbVar7;\n        pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n        pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n      } while (bVar9);\n      return (uint)((!bVar8 && !bVar9) != bVar8);\n    }" if (parenthesized_expression "(!bVar9)" ( (unary_expression "!bVar9" ! identifier) )) (compound_statement "{\n      lVar5 = 10;\n      pbVar6 = (byte *)os->name;\n      pbVar7 = (byte *)"/DISCARD/";\n      do {\n        if (lVar5 == 0) break;\n        lVar5 = lVar5 + -1;\n        bVar8 = *pbVar6 < *pbVar7;\n        bVar9 = *pbVar6 == *pbVar7;\n        pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n        pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n      } while (bVar9);\n      return (uint)((!bVar8 && !bVar9) != bVar8);\n    }" { (expression_statement "lVar5 = 10;" (assignment_expression "lVar5 = 10" identifier = number_literal) ;) (expression_statement "pbVar6 = (byte *)os->name;" (assignment_expression "pbVar6 = (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 "pbVar7 = (byte *)"/DISCARD/";" (assignment_expression "pbVar7 = (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 (lVar5 == 0) break;\n        lVar5 = lVar5 + -1;\n        bVar8 = *pbVar6 < *pbVar7;\n        bVar9 = *pbVar6 == *pbVar7;\n        pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n        pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n      } while (bVar9);" do (compound_statement "{\n        if (lVar5 == 0) break;\n        lVar5 = lVar5 + -1;\n        bVar8 = *pbVar6 < *pbVar7;\n        bVar9 = *pbVar6 == *pbVar7;\n        pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n        pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n      }" { (if_statement "if (lVar5 == 0) break;" if (parenthesized_expression "(lVar5 == 0)" ( (binary_expression "lVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar5 = lVar5 + -1;" (assignment_expression "lVar5 = lVar5 + -1" identifier = (binary_expression "lVar5 + -1" identifier + number_literal)) ;) (expression_statement "bVar8 = *pbVar6 < *pbVar7;" (assignment_expression "bVar8 = *pbVar6 < *pbVar7" identifier = (binary_expression "*pbVar6 < *pbVar7" (pointer_expression "*pbVar6" * identifier) < (pointer_expression "*pbVar7" * identifier))) ;) (expression_statement "bVar9 = *pbVar6 == *pbVar7;" (assignment_expression "bVar9 = *pbVar6 == *pbVar7" identifier = (binary_expression "*pbVar6 == *pbVar7" (pointer_expression "*pbVar6" * identifier) == (pointer_expression "*pbVar7" * identifier))) ;) (expression_statement "pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;" (assignment_expression "pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "pbVar6 + (ulong)bVar10 * -2 + 1" (binary_expression "pbVar6 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;" (assignment_expression "pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "pbVar7 + (ulong)bVar10 * -2 + 1" (binary_expression "pbVar7 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar9)" ( identifier )) ;) (return_statement "return (uint)((!bVar8 && !bVar9) != bVar8);" return (call_expression "(uint)((!bVar8 && !bVar9) != bVar8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((!bVar8 && !bVar9) != bVar8)" ( (binary_expression "(!bVar8 && !bVar9) != bVar8" (parenthesized_expression "(!bVar8 && !bVar9)" ( (binary_expression "!bVar8 && !bVar9" (unary_expression "!bVar8" ! identifier) && (unary_expression "!bVar9" ! 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 FUN_00118270(undefined8 *param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  long lVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  if ((((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)) &&\n     (iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0)) {\n    bVar7 = false;\n    bVar8 = param_2 == 0;\n    if (!bVar8) {\n      lVar4 = 10;\n      pbVar5 = *(byte **)(param_2 + 0x30);\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (!bVar7 && !bVar8) != bVar7;\n    }\n  }\n  else {\n    uVar1 = *param_1;\n    puVar2 = DAT_002a5978;\n    while( true ) {\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }\n  }\n  return true;\n}\n\n" (function_definition "bool FUN_00118270(undefined8 *param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  long lVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  if ((((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)) &&\n     (iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0)) {\n    bVar7 = false;\n    bVar8 = param_2 == 0;\n    if (!bVar8) {\n      lVar4 = 10;\n      pbVar5 = *(byte **)(param_2 + 0x30);\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (!bVar7 && !bVar8) != bVar7;\n    }\n  }\n  else {\n    uVar1 = *param_1;\n    puVar2 = DAT_002a5978;\n    while( true ) {\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }\n  }\n  return true;\n}" primitive_type (function_declarator "FUN_00118270(undefined8 *param_1,long param_2)" identifier (parameter_list "(undefined8 *param_1,long param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  long lVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  if ((((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)) &&\n     (iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0)) {\n    bVar7 = false;\n    bVar8 = param_2 == 0;\n    if (!bVar8) {\n      lVar4 = 10;\n      pbVar5 = *(byte **)(param_2 + 0x30);\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (!bVar7 && !bVar8) != bVar7;\n    }\n  }\n  else {\n    uVar1 = *param_1;\n    puVar2 = DAT_002a5978;\n    while( true ) {\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }\n  }\n  return true;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) 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 ((((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)) &&\n     (iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0)) {\n    bVar7 = false;\n    bVar8 = param_2 == 0;\n    if (!bVar8) {\n      lVar4 = 10;\n      pbVar5 = *(byte **)(param_2 + 0x30);\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (!bVar7 && !bVar8) != bVar7;\n    }\n  }\n  else {\n    uVar1 = *param_1;\n    puVar2 = DAT_002a5978;\n    while( true ) {\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }\n  }" if (parenthesized_expression "((((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)) &&\n     (iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0))" ( (binary_expression "(((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)) &&\n     (iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0)" (parenthesized_expression "(((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0))" ( (binary_expression "((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)" (parenthesized_expression "((DAT_002a67c1 & 0x10) == 0)" ( (binary_expression "(DAT_002a67c1 & 0x10) == 0" (parenthesized_expression "(DAT_002a67c1 & 0x10)" ( (binary_expression "DAT_002a67c1 & 0x10" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(lVar4 = param_1[0x1e], lVar4 != 0)" ( (comma_expression "lVar4 = param_1[0x1e], lVar4 != 0" (assignment_expression "lVar4 = param_1[0x1e]" identifier = (subscript_expression "param_1[0x1e]" identifier [ number_literal ])) , (binary_expression "lVar4 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "(iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0)" ( (comma_expression "iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0" (assignment_expression "iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1)" identifier = (call_expression "(**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1)" (parenthesized_expression "(**(code **)(*(long *)(lVar4 + 8) + 0x308))" ( (pointer_expression "**(code **)(*(long *)(lVar4 + 8) + 0x308)" * (pointer_expression "*(code **)(*(long *)(lVar4 + 8) + 0x308)" * (cast_expression "(code **)(*(long *)(lVar4 + 8) + 0x308)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(lVar4 + 8) + 0x308)" ( (binary_expression "*(long *)(lVar4 + 8) + 0x308" (pointer_expression "*(long *)(lVar4 + 8)" * (cast_expression "(long *)(lVar4 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 8)" ( (binary_expression "lVar4 + 8" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(lVar4,param_1)" ( identifier , identifier )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    bVar7 = false;\n    bVar8 = param_2 == 0;\n    if (!bVar8) {\n      lVar4 = 10;\n      pbVar5 = *(byte **)(param_2 + 0x30);\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (!bVar7 && !bVar8) != bVar7;\n    }\n  }" { (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "bVar8 = param_2 == 0;" (assignment_expression "bVar8 = param_2 == 0" identifier = (binary_expression "param_2 == 0" identifier == number_literal)) ;) (if_statement "if (!bVar8) {\n      lVar4 = 10;\n      pbVar5 = *(byte **)(param_2 + 0x30);\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (!bVar7 && !bVar8) != bVar7;\n    }" if (parenthesized_expression "(!bVar8)" ( (unary_expression "!bVar8" ! identifier) )) (compound_statement "{\n      lVar4 = 10;\n      pbVar5 = *(byte **)(param_2 + 0x30);\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (!bVar7 && !bVar8) != bVar7;\n    }" { (expression_statement "lVar4 = 10;" (assignment_expression "lVar4 = 10" identifier = number_literal) ;) (expression_statement "pbVar5 = *(byte **)(param_2 + 0x30);" (assignment_expression "pbVar5 = *(byte **)(param_2 + 0x30)" identifier = (pointer_expression "*(byte **)(param_2 + 0x30)" * (cast_expression "(byte **)(param_2 + 0x30)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) ;) (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 (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);" do (compound_statement "{\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      }" { (if_statement "if (lVar4 == 0) break;" if (parenthesized_expression "(lVar4 == 0)" ( (binary_expression "lVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar4 = lVar4 + -1;" (assignment_expression "lVar4 = lVar4 + -1" identifier = (binary_expression "lVar4 + -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 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pbVar5 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar5 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pbVar6 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar6 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar8)" ( identifier )) ;) (return_statement "return (!bVar7 && !bVar8) != bVar7;" return (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    uVar1 = *param_1;\n    puVar2 = DAT_002a5978;\n    while( true ) {\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }\n  }" else (compound_statement "{\n    uVar1 = *param_1;\n    puVar2 = DAT_002a5978;\n    while( true ) {\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }\n  }" { (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "puVar2 = DAT_002a5978;" (assignment_expression "puVar2 = DAT_002a5978" identifier = identifier) ;) (while_statement "while( true ) {\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }" { (if_statement "if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }" if (parenthesized_expression "(puVar2 == (undefined8 *)0x0)" ( (binary_expression "puVar2 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) (expression_statement "iVar3 = FUN_00117a50(puVar2[1],uVar1);" (assignment_expression "iVar3 = FUN_00117a50(puVar2[1],uVar1)" identifier = (call_expression "FUN_00117a50(puVar2[1],uVar1)" identifier (argument_list "(puVar2[1],uVar1)" ( (subscript_expression "puVar2[1]" identifier [ number_literal ]) , identifier )))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar2 = (undefined8 *)*puVar2;" (assignment_expression "puVar2 = (undefined8 *)*puVar2" identifier = (cast_expression "(undefined8 *)*puVar2" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) })) }))) (return_statement "return true;" return true ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (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 ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 = (subscript_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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) )) (argument_list ( 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 { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 ( (subscript_expression IDENT [ LIT ]) , IDENT )))) ;) (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 FUN_00118270(undefined8 *param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  long lVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  if ((((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)) &&\n     (iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0)) {\n    bVar7 = false;\n    bVar8 = param_2 == 0;\n    if (!bVar8) {\n      lVar4 = 10;\n      pbVar5 = *(byte **)(param_2 + 0x30);\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (!bVar7 && !bVar8) != bVar7;\n    }\n  }\n  else {\n    uVar1 = *param_1;\n    puVar2 = DAT_002a5978;\n    while( true ) {\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }\n  }\n  return true;\n}" (primitive_type "bool") (function_declarator "FUN_00118270(undefined8 *param_1,long param_2)" (identifier "FUN_00118270") (parameter_list "(undefined8 *param_1,long param_2)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  long lVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  if ((((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)) &&\n     (iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0)) {\n    bVar7 = false;\n    bVar8 = param_2 == 0;\n    if (!bVar8) {\n      lVar4 = 10;\n      pbVar5 = *(byte **)(param_2 + 0x30);\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (!bVar7 && !bVar8) != bVar7;\n    }\n  }\n  else {\n    uVar1 = *param_1;\n    puVar2 = DAT_002a5978;\n    while( true ) {\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }\n  }\n  return true;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "undefined8 *puVar2;" (type_identifier "undefined8") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "bool bVar7;" (primitive_type "bool") (identifier "bVar7") (; ";")) (declaration "bool bVar8;" (primitive_type "bool") (identifier "bVar8") (; ";")) (declaration "byte bVar9;" (type_identifier "byte") (identifier "bVar9") (; ";")) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" (identifier "bVar9") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)) &&\n     (iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0)) {\n    bVar7 = false;\n    bVar8 = param_2 == 0;\n    if (!bVar8) {\n      lVar4 = 10;\n      pbVar5 = *(byte **)(param_2 + 0x30);\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (!bVar7 && !bVar8) != bVar7;\n    }\n  }\n  else {\n    uVar1 = *param_1;\n    puVar2 = DAT_002a5978;\n    while( true ) {\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }\n  }" (if "if") (parenthesized_expression "((((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)) &&\n     (iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0))" (( "(") (binary_expression "(((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)) &&\n     (iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0)" (parenthesized_expression "(((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0))" (( "(") (binary_expression "((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)" (parenthesized_expression "((DAT_002a67c1 & 0x10) == 0)" (( "(") (binary_expression "(DAT_002a67c1 & 0x10) == 0" (parenthesized_expression "(DAT_002a67c1 & 0x10)" (( "(") (binary_expression "DAT_002a67c1 & 0x10" (identifier "DAT_002a67c1") (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(lVar4 = param_1[0x1e], lVar4 != 0)" (( "(") (comma_expression "lVar4 = param_1[0x1e], lVar4 != 0" (assignment_expression "lVar4 = param_1[0x1e]" (identifier "lVar4") (= "=") (subscript_expression "param_1[0x1e]" (identifier "param_1") ([ "[") (number_literal "0x1e") (] "]"))) (, ",") (binary_expression "lVar4 != 0" (identifier "lVar4") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0)" (( "(") (comma_expression "iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0" (assignment_expression "iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1)" (identifier "iVar3") (= "=") (call_expression "(**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1)" (parenthesized_expression "(**(code **)(*(long *)(lVar4 + 8) + 0x308))" (( "(") (pointer_expression "**(code **)(*(long *)(lVar4 + 8) + 0x308)" (* "*") (pointer_expression "*(code **)(*(long *)(lVar4 + 8) + 0x308)" (* "*") (cast_expression "(code **)(*(long *)(lVar4 + 8) + 0x308)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(long *)(lVar4 + 8) + 0x308)" (( "(") (binary_expression "*(long *)(lVar4 + 8) + 0x308" (pointer_expression "*(long *)(lVar4 + 8)" (* "*") (cast_expression "(long *)(lVar4 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 8)" (( "(") (binary_expression "lVar4 + 8" (identifier "lVar4") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x308")) () ")"))))) () ")")) (argument_list "(lVar4,param_1)" (( "(") (identifier "lVar4") (, ",") (identifier "param_1") () ")")))) (, ",") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    bVar7 = false;\n    bVar8 = param_2 == 0;\n    if (!bVar8) {\n      lVar4 = 10;\n      pbVar5 = *(byte **)(param_2 + 0x30);\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (!bVar7 && !bVar8) != bVar7;\n    }\n  }" ({ "{") (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" (identifier "bVar7") (= "=") (false "false")) (; ";")) (expression_statement "bVar8 = param_2 == 0;" (assignment_expression "bVar8 = param_2 == 0" (identifier "bVar8") (= "=") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0"))) (; ";")) (if_statement "if (!bVar8) {\n      lVar4 = 10;\n      pbVar5 = *(byte **)(param_2 + 0x30);\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (!bVar7 && !bVar8) != bVar7;\n    }" (if "if") (parenthesized_expression "(!bVar8)" (( "(") (unary_expression "!bVar8" (! "!") (identifier "bVar8")) () ")")) (compound_statement "{\n      lVar4 = 10;\n      pbVar5 = *(byte **)(param_2 + 0x30);\n      pbVar6 = (byte *)"/DISCARD/";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      return (!bVar7 && !bVar8) != bVar7;\n    }" ({ "{") (expression_statement "lVar4 = 10;" (assignment_expression "lVar4 = 10" (identifier "lVar4") (= "=") (number_literal "10")) (; ";")) (expression_statement "pbVar5 = *(byte **)(param_2 + 0x30);" (assignment_expression "pbVar5 = *(byte **)(param_2 + 0x30)" (identifier "pbVar5") (= "=") (pointer_expression "*(byte **)(param_2 + 0x30)" (* "*") (cast_expression "(byte **)(param_2 + 0x30)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "pbVar6 = (byte *)"/DISCARD/";" (assignment_expression "pbVar6 = (byte *)"/DISCARD/"" (identifier "pbVar6") (= "=") (cast_expression "(byte *)"/DISCARD/"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""/DISCARD/"" (" """) (string_content "/DISCARD/") (" """)))) (; ";")) (do_statement "do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);" (do "do") (compound_statement "{\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      }" ({ "{") (if_statement "if (lVar4 == 0) break;" (if "if") (parenthesized_expression "(lVar4 == 0)" (( "(") (binary_expression "lVar4 == 0" (identifier "lVar4") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar4 = lVar4 + -1;" (assignment_expression "lVar4 = lVar4 + -1" (identifier "lVar4") (= "=") (binary_expression "lVar4 + -1" (identifier "lVar4") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar7 = *pbVar5 < *pbVar6;" (assignment_expression "bVar7 = *pbVar5 < *pbVar6" (identifier "bVar7") (= "=") (binary_expression "*pbVar5 < *pbVar6" (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")) (< "<") (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6")))) (; ";")) (expression_statement "bVar8 = *pbVar5 == *pbVar6;" (assignment_expression "bVar8 = *pbVar5 == *pbVar6" (identifier "bVar8") (= "=") (binary_expression "*pbVar5 == *pbVar6" (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")) (== "==") (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6")))) (; ";")) (expression_statement "pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1" (identifier "pbVar5") (= "=") (binary_expression "pbVar5 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar5 + (ulong)bVar9 * -2" (identifier "pbVar5") (+ "+") (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1" (identifier "pbVar6") (= "=") (binary_expression "pbVar6 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar6 + (ulong)bVar9 * -2" (identifier "pbVar6") (+ "+") (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar8)" (( "(") (identifier "bVar8") () ")")) (; ";")) (return_statement "return (!bVar7 && !bVar8) != bVar7;" (return "return") (binary_expression "(!bVar7 && !bVar8) != bVar7" (parenthesized_expression "(!bVar7 && !bVar8)" (( "(") (binary_expression "!bVar7 && !bVar8" (unary_expression "!bVar7" (! "!") (identifier "bVar7")) (&& "&&") (unary_expression "!bVar8" (! "!") (identifier "bVar8"))) () ")")) (!= "!=") (identifier "bVar7")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    uVar1 = *param_1;\n    puVar2 = DAT_002a5978;\n    while( true ) {\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }\n  }" (else "else") (compound_statement "{\n    uVar1 = *param_1;\n    puVar2 = DAT_002a5978;\n    while( true ) {\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }\n  }" ({ "{") (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" (identifier "uVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "puVar2 = DAT_002a5978;" (assignment_expression "puVar2 = DAT_002a5978" (identifier "puVar2") (= "=") (identifier "DAT_002a5978")) (; ";")) (while_statement "while( true ) {\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }\n      iVar3 = FUN_00117a50(puVar2[1],uVar1);\n      if (iVar3 == 0) break;\n      puVar2 = (undefined8 *)*puVar2;\n    }" ({ "{") (if_statement "if (puVar2 == (undefined8 *)0x0) {\n        return false;\n      }" (if "if") (parenthesized_expression "(puVar2 == (undefined8 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined8 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return false;\n      }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (expression_statement "iVar3 = FUN_00117a50(puVar2[1],uVar1);" (assignment_expression "iVar3 = FUN_00117a50(puVar2[1],uVar1)" (identifier "iVar3") (= "=") (call_expression "FUN_00117a50(puVar2[1],uVar1)" (identifier "FUN_00117a50") (argument_list "(puVar2[1],uVar1)" (( "(") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "uVar1") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) break;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar2 = (undefined8 *)*puVar2;" (assignment_expression "puVar2 = (undefined8 *)*puVar2" (identifier "puVar2") (= "=") (cast_expression "(undefined8 *)*puVar2" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) (; ";")) (} "}"))) (} "}")))) (return_statement "return true;" (return "return") (true "true") (; ";")) (} "}")))

type_1 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_10;
  long var_4;
  type_6 *var_5;
  type_6 *var_6;
  bool var_7;
  bool bVar9;
  type_6 bVar10;
  
  bVar10 = 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;
    bVar9 = var_3 == (type_3 *)0x0;
    if (!bVar9) {
      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;
        bVar9 = *var_5 == *var_6;
        var_5 = var_5 + (type_7)bVar10 * -2 + 1;
        var_6 = var_6 + (type_7)bVar10 * -2 + 1;
      } while (bVar9);
      return (uint)((!var_7 && !bVar9) != var_7);
    }
  }
  else {
    name = sec->name;
    var_8 = unique_section_list;
    while( true ) {
      if (var_8 == (type_5 *)0x0) {
        return 0;
      }
      var_10 = var_9(var_8->name,name);
      if (var_10 == 0) break;
      var_8 = var_8->next;
    }
  }
  return 1;
}


(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))) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (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: (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))) (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: (subscript_expression argument: (identifier) index: (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: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) arguments: (argument_list (identifier) (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 (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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 (subscript_expression argument: (identifier) index: (number_literal)) (identifier))))) (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)))))

bool MASKED(undefined8 *param_1,long param_2)

{
  undefined8 uVar1;
  undefined8 *puVar2;
  int iVar3;
  long lVar4;
  byte *pbVar5;
  byte *pbVar6;
  bool bVar7;
  bool bVar8;
  byte bVar9;
  
  bVar9 = 0;
  if ((((DAT_002a67c1 & 0x10) == 0) && (lVar4 = param_1[0x1e], lVar4 != 0)) &&
     (iVar3 = (**(code **)(*(long *)(lVar4 + 8) + 0x308))(lVar4,param_1), iVar3 != 0)) {
    bVar7 = false;
    bVar8 = param_2 == 0;
    if (!bVar8) {
      lVar4 = 10;
      pbVar5 = *(byte **)(param_2 + 0x30);
      pbVar6 = (byte *)"/DISCARD/";
      do {
        if (lVar4 == 0) break;
        lVar4 = lVar4 + -1;
        bVar7 = *pbVar5 < *pbVar6;
        bVar8 = *pbVar5 == *pbVar6;
        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;
        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;
      } while (bVar8);
      return (!bVar7 && !bVar8) != bVar7;
    }
  }
  else {
    uVar1 = *param_1;
    puVar2 = DAT_002a5978;
    while( true ) {
      if (puVar2 == (undefined8 *)0x0) {
        return false;
      }
      iVar3 = FUN_00117a50(puVar2[1],uVar1);
      if (iVar3 == 0) break;
      puVar2 = (undefined8 *)*puVar2;
    }
  }
  return true;
}

