
bfd_boolean
tg_start_class_type(void *p,char *tag,uint id,bfd_boolean structp,uint size,bfd_boolean vptr,
                   bfd_boolean ownvptr)

{
  pr_handle *info_00;
  bfd_boolean bVar1;
  int iVar2;
  long lVar3;
  char *s;
  undefined4 in_register_00000014;
  ulong uVar4;
  char *pcVar5;
  pr_handle *info;
  char idbuf [20];
  
  uVar4 = CONCAT44(in_register_00000014,id);
  info_00 = (pr_handle *)((long)p + 0x10);
  *(int *)((long)p + 8) = *(int *)((long)p + 8) + 2;
  if ((ownvptr != 0) || (vptr == 0)) {
    s = (char *)0x0;
  }
  else {
    s = pop_type(info_00);
    uVar4 = (ulong)id;
    if (s == (char *)0x0) {
      return 0;
    }
  }
  if (tag == (char *)0x0) {
    tag = idbuf;
    sprintf(tag,"%%anon%u",uVar4);
  }
  bVar1 = push_type(info_00,tag);
  if (bVar1 != 0) {
    pcVar5 = "class";
    if (structp == 0) {
      pcVar5 = "union class";
    }
    lVar3 = *(long *)((long)p + 0x10);
    *(char **)(lVar3 + 0x20) = pcVar5;
    *(undefined8 *)(lVar3 + 0x28) = 0;
    *(undefined4 *)(lVar3 + 0x30) = 0;
    if ((size == 0 && vptr == 0) || (vptr == 0)) {
LAB_0012923a:
      *(undefined4 *)(lVar3 + 0x10) = 2;
      return 1;
    }
    bVar1 = append_type(info_00," vtable ");
    if (bVar1 != 0) {
      if (ownvptr == 0) {
        bVar1 = append_type(info_00,s);
        if (bVar1 == 0) {
          return 0;
        }
        iVar2 = append_type(info_00," ");
      }
      else {
        iVar2 = append_type(info_00,"self ");
      }
      if (iVar2 != 0) {
        lVar3 = *(long *)((long)p + 0x10);
        goto LAB_0012923a;
      }
    }
  }
  return 0;
}



undefined8
FUN_001291b0(long param_1,char *param_2,ulong param_3,int param_4,int param_5,int param_6,
            int param_7)

{
  long lVar1;
  int iVar2;
  long lVar3;
  long lVar4;
  char *pcVar5;
  char local_58 [40];
  
  lVar1 = param_1 + 0x10;
  *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;
  if ((param_7 != 0) || (param_6 == 0)) {
    lVar4 = 0;
  }
  else {
    lVar4 = FUN_00126930(lVar1);
    param_3 = param_3 & 0xffffffff;
    if (lVar4 == 0) {
      return 0;
    }
  }
  if (param_2 == (char *)0x0) {
    param_2 = local_58;
    sprintf(param_2,"%%anon%u",param_3);
  }
  iVar2 = FUN_001289c0(lVar1,param_2);
  if (iVar2 != 0) {
    pcVar5 = "class";
    if (param_4 == 0) {
      pcVar5 = "union class";
    }
    lVar3 = *(long *)(param_1 + 0x10);
    *(char **)(lVar3 + 0x20) = pcVar5;
    *(undefined8 *)(lVar3 + 0x28) = 0;
    *(undefined4 *)(lVar3 + 0x30) = 0;
    if ((param_5 == 0 && param_6 == 0) || (param_6 == 0)) {
LAB_0012923a:
      *(undefined4 *)(lVar3 + 0x10) = 2;
      return 1;
    }
    iVar2 = FUN_00127080(lVar1," vtable ");
    if (iVar2 != 0) {
      if (param_7 == 0) {
        iVar2 = FUN_00127080(lVar1,lVar4);
        if (iVar2 == 0) {
          return 0;
        }
        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);
      }
      else {
        iVar2 = FUN_00127080(lVar1,"self ");
      }
      if (iVar2 != 0) {
        lVar3 = *(long *)(param_1 + 0x10);
        goto LAB_0012923a;
      }
    }
  }
  return 0;
}


