
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Switch with 1 destination removed at 0x0001bc90 */
/* WARNING: Unknown calling convention */

void __gmp_assert_header(char *filename,int linenum)

{
  undefined *puVar1;
  undefined4 uVar2;
  undefined **ppuVar3;
  
  puVar1 = PTR_stderr_00098d54;
  ppuVar3 = &_GLOBAL_OFFSET_TABLE_;
  uVar2 = 0x1c487;
  if (((filename != (char *)0x0) && (*filename != '\0')) &&
     (__fprintf_chk(*(undefined4 *)PTR_stderr_00098d54,1,&DAT_0007a000,filename,0x1c487,
                    &_GLOBAL_OFFSET_TABLE_), linenum != -1)) {
    __fprintf_chk(*(undefined4 *)puVar1,1,&DAT_0007a004,linenum,uVar2,ppuVar3);
    return;
  }
  return;
}



/* WARNING: Switch with 1 destination removed at 0x0001bc90 */

void __regparm2 __gmp_assert_header(undefined4 param_1,undefined4 param_2,int param_3)

{
  undefined4 *puVar1;
  undefined **ppuVar2;
  char *unaff_retaddr;
  
  ppuVar2 = &__DT_PLTGOT;
  entry(param_2,0x1c487,&__DT_PLTGOT);
  if ((unaff_retaddr != (char *)0x0) && (*unaff_retaddr != '\0')) {
    puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2);
    __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr);
    if (param_3 != -1) {
      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);
      return;
    }
  }
  return;
}


