
int elf_osabi(char *osabi)

{
  int iVar1;
  uint uVar2;
  ulong uVar3;
  char **ppcVar4;
  char *pcVar5;
  
  pcVar5 = "none";
  ppcVar4 = &osabis[1].name;
  uVar3 = 0;
  while( true ) {
    iVar1 = strcasecmp(osabi,pcVar5);
    if (iVar1 == 0) {
      return osabis[uVar3].osabi;
    }
    uVar2 = (int)uVar3 + 1;
    uVar3 = (ulong)uVar2;
    if (uVar2 == 0x10) break;
    pcVar5 = *ppcVar4;
    ppcVar4 = ppcVar4 + 2;
  }
  pcVar5 = (char *)dcgettext(0,"Unknown OSABI: %s\n",5);
  error(pcVar5,osabi);
  return -1;
}



undefined4 FUN_00102a30(char *param_1)

{
  int iVar1;
  undefined8 uVar2;
  uint uVar3;
  ulong uVar4;
  undefined **ppuVar5;
  char *__s2;
  
  __s2 = "none";
  ppuVar5 = &PTR_DAT_00109cf8;
  uVar4 = 0;
  while( true ) {
    iVar1 = strcasecmp(param_1,__s2);
    if (iVar1 == 0) {
      return (&DAT_00109ce0)[uVar4 * 4];
    }
    uVar3 = (int)uVar4 + 1;
    uVar4 = (ulong)uVar3;
    if (uVar3 == 0x10) break;
    __s2 = *ppuVar5;
    ppuVar5 = ppuVar5 + 2;
  }
  uVar2 = dcgettext(0,"Unknown OSABI: %s\n",5);
  error(uVar2,param_1);
  return 0xffffffff;
}


