
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void set_window_background(gui_data *inst)

{
  undefined4 uVar1;
  GtkWidget *pGVar2;
  
  pGVar2 = inst->area;
  if (pGVar2 != (GtkWidget *)0x0) {
    uVar1 = gtk_widget_get_type();
    pGVar2 = (GtkWidget *)g_type_check_instance_cast(pGVar2,uVar1);
    set_gtk_widget_background(pGVar2,inst->cols + 0x102);
  }
  pGVar2 = inst->window;
  if (pGVar2 != (GtkWidget *)0x0) {
    uVar1 = gtk_widget_get_type();
    pGVar2 = (GtkWidget *)g_type_check_instance_cast(pGVar2,uVar1);
    set_gtk_widget_background(pGVar2,inst->cols + 0x102);
  }
  return;
}



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

void FUN_00068ec0(int *param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = param_1[1];
  if (iVar1 != 0) {
    uVar2 = gtk_widget_get_type();
    uVar2 = g_type_check_instance_cast(iVar1,uVar2);
    FUN_00068dc0(uVar2,param_1 + 0x322);
  }
  iVar1 = *param_1;
  if (iVar1 != 0) {
    uVar2 = gtk_widget_get_type();
    uVar2 = g_type_check_instance_cast(iVar1,uVar2);
    FUN_00068dc0(uVar2,param_1 + 0x322);
  }
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x0001b410
ADD EBX,0x5c8d8
MOV EDI,dword ptr [ESI + 0x4]
TEST EDI,EDI
JZ 0x00068efa
CALL 0x00019530
SUB ESP,0x8
PUSH EAX
PUSH EDI
CALL 0x00019590
POP EDI
POP EDX
LEA EDX,[ESI + 0xc88]
PUSH EDX
PUSH EAX
CALL 0x00068dc0
ADD ESP,0x10
MOV EDI,dword ptr [ESI]
TEST EDI,EDI
JZ 0x00068f21
CALL 0x00019530
SUB ESP,0x8
ADD ESI,0xc88
PUSH EAX
PUSH EDI
CALL 0x00019590
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x00068dc0
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00068ec0(int *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = param_1[1];\n  if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00068ec0(int *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = param_1[1];\n  if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00068ec0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = param_1[1];\n  if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }" { (expression_statement "uVar2 = gtk_widget_get_type();" (assignment_expression "uVar2 = gtk_widget_get_type()" identifier = (call_expression "gtk_widget_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(iVar1,uVar2);" (assignment_expression "uVar2 = g_type_check_instance_cast(iVar1,uVar2)" identifier = (call_expression "g_type_check_instance_cast(iVar1,uVar2)" identifier (argument_list "(iVar1,uVar2)" ( identifier , identifier )))) ;) (expression_statement "FUN_00068dc0(uVar2,param_1 + 0x322);" (call_expression "FUN_00068dc0(uVar2,param_1 + 0x322)" identifier (argument_list "(uVar2,param_1 + 0x322)" ( identifier , (binary_expression "param_1 + 0x322" identifier + number_literal) ))) ;) })) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }" { (expression_statement "uVar2 = gtk_widget_get_type();" (assignment_expression "uVar2 = gtk_widget_get_type()" identifier = (call_expression "gtk_widget_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(iVar1,uVar2);" (assignment_expression "uVar2 = g_type_check_instance_cast(iVar1,uVar2)" identifier = (call_expression "g_type_check_instance_cast(iVar1,uVar2)" identifier (argument_list "(iVar1,uVar2)" ( identifier , identifier )))) ;) (expression_statement "FUN_00068dc0(uVar2,param_1 + 0x322);" (call_expression "FUN_00068dc0(uVar2,param_1 + 0x322)" identifier (argument_list "(uVar2,param_1 + 0x322)" ( identifier , (binary_expression "param_1 + 0x322" identifier + number_literal) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid set_window_background(gui_data *inst)\n\n{\n  undefined4 uVar1;\n  GtkWidget *pGVar2;\n  \n  pGVar2 = inst->area;\n  if (pGVar2 != (GtkWidget *)0x0) {\n    uVar1 = gtk_widget_get_type();\n    pGVar2 = (GtkWidget *)g_type_check_instance_cast(pGVar2,uVar1);\n    set_gtk_widget_background(pGVar2,inst->cols + 0x102);\n  }\n  pGVar2 = inst->window;\n  if (pGVar2 != (GtkWidget *)0x0) {\n    uVar1 = gtk_widget_get_type();\n    pGVar2 = (GtkWidget *)g_type_check_instance_cast(pGVar2,uVar1);\n    set_gtk_widget_background(pGVar2,inst->cols + 0x102);\n  }\n  return;\n}\n\n" comment comment comment (function_definition "void set_window_background(gui_data *inst)\n\n{\n  undefined4 uVar1;\n  GtkWidget *pGVar2;\n  \n  pGVar2 = inst->area;\n  if (pGVar2 != (GtkWidget *)0x0) {\n    uVar1 = gtk_widget_get_type();\n    pGVar2 = (GtkWidget *)g_type_check_instance_cast(pGVar2,uVar1);\n    set_gtk_widget_background(pGVar2,inst->cols + 0x102);\n  }\n  pGVar2 = inst->window;\n  if (pGVar2 != (GtkWidget *)0x0) {\n    uVar1 = gtk_widget_get_type();\n    pGVar2 = (GtkWidget *)g_type_check_instance_cast(pGVar2,uVar1);\n    set_gtk_widget_background(pGVar2,inst->cols + 0x102);\n  }\n  return;\n}" primitive_type (function_declarator "set_window_background(gui_data *inst)" identifier (parameter_list "(gui_data *inst)" ( (parameter_declaration "gui_data *inst" type_identifier (pointer_declarator "*inst" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  GtkWidget *pGVar2;\n  \n  pGVar2 = inst->area;\n  if (pGVar2 != (GtkWidget *)0x0) {\n    uVar1 = gtk_widget_get_type();\n    pGVar2 = (GtkWidget *)g_type_check_instance_cast(pGVar2,uVar1);\n    set_gtk_widget_background(pGVar2,inst->cols + 0x102);\n  }\n  pGVar2 = inst->window;\n  if (pGVar2 != (GtkWidget *)0x0) {\n    uVar1 = gtk_widget_get_type();\n    pGVar2 = (GtkWidget *)g_type_check_instance_cast(pGVar2,uVar1);\n    set_gtk_widget_background(pGVar2,inst->cols + 0x102);\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "GtkWidget *pGVar2;" type_identifier (pointer_declarator "*pGVar2" * identifier) ;) (expression_statement "pGVar2 = inst->area;" (assignment_expression "pGVar2 = inst->area" identifier = (field_expression "inst->area" identifier -> field_identifier)) ;) (if_statement "if (pGVar2 != (GtkWidget *)0x0) {\n    uVar1 = gtk_widget_get_type();\n    pGVar2 = (GtkWidget *)g_type_check_instance_cast(pGVar2,uVar1);\n    set_gtk_widget_background(pGVar2,inst->cols + 0x102);\n  }" if (parenthesized_expression "(pGVar2 != (GtkWidget *)0x0)" ( (binary_expression "pGVar2 != (GtkWidget *)0x0" identifier != (cast_expression "(GtkWidget *)0x0" ( (type_descriptor "GtkWidget *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar1 = gtk_widget_get_type();\n    pGVar2 = (GtkWidget *)g_type_check_instance_cast(pGVar2,uVar1);\n    set_gtk_widget_background(pGVar2,inst->cols + 0x102);\n  }" { (expression_statement "uVar1 = gtk_widget_get_type();" (assignment_expression "uVar1 = gtk_widget_get_type()" identifier = (call_expression "gtk_widget_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "pGVar2 = (GtkWidget *)g_type_check_instance_cast(pGVar2,uVar1);" (assignment_expression "pGVar2 = (GtkWidget *)g_type_check_instance_cast(pGVar2,uVar1)" identifier = (cast_expression "(GtkWidget *)g_type_check_instance_cast(pGVar2,uVar1)" ( (type_descriptor "GtkWidget *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "g_type_check_instance_cast(pGVar2,uVar1)" identifier (argument_list "(pGVar2,uVar1)" ( identifier , identifier ))))) ;) (expression_statement "set_gtk_widget_background(pGVar2,inst->cols + 0x102);" (call_expression "set_gtk_widget_background(pGVar2,inst->cols + 0x102)" identifier (argument_list "(pGVar2,inst->cols + 0x102)" ( identifier , (binary_expression "inst->cols + 0x102" (field_expression "inst->cols" identifier -> field_identifier) + number_literal) ))) ;) })) (expression_statement "pGVar2 = inst->window;" (assignment_expression "pGVar2 = inst->window" identifier = (field_expression "inst->window" identifier -> field_identifier)) ;) (if_statement "if (pGVar2 != (GtkWidget *)0x0) {\n    uVar1 = gtk_widget_get_type();\n    pGVar2 = (GtkWidget *)g_type_check_instance_cast(pGVar2,uVar1);\n    set_gtk_widget_background(pGVar2,inst->cols + 0x102);\n  }" if (parenthesized_expression "(pGVar2 != (GtkWidget *)0x0)" ( (binary_expression "pGVar2 != (GtkWidget *)0x0" identifier != (cast_expression "(GtkWidget *)0x0" ( (type_descriptor "GtkWidget *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar1 = gtk_widget_get_type();\n    pGVar2 = (GtkWidget *)g_type_check_instance_cast(pGVar2,uVar1);\n    set_gtk_widget_background(pGVar2,inst->cols + 0x102);\n  }" { (expression_statement "uVar1 = gtk_widget_get_type();" (assignment_expression "uVar1 = gtk_widget_get_type()" identifier = (call_expression "gtk_widget_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "pGVar2 = (GtkWidget *)g_type_check_instance_cast(pGVar2,uVar1);" (assignment_expression "pGVar2 = (GtkWidget *)g_type_check_instance_cast(pGVar2,uVar1)" identifier = (cast_expression "(GtkWidget *)g_type_check_instance_cast(pGVar2,uVar1)" ( (type_descriptor "GtkWidget *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "g_type_check_instance_cast(pGVar2,uVar1)" identifier (argument_list "(pGVar2,uVar1)" ( identifier , identifier ))))) ;) (expression_statement "set_gtk_widget_background(pGVar2,inst->cols + 0x102);" (call_expression "set_gtk_widget_background(pGVar2,inst->cols + 0x102)" identifier (argument_list "(pGVar2,inst->cols + 0x102)" ( identifier , (binary_expression "inst->cols + 0x102" (field_expression "inst->cols" identifier -> field_identifier) + number_literal) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00068ec0(int *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = param_1[1];\n  if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00068ec0(int *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = param_1[1];\n  if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00068ec0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = param_1[1];\n  if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }" { (expression_statement "uVar2 = gtk_widget_get_type();" (assignment_expression "uVar2 = gtk_widget_get_type()" identifier = (call_expression "gtk_widget_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(iVar1,uVar2);" (assignment_expression "uVar2 = g_type_check_instance_cast(iVar1,uVar2)" identifier = (call_expression "g_type_check_instance_cast(iVar1,uVar2)" identifier (argument_list "(iVar1,uVar2)" ( identifier , identifier )))) ;) (expression_statement "FUN_00068dc0(uVar2,param_1 + 0x322);" (call_expression "FUN_00068dc0(uVar2,param_1 + 0x322)" identifier (argument_list "(uVar2,param_1 + 0x322)" ( identifier , (binary_expression "param_1 + 0x322" identifier + number_literal) ))) ;) })) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }" { (expression_statement "uVar2 = gtk_widget_get_type();" (assignment_expression "uVar2 = gtk_widget_get_type()" identifier = (call_expression "gtk_widget_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(iVar1,uVar2);" (assignment_expression "uVar2 = g_type_check_instance_cast(iVar1,uVar2)" identifier = (call_expression "g_type_check_instance_cast(iVar1,uVar2)" identifier (argument_list "(iVar1,uVar2)" ( identifier , identifier )))) ;) (expression_statement "FUN_00068dc0(uVar2,param_1 + 0x322);" (call_expression "FUN_00068dc0(uVar2,param_1 + 0x322)" identifier (argument_list "(uVar2,param_1 + 0x322)" ( identifier , (binary_expression "param_1 + 0x322" identifier + number_literal) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 = (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 , (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * 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 ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00068ec0(int *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = param_1[1];\n  if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00068ec0(int *param_1)" (identifier "FUN_00068ec0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = param_1[1];\n  if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" (identifier "iVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }" ({ "{") (expression_statement "uVar2 = gtk_widget_get_type();" (assignment_expression "uVar2 = gtk_widget_get_type()" (identifier "uVar2") (= "=") (call_expression "gtk_widget_get_type()" (identifier "gtk_widget_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar2 = g_type_check_instance_cast(iVar1,uVar2);" (assignment_expression "uVar2 = g_type_check_instance_cast(iVar1,uVar2)" (identifier "uVar2") (= "=") (call_expression "g_type_check_instance_cast(iVar1,uVar2)" (identifier "g_type_check_instance_cast") (argument_list "(iVar1,uVar2)" (( "(") (identifier "iVar1") (, ",") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "FUN_00068dc0(uVar2,param_1 + 0x322);" (call_expression "FUN_00068dc0(uVar2,param_1 + 0x322)" (identifier "FUN_00068dc0") (argument_list "(uVar2,param_1 + 0x322)" (( "(") (identifier "uVar2") (, ",") (binary_expression "param_1 + 0x322" (identifier "param_1") (+ "+") (number_literal "0x322")) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (iVar1 != 0) {\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = gtk_widget_get_type();\n    uVar2 = g_type_check_instance_cast(iVar1,uVar2);\n    FUN_00068dc0(uVar2,param_1 + 0x322);\n  }" ({ "{") (expression_statement "uVar2 = gtk_widget_get_type();" (assignment_expression "uVar2 = gtk_widget_get_type()" (identifier "uVar2") (= "=") (call_expression "gtk_widget_get_type()" (identifier "gtk_widget_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar2 = g_type_check_instance_cast(iVar1,uVar2);" (assignment_expression "uVar2 = g_type_check_instance_cast(iVar1,uVar2)" (identifier "uVar2") (= "=") (call_expression "g_type_check_instance_cast(iVar1,uVar2)" (identifier "g_type_check_instance_cast") (argument_list "(iVar1,uVar2)" (( "(") (identifier "iVar1") (, ",") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "FUN_00068dc0(uVar2,param_1 + 0x322);" (call_expression "FUN_00068dc0(uVar2,param_1 + 0x322)" (identifier "FUN_00068dc0") (argument_list "(uVar2,param_1 + 0x322)" (( "(") (identifier "uVar2") (, ",") (binary_expression "param_1 + 0x322" (identifier "param_1") (+ "+") (number_literal "0x322")) () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 *inst)

{
  type_2 uVar1;
  type_3 *var_1;
  
  var_1 = inst->area;
  if (var_1 != (type_3 *)0x0) {
    uVar1 = var_2();
    var_1 = (type_3 *)var_3(var_1,uVar1);
    var_4(var_1,inst->cols + 0x102);
  }
  var_1 = inst->window;
  if (var_1 != (type_3 *)0x0) {
    uVar1 = var_2();
    var_1 = (type_3 *)var_3(var_1,uVar1);
    var_4(var_1,inst->cols + 0x102);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (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: (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) (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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 (identifier) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal))))))) (return_statement))))

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

void MASKED(int *param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = param_1[1];
  if (iVar1 != 0) {
    uVar2 = gtk_widget_get_type();
    uVar2 = g_type_check_instance_cast(iVar1,uVar2);
    FUN_00068dc0(uVar2,param_1 + 0x322);
  }
  iVar1 = *param_1;
  if (iVar1 != 0) {
    uVar2 = gtk_widget_get_type();
    uVar2 = g_type_check_instance_cast(iVar1,uVar2);
    FUN_00068dc0(uVar2,param_1 + 0x322);
  }
  return;
}

