
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: int compare_section(sort_type sort, asection * asec, asection * bsec,
   asection * bsec, asection * asec) */

int __regparm3
compare_section(sort_type sort,asection *asec,asection *bsec,asection *bsec_1,asection *asec_1)

{
  ulong uVar1;
  ulong uVar2;
  int iVar3;
  
  switch(sort) {
  default:
                    /* WARNING: Subroutine does not return */
    ld_abort("../../ld/ldlang.c",0x1b4,"compare_section");
  case by_name:
    goto _L987;
  case by_name_alignment:
    iVar3 = strcmp(asec->name,bsec_1->name);
    if (iVar3 != 0) {
      return iVar3;
    }
  case by_alignment:
    return (int)asec_1->name - (int)bsec->name;
  case by_alignment_name:
    iVar3 = (int)asec_1->name - (int)bsec->name;
    break;
  case by_init_priority:
    uVar1 = get_init_priority(asec->name);
    uVar2 = get_init_priority(bsec_1->name);
    if ((uVar1 == 0) || (uVar2 == 0)) goto _L987;
    iVar3 = uVar1 - uVar2;
  }
  if (iVar3 != 0) {
    return iVar3;
  }
_L987:
  iVar3 = strcmp(asec->name,bsec_1->name);
  return iVar3;
}



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

int __regparm3
FUN_00023450(undefined4 param_1,undefined4 *param_2,int *param_3,undefined4 *param_4,int *param_5)

{
  int iVar1;
  int iVar2;
  
  switch(param_1) {
  default:
                    /* WARNING: Subroutine does not return */
    FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);
  case 1:
    goto code_r0x00023482;
  case 3:
    iVar1 = strcmp((char *)*param_2,(char *)*param_4);
    if (iVar1 != 0) {
      return iVar1;
    }
  case 2:
    return *param_5 - *param_3;
  case 4:
    iVar1 = *param_5 - *param_3;
    break;
  case 6:
    iVar1 = FUN_00023360();
    iVar2 = FUN_00023360();
    if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;
    iVar1 = iVar1 - iVar2;
  }
  if (iVar1 != 0) {
    return iVar1;
  }
code_r0x00023482:
  iVar1 = strcmp((char *)*param_2,(char *)*param_4);
  return iVar1;
}