PUSH R12
LEA RSI,[0x106599]
MOV R12,RDI
PUSH RBP
LEA RBP,[0x109cf8]
PUSH RBX
XOR EBX,EBX
JMP 0x00102a58
MOV RSI,qword ptr [RBP]
ADD RBP,0x10
MOV RDI,R12
CALL 0x00102040
TEST EAX,EAX
JZ 0x00102aa0
ADD EBX,0x1
CMP EBX,0x10
JNZ 0x00102a50
MOV EDX,0x5
LEA RSI,[0x1065d7]
XOR EDI,EDI
CALL 0x001020c0
MOV RSI,R12
MOV RDI,RAX
XOR EAX,EAX
CALL 0x00103650
POP RBX
MOV EAX,0xffffffff
POP RBP
POP R12
RET
SHL RBX,0x4
LEA RAX,[0x109ce0]
MOV EAX,dword ptr [RAX + RBX*0x1]
POP RBX
POP RBP
POP R12
RET
(translation_unit "undefined4 FUN_00102a30(char *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  uint uVar3;\n  ulong uVar4;\n  undefined **ppuVar5;\n  char *__s2;\n  \n  __s2 = "none";\n  ppuVar5 = &PTR_DAT_00109cf8;\n  uVar4 = 0;\n  while( true ) {\n    iVar1 = strcasecmp(param_1,__s2);\n    if (iVar1 == 0) {\n      return (&DAT_00109ce0)[uVar4 * 4];\n    }\n    uVar3 = (int)uVar4 + 1;\n    uVar4 = (ulong)uVar3;\n    if (uVar3 == 0x10) break;\n    __s2 = *ppuVar5;\n    ppuVar5 = ppuVar5 + 2;\n  }\n  uVar2 = dcgettext(0,"Unknown OSABI: %s\n",5);\n  error(uVar2,param_1);\n  return 0xffffffff;\n}\n\n" (function_definition "undefined4 FUN_00102a30(char *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  uint uVar3;\n  ulong uVar4;\n  undefined **ppuVar5;\n  char *__s2;\n  \n  __s2 = "none";\n  ppuVar5 = &PTR_DAT_00109cf8;\n  uVar4 = 0;\n  while( true ) {\n    iVar1 = strcasecmp(param_1,__s2);\n    if (iVar1 == 0) {\n      return (&DAT_00109ce0)[uVar4 * 4];\n    }\n    uVar3 = (int)uVar4 + 1;\n    uVar4 = (ulong)uVar3;\n    if (uVar3 == 0x10) break;\n    __s2 = *ppuVar5;\n    ppuVar5 = ppuVar5 + 2;\n  }\n  uVar2 = dcgettext(0,"Unknown OSABI: %s\n",5);\n  error(uVar2,param_1);\n  return 0xffffffff;\n}" type_identifier (function_declarator "FUN_00102a30(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  uint uVar3;\n  ulong uVar4;\n  undefined **ppuVar5;\n  char *__s2;\n  \n  __s2 = "none";\n  ppuVar5 = &PTR_DAT_00109cf8;\n  uVar4 = 0;\n  while( true ) {\n    iVar1 = strcasecmp(param_1,__s2);\n    if (iVar1 == 0) {\n      return (&DAT_00109ce0)[uVar4 * 4];\n    }\n    uVar3 = (int)uVar4 + 1;\n    uVar4 = (ulong)uVar3;\n    if (uVar3 == 0x10) break;\n    __s2 = *ppuVar5;\n    ppuVar5 = ppuVar5 + 2;\n  }\n  uVar2 = dcgettext(0,"Unknown OSABI: %s\n",5);\n  error(uVar2,param_1);\n  return 0xffffffff;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "undefined **ppuVar5;" type_identifier (pointer_declarator "**ppuVar5" * (pointer_declarator "*ppuVar5" * identifier)) ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (expression_statement "__s2 = "none";" (assignment_expression "__s2 = "none"" identifier = (string_literal ""none"" " string_content ")) ;) (expression_statement "ppuVar5 = &PTR_DAT_00109cf8;" (assignment_expression "ppuVar5 = &PTR_DAT_00109cf8" identifier = (pointer_expression "&PTR_DAT_00109cf8" & identifier)) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n    iVar1 = strcasecmp(param_1,__s2);\n    if (iVar1 == 0) {\n      return (&DAT_00109ce0)[uVar4 * 4];\n    }\n    uVar3 = (int)uVar4 + 1;\n    uVar4 = (ulong)uVar3;\n    if (uVar3 == 0x10) break;\n    __s2 = *ppuVar5;\n    ppuVar5 = ppuVar5 + 2;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = strcasecmp(param_1,__s2);\n    if (iVar1 == 0) {\n      return (&DAT_00109ce0)[uVar4 * 4];\n    }\n    uVar3 = (int)uVar4 + 1;\n    uVar4 = (ulong)uVar3;\n    if (uVar3 == 0x10) break;\n    __s2 = *ppuVar5;\n    ppuVar5 = ppuVar5 + 2;\n  }" { (expression_statement "iVar1 = strcasecmp(param_1,__s2);" (assignment_expression "iVar1 = strcasecmp(param_1,__s2)" identifier = (call_expression "strcasecmp(param_1,__s2)" identifier (argument_list "(param_1,__s2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      return (&DAT_00109ce0)[uVar4 * 4];\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return (&DAT_00109ce0)[uVar4 * 4];\n    }" { (return_statement "return (&DAT_00109ce0)[uVar4 * 4];" return (subscript_expression "(&DAT_00109ce0)[uVar4 * 4]" (parenthesized_expression "(&DAT_00109ce0)" ( (pointer_expression "&DAT_00109ce0" & identifier) )) [ (binary_expression "uVar4 * 4" identifier * number_literal) ]) ;) })) (expression_statement "uVar3 = (int)uVar4 + 1;" (assignment_expression "uVar3 = (int)uVar4 + 1" identifier = (binary_expression "(int)uVar4 + 1" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "uVar4 = (ulong)uVar3;" (assignment_expression "uVar4 = (ulong)uVar3" identifier = (cast_expression "(ulong)uVar3" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (if_statement "if (uVar3 == 0x10) break;" if (parenthesized_expression "(uVar3 == 0x10)" ( (binary_expression "uVar3 == 0x10" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "__s2 = *ppuVar5;" (assignment_expression "__s2 = *ppuVar5" identifier = (pointer_expression "*ppuVar5" * identifier)) ;) (expression_statement "ppuVar5 = ppuVar5 + 2;" (assignment_expression "ppuVar5 = ppuVar5 + 2" identifier = (binary_expression "ppuVar5 + 2" identifier + number_literal)) ;) })) (expression_statement "uVar2 = dcgettext(0,"Unknown OSABI: %s\n",5);" (assignment_expression "uVar2 = dcgettext(0,"Unknown OSABI: %s\n",5)" identifier = (call_expression "dcgettext(0,"Unknown OSABI: %s\n",5)" identifier (argument_list "(0,"Unknown OSABI: %s\n",5)" ( number_literal , (string_literal ""Unknown OSABI: %s\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "error(uVar2,param_1);" (call_expression "error(uVar2,param_1)" identifier (argument_list "(uVar2,param_1)" ( identifier , identifier ))) ;) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit "int elf_osabi(char *osabi)\n\n{\n  int iVar1;\n  uint uVar2;\n  ulong uVar3;\n  char **ppcVar4;\n  char *pcVar5;\n  \n  pcVar5 = "none";\n  ppcVar4 = &osabis[1].name;\n  uVar3 = 0;\n  while( true ) {\n    iVar1 = strcasecmp(osabi,pcVar5);\n    if (iVar1 == 0) {\n      return osabis[uVar3].osabi;\n    }\n    uVar2 = (int)uVar3 + 1;\n    uVar3 = (ulong)uVar2;\n    if (uVar2 == 0x10) break;\n    pcVar5 = *ppcVar4;\n    ppcVar4 = ppcVar4 + 2;\n  }\n  pcVar5 = (char *)dcgettext(0,"Unknown OSABI: %s\n",5);\n  error(pcVar5,osabi);\n  return -1;\n}\n\n" (function_definition "int elf_osabi(char *osabi)\n\n{\n  int iVar1;\n  uint uVar2;\n  ulong uVar3;\n  char **ppcVar4;\n  char *pcVar5;\n  \n  pcVar5 = "none";\n  ppcVar4 = &osabis[1].name;\n  uVar3 = 0;\n  while( true ) {\n    iVar1 = strcasecmp(osabi,pcVar5);\n    if (iVar1 == 0) {\n      return osabis[uVar3].osabi;\n    }\n    uVar2 = (int)uVar3 + 1;\n    uVar3 = (ulong)uVar2;\n    if (uVar2 == 0x10) break;\n    pcVar5 = *ppcVar4;\n    ppcVar4 = ppcVar4 + 2;\n  }\n  pcVar5 = (char *)dcgettext(0,"Unknown OSABI: %s\n",5);\n  error(pcVar5,osabi);\n  return -1;\n}" primitive_type (function_declarator "elf_osabi(char *osabi)" identifier (parameter_list "(char *osabi)" ( (parameter_declaration "char *osabi" primitive_type (pointer_declarator "*osabi" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  ulong uVar3;\n  char **ppcVar4;\n  char *pcVar5;\n  \n  pcVar5 = "none";\n  ppcVar4 = &osabis[1].name;\n  uVar3 = 0;\n  while( true ) {\n    iVar1 = strcasecmp(osabi,pcVar5);\n    if (iVar1 == 0) {\n      return osabis[uVar3].osabi;\n    }\n    uVar2 = (int)uVar3 + 1;\n    uVar3 = (ulong)uVar2;\n    if (uVar2 == 0x10) break;\n    pcVar5 = *ppcVar4;\n    ppcVar4 = ppcVar4 + 2;\n  }\n  pcVar5 = (char *)dcgettext(0,"Unknown OSABI: %s\n",5);\n  error(pcVar5,osabi);\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "char **ppcVar4;" primitive_type (pointer_declarator "**ppcVar4" * (pointer_declarator "*ppcVar4" * identifier)) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "pcVar5 = "none";" (assignment_expression "pcVar5 = "none"" identifier = (string_literal ""none"" " string_content ")) ;) (expression_statement "ppcVar4 = &osabis[1].name;" (assignment_expression "ppcVar4 = &osabis[1].name" identifier = (pointer_expression "&osabis[1].name" & (field_expression "osabis[1].name" (subscript_expression "osabis[1]" identifier [ number_literal ]) . field_identifier))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n    iVar1 = strcasecmp(osabi,pcVar5);\n    if (iVar1 == 0) {\n      return osabis[uVar3].osabi;\n    }\n    uVar2 = (int)uVar3 + 1;\n    uVar3 = (ulong)uVar2;\n    if (uVar2 == 0x10) break;\n    pcVar5 = *ppcVar4;\n    ppcVar4 = ppcVar4 + 2;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = strcasecmp(osabi,pcVar5);\n    if (iVar1 == 0) {\n      return osabis[uVar3].osabi;\n    }\n    uVar2 = (int)uVar3 + 1;\n    uVar3 = (ulong)uVar2;\n    if (uVar2 == 0x10) break;\n    pcVar5 = *ppcVar4;\n    ppcVar4 = ppcVar4 + 2;\n  }" { (expression_statement "iVar1 = strcasecmp(osabi,pcVar5);" (assignment_expression "iVar1 = strcasecmp(osabi,pcVar5)" identifier = (call_expression "strcasecmp(osabi,pcVar5)" identifier (argument_list "(osabi,pcVar5)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      return osabis[uVar3].osabi;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return osabis[uVar3].osabi;\n    }" { (return_statement "return osabis[uVar3].osabi;" return (field_expression "osabis[uVar3].osabi" (subscript_expression "osabis[uVar3]" identifier [ identifier ]) . field_identifier) ;) })) (expression_statement "uVar2 = (int)uVar3 + 1;" (assignment_expression "uVar2 = (int)uVar3 + 1" identifier = (binary_expression "(int)uVar3 + 1" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "uVar3 = (ulong)uVar2;" (assignment_expression "uVar3 = (ulong)uVar2" identifier = (cast_expression "(ulong)uVar2" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (if_statement "if (uVar2 == 0x10) break;" if (parenthesized_expression "(uVar2 == 0x10)" ( (binary_expression "uVar2 == 0x10" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pcVar5 = *ppcVar4;" (assignment_expression "pcVar5 = *ppcVar4" identifier = (pointer_expression "*ppcVar4" * identifier)) ;) (expression_statement "ppcVar4 = ppcVar4 + 2;" (assignment_expression "ppcVar4 = ppcVar4 + 2" identifier = (binary_expression "ppcVar4 + 2" identifier + number_literal)) ;) })) (expression_statement "pcVar5 = (char *)dcgettext(0,"Unknown OSABI: %s\n",5);" (assignment_expression "pcVar5 = (char *)dcgettext(0,"Unknown OSABI: %s\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"Unknown OSABI: %s\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Unknown OSABI: %s\n",5)" identifier (argument_list "(0,"Unknown OSABI: %s\n",5)" ( number_literal , (string_literal ""Unknown OSABI: %s\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "error(pcVar5,osabi);" (call_expression "error(pcVar5,osabi)" identifier (argument_list "(pcVar5,osabi)" ( identifier , identifier ))) ;) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00102a30(char *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  uint uVar3;\n  ulong uVar4;\n  undefined **ppuVar5;\n  char *__s2;\n  \n  __s2 = "none";\n  ppuVar5 = &PTR_DAT_00109cf8;\n  uVar4 = 0;\n  while( true ) {\n    iVar1 = strcasecmp(param_1,__s2);\n    if (iVar1 == 0) {\n      return (&DAT_00109ce0)[uVar4 * 4];\n    }\n    uVar3 = (int)uVar4 + 1;\n    uVar4 = (ulong)uVar3;\n    if (uVar3 == 0x10) break;\n    __s2 = *ppuVar5;\n    ppuVar5 = ppuVar5 + 2;\n  }\n  uVar2 = dcgettext(0,"Unknown OSABI: %s\n",5);\n  error(uVar2,param_1);\n  return 0xffffffff;\n}\n\n" (function_definition "undefined4 FUN_00102a30(char *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  uint uVar3;\n  ulong uVar4;\n  undefined **ppuVar5;\n  char *__s2;\n  \n  __s2 = "none";\n  ppuVar5 = &PTR_DAT_00109cf8;\n  uVar4 = 0;\n  while( true ) {\n    iVar1 = strcasecmp(param_1,__s2);\n    if (iVar1 == 0) {\n      return (&DAT_00109ce0)[uVar4 * 4];\n    }\n    uVar3 = (int)uVar4 + 1;\n    uVar4 = (ulong)uVar3;\n    if (uVar3 == 0x10) break;\n    __s2 = *ppuVar5;\n    ppuVar5 = ppuVar5 + 2;\n  }\n  uVar2 = dcgettext(0,"Unknown OSABI: %s\n",5);\n  error(uVar2,param_1);\n  return 0xffffffff;\n}" type_identifier (function_declarator "FUN_00102a30(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  uint uVar3;\n  ulong uVar4;\n  undefined **ppuVar5;\n  char *__s2;\n  \n  __s2 = "none";\n  ppuVar5 = &PTR_DAT_00109cf8;\n  uVar4 = 0;\n  while( true ) {\n    iVar1 = strcasecmp(param_1,__s2);\n    if (iVar1 == 0) {\n      return (&DAT_00109ce0)[uVar4 * 4];\n    }\n    uVar3 = (int)uVar4 + 1;\n    uVar4 = (ulong)uVar3;\n    if (uVar3 == 0x10) break;\n    __s2 = *ppuVar5;\n    ppuVar5 = ppuVar5 + 2;\n  }\n  uVar2 = dcgettext(0,"Unknown OSABI: %s\n",5);\n  error(uVar2,param_1);\n  return 0xffffffff;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "undefined **ppuVar5;" type_identifier (pointer_declarator "**ppuVar5" * (pointer_declarator "*ppuVar5" * identifier)) ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (expression_statement "__s2 = "none";" (assignment_expression "__s2 = "none"" identifier = (string_literal ""none"" " string_content ")) ;) (expression_statement "ppuVar5 = &PTR_DAT_00109cf8;" (assignment_expression "ppuVar5 = &PTR_DAT_00109cf8" identifier = (pointer_expression "&PTR_DAT_00109cf8" & identifier)) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n    iVar1 = strcasecmp(param_1,__s2);\n    if (iVar1 == 0) {\n      return (&DAT_00109ce0)[uVar4 * 4];\n    }\n    uVar3 = (int)uVar4 + 1;\n    uVar4 = (ulong)uVar3;\n    if (uVar3 == 0x10) break;\n    __s2 = *ppuVar5;\n    ppuVar5 = ppuVar5 + 2;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = strcasecmp(param_1,__s2);\n    if (iVar1 == 0) {\n      return (&DAT_00109ce0)[uVar4 * 4];\n    }\n    uVar3 = (int)uVar4 + 1;\n    uVar4 = (ulong)uVar3;\n    if (uVar3 == 0x10) break;\n    __s2 = *ppuVar5;\n    ppuVar5 = ppuVar5 + 2;\n  }" { (expression_statement "iVar1 = strcasecmp(param_1,__s2);" (assignment_expression "iVar1 = strcasecmp(param_1,__s2)" identifier = (call_expression "strcasecmp(param_1,__s2)" identifier (argument_list "(param_1,__s2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      return (&DAT_00109ce0)[uVar4 * 4];\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return (&DAT_00109ce0)[uVar4 * 4];\n    }" { (return_statement "return (&DAT_00109ce0)[uVar4 * 4];" return (subscript_expression "(&DAT_00109ce0)[uVar4 * 4]" (parenthesized_expression "(&DAT_00109ce0)" ( (pointer_expression "&DAT_00109ce0" & identifier) )) [ (binary_expression "uVar4 * 4" identifier * number_literal) ]) ;) })) (expression_statement "uVar3 = (int)uVar4 + 1;" (assignment_expression "uVar3 = (int)uVar4 + 1" identifier = (binary_expression "(int)uVar4 + 1" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "uVar4 = (ulong)uVar3;" (assignment_expression "uVar4 = (ulong)uVar3" identifier = (cast_expression "(ulong)uVar3" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (if_statement "if (uVar3 == 0x10) break;" if (parenthesized_expression "(uVar3 == 0x10)" ( (binary_expression "uVar3 == 0x10" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "__s2 = *ppuVar5;" (assignment_expression "__s2 = *ppuVar5" identifier = (pointer_expression "*ppuVar5" * identifier)) ;) (expression_statement "ppuVar5 = ppuVar5 + 2;" (assignment_expression "ppuVar5 = ppuVar5 + 2" identifier = (binary_expression "ppuVar5 + 2" identifier + number_literal)) ;) })) (expression_statement "uVar2 = dcgettext(0,"Unknown OSABI: %s\n",5);" (assignment_expression "uVar2 = dcgettext(0,"Unknown OSABI: %s\n",5)" identifier = (call_expression "dcgettext(0,"Unknown OSABI: %s\n",5)" identifier (argument_list "(0,"Unknown OSABI: %s\n",5)" ( number_literal , (string_literal ""Unknown OSABI: %s\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "error(uVar2,param_1);" (call_expression "error(uVar2,param_1)" identifier (argument_list "(uVar2,param_1)" ( identifier , identifier ))) ;) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression IDENT * LIT) ]) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00102a30(char *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  uint uVar3;\n  ulong uVar4;\n  undefined **ppuVar5;\n  char *__s2;\n  \n  __s2 = "none";\n  ppuVar5 = &PTR_DAT_00109cf8;\n  uVar4 = 0;\n  while( true ) {\n    iVar1 = strcasecmp(param_1,__s2);\n    if (iVar1 == 0) {\n      return (&DAT_00109ce0)[uVar4 * 4];\n    }\n    uVar3 = (int)uVar4 + 1;\n    uVar4 = (ulong)uVar3;\n    if (uVar3 == 0x10) break;\n    __s2 = *ppuVar5;\n    ppuVar5 = ppuVar5 + 2;\n  }\n  uVar2 = dcgettext(0,"Unknown OSABI: %s\n",5);\n  error(uVar2,param_1);\n  return 0xffffffff;\n}" (type_identifier "undefined4") (function_declarator "FUN_00102a30(char *param_1)" (identifier "FUN_00102a30") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  uint uVar3;\n  ulong uVar4;\n  undefined **ppuVar5;\n  char *__s2;\n  \n  __s2 = "none";\n  ppuVar5 = &PTR_DAT_00109cf8;\n  uVar4 = 0;\n  while( true ) {\n    iVar1 = strcasecmp(param_1,__s2);\n    if (iVar1 == 0) {\n      return (&DAT_00109ce0)[uVar4 * 4];\n    }\n    uVar3 = (int)uVar4 + 1;\n    uVar4 = (ulong)uVar3;\n    if (uVar3 == 0x10) break;\n    __s2 = *ppuVar5;\n    ppuVar5 = ppuVar5 + 2;\n  }\n  uVar2 = dcgettext(0,"Unknown OSABI: %s\n",5);\n  error(uVar2,param_1);\n  return 0xffffffff;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "ulong uVar4;" (type_identifier "ulong") (identifier "uVar4") (; ";")) (declaration "undefined **ppuVar5;" (type_identifier "undefined") (pointer_declarator "**ppuVar5" (* "*") (pointer_declarator "*ppuVar5" (* "*") (identifier "ppuVar5"))) (; ";")) (declaration "char *__s2;" (primitive_type "char") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (expression_statement "__s2 = "none";" (assignment_expression "__s2 = "none"" (identifier "__s2") (= "=") (string_literal ""none"" (" """) (string_content "none") (" """))) (; ";")) (expression_statement "ppuVar5 = &PTR_DAT_00109cf8;" (assignment_expression "ppuVar5 = &PTR_DAT_00109cf8" (identifier "ppuVar5") (= "=") (pointer_expression "&PTR_DAT_00109cf8" (& "&") (identifier "PTR_DAT_00109cf8"))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n    iVar1 = strcasecmp(param_1,__s2);\n    if (iVar1 == 0) {\n      return (&DAT_00109ce0)[uVar4 * 4];\n    }\n    uVar3 = (int)uVar4 + 1;\n    uVar4 = (ulong)uVar3;\n    if (uVar3 == 0x10) break;\n    __s2 = *ppuVar5;\n    ppuVar5 = ppuVar5 + 2;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    iVar1 = strcasecmp(param_1,__s2);\n    if (iVar1 == 0) {\n      return (&DAT_00109ce0)[uVar4 * 4];\n    }\n    uVar3 = (int)uVar4 + 1;\n    uVar4 = (ulong)uVar3;\n    if (uVar3 == 0x10) break;\n    __s2 = *ppuVar5;\n    ppuVar5 = ppuVar5 + 2;\n  }" ({ "{") (expression_statement "iVar1 = strcasecmp(param_1,__s2);" (assignment_expression "iVar1 = strcasecmp(param_1,__s2)" (identifier "iVar1") (= "=") (call_expression "strcasecmp(param_1,__s2)" (identifier "strcasecmp") (argument_list "(param_1,__s2)" (( "(") (identifier "param_1") (, ",") (identifier "__s2") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      return (&DAT_00109ce0)[uVar4 * 4];\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return (&DAT_00109ce0)[uVar4 * 4];\n    }" ({ "{") (return_statement "return (&DAT_00109ce0)[uVar4 * 4];" (return "return") (subscript_expression "(&DAT_00109ce0)[uVar4 * 4]" (parenthesized_expression "(&DAT_00109ce0)" (( "(") (pointer_expression "&DAT_00109ce0" (& "&") (identifier "DAT_00109ce0")) () ")")) ([ "[") (binary_expression "uVar4 * 4" (identifier "uVar4") (* "*") (number_literal "4")) (] "]")) (; ";")) (} "}"))) (expression_statement "uVar3 = (int)uVar4 + 1;" (assignment_expression "uVar3 = (int)uVar4 + 1" (identifier "uVar3") (= "=") (binary_expression "(int)uVar4 + 1" (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = (ulong)uVar3;" (assignment_expression "uVar4 = (ulong)uVar3" (identifier "uVar4") (= "=") (cast_expression "(ulong)uVar3" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar3"))) (; ";")) (if_statement "if (uVar3 == 0x10) break;" (if "if") (parenthesized_expression "(uVar3 == 0x10)" (( "(") (binary_expression "uVar3 == 0x10" (identifier "uVar3") (== "==") (number_literal "0x10")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "__s2 = *ppuVar5;" (assignment_expression "__s2 = *ppuVar5" (identifier "__s2") (= "=") (pointer_expression "*ppuVar5" (* "*") (identifier "ppuVar5"))) (; ";")) (expression_statement "ppuVar5 = ppuVar5 + 2;" (assignment_expression "ppuVar5 = ppuVar5 + 2" (identifier "ppuVar5") (= "=") (binary_expression "ppuVar5 + 2" (identifier "ppuVar5") (+ "+") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "uVar2 = dcgettext(0,"Unknown OSABI: %s\n",5);" (assignment_expression "uVar2 = dcgettext(0,"Unknown OSABI: %s\n",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"Unknown OSABI: %s\n",5)" (identifier "dcgettext") (argument_list "(0,"Unknown OSABI: %s\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Unknown OSABI: %s\n"" (" """) (string_content "Unknown OSABI: %s") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "error(uVar2,param_1);" (call_expression "error(uVar2,param_1)" (identifier "error") (argument_list "(uVar2,param_1)" (( "(") (identifier "uVar2") (, ",") (identifier "param_1") () ")"))) (; ";")) (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}")))

int function_1(char *osabi)

{
  int var_2;
  type_1 var_3;
  type_2 uVar3;
  char **var_4;
  char *pcVar5;
  
  pcVar5 = "none";
  var_4 = &osabis[1].name;
  uVar3 = 0;
  while( true ) {
    var_2 = var_1(osabi,pcVar5);
    if (var_2 == 0) {
      return osabis[uVar3].osabi;
    }
    var_3 = (int)uVar3 + 1;
    uVar3 = (type_2)var_3;
    if (var_3 == 0x10) break;
    pcVar5 = *var_4;
    var_4 = var_4 + 2;
  }
  pcVar5 = (char *)var_5(0,"Unknown OSABI: %s\n",5);
  var_6(pcVar5,osabi);
  return -1;
}


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

undefined4 MASKED(char *param_1)

{
  int iVar1;
  undefined8 uVar2;
  uint uVar3;
  ulong uVar4;
  undefined **ppuVar5;
  char *__s2;
  
  __s2 = "none";
  ppuVar5 = &PTR_DAT_00109cf8;
  uVar4 = 0;
  while( true ) {
    iVar1 = strcasecmp(param_1,__s2);
    if (iVar1 == 0) {
      return (&DAT_00109ce0)[uVar4 * 4];
    }
    uVar3 = (int)uVar4 + 1;
    uVar4 = (ulong)uVar3;
    if (uVar3 == 0x10) break;
    __s2 = *ppuVar5;
    ppuVar5 = ppuVar5 + 2;
  }
  uVar2 = dcgettext(0,"Unknown OSABI: %s\n",5);
  error(uVar2,param_1);
  return 0xffffffff;
}

