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

void elf_init_stab_section(segT seg)

{
  char *buf;
  char *string;
  char *stabstr_secname;
  uint uVar1;
  
  seg->alignment_power = 2;
  buf = frag_more(0xc);
  buf[0] = '\0';
  buf[1] = '\0';
  buf[2] = '\0';
  buf[3] = '\0';
  buf[4] = '\0';
  buf[5] = '\0';
  buf[6] = '\0';
  buf[7] = '\0';
  buf[8] = '\0';
  buf[9] = '\0';
  buf[10] = '\0';
  buf[0xb] = '\0';
  string = as_where((uint *)0x0);
  stabstr_secname = (char *)concat(seg->name,"str",0);
  uVar1 = get_stab_string_offset(string,stabstr_secname);
  if ((uVar1 != 1) && ((uVar1 != 0 || (*string != '\0')))) {
                    /* WARNING: Subroutine does not return */
    as_abort("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section");
  }
  md_number_to_chars(buf,(ulonglong)uVar1,4);
  *(char **)((int)seg->userdata + 0x2c) = buf;
  return;
}



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

void thunk_FUN_00051780(undefined4 *param_1)

{
  undefined4 *puVar1;
  char *pcVar2;
  undefined4 uVar3;
  int iVar4;
  
  param_1[0x16] = 2;
  puVar1 = (undefined4 *)FUN_00025be0(0xc);
  *puVar1 = 0;
  puVar1[1] = 0;
  puVar1[2] = 0;
  pcVar2 = (char *)FUN_00027630(0);
  uVar3 = concat(*param_1,"str",0);
  iVar4 = FUN_00036660(pcVar2,uVar3);
  if ((iVar4 != 1) && ((iVar4 != 0 || (*pcVar2 != '\0')))) {
                    /* WARNING: Subroutine does not return */
    FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4);
  }
  FUN_0004b1e0(puVar1,iVar4,0,4);
  *(undefined4 **)(param_1[0x20] + 0x2c) = puVar1;
  return;
}