JMP dword ptr [EBX + 0x320]
(translation_unit "/* WARNING: Switch with 1 destination removed at 0x0001bc90 */\n\nvoid __regparm2 __gmp_assert_header(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 *puVar1;\n  undefined **ppuVar2;\n  char *unaff_retaddr;\n  \n  ppuVar2 = &__DT_PLTGOT;\n  entry(param_2,0x1c487,&__DT_PLTGOT);\n  if ((unaff_retaddr != (char *)0x0) && (*unaff_retaddr != '\0')) {\n    puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2);\n    __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr);\n    if (param_3 != -1) {\n      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);\n      return;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm2 __gmp_assert_header(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 *puVar1;\n  undefined **ppuVar2;\n  char *unaff_retaddr;\n  \n  ppuVar2 = &__DT_PLTGOT;\n  entry(param_2,0x1c487,&__DT_PLTGOT);\n  if ((unaff_retaddr != (char *)0x0) && (*unaff_retaddr != '\0')) {\n    puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2);\n    __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr);\n    if (param_3 != -1) {\n      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);\n      return;\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "__gmp_assert_header(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined **ppuVar2;\n  char *unaff_retaddr;\n  \n  ppuVar2 = &__DT_PLTGOT;\n  entry(param_2,0x1c487,&__DT_PLTGOT);\n  if ((unaff_retaddr != (char *)0x0) && (*unaff_retaddr != '\0')) {\n    puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2);\n    __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr);\n    if (param_3 != -1) {\n      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);\n      return;\n    }\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (declaration "char *unaff_retaddr;" primitive_type (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "ppuVar2 = &__DT_PLTGOT;" (assignment_expression "ppuVar2 = &__DT_PLTGOT" identifier = (pointer_expression "&__DT_PLTGOT" & identifier)) ;) (expression_statement "entry(param_2,0x1c487,&__DT_PLTGOT);" (call_expression "entry(param_2,0x1c487,&__DT_PLTGOT)" identifier (argument_list "(param_2,0x1c487,&__DT_PLTGOT)" ( identifier , number_literal , (pointer_expression "&__DT_PLTGOT" & identifier) ))) ;) (if_statement "if ((unaff_retaddr != (char *)0x0) && (*unaff_retaddr != '\0')) {\n    puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2);\n    __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr);\n    if (param_3 != -1) {\n      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);\n      return;\n    }\n  }" if (parenthesized_expression "((unaff_retaddr != (char *)0x0) && (*unaff_retaddr != '\0'))" ( (binary_expression "(unaff_retaddr != (char *)0x0) && (*unaff_retaddr != '\0')" (parenthesized_expression "(unaff_retaddr != (char *)0x0)" ( (binary_expression "unaff_retaddr != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*unaff_retaddr != '\0')" ( (binary_expression "*unaff_retaddr != '\0'" (pointer_expression "*unaff_retaddr" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2);\n    __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr);\n    if (param_3 != -1) {\n      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);\n      return;\n    }\n  }" { (expression_statement "puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2);" (assignment_expression "puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2)" identifier = (pointer_expression "*(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2)" * (cast_expression "(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_0007c8cd + (int)ppuVar2)" ( (binary_expression "&DAT_0007c8cd + (int)ppuVar2" (pointer_expression "&DAT_0007c8cd" & identifier) + (cast_expression "(int)ppuVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ))))) ;) (expression_statement "__fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr);" (call_expression "__fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr)" identifier (argument_list "(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr)" ( (pointer_expression "*puVar1" * identifier) , number_literal , (binary_expression "(int)ppuVar2 + 0x5db79" (cast_expression "(int)ppuVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) , identifier ))) ;) (if_statement "if (param_3 != -1) {\n      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);\n      return;\n    }" if (parenthesized_expression "(param_3 != -1)" ( (binary_expression "param_3 != -1" identifier != number_literal) )) (compound_statement "{\n      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);\n      return;\n    }" { (expression_statement "__fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);" (call_expression "__fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3)" identifier (argument_list "(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3)" ( (pointer_expression "*puVar1" * identifier) , number_literal , (binary_expression "(int)ppuVar2 + 0x5db7d" (cast_expression "(int)ppuVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) , identifier ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Switch with 1 destination removed at 0x0001bc90 */\n/* WARNING: Unknown calling convention */\n\nvoid __gmp_assert_header(char *filename,int linenum)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined **ppuVar3;\n  \n  puVar1 = PTR_stderr_00098d54;\n  ppuVar3 = &_GLOBAL_OFFSET_TABLE_;\n  uVar2 = 0x1c487;\n  if (((filename != (char *)0x0) && (*filename != '\0')) &&\n     (__fprintf_chk(*(undefined4 *)PTR_stderr_00098d54,1,&DAT_0007a000,filename,0x1c487,\n                    &_GLOBAL_OFFSET_TABLE_), linenum != -1)) {\n    __fprintf_chk(*(undefined4 *)puVar1,1,&DAT_0007a004,linenum,uVar2,ppuVar3);\n    return;\n  }\n  return;\n}\n\n" comment comment comment (function_definition "void __gmp_assert_header(char *filename,int linenum)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined **ppuVar3;\n  \n  puVar1 = PTR_stderr_00098d54;\n  ppuVar3 = &_GLOBAL_OFFSET_TABLE_;\n  uVar2 = 0x1c487;\n  if (((filename != (char *)0x0) && (*filename != '\0')) &&\n     (__fprintf_chk(*(undefined4 *)PTR_stderr_00098d54,1,&DAT_0007a000,filename,0x1c487,\n                    &_GLOBAL_OFFSET_TABLE_), linenum != -1)) {\n    __fprintf_chk(*(undefined4 *)puVar1,1,&DAT_0007a004,linenum,uVar2,ppuVar3);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "__gmp_assert_header(char *filename,int linenum)" identifier (parameter_list "(char *filename,int linenum)" ( (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) , (parameter_declaration "int linenum" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined **ppuVar3;\n  \n  puVar1 = PTR_stderr_00098d54;\n  ppuVar3 = &_GLOBAL_OFFSET_TABLE_;\n  uVar2 = 0x1c487;\n  if (((filename != (char *)0x0) && (*filename != '\0')) &&\n     (__fprintf_chk(*(undefined4 *)PTR_stderr_00098d54,1,&DAT_0007a000,filename,0x1c487,\n                    &_GLOBAL_OFFSET_TABLE_), linenum != -1)) {\n    __fprintf_chk(*(undefined4 *)puVar1,1,&DAT_0007a004,linenum,uVar2,ppuVar3);\n    return;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined **ppuVar3;" type_identifier (pointer_declarator "**ppuVar3" * (pointer_declarator "*ppuVar3" * identifier)) ;) (expression_statement "puVar1 = PTR_stderr_00098d54;" (assignment_expression "puVar1 = PTR_stderr_00098d54" identifier = identifier) ;) (expression_statement "ppuVar3 = &_GLOBAL_OFFSET_TABLE_;" (assignment_expression "ppuVar3 = &_GLOBAL_OFFSET_TABLE_" identifier = (pointer_expression "&_GLOBAL_OFFSET_TABLE_" & identifier)) ;) (expression_statement "uVar2 = 0x1c487;" (assignment_expression "uVar2 = 0x1c487" identifier = number_literal) ;) (if_statement "if (((filename != (char *)0x0) && (*filename != '\0')) &&\n     (__fprintf_chk(*(undefined4 *)PTR_stderr_00098d54,1,&DAT_0007a000,filename,0x1c487,\n                    &_GLOBAL_OFFSET_TABLE_), linenum != -1)) {\n    __fprintf_chk(*(undefined4 *)puVar1,1,&DAT_0007a004,linenum,uVar2,ppuVar3);\n    return;\n  }" if (parenthesized_expression "(((filename != (char *)0x0) && (*filename != '\0')) &&\n     (__fprintf_chk(*(undefined4 *)PTR_stderr_00098d54,1,&DAT_0007a000,filename,0x1c487,\n                    &_GLOBAL_OFFSET_TABLE_), linenum != -1))" ( (binary_expression "((filename != (char *)0x0) && (*filename != '\0')) &&\n     (__fprintf_chk(*(undefined4 *)PTR_stderr_00098d54,1,&DAT_0007a000,filename,0x1c487,\n                    &_GLOBAL_OFFSET_TABLE_), linenum != -1)" (parenthesized_expression "((filename != (char *)0x0) && (*filename != '\0'))" ( (binary_expression "(filename != (char *)0x0) && (*filename != '\0')" (parenthesized_expression "(filename != (char *)0x0)" ( (binary_expression "filename != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*filename != '\0')" ( (binary_expression "*filename != '\0'" (pointer_expression "*filename" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(__fprintf_chk(*(undefined4 *)PTR_stderr_00098d54,1,&DAT_0007a000,filename,0x1c487,\n                    &_GLOBAL_OFFSET_TABLE_), linenum != -1)" ( (comma_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_00098d54,1,&DAT_0007a000,filename,0x1c487,\n                    &_GLOBAL_OFFSET_TABLE_), linenum != -1" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_00098d54,1,&DAT_0007a000,filename,0x1c487,\n                    &_GLOBAL_OFFSET_TABLE_)" identifier (argument_list "(*(undefined4 *)PTR_stderr_00098d54,1,&DAT_0007a000,filename,0x1c487,\n                    &_GLOBAL_OFFSET_TABLE_)" ( (pointer_expression "*(undefined4 *)PTR_stderr_00098d54" * (cast_expression "(undefined4 *)PTR_stderr_00098d54" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (pointer_expression "&DAT_0007a000" & identifier) , identifier , number_literal , (pointer_expression "&_GLOBAL_OFFSET_TABLE_" & identifier) ))) , (binary_expression "linenum != -1" identifier != number_literal)) ))) )) (compound_statement "{\n    __fprintf_chk(*(undefined4 *)puVar1,1,&DAT_0007a004,linenum,uVar2,ppuVar3);\n    return;\n  }" { (expression_statement "__fprintf_chk(*(undefined4 *)puVar1,1,&DAT_0007a004,linenum,uVar2,ppuVar3);" (call_expression "__fprintf_chk(*(undefined4 *)puVar1,1,&DAT_0007a004,linenum,uVar2,ppuVar3)" identifier (argument_list "(*(undefined4 *)puVar1,1,&DAT_0007a004,linenum,uVar2,ppuVar3)" ( (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (pointer_expression "&DAT_0007a004" & identifier) , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm2 __gmp_assert_header(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 *puVar1;\n  undefined **ppuVar2;\n  char *unaff_retaddr;\n  \n  ppuVar2 = &__DT_PLTGOT;\n  entry(param_2,0x1c487,&__DT_PLTGOT);\n  if ((unaff_retaddr != (char *)0x0) && (*unaff_retaddr != '\0')) {\n    puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2);\n    __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr);\n    if (param_3 != -1) {\n      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void __regparm2 __gmp_assert_header(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 *puVar1;\n  undefined **ppuVar2;\n  char *unaff_retaddr;\n  \n  ppuVar2 = &__DT_PLTGOT;\n  entry(param_2,0x1c487,&__DT_PLTGOT);\n  if ((unaff_retaddr != (char *)0x0) && (*unaff_retaddr != '\0')) {\n    puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2);\n    __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr);\n    if (param_3 != -1) {\n      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);\n      return;\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "__gmp_assert_header(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined **ppuVar2;\n  char *unaff_retaddr;\n  \n  ppuVar2 = &__DT_PLTGOT;\n  entry(param_2,0x1c487,&__DT_PLTGOT);\n  if ((unaff_retaddr != (char *)0x0) && (*unaff_retaddr != '\0')) {\n    puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2);\n    __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr);\n    if (param_3 != -1) {\n      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);\n      return;\n    }\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (declaration "char *unaff_retaddr;" primitive_type (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "ppuVar2 = &__DT_PLTGOT;" (assignment_expression "ppuVar2 = &__DT_PLTGOT" identifier = (pointer_expression "&__DT_PLTGOT" & identifier)) ;) (expression_statement "entry(param_2,0x1c487,&__DT_PLTGOT);" (call_expression "entry(param_2,0x1c487,&__DT_PLTGOT)" identifier (argument_list "(param_2,0x1c487,&__DT_PLTGOT)" ( identifier , number_literal , (pointer_expression "&__DT_PLTGOT" & identifier) ))) ;) (if_statement "if ((unaff_retaddr != (char *)0x0) && (*unaff_retaddr != '\0')) {\n    puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2);\n    __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr);\n    if (param_3 != -1) {\n      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);\n      return;\n    }\n  }" if (parenthesized_expression "((unaff_retaddr != (char *)0x0) && (*unaff_retaddr != '\0'))" ( (binary_expression "(unaff_retaddr != (char *)0x0) && (*unaff_retaddr != '\0')" (parenthesized_expression "(unaff_retaddr != (char *)0x0)" ( (binary_expression "unaff_retaddr != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*unaff_retaddr != '\0')" ( (binary_expression "*unaff_retaddr != '\0'" (pointer_expression "*unaff_retaddr" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2);\n    __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr);\n    if (param_3 != -1) {\n      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);\n      return;\n    }\n  }" { (expression_statement "puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2);" (assignment_expression "puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2)" identifier = (pointer_expression "*(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2)" * (cast_expression "(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_0007c8cd + (int)ppuVar2)" ( (binary_expression "&DAT_0007c8cd + (int)ppuVar2" (pointer_expression "&DAT_0007c8cd" & identifier) + (cast_expression "(int)ppuVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ))))) ;) (expression_statement "__fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr);" (call_expression "__fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr)" identifier (argument_list "(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr)" ( (pointer_expression "*puVar1" * identifier) , number_literal , (binary_expression "(int)ppuVar2 + 0x5db79" (cast_expression "(int)ppuVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) , identifier ))) ;) (if_statement "if (param_3 != -1) {\n      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);\n      return;\n    }" if (parenthesized_expression "(param_3 != -1)" ( (binary_expression "param_3 != -1" identifier != number_literal) )) (compound_statement "{\n      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);\n      return;\n    }" { (expression_statement "__fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);" (call_expression "__fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3)" identifier (argument_list "(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3)" ( (pointer_expression "*puVar1" * identifier) , number_literal , (binary_expression "(int)ppuVar2 + 0x5db7d" (cast_expression "(int)ppuVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) , identifier ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , LIT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , LIT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) , IDENT ))) ;) (return_statement return ;) })) })) (return_statement return ;) })))
(function_definition "void __regparm2 __gmp_assert_header(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 *puVar1;\n  undefined **ppuVar2;\n  char *unaff_retaddr;\n  \n  ppuVar2 = &__DT_PLTGOT;\n  entry(param_2,0x1c487,&__DT_PLTGOT);\n  if ((unaff_retaddr != (char *)0x0) && (*unaff_retaddr != '\0')) {\n    puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2);\n    __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr);\n    if (param_3 != -1) {\n      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "__gmp_assert_header(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "__gmp_assert_header") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined **ppuVar2;\n  char *unaff_retaddr;\n  \n  ppuVar2 = &__DT_PLTGOT;\n  entry(param_2,0x1c487,&__DT_PLTGOT);\n  if ((unaff_retaddr != (char *)0x0) && (*unaff_retaddr != '\0')) {\n    puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2);\n    __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr);\n    if (param_3 != -1) {\n      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined **ppuVar2;" (type_identifier "undefined") (pointer_declarator "**ppuVar2" (* "*") (pointer_declarator "*ppuVar2" (* "*") (identifier "ppuVar2"))) (; ";")) (declaration "char *unaff_retaddr;" (primitive_type "char") (pointer_declarator "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (; ";")) (expression_statement "ppuVar2 = &__DT_PLTGOT;" (assignment_expression "ppuVar2 = &__DT_PLTGOT" (identifier "ppuVar2") (= "=") (pointer_expression "&__DT_PLTGOT" (& "&") (identifier "__DT_PLTGOT"))) (; ";")) (expression_statement "entry(param_2,0x1c487,&__DT_PLTGOT);" (call_expression "entry(param_2,0x1c487,&__DT_PLTGOT)" (identifier "entry") (argument_list "(param_2,0x1c487,&__DT_PLTGOT)" (( "(") (identifier "param_2") (, ",") (number_literal "0x1c487") (, ",") (pointer_expression "&__DT_PLTGOT" (& "&") (identifier "__DT_PLTGOT")) () ")"))) (; ";")) (if_statement "if ((unaff_retaddr != (char *)0x0) && (*unaff_retaddr != '\0')) {\n    puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2);\n    __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr);\n    if (param_3 != -1) {\n      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);\n      return;\n    }\n  }" (if "if") (parenthesized_expression "((unaff_retaddr != (char *)0x0) && (*unaff_retaddr != '\0'))" (( "(") (binary_expression "(unaff_retaddr != (char *)0x0) && (*unaff_retaddr != '\0')" (parenthesized_expression "(unaff_retaddr != (char *)0x0)" (( "(") (binary_expression "unaff_retaddr != (char *)0x0" (identifier "unaff_retaddr") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*unaff_retaddr != '\0')" (( "(") (binary_expression "*unaff_retaddr != '\0'" (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2);\n    __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr);\n    if (param_3 != -1) {\n      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);\n      return;\n    }\n  }" ({ "{") (expression_statement "puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2);" (assignment_expression "puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2)" (* "*") (cast_expression "(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&DAT_0007c8cd + (int)ppuVar2)" (( "(") (binary_expression "&DAT_0007c8cd + (int)ppuVar2" (pointer_expression "&DAT_0007c8cd" (& "&") (identifier "DAT_0007c8cd")) (+ "+") (cast_expression "(int)ppuVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "ppuVar2"))) () ")"))))) (; ";")) (expression_statement "__fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr);" (call_expression "__fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr)" (identifier "__fprintf_chk") (argument_list "(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr)" (( "(") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (, ",") (number_literal "1") (, ",") (binary_expression "(int)ppuVar2 + 0x5db79" (cast_expression "(int)ppuVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "ppuVar2")) (+ "+") (number_literal "0x5db79")) (, ",") (identifier "unaff_retaddr") () ")"))) (; ";")) (if_statement "if (param_3 != -1) {\n      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);\n      return;\n    }" (if "if") (parenthesized_expression "(param_3 != -1)" (( "(") (binary_expression "param_3 != -1" (identifier "param_3") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);\n      return;\n    }" ({ "{") (expression_statement "__fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);" (call_expression "__fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3)" (identifier "__fprintf_chk") (argument_list "(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3)" (( "(") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (, ",") (number_literal "1") (, ",") (binary_expression "(int)ppuVar2 + 0x5db7d" (cast_expression "(int)ppuVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "ppuVar2")) (+ "+") (number_literal "0x5db7d")) (, ",") (identifier "param_3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Switch with 1 destination removed at 0x0001bc90 */
/* WARNING: Unknown calling convention */

void function_1(char *var_1,int var_3)

{
  type_1 *puVar1;
  type_2 uVar2;
  type_1 **ppuVar3;
  
  puVar1 = PTR_stderr_00098d54;
  ppuVar3 = &_GLOBAL_OFFSET_TABLE_;
  uVar2 = 0x1c487;
  if (((var_1 != (char *)0x0) && (*var_1 != '\0')) &&
     (var_2(*(type_2 *)PTR_stderr_00098d54,1,&DAT_0007a000,var_1,0x1c487,
                    &_GLOBAL_OFFSET_TABLE_), var_3 != -1)) {
    var_2(*(type_2 *)puVar1,1,&DAT_0007a004,var_3,uVar2,ppuVar3);
    return;
  }
  return;
}


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

/* WARNING: Switch with 1 destination removed at 0x0001bc90 */

void __regparm2 MASKED(undefined4 param_1,undefined4 param_2,int param_3)

{
  undefined4 *puVar1;
  undefined **ppuVar2;
  char *unaff_retaddr;
  
  ppuVar2 = &__DT_PLTGOT;
  entry(param_2,0x1c487,&__DT_PLTGOT);
  if ((unaff_retaddr != (char *)0x0) && (*unaff_retaddr != '\0')) {
    puVar1 = *(undefined4 **)(&DAT_0007c8cd + (int)ppuVar2);
    __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db79,unaff_retaddr);
    if (param_3 != -1) {
      __fprintf_chk(*puVar1,1,(int)ppuVar2 + 0x5db7d,param_3);
      return;
    }
  }
  return;
}

