
bfd_boolean pr_start_struct_type(void *p,char *tag,uint id,bfd_boolean structp,uint size)

{
  pr_handle *info_00;
  bfd_boolean bVar1;
  ulong uVar2;
  char *pcVar3;
  pr_handle *info;
  uint uVar4;
  char idbuf [20];
  
  pcVar3 = "struct ";
  info_00 = (pr_handle *)((long)p + 0x10);
  *(int *)((long)p + 8) = *(int *)((long)p + 8) + 2;
  if (structp == 0) {
    pcVar3 = "union ";
  }
  bVar1 = push_type(info_00,pcVar3);
  if (bVar1 == 0) {
    return 0;
  }
  if (tag == (char *)0x0) {
    sprintf(idbuf,"%%anon%u",(ulong)id);
    bVar1 = append_type(info_00,idbuf);
    if (bVar1 == 0) {
      return 0;
    }
    bVar1 = append_type(info_00," {");
    if (bVar1 == 0) {
      return 0;
    }
    if (size == 0) goto LAB_00128f02;
    bVar1 = append_type(info_00," /*");
    if (bVar1 == 0) {
      return 0;
    }
    uVar2 = (ulong)size;
    pcVar3 = " size %u";
  }
  else {
    bVar1 = append_type(info_00,tag);
    if (bVar1 == 0) {
      return 0;
    }
    bVar1 = append_type(info_00," {");
    if (bVar1 == 0) {
      return 0;
    }
    bVar1 = append_type(info_00," /*");
    if (bVar1 == 0) {
      return 0;
    }
    if (size != 0) {
      sprintf(idbuf," size %u",(ulong)size);
      bVar1 = append_type(info_00,idbuf);
      if (bVar1 == 0) {
        return 0;
      }
    }
    uVar2 = (ulong)id;
    pcVar3 = " id %u";
  }
  sprintf(idbuf,pcVar3,uVar2);
  bVar1 = append_type(info_00,idbuf);
  if (bVar1 == 0) {
    return 0;
  }
  bVar1 = append_type(info_00," */");
  if (bVar1 == 0) {
    return 0;
  }
LAB_00128f02:
  bVar1 = append_type(info_00,"\n");
  if (bVar1 == 0) {
    return 0;
  }
  uVar4 = 0;
  *(undefined4 *)(*(long *)((long)p + 0x10) + 0x10) = 0;
  if (*(int *)((long)p + 8) != 0) {
    do {
      bVar1 = append_type(info_00," ");
      if (bVar1 == 0) {
        return 0;
      }
      uVar4 = uVar4 + 1;
    } while (uVar4 < *(uint *)((long)p + 8));
  }
  return 1;
}



undefined8 FUN_00128e40(long param_1,long param_2,ulong param_3,int param_4,uint param_5)

{
  long lVar1;
  int iVar2;
  undefined8 uVar3;
  char *pcVar4;
  uint uVar5;
  char acStack_48 [32];
  
  pcVar4 = "struct ";
  param_3 = param_3 & 0xffffffff;
  lVar1 = param_1 + 0x10;
  *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;
  if (param_4 == 0) {
    pcVar4 = "union ";
  }
  iVar2 = FUN_001289c0(lVar1,pcVar4);
  if (iVar2 == 0) {
    return 0;
  }
  if (param_2 == 0) {
    sprintf(acStack_48,"%%anon%u",param_3);
    uVar3 = FUN_00127080(lVar1,acStack_48);
    if ((int)uVar3 == 0) {
      return uVar3;
    }
    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);
    if (iVar2 == 0) {
      return 0;
    }
    if (param_5 == 0) goto LAB_00128f02;
    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);
    if (iVar2 == 0) {
      return 0;
    }
    param_3 = (ulong)param_5;
    pcVar4 = " size %u";
  }
  else {
    iVar2 = FUN_00127080(lVar1,param_2);
    if (iVar2 == 0) {
      return 0;
    }
    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);
    if (iVar2 == 0) {
      return 0;
    }
    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);
    if (iVar2 == 0) {
      return 0;
    }
    if (param_5 != 0) {
      sprintf(acStack_48," size %u",(ulong)param_5);
      iVar2 = FUN_00127080(lVar1,acStack_48);
      if (iVar2 == 0) {
        return 0;
      }
    }
    pcVar4 = " id %u";
  }
  sprintf(acStack_48,pcVar4,param_3);
  iVar2 = FUN_00127080(lVar1,acStack_48);
  if (iVar2 == 0) {
    return 0;
  }
  iVar2 = FUN_00127080(lVar1," */");
  if (iVar2 == 0) {
    return 0;
  }
LAB_00128f02:
  iVar2 = FUN_00127080(lVar1,"\n");
  if (iVar2 == 0) {
    return 0;
  }
  uVar5 = 0;
  *(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10) = 0;
  if (*(int *)(param_1 + 8) != 0) {
    do {
      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);
      if (iVar2 == 0) {
        return 0;
      }
      uVar5 = uVar5 + 1;
    } while (uVar5 < *(uint *)(param_1 + 8));
  }
  return 1;
}


