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

void stabs_generate_asm_func(char *funcname,char *startlabname)

{
  int iVar1;
  int *piVar2;
  undefined4 uVar3;
  char *buf;
  uint lineno;
  undefined4 uStack_c;
  
  uStack_c = 0x34247;
  if (stabs_generate_asm_func::void_emitted_p == 0) {
    temp_ilp("\"void:t1=1\",128,0,0,0");
    s_stab_generic(0x73,".stab",".stabstr");
    restore_ilp();
    stabs_generate_asm_func::void_emitted_p = 1;
  }
  as_where(&lineno);
  iVar1 = asprintf(&buf,"\"%s:F1\",%d,0,%d,%s",funcname,0x24,lineno + 1,startlabname);
  if (iVar1 != -1) {
    temp_ilp(buf);
    s_stab_generic(0x73,".stab",".stabstr");
    restore_ilp();
    free(buf);
    current_function_label = (char *)xstrdup(startlabname);
    in_dot_func_p = 1;
    return;
  }
  piVar2 = __errno_location();
  uVar3 = xstrerror(*piVar2);
                    /* WARNING: Subroutine does not return */
  as_fatal("%s",uVar3);
}



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

void FUN_00034240(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  int *piVar2;
  undefined4 uVar3;
  char *local_14;
  int local_10 [2];
  
  local_10[1] = 0x34247;
  if (DAT_0007caf0 == 0) {
    FUN_000331a0(&DAT_00054b90);
    FUN_00033890();
    FUN_00033250();
    DAT_0007caf0 = 1;
  }
  FUN_00024fe0(local_10);
  iVar1 = asprintf(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2);
  if (iVar1 != -1) {
    FUN_000331a0(local_14);
    FUN_00033890();
    FUN_00033250();
    free(local_14);
    DAT_0007cb14 = xstrdup(param_2);
    DAT_0007cb18 = 1;
    return;
  }
  piVar2 = __errno_location();
  uVar3 = xstrerror(*piVar2);
                    /* WARNING: Subroutine does not return */
  FUN_0002a850("%s",uVar3);
}


