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

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

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  bfd_boolean bVar4;
  undefined4 uVar5;
  uint *puVar6;
  uint *puVar7;
  long tindex;
  bool bVar8;
  bfd_boolean local_50;
  char buf [40];
  
  if (id == 0) {
    buf[0] = '\0';
    tindex = 0;
    local_50 = 0;
  }
  else {
    tindex = stab_get_struct_index((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&size);
    if (tindex < 0) {
      return 0;
    }
    sprintf(buf,"%ld=",tindex);
    local_50 = 1;
  }
  puVar7 = (uint *)buf;
  do {
    puVar6 = puVar7;
    uVar2 = *puVar6 + 0xfefefeff & ~*puVar6;
    uVar3 = uVar2 & 0x80808080;
    puVar7 = puVar6 + 1;
  } while (uVar3 == 0);
  bVar8 = (uVar2 & 0x8080) == 0;
  if (bVar8) {
    uVar3 = uVar3 >> 0x10;
  }
  if (bVar8) {
    puVar7 = (uint *)((int)puVar6 + 6);
  }
  sprintf((char *)((int)puVar7 + (-3 - (uint)CARRY1((byte)uVar3,(byte)uVar3))),"%c%u",
          (-(uint)(structp == 0) & 2) + 0x73,size);
  bVar4 = stab_push_string((stab_write_handle *)((int)p + 0x38),buf,tindex,local_50,size);
  if (bVar4 == 0) {
    return 0;
  }
  iVar1 = *(int *)((int)p + 0x38);
  uVar5 = xmalloc(1);
  *(undefined4 *)(iVar1 + 0x14) = uVar5;
  **(undefined1 **)(*(int *)((int)p + 0x38) + 0x14) = 0;
  return 1;
}



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

undefined4 FUN_00029840(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5)

