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

char * cplus_demangle(char *mangled,int options)

{
  demangling_styles dVar1;
  char *pcVar2;
  int iVar3;
  char ***pppcVar4;
  work_stuff work [1];
  
  if (current_demangling_style == no_demangling) {
    pcVar2 = xstrdup(mangled);
    return pcVar2;
  }
  pppcVar4 = &work[0].typevec;
  for (iVar3 = 0x17; iVar3 != 0; iVar3 = iVar3 + -1) {
    *pppcVar4 = (char **)0x0;
    pppcVar4 = pppcVar4 + 1;
  }
  if ((options & 0x3ff04U) == 0) {
    work[0].options =
         current_demangling_style &
         (rust_demangling|dlang_demangling|gnat_demangling|gnu_v3_demangling|edg_demangling|
          hp_demangling|arm_demangling|lucid_demangling|gnu_demangling|auto_demangling|
         java_demangling) | options;
    dVar1 = work[0].options & (rust_demangling|gnu_v3_demangling|auto_demangling);
  }
  else {
    dVar1 = options & (rust_demangling|gnu_v3_demangling|auto_demangling);
    work[0].options = options;
  }
  if (dVar1 != unknown_demangling) {
    pcVar2 = cplus_demangle_v3(mangled,work[0].options);
    if ((work[0].options & 0x4000U) != 0) {
      return pcVar2;
    }
    if (pcVar2 != (char *)0x0) {
      iVar3 = rust_is_mangled(pcVar2);
      if (iVar3 != 0) {
        rust_demangle_sym(pcVar2);
        return pcVar2;
      }
      if ((work[0].options & 0x20000U) == 0) {
        return pcVar2;
      }
      free(pcVar2);
    }
    if ((work[0].options & 0x20000U) != 0) {
      return (char *)0x0;
    }
  }
  if (((work[0].options & 4U) == 0) || (pcVar2 = java_demangle_v3(mangled), pcVar2 == (char *)0x0))
  {
    if ((work[0].options & 0x8000U) == 0) {
      if (((work[0].options & 0x10000U) != 0) &&
         (pcVar2 = dlang_demangle(mangled,options), pcVar2 != (char *)0x0)) {
        return pcVar2;
      }
      pcVar2 = internal_cplus_demangle(work,mangled);
      squangle_mop_up(work);
    }
    else {
      pcVar2 = ada_demangle(mangled,options);
    }
  }
  return pcVar2;
}



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

void * FUN_001945b0(undefined4 param_1,uint param_2)