PUSH ESI
PUSH EBX
CALL 0x00016030
ADD EBX,0x3fdb9
SUB ESP,0x14
MOV ESI,dword ptr [ESP + 0x24]
MOV ECX,dword ptr [EBX + 0x8af0]
TEST ECX,ECX
JZ 0x000342f0
SUB ESP,0xc
LEA EAX,[ESP + 0x18]
PUSH EAX
CALL 0x00024fe0
POP EAX
POP EDX
PUSH ESI
MOV EAX,dword ptr [ESP + 0x18]
ADD EAX,0x1
PUSH EAX
LEA EAX,[EBX + 0xfffe0ba6]
PUSH 0x24
PUSH dword ptr [ESP + 0x34]
PUSH EAX
LEA EAX,[ESP + 0x24]
PUSH EAX
CALL 0x000144f0
ADD ESP,0x20
CMP EAX,-0x1
JZ 0x0003432c
SUB ESP,0xc
PUSH dword ptr [ESP + 0x14]
CALL 0x000331a0
LEA ECX,[EBX + 0xfffe0b45]
LEA EDX,[EBX + 0xfffe0b4e]
MOV EAX,0x73
CALL 0x00033890
CALL 0x00033250
POP EAX
PUSH dword ptr [ESP + 0x14]
CALL 0x00014780
MOV dword ptr [ESP],ESI
CALL 0x000142e0
MOV dword ptr [EBX + 0x8b18],0x1
MOV dword ptr [EBX + 0x8b14],EAX
ADD ESP,0x24
POP EBX
POP ESI
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xfffe0b90]
PUSH EAX
CALL 0x000331a0
LEA ECX,[EBX + 0xfffe0b45]
LEA EDX,[EBX + 0xfffe0b4e]
MOV EAX,0x73
CALL 0x00033890
CALL 0x00033250
ADD ESP,0x10
MOV dword ptr [EBX + 0x8af0],0x1
JMP 0x00034262
CALL 0x000144d0
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00014600
POP EDX
POP ECX
PUSH EAX
LEA EAX,[EBX + 0xfffded3c]
PUSH EAX
CALL 0x0002a850
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00034240(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char *local_14;\n  int local_10 [2];\n  \n  local_10[1] = 0x34247;\n  if (DAT_0007caf0 == 0) {\n    FUN_000331a0(&DAT_00054b90);\n    FUN_00033890();\n    FUN_00033250();\n    DAT_0007caf0 = 1;\n  }\n  FUN_00024fe0(local_10);\n  iVar1 = asprintf(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2);\n  if (iVar1 != -1) {\n    FUN_000331a0(local_14);\n    FUN_00033890();\n    FUN_00033250();\n    free(local_14);\n    DAT_0007cb14 = xstrdup(param_2);\n    DAT_0007cb18 = 1;\n    return;\n  }\n  piVar2 = __errno_location();\n  uVar3 = xstrerror(*piVar2);\n                    /* WARNING: Subroutine does not return */\n  FUN_0002a850("%s",uVar3);\n}\n\n" comment (function_definition "void FUN_00034240(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char *local_14;\n  int local_10 [2];\n  \n  local_10[1] = 0x34247;\n  if (DAT_0007caf0 == 0) {\n    FUN_000331a0(&DAT_00054b90);\n    FUN_00033890();\n    FUN_00033250();\n    DAT_0007caf0 = 1;\n  }\n  FUN_00024fe0(local_10);\n  iVar1 = asprintf(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2);\n  if (iVar1 != -1) {\n    FUN_000331a0(local_14);\n    FUN_00033890();\n    FUN_00033250();\n    free(local_14);\n    DAT_0007cb14 = xstrdup(param_2);\n    DAT_0007cb18 = 1;\n    return;\n  }\n  piVar2 = __errno_location();\n  uVar3 = xstrerror(*piVar2);\n                    /* WARNING: Subroutine does not return */\n  FUN_0002a850("%s",uVar3);\n}" primitive_type (function_declarator "FUN_00034240(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char *local_14;\n  int local_10 [2];\n  \n  local_10[1] = 0x34247;\n  if (DAT_0007caf0 == 0) {\n    FUN_000331a0(&DAT_00054b90);\n    FUN_00033890();\n    FUN_00033250();\n    DAT_0007caf0 = 1;\n  }\n  FUN_00024fe0(local_10);\n  iVar1 = asprintf(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2);\n  if (iVar1 != -1) {\n    FUN_000331a0(local_14);\n    FUN_00033890();\n    FUN_00033250();\n    free(local_14);\n    DAT_0007cb14 = xstrdup(param_2);\n    DAT_0007cb18 = 1;\n    return;\n  }\n  piVar2 = __errno_location();\n  uVar3 = xstrerror(*piVar2);\n                    /* WARNING: Subroutine does not return */\n  FUN_0002a850("%s",uVar3);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *local_14;" primitive_type (pointer_declarator "*local_14" * identifier) ;) (declaration "int local_10 [2];" primitive_type (array_declarator "local_10 [2]" identifier [ number_literal ]) ;) (expression_statement "local_10[1] = 0x34247;" (assignment_expression "local_10[1] = 0x34247" (subscript_expression "local_10[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (DAT_0007caf0 == 0) {\n    FUN_000331a0(&DAT_00054b90);\n    FUN_00033890();\n    FUN_00033250();\n    DAT_0007caf0 = 1;\n  }" if (parenthesized_expression "(DAT_0007caf0 == 0)" ( (binary_expression "DAT_0007caf0 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_000331a0(&DAT_00054b90);\n    FUN_00033890();\n    FUN_00033250();\n    DAT_0007caf0 = 1;\n  }" { (expression_statement "FUN_000331a0(&DAT_00054b90);" (call_expression "FUN_000331a0(&DAT_00054b90)" identifier (argument_list "(&DAT_00054b90)" ( (pointer_expression "&DAT_00054b90" & identifier) ))) ;) (expression_statement "FUN_00033890();" (call_expression "FUN_00033890()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00033250();" (call_expression "FUN_00033250()" identifier (argument_list "()" ( ))) ;) (expression_statement "DAT_0007caf0 = 1;" (assignment_expression "DAT_0007caf0 = 1" identifier = number_literal) ;) })) (expression_statement "FUN_00024fe0(local_10);" (call_expression "FUN_00024fe0(local_10)" identifier (argument_list "(local_10)" ( identifier ))) ;) (expression_statement "iVar1 = asprintf(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2);" (assignment_expression "iVar1 = asprintf(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2)" identifier = (call_expression "asprintf(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2)" identifier (argument_list "(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2)" ( (pointer_expression "&local_14" & identifier) , (string_literal ""\"%s:F1\",%d,0,%d,%s"" " escape_sequence string_content escape_sequence string_content ") , identifier , number_literal , (binary_expression "local_10[0] + 1" (subscript_expression "local_10[0]" identifier [ number_literal ]) + number_literal) , identifier )))) ;) (if_statement "if (iVar1 != -1) {\n    FUN_000331a0(local_14);\n    FUN_00033890();\n    FUN_00033250();\n    free(local_14);\n    DAT_0007cb14 = xstrdup(param_2);\n    DAT_0007cb18 = 1;\n    return;\n  }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n    FUN_000331a0(local_14);\n    FUN_00033890();\n    FUN_00033250();\n    free(local_14);\n    DAT_0007cb14 = xstrdup(param_2);\n    DAT_0007cb18 = 1;\n    return;\n  }" { (expression_statement "FUN_000331a0(local_14);" (call_expression "FUN_000331a0(local_14)" identifier (argument_list "(local_14)" ( identifier ))) ;) (expression_statement "FUN_00033890();" (call_expression "FUN_00033890()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00033250();" (call_expression "FUN_00033250()" identifier (argument_list "()" ( ))) ;) (expression_statement "free(local_14);" (call_expression "free(local_14)" identifier (argument_list "(local_14)" ( identifier ))) ;) (expression_statement "DAT_0007cb14 = xstrdup(param_2);" (assignment_expression "DAT_0007cb14 = xstrdup(param_2)" identifier = (call_expression "xstrdup(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "DAT_0007cb18 = 1;" (assignment_expression "DAT_0007cb18 = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = xstrerror(*piVar2);" (assignment_expression "uVar3 = xstrerror(*piVar2)" identifier = (call_expression "xstrerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) comment (expression_statement "FUN_0002a850("%s",uVar3);" (call_expression "FUN_0002a850("%s",uVar3)" identifier (argument_list "("%s",uVar3)" ( (string_literal ""%s"" " string_content ") , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid stabs_generate_asm_func(char *funcname,char *startlabname)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char *buf;\n  uint lineno;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x34247;\n  if (stabs_generate_asm_func::void_emitted_p == 0) {\n    temp_ilp("\"void:t1=1\",128,0,0,0");\n    s_stab_generic(0x73,".stab",".stabstr");\n    restore_ilp();\n    stabs_generate_asm_func::void_emitted_p = 1;\n  }\n  as_where(&lineno);\n  iVar1 = asprintf(&buf,"\"%s:F1\",%d,0,%d,%s",funcname,0x24,lineno + 1,startlabname);\n  if (iVar1 != -1) {\n    temp_ilp(buf);\n    s_stab_generic(0x73,".stab",".stabstr");\n    restore_ilp();\n    free(buf);\n    current_function_label = (char *)xstrdup(startlabname);\n    in_dot_func_p = 1;\n    return;\n  }\n  piVar2 = __errno_location();\n  uVar3 = xstrerror(*piVar2);\n                    /* WARNING: Subroutine does not return */\n  as_fatal("%s",uVar3);\n}\n\n" comment comment (function_definition "void stabs_generate_asm_func(char *funcname,char *startlabname)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char *buf;\n  uint lineno;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x34247;\n  if (stabs_generate_asm_func::void_emitted_p == 0) {\n    temp_ilp("\"void:t1=1\",128,0,0,0");\n    s_stab_generic(0x73,".stab",".stabstr");\n    restore_ilp();\n    stabs_generate_asm_func::void_emitted_p = 1;\n  }\n  as_where(&lineno);\n  iVar1 = asprintf(&buf,"\"%s:F1\",%d,0,%d,%s",funcname,0x24,lineno + 1,startlabname);\n  if (iVar1 != -1) {\n    temp_ilp(buf);\n    s_stab_generic(0x73,".stab",".stabstr");\n    restore_ilp();\n    free(buf);\n    current_function_label = (char *)xstrdup(startlabname);\n    in_dot_func_p = 1;\n    return;\n  }\n  piVar2 = __errno_location();\n  uVar3 = xstrerror(*piVar2);\n                    /* WARNING: Subroutine does not return */\n  as_fatal("%s",uVar3);\n}" primitive_type (function_declarator "stabs_generate_asm_func(char *funcname,char *startlabname)" identifier (parameter_list "(char *funcname,char *startlabname)" ( (parameter_declaration "char *funcname" primitive_type (pointer_declarator "*funcname" * identifier)) , (parameter_declaration "char *startlabname" primitive_type (pointer_declarator "*startlabname" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char *buf;\n  uint lineno;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x34247;\n  if (stabs_generate_asm_func::void_emitted_p == 0) {\n    temp_ilp("\"void:t1=1\",128,0,0,0");\n    s_stab_generic(0x73,".stab",".stabstr");\n    restore_ilp();\n    stabs_generate_asm_func::void_emitted_p = 1;\n  }\n  as_where(&lineno);\n  iVar1 = asprintf(&buf,"\"%s:F1\",%d,0,%d,%s",funcname,0x24,lineno + 1,startlabname);\n  if (iVar1 != -1) {\n    temp_ilp(buf);\n    s_stab_generic(0x73,".stab",".stabstr");\n    restore_ilp();\n    free(buf);\n    current_function_label = (char *)xstrdup(startlabname);\n    in_dot_func_p = 1;\n    return;\n  }\n  piVar2 = __errno_location();\n  uVar3 = xstrerror(*piVar2);\n                    /* WARNING: Subroutine does not return */\n  as_fatal("%s",uVar3);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *buf;" primitive_type (pointer_declarator "*buf" * identifier) ;) (declaration "uint lineno;" type_identifier identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x34247;" (assignment_expression "uStack_c = 0x34247" identifier = number_literal) ;) (if_statement "if (stabs_generate_asm_func::void_emitted_p == 0) {\n    temp_ilp("\"void:t1=1\",128,0,0,0");\n    s_stab_generic(0x73,".stab",".stabstr");\n    restore_ilp();\n    stabs_generate_asm_func::void_emitted_p = 1;\n  }" if (parenthesized_expression "(stabs_generate_asm_func::void_emitted_p == 0)" ( (binary_expression "stabs_generate_asm_func::void_emitted_p == 0" identifier (ERROR "::void_emitted_p" : : identifier) == number_literal) )) (compound_statement "{\n    temp_ilp("\"void:t1=1\",128,0,0,0");\n    s_stab_generic(0x73,".stab",".stabstr");\n    restore_ilp();\n    stabs_generate_asm_func::void_emitted_p = 1;\n  }" { (expression_statement "temp_ilp("\"void:t1=1\",128,0,0,0");" (call_expression "temp_ilp("\"void:t1=1\",128,0,0,0")" identifier (argument_list "("\"void:t1=1\",128,0,0,0")" ( (string_literal ""\"void:t1=1\",128,0,0,0"" " escape_sequence string_content escape_sequence string_content ") ))) ;) (expression_statement "s_stab_generic(0x73,".stab",".stabstr");" (call_expression "s_stab_generic(0x73,".stab",".stabstr")" identifier (argument_list "(0x73,".stab",".stabstr")" ( number_literal , (string_literal "".stab"" " string_content ") , (string_literal "".stabstr"" " string_content ") ))) ;) (expression_statement "restore_ilp();" (call_expression "restore_ilp()" identifier (argument_list "()" ( ))) ;) (labeled_statement "stabs_generate_asm_func::void_emitted_p = 1;" statement_identifier : (ERROR ":" :) (expression_statement "void_emitted_p = 1;" (assignment_expression "void_emitted_p = 1" identifier = number_literal) ;)) })) (expression_statement "as_where(&lineno);" (call_expression "as_where(&lineno)" identifier (argument_list "(&lineno)" ( (pointer_expression "&lineno" & identifier) ))) ;) (expression_statement "iVar1 = asprintf(&buf,"\"%s:F1\",%d,0,%d,%s",funcname,0x24,lineno + 1,startlabname);" (assignment_expression "iVar1 = asprintf(&buf,"\"%s:F1\",%d,0,%d,%s",funcname,0x24,lineno + 1,startlabname)" identifier = (call_expression "asprintf(&buf,"\"%s:F1\",%d,0,%d,%s",funcname,0x24,lineno + 1,startlabname)" identifier (argument_list "(&buf,"\"%s:F1\",%d,0,%d,%s",funcname,0x24,lineno + 1,startlabname)" ( (pointer_expression "&buf" & identifier) , (string_literal ""\"%s:F1\",%d,0,%d,%s"" " escape_sequence string_content escape_sequence string_content ") , identifier , number_literal , (binary_expression "lineno + 1" identifier + number_literal) , identifier )))) ;) (if_statement "if (iVar1 != -1) {\n    temp_ilp(buf);\n    s_stab_generic(0x73,".stab",".stabstr");\n    restore_ilp();\n    free(buf);\n    current_function_label = (char *)xstrdup(startlabname);\n    in_dot_func_p = 1;\n    return;\n  }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n    temp_ilp(buf);\n    s_stab_generic(0x73,".stab",".stabstr");\n    restore_ilp();\n    free(buf);\n    current_function_label = (char *)xstrdup(startlabname);\n    in_dot_func_p = 1;\n    return;\n  }" { (expression_statement "temp_ilp(buf);" (call_expression "temp_ilp(buf)" identifier (argument_list "(buf)" ( identifier ))) ;) (expression_statement "s_stab_generic(0x73,".stab",".stabstr");" (call_expression "s_stab_generic(0x73,".stab",".stabstr")" identifier (argument_list "(0x73,".stab",".stabstr")" ( number_literal , (string_literal "".stab"" " string_content ") , (string_literal "".stabstr"" " string_content ") ))) ;) (expression_statement "restore_ilp();" (call_expression "restore_ilp()" identifier (argument_list "()" ( ))) ;) (expression_statement "free(buf);" (call_expression "free(buf)" identifier (argument_list "(buf)" ( identifier ))) ;) (expression_statement "current_function_label = (char *)xstrdup(startlabname);" (assignment_expression "current_function_label = (char *)xstrdup(startlabname)" identifier = (cast_expression "(char *)xstrdup(startlabname)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xstrdup(startlabname)" identifier (argument_list "(startlabname)" ( identifier ))))) ;) (expression_statement "in_dot_func_p = 1;" (assignment_expression "in_dot_func_p = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = xstrerror(*piVar2);" (assignment_expression "uVar3 = xstrerror(*piVar2)" identifier = (call_expression "xstrerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) comment (expression_statement "as_fatal("%s",uVar3);" (call_expression "as_fatal("%s",uVar3)" identifier (argument_list "("%s",uVar3)" ( (string_literal ""%s"" " string_content ") , identifier ))) ;) })))
(translation_unit "void FUN_00034240(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char *local_14;\n  int local_10 [2];\n  \n  local_10[1] = 0x34247;\n  if (DAT_0007caf0 == 0) {\n    FUN_000331a0(&DAT_00054b90);\n    FUN_00033890();\n    FUN_00033250();\n    DAT_0007caf0 = 1;\n  }\n  FUN_00024fe0(local_10);\n  iVar1 = asprintf(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2);\n  if (iVar1 != -1) {\n    FUN_000331a0(local_14);\n    FUN_00033890();\n    FUN_00033250();\n    free(local_14);\n    DAT_0007cb14 = xstrdup(param_2);\n    DAT_0007cb18 = 1;\n    return;\n  }\n  piVar2 = __errno_location();\n  uVar3 = xstrerror(*piVar2);\n                    \n  FUN_0002a850("%s",uVar3);\n}\n\n" (function_definition "void FUN_00034240(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char *local_14;\n  int local_10 [2];\n  \n  local_10[1] = 0x34247;\n  if (DAT_0007caf0 == 0) {\n    FUN_000331a0(&DAT_00054b90);\n    FUN_00033890();\n    FUN_00033250();\n    DAT_0007caf0 = 1;\n  }\n  FUN_00024fe0(local_10);\n  iVar1 = asprintf(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2);\n  if (iVar1 != -1) {\n    FUN_000331a0(local_14);\n    FUN_00033890();\n    FUN_00033250();\n    free(local_14);\n    DAT_0007cb14 = xstrdup(param_2);\n    DAT_0007cb18 = 1;\n    return;\n  }\n  piVar2 = __errno_location();\n  uVar3 = xstrerror(*piVar2);\n                    \n  FUN_0002a850("%s",uVar3);\n}" primitive_type (function_declarator "FUN_00034240(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char *local_14;\n  int local_10 [2];\n  \n  local_10[1] = 0x34247;\n  if (DAT_0007caf0 == 0) {\n    FUN_000331a0(&DAT_00054b90);\n    FUN_00033890();\n    FUN_00033250();\n    DAT_0007caf0 = 1;\n  }\n  FUN_00024fe0(local_10);\n  iVar1 = asprintf(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2);\n  if (iVar1 != -1) {\n    FUN_000331a0(local_14);\n    FUN_00033890();\n    FUN_00033250();\n    free(local_14);\n    DAT_0007cb14 = xstrdup(param_2);\n    DAT_0007cb18 = 1;\n    return;\n  }\n  piVar2 = __errno_location();\n  uVar3 = xstrerror(*piVar2);\n                    \n  FUN_0002a850("%s",uVar3);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *local_14;" primitive_type (pointer_declarator "*local_14" * identifier) ;) (declaration "int local_10 [2];" primitive_type (array_declarator "local_10 [2]" identifier [ number_literal ]) ;) (expression_statement "local_10[1] = 0x34247;" (assignment_expression "local_10[1] = 0x34247" (subscript_expression "local_10[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (DAT_0007caf0 == 0) {\n    FUN_000331a0(&DAT_00054b90);\n    FUN_00033890();\n    FUN_00033250();\n    DAT_0007caf0 = 1;\n  }" if (parenthesized_expression "(DAT_0007caf0 == 0)" ( (binary_expression "DAT_0007caf0 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_000331a0(&DAT_00054b90);\n    FUN_00033890();\n    FUN_00033250();\n    DAT_0007caf0 = 1;\n  }" { (expression_statement "FUN_000331a0(&DAT_00054b90);" (call_expression "FUN_000331a0(&DAT_00054b90)" identifier (argument_list "(&DAT_00054b90)" ( (pointer_expression "&DAT_00054b90" & identifier) ))) ;) (expression_statement "FUN_00033890();" (call_expression "FUN_00033890()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00033250();" (call_expression "FUN_00033250()" identifier (argument_list "()" ( ))) ;) (expression_statement "DAT_0007caf0 = 1;" (assignment_expression "DAT_0007caf0 = 1" identifier = number_literal) ;) })) (expression_statement "FUN_00024fe0(local_10);" (call_expression "FUN_00024fe0(local_10)" identifier (argument_list "(local_10)" ( identifier ))) ;) (expression_statement "iVar1 = asprintf(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2);" (assignment_expression "iVar1 = asprintf(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2)" identifier = (call_expression "asprintf(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2)" identifier (argument_list "(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2)" ( (pointer_expression "&local_14" & identifier) , (string_literal ""\"%s:F1\",%d,0,%d,%s"" " escape_sequence string_content escape_sequence string_content ") , identifier , number_literal , (binary_expression "local_10[0] + 1" (subscript_expression "local_10[0]" identifier [ number_literal ]) + number_literal) , identifier )))) ;) (if_statement "if (iVar1 != -1) {\n    FUN_000331a0(local_14);\n    FUN_00033890();\n    FUN_00033250();\n    free(local_14);\n    DAT_0007cb14 = xstrdup(param_2);\n    DAT_0007cb18 = 1;\n    return;\n  }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n    FUN_000331a0(local_14);\n    FUN_00033890();\n    FUN_00033250();\n    free(local_14);\n    DAT_0007cb14 = xstrdup(param_2);\n    DAT_0007cb18 = 1;\n    return;\n  }" { (expression_statement "FUN_000331a0(local_14);" (call_expression "FUN_000331a0(local_14)" identifier (argument_list "(local_14)" ( identifier ))) ;) (expression_statement "FUN_00033890();" (call_expression "FUN_00033890()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00033250();" (call_expression "FUN_00033250()" identifier (argument_list "()" ( ))) ;) (expression_statement "free(local_14);" (call_expression "free(local_14)" identifier (argument_list "(local_14)" ( identifier ))) ;) (expression_statement "DAT_0007cb14 = xstrdup(param_2);" (assignment_expression "DAT_0007cb14 = xstrdup(param_2)" identifier = (call_expression "xstrdup(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "DAT_0007cb18 = 1;" (assignment_expression "DAT_0007cb18 = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = xstrerror(*piVar2);" (assignment_expression "uVar3 = xstrerror(*piVar2)" identifier = (call_expression "xstrerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "FUN_0002a850("%s",uVar3);" (call_expression "FUN_0002a850("%s",uVar3)" identifier (argument_list "("%s",uVar3)" ( (string_literal ""%s"" " string_content ") , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (string_literal " escape_sequence string_content escape_sequence string_content ") , IDENT , LIT , (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT ))) ;) })))
(function_definition "void FUN_00034240(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char *local_14;\n  int local_10 [2];\n  \n  local_10[1] = 0x34247;\n  if (DAT_0007caf0 == 0) {\n    FUN_000331a0(&DAT_00054b90);\n    FUN_00033890();\n    FUN_00033250();\n    DAT_0007caf0 = 1;\n  }\n  FUN_00024fe0(local_10);\n  iVar1 = asprintf(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2);\n  if (iVar1 != -1) {\n    FUN_000331a0(local_14);\n    FUN_00033890();\n    FUN_00033250();\n    free(local_14);\n    DAT_0007cb14 = xstrdup(param_2);\n    DAT_0007cb18 = 1;\n    return;\n  }\n  piVar2 = __errno_location();\n  uVar3 = xstrerror(*piVar2);\n                    \n  FUN_0002a850("%s",uVar3);\n}" (primitive_type "void") (function_declarator "FUN_00034240(undefined4 param_1,undefined4 param_2)" (identifier "FUN_00034240") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char *local_14;\n  int local_10 [2];\n  \n  local_10[1] = 0x34247;\n  if (DAT_0007caf0 == 0) {\n    FUN_000331a0(&DAT_00054b90);\n    FUN_00033890();\n    FUN_00033250();\n    DAT_0007caf0 = 1;\n  }\n  FUN_00024fe0(local_10);\n  iVar1 = asprintf(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2);\n  if (iVar1 != -1) {\n    FUN_000331a0(local_14);\n    FUN_00033890();\n    FUN_00033250();\n    free(local_14);\n    DAT_0007cb14 = xstrdup(param_2);\n    DAT_0007cb18 = 1;\n    return;\n  }\n  piVar2 = __errno_location();\n  uVar3 = xstrerror(*piVar2);\n                    \n  FUN_0002a850("%s",uVar3);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "char *local_14;" (primitive_type "char") (pointer_declarator "*local_14" (* "*") (identifier "local_14")) (; ";")) (declaration "int local_10 [2];" (primitive_type "int") (array_declarator "local_10 [2]" (identifier "local_10") ([ "[") (number_literal "2") (] "]")) (; ";")) (expression_statement "local_10[1] = 0x34247;" (assignment_expression "local_10[1] = 0x34247" (subscript_expression "local_10[1]" (identifier "local_10") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x34247")) (; ";")) (if_statement "if (DAT_0007caf0 == 0) {\n    FUN_000331a0(&DAT_00054b90);\n    FUN_00033890();\n    FUN_00033250();\n    DAT_0007caf0 = 1;\n  }" (if "if") (parenthesized_expression "(DAT_0007caf0 == 0)" (( "(") (binary_expression "DAT_0007caf0 == 0" (identifier "DAT_0007caf0") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_000331a0(&DAT_00054b90);\n    FUN_00033890();\n    FUN_00033250();\n    DAT_0007caf0 = 1;\n  }" ({ "{") (expression_statement "FUN_000331a0(&DAT_00054b90);" (call_expression "FUN_000331a0(&DAT_00054b90)" (identifier "FUN_000331a0") (argument_list "(&DAT_00054b90)" (( "(") (pointer_expression "&DAT_00054b90" (& "&") (identifier "DAT_00054b90")) () ")"))) (; ";")) (expression_statement "FUN_00033890();" (call_expression "FUN_00033890()" (identifier "FUN_00033890") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00033250();" (call_expression "FUN_00033250()" (identifier "FUN_00033250") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "DAT_0007caf0 = 1;" (assignment_expression "DAT_0007caf0 = 1" (identifier "DAT_0007caf0") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "FUN_00024fe0(local_10);" (call_expression "FUN_00024fe0(local_10)" (identifier "FUN_00024fe0") (argument_list "(local_10)" (( "(") (identifier "local_10") () ")"))) (; ";")) (expression_statement "iVar1 = asprintf(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2);" (assignment_expression "iVar1 = asprintf(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2)" (identifier "iVar1") (= "=") (call_expression "asprintf(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2)" (identifier "asprintf") (argument_list "(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2)" (( "(") (pointer_expression "&local_14" (& "&") (identifier "local_14")) (, ",") (string_literal ""\"%s:F1\",%d,0,%d,%s"" (" """) (escape_sequence "\"") (string_content "%s:F1") (escape_sequence "\"") (string_content ",%d,0,%d,%s") (" """)) (, ",") (identifier "param_1") (, ",") (number_literal "0x24") (, ",") (binary_expression "local_10[0] + 1" (subscript_expression "local_10[0]" (identifier "local_10") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "1")) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar1 != -1) {\n    FUN_000331a0(local_14);\n    FUN_00033890();\n    FUN_00033250();\n    free(local_14);\n    DAT_0007cb14 = xstrdup(param_2);\n    DAT_0007cb18 = 1;\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 != -1)" (( "(") (binary_expression "iVar1 != -1" (identifier "iVar1") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n    FUN_000331a0(local_14);\n    FUN_00033890();\n    FUN_00033250();\n    free(local_14);\n    DAT_0007cb14 = xstrdup(param_2);\n    DAT_0007cb18 = 1;\n    return;\n  }" ({ "{") (expression_statement "FUN_000331a0(local_14);" (call_expression "FUN_000331a0(local_14)" (identifier "FUN_000331a0") (argument_list "(local_14)" (( "(") (identifier "local_14") () ")"))) (; ";")) (expression_statement "FUN_00033890();" (call_expression "FUN_00033890()" (identifier "FUN_00033890") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00033250();" (call_expression "FUN_00033250()" (identifier "FUN_00033250") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "free(local_14);" (call_expression "free(local_14)" (identifier "free") (argument_list "(local_14)" (( "(") (identifier "local_14") () ")"))) (; ";")) (expression_statement "DAT_0007cb14 = xstrdup(param_2);" (assignment_expression "DAT_0007cb14 = xstrdup(param_2)" (identifier "DAT_0007cb14") (= "=") (call_expression "xstrdup(param_2)" (identifier "xstrdup") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "DAT_0007cb18 = 1;" (assignment_expression "DAT_0007cb18 = 1" (identifier "DAT_0007cb18") (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar3 = xstrerror(*piVar2);" (assignment_expression "uVar3 = xstrerror(*piVar2)" (identifier "uVar3") (= "=") (call_expression "xstrerror(*piVar2)" (identifier "xstrerror") (argument_list "(*piVar2)" (( "(") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) () ")")))) (; ";")) (expression_statement "FUN_0002a850("%s",uVar3);" (call_expression "FUN_0002a850("%s",uVar3)" (identifier "FUN_0002a850") (argument_list "("%s",uVar3)" (( "(") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (identifier "uVar3") () ")"))) (; ";")) (} "}")))

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

void function_1(char *funcname,char *startlabname)

{
  int var_7;
  int *piVar2;
  type_1 uVar3;
  char *buf;
  type_2 var_6;
  type_1 uStack_c;
  
  uStack_c = 0x34247;
  if (function_1::void_emitted_p == 0) {
    var_1("\"void:t1=1\",128,0,0,0");
    var_2(0x73,".stab",".stabstr");
    var_3();
    stabs_generate_asm_func::void_emitted_p = 1;
  }
  var_4(&var_6);
  var_7 = var_5(&buf,"\"%s:F1\",%d,0,%d,%s",funcname,0x24,var_6 + 1,startlabname);
  if (var_7 != -1) {
    var_1(buf);
    var_2(0x73,".stab",".stabstr");
    var_3();
    var_8(buf);
    current_function_label = (char *)var_9(startlabname);
    in_dot_func_p = 1;
    return;
  }
  piVar2 = var_10();
  uVar3 = var_11(*piVar2);
                    /* WARNING: Subroutine does not return */
  var_12("%s",uVar3);
}


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

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

void MASKED(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  int *piVar2;
  undefined4 uVar3;
  char *local_14;
  int local_10 [2];
  
  local_10[1] = 0x34247;
  if (DAT_0007caf0 == 0) {
    FUN_000331a0(&DAT_00054b90);
    FUN_00033890();
    FUN_00033250();
    DAT_0007caf0 = 1;
  }
  FUN_00024fe0(local_10);
  iVar1 = asprintf(&local_14,"\"%s:F1\",%d,0,%d,%s",param_1,0x24,local_10[0] + 1,param_2);
  if (iVar1 != -1) {
    FUN_000331a0(local_14);
    FUN_00033890();
    FUN_00033250();
    free(local_14);
    DAT_0007cb14 = xstrdup(param_2);
    DAT_0007cb18 = 1;
    return;
  }
  piVar2 = __errno_location();
  uVar3 = xstrerror(*piVar2);
                    /* WARNING: Subroutine does not return */
  FUN_0002a850("%s",uVar3);
}