PUSH ESI
PUSH EBX
CALL 0x00017b80
ADD EBX,0x1abba9
SUB ESP,0x14
CMP EAX,0x6
JA 0x000234fc
MOV ESI,dword ptr [EBX + EAX*0x4 + 0xffeaba6c]
ADD ESI,EBX
JMP ESI
PUSH EAX
LEA EAX,[EBX + 0xffeabd38]
PUSH EAX
LEA EAX,[EBX + 0xffeabdbe]
PUSH 0x1b4
PUSH EAX
CALL 0x00033e90
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3\nFUN_00023450(undefined4 param_1,undefined4 *param_2,int *param_3,undefined4 *param_4,int *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  switch(param_1) {\n  default:\n                    /* WARNING: Subroutine does not return */\n    FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);\n  case 1:\n    goto code_r0x00023482;\n  case 3:\n    iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  case 2:\n    return *param_5 - *param_3;\n  case 4:\n    iVar1 = *param_5 - *param_3;\n    break;\n  case 6:\n    iVar1 = FUN_00023360();\n    iVar2 = FUN_00023360();\n    if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;\n    iVar1 = iVar1 - iVar2;\n  }\n  if (iVar1 != 0) {\n    return iVar1;\n  }\ncode_r0x00023482:\n  iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n  return iVar1;\n}\n\n" comment (function_definition "int __regparm3\nFUN_00023450(undefined4 param_1,undefined4 *param_2,int *param_3,undefined4 *param_4,int *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  switch(param_1) {\n  default:\n                    /* WARNING: Subroutine does not return */\n    FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);\n  case 1:\n    goto code_r0x00023482;\n  case 3:\n    iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  case 2:\n    return *param_5 - *param_3;\n  case 4:\n    iVar1 = *param_5 - *param_3;\n    break;\n  case 6:\n    iVar1 = FUN_00023360();\n    iVar2 = FUN_00023360();\n    if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;\n    iVar1 = iVar1 - iVar2;\n  }\n  if (iVar1 != 0) {\n    return iVar1;\n  }\ncode_r0x00023482:\n  iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00023450(undefined4 param_1,undefined4 *param_2,int *param_3,undefined4 *param_4,int *param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,int *param_3,undefined4 *param_4,int *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  switch(param_1) {\n  default:\n                    /* WARNING: Subroutine does not return */\n    FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);\n  case 1:\n    goto code_r0x00023482;\n  case 3:\n    iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  case 2:\n    return *param_5 - *param_3;\n  case 4:\n    iVar1 = *param_5 - *param_3;\n    break;\n  case 6:\n    iVar1 = FUN_00023360();\n    iVar2 = FUN_00023360();\n    if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;\n    iVar1 = iVar1 - iVar2;\n  }\n  if (iVar1 != 0) {\n    return iVar1;\n  }\ncode_r0x00023482:\n  iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (switch_statement "switch(param_1) {\n  default:\n                    /* WARNING: Subroutine does not return */\n    FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);\n  case 1:\n    goto code_r0x00023482;\n  case 3:\n    iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  case 2:\n    return *param_5 - *param_3;\n  case 4:\n    iVar1 = *param_5 - *param_3;\n    break;\n  case 6:\n    iVar1 = FUN_00023360();\n    iVar2 = FUN_00023360();\n    if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;\n    iVar1 = iVar1 - iVar2;\n  }" switch (parenthesized_expression "(param_1)" ( identifier )) (compound_statement "{\n  default:\n                    /* WARNING: Subroutine does not return */\n    FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);\n  case 1:\n    goto code_r0x00023482;\n  case 3:\n    iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  case 2:\n    return *param_5 - *param_3;\n  case 4:\n    iVar1 = *param_5 - *param_3;\n    break;\n  case 6:\n    iVar1 = FUN_00023360();\n    iVar2 = FUN_00023360();\n    if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;\n    iVar1 = iVar1 - iVar2;\n  }" { (case_statement "default:\n                    /* WARNING: Subroutine does not return */\n    FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);" default : comment (expression_statement "FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);" (call_expression "FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1)" identifier (argument_list "("../../ld/ldlang.c",0x1b4,"compare_section",param_1)" ( (string_literal ""../../ld/ldlang.c"" " string_content ") , number_literal , (string_literal ""compare_section"" " string_content ") , identifier ))) ;)) (case_statement "case 1:\n    goto code_r0x00023482;" case number_literal : (goto_statement "goto code_r0x00023482;" goto statement_identifier ;)) (case_statement "case 3:\n    iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n    if (iVar1 != 0) {\n      return iVar1;\n    }" case number_literal : (expression_statement "iVar1 = strcmp((char *)*param_2,(char *)*param_4);" (assignment_expression "iVar1 = strcmp((char *)*param_2,(char *)*param_4)" identifier = (call_expression "strcmp((char *)*param_2,(char *)*param_4)" identifier (argument_list "((char *)*param_2,(char *)*param_4)" ( (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , (cast_expression "(char *)*param_4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_4" * identifier)) )))) ;) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) }))) (case_statement "case 2:\n    return *param_5 - *param_3;" case number_literal : (return_statement "return *param_5 - *param_3;" return (binary_expression "*param_5 - *param_3" (pointer_expression "*param_5" * identifier) - (pointer_expression "*param_3" * identifier)) ;)) (case_statement "case 4:\n    iVar1 = *param_5 - *param_3;\n    break;" case number_literal : (expression_statement "iVar1 = *param_5 - *param_3;" (assignment_expression "iVar1 = *param_5 - *param_3" identifier = (binary_expression "*param_5 - *param_3" (pointer_expression "*param_5" * identifier) - (pointer_expression "*param_3" * identifier))) ;) (break_statement "break;" break ;)) (case_statement "case 6:\n    iVar1 = FUN_00023360();\n    iVar2 = FUN_00023360();\n    if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;\n    iVar1 = iVar1 - iVar2;" case number_literal : (expression_statement "iVar1 = FUN_00023360();" (assignment_expression "iVar1 = FUN_00023360()" identifier = (call_expression "FUN_00023360()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = FUN_00023360();" (assignment_expression "iVar2 = FUN_00023360()" identifier = (call_expression "FUN_00023360()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;" if (parenthesized_expression "((iVar1 == 0) || (iVar2 == 0))" ( (binary_expression "(iVar1 == 0) || (iVar2 == 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) ))) )) (goto_statement "goto code_r0x00023482;" goto statement_identifier ;)) (expression_statement "iVar1 = iVar1 - iVar2;" (assignment_expression "iVar1 = iVar1 - iVar2" identifier = (binary_expression "iVar1 - iVar2" identifier - identifier)) ;)) })) (if_statement "if (iVar1 != 0) {\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (labeled_statement "code_r0x00023482:\n  iVar1 = strcmp((char *)*param_2,(char *)*param_4);" statement_identifier : (expression_statement "iVar1 = strcmp((char *)*param_2,(char *)*param_4);" (assignment_expression "iVar1 = strcmp((char *)*param_2,(char *)*param_4)" identifier = (call_expression "strcmp((char *)*param_2,(char *)*param_4)" identifier (argument_list "((char *)*param_2,(char *)*param_4)" ( (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , (cast_expression "(char *)*param_4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_4" * identifier)) )))) ;)) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: int compare_section(sort_type sort, asection * asec, asection * bsec,\n   asection * bsec, asection * asec) */\n\nint __regparm3\ncompare_section(sort_type sort,asection *asec,asection *bsec,asection *bsec_1,asection *asec_1)\n\n{\n  ulong uVar1;\n  ulong uVar2;\n  int iVar3;\n  \n  switch(sort) {\n  default:\n                    /* WARNING: Subroutine does not return */\n    ld_abort("../../ld/ldlang.c",0x1b4,"compare_section");\n  case by_name:\n    goto _L987;\n  case by_name_alignment:\n    iVar3 = strcmp(asec->name,bsec_1->name);\n    if (iVar3 != 0) {\n      return iVar3;\n    }\n  case by_alignment:\n    return (int)asec_1->name - (int)bsec->name;\n  case by_alignment_name:\n    iVar3 = (int)asec_1->name - (int)bsec->name;\n    break;\n  case by_init_priority:\n    uVar1 = get_init_priority(asec->name);\n    uVar2 = get_init_priority(bsec_1->name);\n    if ((uVar1 == 0) || (uVar2 == 0)) goto _L987;\n    iVar3 = uVar1 - uVar2;\n  }\n  if (iVar3 != 0) {\n    return iVar3;\n  }\n_L987:\n  iVar3 = strcmp(asec->name,bsec_1->name);\n  return iVar3;\n}\n\n" comment comment (function_definition "int __regparm3\ncompare_section(sort_type sort,asection *asec,asection *bsec,asection *bsec_1,asection *asec_1)\n\n{\n  ulong uVar1;\n  ulong uVar2;\n  int iVar3;\n  \n  switch(sort) {\n  default:\n                    /* WARNING: Subroutine does not return */\n    ld_abort("../../ld/ldlang.c",0x1b4,"compare_section");\n  case by_name:\n    goto _L987;\n  case by_name_alignment:\n    iVar3 = strcmp(asec->name,bsec_1->name);\n    if (iVar3 != 0) {\n      return iVar3;\n    }\n  case by_alignment:\n    return (int)asec_1->name - (int)bsec->name;\n  case by_alignment_name:\n    iVar3 = (int)asec_1->name - (int)bsec->name;\n    break;\n  case by_init_priority:\n    uVar1 = get_init_priority(asec->name);\n    uVar2 = get_init_priority(bsec_1->name);\n    if ((uVar1 == 0) || (uVar2 == 0)) goto _L987;\n    iVar3 = uVar1 - uVar2;\n  }\n  if (iVar3 != 0) {\n    return iVar3;\n  }\n_L987:\n  iVar3 = strcmp(asec->name,bsec_1->name);\n  return iVar3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "compare_section(sort_type sort,asection *asec,asection *bsec,asection *bsec_1,asection *asec_1)" identifier (parameter_list "(sort_type sort,asection *asec,asection *bsec,asection *bsec_1,asection *asec_1)" ( (parameter_declaration "sort_type sort" type_identifier identifier) , (parameter_declaration "asection *asec" type_identifier (pointer_declarator "*asec" * identifier)) , (parameter_declaration "asection *bsec" type_identifier (pointer_declarator "*bsec" * identifier)) , (parameter_declaration "asection *bsec_1" type_identifier (pointer_declarator "*bsec_1" * identifier)) , (parameter_declaration "asection *asec_1" type_identifier (pointer_declarator "*asec_1" * identifier)) ))) (compound_statement "{\n  ulong uVar1;\n  ulong uVar2;\n  int iVar3;\n  \n  switch(sort) {\n  default:\n                    /* WARNING: Subroutine does not return */\n    ld_abort("../../ld/ldlang.c",0x1b4,"compare_section");\n  case by_name:\n    goto _L987;\n  case by_name_alignment:\n    iVar3 = strcmp(asec->name,bsec_1->name);\n    if (iVar3 != 0) {\n      return iVar3;\n    }\n  case by_alignment:\n    return (int)asec_1->name - (int)bsec->name;\n  case by_alignment_name:\n    iVar3 = (int)asec_1->name - (int)bsec->name;\n    break;\n  case by_init_priority:\n    uVar1 = get_init_priority(asec->name);\n    uVar2 = get_init_priority(bsec_1->name);\n    if ((uVar1 == 0) || (uVar2 == 0)) goto _L987;\n    iVar3 = uVar1 - uVar2;\n  }\n  if (iVar3 != 0) {\n    return iVar3;\n  }\n_L987:\n  iVar3 = strcmp(asec->name,bsec_1->name);\n  return iVar3;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (switch_statement "switch(sort) {\n  default:\n                    /* WARNING: Subroutine does not return */\n    ld_abort("../../ld/ldlang.c",0x1b4,"compare_section");\n  case by_name:\n    goto _L987;\n  case by_name_alignment:\n    iVar3 = strcmp(asec->name,bsec_1->name);\n    if (iVar3 != 0) {\n      return iVar3;\n    }\n  case by_alignment:\n    return (int)asec_1->name - (int)bsec->name;\n  case by_alignment_name:\n    iVar3 = (int)asec_1->name - (int)bsec->name;\n    break;\n  case by_init_priority:\n    uVar1 = get_init_priority(asec->name);\n    uVar2 = get_init_priority(bsec_1->name);\n    if ((uVar1 == 0) || (uVar2 == 0)) goto _L987;\n    iVar3 = uVar1 - uVar2;\n  }" switch (parenthesized_expression "(sort)" ( identifier )) (compound_statement "{\n  default:\n                    /* WARNING: Subroutine does not return */\n    ld_abort("../../ld/ldlang.c",0x1b4,"compare_section");\n  case by_name:\n    goto _L987;\n  case by_name_alignment:\n    iVar3 = strcmp(asec->name,bsec_1->name);\n    if (iVar3 != 0) {\n      return iVar3;\n    }\n  case by_alignment:\n    return (int)asec_1->name - (int)bsec->name;\n  case by_alignment_name:\n    iVar3 = (int)asec_1->name - (int)bsec->name;\n    break;\n  case by_init_priority:\n    uVar1 = get_init_priority(asec->name);\n    uVar2 = get_init_priority(bsec_1->name);\n    if ((uVar1 == 0) || (uVar2 == 0)) goto _L987;\n    iVar3 = uVar1 - uVar2;\n  }" { (case_statement "default:\n                    /* WARNING: Subroutine does not return */\n    ld_abort("../../ld/ldlang.c",0x1b4,"compare_section");" default : comment (expression_statement "ld_abort("../../ld/ldlang.c",0x1b4,"compare_section");" (call_expression "ld_abort("../../ld/ldlang.c",0x1b4,"compare_section")" identifier (argument_list "("../../ld/ldlang.c",0x1b4,"compare_section")" ( (string_literal ""../../ld/ldlang.c"" " string_content ") , number_literal , (string_literal ""compare_section"" " string_content ") ))) ;)) (case_statement "case by_name:\n    goto _L987;" case identifier : (goto_statement "goto _L987;" goto statement_identifier ;)) (case_statement "case by_name_alignment:\n    iVar3 = strcmp(asec->name,bsec_1->name);\n    if (iVar3 != 0) {\n      return iVar3;\n    }" case identifier : (expression_statement "iVar3 = strcmp(asec->name,bsec_1->name);" (assignment_expression "iVar3 = strcmp(asec->name,bsec_1->name)" identifier = (call_expression "strcmp(asec->name,bsec_1->name)" identifier (argument_list "(asec->name,bsec_1->name)" ( (field_expression "asec->name" identifier -> field_identifier) , (field_expression "bsec_1->name" identifier -> field_identifier) )))) ;) (if_statement "if (iVar3 != 0) {\n      return iVar3;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar3;\n    }" { (return_statement "return iVar3;" return identifier ;) }))) (case_statement "case by_alignment:\n    return (int)asec_1->name - (int)bsec->name;" case identifier : (return_statement "return (int)asec_1->name - (int)bsec->name;" return (binary_expression "(int)asec_1->name - (int)bsec->name" (cast_expression "(int)asec_1->name" ( (type_descriptor "int" primitive_type) ) (field_expression "asec_1->name" identifier -> field_identifier)) - (cast_expression "(int)bsec->name" ( (type_descriptor "int" primitive_type) ) (field_expression "bsec->name" identifier -> field_identifier))) ;)) (case_statement "case by_alignment_name:\n    iVar3 = (int)asec_1->name - (int)bsec->name;\n    break;" case identifier : (expression_statement "iVar3 = (int)asec_1->name - (int)bsec->name;" (assignment_expression "iVar3 = (int)asec_1->name - (int)bsec->name" identifier = (binary_expression "(int)asec_1->name - (int)bsec->name" (cast_expression "(int)asec_1->name" ( (type_descriptor "int" primitive_type) ) (field_expression "asec_1->name" identifier -> field_identifier)) - (cast_expression "(int)bsec->name" ( (type_descriptor "int" primitive_type) ) (field_expression "bsec->name" identifier -> field_identifier)))) ;) (break_statement "break;" break ;)) (case_statement "case by_init_priority:\n    uVar1 = get_init_priority(asec->name);\n    uVar2 = get_init_priority(bsec_1->name);\n    if ((uVar1 == 0) || (uVar2 == 0)) goto _L987;\n    iVar3 = uVar1 - uVar2;" case identifier : (expression_statement "uVar1 = get_init_priority(asec->name);" (assignment_expression "uVar1 = get_init_priority(asec->name)" identifier = (call_expression "get_init_priority(asec->name)" identifier (argument_list "(asec->name)" ( (field_expression "asec->name" identifier -> field_identifier) )))) ;) (expression_statement "uVar2 = get_init_priority(bsec_1->name);" (assignment_expression "uVar2 = get_init_priority(bsec_1->name)" identifier = (call_expression "get_init_priority(bsec_1->name)" identifier (argument_list "(bsec_1->name)" ( (field_expression "bsec_1->name" identifier -> field_identifier) )))) ;) (if_statement "if ((uVar1 == 0) || (uVar2 == 0)) goto _L987;" if (parenthesized_expression "((uVar1 == 0) || (uVar2 == 0))" ( (binary_expression "(uVar1 == 0) || (uVar2 == 0)" (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) ))) )) (goto_statement "goto _L987;" goto statement_identifier ;)) (expression_statement "iVar3 = uVar1 - uVar2;" (assignment_expression "iVar3 = uVar1 - uVar2" identifier = (binary_expression "uVar1 - uVar2" identifier - identifier)) ;)) })) (if_statement "if (iVar3 != 0) {\n    return iVar3;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar3;\n  }" { (return_statement "return iVar3;" return identifier ;) })) (labeled_statement "_L987:\n  iVar3 = strcmp(asec->name,bsec_1->name);" statement_identifier : (expression_statement "iVar3 = strcmp(asec->name,bsec_1->name);" (assignment_expression "iVar3 = strcmp(asec->name,bsec_1->name)" identifier = (call_expression "strcmp(asec->name,bsec_1->name)" identifier (argument_list "(asec->name,bsec_1->name)" ( (field_expression "asec->name" identifier -> field_identifier) , (field_expression "bsec_1->name" identifier -> field_identifier) )))) ;)) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "int __regparm3\nFUN_00023450(undefined4 param_1,undefined4 *param_2,int *param_3,undefined4 *param_4,int *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  switch(param_1) {\n  default:\n                    \n    FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);\n  case 1:\n    goto code_r0x00023482;\n  case 3:\n    iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  case 2:\n    return *param_5 - *param_3;\n  case 4:\n    iVar1 = *param_5 - *param_3;\n    break;\n  case 6:\n    iVar1 = FUN_00023360();\n    iVar2 = FUN_00023360();\n    if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;\n    iVar1 = iVar1 - iVar2;\n  }\n  if (iVar1 != 0) {\n    return iVar1;\n  }\ncode_r0x00023482:\n  iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n  return iVar1;\n}\n\n" (function_definition "int __regparm3\nFUN_00023450(undefined4 param_1,undefined4 *param_2,int *param_3,undefined4 *param_4,int *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  switch(param_1) {\n  default:\n                    \n    FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);\n  case 1:\n    goto code_r0x00023482;\n  case 3:\n    iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  case 2:\n    return *param_5 - *param_3;\n  case 4:\n    iVar1 = *param_5 - *param_3;\n    break;\n  case 6:\n    iVar1 = FUN_00023360();\n    iVar2 = FUN_00023360();\n    if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;\n    iVar1 = iVar1 - iVar2;\n  }\n  if (iVar1 != 0) {\n    return iVar1;\n  }\ncode_r0x00023482:\n  iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00023450(undefined4 param_1,undefined4 *param_2,int *param_3,undefined4 *param_4,int *param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,int *param_3,undefined4 *param_4,int *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  switch(param_1) {\n  default:\n                    \n    FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);\n  case 1:\n    goto code_r0x00023482;\n  case 3:\n    iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  case 2:\n    return *param_5 - *param_3;\n  case 4:\n    iVar1 = *param_5 - *param_3;\n    break;\n  case 6:\n    iVar1 = FUN_00023360();\n    iVar2 = FUN_00023360();\n    if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;\n    iVar1 = iVar1 - iVar2;\n  }\n  if (iVar1 != 0) {\n    return iVar1;\n  }\ncode_r0x00023482:\n  iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (switch_statement "switch(param_1) {\n  default:\n                    \n    FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);\n  case 1:\n    goto code_r0x00023482;\n  case 3:\n    iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  case 2:\n    return *param_5 - *param_3;\n  case 4:\n    iVar1 = *param_5 - *param_3;\n    break;\n  case 6:\n    iVar1 = FUN_00023360();\n    iVar2 = FUN_00023360();\n    if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;\n    iVar1 = iVar1 - iVar2;\n  }" switch (parenthesized_expression "(param_1)" ( identifier )) (compound_statement "{\n  default:\n                    \n    FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);\n  case 1:\n    goto code_r0x00023482;\n  case 3:\n    iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  case 2:\n    return *param_5 - *param_3;\n  case 4:\n    iVar1 = *param_5 - *param_3;\n    break;\n  case 6:\n    iVar1 = FUN_00023360();\n    iVar2 = FUN_00023360();\n    if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;\n    iVar1 = iVar1 - iVar2;\n  }" { (case_statement "default:\n                    \n    FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);" default : (expression_statement "FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);" (call_expression "FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1)" identifier (argument_list "("../../ld/ldlang.c",0x1b4,"compare_section",param_1)" ( (string_literal ""../../ld/ldlang.c"" " string_content ") , number_literal , (string_literal ""compare_section"" " string_content ") , identifier ))) ;)) (case_statement "case 1:\n    goto code_r0x00023482;" case number_literal : (goto_statement "goto code_r0x00023482;" goto statement_identifier ;)) (case_statement "case 3:\n    iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n    if (iVar1 != 0) {\n      return iVar1;\n    }" case number_literal : (expression_statement "iVar1 = strcmp((char *)*param_2,(char *)*param_4);" (assignment_expression "iVar1 = strcmp((char *)*param_2,(char *)*param_4)" identifier = (call_expression "strcmp((char *)*param_2,(char *)*param_4)" identifier (argument_list "((char *)*param_2,(char *)*param_4)" ( (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , (cast_expression "(char *)*param_4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_4" * identifier)) )))) ;) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) }))) (case_statement "case 2:\n    return *param_5 - *param_3;" case number_literal : (return_statement "return *param_5 - *param_3;" return (binary_expression "*param_5 - *param_3" (pointer_expression "*param_5" * identifier) - (pointer_expression "*param_3" * identifier)) ;)) (case_statement "case 4:\n    iVar1 = *param_5 - *param_3;\n    break;" case number_literal : (expression_statement "iVar1 = *param_5 - *param_3;" (assignment_expression "iVar1 = *param_5 - *param_3" identifier = (binary_expression "*param_5 - *param_3" (pointer_expression "*param_5" * identifier) - (pointer_expression "*param_3" * identifier))) ;) (break_statement "break;" break ;)) (case_statement "case 6:\n    iVar1 = FUN_00023360();\n    iVar2 = FUN_00023360();\n    if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;\n    iVar1 = iVar1 - iVar2;" case number_literal : (expression_statement "iVar1 = FUN_00023360();" (assignment_expression "iVar1 = FUN_00023360()" identifier = (call_expression "FUN_00023360()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = FUN_00023360();" (assignment_expression "iVar2 = FUN_00023360()" identifier = (call_expression "FUN_00023360()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;" if (parenthesized_expression "((iVar1 == 0) || (iVar2 == 0))" ( (binary_expression "(iVar1 == 0) || (iVar2 == 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) ))) )) (goto_statement "goto code_r0x00023482;" goto statement_identifier ;)) (expression_statement "iVar1 = iVar1 - iVar2;" (assignment_expression "iVar1 = iVar1 - iVar2" identifier = (binary_expression "iVar1 - iVar2" identifier - identifier)) ;)) })) (if_statement "if (iVar1 != 0) {\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (labeled_statement "code_r0x00023482:\n  iVar1 = strcmp((char *)*param_2,(char *)*param_4);" statement_identifier : (expression_statement "iVar1 = strcmp((char *)*param_2,(char *)*param_4);" (assignment_expression "iVar1 = strcmp((char *)*param_2,(char *)*param_4)" identifier = (call_expression "strcmp((char *)*param_2,(char *)*param_4)" identifier (argument_list "((char *)*param_2,(char *)*param_4)" ( (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , (cast_expression "(char *)*param_4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_4" * identifier)) )))) ;)) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (switch_statement switch (parenthesized_expression ( IDENT )) (compound_statement { (case_statement default : (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;)) (case_statement case LIT : (goto_statement goto statement_identifier ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) }))) (case_statement case LIT : (return_statement return (binary_expression (pointer_expression * IDENT) - (pointer_expression * IDENT)) ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) - (pointer_expression * IDENT))) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;)) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )))) ;)) (return_statement return IDENT ;) })))
(function_definition "int __regparm3\nFUN_00023450(undefined4 param_1,undefined4 *param_2,int *param_3,undefined4 *param_4,int *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  switch(param_1) {\n  default:\n                    \n    FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);\n  case 1:\n    goto code_r0x00023482;\n  case 3:\n    iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  case 2:\n    return *param_5 - *param_3;\n  case 4:\n    iVar1 = *param_5 - *param_3;\n    break;\n  case 6:\n    iVar1 = FUN_00023360();\n    iVar2 = FUN_00023360();\n    if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;\n    iVar1 = iVar1 - iVar2;\n  }\n  if (iVar1 != 0) {\n    return iVar1;\n  }\ncode_r0x00023482:\n  iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n  return iVar1;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00023450(undefined4 param_1,undefined4 *param_2,int *param_3,undefined4 *param_4,int *param_5)" (identifier "FUN_00023450") (parameter_list "(undefined4 param_1,undefined4 *param_2,int *param_3,undefined4 *param_4,int *param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int *param_5" (primitive_type "int") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  switch(param_1) {\n  default:\n                    \n    FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);\n  case 1:\n    goto code_r0x00023482;\n  case 3:\n    iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  case 2:\n    return *param_5 - *param_3;\n  case 4:\n    iVar1 = *param_5 - *param_3;\n    break;\n  case 6:\n    iVar1 = FUN_00023360();\n    iVar2 = FUN_00023360();\n    if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;\n    iVar1 = iVar1 - iVar2;\n  }\n  if (iVar1 != 0) {\n    return iVar1;\n  }\ncode_r0x00023482:\n  iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (switch_statement "switch(param_1) {\n  default:\n                    \n    FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);\n  case 1:\n    goto code_r0x00023482;\n  case 3:\n    iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  case 2:\n    return *param_5 - *param_3;\n  case 4:\n    iVar1 = *param_5 - *param_3;\n    break;\n  case 6:\n    iVar1 = FUN_00023360();\n    iVar2 = FUN_00023360();\n    if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;\n    iVar1 = iVar1 - iVar2;\n  }" (switch "switch") (parenthesized_expression "(param_1)" (( "(") (identifier "param_1") () ")")) (compound_statement "{\n  default:\n                    \n    FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);\n  case 1:\n    goto code_r0x00023482;\n  case 3:\n    iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  case 2:\n    return *param_5 - *param_3;\n  case 4:\n    iVar1 = *param_5 - *param_3;\n    break;\n  case 6:\n    iVar1 = FUN_00023360();\n    iVar2 = FUN_00023360();\n    if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;\n    iVar1 = iVar1 - iVar2;\n  }" ({ "{") (case_statement "default:\n                    \n    FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);" (default "default") (: ":") (expression_statement "FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);" (call_expression "FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1)" (identifier "FUN_00033e90") (argument_list "("../../ld/ldlang.c",0x1b4,"compare_section",param_1)" (( "(") (string_literal ""../../ld/ldlang.c"" (" """) (string_content "../../ld/ldlang.c") (" """)) (, ",") (number_literal "0x1b4") (, ",") (string_literal ""compare_section"" (" """) (string_content "compare_section") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";"))) (case_statement "case 1:\n    goto code_r0x00023482;" (case "case") (number_literal "1") (: ":") (goto_statement "goto code_r0x00023482;" (goto "goto") (statement_identifier "code_r0x00023482") (; ";"))) (case_statement "case 3:\n    iVar1 = strcmp((char *)*param_2,(char *)*param_4);\n    if (iVar1 != 0) {\n      return iVar1;\n    }" (case "case") (number_literal "3") (: ":") (expression_statement "iVar1 = strcmp((char *)*param_2,(char *)*param_4);" (assignment_expression "iVar1 = strcmp((char *)*param_2,(char *)*param_4)" (identifier "iVar1") (= "=") (call_expression "strcmp((char *)*param_2,(char *)*param_4)" (identifier "strcmp") (argument_list "((char *)*param_2,(char *)*param_4)" (( "(") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (, ",") (cast_expression "(char *)*param_4" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_4" (* "*") (identifier "param_4"))) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return iVar1;\n    }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))) (case_statement "case 2:\n    return *param_5 - *param_3;" (case "case") (number_literal "2") (: ":") (return_statement "return *param_5 - *param_3;" (return "return") (binary_expression "*param_5 - *param_3" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (- "-") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";"))) (case_statement "case 4:\n    iVar1 = *param_5 - *param_3;\n    break;" (case "case") (number_literal "4") (: ":") (expression_statement "iVar1 = *param_5 - *param_3;" (assignment_expression "iVar1 = *param_5 - *param_3" (identifier "iVar1") (= "=") (binary_expression "*param_5 - *param_3" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (- "-") (pointer_expression "*param_3" (* "*") (identifier "param_3")))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 6:\n    iVar1 = FUN_00023360();\n    iVar2 = FUN_00023360();\n    if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;\n    iVar1 = iVar1 - iVar2;" (case "case") (number_literal "6") (: ":") (expression_statement "iVar1 = FUN_00023360();" (assignment_expression "iVar1 = FUN_00023360()" (identifier "iVar1") (= "=") (call_expression "FUN_00023360()" (identifier "FUN_00023360") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar2 = FUN_00023360();" (assignment_expression "iVar2 = FUN_00023360()" (identifier "iVar2") (= "=") (call_expression "FUN_00023360()" (identifier "FUN_00023360") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;" (if "if") (parenthesized_expression "((iVar1 == 0) || (iVar2 == 0))" (( "(") (binary_expression "(iVar1 == 0) || (iVar2 == 0)" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto code_r0x00023482;" (goto "goto") (statement_identifier "code_r0x00023482") (; ";"))) (expression_statement "iVar1 = iVar1 - iVar2;" (assignment_expression "iVar1 = iVar1 - iVar2" (identifier "iVar1") (= "=") (binary_expression "iVar1 - iVar2" (identifier "iVar1") (- "-") (identifier "iVar2"))) (; ";"))) (} "}"))) (if_statement "if (iVar1 != 0) {\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (labeled_statement "code_r0x00023482:\n  iVar1 = strcmp((char *)*param_2,(char *)*param_4);" (statement_identifier "code_r0x00023482") (: ":") (expression_statement "iVar1 = strcmp((char *)*param_2,(char *)*param_4);" (assignment_expression "iVar1 = strcmp((char *)*param_2,(char *)*param_4)" (identifier "iVar1") (= "=") (call_expression "strcmp((char *)*param_2,(char *)*param_4)" (identifier "strcmp") (argument_list "((char *)*param_2,(char *)*param_4)" (( "(") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (, ",") (cast_expression "(char *)*param_4" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_4" (* "*") (identifier "param_4"))) () ")")))) (; ";"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: int compare_section(sort_type sort, asection * asec, asection * bsec,
   asection * bsec, asection * asec) */

int __regparm3
function_1(type_1 sort,type_2 *asec,type_2 *bsec,type_2 *bsec_1,type_2 *asec_1)

{
  type_3 var_5;
  type_3 var_6;
  int var_3;
  
  switch(sort) {
  default:
                    /* WARNING: Subroutine does not return */
    var_1("../../ld/ldlang.c",0x1b4,"compare_section");
  case by_name:
    goto _L987;
  case by_name_alignment:
    var_3 = var_2(asec->name,bsec_1->name);
    if (var_3 != 0) {
      return var_3;
    }
  case by_alignment:
    return (int)asec_1->name - (int)bsec->name;
  case by_alignment_name:
    var_3 = (int)asec_1->name - (int)bsec->name;
    break;
  case by_init_priority:
    var_5 = var_4(asec->name);
    var_6 = var_4(bsec_1->name);
    if ((var_5 == 0) || (var_6 == 0)) goto _L987;
    var_3 = var_5 - var_6;
  }
  if (var_3 != 0) {
    return var_3;
  }
_L987:
  var_3 = var_2(asec->name,bsec_1->name);
  return var_3;
}


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

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

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

{
  int iVar1;
  int iVar2;
  
  switch(param_1) {
  default:
                    /* WARNING: Subroutine does not return */
    FUN_00033e90("../../ld/ldlang.c",0x1b4,"compare_section",param_1);
  case 1:
    goto code_r0x00023482;
  case 3:
    iVar1 = strcmp((char *)*param_2,(char *)*param_4);
    if (iVar1 != 0) {
      return iVar1;
    }
  case 2:
    return *param_5 - *param_3;
  case 4:
    iVar1 = *param_5 - *param_3;
    break;
  case 6:
    iVar1 = FUN_00023360();
    iVar2 = FUN_00023360();
    if ((iVar1 == 0) || (iVar2 == 0)) goto code_r0x00023482;
    iVar1 = iVar1 - iVar2;
  }
  if (iVar1 != 0) {
    return iVar1;
  }
code_r0x00023482:
  iVar1 = strcmp((char *)*param_2,(char *)*param_4);
  return iVar1;
}