{
  uint uVar1;
  void *pvVar2;
  int iVar3;
  uint uVar4;
  undefined4 *puVar5;
  undefined4 local_78 [25];
  undefined4 uStack_14;
  
  uStack_14 = 0x1945b9;
  if (DAT_0033f2f8 == 0xffffffff) {
    pvVar2 = (void *)FUN_001aa4d0(param_1);
    return pvVar2;
  }
  puVar5 = local_78;
  for (iVar3 = 0x17; iVar3 != 0; iVar3 = iVar3 + -1) {
    *puVar5 = 0;
    puVar5 = puVar5 + 1;
  }
  if ((param_2 & 0x3ff04) == 0) {
    uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2;
    uVar1 = uVar4 & 0x24100;
  }
  else {
    uVar1 = param_2 & 0x24100;
    uVar4 = param_2;
  }
  if (uVar1 != 0) {
    pvVar2 = (void *)FUN_001a4230(param_1,uVar4);
    if ((uVar4 & 0x4000) != 0) {
      return pvVar2;
    }
    if (pvVar2 != (void *)0x0) {
      iVar3 = FUN_001a9ae0(pvVar2);
      if (iVar3 != 0) {
        FUN_001a9ea0(pvVar2);
        return pvVar2;
      }
      if ((uVar4 & 0x20000) == 0) {
        return pvVar2;
      }
      free(pvVar2);
    }
    if ((uVar4 & 0x20000) != 0) {
      return (void *)0x0;
    }
  }
  if (((uVar4 & 4) == 0) || (pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0)) {
    if ((uVar4 & 0x8000) == 0) {
      if (((uVar4 & 0x10000) != 0) &&
         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {
        return pvVar2;
      }
      pvVar2 = (void *)FUN_001993e0();
      FUN_001930a0();
    }
    else {
      pvVar2 = (void *)FUN_00194030(param_1,param_2);
    }
  }
  return pvVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x1aaa47
SUB ESP,0x6c
MOV ESI,dword ptr [ESP + 0x84]
MOV EDX,dword ptr [EBX + 0x2f8]
CMP EDX,-0x1
JZ 0x001946b0
LEA EBP,[ESP + 0x4]
MOV ECX,0x17
XOR EAX,EAX
MOV EDI,EBP
STOSD.REP ES:EDI
TEST ESI,0x3ff04
JZ 0x00194640
MOV EDX,ESI
MOV dword ptr [ESP],ESI
TEST EDX,0x24100
JNZ 0x00194653
TEST DL,0x4
JNZ 0x00194700
TEST DH,0x80
JNZ 0x00194728
AND EDX,0x10000
JNZ 0x001946d0
MOV EBX,ESP
MOV EDX,dword ptr [ESP + 0x80]
MOV EAX,EBX
CALL 0x001993e0
MOV EBP,EAX
MOV EAX,EBX
CALL 0x001930a0
ADD ESP,0x6c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
AND EDX,0x3ff04
OR EDX,ESI
MOV dword ptr [ESP],EDX
TEST EDX,0x24100
JZ 0x001945fc
SUB ESP,0x8
PUSH EDX
PUSH dword ptr [ESP + 0x8c]
CALL 0x001a4230
MOV EDX,dword ptr [ESP + 0x10]
ADD ESP,0x10
MOV EBP,EAX
TEST DH,0x40
JNZ 0x00194633
TEST EAX,EAX
JZ 0x001946a0
SUB ESP,0xc
PUSH EAX
CALL 0x001a9ae0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00194748
TEST byte ptr [ESP + 0x2],0x2
JZ 0x00194633
SUB ESP,0xc
PUSH EBP
CALL 0x00028420
MOV EDX,dword ptr [ESP + 0x10]
ADD ESP,0x10
XOR EBP,EBP
TEST EDX,0x20000
JZ 0x001945fc
JMP 0x00194633
SUB ESP,0xc
PUSH dword ptr [ESP + 0x8c]
CALL 0x001aa4d0
ADD ESP,0x10
ADD ESP,0x6c
MOV EBP,EAX
POP EBX
MOV EAX,EBP
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [ESP + 0x8c]
CALL 0x001a9730
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JZ 0x0019461a
ADD ESP,0x6c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH dword ptr [ESP + 0x8c]
CALL 0x001a4270
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x00194633
MOV EDX,dword ptr [ESP]
JMP 0x00194605
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [ESP + 0x8c]
CALL 0x00194030
ADD ESP,0x10
MOV EBP,EAX
JMP 0x00194633
SUB ESP,0xc
PUSH EBP
CALL 0x001a9ea0
ADD ESP,0x10
JMP 0x00194633
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid * FUN_001945b0(undefined4 param_1,uint param_2)\n\n{\n  uint uVar1;\n  void *pvVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  undefined4 local_78 [25];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1945b9;\n  if (DAT_0033f2f8 == 0xffffffff) {\n    pvVar2 = (void *)FUN_001aa4d0(param_1);\n    return pvVar2;\n  }\n  puVar5 = local_78;\n  for (iVar3 = 0x17; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }\n  if ((param_2 & 0x3ff04) == 0) {\n    uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2;\n    uVar1 = uVar4 & 0x24100;\n  }\n  else {\n    uVar1 = param_2 & 0x24100;\n    uVar4 = param_2;\n  }\n  if (uVar1 != 0) {\n    pvVar2 = (void *)FUN_001a4230(param_1,uVar4);\n    if ((uVar4 & 0x4000) != 0) {\n      return pvVar2;\n    }\n    if (pvVar2 != (void *)0x0) {\n      iVar3 = FUN_001a9ae0(pvVar2);\n      if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }\n      if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }\n      free(pvVar2);\n    }\n    if ((uVar4 & 0x20000) != 0) {\n      return (void *)0x0;\n    }\n  }\n  if (((uVar4 & 4) == 0) || (pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0)) {\n    if ((uVar4 & 0x8000) == 0) {\n      if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }\n      pvVar2 = (void *)FUN_001993e0();\n      FUN_001930a0();\n    }\n    else {\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }\n  }\n  return pvVar2;\n}\n\n" comment (function_definition "void * FUN_001945b0(undefined4 param_1,uint param_2)\n\n{\n  uint uVar1;\n  void *pvVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  undefined4 local_78 [25];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1945b9;\n  if (DAT_0033f2f8 == 0xffffffff) {\n    pvVar2 = (void *)FUN_001aa4d0(param_1);\n    return pvVar2;\n  }\n  puVar5 = local_78;\n  for (iVar3 = 0x17; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }\n  if ((param_2 & 0x3ff04) == 0) {\n    uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2;\n    uVar1 = uVar4 & 0x24100;\n  }\n  else {\n    uVar1 = param_2 & 0x24100;\n    uVar4 = param_2;\n  }\n  if (uVar1 != 0) {\n    pvVar2 = (void *)FUN_001a4230(param_1,uVar4);\n    if ((uVar4 & 0x4000) != 0) {\n      return pvVar2;\n    }\n    if (pvVar2 != (void *)0x0) {\n      iVar3 = FUN_001a9ae0(pvVar2);\n      if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }\n      if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }\n      free(pvVar2);\n    }\n    if ((uVar4 & 0x20000) != 0) {\n      return (void *)0x0;\n    }\n  }\n  if (((uVar4 & 4) == 0) || (pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0)) {\n    if ((uVar4 & 0x8000) == 0) {\n      if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }\n      pvVar2 = (void *)FUN_001993e0();\n      FUN_001930a0();\n    }\n    else {\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }\n  }\n  return pvVar2;\n}" primitive_type (pointer_declarator "* FUN_001945b0(undefined4 param_1,uint param_2)" * (function_declarator "FUN_001945b0(undefined4 param_1,uint param_2)" identifier (parameter_list "(undefined4 param_1,uint param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) )))) (compound_statement "{\n  uint uVar1;\n  void *pvVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  undefined4 local_78 [25];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1945b9;\n  if (DAT_0033f2f8 == 0xffffffff) {\n    pvVar2 = (void *)FUN_001aa4d0(param_1);\n    return pvVar2;\n  }\n  puVar5 = local_78;\n  for (iVar3 = 0x17; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }\n  if ((param_2 & 0x3ff04) == 0) {\n    uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2;\n    uVar1 = uVar4 & 0x24100;\n  }\n  else {\n    uVar1 = param_2 & 0x24100;\n    uVar4 = param_2;\n  }\n  if (uVar1 != 0) {\n    pvVar2 = (void *)FUN_001a4230(param_1,uVar4);\n    if ((uVar4 & 0x4000) != 0) {\n      return pvVar2;\n    }\n    if (pvVar2 != (void *)0x0) {\n      iVar3 = FUN_001a9ae0(pvVar2);\n      if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }\n      if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }\n      free(pvVar2);\n    }\n    if ((uVar4 & 0x20000) != 0) {\n      return (void *)0x0;\n    }\n  }\n  if (((uVar4 & 4) == 0) || (pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0)) {\n    if ((uVar4 & 0x8000) == 0) {\n      if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }\n      pvVar2 = (void *)FUN_001993e0();\n      FUN_001930a0();\n    }\n    else {\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }\n  }\n  return pvVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 local_78 [25];" type_identifier (array_declarator "local_78 [25]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1945b9;" (assignment_expression "uStack_14 = 0x1945b9" identifier = number_literal) ;) (if_statement "if (DAT_0033f2f8 == 0xffffffff) {\n    pvVar2 = (void *)FUN_001aa4d0(param_1);\n    return pvVar2;\n  }" if (parenthesized_expression "(DAT_0033f2f8 == 0xffffffff)" ( (binary_expression "DAT_0033f2f8 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n    pvVar2 = (void *)FUN_001aa4d0(param_1);\n    return pvVar2;\n  }" { (expression_statement "pvVar2 = (void *)FUN_001aa4d0(param_1);" (assignment_expression "pvVar2 = (void *)FUN_001aa4d0(param_1)" identifier = (cast_expression "(void *)FUN_001aa4d0(param_1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001aa4d0(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (return_statement "return pvVar2;" return identifier ;) })) (expression_statement "puVar5 = local_78;" (assignment_expression "puVar5 = local_78" identifier = identifier) ;) (for_statement "for (iVar3 = 0x17; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }" for ( (assignment_expression "iVar3 = 0x17" identifier = number_literal) ; (binary_expression "iVar3 != 0" identifier != number_literal) ; (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }" { (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) })) (if_statement "if ((param_2 & 0x3ff04) == 0) {\n    uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2;\n    uVar1 = uVar4 & 0x24100;\n  }\n  else {\n    uVar1 = param_2 & 0x24100;\n    uVar4 = param_2;\n  }" if (parenthesized_expression "((param_2 & 0x3ff04) == 0)" ( (binary_expression "(param_2 & 0x3ff04) == 0" (parenthesized_expression "(param_2 & 0x3ff04)" ( (binary_expression "param_2 & 0x3ff04" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2;\n    uVar1 = uVar4 & 0x24100;\n  }" { (expression_statement "uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2;" (assignment_expression "uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2" identifier = (binary_expression "DAT_0033f2f8 & 0x3ff04 | param_2" (binary_expression "DAT_0033f2f8 & 0x3ff04" identifier & number_literal) | identifier)) ;) (expression_statement "uVar1 = uVar4 & 0x24100;" (assignment_expression "uVar1 = uVar4 & 0x24100" identifier = (binary_expression "uVar4 & 0x24100" identifier & number_literal)) ;) }) (else_clause "else {\n    uVar1 = param_2 & 0x24100;\n    uVar4 = param_2;\n  }" else (compound_statement "{\n    uVar1 = param_2 & 0x24100;\n    uVar4 = param_2;\n  }" { (expression_statement "uVar1 = param_2 & 0x24100;" (assignment_expression "uVar1 = param_2 & 0x24100" identifier = (binary_expression "param_2 & 0x24100" identifier & number_literal)) ;) (expression_statement "uVar4 = param_2;" (assignment_expression "uVar4 = param_2" identifier = identifier) ;) }))) (if_statement "if (uVar1 != 0) {\n    pvVar2 = (void *)FUN_001a4230(param_1,uVar4);\n    if ((uVar4 & 0x4000) != 0) {\n      return pvVar2;\n    }\n    if (pvVar2 != (void *)0x0) {\n      iVar3 = FUN_001a9ae0(pvVar2);\n      if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }\n      if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }\n      free(pvVar2);\n    }\n    if ((uVar4 & 0x20000) != 0) {\n      return (void *)0x0;\n    }\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    pvVar2 = (void *)FUN_001a4230(param_1,uVar4);\n    if ((uVar4 & 0x4000) != 0) {\n      return pvVar2;\n    }\n    if (pvVar2 != (void *)0x0) {\n      iVar3 = FUN_001a9ae0(pvVar2);\n      if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }\n      if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }\n      free(pvVar2);\n    }\n    if ((uVar4 & 0x20000) != 0) {\n      return (void *)0x0;\n    }\n  }" { (expression_statement "pvVar2 = (void *)FUN_001a4230(param_1,uVar4);" (assignment_expression "pvVar2 = (void *)FUN_001a4230(param_1,uVar4)" identifier = (cast_expression "(void *)FUN_001a4230(param_1,uVar4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001a4230(param_1,uVar4)" identifier (argument_list "(param_1,uVar4)" ( identifier , identifier ))))) ;) (if_statement "if ((uVar4 & 0x4000) != 0) {\n      return pvVar2;\n    }" if (parenthesized_expression "((uVar4 & 0x4000) != 0)" ( (binary_expression "(uVar4 & 0x4000) != 0" (parenthesized_expression "(uVar4 & 0x4000)" ( (binary_expression "uVar4 & 0x4000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      return pvVar2;\n    }" { (return_statement "return pvVar2;" return identifier ;) })) (if_statement "if (pvVar2 != (void *)0x0) {\n      iVar3 = FUN_001a9ae0(pvVar2);\n      if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }\n      if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }\n      free(pvVar2);\n    }" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar3 = FUN_001a9ae0(pvVar2);\n      if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }\n      if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }\n      free(pvVar2);\n    }" { (expression_statement "iVar3 = FUN_001a9ae0(pvVar2);" (assignment_expression "iVar3 = FUN_001a9ae0(pvVar2)" identifier = (call_expression "FUN_001a9ae0(pvVar2)" identifier (argument_list "(pvVar2)" ( identifier )))) ;) (if_statement "if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }" { (expression_statement "FUN_001a9ea0(pvVar2);" (call_expression "FUN_001a9ea0(pvVar2)" identifier (argument_list "(pvVar2)" ( identifier ))) ;) (return_statement "return pvVar2;" return identifier ;) })) (if_statement "if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }" if (parenthesized_expression "((uVar4 & 0x20000) == 0)" ( (binary_expression "(uVar4 & 0x20000) == 0" (parenthesized_expression "(uVar4 & 0x20000)" ( (binary_expression "uVar4 & 0x20000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        return pvVar2;\n      }" { (return_statement "return pvVar2;" return identifier ;) })) (expression_statement "free(pvVar2);" (call_expression "free(pvVar2)" identifier (argument_list "(pvVar2)" ( identifier ))) ;) })) (if_statement "if ((uVar4 & 0x20000) != 0) {\n      return (void *)0x0;\n    }" if (parenthesized_expression "((uVar4 & 0x20000) != 0)" ( (binary_expression "(uVar4 & 0x20000) != 0" (parenthesized_expression "(uVar4 & 0x20000)" ( (binary_expression "uVar4 & 0x20000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      return (void *)0x0;\n    }" { (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (if_statement "if (((uVar4 & 4) == 0) || (pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0)) {\n    if ((uVar4 & 0x8000) == 0) {\n      if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }\n      pvVar2 = (void *)FUN_001993e0();\n      FUN_001930a0();\n    }\n    else {\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }\n  }" if (parenthesized_expression "(((uVar4 & 4) == 0) || (pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0))" ( (binary_expression "((uVar4 & 4) == 0) || (pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0)" (parenthesized_expression "((uVar4 & 4) == 0)" ( (binary_expression "(uVar4 & 4) == 0" (parenthesized_expression "(uVar4 & 4)" ( (binary_expression "uVar4 & 4" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0)" ( (comma_expression "pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0" (assignment_expression "pvVar2 = (void *)FUN_001a4270(param_1)" identifier = (cast_expression "(void *)FUN_001a4270(param_1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001a4270(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) , (binary_expression "pvVar2 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    if ((uVar4 & 0x8000) == 0) {\n      if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }\n      pvVar2 = (void *)FUN_001993e0();\n      FUN_001930a0();\n    }\n    else {\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }\n  }" { (if_statement "if ((uVar4 & 0x8000) == 0) {\n      if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }\n      pvVar2 = (void *)FUN_001993e0();\n      FUN_001930a0();\n    }\n    else {\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }" if (parenthesized_expression "((uVar4 & 0x8000) == 0)" ( (binary_expression "(uVar4 & 0x8000) == 0" (parenthesized_expression "(uVar4 & 0x8000)" ( (binary_expression "uVar4 & 0x8000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }\n      pvVar2 = (void *)FUN_001993e0();\n      FUN_001930a0();\n    }" { (if_statement "if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }" if (parenthesized_expression "(((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0))" ( (binary_expression "((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)" (parenthesized_expression "((uVar4 & 0x10000) != 0)" ( (binary_expression "(uVar4 & 0x10000) != 0" (parenthesized_expression "(uVar4 & 0x10000)" ( (binary_expression "uVar4 & 0x10000" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)" ( (comma_expression "pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0" (assignment_expression "pvVar2 = (void *)FUN_001a9730(param_1,param_2)" identifier = (cast_expression "(void *)FUN_001a9730(param_1,param_2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001a9730(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))))) , (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n        return pvVar2;\n      }" { (return_statement "return pvVar2;" return identifier ;) })) (expression_statement "pvVar2 = (void *)FUN_001993e0();" (assignment_expression "pvVar2 = (void *)FUN_001993e0()" identifier = (cast_expression "(void *)FUN_001993e0()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001993e0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "FUN_001930a0();" (call_expression "FUN_001930a0()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }" else (compound_statement "{\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }" { (expression_statement "pvVar2 = (void *)FUN_00194030(param_1,param_2);" (assignment_expression "pvVar2 = (void *)FUN_00194030(param_1,param_2)" identifier = (cast_expression "(void *)FUN_00194030(param_1,param_2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00194030(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))))) ;) }))) })) (return_statement "return pvVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * cplus_demangle(char *mangled,int options)\n\n{\n  demangling_styles dVar1;\n  char *pcVar2;\n  int iVar3;\n  char ***pppcVar4;\n  work_stuff work [1];\n  \n  if (current_demangling_style == no_demangling) {\n    pcVar2 = xstrdup(mangled);\n    return pcVar2;\n  }\n  pppcVar4 = &work[0].typevec;\n  for (iVar3 = 0x17; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *pppcVar4 = (char **)0x0;\n    pppcVar4 = pppcVar4 + 1;\n  }\n  if ((options & 0x3ff04U) == 0) {\n    work[0].options =\n         current_demangling_style &\n         (rust_demangling|dlang_demangling|gnat_demangling|gnu_v3_demangling|edg_demangling|\n          hp_demangling|arm_demangling|lucid_demangling|gnu_demangling|auto_demangling|\n         java_demangling) | options;\n    dVar1 = work[0].options & (rust_demangling|gnu_v3_demangling|auto_demangling);\n  }\n  else {\n    dVar1 = options & (rust_demangling|gnu_v3_demangling|auto_demangling);\n    work[0].options = options;\n  }\n  if (dVar1 != unknown_demangling) {\n    pcVar2 = cplus_demangle_v3(mangled,work[0].options);\n    if ((work[0].options & 0x4000U) != 0) {\n      return pcVar2;\n    }\n    if (pcVar2 != (char *)0x0) {\n      iVar3 = rust_is_mangled(pcVar2);\n      if (iVar3 != 0) {\n        rust_demangle_sym(pcVar2);\n        return pcVar2;\n      }\n      if ((work[0].options & 0x20000U) == 0) {\n        return pcVar2;\n      }\n      free(pcVar2);\n    }\n    if ((work[0].options & 0x20000U) != 0) {\n      return (char *)0x0;\n    }\n  }\n  if (((work[0].options & 4U) == 0) || (pcVar2 = java_demangle_v3(mangled), pcVar2 == (char *)0x0))\n  {\n    if ((work[0].options & 0x8000U) == 0) {\n      if (((work[0].options & 0x10000U) != 0) &&\n         (pcVar2 = dlang_demangle(mangled,options), pcVar2 != (char *)0x0)) {\n        return pcVar2;\n      }\n      pcVar2 = internal_cplus_demangle(work,mangled);\n      squangle_mop_up(work);\n    }\n    else {\n      pcVar2 = ada_demangle(mangled,options);\n    }\n  }\n  return pcVar2;\n}\n\n" comment comment (function_definition "char * cplus_demangle(char *mangled,int options)\n\n{\n  demangling_styles dVar1;\n  char *pcVar2;\n  int iVar3;\n  char ***pppcVar4;\n  work_stuff work [1];\n  \n  if (current_demangling_style == no_demangling) {\n    pcVar2 = xstrdup(mangled);\n    return pcVar2;\n  }\n  pppcVar4 = &work[0].typevec;\n  for (iVar3 = 0x17; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *pppcVar4 = (char **)0x0;\n    pppcVar4 = pppcVar4 + 1;\n  }\n  if ((options & 0x3ff04U) == 0) {\n    work[0].options =\n         current_demangling_style &\n         (rust_demangling|dlang_demangling|gnat_demangling|gnu_v3_demangling|edg_demangling|\n          hp_demangling|arm_demangling|lucid_demangling|gnu_demangling|auto_demangling|\n         java_demangling) | options;\n    dVar1 = work[0].options & (rust_demangling|gnu_v3_demangling|auto_demangling);\n  }\n  else {\n    dVar1 = options & (rust_demangling|gnu_v3_demangling|auto_demangling);\n    work[0].options = options;\n  }\n  if (dVar1 != unknown_demangling) {\n    pcVar2 = cplus_demangle_v3(mangled,work[0].options);\n    if ((work[0].options & 0x4000U) != 0) {\n      return pcVar2;\n    }\n    if (pcVar2 != (char *)0x0) {\n      iVar3 = rust_is_mangled(pcVar2);\n      if (iVar3 != 0) {\n        rust_demangle_sym(pcVar2);\n        return pcVar2;\n      }\n      if ((work[0].options & 0x20000U) == 0) {\n        return pcVar2;\n      }\n      free(pcVar2);\n    }\n    if ((work[0].options & 0x20000U) != 0) {\n      return (char *)0x0;\n    }\n  }\n  if (((work[0].options & 4U) == 0) || (pcVar2 = java_demangle_v3(mangled), pcVar2 == (char *)0x0))\n  {\n    if ((work[0].options & 0x8000U) == 0) {\n      if (((work[0].options & 0x10000U) != 0) &&\n         (pcVar2 = dlang_demangle(mangled,options), pcVar2 != (char *)0x0)) {\n        return pcVar2;\n      }\n      pcVar2 = internal_cplus_demangle(work,mangled);\n      squangle_mop_up(work);\n    }\n    else {\n      pcVar2 = ada_demangle(mangled,options);\n    }\n  }\n  return pcVar2;\n}" primitive_type (pointer_declarator "* cplus_demangle(char *mangled,int options)" * (function_declarator "cplus_demangle(char *mangled,int options)" identifier (parameter_list "(char *mangled,int options)" ( (parameter_declaration "char *mangled" primitive_type (pointer_declarator "*mangled" * identifier)) , (parameter_declaration "int options" primitive_type identifier) )))) (compound_statement "{\n  demangling_styles dVar1;\n  char *pcVar2;\n  int iVar3;\n  char ***pppcVar4;\n  work_stuff work [1];\n  \n  if (current_demangling_style == no_demangling) {\n    pcVar2 = xstrdup(mangled);\n    return pcVar2;\n  }\n  pppcVar4 = &work[0].typevec;\n  for (iVar3 = 0x17; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *pppcVar4 = (char **)0x0;\n    pppcVar4 = pppcVar4 + 1;\n  }\n  if ((options & 0x3ff04U) == 0) {\n    work[0].options =\n         current_demangling_style &\n         (rust_demangling|dlang_demangling|gnat_demangling|gnu_v3_demangling|edg_demangling|\n          hp_demangling|arm_demangling|lucid_demangling|gnu_demangling|auto_demangling|\n         java_demangling) | options;\n    dVar1 = work[0].options & (rust_demangling|gnu_v3_demangling|auto_demangling);\n  }\n  else {\n    dVar1 = options & (rust_demangling|gnu_v3_demangling|auto_demangling);\n    work[0].options = options;\n  }\n  if (dVar1 != unknown_demangling) {\n    pcVar2 = cplus_demangle_v3(mangled,work[0].options);\n    if ((work[0].options & 0x4000U) != 0) {\n      return pcVar2;\n    }\n    if (pcVar2 != (char *)0x0) {\n      iVar3 = rust_is_mangled(pcVar2);\n      if (iVar3 != 0) {\n        rust_demangle_sym(pcVar2);\n        return pcVar2;\n      }\n      if ((work[0].options & 0x20000U) == 0) {\n        return pcVar2;\n      }\n      free(pcVar2);\n    }\n    if ((work[0].options & 0x20000U) != 0) {\n      return (char *)0x0;\n    }\n  }\n  if (((work[0].options & 4U) == 0) || (pcVar2 = java_demangle_v3(mangled), pcVar2 == (char *)0x0))\n  {\n    if ((work[0].options & 0x8000U) == 0) {\n      if (((work[0].options & 0x10000U) != 0) &&\n         (pcVar2 = dlang_demangle(mangled,options), pcVar2 != (char *)0x0)) {\n        return pcVar2;\n      }\n      pcVar2 = internal_cplus_demangle(work,mangled);\n      squangle_mop_up(work);\n    }\n    else {\n      pcVar2 = ada_demangle(mangled,options);\n    }\n  }\n  return pcVar2;\n}" { (declaration "demangling_styles dVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char ***pppcVar4;" primitive_type (pointer_declarator "***pppcVar4" * (pointer_declarator "**pppcVar4" * (pointer_declarator "*pppcVar4" * identifier))) ;) (declaration "work_stuff work [1];" type_identifier (array_declarator "work [1]" identifier [ number_literal ]) ;) (if_statement "if (current_demangling_style == no_demangling) {\n    pcVar2 = xstrdup(mangled);\n    return pcVar2;\n  }" if (parenthesized_expression "(current_demangling_style == no_demangling)" ( (binary_expression "current_demangling_style == no_demangling" identifier == identifier) )) (compound_statement "{\n    pcVar2 = xstrdup(mangled);\n    return pcVar2;\n  }" { (expression_statement "pcVar2 = xstrdup(mangled);" (assignment_expression "pcVar2 = xstrdup(mangled)" identifier = (call_expression "xstrdup(mangled)" identifier (argument_list "(mangled)" ( identifier )))) ;) (return_statement "return pcVar2;" return identifier ;) })) (expression_statement "pppcVar4 = &work[0].typevec;" (assignment_expression "pppcVar4 = &work[0].typevec" identifier = (pointer_expression "&work[0].typevec" & (field_expression "work[0].typevec" (subscript_expression "work[0]" identifier [ number_literal ]) . field_identifier))) ;) (for_statement "for (iVar3 = 0x17; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *pppcVar4 = (char **)0x0;\n    pppcVar4 = pppcVar4 + 1;\n  }" for ( (assignment_expression "iVar3 = 0x17" identifier = number_literal) ; (binary_expression "iVar3 != 0" identifier != number_literal) ; (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n    *pppcVar4 = (char **)0x0;\n    pppcVar4 = pppcVar4 + 1;\n  }" { (expression_statement "*pppcVar4 = (char **)0x0;" (assignment_expression "*pppcVar4 = (char **)0x0" (pointer_expression "*pppcVar4" * identifier) = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "pppcVar4 = pppcVar4 + 1;" (assignment_expression "pppcVar4 = pppcVar4 + 1" identifier = (binary_expression "pppcVar4 + 1" identifier + number_literal)) ;) })) (if_statement "if ((options & 0x3ff04U) == 0) {\n    work[0].options =\n         current_demangling_style &\n         (rust_demangling|dlang_demangling|gnat_demangling|gnu_v3_demangling|edg_demangling|\n          hp_demangling|arm_demangling|lucid_demangling|gnu_demangling|auto_demangling|\n         java_demangling) | options;\n    dVar1 = work[0].options & (rust_demangling|gnu_v3_demangling|auto_demangling);\n  }\n  else {\n    dVar1 = options & (rust_demangling|gnu_v3_demangling|auto_demangling);\n    work[0].options = options;\n  }" if (parenthesized_expression "((options & 0x3ff04U) == 0)" ( (binary_expression "(options & 0x3ff04U) == 0" (parenthesized_expression "(options & 0x3ff04U)" ( (binary_expression "options & 0x3ff04U" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    work[0].options =\n         current_demangling_style &\n         (rust_demangling|dlang_demangling|gnat_demangling|gnu_v3_demangling|edg_demangling|\n          hp_demangling|arm_demangling|lucid_demangling|gnu_demangling|auto_demangling|\n         java_demangling) | options;\n    dVar1 = work[0].options & (rust_demangling|gnu_v3_demangling|auto_demangling);\n  }" { (expression_statement "work[0].options =\n         current_demangling_style &\n         (rust_demangling|dlang_demangling|gnat_demangling|gnu_v3_demangling|edg_demangling|\n          hp_demangling|arm_demangling|lucid_demangling|gnu_demangling|auto_demangling|\n         java_demangling) | options;" (assignment_expression "work[0].options =\n         current_demangling_style &\n         (rust_demangling|dlang_demangling|gnat_demangling|gnu_v3_demangling|edg_demangling|\n          hp_demangling|arm_demangling|lucid_demangling|gnu_demangling|auto_demangling|\n         java_demangling) | options" (field_expression "work[0].options" (subscript_expression "work[0]" identifier [ number_literal ]) . field_identifier) = (binary_expression "current_demangling_style &\n         (rust_demangling|dlang_demangling|gnat_demangling|gnu_v3_demangling|edg_demangling|\n          hp_demangling|arm_demangling|lucid_demangling|gnu_demangling|auto_demangling|\n         java_demangling) | options" (binary_expression "current_demangling_style &\n         (rust_demangling|dlang_demangling|gnat_demangling|gnu_v3_demangling|edg_demangling|\n          hp_demangling|arm_demangling|lucid_demangling|gnu_demangling|auto_demangling|\n         java_demangling)" identifier & (parenthesized_expression "(rust_demangling|dlang_demangling|gnat_demangling|gnu_v3_demangling|edg_demangling|\n          hp_demangling|arm_demangling|lucid_demangling|gnu_demangling|auto_demangling|\n         java_demangling)" ( (binary_expression "rust_demangling|dlang_demangling|gnat_demangling|gnu_v3_demangling|edg_demangling|\n          hp_demangling|arm_demangling|lucid_demangling|gnu_demangling|auto_demangling|\n         java_demangling" (binary_expression "rust_demangling|dlang_demangling|gnat_demangling|gnu_v3_demangling|edg_demangling|\n          hp_demangling|arm_demangling|lucid_demangling|gnu_demangling|auto_demangling" (binary_expression "rust_demangling|dlang_demangling|gnat_demangling|gnu_v3_demangling|edg_demangling|\n          hp_demangling|arm_demangling|lucid_demangling|gnu_demangling" (binary_expression "rust_demangling|dlang_demangling|gnat_demangling|gnu_v3_demangling|edg_demangling|\n          hp_demangling|arm_demangling|lucid_demangling" (binary_expression "rust_demangling|dlang_demangling|gnat_demangling|gnu_v3_demangling|edg_demangling|\n          hp_demangling|arm_demangling" (binary_expression "rust_demangling|dlang_demangling|gnat_demangling|gnu_v3_demangling|edg_demangling|\n          hp_demangling" (binary_expression "rust_demangling|dlang_demangling|gnat_demangling|gnu_v3_demangling|edg_demangling" (binary_expression "rust_demangling|dlang_demangling|gnat_demangling|gnu_v3_demangling" (binary_expression "rust_demangling|dlang_demangling|gnat_demangling" (binary_expression "rust_demangling|dlang_demangling" identifier | identifier) | identifier) | identifier) | identifier) | identifier) | identifier) | identifier) | identifier) | identifier) | identifier) ))) | identifier)) ;) (expression_statement "dVar1 = work[0].options & (rust_demangling|gnu_v3_demangling|auto_demangling);" (assignment_expression "dVar1 = work[0].options & (rust_demangling|gnu_v3_demangling|auto_demangling)" identifier = (binary_expression "work[0].options & (rust_demangling|gnu_v3_demangling|auto_demangling)" (field_expression "work[0].options" (subscript_expression "work[0]" identifier [ number_literal ]) . field_identifier) & (parenthesized_expression "(rust_demangling|gnu_v3_demangling|auto_demangling)" ( (binary_expression "rust_demangling|gnu_v3_demangling|auto_demangling" (binary_expression "rust_demangling|gnu_v3_demangling" identifier | identifier) | identifier) )))) ;) }) (else_clause "else {\n    dVar1 = options & (rust_demangling|gnu_v3_demangling|auto_demangling);\n    work[0].options = options;\n  }" else (compound_statement "{\n    dVar1 = options & (rust_demangling|gnu_v3_demangling|auto_demangling);\n    work[0].options = options;\n  }" { (expression_statement "dVar1 = options & (rust_demangling|gnu_v3_demangling|auto_demangling);" (assignment_expression "dVar1 = options & (rust_demangling|gnu_v3_demangling|auto_demangling)" identifier = (binary_expression "options & (rust_demangling|gnu_v3_demangling|auto_demangling)" identifier & (parenthesized_expression "(rust_demangling|gnu_v3_demangling|auto_demangling)" ( (binary_expression "rust_demangling|gnu_v3_demangling|auto_demangling" (binary_expression "rust_demangling|gnu_v3_demangling" identifier | identifier) | identifier) )))) ;) (expression_statement "work[0].options = options;" (assignment_expression "work[0].options = options" (field_expression "work[0].options" (subscript_expression "work[0]" identifier [ number_literal ]) . field_identifier) = identifier) ;) }))) (if_statement "if (dVar1 != unknown_demangling) {\n    pcVar2 = cplus_demangle_v3(mangled,work[0].options);\n    if ((work[0].options & 0x4000U) != 0) {\n      return pcVar2;\n    }\n    if (pcVar2 != (char *)0x0) {\n      iVar3 = rust_is_mangled(pcVar2);\n      if (iVar3 != 0) {\n        rust_demangle_sym(pcVar2);\n        return pcVar2;\n      }\n      if ((work[0].options & 0x20000U) == 0) {\n        return pcVar2;\n      }\n      free(pcVar2);\n    }\n    if ((work[0].options & 0x20000U) != 0) {\n      return (char *)0x0;\n    }\n  }" if (parenthesized_expression "(dVar1 != unknown_demangling)" ( (binary_expression "dVar1 != unknown_demangling" identifier != identifier) )) (compound_statement "{\n    pcVar2 = cplus_demangle_v3(mangled,work[0].options);\n    if ((work[0].options & 0x4000U) != 0) {\n      return pcVar2;\n    }\n    if (pcVar2 != (char *)0x0) {\n      iVar3 = rust_is_mangled(pcVar2);\n      if (iVar3 != 0) {\n        rust_demangle_sym(pcVar2);\n        return pcVar2;\n      }\n      if ((work[0].options & 0x20000U) == 0) {\n        return pcVar2;\n      }\n      free(pcVar2);\n    }\n    if ((work[0].options & 0x20000U) != 0) {\n      return (char *)0x0;\n    }\n  }" { (expression_statement "pcVar2 = cplus_demangle_v3(mangled,work[0].options);" (assignment_expression "pcVar2 = cplus_demangle_v3(mangled,work[0].options)" identifier = (call_expression "cplus_demangle_v3(mangled,work[0].options)" identifier (argument_list "(mangled,work[0].options)" ( identifier , (field_expression "work[0].options" (subscript_expression "work[0]" identifier [ number_literal ]) . field_identifier) )))) ;) (if_statement "if ((work[0].options & 0x4000U) != 0) {\n      return pcVar2;\n    }" if (parenthesized_expression "((work[0].options & 0x4000U) != 0)" ( (binary_expression "(work[0].options & 0x4000U) != 0" (parenthesized_expression "(work[0].options & 0x4000U)" ( (binary_expression "work[0].options & 0x4000U" (field_expression "work[0].options" (subscript_expression "work[0]" identifier [ number_literal ]) . field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      return pcVar2;\n    }" { (return_statement "return pcVar2;" return identifier ;) })) (if_statement "if (pcVar2 != (char *)0x0) {\n      iVar3 = rust_is_mangled(pcVar2);\n      if (iVar3 != 0) {\n        rust_demangle_sym(pcVar2);\n        return pcVar2;\n      }\n      if ((work[0].options & 0x20000U) == 0) {\n        return pcVar2;\n      }\n      free(pcVar2);\n    }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar3 = rust_is_mangled(pcVar2);\n      if (iVar3 != 0) {\n        rust_demangle_sym(pcVar2);\n        return pcVar2;\n      }\n      if ((work[0].options & 0x20000U) == 0) {\n        return pcVar2;\n      }\n      free(pcVar2);\n    }" { (expression_statement "iVar3 = rust_is_mangled(pcVar2);" (assignment_expression "iVar3 = rust_is_mangled(pcVar2)" identifier = (call_expression "rust_is_mangled(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (if_statement "if (iVar3 != 0) {\n        rust_demangle_sym(pcVar2);\n        return pcVar2;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        rust_demangle_sym(pcVar2);\n        return pcVar2;\n      }" { (expression_statement "rust_demangle_sym(pcVar2);" (call_expression "rust_demangle_sym(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (return_statement "return pcVar2;" return identifier ;) })) (if_statement "if ((work[0].options & 0x20000U) == 0) {\n        return pcVar2;\n      }" if (parenthesized_expression "((work[0].options & 0x20000U) == 0)" ( (binary_expression "(work[0].options & 0x20000U) == 0" (parenthesized_expression "(work[0].options & 0x20000U)" ( (binary_expression "work[0].options & 0x20000U" (field_expression "work[0].options" (subscript_expression "work[0]" identifier [ number_literal ]) . field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n        return pcVar2;\n      }" { (return_statement "return pcVar2;" return identifier ;) })) (expression_statement "free(pcVar2);" (call_expression "free(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) })) (if_statement "if ((work[0].options & 0x20000U) != 0) {\n      return (char *)0x0;\n    }" if (parenthesized_expression "((work[0].options & 0x20000U) != 0)" ( (binary_expression "(work[0].options & 0x20000U) != 0" (parenthesized_expression "(work[0].options & 0x20000U)" ( (binary_expression "work[0].options & 0x20000U" (field_expression "work[0].options" (subscript_expression "work[0]" identifier [ number_literal ]) . field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      return (char *)0x0;\n    }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (if_statement "if (((work[0].options & 4U) == 0) || (pcVar2 = java_demangle_v3(mangled), pcVar2 == (char *)0x0))\n  {\n    if ((work[0].options & 0x8000U) == 0) {\n      if (((work[0].options & 0x10000U) != 0) &&\n         (pcVar2 = dlang_demangle(mangled,options), pcVar2 != (char *)0x0)) {\n        return pcVar2;\n      }\n      pcVar2 = internal_cplus_demangle(work,mangled);\n      squangle_mop_up(work);\n    }\n    else {\n      pcVar2 = ada_demangle(mangled,options);\n    }\n  }" if (parenthesized_expression "(((work[0].options & 4U) == 0) || (pcVar2 = java_demangle_v3(mangled), pcVar2 == (char *)0x0))" ( (binary_expression "((work[0].options & 4U) == 0) || (pcVar2 = java_demangle_v3(mangled), pcVar2 == (char *)0x0)" (parenthesized_expression "((work[0].options & 4U) == 0)" ( (binary_expression "(work[0].options & 4U) == 0" (parenthesized_expression "(work[0].options & 4U)" ( (binary_expression "work[0].options & 4U" (field_expression "work[0].options" (subscript_expression "work[0]" identifier [ number_literal ]) . field_identifier) & number_literal) )) == number_literal) )) || (parenthesized_expression "(pcVar2 = java_demangle_v3(mangled), pcVar2 == (char *)0x0)" ( (comma_expression "pcVar2 = java_demangle_v3(mangled), pcVar2 == (char *)0x0" (assignment_expression "pcVar2 = java_demangle_v3(mangled)" identifier = (call_expression "java_demangle_v3(mangled)" identifier (argument_list "(mangled)" ( identifier )))) , (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    if ((work[0].options & 0x8000U) == 0) {\n      if (((work[0].options & 0x10000U) != 0) &&\n         (pcVar2 = dlang_demangle(mangled,options), pcVar2 != (char *)0x0)) {\n        return pcVar2;\n      }\n      pcVar2 = internal_cplus_demangle(work,mangled);\n      squangle_mop_up(work);\n    }\n    else {\n      pcVar2 = ada_demangle(mangled,options);\n    }\n  }" { (if_statement "if ((work[0].options & 0x8000U) == 0) {\n      if (((work[0].options & 0x10000U) != 0) &&\n         (pcVar2 = dlang_demangle(mangled,options), pcVar2 != (char *)0x0)) {\n        return pcVar2;\n      }\n      pcVar2 = internal_cplus_demangle(work,mangled);\n      squangle_mop_up(work);\n    }\n    else {\n      pcVar2 = ada_demangle(mangled,options);\n    }" if (parenthesized_expression "((work[0].options & 0x8000U) == 0)" ( (binary_expression "(work[0].options & 0x8000U) == 0" (parenthesized_expression "(work[0].options & 0x8000U)" ( (binary_expression "work[0].options & 0x8000U" (field_expression "work[0].options" (subscript_expression "work[0]" identifier [ number_literal ]) . field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      if (((work[0].options & 0x10000U) != 0) &&\n         (pcVar2 = dlang_demangle(mangled,options), pcVar2 != (char *)0x0)) {\n        return pcVar2;\n      }\n      pcVar2 = internal_cplus_demangle(work,mangled);\n      squangle_mop_up(work);\n    }" { (if_statement "if (((work[0].options & 0x10000U) != 0) &&\n         (pcVar2 = dlang_demangle(mangled,options), pcVar2 != (char *)0x0)) {\n        return pcVar2;\n      }" if (parenthesized_expression "(((work[0].options & 0x10000U) != 0) &&\n         (pcVar2 = dlang_demangle(mangled,options), pcVar2 != (char *)0x0))" ( (binary_expression "((work[0].options & 0x10000U) != 0) &&\n         (pcVar2 = dlang_demangle(mangled,options), pcVar2 != (char *)0x0)" (parenthesized_expression "((work[0].options & 0x10000U) != 0)" ( (binary_expression "(work[0].options & 0x10000U) != 0" (parenthesized_expression "(work[0].options & 0x10000U)" ( (binary_expression "work[0].options & 0x10000U" (field_expression "work[0].options" (subscript_expression "work[0]" identifier [ number_literal ]) . field_identifier) & number_literal) )) != number_literal) )) && (parenthesized_expression "(pcVar2 = dlang_demangle(mangled,options), pcVar2 != (char *)0x0)" ( (comma_expression "pcVar2 = dlang_demangle(mangled,options), pcVar2 != (char *)0x0" (assignment_expression "pcVar2 = dlang_demangle(mangled,options)" identifier = (call_expression "dlang_demangle(mangled,options)" identifier (argument_list "(mangled,options)" ( identifier , identifier )))) , (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n        return pcVar2;\n      }" { (return_statement "return pcVar2;" return identifier ;) })) (expression_statement "pcVar2 = internal_cplus_demangle(work,mangled);" (assignment_expression "pcVar2 = internal_cplus_demangle(work,mangled)" identifier = (call_expression "internal_cplus_demangle(work,mangled)" identifier (argument_list "(work,mangled)" ( identifier , identifier )))) ;) (expression_statement "squangle_mop_up(work);" (call_expression "squangle_mop_up(work)" identifier (argument_list "(work)" ( identifier ))) ;) }) (else_clause "else {\n      pcVar2 = ada_demangle(mangled,options);\n    }" else (compound_statement "{\n      pcVar2 = ada_demangle(mangled,options);\n    }" { (expression_statement "pcVar2 = ada_demangle(mangled,options);" (assignment_expression "pcVar2 = ada_demangle(mangled,options)" identifier = (call_expression "ada_demangle(mangled,options)" identifier (argument_list "(mangled,options)" ( identifier , identifier )))) ;) }))) })) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "void * FUN_001945b0(undefined4 param_1,uint param_2)\n\n{\n  uint uVar1;\n  void *pvVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  undefined4 local_78 [25];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1945b9;\n  if (DAT_0033f2f8 == 0xffffffff) {\n    pvVar2 = (void *)FUN_001aa4d0(param_1);\n    return pvVar2;\n  }\n  puVar5 = local_78;\n  for (iVar3 = 0x17; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }\n  if ((param_2 & 0x3ff04) == 0) {\n    uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2;\n    uVar1 = uVar4 & 0x24100;\n  }\n  else {\n    uVar1 = param_2 & 0x24100;\n    uVar4 = param_2;\n  }\n  if (uVar1 != 0) {\n    pvVar2 = (void *)FUN_001a4230(param_1,uVar4);\n    if ((uVar4 & 0x4000) != 0) {\n      return pvVar2;\n    }\n    if (pvVar2 != (void *)0x0) {\n      iVar3 = FUN_001a9ae0(pvVar2);\n      if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }\n      if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }\n      free(pvVar2);\n    }\n    if ((uVar4 & 0x20000) != 0) {\n      return (void *)0x0;\n    }\n  }\n  if (((uVar4 & 4) == 0) || (pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0)) {\n    if ((uVar4 & 0x8000) == 0) {\n      if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }\n      pvVar2 = (void *)FUN_001993e0();\n      FUN_001930a0();\n    }\n    else {\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }\n  }\n  return pvVar2;\n}\n\n" (function_definition "void * FUN_001945b0(undefined4 param_1,uint param_2)\n\n{\n  uint uVar1;\n  void *pvVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  undefined4 local_78 [25];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1945b9;\n  if (DAT_0033f2f8 == 0xffffffff) {\n    pvVar2 = (void *)FUN_001aa4d0(param_1);\n    return pvVar2;\n  }\n  puVar5 = local_78;\n  for (iVar3 = 0x17; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }\n  if ((param_2 & 0x3ff04) == 0) {\n    uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2;\n    uVar1 = uVar4 & 0x24100;\n  }\n  else {\n    uVar1 = param_2 & 0x24100;\n    uVar4 = param_2;\n  }\n  if (uVar1 != 0) {\n    pvVar2 = (void *)FUN_001a4230(param_1,uVar4);\n    if ((uVar4 & 0x4000) != 0) {\n      return pvVar2;\n    }\n    if (pvVar2 != (void *)0x0) {\n      iVar3 = FUN_001a9ae0(pvVar2);\n      if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }\n      if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }\n      free(pvVar2);\n    }\n    if ((uVar4 & 0x20000) != 0) {\n      return (void *)0x0;\n    }\n  }\n  if (((uVar4 & 4) == 0) || (pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0)) {\n    if ((uVar4 & 0x8000) == 0) {\n      if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }\n      pvVar2 = (void *)FUN_001993e0();\n      FUN_001930a0();\n    }\n    else {\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }\n  }\n  return pvVar2;\n}" primitive_type (pointer_declarator "* FUN_001945b0(undefined4 param_1,uint param_2)" * (function_declarator "FUN_001945b0(undefined4 param_1,uint param_2)" identifier (parameter_list "(undefined4 param_1,uint param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) )))) (compound_statement "{\n  uint uVar1;\n  void *pvVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  undefined4 local_78 [25];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1945b9;\n  if (DAT_0033f2f8 == 0xffffffff) {\n    pvVar2 = (void *)FUN_001aa4d0(param_1);\n    return pvVar2;\n  }\n  puVar5 = local_78;\n  for (iVar3 = 0x17; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }\n  if ((param_2 & 0x3ff04) == 0) {\n    uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2;\n    uVar1 = uVar4 & 0x24100;\n  }\n  else {\n    uVar1 = param_2 & 0x24100;\n    uVar4 = param_2;\n  }\n  if (uVar1 != 0) {\n    pvVar2 = (void *)FUN_001a4230(param_1,uVar4);\n    if ((uVar4 & 0x4000) != 0) {\n      return pvVar2;\n    }\n    if (pvVar2 != (void *)0x0) {\n      iVar3 = FUN_001a9ae0(pvVar2);\n      if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }\n      if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }\n      free(pvVar2);\n    }\n    if ((uVar4 & 0x20000) != 0) {\n      return (void *)0x0;\n    }\n  }\n  if (((uVar4 & 4) == 0) || (pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0)) {\n    if ((uVar4 & 0x8000) == 0) {\n      if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }\n      pvVar2 = (void *)FUN_001993e0();\n      FUN_001930a0();\n    }\n    else {\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }\n  }\n  return pvVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 local_78 [25];" type_identifier (array_declarator "local_78 [25]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1945b9;" (assignment_expression "uStack_14 = 0x1945b9" identifier = number_literal) ;) (if_statement "if (DAT_0033f2f8 == 0xffffffff) {\n    pvVar2 = (void *)FUN_001aa4d0(param_1);\n    return pvVar2;\n  }" if (parenthesized_expression "(DAT_0033f2f8 == 0xffffffff)" ( (binary_expression "DAT_0033f2f8 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n    pvVar2 = (void *)FUN_001aa4d0(param_1);\n    return pvVar2;\n  }" { (expression_statement "pvVar2 = (void *)FUN_001aa4d0(param_1);" (assignment_expression "pvVar2 = (void *)FUN_001aa4d0(param_1)" identifier = (cast_expression "(void *)FUN_001aa4d0(param_1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001aa4d0(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (return_statement "return pvVar2;" return identifier ;) })) (expression_statement "puVar5 = local_78;" (assignment_expression "puVar5 = local_78" identifier = identifier) ;) (for_statement "for (iVar3 = 0x17; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }" for ( (assignment_expression "iVar3 = 0x17" identifier = number_literal) ; (binary_expression "iVar3 != 0" identifier != number_literal) ; (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }" { (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) })) (if_statement "if ((param_2 & 0x3ff04) == 0) {\n    uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2;\n    uVar1 = uVar4 & 0x24100;\n  }\n  else {\n    uVar1 = param_2 & 0x24100;\n    uVar4 = param_2;\n  }" if (parenthesized_expression "((param_2 & 0x3ff04) == 0)" ( (binary_expression "(param_2 & 0x3ff04) == 0" (parenthesized_expression "(param_2 & 0x3ff04)" ( (binary_expression "param_2 & 0x3ff04" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2;\n    uVar1 = uVar4 & 0x24100;\n  }" { (expression_statement "uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2;" (assignment_expression "uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2" identifier = (binary_expression "DAT_0033f2f8 & 0x3ff04 | param_2" (binary_expression "DAT_0033f2f8 & 0x3ff04" identifier & number_literal) | identifier)) ;) (expression_statement "uVar1 = uVar4 & 0x24100;" (assignment_expression "uVar1 = uVar4 & 0x24100" identifier = (binary_expression "uVar4 & 0x24100" identifier & number_literal)) ;) }) (else_clause "else {\n    uVar1 = param_2 & 0x24100;\n    uVar4 = param_2;\n  }" else (compound_statement "{\n    uVar1 = param_2 & 0x24100;\n    uVar4 = param_2;\n  }" { (expression_statement "uVar1 = param_2 & 0x24100;" (assignment_expression "uVar1 = param_2 & 0x24100" identifier = (binary_expression "param_2 & 0x24100" identifier & number_literal)) ;) (expression_statement "uVar4 = param_2;" (assignment_expression "uVar4 = param_2" identifier = identifier) ;) }))) (if_statement "if (uVar1 != 0) {\n    pvVar2 = (void *)FUN_001a4230(param_1,uVar4);\n    if ((uVar4 & 0x4000) != 0) {\n      return pvVar2;\n    }\n    if (pvVar2 != (void *)0x0) {\n      iVar3 = FUN_001a9ae0(pvVar2);\n      if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }\n      if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }\n      free(pvVar2);\n    }\n    if ((uVar4 & 0x20000) != 0) {\n      return (void *)0x0;\n    }\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    pvVar2 = (void *)FUN_001a4230(param_1,uVar4);\n    if ((uVar4 & 0x4000) != 0) {\n      return pvVar2;\n    }\n    if (pvVar2 != (void *)0x0) {\n      iVar3 = FUN_001a9ae0(pvVar2);\n      if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }\n      if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }\n      free(pvVar2);\n    }\n    if ((uVar4 & 0x20000) != 0) {\n      return (void *)0x0;\n    }\n  }" { (expression_statement "pvVar2 = (void *)FUN_001a4230(param_1,uVar4);" (assignment_expression "pvVar2 = (void *)FUN_001a4230(param_1,uVar4)" identifier = (cast_expression "(void *)FUN_001a4230(param_1,uVar4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001a4230(param_1,uVar4)" identifier (argument_list "(param_1,uVar4)" ( identifier , identifier ))))) ;) (if_statement "if ((uVar4 & 0x4000) != 0) {\n      return pvVar2;\n    }" if (parenthesized_expression "((uVar4 & 0x4000) != 0)" ( (binary_expression "(uVar4 & 0x4000) != 0" (parenthesized_expression "(uVar4 & 0x4000)" ( (binary_expression "uVar4 & 0x4000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      return pvVar2;\n    }" { (return_statement "return pvVar2;" return identifier ;) })) (if_statement "if (pvVar2 != (void *)0x0) {\n      iVar3 = FUN_001a9ae0(pvVar2);\n      if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }\n      if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }\n      free(pvVar2);\n    }" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar3 = FUN_001a9ae0(pvVar2);\n      if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }\n      if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }\n      free(pvVar2);\n    }" { (expression_statement "iVar3 = FUN_001a9ae0(pvVar2);" (assignment_expression "iVar3 = FUN_001a9ae0(pvVar2)" identifier = (call_expression "FUN_001a9ae0(pvVar2)" identifier (argument_list "(pvVar2)" ( identifier )))) ;) (if_statement "if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }" { (expression_statement "FUN_001a9ea0(pvVar2);" (call_expression "FUN_001a9ea0(pvVar2)" identifier (argument_list "(pvVar2)" ( identifier ))) ;) (return_statement "return pvVar2;" return identifier ;) })) (if_statement "if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }" if (parenthesized_expression "((uVar4 & 0x20000) == 0)" ( (binary_expression "(uVar4 & 0x20000) == 0" (parenthesized_expression "(uVar4 & 0x20000)" ( (binary_expression "uVar4 & 0x20000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        return pvVar2;\n      }" { (return_statement "return pvVar2;" return identifier ;) })) (expression_statement "free(pvVar2);" (call_expression "free(pvVar2)" identifier (argument_list "(pvVar2)" ( identifier ))) ;) })) (if_statement "if ((uVar4 & 0x20000) != 0) {\n      return (void *)0x0;\n    }" if (parenthesized_expression "((uVar4 & 0x20000) != 0)" ( (binary_expression "(uVar4 & 0x20000) != 0" (parenthesized_expression "(uVar4 & 0x20000)" ( (binary_expression "uVar4 & 0x20000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      return (void *)0x0;\n    }" { (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (if_statement "if (((uVar4 & 4) == 0) || (pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0)) {\n    if ((uVar4 & 0x8000) == 0) {\n      if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }\n      pvVar2 = (void *)FUN_001993e0();\n      FUN_001930a0();\n    }\n    else {\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }\n  }" if (parenthesized_expression "(((uVar4 & 4) == 0) || (pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0))" ( (binary_expression "((uVar4 & 4) == 0) || (pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0)" (parenthesized_expression "((uVar4 & 4) == 0)" ( (binary_expression "(uVar4 & 4) == 0" (parenthesized_expression "(uVar4 & 4)" ( (binary_expression "uVar4 & 4" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0)" ( (comma_expression "pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0" (assignment_expression "pvVar2 = (void *)FUN_001a4270(param_1)" identifier = (cast_expression "(void *)FUN_001a4270(param_1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001a4270(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) , (binary_expression "pvVar2 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    if ((uVar4 & 0x8000) == 0) {\n      if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }\n      pvVar2 = (void *)FUN_001993e0();\n      FUN_001930a0();\n    }\n    else {\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }\n  }" { (if_statement "if ((uVar4 & 0x8000) == 0) {\n      if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }\n      pvVar2 = (void *)FUN_001993e0();\n      FUN_001930a0();\n    }\n    else {\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }" if (parenthesized_expression "((uVar4 & 0x8000) == 0)" ( (binary_expression "(uVar4 & 0x8000) == 0" (parenthesized_expression "(uVar4 & 0x8000)" ( (binary_expression "uVar4 & 0x8000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }\n      pvVar2 = (void *)FUN_001993e0();\n      FUN_001930a0();\n    }" { (if_statement "if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }" if (parenthesized_expression "(((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0))" ( (binary_expression "((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)" (parenthesized_expression "((uVar4 & 0x10000) != 0)" ( (binary_expression "(uVar4 & 0x10000) != 0" (parenthesized_expression "(uVar4 & 0x10000)" ( (binary_expression "uVar4 & 0x10000" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)" ( (comma_expression "pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0" (assignment_expression "pvVar2 = (void *)FUN_001a9730(param_1,param_2)" identifier = (cast_expression "(void *)FUN_001a9730(param_1,param_2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001a9730(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))))) , (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n        return pvVar2;\n      }" { (return_statement "return pvVar2;" return identifier ;) })) (expression_statement "pvVar2 = (void *)FUN_001993e0();" (assignment_expression "pvVar2 = (void *)FUN_001993e0()" identifier = (cast_expression "(void *)FUN_001993e0()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001993e0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "FUN_001930a0();" (call_expression "FUN_001930a0()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }" else (compound_statement "{\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }" { (expression_statement "pvVar2 = (void *)FUN_00194030(param_1,param_2);" (assignment_expression "pvVar2 = (void *)FUN_00194030(param_1,param_2)" identifier = (cast_expression "(void *)FUN_00194030(param_1,param_2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00194030(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))))) ;) }))) })) (return_statement "return pvVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT & LIT) | IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) }))) })) (return_statement return IDENT ;) })))
(function_definition "void * FUN_001945b0(undefined4 param_1,uint param_2)\n\n{\n  uint uVar1;\n  void *pvVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  undefined4 local_78 [25];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1945b9;\n  if (DAT_0033f2f8 == 0xffffffff) {\n    pvVar2 = (void *)FUN_001aa4d0(param_1);\n    return pvVar2;\n  }\n  puVar5 = local_78;\n  for (iVar3 = 0x17; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }\n  if ((param_2 & 0x3ff04) == 0) {\n    uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2;\n    uVar1 = uVar4 & 0x24100;\n  }\n  else {\n    uVar1 = param_2 & 0x24100;\n    uVar4 = param_2;\n  }\n  if (uVar1 != 0) {\n    pvVar2 = (void *)FUN_001a4230(param_1,uVar4);\n    if ((uVar4 & 0x4000) != 0) {\n      return pvVar2;\n    }\n    if (pvVar2 != (void *)0x0) {\n      iVar3 = FUN_001a9ae0(pvVar2);\n      if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }\n      if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }\n      free(pvVar2);\n    }\n    if ((uVar4 & 0x20000) != 0) {\n      return (void *)0x0;\n    }\n  }\n  if (((uVar4 & 4) == 0) || (pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0)) {\n    if ((uVar4 & 0x8000) == 0) {\n      if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }\n      pvVar2 = (void *)FUN_001993e0();\n      FUN_001930a0();\n    }\n    else {\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }\n  }\n  return pvVar2;\n}" (primitive_type "void") (pointer_declarator "* FUN_001945b0(undefined4 param_1,uint param_2)" (* "*") (function_declarator "FUN_001945b0(undefined4 param_1,uint param_2)" (identifier "FUN_001945b0") (parameter_list "(undefined4 param_1,uint param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")")))) (compound_statement "{\n  uint uVar1;\n  void *pvVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  undefined4 local_78 [25];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1945b9;\n  if (DAT_0033f2f8 == 0xffffffff) {\n    pvVar2 = (void *)FUN_001aa4d0(param_1);\n    return pvVar2;\n  }\n  puVar5 = local_78;\n  for (iVar3 = 0x17; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }\n  if ((param_2 & 0x3ff04) == 0) {\n    uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2;\n    uVar1 = uVar4 & 0x24100;\n  }\n  else {\n    uVar1 = param_2 & 0x24100;\n    uVar4 = param_2;\n  }\n  if (uVar1 != 0) {\n    pvVar2 = (void *)FUN_001a4230(param_1,uVar4);\n    if ((uVar4 & 0x4000) != 0) {\n      return pvVar2;\n    }\n    if (pvVar2 != (void *)0x0) {\n      iVar3 = FUN_001a9ae0(pvVar2);\n      if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }\n      if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }\n      free(pvVar2);\n    }\n    if ((uVar4 & 0x20000) != 0) {\n      return (void *)0x0;\n    }\n  }\n  if (((uVar4 & 4) == 0) || (pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0)) {\n    if ((uVar4 & 0x8000) == 0) {\n      if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }\n      pvVar2 = (void *)FUN_001993e0();\n      FUN_001930a0();\n    }\n    else {\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }\n  }\n  return pvVar2;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "void *pvVar2;" (primitive_type "void") (pointer_declarator "*pvVar2" (* "*") (identifier "pvVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined4 local_78 [25];" (type_identifier "undefined4") (array_declarator "local_78 [25]" (identifier "local_78") ([ "[") (number_literal "25") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1945b9;" (assignment_expression "uStack_14 = 0x1945b9" (identifier "uStack_14") (= "=") (number_literal "0x1945b9")) (; ";")) (if_statement "if (DAT_0033f2f8 == 0xffffffff) {\n    pvVar2 = (void *)FUN_001aa4d0(param_1);\n    return pvVar2;\n  }" (if "if") (parenthesized_expression "(DAT_0033f2f8 == 0xffffffff)" (( "(") (binary_expression "DAT_0033f2f8 == 0xffffffff" (identifier "DAT_0033f2f8") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n    pvVar2 = (void *)FUN_001aa4d0(param_1);\n    return pvVar2;\n  }" ({ "{") (expression_statement "pvVar2 = (void *)FUN_001aa4d0(param_1);" (assignment_expression "pvVar2 = (void *)FUN_001aa4d0(param_1)" (identifier "pvVar2") (= "=") (cast_expression "(void *)FUN_001aa4d0(param_1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001aa4d0(param_1)" (identifier "FUN_001aa4d0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))))) (; ";")) (return_statement "return pvVar2;" (return "return") (identifier "pvVar2") (; ";")) (} "}"))) (expression_statement "puVar5 = local_78;" (assignment_expression "puVar5 = local_78" (identifier "puVar5") (= "=") (identifier "local_78")) (; ";")) (for_statement "for (iVar3 = 0x17; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }" (for "for") (( "(") (assignment_expression "iVar3 = 0x17" (identifier "iVar3") (= "=") (number_literal "0x17")) (; ";") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }" ({ "{") (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (if_statement "if ((param_2 & 0x3ff04) == 0) {\n    uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2;\n    uVar1 = uVar4 & 0x24100;\n  }\n  else {\n    uVar1 = param_2 & 0x24100;\n    uVar4 = param_2;\n  }" (if "if") (parenthesized_expression "((param_2 & 0x3ff04) == 0)" (( "(") (binary_expression "(param_2 & 0x3ff04) == 0" (parenthesized_expression "(param_2 & 0x3ff04)" (( "(") (binary_expression "param_2 & 0x3ff04" (identifier "param_2") (& "&") (number_literal "0x3ff04")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2;\n    uVar1 = uVar4 & 0x24100;\n  }" ({ "{") (expression_statement "uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2;" (assignment_expression "uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2" (identifier "uVar4") (= "=") (binary_expression "DAT_0033f2f8 & 0x3ff04 | param_2" (binary_expression "DAT_0033f2f8 & 0x3ff04" (identifier "DAT_0033f2f8") (& "&") (number_literal "0x3ff04")) (| "|") (identifier "param_2"))) (; ";")) (expression_statement "uVar1 = uVar4 & 0x24100;" (assignment_expression "uVar1 = uVar4 & 0x24100" (identifier "uVar1") (= "=") (binary_expression "uVar4 & 0x24100" (identifier "uVar4") (& "&") (number_literal "0x24100"))) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = param_2 & 0x24100;\n    uVar4 = param_2;\n  }" (else "else") (compound_statement "{\n    uVar1 = param_2 & 0x24100;\n    uVar4 = param_2;\n  }" ({ "{") (expression_statement "uVar1 = param_2 & 0x24100;" (assignment_expression "uVar1 = param_2 & 0x24100" (identifier "uVar1") (= "=") (binary_expression "param_2 & 0x24100" (identifier "param_2") (& "&") (number_literal "0x24100"))) (; ";")) (expression_statement "uVar4 = param_2;" (assignment_expression "uVar4 = param_2" (identifier "uVar4") (= "=") (identifier "param_2")) (; ";")) (} "}")))) (if_statement "if (uVar1 != 0) {\n    pvVar2 = (void *)FUN_001a4230(param_1,uVar4);\n    if ((uVar4 & 0x4000) != 0) {\n      return pvVar2;\n    }\n    if (pvVar2 != (void *)0x0) {\n      iVar3 = FUN_001a9ae0(pvVar2);\n      if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }\n      if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }\n      free(pvVar2);\n    }\n    if ((uVar4 & 0x20000) != 0) {\n      return (void *)0x0;\n    }\n  }" (if "if") (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    pvVar2 = (void *)FUN_001a4230(param_1,uVar4);\n    if ((uVar4 & 0x4000) != 0) {\n      return pvVar2;\n    }\n    if (pvVar2 != (void *)0x0) {\n      iVar3 = FUN_001a9ae0(pvVar2);\n      if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }\n      if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }\n      free(pvVar2);\n    }\n    if ((uVar4 & 0x20000) != 0) {\n      return (void *)0x0;\n    }\n  }" ({ "{") (expression_statement "pvVar2 = (void *)FUN_001a4230(param_1,uVar4);" (assignment_expression "pvVar2 = (void *)FUN_001a4230(param_1,uVar4)" (identifier "pvVar2") (= "=") (cast_expression "(void *)FUN_001a4230(param_1,uVar4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001a4230(param_1,uVar4)" (identifier "FUN_001a4230") (argument_list "(param_1,uVar4)" (( "(") (identifier "param_1") (, ",") (identifier "uVar4") () ")"))))) (; ";")) (if_statement "if ((uVar4 & 0x4000) != 0) {\n      return pvVar2;\n    }" (if "if") (parenthesized_expression "((uVar4 & 0x4000) != 0)" (( "(") (binary_expression "(uVar4 & 0x4000) != 0" (parenthesized_expression "(uVar4 & 0x4000)" (( "(") (binary_expression "uVar4 & 0x4000" (identifier "uVar4") (& "&") (number_literal "0x4000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return pvVar2;\n    }" ({ "{") (return_statement "return pvVar2;" (return "return") (identifier "pvVar2") (; ";")) (} "}"))) (if_statement "if (pvVar2 != (void *)0x0) {\n      iVar3 = FUN_001a9ae0(pvVar2);\n      if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }\n      if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }\n      free(pvVar2);\n    }" (if "if") (parenthesized_expression "(pvVar2 != (void *)0x0)" (( "(") (binary_expression "pvVar2 != (void *)0x0" (identifier "pvVar2") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar3 = FUN_001a9ae0(pvVar2);\n      if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }\n      if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }\n      free(pvVar2);\n    }" ({ "{") (expression_statement "iVar3 = FUN_001a9ae0(pvVar2);" (assignment_expression "iVar3 = FUN_001a9ae0(pvVar2)" (identifier "iVar3") (= "=") (call_expression "FUN_001a9ae0(pvVar2)" (identifier "FUN_001a9ae0") (argument_list "(pvVar2)" (( "(") (identifier "pvVar2") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_001a9ea0(pvVar2);\n        return pvVar2;\n      }" ({ "{") (expression_statement "FUN_001a9ea0(pvVar2);" (call_expression "FUN_001a9ea0(pvVar2)" (identifier "FUN_001a9ea0") (argument_list "(pvVar2)" (( "(") (identifier "pvVar2") () ")"))) (; ";")) (return_statement "return pvVar2;" (return "return") (identifier "pvVar2") (; ";")) (} "}"))) (if_statement "if ((uVar4 & 0x20000) == 0) {\n        return pvVar2;\n      }" (if "if") (parenthesized_expression "((uVar4 & 0x20000) == 0)" (( "(") (binary_expression "(uVar4 & 0x20000) == 0" (parenthesized_expression "(uVar4 & 0x20000)" (( "(") (binary_expression "uVar4 & 0x20000" (identifier "uVar4") (& "&") (number_literal "0x20000")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return pvVar2;\n      }" ({ "{") (return_statement "return pvVar2;" (return "return") (identifier "pvVar2") (; ";")) (} "}"))) (expression_statement "free(pvVar2);" (call_expression "free(pvVar2)" (identifier "free") (argument_list "(pvVar2)" (( "(") (identifier "pvVar2") () ")"))) (; ";")) (} "}"))) (if_statement "if ((uVar4 & 0x20000) != 0) {\n      return (void *)0x0;\n    }" (if "if") (parenthesized_expression "((uVar4 & 0x20000) != 0)" (( "(") (binary_expression "(uVar4 & 0x20000) != 0" (parenthesized_expression "(uVar4 & 0x20000)" (( "(") (binary_expression "uVar4 & 0x20000" (identifier "uVar4") (& "&") (number_literal "0x20000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return (void *)0x0;\n    }" ({ "{") (return_statement "return (void *)0x0;" (return "return") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (} "}"))) (if_statement "if (((uVar4 & 4) == 0) || (pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0)) {\n    if ((uVar4 & 0x8000) == 0) {\n      if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }\n      pvVar2 = (void *)FUN_001993e0();\n      FUN_001930a0();\n    }\n    else {\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }\n  }" (if "if") (parenthesized_expression "(((uVar4 & 4) == 0) || (pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0))" (( "(") (binary_expression "((uVar4 & 4) == 0) || (pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0)" (parenthesized_expression "((uVar4 & 4) == 0)" (( "(") (binary_expression "(uVar4 & 4) == 0" (parenthesized_expression "(uVar4 & 4)" (( "(") (binary_expression "uVar4 & 4" (identifier "uVar4") (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0)" (( "(") (comma_expression "pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0" (assignment_expression "pvVar2 = (void *)FUN_001a4270(param_1)" (identifier "pvVar2") (= "=") (cast_expression "(void *)FUN_001a4270(param_1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001a4270(param_1)" (identifier "FUN_001a4270") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))))) (, ",") (binary_expression "pvVar2 == (void *)0x0" (identifier "pvVar2") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n    if ((uVar4 & 0x8000) == 0) {\n      if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }\n      pvVar2 = (void *)FUN_001993e0();\n      FUN_001930a0();\n    }\n    else {\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }\n  }" ({ "{") (if_statement "if ((uVar4 & 0x8000) == 0) {\n      if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }\n      pvVar2 = (void *)FUN_001993e0();\n      FUN_001930a0();\n    }\n    else {\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }" (if "if") (parenthesized_expression "((uVar4 & 0x8000) == 0)" (( "(") (binary_expression "(uVar4 & 0x8000) == 0" (parenthesized_expression "(uVar4 & 0x8000)" (( "(") (binary_expression "uVar4 & 0x8000" (identifier "uVar4") (& "&") (number_literal "0x8000")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }\n      pvVar2 = (void *)FUN_001993e0();\n      FUN_001930a0();\n    }" ({ "{") (if_statement "if (((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {\n        return pvVar2;\n      }" (if "if") (parenthesized_expression "(((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0))" (( "(") (binary_expression "((uVar4 & 0x10000) != 0) &&\n         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)" (parenthesized_expression "((uVar4 & 0x10000) != 0)" (( "(") (binary_expression "(uVar4 & 0x10000) != 0" (parenthesized_expression "(uVar4 & 0x10000)" (( "(") (binary_expression "uVar4 & 0x10000" (identifier "uVar4") (& "&") (number_literal "0x10000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)" (( "(") (comma_expression "pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0" (assignment_expression "pvVar2 = (void *)FUN_001a9730(param_1,param_2)" (identifier "pvVar2") (= "=") (cast_expression "(void *)FUN_001a9730(param_1,param_2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001a9730(param_1,param_2)" (identifier "FUN_001a9730") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))))) (, ",") (binary_expression "pvVar2 != (void *)0x0" (identifier "pvVar2") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n        return pvVar2;\n      }" ({ "{") (return_statement "return pvVar2;" (return "return") (identifier "pvVar2") (; ";")) (} "}"))) (expression_statement "pvVar2 = (void *)FUN_001993e0();" (assignment_expression "pvVar2 = (void *)FUN_001993e0()" (identifier "pvVar2") (= "=") (cast_expression "(void *)FUN_001993e0()" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001993e0()" (identifier "FUN_001993e0") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "FUN_001930a0();" (call_expression "FUN_001930a0()" (identifier "FUN_001930a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }" (else "else") (compound_statement "{\n      pvVar2 = (void *)FUN_00194030(param_1,param_2);\n    }" ({ "{") (expression_statement "pvVar2 = (void *)FUN_00194030(param_1,param_2);" (assignment_expression "pvVar2 = (void *)FUN_00194030(param_1,param_2)" (identifier "pvVar2") (= "=") (cast_expression "(void *)FUN_00194030(param_1,param_2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00194030(param_1,param_2)" (identifier "FUN_00194030") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))))) (; ";")) (} "}")))) (} "}"))) (return_statement "return pvVar2;" (return "return") (identifier "pvVar2") (; ";")) (} "}")))

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

char * function_1(char *mangled,int var_6)

{
  type_1 var_18;
  char *var_21;
  int var_4;
  char ***var_5;
  type_2 work [1];
  
  if (var_1 == var_2) {
    var_21 = var_3(mangled);
    return var_21;
  }
  var_5 = &work[0].typevec;
  for (var_4 = 0x17; var_4 != 0; var_4 = var_4 + -1) {
    *var_5 = (char **)0x0;
    var_5 = var_5 + 1;
  }
  if ((var_6 & 0x3ff04U) == 0) {
    work[0].var_6 =
         var_1 &
         (var_7|var_8|var_9|var_10|var_11|
          var_12|var_13|var_14|var_15|var_16|
         var_17) | var_6;
    var_18 = work[0].var_6 & (var_7|var_10|var_16);
  }
  else {
    var_18 = var_6 & (var_7|var_10|var_16);
    work[0].var_6 = var_6;
  }
  if (var_18 != var_19) {
    var_21 = var_20(mangled,work[0].var_6);
    if ((work[0].var_6 & 0x4000U) != 0) {
      return var_21;
    }
    if (var_21 != (char *)0x0) {
      var_4 = var_22(var_21);
      if (var_4 != 0) {
        var_23(var_21);
        return var_21;
      }
      if ((work[0].var_6 & 0x20000U) == 0) {
        return var_21;
      }
      var_24(var_21);
    }
    if ((work[0].var_6 & 0x20000U) != 0) {
      return (char *)0x0;
    }
  }
  if (((work[0].var_6 & 4U) == 0) || (var_21 = var_25(mangled), var_21 == (char *)0x0))
  {
    if ((work[0].var_6 & 0x8000U) == 0) {
      if (((work[0].var_6 & 0x10000U) != 0) &&
         (var_21 = var_26(mangled,var_6), var_21 != (char *)0x0)) {
        return var_21;
      }
      var_21 = var_27(work,mangled);
      var_28(work);
    }
    else {
      var_21 = var_29(mangled,var_6);
    }
  }
  return var_21;
}


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

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

void * MASKED(undefined4 param_1,uint param_2)

{
  uint uVar1;
  void *pvVar2;
  int iVar3;
  uint uVar4;
  undefined4 *puVar5;
  undefined4 local_78 [25];
  undefined4 uStack_14;
  
  uStack_14 = 0x1945b9;
  if (DAT_0033f2f8 == 0xffffffff) {
    pvVar2 = (void *)FUN_001aa4d0(param_1);
    return pvVar2;
  }
  puVar5 = local_78;
  for (iVar3 = 0x17; iVar3 != 0; iVar3 = iVar3 + -1) {
    *puVar5 = 0;
    puVar5 = puVar5 + 1;
  }
  if ((param_2 & 0x3ff04) == 0) {
    uVar4 = DAT_0033f2f8 & 0x3ff04 | param_2;
    uVar1 = uVar4 & 0x24100;
  }
  else {
    uVar1 = param_2 & 0x24100;
    uVar4 = param_2;
  }
  if (uVar1 != 0) {
    pvVar2 = (void *)FUN_001a4230(param_1,uVar4);
    if ((uVar4 & 0x4000) != 0) {
      return pvVar2;
    }
    if (pvVar2 != (void *)0x0) {
      iVar3 = FUN_001a9ae0(pvVar2);
      if (iVar3 != 0) {
        FUN_001a9ea0(pvVar2);
        return pvVar2;
      }
      if ((uVar4 & 0x20000) == 0) {
        return pvVar2;
      }
      free(pvVar2);
    }
    if ((uVar4 & 0x20000) != 0) {
      return (void *)0x0;
    }
  }
  if (((uVar4 & 4) == 0) || (pvVar2 = (void *)FUN_001a4270(param_1), pvVar2 == (void *)0x0)) {
    if ((uVar4 & 0x8000) == 0) {
      if (((uVar4 & 0x10000) != 0) &&
         (pvVar2 = (void *)FUN_001a9730(param_1,param_2), pvVar2 != (void *)0x0)) {
        return pvVar2;
      }
      pvVar2 = (void *)FUN_001993e0();
      FUN_001930a0();
    }
    else {
      pvVar2 = (void *)FUN_00194030(param_1,param_2);
    }
  }
  return pvVar2;
}

