
bfd_boolean
stab_demangle_arg(stab_demangle_info *minfo,char **pp,debug_type_conflict **pargs,uint *pcount,
                 uint *palloc)

{
  char *p;
  bfd_boolean bVar1;
  uint uVar2;
  debug_type_conflict *ppdVar3;
  uint uVar4;
  debug_type type;
  
  p = *pp;
  ppdVar3 = &type;
  if (pargs == (debug_type_conflict **)0x0) {
    ppdVar3 = (debug_type_conflict *)0x0;
  }
  bVar1 = stab_demangle_type(minfo,pp,ppdVar3);
  if ((bVar1 != 0) && (bVar1 = stab_demangle_remember_type(minfo,p,(int)*pp - (int)p), bVar1 != 0))
  {
    if (pargs == (debug_type_conflict **)0x0) {
      return 1;
    }
    if (type != (debug_type)0x0) {
      uVar2 = *pcount;
      ppdVar3 = *pargs;
      uVar4 = uVar2 + 1;
      if (*palloc <= uVar4) {
        uVar2 = *palloc + 10;
        *palloc = uVar2;
        ppdVar3 = (debug_type_conflict *)xrealloc(ppdVar3,(ulong)uVar2 * 8);
        uVar2 = *pcount;
        *pargs = ppdVar3;
        uVar4 = uVar2 + 1;
      }
      ppdVar3[uVar2] = type;
      *pcount = uVar4;
      return 1;
    }
  }
  return 0;
}



undefined8 FUN_00112c00(undefined8 param_1,long *param_2,long *param_3,uint *param_4,uint *param_5)

{
  int iVar1;
  long lVar2;
  uint uVar3;
  long *plVar4;
  uint uVar5;
  long local_40 [2];
  
  lVar2 = *param_2;
  plVar4 = local_40;
  if (param_3 == (long *)0x0) {
    plVar4 = (long *)0x0;
  }
  iVar1 = FUN_001118a0(param_1,param_2,plVar4);
  if ((iVar1 != 0) && (iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0)) {
    if (param_3 == (long *)0x0) {
      return 1;
    }
    if (local_40[0] != 0) {
      uVar3 = *param_4;
      lVar2 = *param_3;
      uVar5 = uVar3 + 1;
      if (*param_5 <= uVar5) {
        uVar3 = *param_5 + 10;
        *param_5 = uVar3;
        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);
        uVar3 = *param_4;
        *param_3 = lVar2;
        uVar5 = uVar3 + 1;
      }
      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];
      *param_4 = uVar5;
      return 1;
    }
  }
  return 0;
}


