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

void dlg_editbox_set(control *ctrl,void *dlg,char *text)

{
  code *pcVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int iVar4;
  char *ptr;
  
                    /* WARNING: Load size is inaccurate */
  if (*dlg == (tree234 *)0x0) {
                    /* WARNING: Does not return */
    pcVar1 = (code *)invalidInstructionException();
    (*pcVar1)();
  }
  puVar2 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);
  if (*(int *)*puVar2 == 1) {
    iVar4 = puVar2[6];
    if (iVar4 == 0) {
      iVar4 = puVar2[4];
    }
    else {
      uVar3 = gtk_bin_get_type();
      uVar3 = g_type_check_instance_cast(iVar4,uVar3);
      iVar4 = gtk_bin_get_child(uVar3);
    }
    if (iVar4 != 0) {
      ptr = dupstr(text);
      uVar3 = gtk_entry_get_type();
      uVar3 = g_type_check_instance_cast(iVar4,uVar3);
      gtk_entry_set_text(uVar3,ptr);
      safefree(ptr);
      return;
    }
                    /* WARNING: Subroutine does not return */
    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set");
}



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

void FUN_0004b6f0(undefined4 param_1,int *param_2,undefined4 param_3)

{
  code *pcVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 uVar5;
  
  if (*param_2 == 0) {
                    /* WARNING: Does not return */
    pcVar1 = (code *)invalidInstructionException();
    (*pcVar1)();
  }
  puVar2 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);
  if (*(int *)*puVar2 == 1) {
    iVar4 = puVar2[6];
    if (iVar4 == 0) {
      iVar4 = puVar2[4];
    }
    else {
      uVar3 = gtk_bin_get_type();
      uVar3 = g_type_check_instance_cast(iVar4,uVar3);
      iVar4 = gtk_bin_get_child(uVar3);
    }
    if (iVar4 != 0) {
      uVar3 = FUN_0002d300(param_3);
      uVar5 = gtk_entry_get_type();
      uVar5 = g_type_check_instance_cast(iVar4,uVar5);
      gtk_entry_set_text(uVar5,uVar3);
      FUN_0002da80(uVar3);
      return;
    }
                    /* WARNING: Subroutine does not return */
    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set");
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EAX,dword ptr [ESP + 0x14]
CALL 0x0001b410
ADD EBX,0x650a8
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x0001b0d2
SUB ESP,0x4
LEA EDX,[EBX + 0xfff99b9c]
PUSH EDX
PUSH dword ptr [ESP + 0x18]
PUSH EAX
CALL 0x00047980
ADD ESP,0x10
MOV EDX,dword ptr [EAX]
CMP dword ptr [EDX],0x1
JNZ 0x0004b78d
MOV ESI,dword ptr [EAX + 0x18]
TEST ESI,ESI
JZ 0x0004b788
CALL 0x0001a2e0
SUB ESP,0x8
PUSH EAX
PUSH ESI
CALL 0x00019590
MOV dword ptr [ESP],EAX
CALL 0x0001a500
ADD ESP,0x10
MOV EDI,EAX
TEST EDI,EDI
JZ 0x0004b7ac
SUB ESP,0xc
PUSH dword ptr [ESP + 0x24]
CALL 0x0002d300
MOV ESI,EAX
CALL 0x0001a960
POP EDX
POP ECX
PUSH EAX
PUSH EDI
CALL 0x00019590
POP EDI
POP EDX
PUSH ESI
PUSH EAX
CALL 0x0001a4b0
MOV dword ptr [ESP],ESI
CALL 0x0002da80
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
MOV EDI,dword ptr [EAX + 0x10]
JMP 0x0004b74d
LEA EAX,[EBX + 0xfffd355c]
PUSH EAX
LEA EAX,[EBX + 0xfffd213d]
PUSH 0x131
PUSH EAX
LEA EAX,[EBX + 0xfffd2460]
PUSH EAX
CALL 0x0001af20
LEA EAX,[EBX + 0xfffd355c]
PUSH EAX
LEA EAX,[EBX + 0xfffd213d]
PUSH 0x13a
PUSH EAX
LEA EAX,[EBX + 0xfffd21f9]
PUSH EAX
CALL 0x0001af20
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0004b6f0(undefined4 param_1,int *param_2,undefined4 param_3)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);\n  if (*(int *)*puVar2 == 1) {\n    iVar4 = puVar2[6];\n    if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }\n    if (iVar4 != 0) {\n      uVar3 = FUN_0002d300(param_3);\n      uVar5 = gtk_entry_get_type();\n      uVar5 = g_type_check_instance_cast(iVar4,uVar5);\n      gtk_entry_set_text(uVar5,uVar3);\n      FUN_0002da80(uVar3);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set");\n}\n\n" comment (function_definition "void FUN_0004b6f0(undefined4 param_1,int *param_2,undefined4 param_3)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);\n  if (*(int *)*puVar2 == 1) {\n    iVar4 = puVar2[6];\n    if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }\n    if (iVar4 != 0) {\n      uVar3 = FUN_0002d300(param_3);\n      uVar5 = gtk_entry_get_type();\n      uVar5 = g_type_check_instance_cast(iVar4,uVar5);\n      gtk_entry_set_text(uVar5,uVar3);\n      FUN_0002da80(uVar3);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set");\n}" primitive_type (function_declarator "FUN_0004b6f0(undefined4 param_1,int *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);\n  if (*(int *)*puVar2 == 1) {\n    iVar4 = puVar2[6];\n    if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }\n    if (iVar4 != 0) {\n      uVar3 = FUN_0002d300(param_3);\n      uVar5 = gtk_entry_get_type();\n      uVar5 = g_type_check_instance_cast(iVar4,uVar5);\n      gtk_entry_set_text(uVar5,uVar3);\n      FUN_0002da80(uVar3);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set");\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (if_statement "if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" if (parenthesized_expression "(*param_2 == 0)" ( (binary_expression "*param_2 == 0" (pointer_expression "*param_2" * identifier) == number_literal) )) (compound_statement "{\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" { comment (expression_statement "pcVar1 = (code *)invalidInstructionException();" (assignment_expression "pcVar1 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar1)();" (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar2 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);" (assignment_expression "puVar2 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340)" identifier = (cast_expression "(undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00047980(*param_2,param_1,FUN_0004a340)" identifier (argument_list "(*param_2,param_1,FUN_0004a340)" ( (pointer_expression "*param_2" * identifier) , identifier , identifier ))))) ;) (if_statement "if (*(int *)*puVar2 == 1) {\n    iVar4 = puVar2[6];\n    if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }\n    if (iVar4 != 0) {\n      uVar3 = FUN_0002d300(param_3);\n      uVar5 = gtk_entry_get_type();\n      uVar5 = g_type_check_instance_cast(iVar4,uVar5);\n      gtk_entry_set_text(uVar5,uVar3);\n      FUN_0002da80(uVar3);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");\n  }" if (parenthesized_expression "(*(int *)*puVar2 == 1)" ( (binary_expression "*(int *)*puVar2 == 1" (pointer_expression "*(int *)*puVar2" * (cast_expression "(int *)*puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) == number_literal) )) (compound_statement "{\n    iVar4 = puVar2[6];\n    if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }\n    if (iVar4 != 0) {\n      uVar3 = FUN_0002d300(param_3);\n      uVar5 = gtk_entry_get_type();\n      uVar5 = g_type_check_instance_cast(iVar4,uVar5);\n      gtk_entry_set_text(uVar5,uVar3);\n      FUN_0002da80(uVar3);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");\n  }" { (expression_statement "iVar4 = puVar2[6];" (assignment_expression "iVar4 = puVar2[6]" identifier = (subscript_expression "puVar2[6]" identifier [ number_literal ])) ;) (if_statement "if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = puVar2[4];\n    }" { (expression_statement "iVar4 = puVar2[4];" (assignment_expression "iVar4 = puVar2[4]" identifier = (subscript_expression "puVar2[4]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }" else (compound_statement "{\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }" { (expression_statement "uVar3 = gtk_bin_get_type();" (assignment_expression "uVar3 = gtk_bin_get_type()" identifier = (call_expression "gtk_bin_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = g_type_check_instance_cast(iVar4,uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(iVar4,uVar3)" identifier = (call_expression "g_type_check_instance_cast(iVar4,uVar3)" identifier (argument_list "(iVar4,uVar3)" ( identifier , identifier )))) ;) (expression_statement "iVar4 = gtk_bin_get_child(uVar3);" (assignment_expression "iVar4 = gtk_bin_get_child(uVar3)" identifier = (call_expression "gtk_bin_get_child(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) }))) (if_statement "if (iVar4 != 0) {\n      uVar3 = FUN_0002d300(param_3);\n      uVar5 = gtk_entry_get_type();\n      uVar5 = g_type_check_instance_cast(iVar4,uVar5);\n      gtk_entry_set_text(uVar5,uVar3);\n      FUN_0002da80(uVar3);\n      return;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar3 = FUN_0002d300(param_3);\n      uVar5 = gtk_entry_get_type();\n      uVar5 = g_type_check_instance_cast(iVar4,uVar5);\n      gtk_entry_set_text(uVar5,uVar3);\n      FUN_0002da80(uVar3);\n      return;\n    }" { (expression_statement "uVar3 = FUN_0002d300(param_3);" (assignment_expression "uVar3 = FUN_0002d300(param_3)" identifier = (call_expression "FUN_0002d300(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "uVar5 = gtk_entry_get_type();" (assignment_expression "uVar5 = gtk_entry_get_type()" identifier = (call_expression "gtk_entry_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar5 = g_type_check_instance_cast(iVar4,uVar5);" (assignment_expression "uVar5 = g_type_check_instance_cast(iVar4,uVar5)" identifier = (call_expression "g_type_check_instance_cast(iVar4,uVar5)" identifier (argument_list "(iVar4,uVar5)" ( identifier , identifier )))) ;) (expression_statement "gtk_entry_set_text(uVar5,uVar3);" (call_expression "gtk_entry_set_text(uVar5,uVar3)" identifier (argument_list "(uVar5,uVar3)" ( identifier , identifier ))) ;) (expression_statement "FUN_0002da80(uVar3);" (call_expression "FUN_0002da80(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");" (call_expression "__assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set")" identifier (argument_list "("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set")" ( (string_literal ""entry != NULL"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_editbox_set"" " string_content ") ))) ;) })) comment (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set")" ( (string_literal ""uc->ctrl->generic.type == CTRL_EDITBOX"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_editbox_set"" " 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 dlg_editbox_set(control *ctrl,void *dlg,char *text)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *ptr;\n  \n                    /* WARNING: Load size is inaccurate */\n  if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);\n  if (*(int *)*puVar2 == 1) {\n    iVar4 = puVar2[6];\n    if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }\n    if (iVar4 != 0) {\n      ptr = dupstr(text);\n      uVar3 = gtk_entry_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      gtk_entry_set_text(uVar3,ptr);\n      safefree(ptr);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set");\n}\n\n" comment comment (function_definition "void dlg_editbox_set(control *ctrl,void *dlg,char *text)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *ptr;\n  \n                    /* WARNING: Load size is inaccurate */\n  if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);\n  if (*(int *)*puVar2 == 1) {\n    iVar4 = puVar2[6];\n    if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }\n    if (iVar4 != 0) {\n      ptr = dupstr(text);\n      uVar3 = gtk_entry_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      gtk_entry_set_text(uVar3,ptr);\n      safefree(ptr);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set");\n}" primitive_type (function_declarator "dlg_editbox_set(control *ctrl,void *dlg,char *text)" identifier (parameter_list "(control *ctrl,void *dlg,char *text)" ( (parameter_declaration "control *ctrl" type_identifier (pointer_declarator "*ctrl" * identifier)) , (parameter_declaration "void *dlg" primitive_type (pointer_declarator "*dlg" * identifier)) , (parameter_declaration "char *text" primitive_type (pointer_declarator "*text" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *ptr;\n  \n                    /* WARNING: Load size is inaccurate */\n  if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);\n  if (*(int *)*puVar2 == 1) {\n    iVar4 = puVar2[6];\n    if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }\n    if (iVar4 != 0) {\n      ptr = dupstr(text);\n      uVar3 = gtk_entry_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      gtk_entry_set_text(uVar3,ptr);\n      safefree(ptr);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set");\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *ptr;" primitive_type (pointer_declarator "*ptr" * identifier) ;) comment (if_statement "if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" if (parenthesized_expression "(*dlg == (tree234 *)0x0)" ( (binary_expression "*dlg == (tree234 *)0x0" (pointer_expression "*dlg" * identifier) == (cast_expression "(tree234 *)0x0" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Does not return */\n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" { comment (expression_statement "pcVar1 = (code *)invalidInstructionException();" (assignment_expression "pcVar1 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar1)();" (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar2 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);" (assignment_expression "puVar2 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find)" identifier = (cast_expression "(undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "find234(*dlg,ctrl,uctrl_cmp_byctrl_find)" identifier (argument_list "(*dlg,ctrl,uctrl_cmp_byctrl_find)" ( (pointer_expression "*dlg" * identifier) , identifier , identifier ))))) ;) (if_statement "if (*(int *)*puVar2 == 1) {\n    iVar4 = puVar2[6];\n    if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }\n    if (iVar4 != 0) {\n      ptr = dupstr(text);\n      uVar3 = gtk_entry_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      gtk_entry_set_text(uVar3,ptr);\n      safefree(ptr);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");\n  }" if (parenthesized_expression "(*(int *)*puVar2 == 1)" ( (binary_expression "*(int *)*puVar2 == 1" (pointer_expression "*(int *)*puVar2" * (cast_expression "(int *)*puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) == number_literal) )) (compound_statement "{\n    iVar4 = puVar2[6];\n    if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }\n    if (iVar4 != 0) {\n      ptr = dupstr(text);\n      uVar3 = gtk_entry_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      gtk_entry_set_text(uVar3,ptr);\n      safefree(ptr);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");\n  }" { (expression_statement "iVar4 = puVar2[6];" (assignment_expression "iVar4 = puVar2[6]" identifier = (subscript_expression "puVar2[6]" identifier [ number_literal ])) ;) (if_statement "if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = puVar2[4];\n    }" { (expression_statement "iVar4 = puVar2[4];" (assignment_expression "iVar4 = puVar2[4]" identifier = (subscript_expression "puVar2[4]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }" else (compound_statement "{\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }" { (expression_statement "uVar3 = gtk_bin_get_type();" (assignment_expression "uVar3 = gtk_bin_get_type()" identifier = (call_expression "gtk_bin_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = g_type_check_instance_cast(iVar4,uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(iVar4,uVar3)" identifier = (call_expression "g_type_check_instance_cast(iVar4,uVar3)" identifier (argument_list "(iVar4,uVar3)" ( identifier , identifier )))) ;) (expression_statement "iVar4 = gtk_bin_get_child(uVar3);" (assignment_expression "iVar4 = gtk_bin_get_child(uVar3)" identifier = (call_expression "gtk_bin_get_child(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) }))) (if_statement "if (iVar4 != 0) {\n      ptr = dupstr(text);\n      uVar3 = gtk_entry_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      gtk_entry_set_text(uVar3,ptr);\n      safefree(ptr);\n      return;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      ptr = dupstr(text);\n      uVar3 = gtk_entry_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      gtk_entry_set_text(uVar3,ptr);\n      safefree(ptr);\n      return;\n    }" { (expression_statement "ptr = dupstr(text);" (assignment_expression "ptr = dupstr(text)" identifier = (call_expression "dupstr(text)" identifier (argument_list "(text)" ( identifier )))) ;) (expression_statement "uVar3 = gtk_entry_get_type();" (assignment_expression "uVar3 = gtk_entry_get_type()" identifier = (call_expression "gtk_entry_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = g_type_check_instance_cast(iVar4,uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(iVar4,uVar3)" identifier = (call_expression "g_type_check_instance_cast(iVar4,uVar3)" identifier (argument_list "(iVar4,uVar3)" ( identifier , identifier )))) ;) (expression_statement "gtk_entry_set_text(uVar3,ptr);" (call_expression "gtk_entry_set_text(uVar3,ptr)" identifier (argument_list "(uVar3,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("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");" (call_expression "__assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set")" identifier (argument_list "("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set")" ( (string_literal ""entry != NULL"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_editbox_set"" " string_content ") ))) ;) })) comment (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set")" ( (string_literal ""uc->ctrl->generic.type == CTRL_EDITBOX"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_editbox_set"" " string_content ") ))) ;) })))
(translation_unit "void FUN_0004b6f0(undefined4 param_1,int *param_2,undefined4 param_3)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);\n  if (*(int *)*puVar2 == 1) {\n    iVar4 = puVar2[6];\n    if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }\n    if (iVar4 != 0) {\n      uVar3 = FUN_0002d300(param_3);\n      uVar5 = gtk_entry_get_type();\n      uVar5 = g_type_check_instance_cast(iVar4,uVar5);\n      gtk_entry_set_text(uVar5,uVar3);\n      FUN_0002da80(uVar3);\n      return;\n    }\n                    \n    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");\n  }\n                    \n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set");\n}\n\n" (function_definition "void FUN_0004b6f0(undefined4 param_1,int *param_2,undefined4 param_3)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);\n  if (*(int *)*puVar2 == 1) {\n    iVar4 = puVar2[6];\n    if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }\n    if (iVar4 != 0) {\n      uVar3 = FUN_0002d300(param_3);\n      uVar5 = gtk_entry_get_type();\n      uVar5 = g_type_check_instance_cast(iVar4,uVar5);\n      gtk_entry_set_text(uVar5,uVar3);\n      FUN_0002da80(uVar3);\n      return;\n    }\n                    \n    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");\n  }\n                    \n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set");\n}" primitive_type (function_declarator "FUN_0004b6f0(undefined4 param_1,int *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);\n  if (*(int *)*puVar2 == 1) {\n    iVar4 = puVar2[6];\n    if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }\n    if (iVar4 != 0) {\n      uVar3 = FUN_0002d300(param_3);\n      uVar5 = gtk_entry_get_type();\n      uVar5 = g_type_check_instance_cast(iVar4,uVar5);\n      gtk_entry_set_text(uVar5,uVar3);\n      FUN_0002da80(uVar3);\n      return;\n    }\n                    \n    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");\n  }\n                    \n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set");\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (if_statement "if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" if (parenthesized_expression "(*param_2 == 0)" ( (binary_expression "*param_2 == 0" (pointer_expression "*param_2" * identifier) == number_literal) )) (compound_statement "{\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" { (expression_statement "pcVar1 = (code *)invalidInstructionException();" (assignment_expression "pcVar1 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar1)();" (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar2 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);" (assignment_expression "puVar2 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340)" identifier = (cast_expression "(undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00047980(*param_2,param_1,FUN_0004a340)" identifier (argument_list "(*param_2,param_1,FUN_0004a340)" ( (pointer_expression "*param_2" * identifier) , identifier , identifier ))))) ;) (if_statement "if (*(int *)*puVar2 == 1) {\n    iVar4 = puVar2[6];\n    if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }\n    if (iVar4 != 0) {\n      uVar3 = FUN_0002d300(param_3);\n      uVar5 = gtk_entry_get_type();\n      uVar5 = g_type_check_instance_cast(iVar4,uVar5);\n      gtk_entry_set_text(uVar5,uVar3);\n      FUN_0002da80(uVar3);\n      return;\n    }\n                    \n    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");\n  }" if (parenthesized_expression "(*(int *)*puVar2 == 1)" ( (binary_expression "*(int *)*puVar2 == 1" (pointer_expression "*(int *)*puVar2" * (cast_expression "(int *)*puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) == number_literal) )) (compound_statement "{\n    iVar4 = puVar2[6];\n    if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }\n    if (iVar4 != 0) {\n      uVar3 = FUN_0002d300(param_3);\n      uVar5 = gtk_entry_get_type();\n      uVar5 = g_type_check_instance_cast(iVar4,uVar5);\n      gtk_entry_set_text(uVar5,uVar3);\n      FUN_0002da80(uVar3);\n      return;\n    }\n                    \n    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");\n  }" { (expression_statement "iVar4 = puVar2[6];" (assignment_expression "iVar4 = puVar2[6]" identifier = (subscript_expression "puVar2[6]" identifier [ number_literal ])) ;) (if_statement "if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = puVar2[4];\n    }" { (expression_statement "iVar4 = puVar2[4];" (assignment_expression "iVar4 = puVar2[4]" identifier = (subscript_expression "puVar2[4]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }" else (compound_statement "{\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }" { (expression_statement "uVar3 = gtk_bin_get_type();" (assignment_expression "uVar3 = gtk_bin_get_type()" identifier = (call_expression "gtk_bin_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = g_type_check_instance_cast(iVar4,uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(iVar4,uVar3)" identifier = (call_expression "g_type_check_instance_cast(iVar4,uVar3)" identifier (argument_list "(iVar4,uVar3)" ( identifier , identifier )))) ;) (expression_statement "iVar4 = gtk_bin_get_child(uVar3);" (assignment_expression "iVar4 = gtk_bin_get_child(uVar3)" identifier = (call_expression "gtk_bin_get_child(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) }))) (if_statement "if (iVar4 != 0) {\n      uVar3 = FUN_0002d300(param_3);\n      uVar5 = gtk_entry_get_type();\n      uVar5 = g_type_check_instance_cast(iVar4,uVar5);\n      gtk_entry_set_text(uVar5,uVar3);\n      FUN_0002da80(uVar3);\n      return;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar3 = FUN_0002d300(param_3);\n      uVar5 = gtk_entry_get_type();\n      uVar5 = g_type_check_instance_cast(iVar4,uVar5);\n      gtk_entry_set_text(uVar5,uVar3);\n      FUN_0002da80(uVar3);\n      return;\n    }" { (expression_statement "uVar3 = FUN_0002d300(param_3);" (assignment_expression "uVar3 = FUN_0002d300(param_3)" identifier = (call_expression "FUN_0002d300(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "uVar5 = gtk_entry_get_type();" (assignment_expression "uVar5 = gtk_entry_get_type()" identifier = (call_expression "gtk_entry_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar5 = g_type_check_instance_cast(iVar4,uVar5);" (assignment_expression "uVar5 = g_type_check_instance_cast(iVar4,uVar5)" identifier = (call_expression "g_type_check_instance_cast(iVar4,uVar5)" identifier (argument_list "(iVar4,uVar5)" ( identifier , identifier )))) ;) (expression_statement "gtk_entry_set_text(uVar5,uVar3);" (call_expression "gtk_entry_set_text(uVar5,uVar3)" identifier (argument_list "(uVar5,uVar3)" ( identifier , identifier ))) ;) (expression_statement "FUN_0002da80(uVar3);" (call_expression "FUN_0002da80(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "__assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");" (call_expression "__assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set")" identifier (argument_list "("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set")" ( (string_literal ""entry != NULL"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_editbox_set"" " string_content ") ))) ;) })) (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set")" ( (string_literal ""uc->ctrl->generic.type == CTRL_EDITBOX"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_editbox_set"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , 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 ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , 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 ") ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "void FUN_0004b6f0(undefined4 param_1,int *param_2,undefined4 param_3)\n\n{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);\n  if (*(int *)*puVar2 == 1) {\n    iVar4 = puVar2[6];\n    if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }\n    if (iVar4 != 0) {\n      uVar3 = FUN_0002d300(param_3);\n      uVar5 = gtk_entry_get_type();\n      uVar5 = g_type_check_instance_cast(iVar4,uVar5);\n      gtk_entry_set_text(uVar5,uVar3);\n      FUN_0002da80(uVar3);\n      return;\n    }\n                    \n    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");\n  }\n                    \n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set");\n}" (primitive_type "void") (function_declarator "FUN_0004b6f0(undefined4 param_1,int *param_2,undefined4 param_3)" (identifier "FUN_0004b6f0") (parameter_list "(undefined4 param_1,int *param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  code *pcVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }\n  puVar2 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);\n  if (*(int *)*puVar2 == 1) {\n    iVar4 = puVar2[6];\n    if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }\n    if (iVar4 != 0) {\n      uVar3 = FUN_0002d300(param_3);\n      uVar5 = gtk_entry_get_type();\n      uVar5 = g_type_check_instance_cast(iVar4,uVar5);\n      gtk_entry_set_text(uVar5,uVar3);\n      FUN_0002da80(uVar3);\n      return;\n    }\n                    \n    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");\n  }\n                    \n  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set");\n}" ({ "{") (declaration "code *pcVar1;" (type_identifier "code") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (if_statement "if (*param_2 == 0) {\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" (if "if") (parenthesized_expression "(*param_2 == 0)" (( "(") (binary_expression "*param_2 == 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    pcVar1 = (code *)invalidInstructionException();\n    (*pcVar1)();\n  }" ({ "{") (expression_statement "pcVar1 = (code *)invalidInstructionException();" (assignment_expression "pcVar1 = (code *)invalidInstructionException()" (identifier "pcVar1") (= "=") (cast_expression "(code *)invalidInstructionException()" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "invalidInstructionException()" (identifier "invalidInstructionException") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "(*pcVar1)();" (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" (( "(") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);" (assignment_expression "puVar2 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00047980(*param_2,param_1,FUN_0004a340)" (identifier "FUN_00047980") (argument_list "(*param_2,param_1,FUN_0004a340)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (identifier "param_1") (, ",") (identifier "FUN_0004a340") () ")"))))) (; ";")) (if_statement "if (*(int *)*puVar2 == 1) {\n    iVar4 = puVar2[6];\n    if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }\n    if (iVar4 != 0) {\n      uVar3 = FUN_0002d300(param_3);\n      uVar5 = gtk_entry_get_type();\n      uVar5 = g_type_check_instance_cast(iVar4,uVar5);\n      gtk_entry_set_text(uVar5,uVar3);\n      FUN_0002da80(uVar3);\n      return;\n    }\n                    \n    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");\n  }" (if "if") (parenthesized_expression "(*(int *)*puVar2 == 1)" (( "(") (binary_expression "*(int *)*puVar2 == 1" (pointer_expression "*(int *)*puVar2" (* "*") (cast_expression "(int *)*puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    iVar4 = puVar2[6];\n    if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }\n    if (iVar4 != 0) {\n      uVar3 = FUN_0002d300(param_3);\n      uVar5 = gtk_entry_get_type();\n      uVar5 = g_type_check_instance_cast(iVar4,uVar5);\n      gtk_entry_set_text(uVar5,uVar3);\n      FUN_0002da80(uVar3);\n      return;\n    }\n                    \n    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");\n  }" ({ "{") (expression_statement "iVar4 = puVar2[6];" (assignment_expression "iVar4 = puVar2[6]" (identifier "iVar4") (= "=") (subscript_expression "puVar2[6]" (identifier "puVar2") ([ "[") (number_literal "6") (] "]"))) (; ";")) (if_statement "if (iVar4 == 0) {\n      iVar4 = puVar2[4];\n    }\n    else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar4 = puVar2[4];\n    }" ({ "{") (expression_statement "iVar4 = puVar2[4];" (assignment_expression "iVar4 = puVar2[4]" (identifier "iVar4") (= "=") (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }" (else "else") (compound_statement "{\n      uVar3 = gtk_bin_get_type();\n      uVar3 = g_type_check_instance_cast(iVar4,uVar3);\n      iVar4 = gtk_bin_get_child(uVar3);\n    }" ({ "{") (expression_statement "uVar3 = gtk_bin_get_type();" (assignment_expression "uVar3 = gtk_bin_get_type()" (identifier "uVar3") (= "=") (call_expression "gtk_bin_get_type()" (identifier "gtk_bin_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar3 = g_type_check_instance_cast(iVar4,uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(iVar4,uVar3)" (identifier "uVar3") (= "=") (call_expression "g_type_check_instance_cast(iVar4,uVar3)" (identifier "g_type_check_instance_cast") (argument_list "(iVar4,uVar3)" (( "(") (identifier "iVar4") (, ",") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "iVar4 = gtk_bin_get_child(uVar3);" (assignment_expression "iVar4 = gtk_bin_get_child(uVar3)" (identifier "iVar4") (= "=") (call_expression "gtk_bin_get_child(uVar3)" (identifier "gtk_bin_get_child") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar4 != 0) {\n      uVar3 = FUN_0002d300(param_3);\n      uVar5 = gtk_entry_get_type();\n      uVar5 = g_type_check_instance_cast(iVar4,uVar5);\n      gtk_entry_set_text(uVar5,uVar3);\n      FUN_0002da80(uVar3);\n      return;\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = FUN_0002d300(param_3);\n      uVar5 = gtk_entry_get_type();\n      uVar5 = g_type_check_instance_cast(iVar4,uVar5);\n      gtk_entry_set_text(uVar5,uVar3);\n      FUN_0002da80(uVar3);\n      return;\n    }" ({ "{") (expression_statement "uVar3 = FUN_0002d300(param_3);" (assignment_expression "uVar3 = FUN_0002d300(param_3)" (identifier "uVar3") (= "=") (call_expression "FUN_0002d300(param_3)" (identifier "FUN_0002d300") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "uVar5 = gtk_entry_get_type();" (assignment_expression "uVar5 = gtk_entry_get_type()" (identifier "uVar5") (= "=") (call_expression "gtk_entry_get_type()" (identifier "gtk_entry_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar5 = g_type_check_instance_cast(iVar4,uVar5);" (assignment_expression "uVar5 = g_type_check_instance_cast(iVar4,uVar5)" (identifier "uVar5") (= "=") (call_expression "g_type_check_instance_cast(iVar4,uVar5)" (identifier "g_type_check_instance_cast") (argument_list "(iVar4,uVar5)" (( "(") (identifier "iVar4") (, ",") (identifier "uVar5") () ")")))) (; ";")) (expression_statement "gtk_entry_set_text(uVar5,uVar3);" (call_expression "gtk_entry_set_text(uVar5,uVar3)" (identifier "gtk_entry_set_text") (argument_list "(uVar5,uVar3)" (( "(") (identifier "uVar5") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "FUN_0002da80(uVar3);" (call_expression "FUN_0002da80(uVar3)" (identifier "FUN_0002da80") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");" (call_expression "__assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set")" (identifier "__assert_fail") (argument_list "("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set")" (( "(") (string_literal ""entry != NULL"" (" """) (string_content "entry != NULL") (" """)) (, ",") (string_literal ""unix/gtkdlg.c"" (" """) (string_content "unix/gtkdlg.c") (" """)) (, ",") (number_literal "0x13a") (, ",") (string_literal ""dlg_editbox_set"" (" """) (string_content "dlg_editbox_set") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set")" (identifier "__assert_fail") (argument_list "("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set")" (( "(") (string_literal ""uc->ctrl->generic.type == CTRL_EDITBOX"" (" """) (string_content "uc->ctrl->generic.type == CTRL_EDITBOX") (" """)) (, ",") (string_literal ""unix/gtkdlg.c"" (" """) (string_content "unix/gtkdlg.c") (" """)) (, ",") (number_literal "0x131") (, ",") (string_literal ""dlg_editbox_set"" (" """) (string_content "dlg_editbox_set") (" """)) () ")"))) (; ";")) (} "}")))

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

void function_1(type_1 *ctrl,void *dlg,char *text)

{
  type_2 *pcVar1;
  type_3 *puVar2;
  type_3 uVar3;
  int var_3;
  char *ptr;
  
                    /* WARNING: Load size is inaccurate */
  if (*dlg == (type_4 *)0x0) {
                    /* WARNING: Does not return */
    pcVar1 = (type_2 *)var_1();
    (*pcVar1)();
  }
  puVar2 = (type_3 *)var_2(*dlg,ctrl,uctrl_cmp_byctrl_find);
  if (*(int *)*puVar2 == 1) {
    var_3 = puVar2[6];
    if (var_3 == 0) {
      var_3 = puVar2[4];
    }
    else {
      uVar3 = var_4();
      uVar3 = var_5(var_3,uVar3);
      var_3 = var_6(uVar3);
    }
    if (var_3 != 0) {
      ptr = var_7(text);
      uVar3 = var_8();
      uVar3 = var_5(var_3,uVar3);
      var_9(uVar3,ptr);
      var_10(ptr);
      return;
    }
                    /* WARNING: Subroutine does not return */
    var_11("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");
  }
                    /* WARNING: Subroutine does not return */
  var_11("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set");
}


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

{
  code *pcVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 uVar5;
  
  if (*param_2 == 0) {
                    /* WARNING: Does not return */
    pcVar1 = (code *)invalidInstructionException();
    (*pcVar1)();
  }
  puVar2 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);
  if (*(int *)*puVar2 == 1) {
    iVar4 = puVar2[6];
    if (iVar4 == 0) {
      iVar4 = puVar2[4];
    }
    else {
      uVar3 = gtk_bin_get_type();
      uVar3 = g_type_check_instance_cast(iVar4,uVar3);
      iVar4 = gtk_bin_get_child(uVar3);
    }
    if (iVar4 != 0) {
      uVar3 = FUN_0002d300(param_3);
      uVar5 = gtk_entry_get_type();
      uVar5 = g_type_check_instance_cast(iVar4,uVar5);
      gtk_entry_set_text(uVar5,uVar3);
      FUN_0002da80(uVar3);
      return;
    }
                    /* WARNING: Subroutine does not return */
    __assert_fail("entry != NULL","unix/gtkdlg.c",0x13a,"dlg_editbox_set");
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("uc->ctrl->generic.type == CTRL_EDITBOX","unix/gtkdlg.c",0x131,"dlg_editbox_set");
}