PUSH R14
LEA RAX,[0x14590e]
MOV R14,RSI
LEA RSI,[0x145900]
PUSH R13
MOV R13D,EDX
PUSH R12
MOV R12D,R8D
PUSH RBP
LEA RBP,[RDI + 0x10]
PUSH RBX
MOV RBX,RDI
SUB RSP,0x20
ADD dword ptr [RDI + 0x8],0x2
TEST ECX,ECX
MOV RDI,RBP
CMOVZ RSI,RAX
CALL 0x001289c0
TEST EAX,EAX
JZ 0x00128eb0
TEST R14,R14
JZ 0x00128ec0
MOV RSI,R14
MOV RDI,RBP
CALL 0x00127080
TEST EAX,EAX
JZ 0x00128eb0
LEA RSI,[0x14592b]
MOV RDI,RBP
CALL 0x00127080
TEST EAX,EAX
JNZ 0x00128f60
NOP dword ptr [RAX + RAX*0x1]
XOR EAX,EAX
ADD RSP,0x20
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
MOV R14,RSP
LEA RSI,[0x145915]
XOR EAX,EAX
MOV EDX,R13D
MOV RDI,R14
CALL 0x00107760
MOV RSI,R14
MOV RDI,RBP
CALL 0x00127080
TEST EAX,EAX
JZ 0x00128eb2
LEA RSI,[0x14592b]
MOV RDI,RBP
CALL 0x00127080
TEST EAX,EAX
JZ 0x00128eb0
TEST R12D,R12D
JNZ 0x00129004
LEA RSI,[0x141a67]
MOV RDI,RBP
CALL 0x00127080
TEST EAX,EAX
JZ 0x00128eb0
MOV RAX,qword ptr [RBX + 0x10]
XOR R12D,R12D
LEA R13,[0x13d6b7]
MOV dword ptr [RAX + 0x10],0x0
MOV EAX,dword ptr [RBX + 0x8]
TEST EAX,EAX
JNZ 0x00128f4a
JMP 0x00128fc8
ADD R12D,0x1
CMP R12D,dword ptr [RBX + 0x8]
JNC 0x00128fc8
MOV RSI,R13
MOV RDI,RBP
CALL 0x00127080
TEST EAX,EAX
JNZ 0x00128f40
JMP 0x00128eb0
LEA RSI,[0x14592e]
MOV RDI,RBP
CALL 0x00127080
TEST EAX,EAX
JZ 0x00128eb0
MOV R14,RSP
TEST R12D,R12D
JNZ 0x00128fd8
MOV EDX,R13D
LEA RSI,[0x145948]
MOV RDI,R14
XOR EAX,EAX
CALL 0x00107760
MOV RSI,R14
MOV RDI,RBP
CALL 0x00127080
TEST EAX,EAX
JZ 0x00128eb0
LEA RSI,[0x145a2f]
MOV RDI,RBP
CALL 0x00127080
TEST EAX,EAX
JNZ 0x00128f02
JMP 0x00128eb0
MOV EAX,0x1
JMP 0x00128eb2
LEA RSI,[0x14594f]
MOV RDI,R14
XOR EAX,EAX
MOV EDX,R12D
CALL 0x00107760
MOV RSI,R14
MOV RDI,RBP
CALL 0x00127080
TEST EAX,EAX
JZ 0x00128eb0
JMP 0x00128f7f
LEA RSI,[0x14592e]
MOV RDI,RBP
CALL 0x00127080
TEST EAX,EAX
JZ 0x00128eb0
MOV EDX,R12D
LEA RSI,[0x14594f]
JMP 0x00128f89
(translation_unit "undefined8 FUN_00128e40(long param_1,long param_2,ulong param_3,int param_4,uint param_5)\n\n{\n  long lVar1;\n  int iVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  uint uVar5;\n  char acStack_48 [32];\n  \n  pcVar4 = "struct ";\n  param_3 = param_3 & 0xffffffff;\n  lVar1 = param_1 + 0x10;\n  *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;\n  if (param_4 == 0) {\n    pcVar4 = "union ";\n  }\n  iVar2 = FUN_001289c0(lVar1,pcVar4);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  if (param_2 == 0) {\n    sprintf(acStack_48,"%%anon%u",param_3);\n    uVar3 = FUN_00127080(lVar1,acStack_48);\n    if ((int)uVar3 == 0) {\n      return uVar3;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 == 0) goto LAB_00128f02;\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    param_3 = (ulong)param_5;\n    pcVar4 = " size %u";\n  }\n  else {\n    iVar2 = FUN_00127080(lVar1,param_2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 != 0) {\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }\n    pcVar4 = " id %u";\n  }\n  sprintf(acStack_48,pcVar4,param_3);\n  iVar2 = FUN_00127080(lVar1,acStack_48);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00127080(lVar1," */");\n  if (iVar2 == 0) {\n    return 0;\n  }\nLAB_00128f02:\n  iVar2 = FUN_00127080(lVar1,"\n");\n  if (iVar2 == 0) {\n    return 0;\n  }\n  uVar5 = 0;\n  *(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10) = 0;\n  if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < *(uint *)(param_1 + 8));\n  }\n  return 1;\n}\n\n" (function_definition "undefined8 FUN_00128e40(long param_1,long param_2,ulong param_3,int param_4,uint param_5)\n\n{\n  long lVar1;\n  int iVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  uint uVar5;\n  char acStack_48 [32];\n  \n  pcVar4 = "struct ";\n  param_3 = param_3 & 0xffffffff;\n  lVar1 = param_1 + 0x10;\n  *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;\n  if (param_4 == 0) {\n    pcVar4 = "union ";\n  }\n  iVar2 = FUN_001289c0(lVar1,pcVar4);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  if (param_2 == 0) {\n    sprintf(acStack_48,"%%anon%u",param_3);\n    uVar3 = FUN_00127080(lVar1,acStack_48);\n    if ((int)uVar3 == 0) {\n      return uVar3;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 == 0) goto LAB_00128f02;\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    param_3 = (ulong)param_5;\n    pcVar4 = " size %u";\n  }\n  else {\n    iVar2 = FUN_00127080(lVar1,param_2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 != 0) {\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }\n    pcVar4 = " id %u";\n  }\n  sprintf(acStack_48,pcVar4,param_3);\n  iVar2 = FUN_00127080(lVar1,acStack_48);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00127080(lVar1," */");\n  if (iVar2 == 0) {\n    return 0;\n  }\nLAB_00128f02:\n  iVar2 = FUN_00127080(lVar1,"\n");\n  if (iVar2 == 0) {\n    return 0;\n  }\n  uVar5 = 0;\n  *(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10) = 0;\n  if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < *(uint *)(param_1 + 8));\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_00128e40(long param_1,long param_2,ulong param_3,int param_4,uint param_5)" identifier (parameter_list "(long param_1,long param_2,ulong param_3,int param_4,uint param_5)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  uint uVar5;\n  char acStack_48 [32];\n  \n  pcVar4 = "struct ";\n  param_3 = param_3 & 0xffffffff;\n  lVar1 = param_1 + 0x10;\n  *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;\n  if (param_4 == 0) {\n    pcVar4 = "union ";\n  }\n  iVar2 = FUN_001289c0(lVar1,pcVar4);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  if (param_2 == 0) {\n    sprintf(acStack_48,"%%anon%u",param_3);\n    uVar3 = FUN_00127080(lVar1,acStack_48);\n    if ((int)uVar3 == 0) {\n      return uVar3;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 == 0) goto LAB_00128f02;\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    param_3 = (ulong)param_5;\n    pcVar4 = " size %u";\n  }\n  else {\n    iVar2 = FUN_00127080(lVar1,param_2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 != 0) {\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }\n    pcVar4 = " id %u";\n  }\n  sprintf(acStack_48,pcVar4,param_3);\n  iVar2 = FUN_00127080(lVar1,acStack_48);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00127080(lVar1," */");\n  if (iVar2 == 0) {\n    return 0;\n  }\nLAB_00128f02:\n  iVar2 = FUN_00127080(lVar1,"\n");\n  if (iVar2 == 0) {\n    return 0;\n  }\n  uVar5 = 0;\n  *(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10) = 0;\n  if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < *(uint *)(param_1 + 8));\n  }\n  return 1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "char acStack_48 [32];" primitive_type (array_declarator "acStack_48 [32]" identifier [ number_literal ]) ;) (expression_statement "pcVar4 = "struct ";" (assignment_expression "pcVar4 = "struct "" identifier = (string_literal ""struct "" " string_content ")) ;) (expression_statement "param_3 = param_3 & 0xffffffff;" (assignment_expression "param_3 = param_3 & 0xffffffff" identifier = (binary_expression "param_3 & 0xffffffff" identifier & number_literal)) ;) (expression_statement "lVar1 = param_1 + 0x10;" (assignment_expression "lVar1 = param_1 + 0x10" identifier = (binary_expression "param_1 + 0x10" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;" (assignment_expression "*(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 8) + 2" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (param_4 == 0) {\n    pcVar4 = "union ";\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar4 = "union ";\n  }" { (expression_statement "pcVar4 = "union ";" (assignment_expression "pcVar4 = "union "" identifier = (string_literal ""union "" " string_content ")) ;) })) (expression_statement "iVar2 = FUN_001289c0(lVar1,pcVar4);" (assignment_expression "iVar2 = FUN_001289c0(lVar1,pcVar4)" identifier = (call_expression "FUN_001289c0(lVar1,pcVar4)" identifier (argument_list "(lVar1,pcVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_2 == 0) {\n    sprintf(acStack_48,"%%anon%u",param_3);\n    uVar3 = FUN_00127080(lVar1,acStack_48);\n    if ((int)uVar3 == 0) {\n      return uVar3;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 == 0) goto LAB_00128f02;\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    param_3 = (ulong)param_5;\n    pcVar4 = " size %u";\n  }\n  else {\n    iVar2 = FUN_00127080(lVar1,param_2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 != 0) {\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }\n    pcVar4 = " id %u";\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    sprintf(acStack_48,"%%anon%u",param_3);\n    uVar3 = FUN_00127080(lVar1,acStack_48);\n    if ((int)uVar3 == 0) {\n      return uVar3;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 == 0) goto LAB_00128f02;\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    param_3 = (ulong)param_5;\n    pcVar4 = " size %u";\n  }" { (expression_statement "sprintf(acStack_48,"%%anon%u",param_3);" (call_expression "sprintf(acStack_48,"%%anon%u",param_3)" identifier (argument_list "(acStack_48,"%%anon%u",param_3)" ( identifier , (string_literal ""%%anon%u"" " string_content ") , identifier ))) ;) (expression_statement "uVar3 = FUN_00127080(lVar1,acStack_48);" (assignment_expression "uVar3 = FUN_00127080(lVar1,acStack_48)" identifier = (call_expression "FUN_00127080(lVar1,acStack_48)" identifier (argument_list "(lVar1,acStack_48)" ( identifier , identifier )))) ;) (if_statement "if ((int)uVar3 == 0) {\n      return uVar3;\n    }" if (parenthesized_expression "((int)uVar3 == 0)" ( (binary_expression "(int)uVar3 == 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n      return uVar3;\n    }" { (return_statement "return uVar3;" return identifier ;) })) (expression_statement "iVar2 = FUN_00127080(lVar1,&DAT_0014592b);" (assignment_expression "iVar2 = FUN_00127080(lVar1,&DAT_0014592b)" identifier = (call_expression "FUN_00127080(lVar1,&DAT_0014592b)" identifier (argument_list "(lVar1,&DAT_0014592b)" ( identifier , (pointer_expression "&DAT_0014592b" & identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_5 == 0) goto LAB_00128f02;" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00128f02;" goto statement_identifier ;)) (expression_statement "iVar2 = FUN_00127080(lVar1,&DAT_0014592e);" (assignment_expression "iVar2 = FUN_00127080(lVar1,&DAT_0014592e)" identifier = (call_expression "FUN_00127080(lVar1,&DAT_0014592e)" identifier (argument_list "(lVar1,&DAT_0014592e)" ( identifier , (pointer_expression "&DAT_0014592e" & identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_3 = (ulong)param_5;" (assignment_expression "param_3 = (ulong)param_5" identifier = (cast_expression "(ulong)param_5" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "pcVar4 = " size %u";" (assignment_expression "pcVar4 = " size %u"" identifier = (string_literal "" size %u"" " string_content ")) ;) }) (else_clause "else {\n    iVar2 = FUN_00127080(lVar1,param_2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 != 0) {\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }\n    pcVar4 = " id %u";\n  }" else (compound_statement "{\n    iVar2 = FUN_00127080(lVar1,param_2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 != 0) {\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }\n    pcVar4 = " id %u";\n  }" { (expression_statement "iVar2 = FUN_00127080(lVar1,param_2);" (assignment_expression "iVar2 = FUN_00127080(lVar1,param_2)" identifier = (call_expression "FUN_00127080(lVar1,param_2)" identifier (argument_list "(lVar1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_00127080(lVar1,&DAT_0014592b);" (assignment_expression "iVar2 = FUN_00127080(lVar1,&DAT_0014592b)" identifier = (call_expression "FUN_00127080(lVar1,&DAT_0014592b)" identifier (argument_list "(lVar1,&DAT_0014592b)" ( identifier , (pointer_expression "&DAT_0014592b" & identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_00127080(lVar1,&DAT_0014592e);" (assignment_expression "iVar2 = FUN_00127080(lVar1,&DAT_0014592e)" identifier = (call_expression "FUN_00127080(lVar1,&DAT_0014592e)" identifier (argument_list "(lVar1,&DAT_0014592e)" ( identifier , (pointer_expression "&DAT_0014592e" & identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_5 != 0) {\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }" { (expression_statement "sprintf(acStack_48," size %u",(ulong)param_5);" (call_expression "sprintf(acStack_48," size %u",(ulong)param_5)" identifier (argument_list "(acStack_48," size %u",(ulong)param_5)" ( identifier , (string_literal "" size %u"" " string_content ") , (cast_expression "(ulong)param_5" ( (type_descriptor "ulong" type_identifier) ) identifier) ))) ;) (expression_statement "iVar2 = FUN_00127080(lVar1,acStack_48);" (assignment_expression "iVar2 = FUN_00127080(lVar1,acStack_48)" identifier = (call_expression "FUN_00127080(lVar1,acStack_48)" identifier (argument_list "(lVar1,acStack_48)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "pcVar4 = " id %u";" (assignment_expression "pcVar4 = " id %u"" identifier = (string_literal "" id %u"" " string_content ")) ;) }))) (expression_statement "sprintf(acStack_48,pcVar4,param_3);" (call_expression "sprintf(acStack_48,pcVar4,param_3)" identifier (argument_list "(acStack_48,pcVar4,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar2 = FUN_00127080(lVar1,acStack_48);" (assignment_expression "iVar2 = FUN_00127080(lVar1,acStack_48)" identifier = (call_expression "FUN_00127080(lVar1,acStack_48)" identifier (argument_list "(lVar1,acStack_48)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_00127080(lVar1," */");" (assignment_expression "iVar2 = FUN_00127080(lVar1," */")" identifier = (call_expression "FUN_00127080(lVar1," */")" identifier (argument_list "(lVar1," */")" ( identifier , (string_literal "" */"" " string_content ") )))) ;) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_00128f02:\n  iVar2 = FUN_00127080(lVar1,"\n");" statement_identifier : (expression_statement "iVar2 = FUN_00127080(lVar1,"\n");" (assignment_expression "iVar2 = FUN_00127080(lVar1,"\n")" identifier = (call_expression "FUN_00127080(lVar1,"\n")" identifier (argument_list "(lVar1,"\n")" ( identifier , (string_literal ""\n"" " escape_sequence ") )))) ;)) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10) = 0;" (assignment_expression "*(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10) = 0" (pointer_expression "*(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10)" * (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x10) + 0x10)" ( (binary_expression "*(long *)(param_1 + 0x10) + 0x10" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < *(uint *)(param_1 + 8));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" ( (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    do {\n      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < *(uint *)(param_1 + 8));\n  }" { (do_statement "do {\n      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < *(uint *)(param_1 + 8));" do (compound_statement "{\n      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      uVar5 = uVar5 + 1;\n    }" { (expression_statement "iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);" (assignment_expression "iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7)" identifier = (call_expression "FUN_00127080(lVar1,&DAT_0013d6b7)" identifier (argument_list "(lVar1,&DAT_0013d6b7)" ( identifier , (pointer_expression "&DAT_0013d6b7" & identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 < *(uint *)(param_1 + 8))" ( (binary_expression "uVar5 < *(uint *)(param_1 + 8)" identifier < (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "bfd_boolean pr_start_struct_type(void *p,char *tag,uint id,bfd_boolean structp,uint size)\n\n{\n  pr_handle *info_00;\n  bfd_boolean bVar1;\n  ulong uVar2;\n  char *pcVar3;\n  pr_handle *info;\n  uint uVar4;\n  char idbuf [20];\n  \n  pcVar3 = "struct ";\n  info_00 = (pr_handle *)((long)p + 0x10);\n  *(int *)((long)p + 8) = *(int *)((long)p + 8) + 2;\n  if (structp == 0) {\n    pcVar3 = "union ";\n  }\n  bVar1 = push_type(info_00,pcVar3);\n  if (bVar1 == 0) {\n    return 0;\n  }\n  if (tag == (char *)0x0) {\n    sprintf(idbuf,"%%anon%u",(ulong)id);\n    bVar1 = append_type(info_00,idbuf);\n    if (bVar1 == 0) {\n      return 0;\n    }\n    bVar1 = append_type(info_00," {");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    if (size == 0) goto LAB_00128f02;\n    bVar1 = append_type(info_00," /*");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    uVar2 = (ulong)size;\n    pcVar3 = " size %u";\n  }\n  else {\n    bVar1 = append_type(info_00,tag);\n    if (bVar1 == 0) {\n      return 0;\n    }\n    bVar1 = append_type(info_00," {");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    bVar1 = append_type(info_00," /*");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    if (size != 0) {\n      sprintf(idbuf," size %u",(ulong)size);\n      bVar1 = append_type(info_00,idbuf);\n      if (bVar1 == 0) {\n        return 0;\n      }\n    }\n    uVar2 = (ulong)id;\n    pcVar3 = " id %u";\n  }\n  sprintf(idbuf,pcVar3,uVar2);\n  bVar1 = append_type(info_00,idbuf);\n  if (bVar1 == 0) {\n    return 0;\n  }\n  bVar1 = append_type(info_00," */");\n  if (bVar1 == 0) {\n    return 0;\n  }\nLAB_00128f02:\n  bVar1 = append_type(info_00,"\n");\n  if (bVar1 == 0) {\n    return 0;\n  }\n  uVar4 = 0;\n  *(undefined4 *)(*(long *)((long)p + 0x10) + 0x10) = 0;\n  if (*(int *)((long)p + 8) != 0) {\n    do {\n      bVar1 = append_type(info_00," ");\n      if (bVar1 == 0) {\n        return 0;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)((long)p + 8));\n  }\n  return 1;\n}\n\n" (function_definition "bfd_boolean pr_start_struct_type(void *p,char *tag,uint id,bfd_boolean structp,uint size)\n\n{\n  pr_handle *info_00;\n  bfd_boolean bVar1;\n  ulong uVar2;\n  char *pcVar3;\n  pr_handle *info;\n  uint uVar4;\n  char idbuf [20];\n  \n  pcVar3 = "struct ";\n  info_00 = (pr_handle *)((long)p + 0x10);\n  *(int *)((long)p + 8) = *(int *)((long)p + 8) + 2;\n  if (structp == 0) {\n    pcVar3 = "union ";\n  }\n  bVar1 = push_type(info_00,pcVar3);\n  if (bVar1 == 0) {\n    return 0;\n  }\n  if (tag == (char *)0x0) {\n    sprintf(idbuf,"%%anon%u",(ulong)id);\n    bVar1 = append_type(info_00,idbuf);\n    if (bVar1 == 0) {\n      return 0;\n    }\n    bVar1 = append_type(info_00," {");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    if (size == 0) goto LAB_00128f02;\n    bVar1 = append_type(info_00," /*");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    uVar2 = (ulong)size;\n    pcVar3 = " size %u";\n  }\n  else {\n    bVar1 = append_type(info_00,tag);\n    if (bVar1 == 0) {\n      return 0;\n    }\n    bVar1 = append_type(info_00," {");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    bVar1 = append_type(info_00," /*");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    if (size != 0) {\n      sprintf(idbuf," size %u",(ulong)size);\n      bVar1 = append_type(info_00,idbuf);\n      if (bVar1 == 0) {\n        return 0;\n      }\n    }\n    uVar2 = (ulong)id;\n    pcVar3 = " id %u";\n  }\n  sprintf(idbuf,pcVar3,uVar2);\n  bVar1 = append_type(info_00,idbuf);\n  if (bVar1 == 0) {\n    return 0;\n  }\n  bVar1 = append_type(info_00," */");\n  if (bVar1 == 0) {\n    return 0;\n  }\nLAB_00128f02:\n  bVar1 = append_type(info_00,"\n");\n  if (bVar1 == 0) {\n    return 0;\n  }\n  uVar4 = 0;\n  *(undefined4 *)(*(long *)((long)p + 0x10) + 0x10) = 0;\n  if (*(int *)((long)p + 8) != 0) {\n    do {\n      bVar1 = append_type(info_00," ");\n      if (bVar1 == 0) {\n        return 0;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)((long)p + 8));\n  }\n  return 1;\n}" type_identifier (function_declarator "pr_start_struct_type(void *p,char *tag,uint id,bfd_boolean structp,uint size)" identifier (parameter_list "(void *p,char *tag,uint id,bfd_boolean structp,uint size)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *tag" primitive_type (pointer_declarator "*tag" * identifier)) , (parameter_declaration "uint id" type_identifier identifier) , (parameter_declaration "bfd_boolean structp" type_identifier identifier) , (parameter_declaration "uint size" type_identifier identifier) ))) (compound_statement "{\n  pr_handle *info_00;\n  bfd_boolean bVar1;\n  ulong uVar2;\n  char *pcVar3;\n  pr_handle *info;\n  uint uVar4;\n  char idbuf [20];\n  \n  pcVar3 = "struct ";\n  info_00 = (pr_handle *)((long)p + 0x10);\n  *(int *)((long)p + 8) = *(int *)((long)p + 8) + 2;\n  if (structp == 0) {\n    pcVar3 = "union ";\n  }\n  bVar1 = push_type(info_00,pcVar3);\n  if (bVar1 == 0) {\n    return 0;\n  }\n  if (tag == (char *)0x0) {\n    sprintf(idbuf,"%%anon%u",(ulong)id);\n    bVar1 = append_type(info_00,idbuf);\n    if (bVar1 == 0) {\n      return 0;\n    }\n    bVar1 = append_type(info_00," {");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    if (size == 0) goto LAB_00128f02;\n    bVar1 = append_type(info_00," /*");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    uVar2 = (ulong)size;\n    pcVar3 = " size %u";\n  }\n  else {\n    bVar1 = append_type(info_00,tag);\n    if (bVar1 == 0) {\n      return 0;\n    }\n    bVar1 = append_type(info_00," {");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    bVar1 = append_type(info_00," /*");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    if (size != 0) {\n      sprintf(idbuf," size %u",(ulong)size);\n      bVar1 = append_type(info_00,idbuf);\n      if (bVar1 == 0) {\n        return 0;\n      }\n    }\n    uVar2 = (ulong)id;\n    pcVar3 = " id %u";\n  }\n  sprintf(idbuf,pcVar3,uVar2);\n  bVar1 = append_type(info_00,idbuf);\n  if (bVar1 == 0) {\n    return 0;\n  }\n  bVar1 = append_type(info_00," */");\n  if (bVar1 == 0) {\n    return 0;\n  }\nLAB_00128f02:\n  bVar1 = append_type(info_00,"\n");\n  if (bVar1 == 0) {\n    return 0;\n  }\n  uVar4 = 0;\n  *(undefined4 *)(*(long *)((long)p + 0x10) + 0x10) = 0;\n  if (*(int *)((long)p + 8) != 0) {\n    do {\n      bVar1 = append_type(info_00," ");\n      if (bVar1 == 0) {\n        return 0;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)((long)p + 8));\n  }\n  return 1;\n}" { (declaration "pr_handle *info_00;" type_identifier (pointer_declarator "*info_00" * identifier) ;) (declaration "bfd_boolean bVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "pr_handle *info;" type_identifier (pointer_declarator "*info" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char idbuf [20];" primitive_type (array_declarator "idbuf [20]" identifier [ number_literal ]) ;) (expression_statement "pcVar3 = "struct ";" (assignment_expression "pcVar3 = "struct "" identifier = (string_literal ""struct "" " string_content ")) ;) (expression_statement "info_00 = (pr_handle *)((long)p + 0x10);" (assignment_expression "info_00 = (pr_handle *)((long)p + 0x10)" identifier = (cast_expression "(pr_handle *)((long)p + 0x10)" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)p + 0x10)" ( (binary_expression "(long)p + 0x10" (cast_expression "(long)p" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) (expression_statement "*(int *)((long)p + 8) = *(int *)((long)p + 8) + 2;" (assignment_expression "*(int *)((long)p + 8) = *(int *)((long)p + 8) + 2" (pointer_expression "*(int *)((long)p + 8)" * (cast_expression "(int *)((long)p + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)p + 8)" ( (binary_expression "(long)p + 8" (cast_expression "(long)p" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "*(int *)((long)p + 8) + 2" (pointer_expression "*(int *)((long)p + 8)" * (cast_expression "(int *)((long)p + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)p + 8)" ( (binary_expression "(long)p + 8" (cast_expression "(long)p" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) (if_statement "if (structp == 0) {\n    pcVar3 = "union ";\n  }" if (parenthesized_expression "(structp == 0)" ( (binary_expression "structp == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar3 = "union ";\n  }" { (expression_statement "pcVar3 = "union ";" (assignment_expression "pcVar3 = "union "" identifier = (string_literal ""union "" " string_content ")) ;) })) (expression_statement "bVar1 = push_type(info_00,pcVar3);" (assignment_expression "bVar1 = push_type(info_00,pcVar3)" identifier = (call_expression "push_type(info_00,pcVar3)" identifier (argument_list "(info_00,pcVar3)" ( identifier , identifier )))) ;) (if_statement "if (bVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (tag == (char *)0x0) {\n    sprintf(idbuf,"%%anon%u",(ulong)id);\n    bVar1 = append_type(info_00,idbuf);\n    if (bVar1 == 0) {\n      return 0;\n    }\n    bVar1 = append_type(info_00," {");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    if (size == 0) goto LAB_00128f02;\n    bVar1 = append_type(info_00," /*");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    uVar2 = (ulong)size;\n    pcVar3 = " size %u";\n  }\n  else {\n    bVar1 = append_type(info_00,tag);\n    if (bVar1 == 0) {\n      return 0;\n    }\n    bVar1 = append_type(info_00," {");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    bVar1 = append_type(info_00," /*");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    if (size != 0) {\n      sprintf(idbuf," size %u",(ulong)size);\n      bVar1 = append_type(info_00,idbuf);\n      if (bVar1 == 0) {\n        return 0;\n      }\n    }\n    uVar2 = (ulong)id;\n    pcVar3 = " id %u";\n  }" if (parenthesized_expression "(tag == (char *)0x0)" ( (binary_expression "tag == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sprintf(idbuf,"%%anon%u",(ulong)id);\n    bVar1 = append_type(info_00,idbuf);\n    if (bVar1 == 0) {\n      return 0;\n    }\n    bVar1 = append_type(info_00," {");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    if (size == 0) goto LAB_00128f02;\n    bVar1 = append_type(info_00," /*");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    uVar2 = (ulong)size;\n    pcVar3 = " size %u";\n  }" { (expression_statement "sprintf(idbuf,"%%anon%u",(ulong)id);" (call_expression "sprintf(idbuf,"%%anon%u",(ulong)id)" identifier (argument_list "(idbuf,"%%anon%u",(ulong)id)" ( identifier , (string_literal ""%%anon%u"" " string_content ") , (cast_expression "(ulong)id" ( (type_descriptor "ulong" type_identifier) ) identifier) ))) ;) (expression_statement "bVar1 = append_type(info_00,idbuf);" (assignment_expression "bVar1 = append_type(info_00,idbuf)" identifier = (call_expression "append_type(info_00,idbuf)" identifier (argument_list "(info_00,idbuf)" ( identifier , identifier )))) ;) (if_statement "if (bVar1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar1 = append_type(info_00," {");" (assignment_expression "bVar1 = append_type(info_00," {")" identifier = (call_expression "append_type(info_00," {")" identifier (argument_list "(info_00," {")" ( identifier , (string_literal "" {"" " string_content ") )))) ;) (if_statement "if (bVar1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (size == 0) goto LAB_00128f02;" if (parenthesized_expression "(size == 0)" ( (binary_expression "size == 0" identifier == number_literal) )) (goto_statement "goto LAB_00128f02;" goto statement_identifier ;)) (expression_statement "bVar1 = append_type(info_00," /*");" (assignment_expression "bVar1 = append_type(info_00," /*")" identifier = (call_expression "append_type(info_00," /*")" identifier (argument_list "(info_00," /*")" ( identifier , (string_literal "" /*"" " string_content ") )))) ;) (if_statement "if (bVar1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = (ulong)size;" (assignment_expression "uVar2 = (ulong)size" identifier = (cast_expression "(ulong)size" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "pcVar3 = " size %u";" (assignment_expression "pcVar3 = " size %u"" identifier = (string_literal "" size %u"" " string_content ")) ;) }) (else_clause "else {\n    bVar1 = append_type(info_00,tag);\n    if (bVar1 == 0) {\n      return 0;\n    }\n    bVar1 = append_type(info_00," {");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    bVar1 = append_type(info_00," /*");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    if (size != 0) {\n      sprintf(idbuf," size %u",(ulong)size);\n      bVar1 = append_type(info_00,idbuf);\n      if (bVar1 == 0) {\n        return 0;\n      }\n    }\n    uVar2 = (ulong)id;\n    pcVar3 = " id %u";\n  }" else (compound_statement "{\n    bVar1 = append_type(info_00,tag);\n    if (bVar1 == 0) {\n      return 0;\n    }\n    bVar1 = append_type(info_00," {");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    bVar1 = append_type(info_00," /*");\n    if (bVar1 == 0) {\n      return 0;\n    }\n    if (size != 0) {\n      sprintf(idbuf," size %u",(ulong)size);\n      bVar1 = append_type(info_00,idbuf);\n      if (bVar1 == 0) {\n        return 0;\n      }\n    }\n    uVar2 = (ulong)id;\n    pcVar3 = " id %u";\n  }" { (expression_statement "bVar1 = append_type(info_00,tag);" (assignment_expression "bVar1 = append_type(info_00,tag)" identifier = (call_expression "append_type(info_00,tag)" identifier (argument_list "(info_00,tag)" ( identifier , identifier )))) ;) (if_statement "if (bVar1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar1 = append_type(info_00," {");" (assignment_expression "bVar1 = append_type(info_00," {")" identifier = (call_expression "append_type(info_00," {")" identifier (argument_list "(info_00," {")" ( identifier , (string_literal "" {"" " string_content ") )))) ;) (if_statement "if (bVar1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar1 = append_type(info_00," /*");" (assignment_expression "bVar1 = append_type(info_00," /*")" identifier = (call_expression "append_type(info_00," /*")" identifier (argument_list "(info_00," /*")" ( identifier , (string_literal "" /*"" " string_content ") )))) ;) (if_statement "if (bVar1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (size != 0) {\n      sprintf(idbuf," size %u",(ulong)size);\n      bVar1 = append_type(info_00,idbuf);\n      if (bVar1 == 0) {\n        return 0;\n      }\n    }" if (parenthesized_expression "(size != 0)" ( (binary_expression "size != 0" identifier != number_literal) )) (compound_statement "{\n      sprintf(idbuf," size %u",(ulong)size);\n      bVar1 = append_type(info_00,idbuf);\n      if (bVar1 == 0) {\n        return 0;\n      }\n    }" { (expression_statement "sprintf(idbuf," size %u",(ulong)size);" (call_expression "sprintf(idbuf," size %u",(ulong)size)" identifier (argument_list "(idbuf," size %u",(ulong)size)" ( identifier , (string_literal "" size %u"" " string_content ") , (cast_expression "(ulong)size" ( (type_descriptor "ulong" type_identifier) ) identifier) ))) ;) (expression_statement "bVar1 = append_type(info_00,idbuf);" (assignment_expression "bVar1 = append_type(info_00,idbuf)" identifier = (call_expression "append_type(info_00,idbuf)" identifier (argument_list "(info_00,idbuf)" ( identifier , identifier )))) ;) (if_statement "if (bVar1 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "uVar2 = (ulong)id;" (assignment_expression "uVar2 = (ulong)id" identifier = (cast_expression "(ulong)id" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "pcVar3 = " id %u";" (assignment_expression "pcVar3 = " id %u"" identifier = (string_literal "" id %u"" " string_content ")) ;) }))) (expression_statement "sprintf(idbuf,pcVar3,uVar2);" (call_expression "sprintf(idbuf,pcVar3,uVar2)" identifier (argument_list "(idbuf,pcVar3,uVar2)" ( identifier , identifier , identifier ))) ;) (expression_statement "bVar1 = append_type(info_00,idbuf);" (assignment_expression "bVar1 = append_type(info_00,idbuf)" identifier = (call_expression "append_type(info_00,idbuf)" identifier (argument_list "(info_00,idbuf)" ( identifier , identifier )))) ;) (if_statement "if (bVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar1 = append_type(info_00," */");" (assignment_expression "bVar1 = append_type(info_00," */")" identifier = (call_expression "append_type(info_00," */")" identifier (argument_list "(info_00," */")" ( identifier , (string_literal "" */"" " string_content ") )))) ;) (if_statement "if (bVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_00128f02:\n  bVar1 = append_type(info_00,"\n");" statement_identifier : (expression_statement "bVar1 = append_type(info_00,"\n");" (assignment_expression "bVar1 = append_type(info_00,"\n")" identifier = (call_expression "append_type(info_00,"\n")" identifier (argument_list "(info_00,"\n")" ( identifier , (string_literal ""\n"" " escape_sequence ") )))) ;)) (if_statement "if (bVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(*(long *)((long)p + 0x10) + 0x10) = 0;" (assignment_expression "*(undefined4 *)(*(long *)((long)p + 0x10) + 0x10) = 0" (pointer_expression "*(undefined4 *)(*(long *)((long)p + 0x10) + 0x10)" * (cast_expression "(undefined4 *)(*(long *)((long)p + 0x10) + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)((long)p + 0x10) + 0x10)" ( (binary_expression "*(long *)((long)p + 0x10) + 0x10" (pointer_expression "*(long *)((long)p + 0x10)" * (cast_expression "(long *)((long)p + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)p + 0x10)" ( (binary_expression "(long)p + 0x10" (cast_expression "(long)p" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal) )))) = number_literal) ;) (if_statement "if (*(int *)((long)p + 8) != 0) {\n    do {\n      bVar1 = append_type(info_00," ");\n      if (bVar1 == 0) {\n        return 0;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)((long)p + 8));\n  }" if (parenthesized_expression "(*(int *)((long)p + 8) != 0)" ( (binary_expression "*(int *)((long)p + 8) != 0" (pointer_expression "*(int *)((long)p + 8)" * (cast_expression "(int *)((long)p + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)p + 8)" ( (binary_expression "(long)p + 8" (cast_expression "(long)p" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    do {\n      bVar1 = append_type(info_00," ");\n      if (bVar1 == 0) {\n        return 0;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)((long)p + 8));\n  }" { (do_statement "do {\n      bVar1 = append_type(info_00," ");\n      if (bVar1 == 0) {\n        return 0;\n      }\n      uVar4 = uVar4 + 1;\n    } while (uVar4 < *(uint *)((long)p + 8));" do (compound_statement "{\n      bVar1 = append_type(info_00," ");\n      if (bVar1 == 0) {\n        return 0;\n      }\n      uVar4 = uVar4 + 1;\n    }" { (expression_statement "bVar1 = append_type(info_00," ");" (assignment_expression "bVar1 = append_type(info_00," ")" identifier = (call_expression "append_type(info_00," ")" identifier (argument_list "(info_00," ")" ( identifier , (string_literal "" "" " string_content ") )))) ;) (if_statement "if (bVar1 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 < *(uint *)((long)p + 8))" ( (binary_expression "uVar4 < *(uint *)((long)p + 8)" identifier < (pointer_expression "*(uint *)((long)p + 8)" * (cast_expression "(uint *)((long)p + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)p + 8)" ( (binary_expression "(long)p + 8" (cast_expression "(long)p" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )) ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined8 FUN_00128e40(long param_1,long param_2,ulong param_3,int param_4,uint param_5)\n\n{\n  long lVar1;\n  int iVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  uint uVar5;\n  char acStack_48 [32];\n  \n  pcVar4 = "struct ";\n  param_3 = param_3 & 0xffffffff;\n  lVar1 = param_1 + 0x10;\n  *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;\n  if (param_4 == 0) {\n    pcVar4 = "union ";\n  }\n  iVar2 = FUN_001289c0(lVar1,pcVar4);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  if (param_2 == 0) {\n    sprintf(acStack_48,"%%anon%u",param_3);\n    uVar3 = FUN_00127080(lVar1,acStack_48);\n    if ((int)uVar3 == 0) {\n      return uVar3;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 == 0) goto LAB_00128f02;\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    param_3 = (ulong)param_5;\n    pcVar4 = " size %u";\n  }\n  else {\n    iVar2 = FUN_00127080(lVar1,param_2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 != 0) {\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }\n    pcVar4 = " id %u";\n  }\n  sprintf(acStack_48,pcVar4,param_3);\n  iVar2 = FUN_00127080(lVar1,acStack_48);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00127080(lVar1," */");\n  if (iVar2 == 0) {\n    return 0;\n  }\nLAB_00128f02:\n  iVar2 = FUN_00127080(lVar1,"\n");\n  if (iVar2 == 0) {\n    return 0;\n  }\n  uVar5 = 0;\n  *(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10) = 0;\n  if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < *(uint *)(param_1 + 8));\n  }\n  return 1;\n}\n\n" (function_definition "undefined8 FUN_00128e40(long param_1,long param_2,ulong param_3,int param_4,uint param_5)\n\n{\n  long lVar1;\n  int iVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  uint uVar5;\n  char acStack_48 [32];\n  \n  pcVar4 = "struct ";\n  param_3 = param_3 & 0xffffffff;\n  lVar1 = param_1 + 0x10;\n  *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;\n  if (param_4 == 0) {\n    pcVar4 = "union ";\n  }\n  iVar2 = FUN_001289c0(lVar1,pcVar4);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  if (param_2 == 0) {\n    sprintf(acStack_48,"%%anon%u",param_3);\n    uVar3 = FUN_00127080(lVar1,acStack_48);\n    if ((int)uVar3 == 0) {\n      return uVar3;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 == 0) goto LAB_00128f02;\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    param_3 = (ulong)param_5;\n    pcVar4 = " size %u";\n  }\n  else {\n    iVar2 = FUN_00127080(lVar1,param_2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 != 0) {\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }\n    pcVar4 = " id %u";\n  }\n  sprintf(acStack_48,pcVar4,param_3);\n  iVar2 = FUN_00127080(lVar1,acStack_48);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00127080(lVar1," */");\n  if (iVar2 == 0) {\n    return 0;\n  }\nLAB_00128f02:\n  iVar2 = FUN_00127080(lVar1,"\n");\n  if (iVar2 == 0) {\n    return 0;\n  }\n  uVar5 = 0;\n  *(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10) = 0;\n  if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < *(uint *)(param_1 + 8));\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_00128e40(long param_1,long param_2,ulong param_3,int param_4,uint param_5)" identifier (parameter_list "(long param_1,long param_2,ulong param_3,int param_4,uint param_5)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  uint uVar5;\n  char acStack_48 [32];\n  \n  pcVar4 = "struct ";\n  param_3 = param_3 & 0xffffffff;\n  lVar1 = param_1 + 0x10;\n  *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;\n  if (param_4 == 0) {\n    pcVar4 = "union ";\n  }\n  iVar2 = FUN_001289c0(lVar1,pcVar4);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  if (param_2 == 0) {\n    sprintf(acStack_48,"%%anon%u",param_3);\n    uVar3 = FUN_00127080(lVar1,acStack_48);\n    if ((int)uVar3 == 0) {\n      return uVar3;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 == 0) goto LAB_00128f02;\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    param_3 = (ulong)param_5;\n    pcVar4 = " size %u";\n  }\n  else {\n    iVar2 = FUN_00127080(lVar1,param_2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 != 0) {\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }\n    pcVar4 = " id %u";\n  }\n  sprintf(acStack_48,pcVar4,param_3);\n  iVar2 = FUN_00127080(lVar1,acStack_48);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00127080(lVar1," */");\n  if (iVar2 == 0) {\n    return 0;\n  }\nLAB_00128f02:\n  iVar2 = FUN_00127080(lVar1,"\n");\n  if (iVar2 == 0) {\n    return 0;\n  }\n  uVar5 = 0;\n  *(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10) = 0;\n  if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < *(uint *)(param_1 + 8));\n  }\n  return 1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "char acStack_48 [32];" primitive_type (array_declarator "acStack_48 [32]" identifier [ number_literal ]) ;) (expression_statement "pcVar4 = "struct ";" (assignment_expression "pcVar4 = "struct "" identifier = (string_literal ""struct "" " string_content ")) ;) (expression_statement "param_3 = param_3 & 0xffffffff;" (assignment_expression "param_3 = param_3 & 0xffffffff" identifier = (binary_expression "param_3 & 0xffffffff" identifier & number_literal)) ;) (expression_statement "lVar1 = param_1 + 0x10;" (assignment_expression "lVar1 = param_1 + 0x10" identifier = (binary_expression "param_1 + 0x10" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;" (assignment_expression "*(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 8) + 2" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (param_4 == 0) {\n    pcVar4 = "union ";\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar4 = "union ";\n  }" { (expression_statement "pcVar4 = "union ";" (assignment_expression "pcVar4 = "union "" identifier = (string_literal ""union "" " string_content ")) ;) })) (expression_statement "iVar2 = FUN_001289c0(lVar1,pcVar4);" (assignment_expression "iVar2 = FUN_001289c0(lVar1,pcVar4)" identifier = (call_expression "FUN_001289c0(lVar1,pcVar4)" identifier (argument_list "(lVar1,pcVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_2 == 0) {\n    sprintf(acStack_48,"%%anon%u",param_3);\n    uVar3 = FUN_00127080(lVar1,acStack_48);\n    if ((int)uVar3 == 0) {\n      return uVar3;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 == 0) goto LAB_00128f02;\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    param_3 = (ulong)param_5;\n    pcVar4 = " size %u";\n  }\n  else {\n    iVar2 = FUN_00127080(lVar1,param_2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 != 0) {\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }\n    pcVar4 = " id %u";\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    sprintf(acStack_48,"%%anon%u",param_3);\n    uVar3 = FUN_00127080(lVar1,acStack_48);\n    if ((int)uVar3 == 0) {\n      return uVar3;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 == 0) goto LAB_00128f02;\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    param_3 = (ulong)param_5;\n    pcVar4 = " size %u";\n  }" { (expression_statement "sprintf(acStack_48,"%%anon%u",param_3);" (call_expression "sprintf(acStack_48,"%%anon%u",param_3)" identifier (argument_list "(acStack_48,"%%anon%u",param_3)" ( identifier , (string_literal ""%%anon%u"" " string_content ") , identifier ))) ;) (expression_statement "uVar3 = FUN_00127080(lVar1,acStack_48);" (assignment_expression "uVar3 = FUN_00127080(lVar1,acStack_48)" identifier = (call_expression "FUN_00127080(lVar1,acStack_48)" identifier (argument_list "(lVar1,acStack_48)" ( identifier , identifier )))) ;) (if_statement "if ((int)uVar3 == 0) {\n      return uVar3;\n    }" if (parenthesized_expression "((int)uVar3 == 0)" ( (binary_expression "(int)uVar3 == 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n      return uVar3;\n    }" { (return_statement "return uVar3;" return identifier ;) })) (expression_statement "iVar2 = FUN_00127080(lVar1,&DAT_0014592b);" (assignment_expression "iVar2 = FUN_00127080(lVar1,&DAT_0014592b)" identifier = (call_expression "FUN_00127080(lVar1,&DAT_0014592b)" identifier (argument_list "(lVar1,&DAT_0014592b)" ( identifier , (pointer_expression "&DAT_0014592b" & identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_5 == 0) goto LAB_00128f02;" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00128f02;" goto statement_identifier ;)) (expression_statement "iVar2 = FUN_00127080(lVar1,&DAT_0014592e);" (assignment_expression "iVar2 = FUN_00127080(lVar1,&DAT_0014592e)" identifier = (call_expression "FUN_00127080(lVar1,&DAT_0014592e)" identifier (argument_list "(lVar1,&DAT_0014592e)" ( identifier , (pointer_expression "&DAT_0014592e" & identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_3 = (ulong)param_5;" (assignment_expression "param_3 = (ulong)param_5" identifier = (cast_expression "(ulong)param_5" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "pcVar4 = " size %u";" (assignment_expression "pcVar4 = " size %u"" identifier = (string_literal "" size %u"" " string_content ")) ;) }) (else_clause "else {\n    iVar2 = FUN_00127080(lVar1,param_2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 != 0) {\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }\n    pcVar4 = " id %u";\n  }" else (compound_statement "{\n    iVar2 = FUN_00127080(lVar1,param_2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 != 0) {\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }\n    pcVar4 = " id %u";\n  }" { (expression_statement "iVar2 = FUN_00127080(lVar1,param_2);" (assignment_expression "iVar2 = FUN_00127080(lVar1,param_2)" identifier = (call_expression "FUN_00127080(lVar1,param_2)" identifier (argument_list "(lVar1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_00127080(lVar1,&DAT_0014592b);" (assignment_expression "iVar2 = FUN_00127080(lVar1,&DAT_0014592b)" identifier = (call_expression "FUN_00127080(lVar1,&DAT_0014592b)" identifier (argument_list "(lVar1,&DAT_0014592b)" ( identifier , (pointer_expression "&DAT_0014592b" & identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_00127080(lVar1,&DAT_0014592e);" (assignment_expression "iVar2 = FUN_00127080(lVar1,&DAT_0014592e)" identifier = (call_expression "FUN_00127080(lVar1,&DAT_0014592e)" identifier (argument_list "(lVar1,&DAT_0014592e)" ( identifier , (pointer_expression "&DAT_0014592e" & identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_5 != 0) {\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }" { (expression_statement "sprintf(acStack_48," size %u",(ulong)param_5);" (call_expression "sprintf(acStack_48," size %u",(ulong)param_5)" identifier (argument_list "(acStack_48," size %u",(ulong)param_5)" ( identifier , (string_literal "" size %u"" " string_content ") , (cast_expression "(ulong)param_5" ( (type_descriptor "ulong" type_identifier) ) identifier) ))) ;) (expression_statement "iVar2 = FUN_00127080(lVar1,acStack_48);" (assignment_expression "iVar2 = FUN_00127080(lVar1,acStack_48)" identifier = (call_expression "FUN_00127080(lVar1,acStack_48)" identifier (argument_list "(lVar1,acStack_48)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "pcVar4 = " id %u";" (assignment_expression "pcVar4 = " id %u"" identifier = (string_literal "" id %u"" " string_content ")) ;) }))) (expression_statement "sprintf(acStack_48,pcVar4,param_3);" (call_expression "sprintf(acStack_48,pcVar4,param_3)" identifier (argument_list "(acStack_48,pcVar4,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar2 = FUN_00127080(lVar1,acStack_48);" (assignment_expression "iVar2 = FUN_00127080(lVar1,acStack_48)" identifier = (call_expression "FUN_00127080(lVar1,acStack_48)" identifier (argument_list "(lVar1,acStack_48)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_00127080(lVar1," */");" (assignment_expression "iVar2 = FUN_00127080(lVar1," */")" identifier = (call_expression "FUN_00127080(lVar1," */")" identifier (argument_list "(lVar1," */")" ( identifier , (string_literal "" */"" " string_content ") )))) ;) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_00128f02:\n  iVar2 = FUN_00127080(lVar1,"\n");" statement_identifier : (expression_statement "iVar2 = FUN_00127080(lVar1,"\n");" (assignment_expression "iVar2 = FUN_00127080(lVar1,"\n")" identifier = (call_expression "FUN_00127080(lVar1,"\n")" identifier (argument_list "(lVar1,"\n")" ( identifier , (string_literal ""\n"" " escape_sequence ") )))) ;)) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10) = 0;" (assignment_expression "*(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10) = 0" (pointer_expression "*(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10)" * (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x10) + 0x10)" ( (binary_expression "*(long *)(param_1 + 0x10) + 0x10" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < *(uint *)(param_1 + 8));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" ( (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    do {\n      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < *(uint *)(param_1 + 8));\n  }" { (do_statement "do {\n      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < *(uint *)(param_1 + 8));" do (compound_statement "{\n      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      uVar5 = uVar5 + 1;\n    }" { (expression_statement "iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);" (assignment_expression "iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7)" identifier = (call_expression "FUN_00127080(lVar1,&DAT_0013d6b7)" identifier (argument_list "(lVar1,&DAT_0013d6b7)" ( identifier , (pointer_expression "&DAT_0013d6b7" & identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 < *(uint *)(param_1 + 8))" ( (binary_expression "uVar5 < *(uint *)(param_1 + 8)" identifier < (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " escape_sequence ") )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_00128e40(long param_1,long param_2,ulong param_3,int param_4,uint param_5)\n\n{\n  long lVar1;\n  int iVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  uint uVar5;\n  char acStack_48 [32];\n  \n  pcVar4 = "struct ";\n  param_3 = param_3 & 0xffffffff;\n  lVar1 = param_1 + 0x10;\n  *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;\n  if (param_4 == 0) {\n    pcVar4 = "union ";\n  }\n  iVar2 = FUN_001289c0(lVar1,pcVar4);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  if (param_2 == 0) {\n    sprintf(acStack_48,"%%anon%u",param_3);\n    uVar3 = FUN_00127080(lVar1,acStack_48);\n    if ((int)uVar3 == 0) {\n      return uVar3;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 == 0) goto LAB_00128f02;\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    param_3 = (ulong)param_5;\n    pcVar4 = " size %u";\n  }\n  else {\n    iVar2 = FUN_00127080(lVar1,param_2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 != 0) {\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }\n    pcVar4 = " id %u";\n  }\n  sprintf(acStack_48,pcVar4,param_3);\n  iVar2 = FUN_00127080(lVar1,acStack_48);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00127080(lVar1," */");\n  if (iVar2 == 0) {\n    return 0;\n  }\nLAB_00128f02:\n  iVar2 = FUN_00127080(lVar1,"\n");\n  if (iVar2 == 0) {\n    return 0;\n  }\n  uVar5 = 0;\n  *(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10) = 0;\n  if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < *(uint *)(param_1 + 8));\n  }\n  return 1;\n}" (type_identifier "undefined8") (function_declarator "FUN_00128e40(long param_1,long param_2,ulong param_3,int param_4,uint param_5)" (identifier "FUN_00128e40") (parameter_list "(long param_1,long param_2,ulong param_3,int param_4,uint param_5)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "ulong param_3" (type_identifier "ulong") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) () ")"))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  uint uVar5;\n  char acStack_48 [32];\n  \n  pcVar4 = "struct ";\n  param_3 = param_3 & 0xffffffff;\n  lVar1 = param_1 + 0x10;\n  *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;\n  if (param_4 == 0) {\n    pcVar4 = "union ";\n  }\n  iVar2 = FUN_001289c0(lVar1,pcVar4);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  if (param_2 == 0) {\n    sprintf(acStack_48,"%%anon%u",param_3);\n    uVar3 = FUN_00127080(lVar1,acStack_48);\n    if ((int)uVar3 == 0) {\n      return uVar3;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 == 0) goto LAB_00128f02;\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    param_3 = (ulong)param_5;\n    pcVar4 = " size %u";\n  }\n  else {\n    iVar2 = FUN_00127080(lVar1,param_2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 != 0) {\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }\n    pcVar4 = " id %u";\n  }\n  sprintf(acStack_48,pcVar4,param_3);\n  iVar2 = FUN_00127080(lVar1,acStack_48);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00127080(lVar1," */");\n  if (iVar2 == 0) {\n    return 0;\n  }\nLAB_00128f02:\n  iVar2 = FUN_00127080(lVar1,"\n");\n  if (iVar2 == 0) {\n    return 0;\n  }\n  uVar5 = 0;\n  *(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10) = 0;\n  if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < *(uint *)(param_1 + 8));\n  }\n  return 1;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "char acStack_48 [32];" (primitive_type "char") (array_declarator "acStack_48 [32]" (identifier "acStack_48") ([ "[") (number_literal "32") (] "]")) (; ";")) (expression_statement "pcVar4 = "struct ";" (assignment_expression "pcVar4 = "struct "" (identifier "pcVar4") (= "=") (string_literal ""struct "" (" """) (string_content "struct ") (" """))) (; ";")) (expression_statement "param_3 = param_3 & 0xffffffff;" (assignment_expression "param_3 = param_3 & 0xffffffff" (identifier "param_3") (= "=") (binary_expression "param_3 & 0xffffffff" (identifier "param_3") (& "&") (number_literal "0xffffffff"))) (; ";")) (expression_statement "lVar1 = param_1 + 0x10;" (assignment_expression "lVar1 = param_1 + 0x10" (identifier "lVar1") (= "=") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10"))) (; ";")) (expression_statement "*(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;" (assignment_expression "*(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 8) + 2" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "2"))) (; ";")) (if_statement "if (param_4 == 0) {\n    pcVar4 = "union ";\n  }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar4 = "union ";\n  }" ({ "{") (expression_statement "pcVar4 = "union ";" (assignment_expression "pcVar4 = "union "" (identifier "pcVar4") (= "=") (string_literal ""union "" (" """) (string_content "union ") (" """))) (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_001289c0(lVar1,pcVar4);" (assignment_expression "iVar2 = FUN_001289c0(lVar1,pcVar4)" (identifier "iVar2") (= "=") (call_expression "FUN_001289c0(lVar1,pcVar4)" (identifier "FUN_001289c0") (argument_list "(lVar1,pcVar4)" (( "(") (identifier "lVar1") (, ",") (identifier "pcVar4") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_2 == 0) {\n    sprintf(acStack_48,"%%anon%u",param_3);\n    uVar3 = FUN_00127080(lVar1,acStack_48);\n    if ((int)uVar3 == 0) {\n      return uVar3;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 == 0) goto LAB_00128f02;\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    param_3 = (ulong)param_5;\n    pcVar4 = " size %u";\n  }\n  else {\n    iVar2 = FUN_00127080(lVar1,param_2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 != 0) {\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }\n    pcVar4 = " id %u";\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    sprintf(acStack_48,"%%anon%u",param_3);\n    uVar3 = FUN_00127080(lVar1,acStack_48);\n    if ((int)uVar3 == 0) {\n      return uVar3;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 == 0) goto LAB_00128f02;\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    param_3 = (ulong)param_5;\n    pcVar4 = " size %u";\n  }" ({ "{") (expression_statement "sprintf(acStack_48,"%%anon%u",param_3);" (call_expression "sprintf(acStack_48,"%%anon%u",param_3)" (identifier "sprintf") (argument_list "(acStack_48,"%%anon%u",param_3)" (( "(") (identifier "acStack_48") (, ",") (string_literal ""%%anon%u"" (" """) (string_content "%%anon%u") (" """)) (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "uVar3 = FUN_00127080(lVar1,acStack_48);" (assignment_expression "uVar3 = FUN_00127080(lVar1,acStack_48)" (identifier "uVar3") (= "=") (call_expression "FUN_00127080(lVar1,acStack_48)" (identifier "FUN_00127080") (argument_list "(lVar1,acStack_48)" (( "(") (identifier "lVar1") (, ",") (identifier "acStack_48") () ")")))) (; ";")) (if_statement "if ((int)uVar3 == 0) {\n      return uVar3;\n    }" (if "if") (parenthesized_expression "((int)uVar3 == 0)" (( "(") (binary_expression "(int)uVar3 == 0" (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return uVar3;\n    }" ({ "{") (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00127080(lVar1,&DAT_0014592b);" (assignment_expression "iVar2 = FUN_00127080(lVar1,&DAT_0014592b)" (identifier "iVar2") (= "=") (call_expression "FUN_00127080(lVar1,&DAT_0014592b)" (identifier "FUN_00127080") (argument_list "(lVar1,&DAT_0014592b)" (( "(") (identifier "lVar1") (, ",") (pointer_expression "&DAT_0014592b" (& "&") (identifier "DAT_0014592b")) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_5 == 0) goto LAB_00128f02;" (if "if") (parenthesized_expression "(param_5 == 0)" (( "(") (binary_expression "param_5 == 0" (identifier "param_5") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00128f02;" (goto "goto") (statement_identifier "LAB_00128f02") (; ";"))) (expression_statement "iVar2 = FUN_00127080(lVar1,&DAT_0014592e);" (assignment_expression "iVar2 = FUN_00127080(lVar1,&DAT_0014592e)" (identifier "iVar2") (= "=") (call_expression "FUN_00127080(lVar1,&DAT_0014592e)" (identifier "FUN_00127080") (argument_list "(lVar1,&DAT_0014592e)" (( "(") (identifier "lVar1") (, ",") (pointer_expression "&DAT_0014592e" (& "&") (identifier "DAT_0014592e")) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "param_3 = (ulong)param_5;" (assignment_expression "param_3 = (ulong)param_5" (identifier "param_3") (= "=") (cast_expression "(ulong)param_5" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "param_5"))) (; ";")) (expression_statement "pcVar4 = " size %u";" (assignment_expression "pcVar4 = " size %u"" (identifier "pcVar4") (= "=") (string_literal "" size %u"" (" """) (string_content " size %u") (" """))) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = FUN_00127080(lVar1,param_2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 != 0) {\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }\n    pcVar4 = " id %u";\n  }" (else "else") (compound_statement "{\n    iVar2 = FUN_00127080(lVar1,param_2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    if (param_5 != 0) {\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }\n    pcVar4 = " id %u";\n  }" ({ "{") (expression_statement "iVar2 = FUN_00127080(lVar1,param_2);" (assignment_expression "iVar2 = FUN_00127080(lVar1,param_2)" (identifier "iVar2") (= "=") (call_expression "FUN_00127080(lVar1,param_2)" (identifier "FUN_00127080") (argument_list "(lVar1,param_2)" (( "(") (identifier "lVar1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00127080(lVar1,&DAT_0014592b);" (assignment_expression "iVar2 = FUN_00127080(lVar1,&DAT_0014592b)" (identifier "iVar2") (= "=") (call_expression "FUN_00127080(lVar1,&DAT_0014592b)" (identifier "FUN_00127080") (argument_list "(lVar1,&DAT_0014592b)" (( "(") (identifier "lVar1") (, ",") (pointer_expression "&DAT_0014592b" (& "&") (identifier "DAT_0014592b")) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00127080(lVar1,&DAT_0014592e);" (assignment_expression "iVar2 = FUN_00127080(lVar1,&DAT_0014592e)" (identifier "iVar2") (= "=") (call_expression "FUN_00127080(lVar1,&DAT_0014592e)" (identifier "FUN_00127080") (argument_list "(lVar1,&DAT_0014592e)" (( "(") (identifier "lVar1") (, ",") (pointer_expression "&DAT_0014592e" (& "&") (identifier "DAT_0014592e")) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_5 != 0) {\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }" (if "if") (parenthesized_expression "(param_5 != 0)" (( "(") (binary_expression "param_5 != 0" (identifier "param_5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      sprintf(acStack_48," size %u",(ulong)param_5);\n      iVar2 = FUN_00127080(lVar1,acStack_48);\n      if (iVar2 == 0) {\n        return 0;\n      }\n    }" ({ "{") (expression_statement "sprintf(acStack_48," size %u",(ulong)param_5);" (call_expression "sprintf(acStack_48," size %u",(ulong)param_5)" (identifier "sprintf") (argument_list "(acStack_48," size %u",(ulong)param_5)" (( "(") (identifier "acStack_48") (, ",") (string_literal "" size %u"" (" """) (string_content " size %u") (" """)) (, ",") (cast_expression "(ulong)param_5" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "param_5")) () ")"))) (; ";")) (expression_statement "iVar2 = FUN_00127080(lVar1,acStack_48);" (assignment_expression "iVar2 = FUN_00127080(lVar1,acStack_48)" (identifier "iVar2") (= "=") (call_expression "FUN_00127080(lVar1,acStack_48)" (identifier "FUN_00127080") (argument_list "(lVar1,acStack_48)" (( "(") (identifier "lVar1") (, ",") (identifier "acStack_48") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (expression_statement "pcVar4 = " id %u";" (assignment_expression "pcVar4 = " id %u"" (identifier "pcVar4") (= "=") (string_literal "" id %u"" (" """) (string_content " id %u") (" """))) (; ";")) (} "}")))) (expression_statement "sprintf(acStack_48,pcVar4,param_3);" (call_expression "sprintf(acStack_48,pcVar4,param_3)" (identifier "sprintf") (argument_list "(acStack_48,pcVar4,param_3)" (( "(") (identifier "acStack_48") (, ",") (identifier "pcVar4") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "iVar2 = FUN_00127080(lVar1,acStack_48);" (assignment_expression "iVar2 = FUN_00127080(lVar1,acStack_48)" (identifier "iVar2") (= "=") (call_expression "FUN_00127080(lVar1,acStack_48)" (identifier "FUN_00127080") (argument_list "(lVar1,acStack_48)" (( "(") (identifier "lVar1") (, ",") (identifier "acStack_48") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00127080(lVar1," */");" (assignment_expression "iVar2 = FUN_00127080(lVar1," */")" (identifier "iVar2") (= "=") (call_expression "FUN_00127080(lVar1," */")" (identifier "FUN_00127080") (argument_list "(lVar1," */")" (( "(") (identifier "lVar1") (, ",") (string_literal "" */"" (" """) (string_content " */") (" """)) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (labeled_statement "LAB_00128f02:\n  iVar2 = FUN_00127080(lVar1,"\n");" (statement_identifier "LAB_00128f02") (: ":") (expression_statement "iVar2 = FUN_00127080(lVar1,"\n");" (assignment_expression "iVar2 = FUN_00127080(lVar1,"\n")" (identifier "iVar2") (= "=") (call_expression "FUN_00127080(lVar1,"\n")" (identifier "FUN_00127080") (argument_list "(lVar1,"\n")" (( "(") (identifier "lVar1") (, ",") (string_literal ""\n"" (" """) (escape_sequence "\n") (" """)) () ")")))) (; ";"))) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10) = 0;" (assignment_expression "*(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10) = 0" (pointer_expression "*(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10)" (* "*") (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x10) + 0x10)" (( "(") (binary_expression "*(long *)(param_1 + 0x10) + 0x10" (pointer_expression "*(long *)(param_1 + 0x10)" (* "*") (cast_expression "(long *)(param_1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    do {\n      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < *(uint *)(param_1 + 8));\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < *(uint *)(param_1 + 8));\n  }" ({ "{") (do_statement "do {\n      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      uVar5 = uVar5 + 1;\n    } while (uVar5 < *(uint *)(param_1 + 8));" (do "do") (compound_statement "{\n      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      uVar5 = uVar5 + 1;\n    }" ({ "{") (expression_statement "iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);" (assignment_expression "iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7)" (identifier "iVar2") (= "=") (call_expression "FUN_00127080(lVar1,&DAT_0013d6b7)" (identifier "FUN_00127080") (argument_list "(lVar1,&DAT_0013d6b7)" (( "(") (identifier "lVar1") (, ",") (pointer_expression "&DAT_0013d6b7" (& "&") (identifier "DAT_0013d6b7")) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" (identifier "uVar5") (= "=") (binary_expression "uVar5 + 1" (identifier "uVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar5 < *(uint *)(param_1 + 8))" (( "(") (binary_expression "uVar5 < *(uint *)(param_1 + 8)" (identifier "uVar5") (< "<") (pointer_expression "*(uint *)(param_1 + 8)" (* "*") (cast_expression "(uint *)(param_1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) () ")")) (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

type_1 function_1(void *p,char *var_4,type_2 id,type_1 var_1,type_2 var_7)

{
  type_3 *info_00;
  type_1 var_3;
  type_4 uVar2;
  char *pcVar3;
  type_3 *info;
  type_2 var_8;
  char idbuf [20];
  
  pcVar3 = "struct ";
  info_00 = (type_3 *)((long)p + 0x10);
  *(int *)((long)p + 8) = *(int *)((long)p + 8) + 2;
  if (var_1 == 0) {
    pcVar3 = "union ";
  }
  var_3 = var_2(info_00,pcVar3);
  if (var_3 == 0) {
    return 0;
  }
  if (var_4 == (char *)0x0) {
    var_5(idbuf,"%%anon%u",(type_4)id);
    var_3 = var_6(info_00,idbuf);
    if (var_3 == 0) {
      return 0;
    }
    var_3 = var_6(info_00," {");
    if (var_3 == 0) {
      return 0;
    }
    if (var_7 == 0) goto LAB_00128f02;
    var_3 = var_6(info_00," /*");
    if (var_3 == 0) {
      return 0;
    }
    uVar2 = (type_4)var_7;
    pcVar3 = " size %u";
  }
  else {
    var_3 = var_6(info_00,var_4);
    if (var_3 == 0) {
      return 0;
    }
    var_3 = var_6(info_00," {");
    if (var_3 == 0) {
      return 0;
    }
    var_3 = var_6(info_00," /*");
    if (var_3 == 0) {
      return 0;
    }
    if (var_7 != 0) {
      var_5(idbuf," size %u",(type_4)var_7);
      var_3 = var_6(info_00,idbuf);
      if (var_3 == 0) {
        return 0;
      }
    }
    uVar2 = (type_4)id;
    pcVar3 = " id %u";
  }
  var_5(idbuf,pcVar3,uVar2);
  var_3 = var_6(info_00,idbuf);
  if (var_3 == 0) {
    return 0;
  }
  var_3 = var_6(info_00," */");
  if (var_3 == 0) {
    return 0;
  }
LAB_00128f02:
  var_3 = var_6(info_00,"\n");
  if (var_3 == 0) {
    return 0;
  }
  var_8 = 0;
  *(type_5 *)(*(long *)((long)p + 0x10) + 0x10) = 0;
  if (*(int *)((long)p + 8) != 0) {
    do {
      var_3 = var_6(info_00," ");
      if (var_3 == 0) {
        return 0;
      }
      var_8 = var_8 + 1;
    } while (var_8 < *(type_2 *)((long)p + 8));
  }
  return 1;
}


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

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

{
  long lVar1;
  int iVar2;
  undefined8 uVar3;
  char *pcVar4;
  uint uVar5;
  char acStack_48 [32];
  
  pcVar4 = "struct ";
  param_3 = param_3 & 0xffffffff;
  lVar1 = param_1 + 0x10;
  *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;
  if (param_4 == 0) {
    pcVar4 = "union ";
  }
  iVar2 = FUN_001289c0(lVar1,pcVar4);
  if (iVar2 == 0) {
    return 0;
  }
  if (param_2 == 0) {
    sprintf(acStack_48,"%%anon%u",param_3);
    uVar3 = FUN_00127080(lVar1,acStack_48);
    if ((int)uVar3 == 0) {
      return uVar3;
    }
    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);
    if (iVar2 == 0) {
      return 0;
    }
    if (param_5 == 0) goto LAB_00128f02;
    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);
    if (iVar2 == 0) {
      return 0;
    }
    param_3 = (ulong)param_5;
    pcVar4 = " size %u";
  }
  else {
    iVar2 = FUN_00127080(lVar1,param_2);
    if (iVar2 == 0) {
      return 0;
    }
    iVar2 = FUN_00127080(lVar1,&DAT_0014592b);
    if (iVar2 == 0) {
      return 0;
    }
    iVar2 = FUN_00127080(lVar1,&DAT_0014592e);
    if (iVar2 == 0) {
      return 0;
    }
    if (param_5 != 0) {
      sprintf(acStack_48," size %u",(ulong)param_5);
      iVar2 = FUN_00127080(lVar1,acStack_48);
      if (iVar2 == 0) {
        return 0;
      }
    }
    pcVar4 = " id %u";
  }
  sprintf(acStack_48,pcVar4,param_3);
  iVar2 = FUN_00127080(lVar1,acStack_48);
  if (iVar2 == 0) {
    return 0;
  }
  iVar2 = FUN_00127080(lVar1," */");
  if (iVar2 == 0) {
    return 0;
  }
LAB_00128f02:
  iVar2 = FUN_00127080(lVar1,"\n");
  if (iVar2 == 0) {
    return 0;
  }
  uVar5 = 0;
  *(undefined4 *)(*(long *)(param_1 + 0x10) + 0x10) = 0;
  if (*(int *)(param_1 + 8) != 0) {
    do {
      iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);
      if (iVar2 == 0) {
        return 0;
      }
      uVar5 = uVar5 + 1;
    } while (uVar5 < *(uint *)(param_1 + 8));
  }
  return 1;
}