{
  uint uVar1;
  uint uVar2;
  int iVar3;
  undefined4 uVar4;
  uint *puVar5;
  uint *puVar6;
  bool bVar7;
  undefined4 local_50;
  uint local_44 [12];
  undefined4 uStack_14;
  
  uStack_14 = 0x29849;
  if (param_3 == 0) {
    local_44[0]._0_1_ = 0;
    local_50 = 0;
  }
  else {
    iVar3 = FUN_00027f00(0,&param_5);
    if (iVar3 < 0) {
      return 0;
    }
    sprintf((char *)local_44,"%ld=",iVar3);
    local_50 = 1;
  }
  puVar6 = local_44;
  do {
    puVar5 = puVar6;
    uVar1 = *puVar5 + 0xfefefeff & ~*puVar5;
    uVar2 = uVar1 & 0x80808080;
    puVar6 = puVar5 + 1;
  } while (uVar2 == 0);
  bVar7 = (uVar1 & 0x8080) == 0;
  if (bVar7) {
    uVar2 = uVar2 >> 0x10;
  }
  if (bVar7) {
    puVar6 = (uint *)((int)puVar5 + 6);
  }
  sprintf((char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",
          (-(uint)(param_4 == 0) & 2) + 0x73,param_5);
  iVar3 = FUN_00029600(local_50,param_5);
  if (iVar3 == 0) {
    return 0;
  }
  iVar3 = *(int *)(param_1 + 0x38);
  uVar4 = xmalloc(1);
  *(undefined4 *)(iVar3 + 0x14) = uVar4;
  **(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14) = 0;
  return 1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000165d0
ADD EBX,0x157b7
SUB ESP,0x4c
MOV ECX,dword ptr [ESP + 0x68]
TEST ECX,ECX
JNZ 0x00029928
MOV byte ptr [ESP + 0x18],0x0
XOR EDI,EDI
LEA ESI,[ESP + 0x18]
MOV dword ptr [ESP + 0xc],0x0
MOV EAX,dword ptr [ESP + 0x70]
CMP dword ptr [ESP + 0x6c],0x1
MOV EDX,ESI
SBB ECX,ECX
MOV dword ptr [ESP + 0x8],EAX
AND ECX,0x2
ADD ECX,0x73
MOV EBP,dword ptr [EDX]
ADD EDX,0x4
LEA EAX,[EBP + 0xfefefeff]
NOT EBP
AND EAX,EBP
AND EAX,0x80808080
JZ 0x00029888
MOV EBP,EAX
MOV dword ptr [ESP + 0x4],ECX
SHR EBP,0x10
TEST EAX,0x8080
PUSH dword ptr [ESP + 0x8]
CMOVZ EAX,EBP
LEA EBP,[EDX + 0x2]
PUSH dword ptr [ESP + 0x8]
CMOVZ EDX,EBP
MOV ECX,EAX
ADD CL,AL
LEA EAX,[EBX + 0xffff4ebb]
SBB EDX,0x3
PUSH EAX
PUSH EDX
CALL 0x000137a0
MOV EAX,dword ptr [ESP + 0x70]
POP EDX
MOV EDX,ESI
POP ECX
PUSH dword ptr [ESP + 0x78]
MOV ECX,EDI
PUSH dword ptr [ESP + 0x18]
ADD EAX,0x38
CALL 0x00029600
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00029948
MOV EAX,dword ptr [ESP + 0x60]
SUB ESP,0xc
MOV ESI,dword ptr [EAX + 0x38]
PUSH 0x1
CALL 0x000132e0
MOV dword ptr [ESI + 0x14],EAX
MOV EAX,dword ptr [ESP + 0x70]
ADD ESP,0x10
MOV EAX,dword ptr [EAX + 0x38]
MOV EAX,dword ptr [EAX + 0x14]
MOV byte ptr [EAX],0x0
ADD ESP,0x4c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
LEA EAX,[ESP + 0x78]
PUSH EAX
PUSH 0x0
MOV EDX,dword ptr [ESP + 0x74]
MOV EAX,dword ptr [ESP + 0x70]
CALL 0x00027f00
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JNS 0x00029958
ADD ESP,0x4c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH EAX
LEA EAX,[EBX + 0xffff4eb6]
PUSH EAX
LEA ESI,[ESP + 0x24]
PUSH ESI
CALL 0x000137a0
ADD ESP,0x10
MOV dword ptr [ESP + 0xc],0x1
JMP 0x00029871
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00029840(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint *puVar5;\n  uint *puVar6;\n  bool bVar7;\n  undefined4 local_50;\n  uint local_44 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x29849;\n  if (param_3 == 0) {\n    local_44[0]._0_1_ = 0;\n    local_50 = 0;\n  }\n  else {\n    iVar3 = FUN_00027f00(0,&param_5);\n    if (iVar3 < 0) {\n      return 0;\n    }\n    sprintf((char *)local_44,"%ld=",iVar3);\n    local_50 = 1;\n  }\n  puVar6 = local_44;\n  do {\n    puVar5 = puVar6;\n    uVar1 = *puVar5 + 0xfefefeff & ~*puVar5;\n    uVar2 = uVar1 & 0x80808080;\n    puVar6 = puVar5 + 1;\n  } while (uVar2 == 0);\n  bVar7 = (uVar1 & 0x8080) == 0;\n  if (bVar7) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar7) {\n    puVar6 = (uint *)((int)puVar5 + 6);\n  }\n  sprintf((char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (-(uint)(param_4 == 0) & 2) + 0x73,param_5);\n  iVar3 = FUN_00029600(local_50,param_5);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  iVar3 = *(int *)(param_1 + 0x38);\n  uVar4 = xmalloc(1);\n  *(undefined4 *)(iVar3 + 0x14) = uVar4;\n  **(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14) = 0;\n  return 1;\n}\n\n" comment (function_definition "undefined4 FUN_00029840(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint *puVar5;\n  uint *puVar6;\n  bool bVar7;\n  undefined4 local_50;\n  uint local_44 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x29849;\n  if (param_3 == 0) {\n    local_44[0]._0_1_ = 0;\n    local_50 = 0;\n  }\n  else {\n    iVar3 = FUN_00027f00(0,&param_5);\n    if (iVar3 < 0) {\n      return 0;\n    }\n    sprintf((char *)local_44,"%ld=",iVar3);\n    local_50 = 1;\n  }\n  puVar6 = local_44;\n  do {\n    puVar5 = puVar6;\n    uVar1 = *puVar5 + 0xfefefeff & ~*puVar5;\n    uVar2 = uVar1 & 0x80808080;\n    puVar6 = puVar5 + 1;\n  } while (uVar2 == 0);\n  bVar7 = (uVar1 & 0x8080) == 0;\n  if (bVar7) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar7) {\n    puVar6 = (uint *)((int)puVar5 + 6);\n  }\n  sprintf((char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (-(uint)(param_4 == 0) & 2) + 0x73,param_5);\n  iVar3 = FUN_00029600(local_50,param_5);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  iVar3 = *(int *)(param_1 + 0x38);\n  uVar4 = xmalloc(1);\n  *(undefined4 *)(iVar3 + 0x14) = uVar4;\n  **(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14) = 0;\n  return 1;\n}" type_identifier (function_declarator "FUN_00029840(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint *puVar5;\n  uint *puVar6;\n  bool bVar7;\n  undefined4 local_50;\n  uint local_44 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x29849;\n  if (param_3 == 0) {\n    local_44[0]._0_1_ = 0;\n    local_50 = 0;\n  }\n  else {\n    iVar3 = FUN_00027f00(0,&param_5);\n    if (iVar3 < 0) {\n      return 0;\n    }\n    sprintf((char *)local_44,"%ld=",iVar3);\n    local_50 = 1;\n  }\n  puVar6 = local_44;\n  do {\n    puVar5 = puVar6;\n    uVar1 = *puVar5 + 0xfefefeff & ~*puVar5;\n    uVar2 = uVar1 & 0x80808080;\n    puVar6 = puVar5 + 1;\n  } while (uVar2 == 0);\n  bVar7 = (uVar1 & 0x8080) == 0;\n  if (bVar7) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar7) {\n    puVar6 = (uint *)((int)puVar5 + 6);\n  }\n  sprintf((char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (-(uint)(param_4 == 0) & 2) + 0x73,param_5);\n  iVar3 = FUN_00029600(local_50,param_5);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  iVar3 = *(int *)(param_1 + 0x38);\n  uVar4 = xmalloc(1);\n  *(undefined4 *)(iVar3 + 0x14) = uVar4;\n  **(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14) = 0;\n  return 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "undefined4 local_50;" type_identifier identifier ;) (declaration "uint local_44 [12];" type_identifier (array_declarator "local_44 [12]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x29849;" (assignment_expression "uStack_14 = 0x29849" identifier = number_literal) ;) (if_statement "if (param_3 == 0) {\n    local_44[0]._0_1_ = 0;\n    local_50 = 0;\n  }\n  else {\n    iVar3 = FUN_00027f00(0,&param_5);\n    if (iVar3 < 0) {\n      return 0;\n    }\n    sprintf((char *)local_44,"%ld=",iVar3);\n    local_50 = 1;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    local_44[0]._0_1_ = 0;\n    local_50 = 0;\n  }" { (expression_statement "local_44[0]._0_1_ = 0;" (assignment_expression "local_44[0]._0_1_ = 0" (field_expression "local_44[0]._0_1_" (subscript_expression "local_44[0]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar3 = FUN_00027f00(0,&param_5);\n    if (iVar3 < 0) {\n      return 0;\n    }\n    sprintf((char *)local_44,"%ld=",iVar3);\n    local_50 = 1;\n  }" else (compound_statement "{\n    iVar3 = FUN_00027f00(0,&param_5);\n    if (iVar3 < 0) {\n      return 0;\n    }\n    sprintf((char *)local_44,"%ld=",iVar3);\n    local_50 = 1;\n  }" { (expression_statement "iVar3 = FUN_00027f00(0,&param_5);" (assignment_expression "iVar3 = FUN_00027f00(0,&param_5)" identifier = (call_expression "FUN_00027f00(0,&param_5)" identifier (argument_list "(0,&param_5)" ( number_literal , (pointer_expression "&param_5" & 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 "sprintf((char *)local_44,"%ld=",iVar3);" (call_expression "sprintf((char *)local_44,"%ld=",iVar3)" identifier (argument_list "((char *)local_44,"%ld=",iVar3)" ( (cast_expression "(char *)local_44" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""%ld="" " string_content ") , identifier ))) ;) (expression_statement "local_50 = 1;" (assignment_expression "local_50 = 1" identifier = number_literal) ;) }))) (expression_statement "puVar6 = local_44;" (assignment_expression "puVar6 = local_44" identifier = identifier) ;) (do_statement "do {\n    puVar5 = puVar6;\n    uVar1 = *puVar5 + 0xfefefeff & ~*puVar5;\n    uVar2 = uVar1 & 0x80808080;\n    puVar6 = puVar5 + 1;\n  } while (uVar2 == 0);" do (compound_statement "{\n    puVar5 = puVar6;\n    uVar1 = *puVar5 + 0xfefefeff & ~*puVar5;\n    uVar2 = uVar1 & 0x80808080;\n    puVar6 = puVar5 + 1;\n  }" { (expression_statement "puVar5 = puVar6;" (assignment_expression "puVar5 = puVar6" identifier = identifier) ;) (expression_statement "uVar1 = *puVar5 + 0xfefefeff & ~*puVar5;" (assignment_expression "uVar1 = *puVar5 + 0xfefefeff & ~*puVar5" identifier = (binary_expression "*puVar5 + 0xfefefeff & ~*puVar5" (binary_expression "*puVar5 + 0xfefefeff" (pointer_expression "*puVar5" * identifier) + number_literal) & (unary_expression "~*puVar5" ~ (pointer_expression "*puVar5" * identifier)))) ;) (expression_statement "uVar2 = uVar1 & 0x80808080;" (assignment_expression "uVar2 = uVar1 & 0x80808080" identifier = (binary_expression "uVar1 & 0x80808080" identifier & number_literal)) ;) (expression_statement "puVar6 = puVar5 + 1;" (assignment_expression "puVar6 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) ;) (expression_statement "bVar7 = (uVar1 & 0x8080) == 0;" (assignment_expression "bVar7 = (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 (bVar7) {\n    uVar2 = uVar2 >> 0x10;\n  }" if (parenthesized_expression "(bVar7)" ( 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 (bVar7) {\n    puVar6 = (uint *)((int)puVar5 + 6);\n  }" if (parenthesized_expression "(bVar7)" ( identifier )) (compound_statement "{\n    puVar6 = (uint *)((int)puVar5 + 6);\n  }" { (expression_statement "puVar6 = (uint *)((int)puVar5 + 6);" (assignment_expression "puVar6 = (uint *)((int)puVar5 + 6)" identifier = (cast_expression "(uint *)((int)puVar5 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 6)" ( (binary_expression "(int)puVar5 + 6" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (expression_statement "sprintf((char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (-(uint)(param_4 == 0) & 2) + 0x73,param_5);" (call_expression "sprintf((char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (-(uint)(param_4 == 0) & 2) + 0x73,param_5)" identifier (argument_list "((char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (-(uint)(param_4 == 0) & 2) + 0x73,param_5)" ( (cast_expression "(char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)))" ( (binary_expression "(int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))" ( (binary_expression "-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)" number_literal - (cast_expression "(uint)CARRY1((byte)uVar2,(byte)uVar2)" ( (type_descriptor "uint" 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 ") , (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) , identifier ))) ;) (expression_statement "iVar3 = FUN_00029600(local_50,param_5);" (assignment_expression "iVar3 = FUN_00029600(local_50,param_5)" identifier = (call_expression "FUN_00029600(local_50,param_5)" identifier (argument_list "(local_50,param_5)" ( 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 "iVar3 = *(int *)(param_1 + 0x38);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x38)" identifier = (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" 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 "*(undefined4 *)(iVar3 + 0x14) = uVar4;" (assignment_expression "*(undefined4 *)(iVar3 + 0x14) = uVar4" (pointer_expression "*(undefined4 *)(iVar3 + 0x14)" * (cast_expression "(undefined4 *)(iVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "**(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14) = 0;" (assignment_expression "**(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14) = 0" (pointer_expression "**(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14)" * (pointer_expression "*(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14)" * (cast_expression "(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x38) + 0x14)" ( (binary_expression "*(int *)(param_1 + 0x38) + 0x14" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal) ))))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbfd_boolean stab_start_struct_type(void *p,char *tag,uint id,bfd_boolean structp,uint size)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  bfd_boolean bVar4;\n  undefined4 uVar5;\n  uint *puVar6;\n  uint *puVar7;\n  long tindex;\n  bool bVar8;\n  bfd_boolean local_50;\n  char buf [40];\n  \n  if (id == 0) {\n    buf[0] = '\0';\n    tindex = 0;\n    local_50 = 0;\n  }\n  else {\n    tindex = stab_get_struct_index((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&size);\n    if (tindex < 0) {\n      return 0;\n    }\n    sprintf(buf,"%ld=",tindex);\n    local_50 = 1;\n  }\n  puVar7 = (uint *)buf;\n  do {\n    puVar6 = puVar7;\n    uVar2 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar3 = uVar2 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  } while (uVar3 == 0);\n  bVar8 = (uVar2 & 0x8080) == 0;\n  if (bVar8) {\n    uVar3 = uVar3 >> 0x10;\n  }\n  if (bVar8) {\n    puVar7 = (uint *)((int)puVar6 + 6);\n  }\n  sprintf((char *)((int)puVar7 + (-3 - (uint)CARRY1((byte)uVar3,(byte)uVar3))),"%c%u",\n          (-(uint)(structp == 0) & 2) + 0x73,size);\n  bVar4 = stab_push_string((stab_write_handle *)((int)p + 0x38),buf,tindex,local_50,size);\n  if (bVar4 == 0) {\n    return 0;\n  }\n  iVar1 = *(int *)((int)p + 0x38);\n  uVar5 = xmalloc(1);\n  *(undefined4 *)(iVar1 + 0x14) = uVar5;\n  **(undefined1 **)(*(int *)((int)p + 0x38) + 0x14) = 0;\n  return 1;\n}\n\n" comment (function_definition "bfd_boolean stab_start_struct_type(void *p,char *tag,uint id,bfd_boolean structp,uint size)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  bfd_boolean bVar4;\n  undefined4 uVar5;\n  uint *puVar6;\n  uint *puVar7;\n  long tindex;\n  bool bVar8;\n  bfd_boolean local_50;\n  char buf [40];\n  \n  if (id == 0) {\n    buf[0] = '\0';\n    tindex = 0;\n    local_50 = 0;\n  }\n  else {\n    tindex = stab_get_struct_index((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&size);\n    if (tindex < 0) {\n      return 0;\n    }\n    sprintf(buf,"%ld=",tindex);\n    local_50 = 1;\n  }\n  puVar7 = (uint *)buf;\n  do {\n    puVar6 = puVar7;\n    uVar2 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar3 = uVar2 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  } while (uVar3 == 0);\n  bVar8 = (uVar2 & 0x8080) == 0;\n  if (bVar8) {\n    uVar3 = uVar3 >> 0x10;\n  }\n  if (bVar8) {\n    puVar7 = (uint *)((int)puVar6 + 6);\n  }\n  sprintf((char *)((int)puVar7 + (-3 - (uint)CARRY1((byte)uVar3,(byte)uVar3))),"%c%u",\n          (-(uint)(structp == 0) & 2) + 0x73,size);\n  bVar4 = stab_push_string((stab_write_handle *)((int)p + 0x38),buf,tindex,local_50,size);\n  if (bVar4 == 0) {\n    return 0;\n  }\n  iVar1 = *(int *)((int)p + 0x38);\n  uVar5 = xmalloc(1);\n  *(undefined4 *)(iVar1 + 0x14) = uVar5;\n  **(undefined1 **)(*(int *)((int)p + 0x38) + 0x14) = 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  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  bfd_boolean bVar4;\n  undefined4 uVar5;\n  uint *puVar6;\n  uint *puVar7;\n  long tindex;\n  bool bVar8;\n  bfd_boolean local_50;\n  char buf [40];\n  \n  if (id == 0) {\n    buf[0] = '\0';\n    tindex = 0;\n    local_50 = 0;\n  }\n  else {\n    tindex = stab_get_struct_index((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&size);\n    if (tindex < 0) {\n      return 0;\n    }\n    sprintf(buf,"%ld=",tindex);\n    local_50 = 1;\n  }\n  puVar7 = (uint *)buf;\n  do {\n    puVar6 = puVar7;\n    uVar2 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar3 = uVar2 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  } while (uVar3 == 0);\n  bVar8 = (uVar2 & 0x8080) == 0;\n  if (bVar8) {\n    uVar3 = uVar3 >> 0x10;\n  }\n  if (bVar8) {\n    puVar7 = (uint *)((int)puVar6 + 6);\n  }\n  sprintf((char *)((int)puVar7 + (-3 - (uint)CARRY1((byte)uVar3,(byte)uVar3))),"%c%u",\n          (-(uint)(structp == 0) & 2) + 0x73,size);\n  bVar4 = stab_push_string((stab_write_handle *)((int)p + 0x38),buf,tindex,local_50,size);\n  if (bVar4 == 0) {\n    return 0;\n  }\n  iVar1 = *(int *)((int)p + 0x38);\n  uVar5 = xmalloc(1);\n  *(undefined4 *)(iVar1 + 0x14) = uVar5;\n  **(undefined1 **)(*(int *)((int)p + 0x38) + 0x14) = 0;\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "bfd_boolean bVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "long tindex;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "bfd_boolean local_50;" type_identifier identifier ;) (declaration "char buf [40];" primitive_type (array_declarator "buf [40]" identifier [ number_literal ]) ;) (if_statement "if (id == 0) {\n    buf[0] = '\0';\n    tindex = 0;\n    local_50 = 0;\n  }\n  else {\n    tindex = stab_get_struct_index((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&size);\n    if (tindex < 0) {\n      return 0;\n    }\n    sprintf(buf,"%ld=",tindex);\n    local_50 = 1;\n  }" if (parenthesized_expression "(id == 0)" ( (binary_expression "id == 0" identifier == number_literal) )) (compound_statement "{\n    buf[0] = '\0';\n    tindex = 0;\n    local_50 = 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 "tindex = 0;" (assignment_expression "tindex = 0" identifier = number_literal) ;) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    tindex = stab_get_struct_index((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&size);\n    if (tindex < 0) {\n      return 0;\n    }\n    sprintf(buf,"%ld=",tindex);\n    local_50 = 1;\n  }" else (compound_statement "{\n    tindex = stab_get_struct_index((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&size);\n    if (tindex < 0) {\n      return 0;\n    }\n    sprintf(buf,"%ld=",tindex);\n    local_50 = 1;\n  }" { (expression_statement "tindex = stab_get_struct_index((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&size);" (assignment_expression "tindex = stab_get_struct_index((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&size)" identifier = (call_expression "stab_get_struct_index((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&size)" identifier (argument_list "((stab_write_handle *)p,tag,id,DEBUG_KIND_ILLEGAL,&size)" ( (cast_expression "(stab_write_handle *)p" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier , identifier , (pointer_expression "&size" & identifier) )))) ;) (if_statement "if (tindex < 0) {\n      return 0;\n    }" if (parenthesized_expression "(tindex < 0)" ( (binary_expression "tindex < 0" identifier < number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "sprintf(buf,"%ld=",tindex);" (call_expression "sprintf(buf,"%ld=",tindex)" identifier (argument_list "(buf,"%ld=",tindex)" ( identifier , (string_literal ""%ld="" " string_content ") , identifier ))) ;) (expression_statement "local_50 = 1;" (assignment_expression "local_50 = 1" identifier = number_literal) ;) }))) (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    uVar2 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar3 = uVar2 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  } while (uVar3 == 0);" do (compound_statement "{\n    puVar6 = puVar7;\n    uVar2 = *puVar6 + 0xfefefeff & ~*puVar6;\n    uVar3 = uVar2 & 0x80808080;\n    puVar7 = puVar6 + 1;\n  }" { (expression_statement "puVar6 = puVar7;" (assignment_expression "puVar6 = puVar7" identifier = identifier) ;) (expression_statement "uVar2 = *puVar6 + 0xfefefeff & ~*puVar6;" (assignment_expression "uVar2 = *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 "uVar3 = uVar2 & 0x80808080;" (assignment_expression "uVar3 = uVar2 & 0x80808080" identifier = (binary_expression "uVar2 & 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 "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) ;) (expression_statement "bVar8 = (uVar2 & 0x8080) == 0;" (assignment_expression "bVar8 = (uVar2 & 0x8080) == 0" identifier = (binary_expression "(uVar2 & 0x8080) == 0" (parenthesized_expression "(uVar2 & 0x8080)" ( (binary_expression "uVar2 & 0x8080" identifier & number_literal) )) == number_literal)) ;) (if_statement "if (bVar8) {\n    uVar3 = uVar3 >> 0x10;\n  }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n    uVar3 = uVar3 >> 0x10;\n  }" { (expression_statement "uVar3 = uVar3 >> 0x10;" (assignment_expression "uVar3 = uVar3 >> 0x10" identifier = (binary_expression "uVar3 >> 0x10" identifier >> number_literal)) ;) })) (if_statement "if (bVar8) {\n    puVar7 = (uint *)((int)puVar6 + 6);\n  }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n    puVar7 = (uint *)((int)puVar6 + 6);\n  }" { (expression_statement "puVar7 = (uint *)((int)puVar6 + 6);" (assignment_expression "puVar7 = (uint *)((int)puVar6 + 6)" identifier = (cast_expression "(uint *)((int)puVar6 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + 6)" ( (binary_expression "(int)puVar6 + 6" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (expression_statement "sprintf((char *)((int)puVar7 + (-3 - (uint)CARRY1((byte)uVar3,(byte)uVar3))),"%c%u",\n          (-(uint)(structp == 0) & 2) + 0x73,size);" (call_expression "sprintf((char *)((int)puVar7 + (-3 - (uint)CARRY1((byte)uVar3,(byte)uVar3))),"%c%u",\n          (-(uint)(structp == 0) & 2) + 0x73,size)" identifier (argument_list "((char *)((int)puVar7 + (-3 - (uint)CARRY1((byte)uVar3,(byte)uVar3))),"%c%u",\n          (-(uint)(structp == 0) & 2) + 0x73,size)" ( (cast_expression "(char *)((int)puVar7 + (-3 - (uint)CARRY1((byte)uVar3,(byte)uVar3)))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar7 + (-3 - (uint)CARRY1((byte)uVar3,(byte)uVar3)))" ( (binary_expression "(int)puVar7 + (-3 - (uint)CARRY1((byte)uVar3,(byte)uVar3))" (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(-3 - (uint)CARRY1((byte)uVar3,(byte)uVar3))" ( (binary_expression "-3 - (uint)CARRY1((byte)uVar3,(byte)uVar3)" number_literal - (cast_expression "(uint)CARRY1((byte)uVar3,(byte)uVar3)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY1((byte)uVar3,(byte)uVar3)" identifier (argument_list "((byte)uVar3,(byte)uVar3)" ( (cast_expression "(byte)uVar3" ( (type_descriptor "byte" type_identifier) ) identifier) , (cast_expression "(byte)uVar3" ( (type_descriptor "byte" type_identifier) ) identifier) ))))) ))) ))) , (string_literal ""%c%u"" " string_content ") , (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) , identifier ))) ;) (expression_statement "bVar4 = stab_push_string((stab_write_handle *)((int)p + 0x38),buf,tindex,local_50,size);" (assignment_expression "bVar4 = stab_push_string((stab_write_handle *)((int)p + 0x38),buf,tindex,local_50,size)" identifier = (call_expression "stab_push_string((stab_write_handle *)((int)p + 0x38),buf,tindex,local_50,size)" identifier (argument_list "((stab_write_handle *)((int)p + 0x38),buf,tindex,local_50,size)" ( (cast_expression "(stab_write_handle *)((int)p + 0x38)" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x38)" ( (binary_expression "(int)p + 0x38" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (bVar4 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(bVar4 == 0)" ( (binary_expression "bVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = *(int *)((int)p + 0x38);" (assignment_expression "iVar1 = *(int *)((int)p + 0x38)" identifier = (pointer_expression "*(int *)((int)p + 0x38)" * (cast_expression "(int *)((int)p + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x38)" ( (binary_expression "(int)p + 0x38" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar5 = xmalloc(1);" (assignment_expression "uVar5 = xmalloc(1)" identifier = (call_expression "xmalloc(1)" identifier (argument_list "(1)" ( number_literal )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x14) = uVar5;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = uVar5" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" * (cast_expression "(undefined4 *)(iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "**(undefined1 **)(*(int *)((int)p + 0x38) + 0x14) = 0;" (assignment_expression "**(undefined1 **)(*(int *)((int)p + 0x38) + 0x14) = 0" (pointer_expression "**(undefined1 **)(*(int *)((int)p + 0x38) + 0x14)" * (pointer_expression "*(undefined1 **)(*(int *)((int)p + 0x38) + 0x14)" * (cast_expression "(undefined1 **)(*(int *)((int)p + 0x38) + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)((int)p + 0x38) + 0x14)" ( (binary_expression "*(int *)((int)p + 0x38) + 0x14" (pointer_expression "*(int *)((int)p + 0x38)" * (cast_expression "(int *)((int)p + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x38)" ( (binary_expression "(int)p + 0x38" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) ))))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00029840(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint *puVar5;\n  uint *puVar6;\n  bool bVar7;\n  undefined4 local_50;\n  uint local_44 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x29849;\n  if (param_3 == 0) {\n    local_44[0]._0_1_ = 0;\n    local_50 = 0;\n  }\n  else {\n    iVar3 = FUN_00027f00(0,&param_5);\n    if (iVar3 < 0) {\n      return 0;\n    }\n    sprintf((char *)local_44,"%ld=",iVar3);\n    local_50 = 1;\n  }\n  puVar6 = local_44;\n  do {\n    puVar5 = puVar6;\n    uVar1 = *puVar5 + 0xfefefeff & ~*puVar5;\n    uVar2 = uVar1 & 0x80808080;\n    puVar6 = puVar5 + 1;\n  } while (uVar2 == 0);\n  bVar7 = (uVar1 & 0x8080) == 0;\n  if (bVar7) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar7) {\n    puVar6 = (uint *)((int)puVar5 + 6);\n  }\n  sprintf((char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (-(uint)(param_4 == 0) & 2) + 0x73,param_5);\n  iVar3 = FUN_00029600(local_50,param_5);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  iVar3 = *(int *)(param_1 + 0x38);\n  uVar4 = xmalloc(1);\n  *(undefined4 *)(iVar3 + 0x14) = uVar4;\n  **(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14) = 0;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00029840(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint *puVar5;\n  uint *puVar6;\n  bool bVar7;\n  undefined4 local_50;\n  uint local_44 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x29849;\n  if (param_3 == 0) {\n    local_44[0]._0_1_ = 0;\n    local_50 = 0;\n  }\n  else {\n    iVar3 = FUN_00027f00(0,&param_5);\n    if (iVar3 < 0) {\n      return 0;\n    }\n    sprintf((char *)local_44,"%ld=",iVar3);\n    local_50 = 1;\n  }\n  puVar6 = local_44;\n  do {\n    puVar5 = puVar6;\n    uVar1 = *puVar5 + 0xfefefeff & ~*puVar5;\n    uVar2 = uVar1 & 0x80808080;\n    puVar6 = puVar5 + 1;\n  } while (uVar2 == 0);\n  bVar7 = (uVar1 & 0x8080) == 0;\n  if (bVar7) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar7) {\n    puVar6 = (uint *)((int)puVar5 + 6);\n  }\n  sprintf((char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (-(uint)(param_4 == 0) & 2) + 0x73,param_5);\n  iVar3 = FUN_00029600(local_50,param_5);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  iVar3 = *(int *)(param_1 + 0x38);\n  uVar4 = xmalloc(1);\n  *(undefined4 *)(iVar3 + 0x14) = uVar4;\n  **(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14) = 0;\n  return 1;\n}" type_identifier (function_declarator "FUN_00029840(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint *puVar5;\n  uint *puVar6;\n  bool bVar7;\n  undefined4 local_50;\n  uint local_44 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x29849;\n  if (param_3 == 0) {\n    local_44[0]._0_1_ = 0;\n    local_50 = 0;\n  }\n  else {\n    iVar3 = FUN_00027f00(0,&param_5);\n    if (iVar3 < 0) {\n      return 0;\n    }\n    sprintf((char *)local_44,"%ld=",iVar3);\n    local_50 = 1;\n  }\n  puVar6 = local_44;\n  do {\n    puVar5 = puVar6;\n    uVar1 = *puVar5 + 0xfefefeff & ~*puVar5;\n    uVar2 = uVar1 & 0x80808080;\n    puVar6 = puVar5 + 1;\n  } while (uVar2 == 0);\n  bVar7 = (uVar1 & 0x8080) == 0;\n  if (bVar7) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar7) {\n    puVar6 = (uint *)((int)puVar5 + 6);\n  }\n  sprintf((char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (-(uint)(param_4 == 0) & 2) + 0x73,param_5);\n  iVar3 = FUN_00029600(local_50,param_5);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  iVar3 = *(int *)(param_1 + 0x38);\n  uVar4 = xmalloc(1);\n  *(undefined4 *)(iVar3 + 0x14) = uVar4;\n  **(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14) = 0;\n  return 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "undefined4 local_50;" type_identifier identifier ;) (declaration "uint local_44 [12];" type_identifier (array_declarator "local_44 [12]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x29849;" (assignment_expression "uStack_14 = 0x29849" identifier = number_literal) ;) (if_statement "if (param_3 == 0) {\n    local_44[0]._0_1_ = 0;\n    local_50 = 0;\n  }\n  else {\n    iVar3 = FUN_00027f00(0,&param_5);\n    if (iVar3 < 0) {\n      return 0;\n    }\n    sprintf((char *)local_44,"%ld=",iVar3);\n    local_50 = 1;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    local_44[0]._0_1_ = 0;\n    local_50 = 0;\n  }" { (expression_statement "local_44[0]._0_1_ = 0;" (assignment_expression "local_44[0]._0_1_ = 0" (field_expression "local_44[0]._0_1_" (subscript_expression "local_44[0]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar3 = FUN_00027f00(0,&param_5);\n    if (iVar3 < 0) {\n      return 0;\n    }\n    sprintf((char *)local_44,"%ld=",iVar3);\n    local_50 = 1;\n  }" else (compound_statement "{\n    iVar3 = FUN_00027f00(0,&param_5);\n    if (iVar3 < 0) {\n      return 0;\n    }\n    sprintf((char *)local_44,"%ld=",iVar3);\n    local_50 = 1;\n  }" { (expression_statement "iVar3 = FUN_00027f00(0,&param_5);" (assignment_expression "iVar3 = FUN_00027f00(0,&param_5)" identifier = (call_expression "FUN_00027f00(0,&param_5)" identifier (argument_list "(0,&param_5)" ( number_literal , (pointer_expression "&param_5" & 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 "sprintf((char *)local_44,"%ld=",iVar3);" (call_expression "sprintf((char *)local_44,"%ld=",iVar3)" identifier (argument_list "((char *)local_44,"%ld=",iVar3)" ( (cast_expression "(char *)local_44" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""%ld="" " string_content ") , identifier ))) ;) (expression_statement "local_50 = 1;" (assignment_expression "local_50 = 1" identifier = number_literal) ;) }))) (expression_statement "puVar6 = local_44;" (assignment_expression "puVar6 = local_44" identifier = identifier) ;) (do_statement "do {\n    puVar5 = puVar6;\n    uVar1 = *puVar5 + 0xfefefeff & ~*puVar5;\n    uVar2 = uVar1 & 0x80808080;\n    puVar6 = puVar5 + 1;\n  } while (uVar2 == 0);" do (compound_statement "{\n    puVar5 = puVar6;\n    uVar1 = *puVar5 + 0xfefefeff & ~*puVar5;\n    uVar2 = uVar1 & 0x80808080;\n    puVar6 = puVar5 + 1;\n  }" { (expression_statement "puVar5 = puVar6;" (assignment_expression "puVar5 = puVar6" identifier = identifier) ;) (expression_statement "uVar1 = *puVar5 + 0xfefefeff & ~*puVar5;" (assignment_expression "uVar1 = *puVar5 + 0xfefefeff & ~*puVar5" identifier = (binary_expression "*puVar5 + 0xfefefeff & ~*puVar5" (binary_expression "*puVar5 + 0xfefefeff" (pointer_expression "*puVar5" * identifier) + number_literal) & (unary_expression "~*puVar5" ~ (pointer_expression "*puVar5" * identifier)))) ;) (expression_statement "uVar2 = uVar1 & 0x80808080;" (assignment_expression "uVar2 = uVar1 & 0x80808080" identifier = (binary_expression "uVar1 & 0x80808080" identifier & number_literal)) ;) (expression_statement "puVar6 = puVar5 + 1;" (assignment_expression "puVar6 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) ;) (expression_statement "bVar7 = (uVar1 & 0x8080) == 0;" (assignment_expression "bVar7 = (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 (bVar7) {\n    uVar2 = uVar2 >> 0x10;\n  }" if (parenthesized_expression "(bVar7)" ( 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 (bVar7) {\n    puVar6 = (uint *)((int)puVar5 + 6);\n  }" if (parenthesized_expression "(bVar7)" ( identifier )) (compound_statement "{\n    puVar6 = (uint *)((int)puVar5 + 6);\n  }" { (expression_statement "puVar6 = (uint *)((int)puVar5 + 6);" (assignment_expression "puVar6 = (uint *)((int)puVar5 + 6)" identifier = (cast_expression "(uint *)((int)puVar5 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 6)" ( (binary_expression "(int)puVar5 + 6" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (expression_statement "sprintf((char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (-(uint)(param_4 == 0) & 2) + 0x73,param_5);" (call_expression "sprintf((char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (-(uint)(param_4 == 0) & 2) + 0x73,param_5)" identifier (argument_list "((char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (-(uint)(param_4 == 0) & 2) + 0x73,param_5)" ( (cast_expression "(char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)))" ( (binary_expression "(int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))" ( (binary_expression "-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)" number_literal - (cast_expression "(uint)CARRY1((byte)uVar2,(byte)uVar2)" ( (type_descriptor "uint" 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 ") , (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) , identifier ))) ;) (expression_statement "iVar3 = FUN_00029600(local_50,param_5);" (assignment_expression "iVar3 = FUN_00029600(local_50,param_5)" identifier = (call_expression "FUN_00029600(local_50,param_5)" identifier (argument_list "(local_50,param_5)" ( 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 "iVar3 = *(int *)(param_1 + 0x38);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x38)" identifier = (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" 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 "*(undefined4 *)(iVar3 + 0x14) = uVar4;" (assignment_expression "*(undefined4 *)(iVar3 + 0x14) = uVar4" (pointer_expression "*(undefined4 *)(iVar3 + 0x14)" * (cast_expression "(undefined4 *)(iVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "**(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14) = 0;" (assignment_expression "**(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14) = 0" (pointer_expression "**(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14)" * (pointer_expression "*(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14)" * (cast_expression "(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x38) + 0x14)" ( (binary_expression "*(int *)(param_1 + 0x38) + 0x14" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" 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 TYPE 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 TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return 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 = LIT) ;) }))) (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 TYPE) ) 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 TYPE) ) 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 ") , (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) )))) & LIT) )) + LIT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (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 TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00029840(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint *puVar5;\n  uint *puVar6;\n  bool bVar7;\n  undefined4 local_50;\n  uint local_44 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x29849;\n  if (param_3 == 0) {\n    local_44[0]._0_1_ = 0;\n    local_50 = 0;\n  }\n  else {\n    iVar3 = FUN_00027f00(0,&param_5);\n    if (iVar3 < 0) {\n      return 0;\n    }\n    sprintf((char *)local_44,"%ld=",iVar3);\n    local_50 = 1;\n  }\n  puVar6 = local_44;\n  do {\n    puVar5 = puVar6;\n    uVar1 = *puVar5 + 0xfefefeff & ~*puVar5;\n    uVar2 = uVar1 & 0x80808080;\n    puVar6 = puVar5 + 1;\n  } while (uVar2 == 0);\n  bVar7 = (uVar1 & 0x8080) == 0;\n  if (bVar7) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar7) {\n    puVar6 = (uint *)((int)puVar5 + 6);\n  }\n  sprintf((char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (-(uint)(param_4 == 0) & 2) + 0x73,param_5);\n  iVar3 = FUN_00029600(local_50,param_5);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  iVar3 = *(int *)(param_1 + 0x38);\n  uVar4 = xmalloc(1);\n  *(undefined4 *)(iVar3 + 0x14) = uVar4;\n  **(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14) = 0;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00029840(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5)" (identifier "FUN_00029840") (parameter_list "(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (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 "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint *puVar5;\n  uint *puVar6;\n  bool bVar7;\n  undefined4 local_50;\n  uint local_44 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x29849;\n  if (param_3 == 0) {\n    local_44[0]._0_1_ = 0;\n    local_50 = 0;\n  }\n  else {\n    iVar3 = FUN_00027f00(0,&param_5);\n    if (iVar3 < 0) {\n      return 0;\n    }\n    sprintf((char *)local_44,"%ld=",iVar3);\n    local_50 = 1;\n  }\n  puVar6 = local_44;\n  do {\n    puVar5 = puVar6;\n    uVar1 = *puVar5 + 0xfefefeff & ~*puVar5;\n    uVar2 = uVar1 & 0x80808080;\n    puVar6 = puVar5 + 1;\n  } while (uVar2 == 0);\n  bVar7 = (uVar1 & 0x8080) == 0;\n  if (bVar7) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar7) {\n    puVar6 = (uint *)((int)puVar5 + 6);\n  }\n  sprintf((char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (-(uint)(param_4 == 0) & 2) + 0x73,param_5);\n  iVar3 = FUN_00029600(local_50,param_5);\n  if (iVar3 == 0) {\n    return 0;\n  }\n  iVar3 = *(int *)(param_1 + 0x38);\n  uVar4 = xmalloc(1);\n  *(undefined4 *)(iVar3 + 0x14) = uVar4;\n  **(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14) = 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 "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "uint *puVar5;" (type_identifier "uint") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "uint *puVar6;" (type_identifier "uint") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "bool bVar7;" (primitive_type "bool") (identifier "bVar7") (; ";")) (declaration "undefined4 local_50;" (type_identifier "undefined4") (identifier "local_50") (; ";")) (declaration "uint local_44 [12];" (type_identifier "uint") (array_declarator "local_44 [12]" (identifier "local_44") ([ "[") (number_literal "12") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x29849;" (assignment_expression "uStack_14 = 0x29849" (identifier "uStack_14") (= "=") (number_literal "0x29849")) (; ";")) (if_statement "if (param_3 == 0) {\n    local_44[0]._0_1_ = 0;\n    local_50 = 0;\n  }\n  else {\n    iVar3 = FUN_00027f00(0,&param_5);\n    if (iVar3 < 0) {\n      return 0;\n    }\n    sprintf((char *)local_44,"%ld=",iVar3);\n    local_50 = 1;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_44[0]._0_1_ = 0;\n    local_50 = 0;\n  }" ({ "{") (expression_statement "local_44[0]._0_1_ = 0;" (assignment_expression "local_44[0]._0_1_ = 0" (field_expression "local_44[0]._0_1_" (subscript_expression "local_44[0]" (identifier "local_44") ([ "[") (number_literal "0") (] "]")) (. ".") (field_identifier "_0_1_")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" (identifier "local_50") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar3 = FUN_00027f00(0,&param_5);\n    if (iVar3 < 0) {\n      return 0;\n    }\n    sprintf((char *)local_44,"%ld=",iVar3);\n    local_50 = 1;\n  }" (else "else") (compound_statement "{\n    iVar3 = FUN_00027f00(0,&param_5);\n    if (iVar3 < 0) {\n      return 0;\n    }\n    sprintf((char *)local_44,"%ld=",iVar3);\n    local_50 = 1;\n  }" ({ "{") (expression_statement "iVar3 = FUN_00027f00(0,&param_5);" (assignment_expression "iVar3 = FUN_00027f00(0,&param_5)" (identifier "iVar3") (= "=") (call_expression "FUN_00027f00(0,&param_5)" (identifier "FUN_00027f00") (argument_list "(0,&param_5)" (( "(") (number_literal "0") (, ",") (pointer_expression "&param_5" (& "&") (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 "sprintf((char *)local_44,"%ld=",iVar3);" (call_expression "sprintf((char *)local_44,"%ld=",iVar3)" (identifier "sprintf") (argument_list "((char *)local_44,"%ld=",iVar3)" (( "(") (cast_expression "(char *)local_44" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_44")) (, ",") (string_literal ""%ld="" (" """) (string_content "%ld=") (" """)) (, ",") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "local_50 = 1;" (assignment_expression "local_50 = 1" (identifier "local_50") (= "=") (number_literal "1")) (; ";")) (} "}")))) (expression_statement "puVar6 = local_44;" (assignment_expression "puVar6 = local_44" (identifier "puVar6") (= "=") (identifier "local_44")) (; ";")) (do_statement "do {\n    puVar5 = puVar6;\n    uVar1 = *puVar5 + 0xfefefeff & ~*puVar5;\n    uVar2 = uVar1 & 0x80808080;\n    puVar6 = puVar5 + 1;\n  } while (uVar2 == 0);" (do "do") (compound_statement "{\n    puVar5 = puVar6;\n    uVar1 = *puVar5 + 0xfefefeff & ~*puVar5;\n    uVar2 = uVar1 & 0x80808080;\n    puVar6 = puVar5 + 1;\n  }" ({ "{") (expression_statement "puVar5 = puVar6;" (assignment_expression "puVar5 = puVar6" (identifier "puVar5") (= "=") (identifier "puVar6")) (; ";")) (expression_statement "uVar1 = *puVar5 + 0xfefefeff & ~*puVar5;" (assignment_expression "uVar1 = *puVar5 + 0xfefefeff & ~*puVar5" (identifier "uVar1") (= "=") (binary_expression "*puVar5 + 0xfefefeff & ~*puVar5" (binary_expression "*puVar5 + 0xfefefeff" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (+ "+") (number_literal "0xfefefeff")) (& "&") (unary_expression "~*puVar5" (~ "~") (pointer_expression "*puVar5" (* "*") (identifier "puVar5"))))) (; ";")) (expression_statement "uVar2 = uVar1 & 0x80808080;" (assignment_expression "uVar2 = uVar1 & 0x80808080" (identifier "uVar2") (= "=") (binary_expression "uVar1 & 0x80808080" (identifier "uVar1") (& "&") (number_literal "0x80808080"))) (; ";")) (expression_statement "puVar6 = puVar5 + 1;" (assignment_expression "puVar6 = puVar5 + 1" (identifier "puVar6") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (; ";")) (expression_statement "bVar7 = (uVar1 & 0x8080) == 0;" (assignment_expression "bVar7 = (uVar1 & 0x8080) == 0" (identifier "bVar7") (= "=") (binary_expression "(uVar1 & 0x8080) == 0" (parenthesized_expression "(uVar1 & 0x8080)" (( "(") (binary_expression "uVar1 & 0x8080" (identifier "uVar1") (& "&") (number_literal "0x8080")) () ")")) (== "==") (number_literal "0"))) (; ";")) (if_statement "if (bVar7) {\n    uVar2 = uVar2 >> 0x10;\n  }" (if "if") (parenthesized_expression "(bVar7)" (( "(") (identifier "bVar7") () ")")) (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 (bVar7) {\n    puVar6 = (uint *)((int)puVar5 + 6);\n  }" (if "if") (parenthesized_expression "(bVar7)" (( "(") (identifier "bVar7") () ")")) (compound_statement "{\n    puVar6 = (uint *)((int)puVar5 + 6);\n  }" ({ "{") (expression_statement "puVar6 = (uint *)((int)puVar5 + 6);" (assignment_expression "puVar6 = (uint *)((int)puVar5 + 6)" (identifier "puVar6") (= "=") (cast_expression "(uint *)((int)puVar5 + 6)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar5 + 6)" (( "(") (binary_expression "(int)puVar5 + 6" (cast_expression "(int)puVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar5")) (+ "+") (number_literal "6")) () ")")))) (; ";")) (} "}"))) (expression_statement "sprintf((char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (-(uint)(param_4 == 0) & 2) + 0x73,param_5);" (call_expression "sprintf((char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (-(uint)(param_4 == 0) & 2) + 0x73,param_5)" (identifier "sprintf") (argument_list "((char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",\n          (-(uint)(param_4 == 0) & 2) + 0x73,param_5)" (( "(") (cast_expression "(char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)))" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)))" (( "(") (binary_expression "(int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))" (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6")) (+ "+") (parenthesized_expression "(-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))" (( "(") (binary_expression "-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)" (number_literal "-3") (- "-") (cast_expression "(uint)CARRY1((byte)uVar2,(byte)uVar2)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (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") (" """)) (, ",") (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")) (, ",") (identifier "param_5") () ")"))) (; ";")) (expression_statement "iVar3 = FUN_00029600(local_50,param_5);" (assignment_expression "iVar3 = FUN_00029600(local_50,param_5)" (identifier "iVar3") (= "=") (call_expression "FUN_00029600(local_50,param_5)" (identifier "FUN_00029600") (argument_list "(local_50,param_5)" (( "(") (identifier "local_50") (, ",") (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 "iVar3 = *(int *)(param_1 + 0x38);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x38)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (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 "*(undefined4 *)(iVar3 + 0x14) = uVar4;" (assignment_expression "*(undefined4 *)(iVar3 + 0x14) = uVar4" (pointer_expression "*(undefined4 *)(iVar3 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "**(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14) = 0;" (assignment_expression "**(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14) = 0" (pointer_expression "**(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14)" (* "*") (pointer_expression "*(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14)" (* "*") (cast_expression "(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x38) + 0x14)" (( "(") (binary_expression "*(int *)(param_1 + 0x38) + 0x14" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (number_literal "0x14")) () ")"))))) (= "=") (number_literal "0")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

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

{
  int var_13;
  type_2 var_5;
  type_2 var_7;
  type_1 var_11;
  type_3 uVar5;
  type_2 *var_6;
  type_2 *puVar7;
  long var_3;
  bool bVar8;
  type_1 local_50;
  char buf [40];
  
  if (var_1 == 0) {
    buf[0] = '\0';
    var_3 = 0;
    local_50 = 0;
  }
  else {
    var_3 = var_2((type_4 *)p,tag,var_1,DEBUG_KIND_ILLEGAL,&size);
    if (var_3 < 0) {
      return 0;
    }
    var_4(buf,"%ld=",var_3);
    local_50 = 1;
  }
  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 *)((int)var_6 + 6);
  }
  var_4((char *)((int)puVar7 + (-3 - (type_2)var_8((type_5)var_7,(type_5)var_7))),"%c%u",
          (-(type_2)(var_9 == 0) & 2) + 0x73,size);
  var_11 = var_10((type_4 *)((int)p + 0x38),buf,var_3,local_50,size);
  if (var_11 == 0) {
    return 0;
  }
  var_13 = *(int *)((int)p + 0x38);
  uVar5 = var_12(1);
  *(type_3 *)(var_13 + 0x14) = uVar5;
  **(type_6 **)(*(int *)((int)p + 0x38) + 0x14) = 0;
  return 1;
}


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

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

undefined4 MASKED(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5)

{
  uint uVar1;
  uint uVar2;
  int iVar3;
  undefined4 uVar4;
  uint *puVar5;
  uint *puVar6;
  bool bVar7;
  undefined4 local_50;
  uint local_44 [12];
  undefined4 uStack_14;
  
  uStack_14 = 0x29849;
  if (param_3 == 0) {
    local_44[0]._0_1_ = 0;
    local_50 = 0;
  }
  else {
    iVar3 = FUN_00027f00(0,&param_5);
    if (iVar3 < 0) {
      return 0;
    }
    sprintf((char *)local_44,"%ld=",iVar3);
    local_50 = 1;
  }
  puVar6 = local_44;
  do {
    puVar5 = puVar6;
    uVar1 = *puVar5 + 0xfefefeff & ~*puVar5;
    uVar2 = uVar1 & 0x80808080;
    puVar6 = puVar5 + 1;
  } while (uVar2 == 0);
  bVar7 = (uVar1 & 0x8080) == 0;
  if (bVar7) {
    uVar2 = uVar2 >> 0x10;
  }
  if (bVar7) {
    puVar6 = (uint *)((int)puVar5 + 6);
  }
  sprintf((char *)((int)puVar6 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))),"%c%u",
          (-(uint)(param_4 == 0) & 2) + 0x73,param_5);
  iVar3 = FUN_00029600(local_50,param_5);
  if (iVar3 == 0) {
    return 0;
  }
  iVar3 = *(int *)(param_1 + 0x38);
  uVar4 = xmalloc(1);
  *(undefined4 *)(iVar3 + 0x14) = uVar4;
  **(undefined1 **)(*(int *)(param_1 + 0x38) + 0x14) = 0;
  return 1;
}

