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

void fontsel_ok(GtkButton *button,gpointer data)

{
  void *pvVar1;
  undefined4 uVar2;
  unifontsel *fontsel;
  char *ptr;
  
  uVar2 = g_type_check_instance_cast(button,0x50);
  fontsel = (unifontsel *)g_object_get_data(uVar2,"user-data");
  pvVar1 = fontsel->user_data;
  ptr = unifontsel_get_name(fontsel);
  if (ptr != (char *)0x0) {
    uVar2 = gtk_entry_get_type();
    uVar2 = g_type_check_instance_cast(*(undefined4 *)((int)pvVar1 + 0x10),uVar2);
    gtk_entry_set_text(uVar2,ptr);
    safefree(ptr);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok");
}



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

void FUN_00043c00(undefined4 param_1)

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  int iVar4;
  
  uVar2 = g_type_check_instance_cast(param_1,0x50);
  piVar3 = (int *)g_object_get_data(uVar2,"user-data");
  iVar1 = *piVar3;
  iVar4 = FUN_0004eb80(piVar3);
  if (iVar4 != 0) {
    uVar2 = gtk_entry_get_type();
    uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2);
    gtk_entry_set_text(uVar2,iVar4);
    FUN_0002c6a0(iVar4);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok");
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001a360
ADD EBX,0x5dbdc
SUB ESP,0x8
PUSH 0x50
PUSH dword ptr [ESP + 0x1c]
CALL 0x00018580
LEA EDX,[EBX + 0xfffd6063]
POP ESI
POP EDI
PUSH EDX
PUSH EAX
CALL 0x00019e20
MOV EDI,dword ptr [EAX]
MOV dword ptr [ESP],EAX
CALL 0x0004eb80
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00043c67
MOV ESI,EAX
CALL 0x00019920
SUB ESP,0x8
PUSH EAX
PUSH dword ptr [EDI + 0x10]
CALL 0x00018580
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x00019490
MOV dword ptr [ESP],ESI
CALL 0x0002c6a0
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
LEA EAX,[EBX + 0xfffd7360]
PUSH EAX
LEA EAX,[EBX + 0xfffd607d]
PUSH 0x688
PUSH EAX
LEA EAX,[EBX + 0xfffce36b]
PUSH EAX
CALL 0x00019e90
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00043c00(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  \n  uVar2 = g_type_check_instance_cast(param_1,0x50);\n  piVar3 = (int *)g_object_get_data(uVar2,"user-data");\n  iVar1 = *piVar3;\n  iVar4 = FUN_0004eb80(piVar3);\n  if (iVar4 != 0) {\n    uVar2 = gtk_entry_get_type();\n    uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2);\n    gtk_entry_set_text(uVar2,iVar4);\n    FUN_0002c6a0(iVar4);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok");\n}\n\n" comment (function_definition "void FUN_00043c00(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  \n  uVar2 = g_type_check_instance_cast(param_1,0x50);\n  piVar3 = (int *)g_object_get_data(uVar2,"user-data");\n  iVar1 = *piVar3;\n  iVar4 = FUN_0004eb80(piVar3);\n  if (iVar4 != 0) {\n    uVar2 = gtk_entry_get_type();\n    uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2);\n    gtk_entry_set_text(uVar2,iVar4);\n    FUN_0002c6a0(iVar4);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok");\n}" primitive_type (function_declarator "FUN_00043c00(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  \n  uVar2 = g_type_check_instance_cast(param_1,0x50);\n  piVar3 = (int *)g_object_get_data(uVar2,"user-data");\n  iVar1 = *piVar3;\n  iVar4 = FUN_0004eb80(piVar3);\n  if (iVar4 != 0) {\n    uVar2 = gtk_entry_get_type();\n    uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2);\n    gtk_entry_set_text(uVar2,iVar4);\n    FUN_0002c6a0(iVar4);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "uVar2 = g_type_check_instance_cast(param_1,0x50);" (assignment_expression "uVar2 = g_type_check_instance_cast(param_1,0x50)" identifier = (call_expression "g_type_check_instance_cast(param_1,0x50)" identifier (argument_list "(param_1,0x50)" ( identifier , number_literal )))) ;) (expression_statement "piVar3 = (int *)g_object_get_data(uVar2,"user-data");" (assignment_expression "piVar3 = (int *)g_object_get_data(uVar2,"user-data")" identifier = (cast_expression "(int *)g_object_get_data(uVar2,"user-data")" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "g_object_get_data(uVar2,"user-data")" identifier (argument_list "(uVar2,"user-data")" ( identifier , (string_literal ""user-data"" " string_content ") ))))) ;) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "iVar4 = FUN_0004eb80(piVar3);" (assignment_expression "iVar4 = FUN_0004eb80(piVar3)" identifier = (call_expression "FUN_0004eb80(piVar3)" identifier (argument_list "(piVar3)" ( identifier )))) ;) (if_statement "if (iVar4 != 0) {\n    uVar2 = gtk_entry_get_type();\n    uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2);\n    gtk_entry_set_text(uVar2,iVar4);\n    FUN_0002c6a0(iVar4);\n    return;\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = gtk_entry_get_type();\n    uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2);\n    gtk_entry_set_text(uVar2,iVar4);\n    FUN_0002c6a0(iVar4);\n    return;\n  }" { (expression_statement "uVar2 = gtk_entry_get_type();" (assignment_expression "uVar2 = gtk_entry_get_type()" identifier = (call_expression "gtk_entry_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2);" (assignment_expression "uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2)" identifier = (call_expression "g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2)" identifier (argument_list "(*(undefined4 *)(iVar1 + 0x10),uVar2)" ( (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "gtk_entry_set_text(uVar2,iVar4);" (call_expression "gtk_entry_set_text(uVar2,iVar4)" identifier (argument_list "(uVar2,iVar4)" ( identifier , identifier ))) ;) (expression_statement "FUN_0002c6a0(iVar4);" (call_expression "FUN_0002c6a0(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok");" (call_expression "__assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok")" identifier (argument_list "("name","unix/gtkdlg.c",0x688,"fontsel_ok")" ( (string_literal ""name"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""fontsel_ok"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid fontsel_ok(GtkButton *button,gpointer data)\n\n{\n  void *pvVar1;\n  undefined4 uVar2;\n  unifontsel *fontsel;\n  char *ptr;\n  \n  uVar2 = g_type_check_instance_cast(button,0x50);\n  fontsel = (unifontsel *)g_object_get_data(uVar2,"user-data");\n  pvVar1 = fontsel->user_data;\n  ptr = unifontsel_get_name(fontsel);\n  if (ptr != (char *)0x0) {\n    uVar2 = gtk_entry_get_type();\n    uVar2 = g_type_check_instance_cast(*(undefined4 *)((int)pvVar1 + 0x10),uVar2);\n    gtk_entry_set_text(uVar2,ptr);\n    safefree(ptr);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok");\n}\n\n" comment comment (function_definition "void fontsel_ok(GtkButton *button,gpointer data)\n\n{\n  void *pvVar1;\n  undefined4 uVar2;\n  unifontsel *fontsel;\n  char *ptr;\n  \n  uVar2 = g_type_check_instance_cast(button,0x50);\n  fontsel = (unifontsel *)g_object_get_data(uVar2,"user-data");\n  pvVar1 = fontsel->user_data;\n  ptr = unifontsel_get_name(fontsel);\n  if (ptr != (char *)0x0) {\n    uVar2 = gtk_entry_get_type();\n    uVar2 = g_type_check_instance_cast(*(undefined4 *)((int)pvVar1 + 0x10),uVar2);\n    gtk_entry_set_text(uVar2,ptr);\n    safefree(ptr);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok");\n}" primitive_type (function_declarator "fontsel_ok(GtkButton *button,gpointer data)" identifier (parameter_list "(GtkButton *button,gpointer data)" ( (parameter_declaration "GtkButton *button" type_identifier (pointer_declarator "*button" * identifier)) , (parameter_declaration "gpointer data" type_identifier identifier) ))) (compound_statement "{\n  void *pvVar1;\n  undefined4 uVar2;\n  unifontsel *fontsel;\n  char *ptr;\n  \n  uVar2 = g_type_check_instance_cast(button,0x50);\n  fontsel = (unifontsel *)g_object_get_data(uVar2,"user-data");\n  pvVar1 = fontsel->user_data;\n  ptr = unifontsel_get_name(fontsel);\n  if (ptr != (char *)0x0) {\n    uVar2 = gtk_entry_get_type();\n    uVar2 = g_type_check_instance_cast(*(undefined4 *)((int)pvVar1 + 0x10),uVar2);\n    gtk_entry_set_text(uVar2,ptr);\n    safefree(ptr);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok");\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "unifontsel *fontsel;" type_identifier (pointer_declarator "*fontsel" * identifier) ;) (declaration "char *ptr;" primitive_type (pointer_declarator "*ptr" * identifier) ;) (expression_statement "uVar2 = g_type_check_instance_cast(button,0x50);" (assignment_expression "uVar2 = g_type_check_instance_cast(button,0x50)" identifier = (call_expression "g_type_check_instance_cast(button,0x50)" identifier (argument_list "(button,0x50)" ( identifier , number_literal )))) ;) (expression_statement "fontsel = (unifontsel *)g_object_get_data(uVar2,"user-data");" (assignment_expression "fontsel = (unifontsel *)g_object_get_data(uVar2,"user-data")" identifier = (cast_expression "(unifontsel *)g_object_get_data(uVar2,"user-data")" ( (type_descriptor "unifontsel *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "g_object_get_data(uVar2,"user-data")" identifier (argument_list "(uVar2,"user-data")" ( identifier , (string_literal ""user-data"" " string_content ") ))))) ;) (expression_statement "pvVar1 = fontsel->user_data;" (assignment_expression "pvVar1 = fontsel->user_data" identifier = (field_expression "fontsel->user_data" identifier -> field_identifier)) ;) (expression_statement "ptr = unifontsel_get_name(fontsel);" (assignment_expression "ptr = unifontsel_get_name(fontsel)" identifier = (call_expression "unifontsel_get_name(fontsel)" identifier (argument_list "(fontsel)" ( identifier )))) ;) (if_statement "if (ptr != (char *)0x0) {\n    uVar2 = gtk_entry_get_type();\n    uVar2 = g_type_check_instance_cast(*(undefined4 *)((int)pvVar1 + 0x10),uVar2);\n    gtk_entry_set_text(uVar2,ptr);\n    safefree(ptr);\n    return;\n  }" if (parenthesized_expression "(ptr != (char *)0x0)" ( (binary_expression "ptr != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = gtk_entry_get_type();\n    uVar2 = g_type_check_instance_cast(*(undefined4 *)((int)pvVar1 + 0x10),uVar2);\n    gtk_entry_set_text(uVar2,ptr);\n    safefree(ptr);\n    return;\n  }" { (expression_statement "uVar2 = gtk_entry_get_type();" (assignment_expression "uVar2 = gtk_entry_get_type()" identifier = (call_expression "gtk_entry_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(*(undefined4 *)((int)pvVar1 + 0x10),uVar2);" (assignment_expression "uVar2 = g_type_check_instance_cast(*(undefined4 *)((int)pvVar1 + 0x10),uVar2)" identifier = (call_expression "g_type_check_instance_cast(*(undefined4 *)((int)pvVar1 + 0x10),uVar2)" identifier (argument_list "(*(undefined4 *)((int)pvVar1 + 0x10),uVar2)" ( (pointer_expression "*(undefined4 *)((int)pvVar1 + 0x10)" * (cast_expression "(undefined4 *)((int)pvVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 0x10)" ( (binary_expression "(int)pvVar1 + 0x10" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , identifier )))) ;) (expression_statement "gtk_entry_set_text(uVar2,ptr);" (call_expression "gtk_entry_set_text(uVar2,ptr)" identifier (argument_list "(uVar2,ptr)" ( identifier , identifier ))) ;) (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok");" (call_expression "__assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok")" identifier (argument_list "("name","unix/gtkdlg.c",0x688,"fontsel_ok")" ( (string_literal ""name"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""fontsel_ok"" " string_content ") ))) ;) })))
(translation_unit "void FUN_00043c00(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  \n  uVar2 = g_type_check_instance_cast(param_1,0x50);\n  piVar3 = (int *)g_object_get_data(uVar2,"user-data");\n  iVar1 = *piVar3;\n  iVar4 = FUN_0004eb80(piVar3);\n  if (iVar4 != 0) {\n    uVar2 = gtk_entry_get_type();\n    uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2);\n    gtk_entry_set_text(uVar2,iVar4);\n    FUN_0002c6a0(iVar4);\n    return;\n  }\n                    \n  __assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok");\n}\n\n" (function_definition "void FUN_00043c00(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  \n  uVar2 = g_type_check_instance_cast(param_1,0x50);\n  piVar3 = (int *)g_object_get_data(uVar2,"user-data");\n  iVar1 = *piVar3;\n  iVar4 = FUN_0004eb80(piVar3);\n  if (iVar4 != 0) {\n    uVar2 = gtk_entry_get_type();\n    uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2);\n    gtk_entry_set_text(uVar2,iVar4);\n    FUN_0002c6a0(iVar4);\n    return;\n  }\n                    \n  __assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok");\n}" primitive_type (function_declarator "FUN_00043c00(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  \n  uVar2 = g_type_check_instance_cast(param_1,0x50);\n  piVar3 = (int *)g_object_get_data(uVar2,"user-data");\n  iVar1 = *piVar3;\n  iVar4 = FUN_0004eb80(piVar3);\n  if (iVar4 != 0) {\n    uVar2 = gtk_entry_get_type();\n    uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2);\n    gtk_entry_set_text(uVar2,iVar4);\n    FUN_0002c6a0(iVar4);\n    return;\n  }\n                    \n  __assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "uVar2 = g_type_check_instance_cast(param_1,0x50);" (assignment_expression "uVar2 = g_type_check_instance_cast(param_1,0x50)" identifier = (call_expression "g_type_check_instance_cast(param_1,0x50)" identifier (argument_list "(param_1,0x50)" ( identifier , number_literal )))) ;) (expression_statement "piVar3 = (int *)g_object_get_data(uVar2,"user-data");" (assignment_expression "piVar3 = (int *)g_object_get_data(uVar2,"user-data")" identifier = (cast_expression "(int *)g_object_get_data(uVar2,"user-data")" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "g_object_get_data(uVar2,"user-data")" identifier (argument_list "(uVar2,"user-data")" ( identifier , (string_literal ""user-data"" " string_content ") ))))) ;) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "iVar4 = FUN_0004eb80(piVar3);" (assignment_expression "iVar4 = FUN_0004eb80(piVar3)" identifier = (call_expression "FUN_0004eb80(piVar3)" identifier (argument_list "(piVar3)" ( identifier )))) ;) (if_statement "if (iVar4 != 0) {\n    uVar2 = gtk_entry_get_type();\n    uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2);\n    gtk_entry_set_text(uVar2,iVar4);\n    FUN_0002c6a0(iVar4);\n    return;\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = gtk_entry_get_type();\n    uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2);\n    gtk_entry_set_text(uVar2,iVar4);\n    FUN_0002c6a0(iVar4);\n    return;\n  }" { (expression_statement "uVar2 = gtk_entry_get_type();" (assignment_expression "uVar2 = gtk_entry_get_type()" identifier = (call_expression "gtk_entry_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2);" (assignment_expression "uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2)" identifier = (call_expression "g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2)" identifier (argument_list "(*(undefined4 *)(iVar1 + 0x10),uVar2)" ( (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "gtk_entry_set_text(uVar2,iVar4);" (call_expression "gtk_entry_set_text(uVar2,iVar4)" identifier (argument_list "(uVar2,iVar4)" ( identifier , identifier ))) ;) (expression_statement "FUN_0002c6a0(iVar4);" (call_expression "FUN_0002c6a0(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "__assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok");" (call_expression "__assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok")" identifier (argument_list "("name","unix/gtkdlg.c",0x688,"fontsel_ok")" ( (string_literal ""name"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""fontsel_ok"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "void FUN_00043c00(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  \n  uVar2 = g_type_check_instance_cast(param_1,0x50);\n  piVar3 = (int *)g_object_get_data(uVar2,"user-data");\n  iVar1 = *piVar3;\n  iVar4 = FUN_0004eb80(piVar3);\n  if (iVar4 != 0) {\n    uVar2 = gtk_entry_get_type();\n    uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2);\n    gtk_entry_set_text(uVar2,iVar4);\n    FUN_0002c6a0(iVar4);\n    return;\n  }\n                    \n  __assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok");\n}" (primitive_type "void") (function_declarator "FUN_00043c00(undefined4 param_1)" (identifier "FUN_00043c00") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  \n  uVar2 = g_type_check_instance_cast(param_1,0x50);\n  piVar3 = (int *)g_object_get_data(uVar2,"user-data");\n  iVar1 = *piVar3;\n  iVar4 = FUN_0004eb80(piVar3);\n  if (iVar4 != 0) {\n    uVar2 = gtk_entry_get_type();\n    uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2);\n    gtk_entry_set_text(uVar2,iVar4);\n    FUN_0002c6a0(iVar4);\n    return;\n  }\n                    \n  __assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok");\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "uVar2 = g_type_check_instance_cast(param_1,0x50);" (assignment_expression "uVar2 = g_type_check_instance_cast(param_1,0x50)" (identifier "uVar2") (= "=") (call_expression "g_type_check_instance_cast(param_1,0x50)" (identifier "g_type_check_instance_cast") (argument_list "(param_1,0x50)" (( "(") (identifier "param_1") (, ",") (number_literal "0x50") () ")")))) (; ";")) (expression_statement "piVar3 = (int *)g_object_get_data(uVar2,"user-data");" (assignment_expression "piVar3 = (int *)g_object_get_data(uVar2,"user-data")" (identifier "piVar3") (= "=") (cast_expression "(int *)g_object_get_data(uVar2,"user-data")" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "g_object_get_data(uVar2,"user-data")" (identifier "g_object_get_data") (argument_list "(uVar2,"user-data")" (( "(") (identifier "uVar2") (, ",") (string_literal ""user-data"" (" """) (string_content "user-data") (" """)) () ")"))))) (; ";")) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" (identifier "iVar1") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (expression_statement "iVar4 = FUN_0004eb80(piVar3);" (assignment_expression "iVar4 = FUN_0004eb80(piVar3)" (identifier "iVar4") (= "=") (call_expression "FUN_0004eb80(piVar3)" (identifier "FUN_0004eb80") (argument_list "(piVar3)" (( "(") (identifier "piVar3") () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n    uVar2 = gtk_entry_get_type();\n    uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2);\n    gtk_entry_set_text(uVar2,iVar4);\n    FUN_0002c6a0(iVar4);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = gtk_entry_get_type();\n    uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2);\n    gtk_entry_set_text(uVar2,iVar4);\n    FUN_0002c6a0(iVar4);\n    return;\n  }" ({ "{") (expression_statement "uVar2 = gtk_entry_get_type();" (assignment_expression "uVar2 = gtk_entry_get_type()" (identifier "uVar2") (= "=") (call_expression "gtk_entry_get_type()" (identifier "gtk_entry_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2);" (assignment_expression "uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2)" (identifier "uVar2") (= "=") (call_expression "g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2)" (identifier "g_type_check_instance_cast") (argument_list "(*(undefined4 *)(iVar1 + 0x10),uVar2)" (( "(") (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "gtk_entry_set_text(uVar2,iVar4);" (call_expression "gtk_entry_set_text(uVar2,iVar4)" (identifier "gtk_entry_set_text") (argument_list "(uVar2,iVar4)" (( "(") (identifier "uVar2") (, ",") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "FUN_0002c6a0(iVar4);" (call_expression "FUN_0002c6a0(iVar4)" (identifier "FUN_0002c6a0") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok");" (call_expression "__assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok")" (identifier "__assert_fail") (argument_list "("name","unix/gtkdlg.c",0x688,"fontsel_ok")" (( "(") (string_literal ""name"" (" """) (string_content "name") (" """)) (, ",") (string_literal ""unix/gtkdlg.c"" (" """) (string_content "unix/gtkdlg.c") (" """)) (, ",") (number_literal "0x688") (, ",") (string_literal ""fontsel_ok"" (" """) (string_content "fontsel_ok") (" """)) () ")"))) (; ";")) (} "}")))

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

void function_1(type_1 *button,type_2 data)

{
  void *pvVar1;
  type_3 uVar2;
  type_4 *fontsel;
  char *var_4;
  
  uVar2 = var_1(button,0x50);
  fontsel = (type_4 *)var_2(uVar2,"user-data");
  pvVar1 = fontsel->user_data;
  var_4 = var_3(fontsel);
  if (var_4 != (char *)0x0) {
    uVar2 = var_5();
    uVar2 = var_1(*(type_3 *)((int)pvVar1 + 0x10),uVar2);
    var_6(uVar2,var_4);
    var_7(var_4);
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_8("name","unix/gtkdlg.c",0x688,"fontsel_ok");
}


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

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

void MASKED(undefined4 param_1)

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  int iVar4;
  
  uVar2 = g_type_check_instance_cast(param_1,0x50);
  piVar3 = (int *)g_object_get_data(uVar2,"user-data");
  iVar1 = *piVar3;
  iVar4 = FUN_0004eb80(piVar3);
  if (iVar4 != 0) {
    uVar2 = gtk_entry_get_type();
    uVar2 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + 0x10),uVar2);
    gtk_entry_set_text(uVar2,iVar4);
    FUN_0002c6a0(iVar4);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("name","unix/gtkdlg.c",0x688,"fontsel_ok");
}