PUSH R15
PUSH R14
MOV R14D,R9D
PUSH R13
MOV R13D,ECX
PUSH R12
PUSH RBP
MOV RBP,RDI
PUSH RBX
LEA RBX,[RDI + 0x10]
SUB RSP,0x38
ADD dword ptr [RDI + 0x8],0x2
TEST R9D,R9D
MOV ECX,dword ptr [RSP + 0x70]
MOV dword ptr [RSP + 0x8],R8D
SETNZ R12B
TEST ECX,ECX
JNZ 0x001291e8
TEST R12B,R12B
JNZ 0x00129258
XOR R15D,R15D
TEST RSI,RSI
JZ 0x001292e0
MOV RDI,RBX
CALL 0x001289c0
TEST EAX,EAX
JZ 0x0012927c
TEST R13D,R13D
LEA RAX,[0x145973]
LEA RDX,[0x145979]
MOV ECX,dword ptr [RSP + 0x8]
CMOVZ RDX,RAX
MOV RAX,qword ptr [RBP + 0x10]
OR ECX,R14D
MOV qword ptr [RAX + 0x20],RDX
MOV qword ptr [RAX + 0x28],0x0
MOV dword ptr [RAX + 0x30],0x0
JZ 0x0012923a
TEST R12B,R12B
JNZ 0x00129290
MOV dword ptr [RAX + 0x10],0x2
ADD RSP,0x38
MOV EAX,0x1
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV RDI,RBX
MOV dword ptr [RSP + 0xc],EDX
MOV qword ptr [RSP],RSI
CALL 0x00126930
MOV RSI,qword ptr [RSP]
MOV EDX,dword ptr [RSP + 0xc]
TEST RAX,RAX
MOV R15,RAX
JNZ 0x001291eb
ADD RSP,0x38
XOR EAX,EAX
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
LEA RSI,[0x145939]
MOV RDI,RBX
CALL 0x00127080
TEST EAX,EAX
JZ 0x0012927c
MOV EAX,dword ptr [RSP + 0x70]
TEST EAX,EAX
JNZ 0x00129310
MOV RSI,R15
MOV RDI,RBX
CALL 0x00127080
TEST EAX,EAX
JZ 0x0012927c
LEA RSI,[0x13d6b7]
MOV RDI,RBX
CALL 0x00127080
TEST EAX,EAX
JZ 0x0012927c
MOV RAX,qword ptr [RBP + 0x10]
JMP 0x0012923a
LEA RCX,[RSP + 0x10]
LEA RSI,[0x145915]
XOR EAX,EAX
MOV RDI,RCX
MOV qword ptr [RSP],RCX
CALL 0x00107760
MOV RCX,qword ptr [RSP]
MOV RSI,RCX
JMP 0x001291f4
LEA RSI,[0x145942]
MOV RDI,RBX
CALL 0x00127080
TEST EAX,EAX
JNZ 0x001292cd
JMP 0x0012927c
(translation_unit "undefined8\nFUN_001291b0(long param_1,char *param_2,ulong param_3,int param_4,int param_5,int param_6,\n            int param_7)\n\n{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  char *pcVar5;\n  char local_58 [40];\n  \n  lVar1 = param_1 + 0x10;\n  *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;\n  if ((param_7 != 0) || (param_6 == 0)) {\n    lVar4 = 0;\n  }\n  else {\n    lVar4 = FUN_00126930(lVar1);\n    param_3 = param_3 & 0xffffffff;\n    if (lVar4 == 0) {\n      return 0;\n    }\n  }\n  if (param_2 == (char *)0x0) {\n    param_2 = local_58;\n    sprintf(param_2,"%%anon%u",param_3);\n  }\n  iVar2 = FUN_001289c0(lVar1,param_2);\n  if (iVar2 != 0) {\n    pcVar5 = "class";\n    if (param_4 == 0) {\n      pcVar5 = "union class";\n    }\n    lVar3 = *(long *)(param_1 + 0x10);\n    *(char **)(lVar3 + 0x20) = pcVar5;\n    *(undefined8 *)(lVar3 + 0x28) = 0;\n    *(undefined4 *)(lVar3 + 0x30) = 0;\n    if ((param_5 == 0 && param_6 == 0) || (param_6 == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }\n    iVar2 = FUN_00127080(lVar1," vtable ");\n    if (iVar2 != 0) {\n      if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined8\nFUN_001291b0(long param_1,char *param_2,ulong param_3,int param_4,int param_5,int param_6,\n            int param_7)\n\n{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  char *pcVar5;\n  char local_58 [40];\n  \n  lVar1 = param_1 + 0x10;\n  *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;\n  if ((param_7 != 0) || (param_6 == 0)) {\n    lVar4 = 0;\n  }\n  else {\n    lVar4 = FUN_00126930(lVar1);\n    param_3 = param_3 & 0xffffffff;\n    if (lVar4 == 0) {\n      return 0;\n    }\n  }\n  if (param_2 == (char *)0x0) {\n    param_2 = local_58;\n    sprintf(param_2,"%%anon%u",param_3);\n  }\n  iVar2 = FUN_001289c0(lVar1,param_2);\n  if (iVar2 != 0) {\n    pcVar5 = "class";\n    if (param_4 == 0) {\n      pcVar5 = "union class";\n    }\n    lVar3 = *(long *)(param_1 + 0x10);\n    *(char **)(lVar3 + 0x20) = pcVar5;\n    *(undefined8 *)(lVar3 + 0x28) = 0;\n    *(undefined4 *)(lVar3 + 0x30) = 0;\n    if ((param_5 == 0 && param_6 == 0) || (param_6 == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }\n    iVar2 = FUN_00127080(lVar1," vtable ");\n    if (iVar2 != 0) {\n      if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_001291b0(long param_1,char *param_2,ulong param_3,int param_4,int param_5,int param_6,\n            int param_7)" identifier (parameter_list "(long param_1,char *param_2,ulong param_3,int param_4,int param_5,int param_6,\n            int param_7)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "ulong param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "int param_7" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  char *pcVar5;\n  char local_58 [40];\n  \n  lVar1 = param_1 + 0x10;\n  *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;\n  if ((param_7 != 0) || (param_6 == 0)) {\n    lVar4 = 0;\n  }\n  else {\n    lVar4 = FUN_00126930(lVar1);\n    param_3 = param_3 & 0xffffffff;\n    if (lVar4 == 0) {\n      return 0;\n    }\n  }\n  if (param_2 == (char *)0x0) {\n    param_2 = local_58;\n    sprintf(param_2,"%%anon%u",param_3);\n  }\n  iVar2 = FUN_001289c0(lVar1,param_2);\n  if (iVar2 != 0) {\n    pcVar5 = "class";\n    if (param_4 == 0) {\n      pcVar5 = "union class";\n    }\n    lVar3 = *(long *)(param_1 + 0x10);\n    *(char **)(lVar3 + 0x20) = pcVar5;\n    *(undefined8 *)(lVar3 + 0x28) = 0;\n    *(undefined4 *)(lVar3 + 0x30) = 0;\n    if ((param_5 == 0 && param_6 == 0) || (param_6 == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }\n    iVar2 = FUN_00127080(lVar1," vtable ");\n    if (iVar2 != 0) {\n      if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char local_58 [40];" primitive_type (array_declarator "local_58 [40]" 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_7 != 0) || (param_6 == 0)) {\n    lVar4 = 0;\n  }\n  else {\n    lVar4 = FUN_00126930(lVar1);\n    param_3 = param_3 & 0xffffffff;\n    if (lVar4 == 0) {\n      return 0;\n    }\n  }" if (parenthesized_expression "((param_7 != 0) || (param_6 == 0))" ( (binary_expression "(param_7 != 0) || (param_6 == 0)" (parenthesized_expression "(param_7 != 0)" ( (binary_expression "param_7 != 0" identifier != number_literal) )) || (parenthesized_expression "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) ))) )) (compound_statement "{\n    lVar4 = 0;\n  }" { (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    lVar4 = FUN_00126930(lVar1);\n    param_3 = param_3 & 0xffffffff;\n    if (lVar4 == 0) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    lVar4 = FUN_00126930(lVar1);\n    param_3 = param_3 & 0xffffffff;\n    if (lVar4 == 0) {\n      return 0;\n    }\n  }" { (expression_statement "lVar4 = FUN_00126930(lVar1);" (assignment_expression "lVar4 = FUN_00126930(lVar1)" identifier = (call_expression "FUN_00126930(lVar1)" identifier (argument_list "(lVar1)" ( identifier )))) ;) (expression_statement "param_3 = param_3 & 0xffffffff;" (assignment_expression "param_3 = param_3 & 0xffffffff" identifier = (binary_expression "param_3 & 0xffffffff" identifier & number_literal)) ;) (if_statement "if (lVar4 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(lVar4 == 0)" ( (binary_expression "lVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }))) (if_statement "if (param_2 == (char *)0x0) {\n    param_2 = local_58;\n    sprintf(param_2,"%%anon%u",param_3);\n  }" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_2 = local_58;\n    sprintf(param_2,"%%anon%u",param_3);\n  }" { (expression_statement "param_2 = local_58;" (assignment_expression "param_2 = local_58" identifier = identifier) ;) (expression_statement "sprintf(param_2,"%%anon%u",param_3);" (call_expression "sprintf(param_2,"%%anon%u",param_3)" identifier (argument_list "(param_2,"%%anon%u",param_3)" ( identifier , (string_literal ""%%anon%u"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar2 = FUN_001289c0(lVar1,param_2);" (assignment_expression "iVar2 = FUN_001289c0(lVar1,param_2)" identifier = (call_expression "FUN_001289c0(lVar1,param_2)" identifier (argument_list "(lVar1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    pcVar5 = "class";\n    if (param_4 == 0) {\n      pcVar5 = "union class";\n    }\n    lVar3 = *(long *)(param_1 + 0x10);\n    *(char **)(lVar3 + 0x20) = pcVar5;\n    *(undefined8 *)(lVar3 + 0x28) = 0;\n    *(undefined4 *)(lVar3 + 0x30) = 0;\n    if ((param_5 == 0 && param_6 == 0) || (param_6 == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }\n    iVar2 = FUN_00127080(lVar1," vtable ");\n    if (iVar2 != 0) {\n      if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar5 = "class";\n    if (param_4 == 0) {\n      pcVar5 = "union class";\n    }\n    lVar3 = *(long *)(param_1 + 0x10);\n    *(char **)(lVar3 + 0x20) = pcVar5;\n    *(undefined8 *)(lVar3 + 0x28) = 0;\n    *(undefined4 *)(lVar3 + 0x30) = 0;\n    if ((param_5 == 0 && param_6 == 0) || (param_6 == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }\n    iVar2 = FUN_00127080(lVar1," vtable ");\n    if (iVar2 != 0) {\n      if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }\n    }\n  }" { (expression_statement "pcVar5 = "class";" (assignment_expression "pcVar5 = "class"" identifier = (string_literal ""class"" " string_content ")) ;) (if_statement "if (param_4 == 0) {\n      pcVar5 = "union class";\n    }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar5 = "union class";\n    }" { (expression_statement "pcVar5 = "union class";" (assignment_expression "pcVar5 = "union class"" identifier = (string_literal ""union class"" " string_content ")) ;) })) (expression_statement "lVar3 = *(long *)(param_1 + 0x10);" (assignment_expression "lVar3 = *(long *)(param_1 + 0x10)" identifier = (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) ))))) ;) (expression_statement "*(char **)(lVar3 + 0x20) = pcVar5;" (assignment_expression "*(char **)(lVar3 + 0x20) = pcVar5" (pointer_expression "*(char **)(lVar3 + 0x20)" * (cast_expression "(char **)(lVar3 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(lVar3 + 0x28) = 0;" (assignment_expression "*(undefined8 *)(lVar3 + 0x28) = 0" (pointer_expression "*(undefined8 *)(lVar3 + 0x28)" * (cast_expression "(undefined8 *)(lVar3 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x28)" ( (binary_expression "lVar3 + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(lVar3 + 0x30) = 0;" (assignment_expression "*(undefined4 *)(lVar3 + 0x30) = 0" (pointer_expression "*(undefined4 *)(lVar3 + 0x30)" * (cast_expression "(undefined4 *)(lVar3 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x30)" ( (binary_expression "lVar3 + 0x30" identifier + number_literal) )))) = number_literal) ;) (if_statement "if ((param_5 == 0 && param_6 == 0) || (param_6 == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }" if (parenthesized_expression "((param_5 == 0 && param_6 == 0) || (param_6 == 0))" ( (binary_expression "(param_5 == 0 && param_6 == 0) || (param_6 == 0)" (parenthesized_expression "(param_5 == 0 && param_6 == 0)" ( (binary_expression "param_5 == 0 && param_6 == 0" (binary_expression "param_5 == 0" identifier == number_literal) && (binary_expression "param_6 == 0" identifier == number_literal)) )) || (parenthesized_expression "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) ))) )) (compound_statement "{\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }" { (labeled_statement "LAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;" statement_identifier : (expression_statement "*(undefined4 *)(lVar3 + 0x10) = 2;" (assignment_expression "*(undefined4 *)(lVar3 + 0x10) = 2" (pointer_expression "*(undefined4 *)(lVar3 + 0x10)" * (cast_expression "(undefined4 *)(lVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x10)" ( (binary_expression "lVar3 + 0x10" identifier + number_literal) )))) = number_literal) ;)) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar2 = FUN_00127080(lVar1," vtable ");" (assignment_expression "iVar2 = FUN_00127080(lVar1," vtable ")" identifier = (call_expression "FUN_00127080(lVar1," vtable ")" identifier (argument_list "(lVar1," vtable ")" ( identifier , (string_literal "" vtable "" " string_content ") )))) ;) (if_statement "if (iVar2 != 0) {\n      if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }\n    }" { (if_statement "if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }" if (parenthesized_expression "(param_7 == 0)" ( (binary_expression "param_7 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }" { (expression_statement "iVar2 = FUN_00127080(lVar1,lVar4);" (assignment_expression "iVar2 = FUN_00127080(lVar1,lVar4)" identifier = (call_expression "FUN_00127080(lVar1,lVar4)" identifier (argument_list "(lVar1,lVar4)" ( 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_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) )))) ;) }) (else_clause "else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }" else (compound_statement "{\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }" { (expression_statement "iVar2 = FUN_00127080(lVar1,"self ");" (assignment_expression "iVar2 = FUN_00127080(lVar1,"self ")" identifier = (call_expression "FUN_00127080(lVar1,"self ")" identifier (argument_list "(lVar1,"self ")" ( identifier , (string_literal ""self "" " string_content ") )))) ;) }))) (if_statement "if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }" { (expression_statement "lVar3 = *(long *)(param_1 + 0x10);" (assignment_expression "lVar3 = *(long *)(param_1 + 0x10)" identifier = (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) ))))) ;) (goto_statement "goto LAB_0012923a;" goto statement_identifier ;) })) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "bfd_boolean\ntg_start_class_type(void *p,char *tag,uint id,bfd_boolean structp,uint size,bfd_boolean vptr,\n                   bfd_boolean ownvptr)\n\n{\n  pr_handle *info_00;\n  bfd_boolean bVar1;\n  int iVar2;\n  long lVar3;\n  char *s;\n  undefined4 in_register_00000014;\n  ulong uVar4;\n  char *pcVar5;\n  pr_handle *info;\n  char idbuf [20];\n  \n  uVar4 = CONCAT44(in_register_00000014,id);\n  info_00 = (pr_handle *)((long)p + 0x10);\n  *(int *)((long)p + 8) = *(int *)((long)p + 8) + 2;\n  if ((ownvptr != 0) || (vptr == 0)) {\n    s = (char *)0x0;\n  }\n  else {\n    s = pop_type(info_00);\n    uVar4 = (ulong)id;\n    if (s == (char *)0x0) {\n      return 0;\n    }\n  }\n  if (tag == (char *)0x0) {\n    tag = idbuf;\n    sprintf(tag,"%%anon%u",uVar4);\n  }\n  bVar1 = push_type(info_00,tag);\n  if (bVar1 != 0) {\n    pcVar5 = "class";\n    if (structp == 0) {\n      pcVar5 = "union class";\n    }\n    lVar3 = *(long *)((long)p + 0x10);\n    *(char **)(lVar3 + 0x20) = pcVar5;\n    *(undefined8 *)(lVar3 + 0x28) = 0;\n    *(undefined4 *)(lVar3 + 0x30) = 0;\n    if ((size == 0 && vptr == 0) || (vptr == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }\n    bVar1 = append_type(info_00," vtable ");\n    if (bVar1 != 0) {\n      if (ownvptr == 0) {\n        bVar1 = append_type(info_00,s);\n        if (bVar1 == 0) {\n          return 0;\n        }\n        iVar2 = append_type(info_00," ");\n      }\n      else {\n        iVar2 = append_type(info_00,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)((long)p + 0x10);\n        goto LAB_0012923a;\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "bfd_boolean\ntg_start_class_type(void *p,char *tag,uint id,bfd_boolean structp,uint size,bfd_boolean vptr,\n                   bfd_boolean ownvptr)\n\n{\n  pr_handle *info_00;\n  bfd_boolean bVar1;\n  int iVar2;\n  long lVar3;\n  char *s;\n  undefined4 in_register_00000014;\n  ulong uVar4;\n  char *pcVar5;\n  pr_handle *info;\n  char idbuf [20];\n  \n  uVar4 = CONCAT44(in_register_00000014,id);\n  info_00 = (pr_handle *)((long)p + 0x10);\n  *(int *)((long)p + 8) = *(int *)((long)p + 8) + 2;\n  if ((ownvptr != 0) || (vptr == 0)) {\n    s = (char *)0x0;\n  }\n  else {\n    s = pop_type(info_00);\n    uVar4 = (ulong)id;\n    if (s == (char *)0x0) {\n      return 0;\n    }\n  }\n  if (tag == (char *)0x0) {\n    tag = idbuf;\n    sprintf(tag,"%%anon%u",uVar4);\n  }\n  bVar1 = push_type(info_00,tag);\n  if (bVar1 != 0) {\n    pcVar5 = "class";\n    if (structp == 0) {\n      pcVar5 = "union class";\n    }\n    lVar3 = *(long *)((long)p + 0x10);\n    *(char **)(lVar3 + 0x20) = pcVar5;\n    *(undefined8 *)(lVar3 + 0x28) = 0;\n    *(undefined4 *)(lVar3 + 0x30) = 0;\n    if ((size == 0 && vptr == 0) || (vptr == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }\n    bVar1 = append_type(info_00," vtable ");\n    if (bVar1 != 0) {\n      if (ownvptr == 0) {\n        bVar1 = append_type(info_00,s);\n        if (bVar1 == 0) {\n          return 0;\n        }\n        iVar2 = append_type(info_00," ");\n      }\n      else {\n        iVar2 = append_type(info_00,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)((long)p + 0x10);\n        goto LAB_0012923a;\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "tg_start_class_type(void *p,char *tag,uint id,bfd_boolean structp,uint size,bfd_boolean vptr,\n                   bfd_boolean ownvptr)" identifier (parameter_list "(void *p,char *tag,uint id,bfd_boolean structp,uint size,bfd_boolean vptr,\n                   bfd_boolean ownvptr)" ( (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) , (parameter_declaration "bfd_boolean vptr" type_identifier identifier) , (parameter_declaration "bfd_boolean ownvptr" type_identifier identifier) ))) (compound_statement "{\n  pr_handle *info_00;\n  bfd_boolean bVar1;\n  int iVar2;\n  long lVar3;\n  char *s;\n  undefined4 in_register_00000014;\n  ulong uVar4;\n  char *pcVar5;\n  pr_handle *info;\n  char idbuf [20];\n  \n  uVar4 = CONCAT44(in_register_00000014,id);\n  info_00 = (pr_handle *)((long)p + 0x10);\n  *(int *)((long)p + 8) = *(int *)((long)p + 8) + 2;\n  if ((ownvptr != 0) || (vptr == 0)) {\n    s = (char *)0x0;\n  }\n  else {\n    s = pop_type(info_00);\n    uVar4 = (ulong)id;\n    if (s == (char *)0x0) {\n      return 0;\n    }\n  }\n  if (tag == (char *)0x0) {\n    tag = idbuf;\n    sprintf(tag,"%%anon%u",uVar4);\n  }\n  bVar1 = push_type(info_00,tag);\n  if (bVar1 != 0) {\n    pcVar5 = "class";\n    if (structp == 0) {\n      pcVar5 = "union class";\n    }\n    lVar3 = *(long *)((long)p + 0x10);\n    *(char **)(lVar3 + 0x20) = pcVar5;\n    *(undefined8 *)(lVar3 + 0x28) = 0;\n    *(undefined4 *)(lVar3 + 0x30) = 0;\n    if ((size == 0 && vptr == 0) || (vptr == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }\n    bVar1 = append_type(info_00," vtable ");\n    if (bVar1 != 0) {\n      if (ownvptr == 0) {\n        bVar1 = append_type(info_00,s);\n        if (bVar1 == 0) {\n          return 0;\n        }\n        iVar2 = append_type(info_00," ");\n      }\n      else {\n        iVar2 = append_type(info_00,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)((long)p + 0x10);\n        goto LAB_0012923a;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "pr_handle *info_00;" type_identifier (pointer_declarator "*info_00" * identifier) ;) (declaration "bfd_boolean bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "char *s;" primitive_type (pointer_declarator "*s" * identifier) ;) (declaration "undefined4 in_register_00000014;" type_identifier identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "pr_handle *info;" type_identifier (pointer_declarator "*info" * identifier) ;) (declaration "char idbuf [20];" primitive_type (array_declarator "idbuf [20]" identifier [ number_literal ]) ;) (expression_statement "uVar4 = CONCAT44(in_register_00000014,id);" (assignment_expression "uVar4 = CONCAT44(in_register_00000014,id)" identifier = (call_expression "CONCAT44(in_register_00000014,id)" identifier (argument_list "(in_register_00000014,id)" ( identifier , identifier )))) ;) (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 ((ownvptr != 0) || (vptr == 0)) {\n    s = (char *)0x0;\n  }\n  else {\n    s = pop_type(info_00);\n    uVar4 = (ulong)id;\n    if (s == (char *)0x0) {\n      return 0;\n    }\n  }" if (parenthesized_expression "((ownvptr != 0) || (vptr == 0))" ( (binary_expression "(ownvptr != 0) || (vptr == 0)" (parenthesized_expression "(ownvptr != 0)" ( (binary_expression "ownvptr != 0" identifier != number_literal) )) || (parenthesized_expression "(vptr == 0)" ( (binary_expression "vptr == 0" identifier == number_literal) ))) )) (compound_statement "{\n    s = (char *)0x0;\n  }" { (expression_statement "s = (char *)0x0;" (assignment_expression "s = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    s = pop_type(info_00);\n    uVar4 = (ulong)id;\n    if (s == (char *)0x0) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    s = pop_type(info_00);\n    uVar4 = (ulong)id;\n    if (s == (char *)0x0) {\n      return 0;\n    }\n  }" { (expression_statement "s = pop_type(info_00);" (assignment_expression "s = pop_type(info_00)" identifier = (call_expression "pop_type(info_00)" identifier (argument_list "(info_00)" ( identifier )))) ;) (expression_statement "uVar4 = (ulong)id;" (assignment_expression "uVar4 = (ulong)id" identifier = (cast_expression "(ulong)id" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (if_statement "if (s == (char *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(s == (char *)0x0)" ( (binary_expression "s == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }))) (if_statement "if (tag == (char *)0x0) {\n    tag = idbuf;\n    sprintf(tag,"%%anon%u",uVar4);\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    tag = idbuf;\n    sprintf(tag,"%%anon%u",uVar4);\n  }" { (expression_statement "tag = idbuf;" (assignment_expression "tag = idbuf" identifier = identifier) ;) (expression_statement "sprintf(tag,"%%anon%u",uVar4);" (call_expression "sprintf(tag,"%%anon%u",uVar4)" identifier (argument_list "(tag,"%%anon%u",uVar4)" ( identifier , (string_literal ""%%anon%u"" " string_content ") , identifier ))) ;) })) (expression_statement "bVar1 = push_type(info_00,tag);" (assignment_expression "bVar1 = push_type(info_00,tag)" identifier = (call_expression "push_type(info_00,tag)" identifier (argument_list "(info_00,tag)" ( identifier , identifier )))) ;) (if_statement "if (bVar1 != 0) {\n    pcVar5 = "class";\n    if (structp == 0) {\n      pcVar5 = "union class";\n    }\n    lVar3 = *(long *)((long)p + 0x10);\n    *(char **)(lVar3 + 0x20) = pcVar5;\n    *(undefined8 *)(lVar3 + 0x28) = 0;\n    *(undefined4 *)(lVar3 + 0x30) = 0;\n    if ((size == 0 && vptr == 0) || (vptr == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }\n    bVar1 = append_type(info_00," vtable ");\n    if (bVar1 != 0) {\n      if (ownvptr == 0) {\n        bVar1 = append_type(info_00,s);\n        if (bVar1 == 0) {\n          return 0;\n        }\n        iVar2 = append_type(info_00," ");\n      }\n      else {\n        iVar2 = append_type(info_00,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)((long)p + 0x10);\n        goto LAB_0012923a;\n      }\n    }\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar5 = "class";\n    if (structp == 0) {\n      pcVar5 = "union class";\n    }\n    lVar3 = *(long *)((long)p + 0x10);\n    *(char **)(lVar3 + 0x20) = pcVar5;\n    *(undefined8 *)(lVar3 + 0x28) = 0;\n    *(undefined4 *)(lVar3 + 0x30) = 0;\n    if ((size == 0 && vptr == 0) || (vptr == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }\n    bVar1 = append_type(info_00," vtable ");\n    if (bVar1 != 0) {\n      if (ownvptr == 0) {\n        bVar1 = append_type(info_00,s);\n        if (bVar1 == 0) {\n          return 0;\n        }\n        iVar2 = append_type(info_00," ");\n      }\n      else {\n        iVar2 = append_type(info_00,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)((long)p + 0x10);\n        goto LAB_0012923a;\n      }\n    }\n  }" { (expression_statement "pcVar5 = "class";" (assignment_expression "pcVar5 = "class"" identifier = (string_literal ""class"" " string_content ")) ;) (if_statement "if (structp == 0) {\n      pcVar5 = "union class";\n    }" if (parenthesized_expression "(structp == 0)" ( (binary_expression "structp == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar5 = "union class";\n    }" { (expression_statement "pcVar5 = "union class";" (assignment_expression "pcVar5 = "union class"" identifier = (string_literal ""union class"" " string_content ")) ;) })) (expression_statement "lVar3 = *(long *)((long)p + 0x10);" (assignment_expression "lVar3 = *(long *)((long)p + 0x10)" identifier = (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) ))))) ;) (expression_statement "*(char **)(lVar3 + 0x20) = pcVar5;" (assignment_expression "*(char **)(lVar3 + 0x20) = pcVar5" (pointer_expression "*(char **)(lVar3 + 0x20)" * (cast_expression "(char **)(lVar3 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(lVar3 + 0x28) = 0;" (assignment_expression "*(undefined8 *)(lVar3 + 0x28) = 0" (pointer_expression "*(undefined8 *)(lVar3 + 0x28)" * (cast_expression "(undefined8 *)(lVar3 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x28)" ( (binary_expression "lVar3 + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(lVar3 + 0x30) = 0;" (assignment_expression "*(undefined4 *)(lVar3 + 0x30) = 0" (pointer_expression "*(undefined4 *)(lVar3 + 0x30)" * (cast_expression "(undefined4 *)(lVar3 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x30)" ( (binary_expression "lVar3 + 0x30" identifier + number_literal) )))) = number_literal) ;) (if_statement "if ((size == 0 && vptr == 0) || (vptr == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }" if (parenthesized_expression "((size == 0 && vptr == 0) || (vptr == 0))" ( (binary_expression "(size == 0 && vptr == 0) || (vptr == 0)" (parenthesized_expression "(size == 0 && vptr == 0)" ( (binary_expression "size == 0 && vptr == 0" (binary_expression "size == 0" identifier == number_literal) && (binary_expression "vptr == 0" identifier == number_literal)) )) || (parenthesized_expression "(vptr == 0)" ( (binary_expression "vptr == 0" identifier == number_literal) ))) )) (compound_statement "{\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }" { (labeled_statement "LAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;" statement_identifier : (expression_statement "*(undefined4 *)(lVar3 + 0x10) = 2;" (assignment_expression "*(undefined4 *)(lVar3 + 0x10) = 2" (pointer_expression "*(undefined4 *)(lVar3 + 0x10)" * (cast_expression "(undefined4 *)(lVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x10)" ( (binary_expression "lVar3 + 0x10" identifier + number_literal) )))) = number_literal) ;)) (return_statement "return 1;" return number_literal ;) })) (expression_statement "bVar1 = append_type(info_00," vtable ");" (assignment_expression "bVar1 = append_type(info_00," vtable ")" identifier = (call_expression "append_type(info_00," vtable ")" identifier (argument_list "(info_00," vtable ")" ( identifier , (string_literal "" vtable "" " string_content ") )))) ;) (if_statement "if (bVar1 != 0) {\n      if (ownvptr == 0) {\n        bVar1 = append_type(info_00,s);\n        if (bVar1 == 0) {\n          return 0;\n        }\n        iVar2 = append_type(info_00," ");\n      }\n      else {\n        iVar2 = append_type(info_00,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)((long)p + 0x10);\n        goto LAB_0012923a;\n      }\n    }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (ownvptr == 0) {\n        bVar1 = append_type(info_00,s);\n        if (bVar1 == 0) {\n          return 0;\n        }\n        iVar2 = append_type(info_00," ");\n      }\n      else {\n        iVar2 = append_type(info_00,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)((long)p + 0x10);\n        goto LAB_0012923a;\n      }\n    }" { (if_statement "if (ownvptr == 0) {\n        bVar1 = append_type(info_00,s);\n        if (bVar1 == 0) {\n          return 0;\n        }\n        iVar2 = append_type(info_00," ");\n      }\n      else {\n        iVar2 = append_type(info_00,"self ");\n      }" if (parenthesized_expression "(ownvptr == 0)" ( (binary_expression "ownvptr == 0" identifier == number_literal) )) (compound_statement "{\n        bVar1 = append_type(info_00,s);\n        if (bVar1 == 0) {\n          return 0;\n        }\n        iVar2 = append_type(info_00," ");\n      }" { (expression_statement "bVar1 = append_type(info_00,s);" (assignment_expression "bVar1 = append_type(info_00,s)" identifier = (call_expression "append_type(info_00,s)" identifier (argument_list "(info_00,s)" ( 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 "iVar2 = append_type(info_00," ");" (assignment_expression "iVar2 = append_type(info_00," ")" identifier = (call_expression "append_type(info_00," ")" identifier (argument_list "(info_00," ")" ( identifier , (string_literal "" "" " string_content ") )))) ;) }) (else_clause "else {\n        iVar2 = append_type(info_00,"self ");\n      }" else (compound_statement "{\n        iVar2 = append_type(info_00,"self ");\n      }" { (expression_statement "iVar2 = append_type(info_00,"self ");" (assignment_expression "iVar2 = append_type(info_00,"self ")" identifier = (call_expression "append_type(info_00,"self ")" identifier (argument_list "(info_00,"self ")" ( identifier , (string_literal ""self "" " string_content ") )))) ;) }))) (if_statement "if (iVar2 != 0) {\n        lVar3 = *(long *)((long)p + 0x10);\n        goto LAB_0012923a;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        lVar3 = *(long *)((long)p + 0x10);\n        goto LAB_0012923a;\n      }" { (expression_statement "lVar3 = *(long *)((long)p + 0x10);" (assignment_expression "lVar3 = *(long *)((long)p + 0x10)" identifier = (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) ))))) ;) (goto_statement "goto LAB_0012923a;" goto statement_identifier ;) })) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined8\nFUN_001291b0(long param_1,char *param_2,ulong param_3,int param_4,int param_5,int param_6,\n            int param_7)\n\n{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  char *pcVar5;\n  char local_58 [40];\n  \n  lVar1 = param_1 + 0x10;\n  *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;\n  if ((param_7 != 0) || (param_6 == 0)) {\n    lVar4 = 0;\n  }\n  else {\n    lVar4 = FUN_00126930(lVar1);\n    param_3 = param_3 & 0xffffffff;\n    if (lVar4 == 0) {\n      return 0;\n    }\n  }\n  if (param_2 == (char *)0x0) {\n    param_2 = local_58;\n    sprintf(param_2,"%%anon%u",param_3);\n  }\n  iVar2 = FUN_001289c0(lVar1,param_2);\n  if (iVar2 != 0) {\n    pcVar5 = "class";\n    if (param_4 == 0) {\n      pcVar5 = "union class";\n    }\n    lVar3 = *(long *)(param_1 + 0x10);\n    *(char **)(lVar3 + 0x20) = pcVar5;\n    *(undefined8 *)(lVar3 + 0x28) = 0;\n    *(undefined4 *)(lVar3 + 0x30) = 0;\n    if ((param_5 == 0 && param_6 == 0) || (param_6 == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }\n    iVar2 = FUN_00127080(lVar1," vtable ");\n    if (iVar2 != 0) {\n      if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined8\nFUN_001291b0(long param_1,char *param_2,ulong param_3,int param_4,int param_5,int param_6,\n            int param_7)\n\n{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  char *pcVar5;\n  char local_58 [40];\n  \n  lVar1 = param_1 + 0x10;\n  *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;\n  if ((param_7 != 0) || (param_6 == 0)) {\n    lVar4 = 0;\n  }\n  else {\n    lVar4 = FUN_00126930(lVar1);\n    param_3 = param_3 & 0xffffffff;\n    if (lVar4 == 0) {\n      return 0;\n    }\n  }\n  if (param_2 == (char *)0x0) {\n    param_2 = local_58;\n    sprintf(param_2,"%%anon%u",param_3);\n  }\n  iVar2 = FUN_001289c0(lVar1,param_2);\n  if (iVar2 != 0) {\n    pcVar5 = "class";\n    if (param_4 == 0) {\n      pcVar5 = "union class";\n    }\n    lVar3 = *(long *)(param_1 + 0x10);\n    *(char **)(lVar3 + 0x20) = pcVar5;\n    *(undefined8 *)(lVar3 + 0x28) = 0;\n    *(undefined4 *)(lVar3 + 0x30) = 0;\n    if ((param_5 == 0 && param_6 == 0) || (param_6 == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }\n    iVar2 = FUN_00127080(lVar1," vtable ");\n    if (iVar2 != 0) {\n      if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_001291b0(long param_1,char *param_2,ulong param_3,int param_4,int param_5,int param_6,\n            int param_7)" identifier (parameter_list "(long param_1,char *param_2,ulong param_3,int param_4,int param_5,int param_6,\n            int param_7)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "ulong param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "int param_7" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  char *pcVar5;\n  char local_58 [40];\n  \n  lVar1 = param_1 + 0x10;\n  *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;\n  if ((param_7 != 0) || (param_6 == 0)) {\n    lVar4 = 0;\n  }\n  else {\n    lVar4 = FUN_00126930(lVar1);\n    param_3 = param_3 & 0xffffffff;\n    if (lVar4 == 0) {\n      return 0;\n    }\n  }\n  if (param_2 == (char *)0x0) {\n    param_2 = local_58;\n    sprintf(param_2,"%%anon%u",param_3);\n  }\n  iVar2 = FUN_001289c0(lVar1,param_2);\n  if (iVar2 != 0) {\n    pcVar5 = "class";\n    if (param_4 == 0) {\n      pcVar5 = "union class";\n    }\n    lVar3 = *(long *)(param_1 + 0x10);\n    *(char **)(lVar3 + 0x20) = pcVar5;\n    *(undefined8 *)(lVar3 + 0x28) = 0;\n    *(undefined4 *)(lVar3 + 0x30) = 0;\n    if ((param_5 == 0 && param_6 == 0) || (param_6 == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }\n    iVar2 = FUN_00127080(lVar1," vtable ");\n    if (iVar2 != 0) {\n      if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char local_58 [40];" primitive_type (array_declarator "local_58 [40]" 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_7 != 0) || (param_6 == 0)) {\n    lVar4 = 0;\n  }\n  else {\n    lVar4 = FUN_00126930(lVar1);\n    param_3 = param_3 & 0xffffffff;\n    if (lVar4 == 0) {\n      return 0;\n    }\n  }" if (parenthesized_expression "((param_7 != 0) || (param_6 == 0))" ( (binary_expression "(param_7 != 0) || (param_6 == 0)" (parenthesized_expression "(param_7 != 0)" ( (binary_expression "param_7 != 0" identifier != number_literal) )) || (parenthesized_expression "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) ))) )) (compound_statement "{\n    lVar4 = 0;\n  }" { (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    lVar4 = FUN_00126930(lVar1);\n    param_3 = param_3 & 0xffffffff;\n    if (lVar4 == 0) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    lVar4 = FUN_00126930(lVar1);\n    param_3 = param_3 & 0xffffffff;\n    if (lVar4 == 0) {\n      return 0;\n    }\n  }" { (expression_statement "lVar4 = FUN_00126930(lVar1);" (assignment_expression "lVar4 = FUN_00126930(lVar1)" identifier = (call_expression "FUN_00126930(lVar1)" identifier (argument_list "(lVar1)" ( identifier )))) ;) (expression_statement "param_3 = param_3 & 0xffffffff;" (assignment_expression "param_3 = param_3 & 0xffffffff" identifier = (binary_expression "param_3 & 0xffffffff" identifier & number_literal)) ;) (if_statement "if (lVar4 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(lVar4 == 0)" ( (binary_expression "lVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }))) (if_statement "if (param_2 == (char *)0x0) {\n    param_2 = local_58;\n    sprintf(param_2,"%%anon%u",param_3);\n  }" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_2 = local_58;\n    sprintf(param_2,"%%anon%u",param_3);\n  }" { (expression_statement "param_2 = local_58;" (assignment_expression "param_2 = local_58" identifier = identifier) ;) (expression_statement "sprintf(param_2,"%%anon%u",param_3);" (call_expression "sprintf(param_2,"%%anon%u",param_3)" identifier (argument_list "(param_2,"%%anon%u",param_3)" ( identifier , (string_literal ""%%anon%u"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar2 = FUN_001289c0(lVar1,param_2);" (assignment_expression "iVar2 = FUN_001289c0(lVar1,param_2)" identifier = (call_expression "FUN_001289c0(lVar1,param_2)" identifier (argument_list "(lVar1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    pcVar5 = "class";\n    if (param_4 == 0) {\n      pcVar5 = "union class";\n    }\n    lVar3 = *(long *)(param_1 + 0x10);\n    *(char **)(lVar3 + 0x20) = pcVar5;\n    *(undefined8 *)(lVar3 + 0x28) = 0;\n    *(undefined4 *)(lVar3 + 0x30) = 0;\n    if ((param_5 == 0 && param_6 == 0) || (param_6 == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }\n    iVar2 = FUN_00127080(lVar1," vtable ");\n    if (iVar2 != 0) {\n      if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar5 = "class";\n    if (param_4 == 0) {\n      pcVar5 = "union class";\n    }\n    lVar3 = *(long *)(param_1 + 0x10);\n    *(char **)(lVar3 + 0x20) = pcVar5;\n    *(undefined8 *)(lVar3 + 0x28) = 0;\n    *(undefined4 *)(lVar3 + 0x30) = 0;\n    if ((param_5 == 0 && param_6 == 0) || (param_6 == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }\n    iVar2 = FUN_00127080(lVar1," vtable ");\n    if (iVar2 != 0) {\n      if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }\n    }\n  }" { (expression_statement "pcVar5 = "class";" (assignment_expression "pcVar5 = "class"" identifier = (string_literal ""class"" " string_content ")) ;) (if_statement "if (param_4 == 0) {\n      pcVar5 = "union class";\n    }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar5 = "union class";\n    }" { (expression_statement "pcVar5 = "union class";" (assignment_expression "pcVar5 = "union class"" identifier = (string_literal ""union class"" " string_content ")) ;) })) (expression_statement "lVar3 = *(long *)(param_1 + 0x10);" (assignment_expression "lVar3 = *(long *)(param_1 + 0x10)" identifier = (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) ))))) ;) (expression_statement "*(char **)(lVar3 + 0x20) = pcVar5;" (assignment_expression "*(char **)(lVar3 + 0x20) = pcVar5" (pointer_expression "*(char **)(lVar3 + 0x20)" * (cast_expression "(char **)(lVar3 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(lVar3 + 0x28) = 0;" (assignment_expression "*(undefined8 *)(lVar3 + 0x28) = 0" (pointer_expression "*(undefined8 *)(lVar3 + 0x28)" * (cast_expression "(undefined8 *)(lVar3 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x28)" ( (binary_expression "lVar3 + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(lVar3 + 0x30) = 0;" (assignment_expression "*(undefined4 *)(lVar3 + 0x30) = 0" (pointer_expression "*(undefined4 *)(lVar3 + 0x30)" * (cast_expression "(undefined4 *)(lVar3 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x30)" ( (binary_expression "lVar3 + 0x30" identifier + number_literal) )))) = number_literal) ;) (if_statement "if ((param_5 == 0 && param_6 == 0) || (param_6 == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }" if (parenthesized_expression "((param_5 == 0 && param_6 == 0) || (param_6 == 0))" ( (binary_expression "(param_5 == 0 && param_6 == 0) || (param_6 == 0)" (parenthesized_expression "(param_5 == 0 && param_6 == 0)" ( (binary_expression "param_5 == 0 && param_6 == 0" (binary_expression "param_5 == 0" identifier == number_literal) && (binary_expression "param_6 == 0" identifier == number_literal)) )) || (parenthesized_expression "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) ))) )) (compound_statement "{\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }" { (labeled_statement "LAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;" statement_identifier : (expression_statement "*(undefined4 *)(lVar3 + 0x10) = 2;" (assignment_expression "*(undefined4 *)(lVar3 + 0x10) = 2" (pointer_expression "*(undefined4 *)(lVar3 + 0x10)" * (cast_expression "(undefined4 *)(lVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x10)" ( (binary_expression "lVar3 + 0x10" identifier + number_literal) )))) = number_literal) ;)) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar2 = FUN_00127080(lVar1," vtable ");" (assignment_expression "iVar2 = FUN_00127080(lVar1," vtable ")" identifier = (call_expression "FUN_00127080(lVar1," vtable ")" identifier (argument_list "(lVar1," vtable ")" ( identifier , (string_literal "" vtable "" " string_content ") )))) ;) (if_statement "if (iVar2 != 0) {\n      if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }\n    }" { (if_statement "if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }" if (parenthesized_expression "(param_7 == 0)" ( (binary_expression "param_7 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }" { (expression_statement "iVar2 = FUN_00127080(lVar1,lVar4);" (assignment_expression "iVar2 = FUN_00127080(lVar1,lVar4)" identifier = (call_expression "FUN_00127080(lVar1,lVar4)" identifier (argument_list "(lVar1,lVar4)" ( 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_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) )))) ;) }) (else_clause "else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }" else (compound_statement "{\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }" { (expression_statement "iVar2 = FUN_00127080(lVar1,"self ");" (assignment_expression "iVar2 = FUN_00127080(lVar1,"self ")" identifier = (call_expression "FUN_00127080(lVar1,"self ")" identifier (argument_list "(lVar1,"self ")" ( identifier , (string_literal ""self "" " string_content ") )))) ;) }))) (if_statement "if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }" { (expression_statement "lVar3 = *(long *)(param_1 + 0x10);" (assignment_expression "lVar3 = *(long *)(param_1 + 0x10)" identifier = (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) ))))) ;) (goto_statement "goto LAB_0012923a;" goto statement_identifier ;) })) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE 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 (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator 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 (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (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 IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (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 = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_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 (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression IDENT == LIT)) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;)) (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 { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (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) )))) ;) }) (else_clause else (compound_statement { (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 { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) })) })) (return_statement return LIT ;) })))
(function_definition "undefined8\nFUN_001291b0(long param_1,char *param_2,ulong param_3,int param_4,int param_5,int param_6,\n            int param_7)\n\n{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  char *pcVar5;\n  char local_58 [40];\n  \n  lVar1 = param_1 + 0x10;\n  *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;\n  if ((param_7 != 0) || (param_6 == 0)) {\n    lVar4 = 0;\n  }\n  else {\n    lVar4 = FUN_00126930(lVar1);\n    param_3 = param_3 & 0xffffffff;\n    if (lVar4 == 0) {\n      return 0;\n    }\n  }\n  if (param_2 == (char *)0x0) {\n    param_2 = local_58;\n    sprintf(param_2,"%%anon%u",param_3);\n  }\n  iVar2 = FUN_001289c0(lVar1,param_2);\n  if (iVar2 != 0) {\n    pcVar5 = "class";\n    if (param_4 == 0) {\n      pcVar5 = "union class";\n    }\n    lVar3 = *(long *)(param_1 + 0x10);\n    *(char **)(lVar3 + 0x20) = pcVar5;\n    *(undefined8 *)(lVar3 + 0x28) = 0;\n    *(undefined4 *)(lVar3 + 0x30) = 0;\n    if ((param_5 == 0 && param_6 == 0) || (param_6 == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }\n    iVar2 = FUN_00127080(lVar1," vtable ");\n    if (iVar2 != 0) {\n      if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }\n    }\n  }\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_001291b0(long param_1,char *param_2,ulong param_3,int param_4,int param_5,int param_6,\n            int param_7)" (identifier "FUN_001291b0") (parameter_list "(long param_1,char *param_2,ulong param_3,int param_4,int param_5,int param_6,\n            int param_7)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (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 "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) (, ",") (parameter_declaration "int param_7" (primitive_type "int") (identifier "param_7")) () ")"))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  char *pcVar5;\n  char local_58 [40];\n  \n  lVar1 = param_1 + 0x10;\n  *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;\n  if ((param_7 != 0) || (param_6 == 0)) {\n    lVar4 = 0;\n  }\n  else {\n    lVar4 = FUN_00126930(lVar1);\n    param_3 = param_3 & 0xffffffff;\n    if (lVar4 == 0) {\n      return 0;\n    }\n  }\n  if (param_2 == (char *)0x0) {\n    param_2 = local_58;\n    sprintf(param_2,"%%anon%u",param_3);\n  }\n  iVar2 = FUN_001289c0(lVar1,param_2);\n  if (iVar2 != 0) {\n    pcVar5 = "class";\n    if (param_4 == 0) {\n      pcVar5 = "union class";\n    }\n    lVar3 = *(long *)(param_1 + 0x10);\n    *(char **)(lVar3 + 0x20) = pcVar5;\n    *(undefined8 *)(lVar3 + 0x28) = 0;\n    *(undefined4 *)(lVar3 + 0x30) = 0;\n    if ((param_5 == 0 && param_6 == 0) || (param_6 == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }\n    iVar2 = FUN_00127080(lVar1," vtable ");\n    if (iVar2 != 0) {\n      if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "char local_58 [40];" (primitive_type "char") (array_declarator "local_58 [40]" (identifier "local_58") ([ "[") (number_literal "40") (] "]")) (; ";")) (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_7 != 0) || (param_6 == 0)) {\n    lVar4 = 0;\n  }\n  else {\n    lVar4 = FUN_00126930(lVar1);\n    param_3 = param_3 & 0xffffffff;\n    if (lVar4 == 0) {\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "((param_7 != 0) || (param_6 == 0))" (( "(") (binary_expression "(param_7 != 0) || (param_6 == 0)" (parenthesized_expression "(param_7 != 0)" (( "(") (binary_expression "param_7 != 0" (identifier "param_7") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_6 == 0)" (( "(") (binary_expression "param_6 == 0" (identifier "param_6") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    lVar4 = 0;\n  }" ({ "{") (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" (identifier "lVar4") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    lVar4 = FUN_00126930(lVar1);\n    param_3 = param_3 & 0xffffffff;\n    if (lVar4 == 0) {\n      return 0;\n    }\n  }" (else "else") (compound_statement "{\n    lVar4 = FUN_00126930(lVar1);\n    param_3 = param_3 & 0xffffffff;\n    if (lVar4 == 0) {\n      return 0;\n    }\n  }" ({ "{") (expression_statement "lVar4 = FUN_00126930(lVar1);" (assignment_expression "lVar4 = FUN_00126930(lVar1)" (identifier "lVar4") (= "=") (call_expression "FUN_00126930(lVar1)" (identifier "FUN_00126930") (argument_list "(lVar1)" (( "(") (identifier "lVar1") () ")")))) (; ";")) (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"))) (; ";")) (if_statement "if (lVar4 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(lVar4 == 0)" (( "(") (binary_expression "lVar4 == 0" (identifier "lVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")))) (if_statement "if (param_2 == (char *)0x0) {\n    param_2 = local_58;\n    sprintf(param_2,"%%anon%u",param_3);\n  }" (if "if") (parenthesized_expression "(param_2 == (char *)0x0)" (( "(") (binary_expression "param_2 == (char *)0x0" (identifier "param_2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    param_2 = local_58;\n    sprintf(param_2,"%%anon%u",param_3);\n  }" ({ "{") (expression_statement "param_2 = local_58;" (assignment_expression "param_2 = local_58" (identifier "param_2") (= "=") (identifier "local_58")) (; ";")) (expression_statement "sprintf(param_2,"%%anon%u",param_3);" (call_expression "sprintf(param_2,"%%anon%u",param_3)" (identifier "sprintf") (argument_list "(param_2,"%%anon%u",param_3)" (( "(") (identifier "param_2") (, ",") (string_literal ""%%anon%u"" (" """) (string_content "%%anon%u") (" """)) (, ",") (identifier "param_3") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_001289c0(lVar1,param_2);" (assignment_expression "iVar2 = FUN_001289c0(lVar1,param_2)" (identifier "iVar2") (= "=") (call_expression "FUN_001289c0(lVar1,param_2)" (identifier "FUN_001289c0") (argument_list "(lVar1,param_2)" (( "(") (identifier "lVar1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    pcVar5 = "class";\n    if (param_4 == 0) {\n      pcVar5 = "union class";\n    }\n    lVar3 = *(long *)(param_1 + 0x10);\n    *(char **)(lVar3 + 0x20) = pcVar5;\n    *(undefined8 *)(lVar3 + 0x28) = 0;\n    *(undefined4 *)(lVar3 + 0x30) = 0;\n    if ((param_5 == 0 && param_6 == 0) || (param_6 == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }\n    iVar2 = FUN_00127080(lVar1," vtable ");\n    if (iVar2 != 0) {\n      if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar5 = "class";\n    if (param_4 == 0) {\n      pcVar5 = "union class";\n    }\n    lVar3 = *(long *)(param_1 + 0x10);\n    *(char **)(lVar3 + 0x20) = pcVar5;\n    *(undefined8 *)(lVar3 + 0x28) = 0;\n    *(undefined4 *)(lVar3 + 0x30) = 0;\n    if ((param_5 == 0 && param_6 == 0) || (param_6 == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }\n    iVar2 = FUN_00127080(lVar1," vtable ");\n    if (iVar2 != 0) {\n      if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }\n    }\n  }" ({ "{") (expression_statement "pcVar5 = "class";" (assignment_expression "pcVar5 = "class"" (identifier "pcVar5") (= "=") (string_literal ""class"" (" """) (string_content "class") (" """))) (; ";")) (if_statement "if (param_4 == 0) {\n      pcVar5 = "union class";\n    }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      pcVar5 = "union class";\n    }" ({ "{") (expression_statement "pcVar5 = "union class";" (assignment_expression "pcVar5 = "union class"" (identifier "pcVar5") (= "=") (string_literal ""union class"" (" """) (string_content "union class") (" """))) (; ";")) (} "}"))) (expression_statement "lVar3 = *(long *)(param_1 + 0x10);" (assignment_expression "lVar3 = *(long *)(param_1 + 0x10)" (identifier "lVar3") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "*(char **)(lVar3 + 0x20) = pcVar5;" (assignment_expression "*(char **)(lVar3 + 0x20) = pcVar5" (pointer_expression "*(char **)(lVar3 + 0x20)" (* "*") (cast_expression "(char **)(lVar3 + 0x20)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar3 + 0x20)" (( "(") (binary_expression "lVar3 + 0x20" (identifier "lVar3") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "pcVar5")) (; ";")) (expression_statement "*(undefined8 *)(lVar3 + 0x28) = 0;" (assignment_expression "*(undefined8 *)(lVar3 + 0x28) = 0" (pointer_expression "*(undefined8 *)(lVar3 + 0x28)" (* "*") (cast_expression "(undefined8 *)(lVar3 + 0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x28)" (( "(") (binary_expression "lVar3 + 0x28" (identifier "lVar3") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(lVar3 + 0x30) = 0;" (assignment_expression "*(undefined4 *)(lVar3 + 0x30) = 0" (pointer_expression "*(undefined4 *)(lVar3 + 0x30)" (* "*") (cast_expression "(undefined4 *)(lVar3 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x30)" (( "(") (binary_expression "lVar3 + 0x30" (identifier "lVar3") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((param_5 == 0 && param_6 == 0) || (param_6 == 0)) {\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }" (if "if") (parenthesized_expression "((param_5 == 0 && param_6 == 0) || (param_6 == 0))" (( "(") (binary_expression "(param_5 == 0 && param_6 == 0) || (param_6 == 0)" (parenthesized_expression "(param_5 == 0 && param_6 == 0)" (( "(") (binary_expression "param_5 == 0 && param_6 == 0" (binary_expression "param_5 == 0" (identifier "param_5") (== "==") (number_literal "0")) (&& "&&") (binary_expression "param_6 == 0" (identifier "param_6") (== "==") (number_literal "0"))) () ")")) (|| "||") (parenthesized_expression "(param_6 == 0)" (( "(") (binary_expression "param_6 == 0" (identifier "param_6") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\nLAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;\n      return 1;\n    }" ({ "{") (labeled_statement "LAB_0012923a:\n      *(undefined4 *)(lVar3 + 0x10) = 2;" (statement_identifier "LAB_0012923a") (: ":") (expression_statement "*(undefined4 *)(lVar3 + 0x10) = 2;" (assignment_expression "*(undefined4 *)(lVar3 + 0x10) = 2" (pointer_expression "*(undefined4 *)(lVar3 + 0x10)" (* "*") (cast_expression "(undefined4 *)(lVar3 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x10)" (( "(") (binary_expression "lVar3 + 0x10" (identifier "lVar3") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "2")) (; ";"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00127080(lVar1," vtable ");" (assignment_expression "iVar2 = FUN_00127080(lVar1," vtable ")" (identifier "iVar2") (= "=") (call_expression "FUN_00127080(lVar1," vtable ")" (identifier "FUN_00127080") (argument_list "(lVar1," vtable ")" (( "(") (identifier "lVar1") (, ",") (string_literal "" vtable "" (" """) (string_content " vtable ") (" """)) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }\n      if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }\n    }" ({ "{") (if_statement "if (param_7 == 0) {\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }\n      else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }" (if "if") (parenthesized_expression "(param_7 == 0)" (( "(") (binary_expression "param_7 == 0" (identifier "param_7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar2 = FUN_00127080(lVar1,lVar4);\n        if (iVar2 == 0) {\n          return 0;\n        }\n        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);\n      }" ({ "{") (expression_statement "iVar2 = FUN_00127080(lVar1,lVar4);" (assignment_expression "iVar2 = FUN_00127080(lVar1,lVar4)" (identifier "iVar2") (= "=") (call_expression "FUN_00127080(lVar1,lVar4)" (identifier "FUN_00127080") (argument_list "(lVar1,lVar4)" (( "(") (identifier "lVar1") (, ",") (identifier "lVar4") () ")")))) (; ";")) (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_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")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }" (else "else") (compound_statement "{\n        iVar2 = FUN_00127080(lVar1,"self ");\n      }" ({ "{") (expression_statement "iVar2 = FUN_00127080(lVar1,"self ");" (assignment_expression "iVar2 = FUN_00127080(lVar1,"self ")" (identifier "iVar2") (= "=") (call_expression "FUN_00127080(lVar1,"self ")" (identifier "FUN_00127080") (argument_list "(lVar1,"self ")" (( "(") (identifier "lVar1") (, ",") (string_literal ""self "" (" """) (string_content "self ") (" """)) () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar2 != 0) {\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        lVar3 = *(long *)(param_1 + 0x10);\n        goto LAB_0012923a;\n      }" ({ "{") (expression_statement "lVar3 = *(long *)(param_1 + 0x10);" (assignment_expression "lVar3 = *(long *)(param_1 + 0x10)" (identifier "lVar3") (= "=") (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")) () ")"))))) (; ";")) (goto_statement "goto LAB_0012923a;" (goto "goto") (statement_identifier "LAB_0012923a") (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1
function_1(void *p,char *var_6,type_2 id,type_1 var_10,type_2 var_12,type_1 var_3,
                   type_1 var_2)

{
  type_3 *info_00;
  type_1 var_9;
  int var_14;
  long var_11;
  char *var_5;
  type_4 in_register_00000014;
  type_5 uVar4;
  char *pcVar5;
  type_3 *info;
  char idbuf [20];
  
  uVar4 = var_1(in_register_00000014,id);
  info_00 = (type_3 *)((long)p + 0x10);
  *(int *)((long)p + 8) = *(int *)((long)p + 8) + 2;
  if ((var_2 != 0) || (var_3 == 0)) {
    var_5 = (char *)0x0;
  }
  else {
    var_5 = var_4(info_00);
    uVar4 = (type_5)id;
    if (var_5 == (char *)0x0) {
      return 0;
    }
  }
  if (var_6 == (char *)0x0) {
    var_6 = idbuf;
    var_7(var_6,"%%anon%u",uVar4);
  }
  var_9 = var_8(info_00,var_6);
  if (var_9 != 0) {
    pcVar5 = "class";
    if (var_10 == 0) {
      pcVar5 = "union class";
    }
    var_11 = *(long *)((long)p + 0x10);
    *(char **)(var_11 + 0x20) = pcVar5;
    *(type_6 *)(var_11 + 0x28) = 0;
    *(type_4 *)(var_11 + 0x30) = 0;
    if ((var_12 == 0 && var_3 == 0) || (var_3 == 0)) {
LAB_0012923a:
      *(type_4 *)(var_11 + 0x10) = 2;
      return 1;
    }
    var_9 = var_13(info_00," vtable ");
    if (var_9 != 0) {
      if (var_2 == 0) {
        var_9 = var_13(info_00,var_5);
        if (var_9 == 0) {
          return 0;
        }
        var_14 = var_13(info_00," ");
      }
      else {
        var_14 = var_13(info_00,"self ");
      }
      if (var_14 != 0) {
        var_11 = *(long *)((long)p + 0x10);
        goto LAB_0012923a;
      }
    }
  }
  return 0;
}


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

undefined8
MASKED(long param_1,char *param_2,ulong param_3,int param_4,int param_5,int param_6,
            int param_7)

{
  long lVar1;
  int iVar2;
  long lVar3;
  long lVar4;
  char *pcVar5;
  char local_58 [40];
  
  lVar1 = param_1 + 0x10;
  *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 2;
  if ((param_7 != 0) || (param_6 == 0)) {
    lVar4 = 0;
  }
  else {
    lVar4 = FUN_00126930(lVar1);
    param_3 = param_3 & 0xffffffff;
    if (lVar4 == 0) {
      return 0;
    }
  }
  if (param_2 == (char *)0x0) {
    param_2 = local_58;
    sprintf(param_2,"%%anon%u",param_3);
  }
  iVar2 = FUN_001289c0(lVar1,param_2);
  if (iVar2 != 0) {
    pcVar5 = "class";
    if (param_4 == 0) {
      pcVar5 = "union class";
    }
    lVar3 = *(long *)(param_1 + 0x10);
    *(char **)(lVar3 + 0x20) = pcVar5;
    *(undefined8 *)(lVar3 + 0x28) = 0;
    *(undefined4 *)(lVar3 + 0x30) = 0;
    if ((param_5 == 0 && param_6 == 0) || (param_6 == 0)) {
LAB_0012923a:
      *(undefined4 *)(lVar3 + 0x10) = 2;
      return 1;
    }
    iVar2 = FUN_00127080(lVar1," vtable ");
    if (iVar2 != 0) {
      if (param_7 == 0) {
        iVar2 = FUN_00127080(lVar1,lVar4);
        if (iVar2 == 0) {
          return 0;
        }
        iVar2 = FUN_00127080(lVar1,&DAT_0013d6b7);
      }
      else {
        iVar2 = FUN_00127080(lVar1,"self ");
      }
      if (iVar2 != 0) {
        lVar3 = *(long *)(param_1 + 0x10);
        goto LAB_0012923a;
      }
    }
  }
  return 0;
}

