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

{
  uint uVar1;
  uint uVar2;
  bfd_boolean bVar3;
  undefined8 uVar4;
  long lVar5;
  stab_write_handle *info;
  uint *puVar6;
  uint *puVar7;
  bool bVar8;
  uint local_5c;
  char buf [40];
  
  local_5c = size;
  if (id == 0) {
    buf[0] = '\0';
    bVar3 = 0;
    lVar5 = 0;
  }
  else {
    lVar5 = stab_get_struct_index((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&local_5c);
    if (lVar5 < 0) {
      return 0;
    }
    bVar3 = 1;
    sprintf(buf,"%ld=",lVar5);
  }
  puVar7 = (uint *)buf;
  do {
    puVar6 = puVar7;
    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;
    uVar2 = uVar1 & 0x80808080;
    puVar7 = puVar6 + 1;
  } while (uVar2 == 0);
  bVar8 = (uVar1 & 0x8080) == 0;
  if (bVar8) {
    uVar2 = uVar2 >> 0x10;
  }
  if (bVar8) {
    puVar7 = (uint *)((long)puVar6 + 6);
  }
  sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",
          (ulong)((-(uint)(structp == 0) & 2) + 0x73),(ulong)local_5c);
  bVar3 = stab_push_string((stab_write_handle *)((long)p + 0x60),buf,lVar5,bVar3,local_5c);
  if (bVar3 == 0) {
    return 0;
  }
  lVar5 = *(long *)((long)p + 0x60);
  uVar4 = xmalloc(1);
  *(undefined8 *)(lVar5 + 0x20) = uVar4;
  **(undefined1 **)(*(long *)((long)p + 0x60) + 0x20) = 0;
  return 1;
}



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

{
  uint uVar1;
  uint uVar2;
  int iVar3;
  undefined8 uVar4;
  long lVar5;
  uint *puVar6;
  uint *puVar7;
  bool bVar8;
  uint local_58 [12];
  
  if (param_3 == 0) {
    local_58[0]._0_1_ = 0;
    uVar4 = 0;
    lVar5 = 0;
  }
  else {
    lVar5 = FUN_00118170();
    if (lVar5 < 0) {
      return 0;
    }
    uVar4 = 1;
    sprintf((char *)local_58,"%ld=",lVar5);
  }
  puVar7 = local_58;
  do {
    puVar6 = puVar7;
    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;
    uVar2 = uVar1 & 0x80808080;
    puVar7 = puVar6 + 1;
  } while (uVar2 == 0);
  bVar8 = (uVar1 & 0x8080) == 0;
  if (bVar8) {
    uVar2 = uVar2 >> 0x10;
  }
  if (bVar8) {
    puVar7 = (uint *)((long)puVar6 + 6);
  }
  sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",
          (ulong)((-(uint)(param_4 == 0) & 2) + 0x73),(ulong)param_5);
  iVar3 = FUN_00119800(param_1 + 0x60,local_58,lVar5,uVar4,param_5);
  if (iVar3 == 0) {
    return 0;
  }
  lVar5 = *(long *)(param_1 + 0x60);
  uVar4 = xmalloc(1);
  *(undefined8 *)(lVar5 + 0x20) = uVar4;
  **(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20) = 0;
  return 1;
}