JMP 0x00051780
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid thunk_FUN_00051780(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  \n  param_1[0x16] = 2;\n  puVar1 = (undefined4 *)FUN_00025be0(0xc);\n  *puVar1 = 0;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  pcVar2 = (char *)FUN_00027630(0);\n  uVar3 = concat(*param_1,"str",0);\n  iVar4 = FUN_00036660(pcVar2,uVar3);\n  if ((iVar4 != 1) && ((iVar4 != 0 || (*pcVar2 != '\0')))) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4);\n  }\n  FUN_0004b1e0(puVar1,iVar4,0,4);\n  *(undefined4 **)(param_1[0x20] + 0x2c) = puVar1;\n  return;\n}\n\n" comment (function_definition "void thunk_FUN_00051780(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  \n  param_1[0x16] = 2;\n  puVar1 = (undefined4 *)FUN_00025be0(0xc);\n  *puVar1 = 0;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  pcVar2 = (char *)FUN_00027630(0);\n  uVar3 = concat(*param_1,"str",0);\n  iVar4 = FUN_00036660(pcVar2,uVar3);\n  if ((iVar4 != 1) && ((iVar4 != 0 || (*pcVar2 != '\0')))) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4);\n  }\n  FUN_0004b1e0(puVar1,iVar4,0,4);\n  *(undefined4 **)(param_1[0x20] + 0x2c) = puVar1;\n  return;\n}" primitive_type (function_declarator "thunk_FUN_00051780(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  \n  param_1[0x16] = 2;\n  puVar1 = (undefined4 *)FUN_00025be0(0xc);\n  *puVar1 = 0;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  pcVar2 = (char *)FUN_00027630(0);\n  uVar3 = concat(*param_1,"str",0);\n  iVar4 = FUN_00036660(pcVar2,uVar3);\n  if ((iVar4 != 1) && ((iVar4 != 0 || (*pcVar2 != '\0')))) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4);\n  }\n  FUN_0004b1e0(puVar1,iVar4,0,4);\n  *(undefined4 **)(param_1[0x20] + 0x2c) = puVar1;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "param_1[0x16] = 2;" (assignment_expression "param_1[0x16] = 2" (subscript_expression "param_1[0x16]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)FUN_00025be0(0xc);" (assignment_expression "puVar1 = (undefined4 *)FUN_00025be0(0xc)" identifier = (cast_expression "(undefined4 *)FUN_00025be0(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00025be0(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pcVar2 = (char *)FUN_00027630(0);" (assignment_expression "pcVar2 = (char *)FUN_00027630(0)" identifier = (cast_expression "(char *)FUN_00027630(0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00027630(0)" identifier (argument_list "(0)" ( number_literal ))))) ;) (expression_statement "uVar3 = concat(*param_1,"str",0);" (assignment_expression "uVar3 = concat(*param_1,"str",0)" identifier = (call_expression "concat(*param_1,"str",0)" identifier (argument_list "(*param_1,"str",0)" ( (pointer_expression "*param_1" * identifier) , (string_literal ""str"" " string_content ") , number_literal )))) ;) (expression_statement "iVar4 = FUN_00036660(pcVar2,uVar3);" (assignment_expression "iVar4 = FUN_00036660(pcVar2,uVar3)" identifier = (call_expression "FUN_00036660(pcVar2,uVar3)" identifier (argument_list "(pcVar2,uVar3)" ( identifier , identifier )))) ;) (if_statement "if ((iVar4 != 1) && ((iVar4 != 0 || (*pcVar2 != '\0')))) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4);\n  }" if (parenthesized_expression "((iVar4 != 1) && ((iVar4 != 0 || (*pcVar2 != '\0'))))" ( (binary_expression "(iVar4 != 1) && ((iVar4 != 0 || (*pcVar2 != '\0')))" (parenthesized_expression "(iVar4 != 1)" ( (binary_expression "iVar4 != 1" identifier != number_literal) )) && (parenthesized_expression "((iVar4 != 0 || (*pcVar2 != '\0')))" ( (parenthesized_expression "(iVar4 != 0 || (*pcVar2 != '\0'))" ( (binary_expression "iVar4 != 0 || (*pcVar2 != '\0')" (binary_expression "iVar4 != 0" identifier != number_literal) || (parenthesized_expression "(*pcVar2 != '\0')" ( (binary_expression "*pcVar2 != '\0'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4);\n  }" { comment (expression_statement "FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4);" (call_expression "FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4)" identifier (argument_list "("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4)" ( (string_literal ""../../gas/config/obj-elf.c"" " string_content ") , number_literal , (string_literal ""obj_elf_init_stab_section"" " string_content ") , identifier ))) ;) })) (expression_statement "FUN_0004b1e0(puVar1,iVar4,0,4);" (call_expression "FUN_0004b1e0(puVar1,iVar4,0,4)" identifier (argument_list "(puVar1,iVar4,0,4)" ( identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "*(undefined4 **)(param_1[0x20] + 0x2c) = puVar1;" (assignment_expression "*(undefined4 **)(param_1[0x20] + 0x2c) = puVar1" (pointer_expression "*(undefined4 **)(param_1[0x20] + 0x2c)" * (cast_expression "(undefined4 **)(param_1[0x20] + 0x2c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1[0x20] + 0x2c)" ( (binary_expression "param_1[0x20] + 0x2c" (subscript_expression "param_1[0x20]" identifier [ number_literal ]) + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid elf_init_stab_section(segT seg)\n\n{\n  char *buf;\n  char *string;\n  char *stabstr_secname;\n  uint uVar1;\n  \n  seg->alignment_power = 2;\n  buf = frag_more(0xc);\n  buf[0] = '\0';\n  buf[1] = '\0';\n  buf[2] = '\0';\n  buf[3] = '\0';\n  buf[4] = '\0';\n  buf[5] = '\0';\n  buf[6] = '\0';\n  buf[7] = '\0';\n  buf[8] = '\0';\n  buf[9] = '\0';\n  buf[10] = '\0';\n  buf[0xb] = '\0';\n  string = as_where((uint *)0x0);\n  stabstr_secname = (char *)concat(seg->name,"str",0);\n  uVar1 = get_stab_string_offset(string,stabstr_secname);\n  if ((uVar1 != 1) && ((uVar1 != 0 || (*string != '\0')))) {\n                    /* WARNING: Subroutine does not return */\n    as_abort("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section");\n  }\n  md_number_to_chars(buf,(ulonglong)uVar1,4);\n  *(char **)((int)seg->userdata + 0x2c) = buf;\n  return;\n}\n\n" comment comment (function_definition "void elf_init_stab_section(segT seg)\n\n{\n  char *buf;\n  char *string;\n  char *stabstr_secname;\n  uint uVar1;\n  \n  seg->alignment_power = 2;\n  buf = frag_more(0xc);\n  buf[0] = '\0';\n  buf[1] = '\0';\n  buf[2] = '\0';\n  buf[3] = '\0';\n  buf[4] = '\0';\n  buf[5] = '\0';\n  buf[6] = '\0';\n  buf[7] = '\0';\n  buf[8] = '\0';\n  buf[9] = '\0';\n  buf[10] = '\0';\n  buf[0xb] = '\0';\n  string = as_where((uint *)0x0);\n  stabstr_secname = (char *)concat(seg->name,"str",0);\n  uVar1 = get_stab_string_offset(string,stabstr_secname);\n  if ((uVar1 != 1) && ((uVar1 != 0 || (*string != '\0')))) {\n                    /* WARNING: Subroutine does not return */\n    as_abort("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section");\n  }\n  md_number_to_chars(buf,(ulonglong)uVar1,4);\n  *(char **)((int)seg->userdata + 0x2c) = buf;\n  return;\n}" primitive_type (function_declarator "elf_init_stab_section(segT seg)" identifier (parameter_list "(segT seg)" ( (parameter_declaration "segT seg" type_identifier identifier) ))) (compound_statement "{\n  char *buf;\n  char *string;\n  char *stabstr_secname;\n  uint uVar1;\n  \n  seg->alignment_power = 2;\n  buf = frag_more(0xc);\n  buf[0] = '\0';\n  buf[1] = '\0';\n  buf[2] = '\0';\n  buf[3] = '\0';\n  buf[4] = '\0';\n  buf[5] = '\0';\n  buf[6] = '\0';\n  buf[7] = '\0';\n  buf[8] = '\0';\n  buf[9] = '\0';\n  buf[10] = '\0';\n  buf[0xb] = '\0';\n  string = as_where((uint *)0x0);\n  stabstr_secname = (char *)concat(seg->name,"str",0);\n  uVar1 = get_stab_string_offset(string,stabstr_secname);\n  if ((uVar1 != 1) && ((uVar1 != 0 || (*string != '\0')))) {\n                    /* WARNING: Subroutine does not return */\n    as_abort("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section");\n  }\n  md_number_to_chars(buf,(ulonglong)uVar1,4);\n  *(char **)((int)seg->userdata + 0x2c) = buf;\n  return;\n}" { (declaration "char *buf;" primitive_type (pointer_declarator "*buf" * identifier) ;) (declaration "char *string;" primitive_type (pointer_declarator "*string" * identifier) ;) (declaration "char *stabstr_secname;" primitive_type (pointer_declarator "*stabstr_secname" * identifier) ;) (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "seg->alignment_power = 2;" (assignment_expression "seg->alignment_power = 2" (field_expression "seg->alignment_power" identifier -> field_identifier) = number_literal) ;) (expression_statement "buf = frag_more(0xc);" (assignment_expression "buf = frag_more(0xc)" identifier = (call_expression "frag_more(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "buf[0] = '\0';" (assignment_expression "buf[0] = '\0'" (subscript_expression "buf[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "buf[1] = '\0';" (assignment_expression "buf[1] = '\0'" (subscript_expression "buf[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "buf[2] = '\0';" (assignment_expression "buf[2] = '\0'" (subscript_expression "buf[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "buf[3] = '\0';" (assignment_expression "buf[3] = '\0'" (subscript_expression "buf[3]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "buf[4] = '\0';" (assignment_expression "buf[4] = '\0'" (subscript_expression "buf[4]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "buf[5] = '\0';" (assignment_expression "buf[5] = '\0'" (subscript_expression "buf[5]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "buf[6] = '\0';" (assignment_expression "buf[6] = '\0'" (subscript_expression "buf[6]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "buf[7] = '\0';" (assignment_expression "buf[7] = '\0'" (subscript_expression "buf[7]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "buf[8] = '\0';" (assignment_expression "buf[8] = '\0'" (subscript_expression "buf[8]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "buf[9] = '\0';" (assignment_expression "buf[9] = '\0'" (subscript_expression "buf[9]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "buf[10] = '\0';" (assignment_expression "buf[10] = '\0'" (subscript_expression "buf[10]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "buf[0xb] = '\0';" (assignment_expression "buf[0xb] = '\0'" (subscript_expression "buf[0xb]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "string = as_where((uint *)0x0);" (assignment_expression "string = as_where((uint *)0x0)" identifier = (call_expression "as_where((uint *)0x0)" identifier (argument_list "((uint *)0x0)" ( (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "stabstr_secname = (char *)concat(seg->name,"str",0);" (assignment_expression "stabstr_secname = (char *)concat(seg->name,"str",0)" identifier = (cast_expression "(char *)concat(seg->name,"str",0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "concat(seg->name,"str",0)" identifier (argument_list "(seg->name,"str",0)" ( (field_expression "seg->name" identifier -> field_identifier) , (string_literal ""str"" " string_content ") , number_literal ))))) ;) (expression_statement "uVar1 = get_stab_string_offset(string,stabstr_secname);" (assignment_expression "uVar1 = get_stab_string_offset(string,stabstr_secname)" identifier = (call_expression "get_stab_string_offset(string,stabstr_secname)" identifier (argument_list "(string,stabstr_secname)" ( identifier , identifier )))) ;) (if_statement "if ((uVar1 != 1) && ((uVar1 != 0 || (*string != '\0')))) {\n                    /* WARNING: Subroutine does not return */\n    as_abort("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section");\n  }" if (parenthesized_expression "((uVar1 != 1) && ((uVar1 != 0 || (*string != '\0'))))" ( (binary_expression "(uVar1 != 1) && ((uVar1 != 0 || (*string != '\0')))" (parenthesized_expression "(uVar1 != 1)" ( (binary_expression "uVar1 != 1" identifier != number_literal) )) && (parenthesized_expression "((uVar1 != 0 || (*string != '\0')))" ( (parenthesized_expression "(uVar1 != 0 || (*string != '\0'))" ( (binary_expression "uVar1 != 0 || (*string != '\0')" (binary_expression "uVar1 != 0" identifier != number_literal) || (parenthesized_expression "(*string != '\0')" ( (binary_expression "*string != '\0'" (pointer_expression "*string" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    as_abort("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section");\n  }" { comment (expression_statement "as_abort("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section");" (call_expression "as_abort("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section")" identifier (argument_list "("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section")" ( (string_literal ""../../gas/config/obj-elf.c"" " string_content ") , number_literal , (string_literal ""obj_elf_init_stab_section"" " string_content ") ))) ;) })) (expression_statement "md_number_to_chars(buf,(ulonglong)uVar1,4);" (call_expression "md_number_to_chars(buf,(ulonglong)uVar1,4)" identifier (argument_list "(buf,(ulonglong)uVar1,4)" ( identifier , (cast_expression "(ulonglong)uVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) , number_literal ))) ;) (expression_statement "*(char **)((int)seg->userdata + 0x2c) = buf;" (assignment_expression "*(char **)((int)seg->userdata + 0x2c) = buf" (pointer_expression "*(char **)((int)seg->userdata + 0x2c)" * (cast_expression "(char **)((int)seg->userdata + 0x2c)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)seg->userdata + 0x2c)" ( (binary_expression "(int)seg->userdata + 0x2c" (cast_expression "(int)seg->userdata" ( (type_descriptor "int" primitive_type) ) (field_expression "seg->userdata" identifier -> field_identifier)) + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void thunk_FUN_00051780(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  \n  param_1[0x16] = 2;\n  puVar1 = (undefined4 *)FUN_00025be0(0xc);\n  *puVar1 = 0;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  pcVar2 = (char *)FUN_00027630(0);\n  uVar3 = concat(*param_1,"str",0);\n  iVar4 = FUN_00036660(pcVar2,uVar3);\n  if ((iVar4 != 1) && ((iVar4 != 0 || (*pcVar2 != '\0')))) {\n                    \n    FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4);\n  }\n  FUN_0004b1e0(puVar1,iVar4,0,4);\n  *(undefined4 **)(param_1[0x20] + 0x2c) = puVar1;\n  return;\n}\n\n" (function_definition "void thunk_FUN_00051780(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  \n  param_1[0x16] = 2;\n  puVar1 = (undefined4 *)FUN_00025be0(0xc);\n  *puVar1 = 0;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  pcVar2 = (char *)FUN_00027630(0);\n  uVar3 = concat(*param_1,"str",0);\n  iVar4 = FUN_00036660(pcVar2,uVar3);\n  if ((iVar4 != 1) && ((iVar4 != 0 || (*pcVar2 != '\0')))) {\n                    \n    FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4);\n  }\n  FUN_0004b1e0(puVar1,iVar4,0,4);\n  *(undefined4 **)(param_1[0x20] + 0x2c) = puVar1;\n  return;\n}" primitive_type (function_declarator "thunk_FUN_00051780(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  \n  param_1[0x16] = 2;\n  puVar1 = (undefined4 *)FUN_00025be0(0xc);\n  *puVar1 = 0;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  pcVar2 = (char *)FUN_00027630(0);\n  uVar3 = concat(*param_1,"str",0);\n  iVar4 = FUN_00036660(pcVar2,uVar3);\n  if ((iVar4 != 1) && ((iVar4 != 0 || (*pcVar2 != '\0')))) {\n                    \n    FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4);\n  }\n  FUN_0004b1e0(puVar1,iVar4,0,4);\n  *(undefined4 **)(param_1[0x20] + 0x2c) = puVar1;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "param_1[0x16] = 2;" (assignment_expression "param_1[0x16] = 2" (subscript_expression "param_1[0x16]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)FUN_00025be0(0xc);" (assignment_expression "puVar1 = (undefined4 *)FUN_00025be0(0xc)" identifier = (cast_expression "(undefined4 *)FUN_00025be0(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00025be0(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pcVar2 = (char *)FUN_00027630(0);" (assignment_expression "pcVar2 = (char *)FUN_00027630(0)" identifier = (cast_expression "(char *)FUN_00027630(0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00027630(0)" identifier (argument_list "(0)" ( number_literal ))))) ;) (expression_statement "uVar3 = concat(*param_1,"str",0);" (assignment_expression "uVar3 = concat(*param_1,"str",0)" identifier = (call_expression "concat(*param_1,"str",0)" identifier (argument_list "(*param_1,"str",0)" ( (pointer_expression "*param_1" * identifier) , (string_literal ""str"" " string_content ") , number_literal )))) ;) (expression_statement "iVar4 = FUN_00036660(pcVar2,uVar3);" (assignment_expression "iVar4 = FUN_00036660(pcVar2,uVar3)" identifier = (call_expression "FUN_00036660(pcVar2,uVar3)" identifier (argument_list "(pcVar2,uVar3)" ( identifier , identifier )))) ;) (if_statement "if ((iVar4 != 1) && ((iVar4 != 0 || (*pcVar2 != '\0')))) {\n                    \n    FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4);\n  }" if (parenthesized_expression "((iVar4 != 1) && ((iVar4 != 0 || (*pcVar2 != '\0'))))" ( (binary_expression "(iVar4 != 1) && ((iVar4 != 0 || (*pcVar2 != '\0')))" (parenthesized_expression "(iVar4 != 1)" ( (binary_expression "iVar4 != 1" identifier != number_literal) )) && (parenthesized_expression "((iVar4 != 0 || (*pcVar2 != '\0')))" ( (parenthesized_expression "(iVar4 != 0 || (*pcVar2 != '\0'))" ( (binary_expression "iVar4 != 0 || (*pcVar2 != '\0')" (binary_expression "iVar4 != 0" identifier != number_literal) || (parenthesized_expression "(*pcVar2 != '\0')" ( (binary_expression "*pcVar2 != '\0'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) ))) )) (compound_statement "{\n                    \n    FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4);\n  }" { (expression_statement "FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4);" (call_expression "FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4)" identifier (argument_list "("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4)" ( (string_literal ""../../gas/config/obj-elf.c"" " string_content ") , number_literal , (string_literal ""obj_elf_init_stab_section"" " string_content ") , identifier ))) ;) })) (expression_statement "FUN_0004b1e0(puVar1,iVar4,0,4);" (call_expression "FUN_0004b1e0(puVar1,iVar4,0,4)" identifier (argument_list "(puVar1,iVar4,0,4)" ( identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "*(undefined4 **)(param_1[0x20] + 0x2c) = puVar1;" (assignment_expression "*(undefined4 **)(param_1[0x20] + 0x2c) = puVar1" (pointer_expression "*(undefined4 **)(param_1[0x20] + 0x2c)" * (cast_expression "(undefined4 **)(param_1[0x20] + 0x2c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1[0x20] + 0x2c)" ( (binary_expression "param_1[0x20] + 0x2c" (subscript_expression "param_1[0x20]" identifier [ number_literal ]) + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (string_literal " string_content ") , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ))) )) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void thunk_FUN_00051780(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  \n  param_1[0x16] = 2;\n  puVar1 = (undefined4 *)FUN_00025be0(0xc);\n  *puVar1 = 0;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  pcVar2 = (char *)FUN_00027630(0);\n  uVar3 = concat(*param_1,"str",0);\n  iVar4 = FUN_00036660(pcVar2,uVar3);\n  if ((iVar4 != 1) && ((iVar4 != 0 || (*pcVar2 != '\0')))) {\n                    \n    FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4);\n  }\n  FUN_0004b1e0(puVar1,iVar4,0,4);\n  *(undefined4 **)(param_1[0x20] + 0x2c) = puVar1;\n  return;\n}" (primitive_type "void") (function_declarator "thunk_FUN_00051780(undefined4 *param_1)" (identifier "thunk_FUN_00051780") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  \n  param_1[0x16] = 2;\n  puVar1 = (undefined4 *)FUN_00025be0(0xc);\n  *puVar1 = 0;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  pcVar2 = (char *)FUN_00027630(0);\n  uVar3 = concat(*param_1,"str",0);\n  iVar4 = FUN_00036660(pcVar2,uVar3);\n  if ((iVar4 != 1) && ((iVar4 != 0 || (*pcVar2 != '\0')))) {\n                    \n    FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4);\n  }\n  FUN_0004b1e0(puVar1,iVar4,0,4);\n  *(undefined4 **)(param_1[0x20] + 0x2c) = puVar1;\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "param_1[0x16] = 2;" (assignment_expression "param_1[0x16] = 2" (subscript_expression "param_1[0x16]" (identifier "param_1") ([ "[") (number_literal "0x16") (] "]")) (= "=") (number_literal "2")) (; ";")) (expression_statement "puVar1 = (undefined4 *)FUN_00025be0(0xc);" (assignment_expression "puVar1 = (undefined4 *)FUN_00025be0(0xc)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)FUN_00025be0(0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00025be0(0xc)" (identifier "FUN_00025be0") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")"))))) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar2 = (char *)FUN_00027630(0);" (assignment_expression "pcVar2 = (char *)FUN_00027630(0)" (identifier "pcVar2") (= "=") (cast_expression "(char *)FUN_00027630(0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00027630(0)" (identifier "FUN_00027630") (argument_list "(0)" (( "(") (number_literal "0") () ")"))))) (; ";")) (expression_statement "uVar3 = concat(*param_1,"str",0);" (assignment_expression "uVar3 = concat(*param_1,"str",0)" (identifier "uVar3") (= "=") (call_expression "concat(*param_1,"str",0)" (identifier "concat") (argument_list "(*param_1,"str",0)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (string_literal ""str"" (" """) (string_content "str") (" """)) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar4 = FUN_00036660(pcVar2,uVar3);" (assignment_expression "iVar4 = FUN_00036660(pcVar2,uVar3)" (identifier "iVar4") (= "=") (call_expression "FUN_00036660(pcVar2,uVar3)" (identifier "FUN_00036660") (argument_list "(pcVar2,uVar3)" (( "(") (identifier "pcVar2") (, ",") (identifier "uVar3") () ")")))) (; ";")) (if_statement "if ((iVar4 != 1) && ((iVar4 != 0 || (*pcVar2 != '\0')))) {\n                    \n    FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4);\n  }" (if "if") (parenthesized_expression "((iVar4 != 1) && ((iVar4 != 0 || (*pcVar2 != '\0'))))" (( "(") (binary_expression "(iVar4 != 1) && ((iVar4 != 0 || (*pcVar2 != '\0')))" (parenthesized_expression "(iVar4 != 1)" (( "(") (binary_expression "iVar4 != 1" (identifier "iVar4") (!= "!=") (number_literal "1")) () ")")) (&& "&&") (parenthesized_expression "((iVar4 != 0 || (*pcVar2 != '\0')))" (( "(") (parenthesized_expression "(iVar4 != 0 || (*pcVar2 != '\0'))" (( "(") (binary_expression "iVar4 != 0 || (*pcVar2 != '\0')" (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) (|| "||") (parenthesized_expression "(*pcVar2 != '\0')" (( "(") (binary_expression "*pcVar2 != '\0'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n                    \n    FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4);\n  }" ({ "{") (expression_statement "FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4);" (call_expression "FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4)" (identifier "FUN_0002cfc0") (argument_list "("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4)" (( "(") (string_literal ""../../gas/config/obj-elf.c"" (" """) (string_content "../../gas/config/obj-elf.c") (" """)) (, ",") (number_literal "0x852") (, ",") (string_literal ""obj_elf_init_stab_section"" (" """) (string_content "obj_elf_init_stab_section") (" """)) (, ",") (identifier "iVar4") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0004b1e0(puVar1,iVar4,0,4);" (call_expression "FUN_0004b1e0(puVar1,iVar4,0,4)" (identifier "FUN_0004b1e0") (argument_list "(puVar1,iVar4,0,4)" (( "(") (identifier "puVar1") (, ",") (identifier "iVar4") (, ",") (number_literal "0") (, ",") (number_literal "4") () ")"))) (; ";")) (expression_statement "*(undefined4 **)(param_1[0x20] + 0x2c) = puVar1;" (assignment_expression "*(undefined4 **)(param_1[0x20] + 0x2c) = puVar1" (pointer_expression "*(undefined4 **)(param_1[0x20] + 0x2c)" (* "*") (cast_expression "(undefined4 **)(param_1[0x20] + 0x2c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1[0x20] + 0x2c)" (( "(") (binary_expression "param_1[0x20] + 0x2c" (subscript_expression "param_1[0x20]" (identifier "param_1") ([ "[") (number_literal "0x20") (] "]")) (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (identifier "puVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 seg)

{
  char *buf;
  char *string;
  char *stabstr_secname;
  type_2 var_5;
  
  seg->alignment_power = 2;
  buf = var_1(0xc);
  buf[0] = '\0';
  buf[1] = '\0';
  buf[2] = '\0';
  buf[3] = '\0';
  buf[4] = '\0';
  buf[5] = '\0';
  buf[6] = '\0';
  buf[7] = '\0';
  buf[8] = '\0';
  buf[9] = '\0';
  buf[10] = '\0';
  buf[0xb] = '\0';
  string = var_2((type_2 *)0x0);
  stabstr_secname = (char *)var_3(seg->name,"str",0);
  var_5 = var_4(string,stabstr_secname);
  if ((var_5 != 1) && ((var_5 != 0 || (*string != '\0')))) {
                    /* WARNING: Subroutine does not return */
    var_6("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section");
  }
  var_7(buf,(type_3)var_5,4);
  *(char **)((int)seg->userdata + 0x2c) = buf;
  return;
}


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

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

void MASKED(undefined4 *param_1)

{
  undefined4 *puVar1;
  char *pcVar2;
  undefined4 uVar3;
  int iVar4;
  
  param_1[0x16] = 2;
  puVar1 = (undefined4 *)FUN_00025be0(0xc);
  *puVar1 = 0;
  puVar1[1] = 0;
  puVar1[2] = 0;
  pcVar2 = (char *)FUN_00027630(0);
  uVar3 = concat(*param_1,"str",0);
  iVar4 = FUN_00036660(pcVar2,uVar3);
  if ((iVar4 != 1) && ((iVar4 != 0 || (*pcVar2 != '\0')))) {
                    /* WARNING: Subroutine does not return */
    FUN_0002cfc0("../../gas/config/obj-elf.c",0x852,"obj_elf_init_stab_section",iVar4);
  }
  FUN_0004b1e0(puVar1,iVar4,0,4);
  *(undefined4 **)(param_1[0x20] + 0x2c) = puVar1;
  return;
}