PUSH R15
MOV EAX,0x0
MOV R15,RDI
PUSH R14
MOV R14,RSI
PUSH R13
MOV R13,R8
PUSH R12
MOV R12,RCX
PUSH RBP
PUSH RBX
MOV RBX,RDX
SUB RSP,0x18
TEST RBX,RBX
MOV RBP,qword ptr [RSI]
LEA RDX,[RSP + 0x8]
CMOVZ RDX,RAX
CALL 0x001118a0
TEST EAX,EAX
JNZ 0x00112c50
XOR EAX,EAX
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV RDX,qword ptr [R14]
MOV RSI,RBP
MOV RDI,R15
SUB RDX,RBP
CALL 0x001104e0
TEST EAX,EAX
JZ 0x00112c3a
MOV EAX,0x1
TEST RBX,RBX
JZ 0x00112c3c
MOV RSI,qword ptr [RSP + 0x8]
TEST RSI,RSI
JZ 0x00112c3a
MOV EDX,dword ptr [R12]
MOV ECX,dword ptr [R13]
MOV RAX,qword ptr [RBX]
LEA R8D,[RDX + 0x1]
CMP R8D,ECX
JNC 0x00112cb0
MOV qword ptr [RAX + RDX*0x8],RSI
MOV EAX,0x1
MOV dword ptr [R12],R8D
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
ADD ECX,0xa
MOV RDI,RAX
MOV dword ptr [R13],ECX
LEA RSI,[RCX*0x8]
CALL 0x001042b0
MOV EDX,dword ptr [R12]
MOV RSI,qword ptr [RSP + 0x8]
MOV qword ptr [RBX],RAX
LEA R8D,[RDX + 0x1]
JMP 0x00112c8d
(translation_unit "undefined8 FUN_00112c00(undefined8 param_1,long *param_2,long *param_3,uint *param_4,uint *param_5)\n\n{\n  int iVar1;\n  long lVar2;\n  uint uVar3;\n  long *plVar4;\n  uint uVar5;\n  long local_40 [2];\n  \n  lVar2 = *param_2;\n  plVar4 = local_40;\n  if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }\n  iVar1 = FUN_001118a0(param_1,param_2,plVar4);\n  if ((iVar1 != 0) && (iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0)) {\n    if (param_3 == (long *)0x0) {\n      return 1;\n    }\n    if (local_40[0] != 0) {\n      uVar3 = *param_4;\n      lVar2 = *param_3;\n      uVar5 = uVar3 + 1;\n      if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }\n      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];\n      *param_4 = uVar5;\n      return 1;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_00112c00(undefined8 param_1,long *param_2,long *param_3,uint *param_4,uint *param_5)\n\n{\n  int iVar1;\n  long lVar2;\n  uint uVar3;\n  long *plVar4;\n  uint uVar5;\n  long local_40 [2];\n  \n  lVar2 = *param_2;\n  plVar4 = local_40;\n  if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }\n  iVar1 = FUN_001118a0(param_1,param_2,plVar4);\n  if ((iVar1 != 0) && (iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0)) {\n    if (param_3 == (long *)0x0) {\n      return 1;\n    }\n    if (local_40[0] != 0) {\n      uVar3 = *param_4;\n      lVar2 = *param_3;\n      uVar5 = uVar3 + 1;\n      if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }\n      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];\n      *param_4 = uVar5;\n      return 1;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00112c00(undefined8 param_1,long *param_2,long *param_3,uint *param_4,uint *param_5)" identifier (parameter_list "(undefined8 param_1,long *param_2,long *param_3,uint *param_4,uint *param_5)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long *param_3" (sized_type_specifier "long" long) (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "uint *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  uint uVar3;\n  long *plVar4;\n  uint uVar5;\n  long local_40 [2];\n  \n  lVar2 = *param_2;\n  plVar4 = local_40;\n  if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }\n  iVar1 = FUN_001118a0(param_1,param_2,plVar4);\n  if ((iVar1 != 0) && (iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0)) {\n    if (param_3 == (long *)0x0) {\n      return 1;\n    }\n    if (local_40[0] != 0) {\n      uVar3 = *param_4;\n      lVar2 = *param_3;\n      uVar5 = uVar3 + 1;\n      if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }\n      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];\n      *param_4 = uVar5;\n      return 1;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "long *plVar4;" (sized_type_specifier "long" long) (pointer_declarator "*plVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "long local_40 [2];" (sized_type_specifier "long" long) (array_declarator "local_40 [2]" identifier [ number_literal ]) ;) (expression_statement "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "plVar4 = local_40;" (assignment_expression "plVar4 = local_40" identifier = identifier) ;) (if_statement "if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }" if (parenthesized_expression "(param_3 == (long *)0x0)" ( (binary_expression "param_3 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    plVar4 = (long *)0x0;\n  }" { (expression_statement "plVar4 = (long *)0x0;" (assignment_expression "plVar4 = (long *)0x0" identifier = (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "iVar1 = FUN_001118a0(param_1,param_2,plVar4);" (assignment_expression "iVar1 = FUN_001118a0(param_1,param_2,plVar4)" identifier = (call_expression "FUN_001118a0(param_1,param_2,plVar4)" identifier (argument_list "(param_1,param_2,plVar4)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((iVar1 != 0) && (iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0)) {\n    if (param_3 == (long *)0x0) {\n      return 1;\n    }\n    if (local_40[0] != 0) {\n      uVar3 = *param_4;\n      lVar2 = *param_3;\n      uVar5 = uVar3 + 1;\n      if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }\n      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];\n      *param_4 = uVar5;\n      return 1;\n    }\n  }" if (parenthesized_expression "((iVar1 != 0) && (iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0))" ( (binary_expression "(iVar1 != 0) && (iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0" (assignment_expression "iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2)" identifier = (call_expression "FUN_001104e0(param_1,lVar2,*param_2 - lVar2)" identifier (argument_list "(param_1,lVar2,*param_2 - lVar2)" ( identifier , identifier , (binary_expression "*param_2 - lVar2" (pointer_expression "*param_2" * identifier) - identifier) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (param_3 == (long *)0x0) {\n      return 1;\n    }\n    if (local_40[0] != 0) {\n      uVar3 = *param_4;\n      lVar2 = *param_3;\n      uVar5 = uVar3 + 1;\n      if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }\n      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];\n      *param_4 = uVar5;\n      return 1;\n    }\n  }" { (if_statement "if (param_3 == (long *)0x0) {\n      return 1;\n    }" if (parenthesized_expression "(param_3 == (long *)0x0)" ( (binary_expression "param_3 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (local_40[0] != 0) {\n      uVar3 = *param_4;\n      lVar2 = *param_3;\n      uVar5 = uVar3 + 1;\n      if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }\n      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];\n      *param_4 = uVar5;\n      return 1;\n    }" if (parenthesized_expression "(local_40[0] != 0)" ( (binary_expression "local_40[0] != 0" (subscript_expression "local_40[0]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      uVar3 = *param_4;\n      lVar2 = *param_3;\n      uVar5 = uVar3 + 1;\n      if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }\n      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];\n      *param_4 = uVar5;\n      return 1;\n    }" { (expression_statement "uVar3 = *param_4;" (assignment_expression "uVar3 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "lVar2 = *param_3;" (assignment_expression "lVar2 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "uVar5 = uVar3 + 1;" (assignment_expression "uVar5 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (if_statement "if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }" if (parenthesized_expression "(*param_5 <= uVar5)" ( (binary_expression "*param_5 <= uVar5" (pointer_expression "*param_5" * identifier) <= identifier) )) (compound_statement "{\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }" { (expression_statement "uVar3 = *param_5 + 10;" (assignment_expression "uVar3 = *param_5 + 10" identifier = (binary_expression "*param_5 + 10" (pointer_expression "*param_5" * identifier) + number_literal)) ;) (expression_statement "*param_5 = uVar3;" (assignment_expression "*param_5 = uVar3" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);" (assignment_expression "lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8)" identifier = (call_expression "xrealloc(lVar2,(ulong)uVar3 * 8)" identifier (argument_list "(lVar2,(ulong)uVar3 * 8)" ( identifier , (binary_expression "(ulong)uVar3 * 8" (cast_expression "(ulong)uVar3" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal) )))) ;) (expression_statement "uVar3 = *param_4;" (assignment_expression "uVar3 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "*param_3 = lVar2;" (assignment_expression "*param_3 = lVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "uVar5 = uVar3 + 1;" (assignment_expression "uVar5 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "*(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];" (assignment_expression "*(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0]" (pointer_expression "*(long *)(lVar2 + (ulong)uVar3 * 8)" * (cast_expression "(long *)(lVar2 + (ulong)uVar3 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + (ulong)uVar3 * 8)" ( (binary_expression "lVar2 + (ulong)uVar3 * 8" identifier + (binary_expression "(ulong)uVar3 * 8" (cast_expression "(ulong)uVar3" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) )))) = (subscript_expression "local_40[0]" identifier [ number_literal ])) ;) (expression_statement "*param_4 = uVar5;" (assignment_expression "*param_4 = uVar5" (pointer_expression "*param_4" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "bfd_boolean\nstab_demangle_arg(stab_demangle_info *minfo,char **pp,debug_type_conflict **pargs,uint *pcount,\n                 uint *palloc)\n\n{\n  char *p;\n  bfd_boolean bVar1;\n  uint uVar2;\n  debug_type_conflict *ppdVar3;\n  uint uVar4;\n  debug_type type;\n  \n  p = *pp;\n  ppdVar3 = &type;\n  if (pargs == (debug_type_conflict **)0x0) {\n    ppdVar3 = (debug_type_conflict *)0x0;\n  }\n  bVar1 = stab_demangle_type(minfo,pp,ppdVar3);\n  if ((bVar1 != 0) && (bVar1 = stab_demangle_remember_type(minfo,p,(int)*pp - (int)p), bVar1 != 0))\n  {\n    if (pargs == (debug_type_conflict **)0x0) {\n      return 1;\n    }\n    if (type != (debug_type)0x0) {\n      uVar2 = *pcount;\n      ppdVar3 = *pargs;\n      uVar4 = uVar2 + 1;\n      if (*palloc <= uVar4) {\n        uVar2 = *palloc + 10;\n        *palloc = uVar2;\n        ppdVar3 = (debug_type_conflict *)xrealloc(ppdVar3,(ulong)uVar2 * 8);\n        uVar2 = *pcount;\n        *pargs = ppdVar3;\n        uVar4 = uVar2 + 1;\n      }\n      ppdVar3[uVar2] = type;\n      *pcount = uVar4;\n      return 1;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "bfd_boolean\nstab_demangle_arg(stab_demangle_info *minfo,char **pp,debug_type_conflict **pargs,uint *pcount,\n                 uint *palloc)\n\n{\n  char *p;\n  bfd_boolean bVar1;\n  uint uVar2;\n  debug_type_conflict *ppdVar3;\n  uint uVar4;\n  debug_type type;\n  \n  p = *pp;\n  ppdVar3 = &type;\n  if (pargs == (debug_type_conflict **)0x0) {\n    ppdVar3 = (debug_type_conflict *)0x0;\n  }\n  bVar1 = stab_demangle_type(minfo,pp,ppdVar3);\n  if ((bVar1 != 0) && (bVar1 = stab_demangle_remember_type(minfo,p,(int)*pp - (int)p), bVar1 != 0))\n  {\n    if (pargs == (debug_type_conflict **)0x0) {\n      return 1;\n    }\n    if (type != (debug_type)0x0) {\n      uVar2 = *pcount;\n      ppdVar3 = *pargs;\n      uVar4 = uVar2 + 1;\n      if (*palloc <= uVar4) {\n        uVar2 = *palloc + 10;\n        *palloc = uVar2;\n        ppdVar3 = (debug_type_conflict *)xrealloc(ppdVar3,(ulong)uVar2 * 8);\n        uVar2 = *pcount;\n        *pargs = ppdVar3;\n        uVar4 = uVar2 + 1;\n      }\n      ppdVar3[uVar2] = type;\n      *pcount = uVar4;\n      return 1;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "stab_demangle_arg(stab_demangle_info *minfo,char **pp,debug_type_conflict **pargs,uint *pcount,\n                 uint *palloc)" identifier (parameter_list "(stab_demangle_info *minfo,char **pp,debug_type_conflict **pargs,uint *pcount,\n                 uint *palloc)" ( (parameter_declaration "stab_demangle_info *minfo" type_identifier (pointer_declarator "*minfo" * identifier)) , (parameter_declaration "char **pp" primitive_type (pointer_declarator "**pp" * (pointer_declarator "*pp" * identifier))) , (parameter_declaration "debug_type_conflict **pargs" type_identifier (pointer_declarator "**pargs" * (pointer_declarator "*pargs" * identifier))) , (parameter_declaration "uint *pcount" type_identifier (pointer_declarator "*pcount" * identifier)) , (parameter_declaration "uint *palloc" type_identifier (pointer_declarator "*palloc" * identifier)) ))) (compound_statement "{\n  char *p;\n  bfd_boolean bVar1;\n  uint uVar2;\n  debug_type_conflict *ppdVar3;\n  uint uVar4;\n  debug_type type;\n  \n  p = *pp;\n  ppdVar3 = &type;\n  if (pargs == (debug_type_conflict **)0x0) {\n    ppdVar3 = (debug_type_conflict *)0x0;\n  }\n  bVar1 = stab_demangle_type(minfo,pp,ppdVar3);\n  if ((bVar1 != 0) && (bVar1 = stab_demangle_remember_type(minfo,p,(int)*pp - (int)p), bVar1 != 0))\n  {\n    if (pargs == (debug_type_conflict **)0x0) {\n      return 1;\n    }\n    if (type != (debug_type)0x0) {\n      uVar2 = *pcount;\n      ppdVar3 = *pargs;\n      uVar4 = uVar2 + 1;\n      if (*palloc <= uVar4) {\n        uVar2 = *palloc + 10;\n        *palloc = uVar2;\n        ppdVar3 = (debug_type_conflict *)xrealloc(ppdVar3,(ulong)uVar2 * 8);\n        uVar2 = *pcount;\n        *pargs = ppdVar3;\n        uVar4 = uVar2 + 1;\n      }\n      ppdVar3[uVar2] = type;\n      *pcount = uVar4;\n      return 1;\n    }\n  }\n  return 0;\n}" { (declaration "char *p;" primitive_type (pointer_declarator "*p" * identifier) ;) (declaration "bfd_boolean bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "debug_type_conflict *ppdVar3;" type_identifier (pointer_declarator "*ppdVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "debug_type type;" type_identifier identifier ;) (expression_statement "p = *pp;" (assignment_expression "p = *pp" identifier = (pointer_expression "*pp" * identifier)) ;) (expression_statement "ppdVar3 = &type;" (assignment_expression "ppdVar3 = &type" identifier = (pointer_expression "&type" & identifier)) ;) (if_statement "if (pargs == (debug_type_conflict **)0x0) {\n    ppdVar3 = (debug_type_conflict *)0x0;\n  }" if (parenthesized_expression "(pargs == (debug_type_conflict **)0x0)" ( (binary_expression "pargs == (debug_type_conflict **)0x0" identifier == (cast_expression "(debug_type_conflict **)0x0" ( (type_descriptor "debug_type_conflict **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n    ppdVar3 = (debug_type_conflict *)0x0;\n  }" { (expression_statement "ppdVar3 = (debug_type_conflict *)0x0;" (assignment_expression "ppdVar3 = (debug_type_conflict *)0x0" identifier = (cast_expression "(debug_type_conflict *)0x0" ( (type_descriptor "debug_type_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "bVar1 = stab_demangle_type(minfo,pp,ppdVar3);" (assignment_expression "bVar1 = stab_demangle_type(minfo,pp,ppdVar3)" identifier = (call_expression "stab_demangle_type(minfo,pp,ppdVar3)" identifier (argument_list "(minfo,pp,ppdVar3)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((bVar1 != 0) && (bVar1 = stab_demangle_remember_type(minfo,p,(int)*pp - (int)p), bVar1 != 0))\n  {\n    if (pargs == (debug_type_conflict **)0x0) {\n      return 1;\n    }\n    if (type != (debug_type)0x0) {\n      uVar2 = *pcount;\n      ppdVar3 = *pargs;\n      uVar4 = uVar2 + 1;\n      if (*palloc <= uVar4) {\n        uVar2 = *palloc + 10;\n        *palloc = uVar2;\n        ppdVar3 = (debug_type_conflict *)xrealloc(ppdVar3,(ulong)uVar2 * 8);\n        uVar2 = *pcount;\n        *pargs = ppdVar3;\n        uVar4 = uVar2 + 1;\n      }\n      ppdVar3[uVar2] = type;\n      *pcount = uVar4;\n      return 1;\n    }\n  }" if (parenthesized_expression "((bVar1 != 0) && (bVar1 = stab_demangle_remember_type(minfo,p,(int)*pp - (int)p), bVar1 != 0))" ( (binary_expression "(bVar1 != 0) && (bVar1 = stab_demangle_remember_type(minfo,p,(int)*pp - (int)p), bVar1 != 0)" (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(bVar1 = stab_demangle_remember_type(minfo,p,(int)*pp - (int)p), bVar1 != 0)" ( (comma_expression "bVar1 = stab_demangle_remember_type(minfo,p,(int)*pp - (int)p), bVar1 != 0" (assignment_expression "bVar1 = stab_demangle_remember_type(minfo,p,(int)*pp - (int)p)" identifier = (call_expression "stab_demangle_remember_type(minfo,p,(int)*pp - (int)p)" identifier (argument_list "(minfo,p,(int)*pp - (int)p)" ( identifier , identifier , (binary_expression "(int)*pp - (int)p" (cast_expression "(int)*pp" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pp" * identifier)) - (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier)) )))) , (binary_expression "bVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (pargs == (debug_type_conflict **)0x0) {\n      return 1;\n    }\n    if (type != (debug_type)0x0) {\n      uVar2 = *pcount;\n      ppdVar3 = *pargs;\n      uVar4 = uVar2 + 1;\n      if (*palloc <= uVar4) {\n        uVar2 = *palloc + 10;\n        *palloc = uVar2;\n        ppdVar3 = (debug_type_conflict *)xrealloc(ppdVar3,(ulong)uVar2 * 8);\n        uVar2 = *pcount;\n        *pargs = ppdVar3;\n        uVar4 = uVar2 + 1;\n      }\n      ppdVar3[uVar2] = type;\n      *pcount = uVar4;\n      return 1;\n    }\n  }" { (if_statement "if (pargs == (debug_type_conflict **)0x0) {\n      return 1;\n    }" if (parenthesized_expression "(pargs == (debug_type_conflict **)0x0)" ( (binary_expression "pargs == (debug_type_conflict **)0x0" identifier == (cast_expression "(debug_type_conflict **)0x0" ( (type_descriptor "debug_type_conflict **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (type != (debug_type)0x0) {\n      uVar2 = *pcount;\n      ppdVar3 = *pargs;\n      uVar4 = uVar2 + 1;\n      if (*palloc <= uVar4) {\n        uVar2 = *palloc + 10;\n        *palloc = uVar2;\n        ppdVar3 = (debug_type_conflict *)xrealloc(ppdVar3,(ulong)uVar2 * 8);\n        uVar2 = *pcount;\n        *pargs = ppdVar3;\n        uVar4 = uVar2 + 1;\n      }\n      ppdVar3[uVar2] = type;\n      *pcount = uVar4;\n      return 1;\n    }" if (parenthesized_expression "(type != (debug_type)0x0)" ( (binary_expression "type != (debug_type)0x0" identifier != (cast_expression "(debug_type)0x0" ( (type_descriptor "debug_type" type_identifier) ) number_literal)) )) (compound_statement "{\n      uVar2 = *pcount;\n      ppdVar3 = *pargs;\n      uVar4 = uVar2 + 1;\n      if (*palloc <= uVar4) {\n        uVar2 = *palloc + 10;\n        *palloc = uVar2;\n        ppdVar3 = (debug_type_conflict *)xrealloc(ppdVar3,(ulong)uVar2 * 8);\n        uVar2 = *pcount;\n        *pargs = ppdVar3;\n        uVar4 = uVar2 + 1;\n      }\n      ppdVar3[uVar2] = type;\n      *pcount = uVar4;\n      return 1;\n    }" { (expression_statement "uVar2 = *pcount;" (assignment_expression "uVar2 = *pcount" identifier = (pointer_expression "*pcount" * identifier)) ;) (expression_statement "ppdVar3 = *pargs;" (assignment_expression "ppdVar3 = *pargs" identifier = (pointer_expression "*pargs" * identifier)) ;) (expression_statement "uVar4 = uVar2 + 1;" (assignment_expression "uVar4 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (if_statement "if (*palloc <= uVar4) {\n        uVar2 = *palloc + 10;\n        *palloc = uVar2;\n        ppdVar3 = (debug_type_conflict *)xrealloc(ppdVar3,(ulong)uVar2 * 8);\n        uVar2 = *pcount;\n        *pargs = ppdVar3;\n        uVar4 = uVar2 + 1;\n      }" if (parenthesized_expression "(*palloc <= uVar4)" ( (binary_expression "*palloc <= uVar4" (pointer_expression "*palloc" * identifier) <= identifier) )) (compound_statement "{\n        uVar2 = *palloc + 10;\n        *palloc = uVar2;\n        ppdVar3 = (debug_type_conflict *)xrealloc(ppdVar3,(ulong)uVar2 * 8);\n        uVar2 = *pcount;\n        *pargs = ppdVar3;\n        uVar4 = uVar2 + 1;\n      }" { (expression_statement "uVar2 = *palloc + 10;" (assignment_expression "uVar2 = *palloc + 10" identifier = (binary_expression "*palloc + 10" (pointer_expression "*palloc" * identifier) + number_literal)) ;) (expression_statement "*palloc = uVar2;" (assignment_expression "*palloc = uVar2" (pointer_expression "*palloc" * identifier) = identifier) ;) (expression_statement "ppdVar3 = (debug_type_conflict *)xrealloc(ppdVar3,(ulong)uVar2 * 8);" (assignment_expression "ppdVar3 = (debug_type_conflict *)xrealloc(ppdVar3,(ulong)uVar2 * 8)" identifier = (cast_expression "(debug_type_conflict *)xrealloc(ppdVar3,(ulong)uVar2 * 8)" ( (type_descriptor "debug_type_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(ppdVar3,(ulong)uVar2 * 8)" identifier (argument_list "(ppdVar3,(ulong)uVar2 * 8)" ( identifier , (binary_expression "(ulong)uVar2 * 8" (cast_expression "(ulong)uVar2" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal) ))))) ;) (expression_statement "uVar2 = *pcount;" (assignment_expression "uVar2 = *pcount" identifier = (pointer_expression "*pcount" * identifier)) ;) (expression_statement "*pargs = ppdVar3;" (assignment_expression "*pargs = ppdVar3" (pointer_expression "*pargs" * identifier) = identifier) ;) (expression_statement "uVar4 = uVar2 + 1;" (assignment_expression "uVar4 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "ppdVar3[uVar2] = type;" (assignment_expression "ppdVar3[uVar2] = type" (subscript_expression "ppdVar3[uVar2]" identifier [ identifier ]) = identifier) ;) (expression_statement "*pcount = uVar4;" (assignment_expression "*pcount = uVar4" (pointer_expression "*pcount" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined8 FUN_00112c00(undefined8 param_1,long *param_2,long *param_3,uint *param_4,uint *param_5)\n\n{\n  int iVar1;\n  long lVar2;\n  uint uVar3;\n  long *plVar4;\n  uint uVar5;\n  long local_40 [2];\n  \n  lVar2 = *param_2;\n  plVar4 = local_40;\n  if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }\n  iVar1 = FUN_001118a0(param_1,param_2,plVar4);\n  if ((iVar1 != 0) && (iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0)) {\n    if (param_3 == (long *)0x0) {\n      return 1;\n    }\n    if (local_40[0] != 0) {\n      uVar3 = *param_4;\n      lVar2 = *param_3;\n      uVar5 = uVar3 + 1;\n      if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }\n      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];\n      *param_4 = uVar5;\n      return 1;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_00112c00(undefined8 param_1,long *param_2,long *param_3,uint *param_4,uint *param_5)\n\n{\n  int iVar1;\n  long lVar2;\n  uint uVar3;\n  long *plVar4;\n  uint uVar5;\n  long local_40 [2];\n  \n  lVar2 = *param_2;\n  plVar4 = local_40;\n  if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }\n  iVar1 = FUN_001118a0(param_1,param_2,plVar4);\n  if ((iVar1 != 0) && (iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0)) {\n    if (param_3 == (long *)0x0) {\n      return 1;\n    }\n    if (local_40[0] != 0) {\n      uVar3 = *param_4;\n      lVar2 = *param_3;\n      uVar5 = uVar3 + 1;\n      if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }\n      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];\n      *param_4 = uVar5;\n      return 1;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00112c00(undefined8 param_1,long *param_2,long *param_3,uint *param_4,uint *param_5)" identifier (parameter_list "(undefined8 param_1,long *param_2,long *param_3,uint *param_4,uint *param_5)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long *param_3" (sized_type_specifier "long" long) (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "uint *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  uint uVar3;\n  long *plVar4;\n  uint uVar5;\n  long local_40 [2];\n  \n  lVar2 = *param_2;\n  plVar4 = local_40;\n  if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }\n  iVar1 = FUN_001118a0(param_1,param_2,plVar4);\n  if ((iVar1 != 0) && (iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0)) {\n    if (param_3 == (long *)0x0) {\n      return 1;\n    }\n    if (local_40[0] != 0) {\n      uVar3 = *param_4;\n      lVar2 = *param_3;\n      uVar5 = uVar3 + 1;\n      if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }\n      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];\n      *param_4 = uVar5;\n      return 1;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "long *plVar4;" (sized_type_specifier "long" long) (pointer_declarator "*plVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "long local_40 [2];" (sized_type_specifier "long" long) (array_declarator "local_40 [2]" identifier [ number_literal ]) ;) (expression_statement "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "plVar4 = local_40;" (assignment_expression "plVar4 = local_40" identifier = identifier) ;) (if_statement "if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }" if (parenthesized_expression "(param_3 == (long *)0x0)" ( (binary_expression "param_3 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    plVar4 = (long *)0x0;\n  }" { (expression_statement "plVar4 = (long *)0x0;" (assignment_expression "plVar4 = (long *)0x0" identifier = (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "iVar1 = FUN_001118a0(param_1,param_2,plVar4);" (assignment_expression "iVar1 = FUN_001118a0(param_1,param_2,plVar4)" identifier = (call_expression "FUN_001118a0(param_1,param_2,plVar4)" identifier (argument_list "(param_1,param_2,plVar4)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((iVar1 != 0) && (iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0)) {\n    if (param_3 == (long *)0x0) {\n      return 1;\n    }\n    if (local_40[0] != 0) {\n      uVar3 = *param_4;\n      lVar2 = *param_3;\n      uVar5 = uVar3 + 1;\n      if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }\n      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];\n      *param_4 = uVar5;\n      return 1;\n    }\n  }" if (parenthesized_expression "((iVar1 != 0) && (iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0))" ( (binary_expression "(iVar1 != 0) && (iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0" (assignment_expression "iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2)" identifier = (call_expression "FUN_001104e0(param_1,lVar2,*param_2 - lVar2)" identifier (argument_list "(param_1,lVar2,*param_2 - lVar2)" ( identifier , identifier , (binary_expression "*param_2 - lVar2" (pointer_expression "*param_2" * identifier) - identifier) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (param_3 == (long *)0x0) {\n      return 1;\n    }\n    if (local_40[0] != 0) {\n      uVar3 = *param_4;\n      lVar2 = *param_3;\n      uVar5 = uVar3 + 1;\n      if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }\n      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];\n      *param_4 = uVar5;\n      return 1;\n    }\n  }" { (if_statement "if (param_3 == (long *)0x0) {\n      return 1;\n    }" if (parenthesized_expression "(param_3 == (long *)0x0)" ( (binary_expression "param_3 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (local_40[0] != 0) {\n      uVar3 = *param_4;\n      lVar2 = *param_3;\n      uVar5 = uVar3 + 1;\n      if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }\n      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];\n      *param_4 = uVar5;\n      return 1;\n    }" if (parenthesized_expression "(local_40[0] != 0)" ( (binary_expression "local_40[0] != 0" (subscript_expression "local_40[0]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      uVar3 = *param_4;\n      lVar2 = *param_3;\n      uVar5 = uVar3 + 1;\n      if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }\n      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];\n      *param_4 = uVar5;\n      return 1;\n    }" { (expression_statement "uVar3 = *param_4;" (assignment_expression "uVar3 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "lVar2 = *param_3;" (assignment_expression "lVar2 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "uVar5 = uVar3 + 1;" (assignment_expression "uVar5 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (if_statement "if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }" if (parenthesized_expression "(*param_5 <= uVar5)" ( (binary_expression "*param_5 <= uVar5" (pointer_expression "*param_5" * identifier) <= identifier) )) (compound_statement "{\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }" { (expression_statement "uVar3 = *param_5 + 10;" (assignment_expression "uVar3 = *param_5 + 10" identifier = (binary_expression "*param_5 + 10" (pointer_expression "*param_5" * identifier) + number_literal)) ;) (expression_statement "*param_5 = uVar3;" (assignment_expression "*param_5 = uVar3" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);" (assignment_expression "lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8)" identifier = (call_expression "xrealloc(lVar2,(ulong)uVar3 * 8)" identifier (argument_list "(lVar2,(ulong)uVar3 * 8)" ( identifier , (binary_expression "(ulong)uVar3 * 8" (cast_expression "(ulong)uVar3" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal) )))) ;) (expression_statement "uVar3 = *param_4;" (assignment_expression "uVar3 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "*param_3 = lVar2;" (assignment_expression "*param_3 = lVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "uVar5 = uVar3 + 1;" (assignment_expression "uVar5 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "*(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];" (assignment_expression "*(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0]" (pointer_expression "*(long *)(lVar2 + (ulong)uVar3 * 8)" * (cast_expression "(long *)(lVar2 + (ulong)uVar3 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + (ulong)uVar3 * 8)" ( (binary_expression "lVar2 + (ulong)uVar3 * 8" identifier + (binary_expression "(ulong)uVar3 * 8" (cast_expression "(ulong)uVar3" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) )))) = (subscript_expression "local_40[0]" identifier [ number_literal ])) ;) (expression_statement "*param_4 = uVar5;" (assignment_expression "*param_4 = uVar5" (pointer_expression "*param_4" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression (pointer_expression * IDENT) - IDENT) )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) })) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_00112c00(undefined8 param_1,long *param_2,long *param_3,uint *param_4,uint *param_5)\n\n{\n  int iVar1;\n  long lVar2;\n  uint uVar3;\n  long *plVar4;\n  uint uVar5;\n  long local_40 [2];\n  \n  lVar2 = *param_2;\n  plVar4 = local_40;\n  if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }\n  iVar1 = FUN_001118a0(param_1,param_2,plVar4);\n  if ((iVar1 != 0) && (iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0)) {\n    if (param_3 == (long *)0x0) {\n      return 1;\n    }\n    if (local_40[0] != 0) {\n      uVar3 = *param_4;\n      lVar2 = *param_3;\n      uVar5 = uVar3 + 1;\n      if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }\n      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];\n      *param_4 = uVar5;\n      return 1;\n    }\n  }\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_00112c00(undefined8 param_1,long *param_2,long *param_3,uint *param_4,uint *param_5)" (identifier "FUN_00112c00") (parameter_list "(undefined8 param_1,long *param_2,long *param_3,uint *param_4,uint *param_5)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "long *param_3" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "uint *param_4" (type_identifier "uint") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "uint *param_5" (type_identifier "uint") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  uint uVar3;\n  long *plVar4;\n  uint uVar5;\n  long local_40 [2];\n  \n  lVar2 = *param_2;\n  plVar4 = local_40;\n  if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }\n  iVar1 = FUN_001118a0(param_1,param_2,plVar4);\n  if ((iVar1 != 0) && (iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0)) {\n    if (param_3 == (long *)0x0) {\n      return 1;\n    }\n    if (local_40[0] != 0) {\n      uVar3 = *param_4;\n      lVar2 = *param_3;\n      uVar5 = uVar3 + 1;\n      if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }\n      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];\n      *param_4 = uVar5;\n      return 1;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "long *plVar4;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar4" (* "*") (identifier "plVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "long local_40 [2];" (sized_type_specifier "long" (long "long")) (array_declarator "local_40 [2]" (identifier "local_40") ([ "[") (number_literal "2") (] "]")) (; ";")) (expression_statement "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" (identifier "lVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "plVar4 = local_40;" (assignment_expression "plVar4 = local_40" (identifier "plVar4") (= "=") (identifier "local_40")) (; ";")) (if_statement "if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }" (if "if") (parenthesized_expression "(param_3 == (long *)0x0)" (( "(") (binary_expression "param_3 == (long *)0x0" (identifier "param_3") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    plVar4 = (long *)0x0;\n  }" ({ "{") (expression_statement "plVar4 = (long *)0x0;" (assignment_expression "plVar4 = (long *)0x0" (identifier "plVar4") (= "=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_001118a0(param_1,param_2,plVar4);" (assignment_expression "iVar1 = FUN_001118a0(param_1,param_2,plVar4)" (identifier "iVar1") (= "=") (call_expression "FUN_001118a0(param_1,param_2,plVar4)" (identifier "FUN_001118a0") (argument_list "(param_1,param_2,plVar4)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "plVar4") () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) && (iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0)) {\n    if (param_3 == (long *)0x0) {\n      return 1;\n    }\n    if (local_40[0] != 0) {\n      uVar3 = *param_4;\n      lVar2 = *param_3;\n      uVar5 = uVar3 + 1;\n      if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }\n      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];\n      *param_4 = uVar5;\n      return 1;\n    }\n  }" (if "if") (parenthesized_expression "((iVar1 != 0) && (iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0))" (( "(") (binary_expression "(iVar1 != 0) && (iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0" (assignment_expression "iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2)" (identifier "iVar1") (= "=") (call_expression "FUN_001104e0(param_1,lVar2,*param_2 - lVar2)" (identifier "FUN_001104e0") (argument_list "(param_1,lVar2,*param_2 - lVar2)" (( "(") (identifier "param_1") (, ",") (identifier "lVar2") (, ",") (binary_expression "*param_2 - lVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (- "-") (identifier "lVar2")) () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    if (param_3 == (long *)0x0) {\n      return 1;\n    }\n    if (local_40[0] != 0) {\n      uVar3 = *param_4;\n      lVar2 = *param_3;\n      uVar5 = uVar3 + 1;\n      if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }\n      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];\n      *param_4 = uVar5;\n      return 1;\n    }\n  }" ({ "{") (if_statement "if (param_3 == (long *)0x0) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(param_3 == (long *)0x0)" (( "(") (binary_expression "param_3 == (long *)0x0" (identifier "param_3") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (local_40[0] != 0) {\n      uVar3 = *param_4;\n      lVar2 = *param_3;\n      uVar5 = uVar3 + 1;\n      if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }\n      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];\n      *param_4 = uVar5;\n      return 1;\n    }" (if "if") (parenthesized_expression "(local_40[0] != 0)" (( "(") (binary_expression "local_40[0] != 0" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = *param_4;\n      lVar2 = *param_3;\n      uVar5 = uVar3 + 1;\n      if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }\n      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];\n      *param_4 = uVar5;\n      return 1;\n    }" ({ "{") (expression_statement "uVar3 = *param_4;" (assignment_expression "uVar3 = *param_4" (identifier "uVar3") (= "=") (pointer_expression "*param_4" (* "*") (identifier "param_4"))) (; ";")) (expression_statement "lVar2 = *param_3;" (assignment_expression "lVar2 = *param_3" (identifier "lVar2") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "uVar5 = uVar3 + 1;" (assignment_expression "uVar5 = uVar3 + 1" (identifier "uVar5") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (*param_5 <= uVar5) {\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }" (if "if") (parenthesized_expression "(*param_5 <= uVar5)" (( "(") (binary_expression "*param_5 <= uVar5" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (<= "<=") (identifier "uVar5")) () ")")) (compound_statement "{\n        uVar3 = *param_5 + 10;\n        *param_5 = uVar3;\n        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);\n        uVar3 = *param_4;\n        *param_3 = lVar2;\n        uVar5 = uVar3 + 1;\n      }" ({ "{") (expression_statement "uVar3 = *param_5 + 10;" (assignment_expression "uVar3 = *param_5 + 10" (identifier "uVar3") (= "=") (binary_expression "*param_5 + 10" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (+ "+") (number_literal "10"))) (; ";")) (expression_statement "*param_5 = uVar3;" (assignment_expression "*param_5 = uVar3" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);" (assignment_expression "lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8)" (identifier "lVar2") (= "=") (call_expression "xrealloc(lVar2,(ulong)uVar3 * 8)" (identifier "xrealloc") (argument_list "(lVar2,(ulong)uVar3 * 8)" (( "(") (identifier "lVar2") (, ",") (binary_expression "(ulong)uVar3 * 8" (cast_expression "(ulong)uVar3" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar3")) (* "*") (number_literal "8")) () ")")))) (; ";")) (expression_statement "uVar3 = *param_4;" (assignment_expression "uVar3 = *param_4" (identifier "uVar3") (= "=") (pointer_expression "*param_4" (* "*") (identifier "param_4"))) (; ";")) (expression_statement "*param_3 = lVar2;" (assignment_expression "*param_3 = lVar2" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "lVar2")) (; ";")) (expression_statement "uVar5 = uVar3 + 1;" (assignment_expression "uVar5 = uVar3 + 1" (identifier "uVar5") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];" (assignment_expression "*(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0]" (pointer_expression "*(long *)(lVar2 + (ulong)uVar3 * 8)" (* "*") (cast_expression "(long *)(lVar2 + (ulong)uVar3 * 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + (ulong)uVar3 * 8)" (( "(") (binary_expression "lVar2 + (ulong)uVar3 * 8" (identifier "lVar2") (+ "+") (binary_expression "(ulong)uVar3 * 8" (cast_expression "(ulong)uVar3" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar3")) (* "*") (number_literal "8"))) () ")")))) (= "=") (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "*param_4 = uVar5;" (assignment_expression "*param_4 = uVar5" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "uVar5")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1
function_1(type_2 *minfo,char **pp,type_3 **var_1,type_4 *pcount,
                 type_4 *palloc)

{
  char *p;
  type_1 var_3;
  type_4 var_6;
  type_3 *ppdVar3;
  type_4 var_7;
  type_5 var_5;
  
  p = *pp;
  ppdVar3 = &var_5;
  if (var_1 == (type_3 **)0x0) {
    ppdVar3 = (type_3 *)0x0;
  }
  var_3 = var_2(minfo,pp,ppdVar3);
  if ((var_3 != 0) && (var_3 = var_4(minfo,p,(int)*pp - (int)p), var_3 != 0))
  {
    if (var_1 == (type_3 **)0x0) {
      return 1;
    }
    if (var_5 != (type_5)0x0) {
      var_6 = *pcount;
      ppdVar3 = *var_1;
      var_7 = var_6 + 1;
      if (*palloc <= var_7) {
        var_6 = *palloc + 10;
        *palloc = var_6;
        ppdVar3 = (type_3 *)var_8(ppdVar3,(type_6)var_6 * 8);
        var_6 = *pcount;
        *var_1 = ppdVar3;
        var_7 = var_6 + 1;
      }
      ppdVar3[var_6] = var_5;
      *pcount = var_7;
      return 1;
    }
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (number_literal)))))) (return_statement (number_literal)))))

undefined8 MASKED(undefined8 param_1,long *param_2,long *param_3,uint *param_4,uint *param_5)

{
  int iVar1;
  long lVar2;
  uint uVar3;
  long *plVar4;
  uint uVar5;
  long local_40 [2];
  
  lVar2 = *param_2;
  plVar4 = local_40;
  if (param_3 == (long *)0x0) {
    plVar4 = (long *)0x0;
  }
  iVar1 = FUN_001118a0(param_1,param_2,plVar4);
  if ((iVar1 != 0) && (iVar1 = FUN_001104e0(param_1,lVar2,*param_2 - lVar2), iVar1 != 0)) {
    if (param_3 == (long *)0x0) {
      return 1;
    }
    if (local_40[0] != 0) {
      uVar3 = *param_4;
      lVar2 = *param_3;
      uVar5 = uVar3 + 1;
      if (*param_5 <= uVar5) {
        uVar3 = *param_5 + 10;
        *param_5 = uVar3;
        lVar2 = xrealloc(lVar2,(ulong)uVar3 * 8);
        uVar3 = *param_4;
        *param_3 = lVar2;
        uVar5 = uVar3 + 1;
      }
      *(long *)(lVar2 + (ulong)uVar3 * 8) = local_40[0];
      *param_4 = uVar5;
      return 1;
    }
  }
  return 0;
}