PUSH R14
MOV R14D,ECX
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
SUB RSP,0x40
MOV dword ptr [RSP + 0xc],R8D
TEST EDX,EDX
JNZ 0x00119b10
MOV byte ptr [RSP + 0x10],0x0
XOR R12D,R12D
XOR EBP,EBP
LEA R13,[RSP + 0x10]
CMP R14D,0x1
MOV ECX,dword ptr [RSP + 0xc]
MOV RDI,R13
SBB EDX,EDX
AND EDX,0x2
ADD EDX,0x73
MOV ESI,dword ptr [RDI]
ADD RDI,0x4
LEA EAX,[RSI + -0x1010101]
NOT ESI
AND EAX,ESI
AND EAX,0x80808080
JZ 0x00119a81
MOV ESI,EAX
SHR ESI,0x10
TEST EAX,0x8080
CMOVZ EAX,ESI
LEA RSI,[RDI + 0x2]
CMOVZ RDI,RSI
MOV ESI,EAX
ADD SIL,AL
LEA RSI,[0x12402b]
SBB RDI,0x3
XOR EAX,EAX
CALL 0x00104820
MOV R8D,dword ptr [RSP + 0xc]
MOV ECX,R12D
MOV RDX,RBP
LEA RDI,[RBX + 0x60]
MOV RSI,R13
CALL 0x00119800
TEST EAX,EAX
JZ 0x00119b24
MOV RBP,qword ptr [RBX + 0x60]
MOV EDI,0x1
CALL 0x00104370
MOV qword ptr [RBP + 0x20],RAX
MOV RAX,qword ptr [RBX + 0x60]
MOV RAX,qword ptr [RAX + 0x20]
MOV byte ptr [RAX],0x0
ADD RSP,0x40
MOV EAX,0x1
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
LEA R8,[RSP + 0xc]
XOR ECX,ECX
CALL 0x00118170
MOV RBP,RAX
TEST RAX,RAX
JNS 0x00119b38
ADD RSP,0x40
XOR EAX,EAX
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
LEA R13,[RSP + 0x10]
MOV RDX,RAX
XOR EAX,EAX
MOV R12D,0x1
LEA RSI,[0x124026]
MOV RDI,R13
CALL 0x00104820
JMP 0x00119a6e
(translation_unit "undefined8 FUN_00119a40(long param_1,undefined8 param_2,int param_3,int param_4,uint param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  undefined8 uVar4;\n  long lVar5;\n  uint *puVar6;\n  uint *puVar7;\n  bool bVar8;\n  uint local_58 [12];\n  \n  if (param_3 == 0) {\n    local_58[0]._0_1_ = 0;\n    uVar4 = 0;\n    lVar5 = 0;\n  }\n  else {\n    lVar5 = FUN_00118170();\n    if (lVar5 < 0) {\n      return 0;\n    }\n    uVar4 = 1;\n    sprintf((char *)local_58,"%ld=",lVar5);\n  }\n  puVar7 = local_58;\n  do {\n    puVar6 = puVar7;\n    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar2 = uVar1 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  } while (uVar2 == 0);\n  bVar8 = (uVar1 & 0x8080) == 0;\n  if (bVar8) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar8) {\n    puVar7 = (uint *)((long)puVar6 + 6);\n  }\n  sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(param_4 == 0) & 2) + 0x73),(ulong)param_5);\n  iVar3 = FUN_00119800(param_1 + 0x60,local_58,lVar5,uVar4,param_5);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  lVar5 = *(long *)(param_1 + 0x60);\n  uVar4 = xmalloc(1);\n  *(undefined8 *)(lVar5 + 0x20) = uVar4;\n  **(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20) = 0;\n  return 1;\n}\n\n" (function_definition "undefined8 FUN_00119a40(long param_1,undefined8 param_2,int param_3,int param_4,uint param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  undefined8 uVar4;\n  long lVar5;\n  uint *puVar6;\n  uint *puVar7;\n  bool bVar8;\n  uint local_58 [12];\n  \n  if (param_3 == 0) {\n    local_58[0]._0_1_ = 0;\n    uVar4 = 0;\n    lVar5 = 0;\n  }\n  else {\n    lVar5 = FUN_00118170();\n    if (lVar5 < 0) {\n      return 0;\n    }\n    uVar4 = 1;\n    sprintf((char *)local_58,"%ld=",lVar5);\n  }\n  puVar7 = local_58;\n  do {\n    puVar6 = puVar7;\n    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar2 = uVar1 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  } while (uVar2 == 0);\n  bVar8 = (uVar1 & 0x8080) == 0;\n  if (bVar8) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar8) {\n    puVar7 = (uint *)((long)puVar6 + 6);\n  }\n  sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(param_4 == 0) & 2) + 0x73),(ulong)param_5);\n  iVar3 = FUN_00119800(param_1 + 0x60,local_58,lVar5,uVar4,param_5);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  lVar5 = *(long *)(param_1 + 0x60);\n  uVar4 = xmalloc(1);\n  *(undefined8 *)(lVar5 + 0x20) = uVar4;\n  **(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20) = 0;\n  return 1;\n}" type_identifier (function_declarator "FUN_00119a40(long param_1,undefined8 param_2,int param_3,int param_4,uint param_5)" identifier (parameter_list "(long param_1,undefined8 param_2,int param_3,int param_4,uint param_5)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  undefined8 uVar4;\n  long lVar5;\n  uint *puVar6;\n  uint *puVar7;\n  bool bVar8;\n  uint local_58 [12];\n  \n  if (param_3 == 0) {\n    local_58[0]._0_1_ = 0;\n    uVar4 = 0;\n    lVar5 = 0;\n  }\n  else {\n    lVar5 = FUN_00118170();\n    if (lVar5 < 0) {\n      return 0;\n    }\n    uVar4 = 1;\n    sprintf((char *)local_58,"%ld=",lVar5);\n  }\n  puVar7 = local_58;\n  do {\n    puVar6 = puVar7;\n    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar2 = uVar1 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  } while (uVar2 == 0);\n  bVar8 = (uVar1 & 0x8080) == 0;\n  if (bVar8) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar8) {\n    puVar7 = (uint *)((long)puVar6 + 6);\n  }\n  sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(param_4 == 0) & 2) + 0x73),(ulong)param_5);\n  iVar3 = FUN_00119800(param_1 + 0x60,local_58,lVar5,uVar4,param_5);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  lVar5 = *(long *)(param_1 + 0x60);\n  uVar4 = xmalloc(1);\n  *(undefined8 *)(lVar5 + 0x20) = uVar4;\n  **(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20) = 0;\n  return 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "uint local_58 [12];" type_identifier (array_declarator "local_58 [12]" identifier [ number_literal ]) ;) (if_statement "if (param_3 == 0) {\n    local_58[0]._0_1_ = 0;\n    uVar4 = 0;\n    lVar5 = 0;\n  }\n  else {\n    lVar5 = FUN_00118170();\n    if (lVar5 < 0) {\n      return 0;\n    }\n    uVar4 = 1;\n    sprintf((char *)local_58,"%ld=",lVar5);\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    local_58[0]._0_1_ = 0;\n    uVar4 = 0;\n    lVar5 = 0;\n  }" { (expression_statement "local_58[0]._0_1_ = 0;" (assignment_expression "local_58[0]._0_1_ = 0" (field_expression "local_58[0]._0_1_" (subscript_expression "local_58[0]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    lVar5 = FUN_00118170();\n    if (lVar5 < 0) {\n      return 0;\n    }\n    uVar4 = 1;\n    sprintf((char *)local_58,"%ld=",lVar5);\n  }" else (compound_statement "{\n    lVar5 = FUN_00118170();\n    if (lVar5 < 0) {\n      return 0;\n    }\n    uVar4 = 1;\n    sprintf((char *)local_58,"%ld=",lVar5);\n  }" { (expression_statement "lVar5 = FUN_00118170();" (assignment_expression "lVar5 = FUN_00118170()" identifier = (call_expression "FUN_00118170()" identifier (argument_list "()" ( )))) ;) (if_statement "if (lVar5 < 0) {\n      return 0;\n    }" if (parenthesized_expression "(lVar5 < 0)" ( (binary_expression "lVar5 < 0" identifier < number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (expression_statement "sprintf((char *)local_58,"%ld=",lVar5);" (call_expression "sprintf((char *)local_58,"%ld=",lVar5)" identifier (argument_list "((char *)local_58,"%ld=",lVar5)" ( (cast_expression "(char *)local_58" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""%ld="" " string_content ") , identifier ))) ;) }))) (expression_statement "puVar7 = local_58;" (assignment_expression "puVar7 = local_58" identifier = identifier) ;) (do_statement "do {\n    puVar6 = puVar7;\n    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar2 = uVar1 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  } while (uVar2 == 0);" do (compound_statement "{\n    puVar6 = puVar7;\n    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar2 = uVar1 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  }" { (expression_statement "puVar6 = puVar7;" (assignment_expression "puVar6 = puVar7" identifier = identifier) ;) (expression_statement "uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;" (assignment_expression "uVar1 = *puVar6 + 0xfefefeff & ~*puVar6" identifier = (binary_expression "*puVar6 + 0xfefefeff & ~*puVar6" (binary_expression "*puVar6 + 0xfefefeff" (pointer_expression "*puVar6" * identifier) + number_literal) & (unary_expression "~*puVar6" ~ (pointer_expression "*puVar6" * identifier)))) ;) (expression_statement "uVar2 = uVar1 & 0x80808080;" (assignment_expression "uVar2 = uVar1 & 0x80808080" identifier = (binary_expression "uVar1 & 0x80808080" identifier & number_literal)) ;) (expression_statement "puVar7 = puVar6 + 1;" (assignment_expression "puVar7 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) ;) (expression_statement "bVar8 = (uVar1 & 0x8080) == 0;" (assignment_expression "bVar8 = (uVar1 & 0x8080) == 0" identifier = (binary_expression "(uVar1 & 0x8080) == 0" (parenthesized_expression "(uVar1 & 0x8080)" ( (binary_expression "uVar1 & 0x8080" identifier & number_literal) )) == number_literal)) ;) (if_statement "if (bVar8) {\n    uVar2 = uVar2 >> 0x10;\n  }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n    uVar2 = uVar2 >> 0x10;\n  }" { (expression_statement "uVar2 = uVar2 >> 0x10;" (assignment_expression "uVar2 = uVar2 >> 0x10" identifier = (binary_expression "uVar2 >> 0x10" identifier >> number_literal)) ;) })) (if_statement "if (bVar8) {\n    puVar7 = (uint *)((long)puVar6 + 6);\n  }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n    puVar7 = (uint *)((long)puVar6 + 6);\n  }" { (expression_statement "puVar7 = (uint *)((long)puVar6 + 6);" (assignment_expression "puVar7 = (uint *)((long)puVar6 + 6)" identifier = (cast_expression "(uint *)((long)puVar6 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar6 + 6)" ( (binary_expression "(long)puVar6 + 6" (cast_expression "(long)puVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) })) (expression_statement "sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(param_4 == 0) & 2) + 0x73),(ulong)param_5);" (call_expression "sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(param_4 == 0) & 2) + 0x73),(ulong)param_5)" identifier (argument_list "((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(param_4 == 0) & 2) + 0x73),(ulong)param_5)" ( (cast_expression "(char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2)))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2)))" ( (binary_expression "(long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (parenthesized_expression "(-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))" ( (binary_expression "-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2)" number_literal - (cast_expression "(ulong)CARRY1((byte)uVar2,(byte)uVar2)" ( (type_descriptor "ulong" type_identifier) ) (call_expression "CARRY1((byte)uVar2,(byte)uVar2)" identifier (argument_list "((byte)uVar2,(byte)uVar2)" ( (cast_expression "(byte)uVar2" ( (type_descriptor "byte" type_identifier) ) identifier) , (cast_expression "(byte)uVar2" ( (type_descriptor "byte" type_identifier) ) identifier) ))))) ))) ))) , (string_literal ""%c%u"" " string_content ") , (call_expression "(ulong)((-(uint)(param_4 == 0) & 2) + 0x73)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((-(uint)(param_4 == 0) & 2) + 0x73)" ( (binary_expression "(-(uint)(param_4 == 0) & 2) + 0x73" (parenthesized_expression "(-(uint)(param_4 == 0) & 2)" ( (binary_expression "-(uint)(param_4 == 0) & 2" (unary_expression "-(uint)(param_4 == 0)" - (call_expression "(uint)(param_4 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )))) & number_literal) )) + number_literal) ))) , (cast_expression "(ulong)param_5" ( (type_descriptor "ulong" type_identifier) ) identifier) ))) ;) (expression_statement "iVar3 = FUN_00119800(param_1 + 0x60,local_58,lVar5,uVar4,param_5);" (assignment_expression "iVar3 = FUN_00119800(param_1 + 0x60,local_58,lVar5,uVar4,param_5)" identifier = (call_expression "FUN_00119800(param_1 + 0x60,local_58,lVar5,uVar4,param_5)" identifier (argument_list "(param_1 + 0x60,local_58,lVar5,uVar4,param_5)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "lVar5 = *(long *)(param_1 + 0x60);" (assignment_expression "lVar5 = *(long *)(param_1 + 0x60)" identifier = (pointer_expression "*(long *)(param_1 + 0x60)" * (cast_expression "(long *)(param_1 + 0x60)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = xmalloc(1);" (assignment_expression "uVar4 = xmalloc(1)" identifier = (call_expression "xmalloc(1)" identifier (argument_list "(1)" ( number_literal )))) ;) (expression_statement "*(undefined8 *)(lVar5 + 0x20) = uVar4;" (assignment_expression "*(undefined8 *)(lVar5 + 0x20) = uVar4" (pointer_expression "*(undefined8 *)(lVar5 + 0x20)" * (cast_expression "(undefined8 *)(lVar5 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x20)" ( (binary_expression "lVar5 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "**(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20) = 0;" (assignment_expression "**(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20) = 0" (pointer_expression "**(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20)" * (pointer_expression "*(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20)" * (cast_expression "(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(param_1 + 0x60) + 0x20)" ( (binary_expression "*(long *)(param_1 + 0x60) + 0x20" (pointer_expression "*(long *)(param_1 + 0x60)" * (cast_expression "(long *)(param_1 + 0x60)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + number_literal) ))))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "bfd_boolean stab_start_struct_type(void *p,char *tag,uint id,bfd_boolean structp,uint size)\n\n{\n  uint uVar1;\n  uint uVar2;\n  bfd_boolean bVar3;\n  undefined8 uVar4;\n  long lVar5;\n  stab_write_handle *info;\n  uint *puVar6;\n  uint *puVar7;\n  bool bVar8;\n  uint local_5c;\n  char buf [40];\n  \n  local_5c = size;\n  if (id == 0) {\n    buf[0] = '\0';\n    bVar3 = 0;\n    lVar5 = 0;\n  }\n  else {\n    lVar5 = stab_get_struct_index((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&local_5c);\n    if (lVar5 < 0) {\n      return 0;\n    }\n    bVar3 = 1;\n    sprintf(buf,"%ld=",lVar5);\n  }\n  puVar7 = (uint *)buf;\n  do {\n    puVar6 = puVar7;\n    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar2 = uVar1 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  } while (uVar2 == 0);\n  bVar8 = (uVar1 & 0x8080) == 0;\n  if (bVar8) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar8) {\n    puVar7 = (uint *)((long)puVar6 + 6);\n  }\n  sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(structp == 0) & 2) + 0x73),(ulong)local_5c);\n  bVar3 = stab_push_string((stab_write_handle *)((long)p + 0x60),buf,lVar5,bVar3,local_5c);\n  if (bVar3 == 0) {\n    return 0;\n  }\n  lVar5 = *(long *)((long)p + 0x60);\n  uVar4 = xmalloc(1);\n  *(undefined8 *)(lVar5 + 0x20) = uVar4;\n  **(undefined1 **)(*(long *)((long)p + 0x60) + 0x20) = 0;\n  return 1;\n}\n\n" (function_definition "bfd_boolean stab_start_struct_type(void *p,char *tag,uint id,bfd_boolean structp,uint size)\n\n{\n  uint uVar1;\n  uint uVar2;\n  bfd_boolean bVar3;\n  undefined8 uVar4;\n  long lVar5;\n  stab_write_handle *info;\n  uint *puVar6;\n  uint *puVar7;\n  bool bVar8;\n  uint local_5c;\n  char buf [40];\n  \n  local_5c = size;\n  if (id == 0) {\n    buf[0] = '\0';\n    bVar3 = 0;\n    lVar5 = 0;\n  }\n  else {\n    lVar5 = stab_get_struct_index((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&local_5c);\n    if (lVar5 < 0) {\n      return 0;\n    }\n    bVar3 = 1;\n    sprintf(buf,"%ld=",lVar5);\n  }\n  puVar7 = (uint *)buf;\n  do {\n    puVar6 = puVar7;\n    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar2 = uVar1 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  } while (uVar2 == 0);\n  bVar8 = (uVar1 & 0x8080) == 0;\n  if (bVar8) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar8) {\n    puVar7 = (uint *)((long)puVar6 + 6);\n  }\n  sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(structp == 0) & 2) + 0x73),(ulong)local_5c);\n  bVar3 = stab_push_string((stab_write_handle *)((long)p + 0x60),buf,lVar5,bVar3,local_5c);\n  if (bVar3 == 0) {\n    return 0;\n  }\n  lVar5 = *(long *)((long)p + 0x60);\n  uVar4 = xmalloc(1);\n  *(undefined8 *)(lVar5 + 0x20) = uVar4;\n  **(undefined1 **)(*(long *)((long)p + 0x60) + 0x20) = 0;\n  return 1;\n}" type_identifier (function_declarator "stab_start_struct_type(void *p,char *tag,uint id,bfd_boolean structp,uint size)" identifier (parameter_list "(void *p,char *tag,uint id,bfd_boolean structp,uint size)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *tag" primitive_type (pointer_declarator "*tag" * identifier)) , (parameter_declaration "uint id" type_identifier identifier) , (parameter_declaration "bfd_boolean structp" type_identifier identifier) , (parameter_declaration "uint size" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  bfd_boolean bVar3;\n  undefined8 uVar4;\n  long lVar5;\n  stab_write_handle *info;\n  uint *puVar6;\n  uint *puVar7;\n  bool bVar8;\n  uint local_5c;\n  char buf [40];\n  \n  local_5c = size;\n  if (id == 0) {\n    buf[0] = '\0';\n    bVar3 = 0;\n    lVar5 = 0;\n  }\n  else {\n    lVar5 = stab_get_struct_index((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&local_5c);\n    if (lVar5 < 0) {\n      return 0;\n    }\n    bVar3 = 1;\n    sprintf(buf,"%ld=",lVar5);\n  }\n  puVar7 = (uint *)buf;\n  do {\n    puVar6 = puVar7;\n    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar2 = uVar1 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  } while (uVar2 == 0);\n  bVar8 = (uVar1 & 0x8080) == 0;\n  if (bVar8) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar8) {\n    puVar7 = (uint *)((long)puVar6 + 6);\n  }\n  sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(structp == 0) & 2) + 0x73),(ulong)local_5c);\n  bVar3 = stab_push_string((stab_write_handle *)((long)p + 0x60),buf,lVar5,bVar3,local_5c);\n  if (bVar3 == 0) {\n    return 0;\n  }\n  lVar5 = *(long *)((long)p + 0x60);\n  uVar4 = xmalloc(1);\n  *(undefined8 *)(lVar5 + 0x20) = uVar4;\n  **(undefined1 **)(*(long *)((long)p + 0x60) + 0x20) = 0;\n  return 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "bfd_boolean bVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "stab_write_handle *info;" type_identifier (pointer_declarator "*info" * identifier) ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "uint local_5c;" type_identifier identifier ;) (declaration "char buf [40];" primitive_type (array_declarator "buf [40]" identifier [ number_literal ]) ;) (expression_statement "local_5c = size;" (assignment_expression "local_5c = size" identifier = identifier) ;) (if_statement "if (id == 0) {\n    buf[0] = '\0';\n    bVar3 = 0;\n    lVar5 = 0;\n  }\n  else {\n    lVar5 = stab_get_struct_index((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&local_5c);\n    if (lVar5 < 0) {\n      return 0;\n    }\n    bVar3 = 1;\n    sprintf(buf,"%ld=",lVar5);\n  }" if (parenthesized_expression "(id == 0)" ( (binary_expression "id == 0" identifier == number_literal) )) (compound_statement "{\n    buf[0] = '\0';\n    bVar3 = 0;\n    lVar5 = 0;\n  }" { (expression_statement "buf[0] = '\0';" (assignment_expression "buf[0] = '\0'" (subscript_expression "buf[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "bVar3 = 0;" (assignment_expression "bVar3 = 0" identifier = number_literal) ;) (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    lVar5 = stab_get_struct_index((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&local_5c);\n    if (lVar5 < 0) {\n      return 0;\n    }\n    bVar3 = 1;\n    sprintf(buf,"%ld=",lVar5);\n  }" else (compound_statement "{\n    lVar5 = stab_get_struct_index((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&local_5c);\n    if (lVar5 < 0) {\n      return 0;\n    }\n    bVar3 = 1;\n    sprintf(buf,"%ld=",lVar5);\n  }" { (expression_statement "lVar5 = stab_get_struct_index((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&local_5c);" (assignment_expression "lVar5 = stab_get_struct_index((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&local_5c)" identifier = (call_expression "stab_get_struct_index((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&local_5c)" identifier (argument_list "((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&local_5c)" ( (cast_expression "(stab_write_handle *)p" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier , identifier , (pointer_expression "&local_5c" & identifier) )))) ;) (if_statement "if (lVar5 < 0) {\n      return 0;\n    }" if (parenthesized_expression "(lVar5 < 0)" ( (binary_expression "lVar5 < 0" identifier < number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar3 = 1;" (assignment_expression "bVar3 = 1" identifier = number_literal) ;) (expression_statement "sprintf(buf,"%ld=",lVar5);" (call_expression "sprintf(buf,"%ld=",lVar5)" identifier (argument_list "(buf,"%ld=",lVar5)" ( identifier , (string_literal ""%ld="" " string_content ") , identifier ))) ;) }))) (expression_statement "puVar7 = (uint *)buf;" (assignment_expression "puVar7 = (uint *)buf" identifier = (cast_expression "(uint *)buf" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n    puVar6 = puVar7;\n    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar2 = uVar1 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  } while (uVar2 == 0);" do (compound_statement "{\n    puVar6 = puVar7;\n    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar2 = uVar1 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  }" { (expression_statement "puVar6 = puVar7;" (assignment_expression "puVar6 = puVar7" identifier = identifier) ;) (expression_statement "uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;" (assignment_expression "uVar1 = *puVar6 + 0xfefefeff & ~*puVar6" identifier = (binary_expression "*puVar6 + 0xfefefeff & ~*puVar6" (binary_expression "*puVar6 + 0xfefefeff" (pointer_expression "*puVar6" * identifier) + number_literal) & (unary_expression "~*puVar6" ~ (pointer_expression "*puVar6" * identifier)))) ;) (expression_statement "uVar2 = uVar1 & 0x80808080;" (assignment_expression "uVar2 = uVar1 & 0x80808080" identifier = (binary_expression "uVar1 & 0x80808080" identifier & number_literal)) ;) (expression_statement "puVar7 = puVar6 + 1;" (assignment_expression "puVar7 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) ;) (expression_statement "bVar8 = (uVar1 & 0x8080) == 0;" (assignment_expression "bVar8 = (uVar1 & 0x8080) == 0" identifier = (binary_expression "(uVar1 & 0x8080) == 0" (parenthesized_expression "(uVar1 & 0x8080)" ( (binary_expression "uVar1 & 0x8080" identifier & number_literal) )) == number_literal)) ;) (if_statement "if (bVar8) {\n    uVar2 = uVar2 >> 0x10;\n  }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n    uVar2 = uVar2 >> 0x10;\n  }" { (expression_statement "uVar2 = uVar2 >> 0x10;" (assignment_expression "uVar2 = uVar2 >> 0x10" identifier = (binary_expression "uVar2 >> 0x10" identifier >> number_literal)) ;) })) (if_statement "if (bVar8) {\n    puVar7 = (uint *)((long)puVar6 + 6);\n  }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n    puVar7 = (uint *)((long)puVar6 + 6);\n  }" { (expression_statement "puVar7 = (uint *)((long)puVar6 + 6);" (assignment_expression "puVar7 = (uint *)((long)puVar6 + 6)" identifier = (cast_expression "(uint *)((long)puVar6 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar6 + 6)" ( (binary_expression "(long)puVar6 + 6" (cast_expression "(long)puVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) })) (expression_statement "sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(structp == 0) & 2) + 0x73),(ulong)local_5c);" (call_expression "sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(structp == 0) & 2) + 0x73),(ulong)local_5c)" identifier (argument_list "((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(structp == 0) & 2) + 0x73),(ulong)local_5c)" ( (cast_expression "(char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2)))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2)))" ( (binary_expression "(long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (parenthesized_expression "(-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))" ( (binary_expression "-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2)" number_literal - (cast_expression "(ulong)CARRY1((byte)uVar2,(byte)uVar2)" ( (type_descriptor "ulong" type_identifier) ) (call_expression "CARRY1((byte)uVar2,(byte)uVar2)" identifier (argument_list "((byte)uVar2,(byte)uVar2)" ( (cast_expression "(byte)uVar2" ( (type_descriptor "byte" type_identifier) ) identifier) , (cast_expression "(byte)uVar2" ( (type_descriptor "byte" type_identifier) ) identifier) ))))) ))) ))) , (string_literal ""%c%u"" " string_content ") , (call_expression "(ulong)((-(uint)(structp == 0) & 2) + 0x73)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((-(uint)(structp == 0) & 2) + 0x73)" ( (binary_expression "(-(uint)(structp == 0) & 2) + 0x73" (parenthesized_expression "(-(uint)(structp == 0) & 2)" ( (binary_expression "-(uint)(structp == 0) & 2" (unary_expression "-(uint)(structp == 0)" - (call_expression "(uint)(structp == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(structp == 0)" ( (binary_expression "structp == 0" identifier == number_literal) )))) & number_literal) )) + number_literal) ))) , (cast_expression "(ulong)local_5c" ( (type_descriptor "ulong" type_identifier) ) identifier) ))) ;) (expression_statement "bVar3 = stab_push_string((stab_write_handle *)((long)p + 0x60),buf,lVar5,bVar3,local_5c);" (assignment_expression "bVar3 = stab_push_string((stab_write_handle *)((long)p + 0x60),buf,lVar5,bVar3,local_5c)" identifier = (call_expression "stab_push_string((stab_write_handle *)((long)p + 0x60),buf,lVar5,bVar3,local_5c)" identifier (argument_list "((stab_write_handle *)((long)p + 0x60),buf,lVar5,bVar3,local_5c)" ( (cast_expression "(stab_write_handle *)((long)p + 0x60)" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)p + 0x60)" ( (binary_expression "(long)p + 0x60" (cast_expression "(long)p" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))) , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (bVar3 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(bVar3 == 0)" ( (binary_expression "bVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "lVar5 = *(long *)((long)p + 0x60);" (assignment_expression "lVar5 = *(long *)((long)p + 0x60)" identifier = (pointer_expression "*(long *)((long)p + 0x60)" * (cast_expression "(long *)((long)p + 0x60)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)p + 0x60)" ( (binary_expression "(long)p + 0x60" (cast_expression "(long)p" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar4 = xmalloc(1);" (assignment_expression "uVar4 = xmalloc(1)" identifier = (call_expression "xmalloc(1)" identifier (argument_list "(1)" ( number_literal )))) ;) (expression_statement "*(undefined8 *)(lVar5 + 0x20) = uVar4;" (assignment_expression "*(undefined8 *)(lVar5 + 0x20) = uVar4" (pointer_expression "*(undefined8 *)(lVar5 + 0x20)" * (cast_expression "(undefined8 *)(lVar5 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x20)" ( (binary_expression "lVar5 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "**(undefined1 **)(*(long *)((long)p + 0x60) + 0x20) = 0;" (assignment_expression "**(undefined1 **)(*(long *)((long)p + 0x60) + 0x20) = 0" (pointer_expression "**(undefined1 **)(*(long *)((long)p + 0x60) + 0x20)" * (pointer_expression "*(undefined1 **)(*(long *)((long)p + 0x60) + 0x20)" * (cast_expression "(undefined1 **)(*(long *)((long)p + 0x60) + 0x20)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)((long)p + 0x60) + 0x20)" ( (binary_expression "*(long *)((long)p + 0x60) + 0x20" (pointer_expression "*(long *)((long)p + 0x60)" * (cast_expression "(long *)((long)p + 0x60)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)p + 0x60)" ( (binary_expression "(long)p + 0x60" (cast_expression "(long)p" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal) ))))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined8 FUN_00119a40(long param_1,undefined8 param_2,int param_3,int param_4,uint param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  undefined8 uVar4;\n  long lVar5;\n  uint *puVar6;\n  uint *puVar7;\n  bool bVar8;\n  uint local_58 [12];\n  \n  if (param_3 == 0) {\n    local_58[0]._0_1_ = 0;\n    uVar4 = 0;\n    lVar5 = 0;\n  }\n  else {\n    lVar5 = FUN_00118170();\n    if (lVar5 < 0) {\n      return 0;\n    }\n    uVar4 = 1;\n    sprintf((char *)local_58,"%ld=",lVar5);\n  }\n  puVar7 = local_58;\n  do {\n    puVar6 = puVar7;\n    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar2 = uVar1 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  } while (uVar2 == 0);\n  bVar8 = (uVar1 & 0x8080) == 0;\n  if (bVar8) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar8) {\n    puVar7 = (uint *)((long)puVar6 + 6);\n  }\n  sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(param_4 == 0) & 2) + 0x73),(ulong)param_5);\n  iVar3 = FUN_00119800(param_1 + 0x60,local_58,lVar5,uVar4,param_5);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  lVar5 = *(long *)(param_1 + 0x60);\n  uVar4 = xmalloc(1);\n  *(undefined8 *)(lVar5 + 0x20) = uVar4;\n  **(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20) = 0;\n  return 1;\n}\n\n" (function_definition "undefined8 FUN_00119a40(long param_1,undefined8 param_2,int param_3,int param_4,uint param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  undefined8 uVar4;\n  long lVar5;\n  uint *puVar6;\n  uint *puVar7;\n  bool bVar8;\n  uint local_58 [12];\n  \n  if (param_3 == 0) {\n    local_58[0]._0_1_ = 0;\n    uVar4 = 0;\n    lVar5 = 0;\n  }\n  else {\n    lVar5 = FUN_00118170();\n    if (lVar5 < 0) {\n      return 0;\n    }\n    uVar4 = 1;\n    sprintf((char *)local_58,"%ld=",lVar5);\n  }\n  puVar7 = local_58;\n  do {\n    puVar6 = puVar7;\n    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar2 = uVar1 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  } while (uVar2 == 0);\n  bVar8 = (uVar1 & 0x8080) == 0;\n  if (bVar8) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar8) {\n    puVar7 = (uint *)((long)puVar6 + 6);\n  }\n  sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(param_4 == 0) & 2) + 0x73),(ulong)param_5);\n  iVar3 = FUN_00119800(param_1 + 0x60,local_58,lVar5,uVar4,param_5);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  lVar5 = *(long *)(param_1 + 0x60);\n  uVar4 = xmalloc(1);\n  *(undefined8 *)(lVar5 + 0x20) = uVar4;\n  **(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20) = 0;\n  return 1;\n}" type_identifier (function_declarator "FUN_00119a40(long param_1,undefined8 param_2,int param_3,int param_4,uint param_5)" identifier (parameter_list "(long param_1,undefined8 param_2,int param_3,int param_4,uint param_5)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  undefined8 uVar4;\n  long lVar5;\n  uint *puVar6;\n  uint *puVar7;\n  bool bVar8;\n  uint local_58 [12];\n  \n  if (param_3 == 0) {\n    local_58[0]._0_1_ = 0;\n    uVar4 = 0;\n    lVar5 = 0;\n  }\n  else {\n    lVar5 = FUN_00118170();\n    if (lVar5 < 0) {\n      return 0;\n    }\n    uVar4 = 1;\n    sprintf((char *)local_58,"%ld=",lVar5);\n  }\n  puVar7 = local_58;\n  do {\n    puVar6 = puVar7;\n    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar2 = uVar1 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  } while (uVar2 == 0);\n  bVar8 = (uVar1 & 0x8080) == 0;\n  if (bVar8) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar8) {\n    puVar7 = (uint *)((long)puVar6 + 6);\n  }\n  sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(param_4 == 0) & 2) + 0x73),(ulong)param_5);\n  iVar3 = FUN_00119800(param_1 + 0x60,local_58,lVar5,uVar4,param_5);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  lVar5 = *(long *)(param_1 + 0x60);\n  uVar4 = xmalloc(1);\n  *(undefined8 *)(lVar5 + 0x20) = uVar4;\n  **(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20) = 0;\n  return 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "uint local_58 [12];" type_identifier (array_declarator "local_58 [12]" identifier [ number_literal ]) ;) (if_statement "if (param_3 == 0) {\n    local_58[0]._0_1_ = 0;\n    uVar4 = 0;\n    lVar5 = 0;\n  }\n  else {\n    lVar5 = FUN_00118170();\n    if (lVar5 < 0) {\n      return 0;\n    }\n    uVar4 = 1;\n    sprintf((char *)local_58,"%ld=",lVar5);\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    local_58[0]._0_1_ = 0;\n    uVar4 = 0;\n    lVar5 = 0;\n  }" { (expression_statement "local_58[0]._0_1_ = 0;" (assignment_expression "local_58[0]._0_1_ = 0" (field_expression "local_58[0]._0_1_" (subscript_expression "local_58[0]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    lVar5 = FUN_00118170();\n    if (lVar5 < 0) {\n      return 0;\n    }\n    uVar4 = 1;\n    sprintf((char *)local_58,"%ld=",lVar5);\n  }" else (compound_statement "{\n    lVar5 = FUN_00118170();\n    if (lVar5 < 0) {\n      return 0;\n    }\n    uVar4 = 1;\n    sprintf((char *)local_58,"%ld=",lVar5);\n  }" { (expression_statement "lVar5 = FUN_00118170();" (assignment_expression "lVar5 = FUN_00118170()" identifier = (call_expression "FUN_00118170()" identifier (argument_list "()" ( )))) ;) (if_statement "if (lVar5 < 0) {\n      return 0;\n    }" if (parenthesized_expression "(lVar5 < 0)" ( (binary_expression "lVar5 < 0" identifier < number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (expression_statement "sprintf((char *)local_58,"%ld=",lVar5);" (call_expression "sprintf((char *)local_58,"%ld=",lVar5)" identifier (argument_list "((char *)local_58,"%ld=",lVar5)" ( (cast_expression "(char *)local_58" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""%ld="" " string_content ") , identifier ))) ;) }))) (expression_statement "puVar7 = local_58;" (assignment_expression "puVar7 = local_58" identifier = identifier) ;) (do_statement "do {\n    puVar6 = puVar7;\n    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar2 = uVar1 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  } while (uVar2 == 0);" do (compound_statement "{\n    puVar6 = puVar7;\n    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar2 = uVar1 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  }" { (expression_statement "puVar6 = puVar7;" (assignment_expression "puVar6 = puVar7" identifier = identifier) ;) (expression_statement "uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;" (assignment_expression "uVar1 = *puVar6 + 0xfefefeff & ~*puVar6" identifier = (binary_expression "*puVar6 + 0xfefefeff & ~*puVar6" (binary_expression "*puVar6 + 0xfefefeff" (pointer_expression "*puVar6" * identifier) + number_literal) & (unary_expression "~*puVar6" ~ (pointer_expression "*puVar6" * identifier)))) ;) (expression_statement "uVar2 = uVar1 & 0x80808080;" (assignment_expression "uVar2 = uVar1 & 0x80808080" identifier = (binary_expression "uVar1 & 0x80808080" identifier & number_literal)) ;) (expression_statement "puVar7 = puVar6 + 1;" (assignment_expression "puVar7 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) ;) (expression_statement "bVar8 = (uVar1 & 0x8080) == 0;" (assignment_expression "bVar8 = (uVar1 & 0x8080) == 0" identifier = (binary_expression "(uVar1 & 0x8080) == 0" (parenthesized_expression "(uVar1 & 0x8080)" ( (binary_expression "uVar1 & 0x8080" identifier & number_literal) )) == number_literal)) ;) (if_statement "if (bVar8) {\n    uVar2 = uVar2 >> 0x10;\n  }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n    uVar2 = uVar2 >> 0x10;\n  }" { (expression_statement "uVar2 = uVar2 >> 0x10;" (assignment_expression "uVar2 = uVar2 >> 0x10" identifier = (binary_expression "uVar2 >> 0x10" identifier >> number_literal)) ;) })) (if_statement "if (bVar8) {\n    puVar7 = (uint *)((long)puVar6 + 6);\n  }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n    puVar7 = (uint *)((long)puVar6 + 6);\n  }" { (expression_statement "puVar7 = (uint *)((long)puVar6 + 6);" (assignment_expression "puVar7 = (uint *)((long)puVar6 + 6)" identifier = (cast_expression "(uint *)((long)puVar6 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar6 + 6)" ( (binary_expression "(long)puVar6 + 6" (cast_expression "(long)puVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) })) (expression_statement "sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(param_4 == 0) & 2) + 0x73),(ulong)param_5);" (call_expression "sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(param_4 == 0) & 2) + 0x73),(ulong)param_5)" identifier (argument_list "((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(param_4 == 0) & 2) + 0x73),(ulong)param_5)" ( (cast_expression "(char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2)))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2)))" ( (binary_expression "(long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (parenthesized_expression "(-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))" ( (binary_expression "-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2)" number_literal - (cast_expression "(ulong)CARRY1((byte)uVar2,(byte)uVar2)" ( (type_descriptor "ulong" type_identifier) ) (call_expression "CARRY1((byte)uVar2,(byte)uVar2)" identifier (argument_list "((byte)uVar2,(byte)uVar2)" ( (cast_expression "(byte)uVar2" ( (type_descriptor "byte" type_identifier) ) identifier) , (cast_expression "(byte)uVar2" ( (type_descriptor "byte" type_identifier) ) identifier) ))))) ))) ))) , (string_literal ""%c%u"" " string_content ") , (call_expression "(ulong)((-(uint)(param_4 == 0) & 2) + 0x73)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((-(uint)(param_4 == 0) & 2) + 0x73)" ( (binary_expression "(-(uint)(param_4 == 0) & 2) + 0x73" (parenthesized_expression "(-(uint)(param_4 == 0) & 2)" ( (binary_expression "-(uint)(param_4 == 0) & 2" (unary_expression "-(uint)(param_4 == 0)" - (call_expression "(uint)(param_4 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )))) & number_literal) )) + number_literal) ))) , (cast_expression "(ulong)param_5" ( (type_descriptor "ulong" type_identifier) ) identifier) ))) ;) (expression_statement "iVar3 = FUN_00119800(param_1 + 0x60,local_58,lVar5,uVar4,param_5);" (assignment_expression "iVar3 = FUN_00119800(param_1 + 0x60,local_58,lVar5,uVar4,param_5)" identifier = (call_expression "FUN_00119800(param_1 + 0x60,local_58,lVar5,uVar4,param_5)" identifier (argument_list "(param_1 + 0x60,local_58,lVar5,uVar4,param_5)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "lVar5 = *(long *)(param_1 + 0x60);" (assignment_expression "lVar5 = *(long *)(param_1 + 0x60)" identifier = (pointer_expression "*(long *)(param_1 + 0x60)" * (cast_expression "(long *)(param_1 + 0x60)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = xmalloc(1);" (assignment_expression "uVar4 = xmalloc(1)" identifier = (call_expression "xmalloc(1)" identifier (argument_list "(1)" ( number_literal )))) ;) (expression_statement "*(undefined8 *)(lVar5 + 0x20) = uVar4;" (assignment_expression "*(undefined8 *)(lVar5 + 0x20) = uVar4" (pointer_expression "*(undefined8 *)(lVar5 + 0x20)" * (cast_expression "(undefined8 *)(lVar5 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x20)" ( (binary_expression "lVar5 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "**(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20) = 0;" (assignment_expression "**(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20) = 0" (pointer_expression "**(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20)" * (pointer_expression "*(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20)" * (cast_expression "(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(param_1 + 0x60) + 0x20)" ( (binary_expression "*(long *)(param_1 + 0x60) + 0x20" (pointer_expression "*(long *)(param_1 + 0x60)" * (cast_expression "(long *)(param_1 + 0x60)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + number_literal) ))))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (string_literal " string_content ") , IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) & (unary_expression ~ (pointer_expression * IDENT)))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT == LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) })) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) IDENT) , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))))) ))) ))) , (string_literal " string_content ") , (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) )))) & LIT) )) + LIT) ))) , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (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 IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_00119a40(long param_1,undefined8 param_2,int param_3,int param_4,uint param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  undefined8 uVar4;\n  long lVar5;\n  uint *puVar6;\n  uint *puVar7;\n  bool bVar8;\n  uint local_58 [12];\n  \n  if (param_3 == 0) {\n    local_58[0]._0_1_ = 0;\n    uVar4 = 0;\n    lVar5 = 0;\n  }\n  else {\n    lVar5 = FUN_00118170();\n    if (lVar5 < 0) {\n      return 0;\n    }\n    uVar4 = 1;\n    sprintf((char *)local_58,"%ld=",lVar5);\n  }\n  puVar7 = local_58;\n  do {\n    puVar6 = puVar7;\n    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar2 = uVar1 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  } while (uVar2 == 0);\n  bVar8 = (uVar1 & 0x8080) == 0;\n  if (bVar8) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar8) {\n    puVar7 = (uint *)((long)puVar6 + 6);\n  }\n  sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(param_4 == 0) & 2) + 0x73),(ulong)param_5);\n  iVar3 = FUN_00119800(param_1 + 0x60,local_58,lVar5,uVar4,param_5);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  lVar5 = *(long *)(param_1 + 0x60);\n  uVar4 = xmalloc(1);\n  *(undefined8 *)(lVar5 + 0x20) = uVar4;\n  **(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20) = 0;\n  return 1;\n}" (type_identifier "undefined8") (function_declarator "FUN_00119a40(long param_1,undefined8 param_2,int param_3,int param_4,uint param_5)" (identifier "FUN_00119a40") (parameter_list "(long param_1,undefined8 param_2,int param_3,int param_4,uint param_5)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  undefined8 uVar4;\n  long lVar5;\n  uint *puVar6;\n  uint *puVar7;\n  bool bVar8;\n  uint local_58 [12];\n  \n  if (param_3 == 0) {\n    local_58[0]._0_1_ = 0;\n    uVar4 = 0;\n    lVar5 = 0;\n  }\n  else {\n    lVar5 = FUN_00118170();\n    if (lVar5 < 0) {\n      return 0;\n    }\n    uVar4 = 1;\n    sprintf((char *)local_58,"%ld=",lVar5);\n  }\n  puVar7 = local_58;\n  do {\n    puVar6 = puVar7;\n    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar2 = uVar1 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  } while (uVar2 == 0);\n  bVar8 = (uVar1 & 0x8080) == 0;\n  if (bVar8) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar8) {\n    puVar7 = (uint *)((long)puVar6 + 6);\n  }\n  sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(param_4 == 0) & 2) + 0x73),(ulong)param_5);\n  iVar3 = FUN_00119800(param_1 + 0x60,local_58,lVar5,uVar4,param_5);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  lVar5 = *(long *)(param_1 + 0x60);\n  uVar4 = xmalloc(1);\n  *(undefined8 *)(lVar5 + 0x20) = uVar4;\n  **(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20) = 0;\n  return 1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "uint *puVar6;" (type_identifier "uint") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "uint *puVar7;" (type_identifier "uint") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "bool bVar8;" (primitive_type "bool") (identifier "bVar8") (; ";")) (declaration "uint local_58 [12];" (type_identifier "uint") (array_declarator "local_58 [12]" (identifier "local_58") ([ "[") (number_literal "12") (] "]")) (; ";")) (if_statement "if (param_3 == 0) {\n    local_58[0]._0_1_ = 0;\n    uVar4 = 0;\n    lVar5 = 0;\n  }\n  else {\n    lVar5 = FUN_00118170();\n    if (lVar5 < 0) {\n      return 0;\n    }\n    uVar4 = 1;\n    sprintf((char *)local_58,"%ld=",lVar5);\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_58[0]._0_1_ = 0;\n    uVar4 = 0;\n    lVar5 = 0;\n  }" ({ "{") (expression_statement "local_58[0]._0_1_ = 0;" (assignment_expression "local_58[0]._0_1_ = 0" (field_expression "local_58[0]._0_1_" (subscript_expression "local_58[0]" (identifier "local_58") ([ "[") (number_literal "0") (] "]")) (. ".") (field_identifier "_0_1_")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" (identifier "lVar5") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    lVar5 = FUN_00118170();\n    if (lVar5 < 0) {\n      return 0;\n    }\n    uVar4 = 1;\n    sprintf((char *)local_58,"%ld=",lVar5);\n  }" (else "else") (compound_statement "{\n    lVar5 = FUN_00118170();\n    if (lVar5 < 0) {\n      return 0;\n    }\n    uVar4 = 1;\n    sprintf((char *)local_58,"%ld=",lVar5);\n  }" ({ "{") (expression_statement "lVar5 = FUN_00118170();" (assignment_expression "lVar5 = FUN_00118170()" (identifier "lVar5") (= "=") (call_expression "FUN_00118170()" (identifier "FUN_00118170") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (lVar5 < 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(lVar5 < 0)" (( "(") (binary_expression "lVar5 < 0" (identifier "lVar5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";")) (expression_statement "sprintf((char *)local_58,"%ld=",lVar5);" (call_expression "sprintf((char *)local_58,"%ld=",lVar5)" (identifier "sprintf") (argument_list "((char *)local_58,"%ld=",lVar5)" (( "(") (cast_expression "(char *)local_58" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_58")) (, ",") (string_literal ""%ld="" (" """) (string_content "%ld=") (" """)) (, ",") (identifier "lVar5") () ")"))) (; ";")) (} "}")))) (expression_statement "puVar7 = local_58;" (assignment_expression "puVar7 = local_58" (identifier "puVar7") (= "=") (identifier "local_58")) (; ";")) (do_statement "do {\n    puVar6 = puVar7;\n    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar2 = uVar1 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  } while (uVar2 == 0);" (do "do") (compound_statement "{\n    puVar6 = puVar7;\n    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar2 = uVar1 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  }" ({ "{") (expression_statement "puVar6 = puVar7;" (assignment_expression "puVar6 = puVar7" (identifier "puVar6") (= "=") (identifier "puVar7")) (; ";")) (expression_statement "uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;" (assignment_expression "uVar1 = *puVar6 + 0xfefefeff & ~*puVar6" (identifier "uVar1") (= "=") (binary_expression "*puVar6 + 0xfefefeff & ~*puVar6" (binary_expression "*puVar6 + 0xfefefeff" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (+ "+") (number_literal "0xfefefeff")) (& "&") (unary_expression "~*puVar6" (~ "~") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))))) (; ";")) (expression_statement "uVar2 = uVar1 & 0x80808080;" (assignment_expression "uVar2 = uVar1 & 0x80808080" (identifier "uVar2") (= "=") (binary_expression "uVar1 & 0x80808080" (identifier "uVar1") (& "&") (number_literal "0x80808080"))) (; ";")) (expression_statement "puVar7 = puVar6 + 1;" (assignment_expression "puVar7 = puVar6 + 1" (identifier "puVar7") (= "=") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (; ";")) (expression_statement "bVar8 = (uVar1 & 0x8080) == 0;" (assignment_expression "bVar8 = (uVar1 & 0x8080) == 0" (identifier "bVar8") (= "=") (binary_expression "(uVar1 & 0x8080) == 0" (parenthesized_expression "(uVar1 & 0x8080)" (( "(") (binary_expression "uVar1 & 0x8080" (identifier "uVar1") (& "&") (number_literal "0x8080")) () ")")) (== "==") (number_literal "0"))) (; ";")) (if_statement "if (bVar8) {\n    uVar2 = uVar2 >> 0x10;\n  }" (if "if") (parenthesized_expression "(bVar8)" (( "(") (identifier "bVar8") () ")")) (compound_statement "{\n    uVar2 = uVar2 >> 0x10;\n  }" ({ "{") (expression_statement "uVar2 = uVar2 >> 0x10;" (assignment_expression "uVar2 = uVar2 >> 0x10" (identifier "uVar2") (= "=") (binary_expression "uVar2 >> 0x10" (identifier "uVar2") (>> ">>") (number_literal "0x10"))) (; ";")) (} "}"))) (if_statement "if (bVar8) {\n    puVar7 = (uint *)((long)puVar6 + 6);\n  }" (if "if") (parenthesized_expression "(bVar8)" (( "(") (identifier "bVar8") () ")")) (compound_statement "{\n    puVar7 = (uint *)((long)puVar6 + 6);\n  }" ({ "{") (expression_statement "puVar7 = (uint *)((long)puVar6 + 6);" (assignment_expression "puVar7 = (uint *)((long)puVar6 + 6)" (identifier "puVar7") (= "=") (cast_expression "(uint *)((long)puVar6 + 6)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar6 + 6)" (( "(") (binary_expression "(long)puVar6 + 6" (cast_expression "(long)puVar6" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar6")) (+ "+") (number_literal "6")) () ")")))) (; ";")) (} "}"))) (expression_statement "sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(param_4 == 0) & 2) + 0x73),(ulong)param_5);" (call_expression "sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(param_4 == 0) & 2) + 0x73),(ulong)param_5)" (identifier "sprintf") (argument_list "((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (ulong)((-(uint)(param_4 == 0) & 2) + 0x73),(ulong)param_5)" (( "(") (cast_expression "(char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2)))" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2)))" (( "(") (binary_expression "(long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))" (cast_expression "(long)puVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar7")) (+ "+") (parenthesized_expression "(-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))" (( "(") (binary_expression "-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2)" (number_literal "-3") (- "-") (cast_expression "(ulong)CARRY1((byte)uVar2,(byte)uVar2)" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (call_expression "CARRY1((byte)uVar2,(byte)uVar2)" (identifier "CARRY1") (argument_list "((byte)uVar2,(byte)uVar2)" (( "(") (cast_expression "(byte)uVar2" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar2")) (, ",") (cast_expression "(byte)uVar2" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar2")) () ")"))))) () ")"))) () ")"))) (, ",") (string_literal ""%c%u"" (" """) (string_content "%c%u") (" """)) (, ",") (call_expression "(ulong)((-(uint)(param_4 == 0) & 2) + 0x73)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "((-(uint)(param_4 == 0) & 2) + 0x73)" (( "(") (binary_expression "(-(uint)(param_4 == 0) & 2) + 0x73" (parenthesized_expression "(-(uint)(param_4 == 0) & 2)" (( "(") (binary_expression "-(uint)(param_4 == 0) & 2" (unary_expression "-(uint)(param_4 == 0)" (- "-") (call_expression "(uint)(param_4 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")))) (& "&") (number_literal "2")) () ")")) (+ "+") (number_literal "0x73")) () ")"))) (, ",") (cast_expression "(ulong)param_5" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "param_5")) () ")"))) (; ";")) (expression_statement "iVar3 = FUN_00119800(param_1 + 0x60,local_58,lVar5,uVar4,param_5);" (assignment_expression "iVar3 = FUN_00119800(param_1 + 0x60,local_58,lVar5,uVar4,param_5)" (identifier "iVar3") (= "=") (call_expression "FUN_00119800(param_1 + 0x60,local_58,lVar5,uVar4,param_5)" (identifier "FUN_00119800") (argument_list "(param_1 + 0x60,local_58,lVar5,uVar4,param_5)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) (, ",") (identifier "local_58") (, ",") (identifier "lVar5") (, ",") (identifier "uVar4") (, ",") (identifier "param_5") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "lVar5 = *(long *)(param_1 + 0x60);" (assignment_expression "lVar5 = *(long *)(param_1 + 0x60)" (identifier "lVar5") (= "=") (pointer_expression "*(long *)(param_1 + 0x60)" (* "*") (cast_expression "(long *)(param_1 + 0x60)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")"))))) (; ";")) (expression_statement "uVar4 = xmalloc(1);" (assignment_expression "uVar4 = xmalloc(1)" (identifier "uVar4") (= "=") (call_expression "xmalloc(1)" (identifier "xmalloc") (argument_list "(1)" (( "(") (number_literal "1") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(lVar5 + 0x20) = uVar4;" (assignment_expression "*(undefined8 *)(lVar5 + 0x20) = uVar4" (pointer_expression "*(undefined8 *)(lVar5 + 0x20)" (* "*") (cast_expression "(undefined8 *)(lVar5 + 0x20)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 0x20)" (( "(") (binary_expression "lVar5 + 0x20" (identifier "lVar5") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "**(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20) = 0;" (assignment_expression "**(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20) = 0" (pointer_expression "**(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20)" (* "*") (pointer_expression "*(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20)" (* "*") (cast_expression "(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x60) + 0x20)" (( "(") (binary_expression "*(long *)(param_1 + 0x60) + 0x20" (pointer_expression "*(long *)(param_1 + 0x60)" (* "*") (cast_expression "(long *)(param_1 + 0x60)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (+ "+") (number_literal "0x20")) () ")"))))) (= "=") (number_literal "0")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

type_1 function_1(void *p,char *tag,type_2 var_1,type_1 var_9,type_2 size)

{
  type_2 var_5;
  type_2 var_7;
  type_1 var_11;
  type_3 uVar4;
  long var_3;
  type_4 *info;
  type_2 *var_6;
  type_2 *puVar7;
  bool bVar8;
  type_2 local_5c;
  char buf [40];
  
  local_5c = size;
  if (var_1 == 0) {
    buf[0] = '\0';
    var_11 = 0;
    var_3 = 0;
  }
  else {
    var_3 = var_2((type_4 *)p,tag,var_1,DEBUG_KIND_ILLEGAL,&local_5c);
    if (var_3 < 0) {
      return 0;
    }
    var_11 = 1;
    var_4(buf,"%ld=",var_3);
  }
  puVar7 = (type_2 *)buf;
  do {
    var_6 = puVar7;
    var_5 = *var_6 + 0xfefefeff & ~*var_6;
    var_7 = var_5 & 0x80808080;
    puVar7 = var_6 + 1;
  } while (var_7 == 0);
  bVar8 = (var_5 & 0x8080) == 0;
  if (bVar8) {
    var_7 = var_7 >> 0x10;
  }
  if (bVar8) {
    puVar7 = (type_2 *)((long)var_6 + 6);
  }
  var_4((char *)((long)puVar7 + (-3 - (type_5)var_8((type_6)var_7,(type_6)var_7))),"%c%u",
          (type_5)((-(type_2)(var_9 == 0) & 2) + 0x73),(type_5)local_5c);
  var_11 = var_10((type_4 *)((long)p + 0x60),buf,var_3,var_11,local_5c);
  if (var_11 == 0) {
    return 0;
  }
  var_3 = *(long *)((long)p + 0x60);
  uVar4 = var_12(1);
  *(type_3 *)(var_3 + 0x20) = uVar4;
  **(type_7 **)(*(long *)((long)p + 0x60) + 0x20) = 0;
  return 1;
}


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

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

{
  uint uVar1;
  uint uVar2;
  int iVar3;
  undefined8 uVar4;
  long lVar5;
  uint *puVar6;
  uint *puVar7;
  bool bVar8;
  uint local_58 [12];
  
  if (param_3 == 0) {
    local_58[0]._0_1_ = 0;
    uVar4 = 0;
    lVar5 = 0;
  }
  else {
    lVar5 = FUN_00118170();
    if (lVar5 < 0) {
      return 0;
    }
    uVar4 = 1;
    sprintf((char *)local_58,"%ld=",lVar5);
  }
  puVar7 = local_58;
  do {
    puVar6 = puVar7;
    uVar1 = *puVar6 + 0xfefefeff & ~*puVar6;
    uVar2 = uVar1 & 0x80808080;
    puVar7 = puVar6 + 1;
  } while (uVar2 == 0);
  bVar8 = (uVar1 & 0x8080) == 0;
  if (bVar8) {
    uVar2 = uVar2 >> 0x10;
  }
  if (bVar8) {
    puVar7 = (uint *)((long)puVar6 + 6);
  }
  sprintf((char *)((long)puVar7 + (-3 - (ulong)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",
          (ulong)((-(uint)(param_4 == 0) & 2) + 0x73),(ulong)param_5);
  iVar3 = FUN_00119800(param_1 + 0x60,local_58,lVar5,uVar4,param_5);
  if (iVar3 == 0) {
    return 0;
  }
  lVar5 = *(long *)(param_1 + 0x60);
  uVar4 = xmalloc(1);
  *(undefined8 *)(lVar5 + 0x20) = uVar4;
  **(undefined1 **)(*(long *)(param_1 + 0x60) + 0x20) = 0;
  return 1;
}

