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

void listbox_reorder(GtkTreeModel *treemodel,GtkTreePath *path,GtkTreeIter *iter,gpointer data)

{
  undefined4 uVar1;
  undefined4 uVar2;
  GtkWidget *w;
  uctrl *puVar3;
  undefined4 *puVar4;
  
  if ((*(byte *)((int)data + 0x10) & 2) == 0) {
    uVar1 = g_type_check_instance_cast(treemodel,0x50);
    uVar1 = g_object_get_data(uVar1,"user-data");
    uVar2 = gtk_widget_get_type();
    w = (GtkWidget *)g_type_check_instance_cast(uVar1,uVar2);
    if (*(int *)((int)data + 4) != 0) {
      puVar3 = dlg_find_bywidget((dlgparam *)((int)data + 4),w);
      if (puVar3 != (uctrl *)0x0) {
        puVar4 = (undefined4 *)safemalloc(1,8);
        *puVar4 = puVar3;
        puVar4[1] = data;
        g_idle_add(draglist_valchange,puVar4);
        return;
      }
    }
  }
  return;
}



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

int __regparm1
FUN_0004adf0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)

{
  undefined4 uVar1;
  undefined4 uVar2;
  int *piVar3;
  int iVar4;
  
  if ((*(byte *)(param_5 + 0x10) & 2) == 0) {
    uVar1 = g_type_check_instance_cast(param_2,0x50);
    uVar1 = g_object_get_data(uVar1,"user-data");
    uVar2 = gtk_widget_get_type();
    g_type_check_instance_cast(uVar1,uVar2);
    param_1 = param_5 + 4;
    if (*(int *)(param_5 + 4) != 0) {
      param_1 = FUN_0004a900();
      if (param_1 != 0) {
        piVar3 = (int *)FUN_0002d1f0(1,8);
        *piVar3 = param_1;
        piVar3[1] = param_5;
        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);
        return iVar4;
      }
    }
  }
  return param_1;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x1c]
CALL 0x0001b410
ADD EBX,0x659a8
TEST byte ptr [ESI + 0x10],0x2
JZ 0x0004ae10
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x8
PUSH 0x50
PUSH dword ptr [ESP + 0x1c]
CALL 0x00019590
POP EDI
POP EDX
LEA EDX,[EBX + 0xfffd2123]
PUSH EDX
PUSH EAX
CALL 0x0001aed0
MOV EDI,EAX
CALL 0x00019530
POP ECX
POP EDX
PUSH EAX
PUSH EDI
CALL 0x00019590
MOV ECX,dword ptr [ESI + 0x4]
ADD ESP,0x10
MOV EDX,EAX
LEA EAX,[ESI + 0x4]
TEST ECX,ECX
JZ 0x0004ae08
CALL 0x0004a900
MOV EDI,EAX
TEST EAX,EAX
JZ 0x0004ae08
SUB ESP,0x8
PUSH 0x8
PUSH 0x1
CALL 0x0002d1f0
MOV dword ptr [EAX],EDI
MOV dword ptr [EAX + 0x4],ESI
POP EDX
POP ECX
PUSH EAX
LEA EAX,[EBX + 0xfff99bfc]
PUSH EAX
CALL 0x00019f30
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\nint __regparm1\nFUN_0004adf0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if ((*(byte *)(param_5 + 0x10) & 2) == 0) {\n    uVar1 = g_type_check_instance_cast(param_2,0x50);\n    uVar1 = g_object_get_data(uVar1,"user-data");\n    uVar2 = gtk_widget_get_type();\n    g_type_check_instance_cast(uVar1,uVar2);\n    param_1 = param_5 + 4;\n    if (*(int *)(param_5 + 4) != 0) {\n      param_1 = FUN_0004a900();\n      if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }\n    }\n  }\n  return param_1;\n}\n\n" comment (function_definition "int __regparm1\nFUN_0004adf0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if ((*(byte *)(param_5 + 0x10) & 2) == 0) {\n    uVar1 = g_type_check_instance_cast(param_2,0x50);\n    uVar1 = g_object_get_data(uVar1,"user-data");\n    uVar2 = gtk_widget_get_type();\n    g_type_check_instance_cast(uVar1,uVar2);\n    param_1 = param_5 + 4;\n    if (*(int *)(param_5 + 4) != 0) {\n      param_1 = FUN_0004a900();\n      if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }\n    }\n  }\n  return param_1;\n}" primitive_type (ERROR "__regparm1" identifier) (function_declarator "FUN_0004adf0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if ((*(byte *)(param_5 + 0x10) & 2) == 0) {\n    uVar1 = g_type_check_instance_cast(param_2,0x50);\n    uVar1 = g_object_get_data(uVar1,"user-data");\n    uVar2 = gtk_widget_get_type();\n    g_type_check_instance_cast(uVar1,uVar2);\n    param_1 = param_5 + 4;\n    if (*(int *)(param_5 + 4) != 0) {\n      param_1 = FUN_0004a900();\n      if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }\n    }\n  }\n  return param_1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if ((*(byte *)(param_5 + 0x10) & 2) == 0) {\n    uVar1 = g_type_check_instance_cast(param_2,0x50);\n    uVar1 = g_object_get_data(uVar1,"user-data");\n    uVar2 = gtk_widget_get_type();\n    g_type_check_instance_cast(uVar1,uVar2);\n    param_1 = param_5 + 4;\n    if (*(int *)(param_5 + 4) != 0) {\n      param_1 = FUN_0004a900();\n      if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }\n    }\n  }" if (parenthesized_expression "((*(byte *)(param_5 + 0x10) & 2) == 0)" ( (binary_expression "(*(byte *)(param_5 + 0x10) & 2) == 0" (parenthesized_expression "(*(byte *)(param_5 + 0x10) & 2)" ( (binary_expression "*(byte *)(param_5 + 0x10) & 2" (pointer_expression "*(byte *)(param_5 + 0x10)" * (cast_expression "(byte *)(param_5 + 0x10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x10)" ( (binary_expression "param_5 + 0x10" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar1 = g_type_check_instance_cast(param_2,0x50);\n    uVar1 = g_object_get_data(uVar1,"user-data");\n    uVar2 = gtk_widget_get_type();\n    g_type_check_instance_cast(uVar1,uVar2);\n    param_1 = param_5 + 4;\n    if (*(int *)(param_5 + 4) != 0) {\n      param_1 = FUN_0004a900();\n      if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }\n    }\n  }" { (expression_statement "uVar1 = g_type_check_instance_cast(param_2,0x50);" (assignment_expression "uVar1 = g_type_check_instance_cast(param_2,0x50)" identifier = (call_expression "g_type_check_instance_cast(param_2,0x50)" identifier (argument_list "(param_2,0x50)" ( identifier , number_literal )))) ;) (expression_statement "uVar1 = g_object_get_data(uVar1,"user-data");" (assignment_expression "uVar1 = g_object_get_data(uVar1,"user-data")" identifier = (call_expression "g_object_get_data(uVar1,"user-data")" identifier (argument_list "(uVar1,"user-data")" ( identifier , (string_literal ""user-data"" " string_content ") )))) ;) (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 "g_type_check_instance_cast(uVar1,uVar2);" (call_expression "g_type_check_instance_cast(uVar1,uVar2)" identifier (argument_list "(uVar1,uVar2)" ( identifier , identifier ))) ;) (expression_statement "param_1 = param_5 + 4;" (assignment_expression "param_1 = param_5 + 4" identifier = (binary_expression "param_5 + 4" identifier + number_literal)) ;) (if_statement "if (*(int *)(param_5 + 4) != 0) {\n      param_1 = FUN_0004a900();\n      if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }\n    }" if (parenthesized_expression "(*(int *)(param_5 + 4) != 0)" ( (binary_expression "*(int *)(param_5 + 4) != 0" (pointer_expression "*(int *)(param_5 + 4)" * (cast_expression "(int *)(param_5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 4)" ( (binary_expression "param_5 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      param_1 = FUN_0004a900();\n      if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }\n    }" { (expression_statement "param_1 = FUN_0004a900();" (assignment_expression "param_1 = FUN_0004a900()" identifier = (call_expression "FUN_0004a900()" identifier (argument_list "()" ( )))) ;) (if_statement "if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }" { (expression_statement "piVar3 = (int *)FUN_0002d1f0(1,8);" (assignment_expression "piVar3 = (int *)FUN_0002d1f0(1,8)" identifier = (cast_expression "(int *)FUN_0002d1f0(1,8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002d1f0(1,8)" identifier (argument_list "(1,8)" ( number_literal , number_literal ))))) ;) (expression_statement "*piVar3 = param_1;" (assignment_expression "*piVar3 = param_1" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "piVar3[1] = param_5;" (assignment_expression "piVar3[1] = param_5" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar4 = g_idle_add(FUN_0004a3a0,piVar3);" (assignment_expression "iVar4 = g_idle_add(FUN_0004a3a0,piVar3)" identifier = (call_expression "g_idle_add(FUN_0004a3a0,piVar3)" identifier (argument_list "(FUN_0004a3a0,piVar3)" ( identifier , identifier )))) ;) (return_statement "return iVar4;" return identifier ;) })) })) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid listbox_reorder(GtkTreeModel *treemodel,GtkTreePath *path,GtkTreeIter *iter,gpointer data)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  GtkWidget *w;\n  uctrl *puVar3;\n  undefined4 *puVar4;\n  \n  if ((*(byte *)((int)data + 0x10) & 2) == 0) {\n    uVar1 = g_type_check_instance_cast(treemodel,0x50);\n    uVar1 = g_object_get_data(uVar1,"user-data");\n    uVar2 = gtk_widget_get_type();\n    w = (GtkWidget *)g_type_check_instance_cast(uVar1,uVar2);\n    if (*(int *)((int)data + 4) != 0) {\n      puVar3 = dlg_find_bywidget((dlgparam *)((int)data + 4),w);\n      if (puVar3 != (uctrl *)0x0) {\n        puVar4 = (undefined4 *)safemalloc(1,8);\n        *puVar4 = puVar3;\n        puVar4[1] = data;\n        g_idle_add(draglist_valchange,puVar4);\n        return;\n      }\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void listbox_reorder(GtkTreeModel *treemodel,GtkTreePath *path,GtkTreeIter *iter,gpointer data)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  GtkWidget *w;\n  uctrl *puVar3;\n  undefined4 *puVar4;\n  \n  if ((*(byte *)((int)data + 0x10) & 2) == 0) {\n    uVar1 = g_type_check_instance_cast(treemodel,0x50);\n    uVar1 = g_object_get_data(uVar1,"user-data");\n    uVar2 = gtk_widget_get_type();\n    w = (GtkWidget *)g_type_check_instance_cast(uVar1,uVar2);\n    if (*(int *)((int)data + 4) != 0) {\n      puVar3 = dlg_find_bywidget((dlgparam *)((int)data + 4),w);\n      if (puVar3 != (uctrl *)0x0) {\n        puVar4 = (undefined4 *)safemalloc(1,8);\n        *puVar4 = puVar3;\n        puVar4[1] = data;\n        g_idle_add(draglist_valchange,puVar4);\n        return;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "listbox_reorder(GtkTreeModel *treemodel,GtkTreePath *path,GtkTreeIter *iter,gpointer data)" identifier (parameter_list "(GtkTreeModel *treemodel,GtkTreePath *path,GtkTreeIter *iter,gpointer data)" ( (parameter_declaration "GtkTreeModel *treemodel" type_identifier (pointer_declarator "*treemodel" * identifier)) , (parameter_declaration "GtkTreePath *path" type_identifier (pointer_declarator "*path" * identifier)) , (parameter_declaration "GtkTreeIter *iter" type_identifier (pointer_declarator "*iter" * identifier)) , (parameter_declaration "gpointer data" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  GtkWidget *w;\n  uctrl *puVar3;\n  undefined4 *puVar4;\n  \n  if ((*(byte *)((int)data + 0x10) & 2) == 0) {\n    uVar1 = g_type_check_instance_cast(treemodel,0x50);\n    uVar1 = g_object_get_data(uVar1,"user-data");\n    uVar2 = gtk_widget_get_type();\n    w = (GtkWidget *)g_type_check_instance_cast(uVar1,uVar2);\n    if (*(int *)((int)data + 4) != 0) {\n      puVar3 = dlg_find_bywidget((dlgparam *)((int)data + 4),w);\n      if (puVar3 != (uctrl *)0x0) {\n        puVar4 = (undefined4 *)safemalloc(1,8);\n        *puVar4 = puVar3;\n        puVar4[1] = data;\n        g_idle_add(draglist_valchange,puVar4);\n        return;\n      }\n    }\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "GtkWidget *w;" type_identifier (pointer_declarator "*w" * identifier) ;) (declaration "uctrl *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (if_statement "if ((*(byte *)((int)data + 0x10) & 2) == 0) {\n    uVar1 = g_type_check_instance_cast(treemodel,0x50);\n    uVar1 = g_object_get_data(uVar1,"user-data");\n    uVar2 = gtk_widget_get_type();\n    w = (GtkWidget *)g_type_check_instance_cast(uVar1,uVar2);\n    if (*(int *)((int)data + 4) != 0) {\n      puVar3 = dlg_find_bywidget((dlgparam *)((int)data + 4),w);\n      if (puVar3 != (uctrl *)0x0) {\n        puVar4 = (undefined4 *)safemalloc(1,8);\n        *puVar4 = puVar3;\n        puVar4[1] = data;\n        g_idle_add(draglist_valchange,puVar4);\n        return;\n      }\n    }\n  }" if (parenthesized_expression "((*(byte *)((int)data + 0x10) & 2) == 0)" ( (binary_expression "(*(byte *)((int)data + 0x10) & 2) == 0" (parenthesized_expression "(*(byte *)((int)data + 0x10) & 2)" ( (binary_expression "*(byte *)((int)data + 0x10) & 2" (pointer_expression "*(byte *)((int)data + 0x10)" * (cast_expression "(byte *)((int)data + 0x10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x10)" ( (binary_expression "(int)data + 0x10" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar1 = g_type_check_instance_cast(treemodel,0x50);\n    uVar1 = g_object_get_data(uVar1,"user-data");\n    uVar2 = gtk_widget_get_type();\n    w = (GtkWidget *)g_type_check_instance_cast(uVar1,uVar2);\n    if (*(int *)((int)data + 4) != 0) {\n      puVar3 = dlg_find_bywidget((dlgparam *)((int)data + 4),w);\n      if (puVar3 != (uctrl *)0x0) {\n        puVar4 = (undefined4 *)safemalloc(1,8);\n        *puVar4 = puVar3;\n        puVar4[1] = data;\n        g_idle_add(draglist_valchange,puVar4);\n        return;\n      }\n    }\n  }" { (expression_statement "uVar1 = g_type_check_instance_cast(treemodel,0x50);" (assignment_expression "uVar1 = g_type_check_instance_cast(treemodel,0x50)" identifier = (call_expression "g_type_check_instance_cast(treemodel,0x50)" identifier (argument_list "(treemodel,0x50)" ( identifier , number_literal )))) ;) (expression_statement "uVar1 = g_object_get_data(uVar1,"user-data");" (assignment_expression "uVar1 = g_object_get_data(uVar1,"user-data")" identifier = (call_expression "g_object_get_data(uVar1,"user-data")" identifier (argument_list "(uVar1,"user-data")" ( identifier , (string_literal ""user-data"" " string_content ") )))) ;) (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 "w = (GtkWidget *)g_type_check_instance_cast(uVar1,uVar2);" (assignment_expression "w = (GtkWidget *)g_type_check_instance_cast(uVar1,uVar2)" identifier = (cast_expression "(GtkWidget *)g_type_check_instance_cast(uVar1,uVar2)" ( (type_descriptor "GtkWidget *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "g_type_check_instance_cast(uVar1,uVar2)" identifier (argument_list "(uVar1,uVar2)" ( identifier , identifier ))))) ;) (if_statement "if (*(int *)((int)data + 4) != 0) {\n      puVar3 = dlg_find_bywidget((dlgparam *)((int)data + 4),w);\n      if (puVar3 != (uctrl *)0x0) {\n        puVar4 = (undefined4 *)safemalloc(1,8);\n        *puVar4 = puVar3;\n        puVar4[1] = data;\n        g_idle_add(draglist_valchange,puVar4);\n        return;\n      }\n    }" if (parenthesized_expression "(*(int *)((int)data + 4) != 0)" ( (binary_expression "*(int *)((int)data + 4) != 0" (pointer_expression "*(int *)((int)data + 4)" * (cast_expression "(int *)((int)data + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 4)" ( (binary_expression "(int)data + 4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n      puVar3 = dlg_find_bywidget((dlgparam *)((int)data + 4),w);\n      if (puVar3 != (uctrl *)0x0) {\n        puVar4 = (undefined4 *)safemalloc(1,8);\n        *puVar4 = puVar3;\n        puVar4[1] = data;\n        g_idle_add(draglist_valchange,puVar4);\n        return;\n      }\n    }" { (expression_statement "puVar3 = dlg_find_bywidget((dlgparam *)((int)data + 4),w);" (assignment_expression "puVar3 = dlg_find_bywidget((dlgparam *)((int)data + 4),w)" identifier = (call_expression "dlg_find_bywidget((dlgparam *)((int)data + 4),w)" identifier (argument_list "((dlgparam *)((int)data + 4),w)" ( (cast_expression "(dlgparam *)((int)data + 4)" ( (type_descriptor "dlgparam *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 4)" ( (binary_expression "(int)data + 4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , identifier )))) ;) (if_statement "if (puVar3 != (uctrl *)0x0) {\n        puVar4 = (undefined4 *)safemalloc(1,8);\n        *puVar4 = puVar3;\n        puVar4[1] = data;\n        g_idle_add(draglist_valchange,puVar4);\n        return;\n      }" if (parenthesized_expression "(puVar3 != (uctrl *)0x0)" ( (binary_expression "puVar3 != (uctrl *)0x0" identifier != (cast_expression "(uctrl *)0x0" ( (type_descriptor "uctrl *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        puVar4 = (undefined4 *)safemalloc(1,8);\n        *puVar4 = puVar3;\n        puVar4[1] = data;\n        g_idle_add(draglist_valchange,puVar4);\n        return;\n      }" { (expression_statement "puVar4 = (undefined4 *)safemalloc(1,8);" (assignment_expression "puVar4 = (undefined4 *)safemalloc(1,8)" identifier = (cast_expression "(undefined4 *)safemalloc(1,8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,8)" identifier (argument_list "(1,8)" ( number_literal , number_literal ))))) ;) (expression_statement "*puVar4 = puVar3;" (assignment_expression "*puVar4 = puVar3" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar4[1] = data;" (assignment_expression "puVar4[1] = data" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "g_idle_add(draglist_valchange,puVar4);" (call_expression "g_idle_add(draglist_valchange,puVar4)" identifier (argument_list "(draglist_valchange,puVar4)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) })) })) (return_statement "return;" return ;) })))
(translation_unit "int __regparm1\nFUN_0004adf0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if ((*(byte *)(param_5 + 0x10) & 2) == 0) {\n    uVar1 = g_type_check_instance_cast(param_2,0x50);\n    uVar1 = g_object_get_data(uVar1,"user-data");\n    uVar2 = gtk_widget_get_type();\n    g_type_check_instance_cast(uVar1,uVar2);\n    param_1 = param_5 + 4;\n    if (*(int *)(param_5 + 4) != 0) {\n      param_1 = FUN_0004a900();\n      if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "int __regparm1\nFUN_0004adf0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if ((*(byte *)(param_5 + 0x10) & 2) == 0) {\n    uVar1 = g_type_check_instance_cast(param_2,0x50);\n    uVar1 = g_object_get_data(uVar1,"user-data");\n    uVar2 = gtk_widget_get_type();\n    g_type_check_instance_cast(uVar1,uVar2);\n    param_1 = param_5 + 4;\n    if (*(int *)(param_5 + 4) != 0) {\n      param_1 = FUN_0004a900();\n      if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }\n    }\n  }\n  return param_1;\n}" primitive_type (ERROR "__regparm1" identifier) (function_declarator "FUN_0004adf0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if ((*(byte *)(param_5 + 0x10) & 2) == 0) {\n    uVar1 = g_type_check_instance_cast(param_2,0x50);\n    uVar1 = g_object_get_data(uVar1,"user-data");\n    uVar2 = gtk_widget_get_type();\n    g_type_check_instance_cast(uVar1,uVar2);\n    param_1 = param_5 + 4;\n    if (*(int *)(param_5 + 4) != 0) {\n      param_1 = FUN_0004a900();\n      if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }\n    }\n  }\n  return param_1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if ((*(byte *)(param_5 + 0x10) & 2) == 0) {\n    uVar1 = g_type_check_instance_cast(param_2,0x50);\n    uVar1 = g_object_get_data(uVar1,"user-data");\n    uVar2 = gtk_widget_get_type();\n    g_type_check_instance_cast(uVar1,uVar2);\n    param_1 = param_5 + 4;\n    if (*(int *)(param_5 + 4) != 0) {\n      param_1 = FUN_0004a900();\n      if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }\n    }\n  }" if (parenthesized_expression "((*(byte *)(param_5 + 0x10) & 2) == 0)" ( (binary_expression "(*(byte *)(param_5 + 0x10) & 2) == 0" (parenthesized_expression "(*(byte *)(param_5 + 0x10) & 2)" ( (binary_expression "*(byte *)(param_5 + 0x10) & 2" (pointer_expression "*(byte *)(param_5 + 0x10)" * (cast_expression "(byte *)(param_5 + 0x10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x10)" ( (binary_expression "param_5 + 0x10" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar1 = g_type_check_instance_cast(param_2,0x50);\n    uVar1 = g_object_get_data(uVar1,"user-data");\n    uVar2 = gtk_widget_get_type();\n    g_type_check_instance_cast(uVar1,uVar2);\n    param_1 = param_5 + 4;\n    if (*(int *)(param_5 + 4) != 0) {\n      param_1 = FUN_0004a900();\n      if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }\n    }\n  }" { (expression_statement "uVar1 = g_type_check_instance_cast(param_2,0x50);" (assignment_expression "uVar1 = g_type_check_instance_cast(param_2,0x50)" identifier = (call_expression "g_type_check_instance_cast(param_2,0x50)" identifier (argument_list "(param_2,0x50)" ( identifier , number_literal )))) ;) (expression_statement "uVar1 = g_object_get_data(uVar1,"user-data");" (assignment_expression "uVar1 = g_object_get_data(uVar1,"user-data")" identifier = (call_expression "g_object_get_data(uVar1,"user-data")" identifier (argument_list "(uVar1,"user-data")" ( identifier , (string_literal ""user-data"" " string_content ") )))) ;) (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 "g_type_check_instance_cast(uVar1,uVar2);" (call_expression "g_type_check_instance_cast(uVar1,uVar2)" identifier (argument_list "(uVar1,uVar2)" ( identifier , identifier ))) ;) (expression_statement "param_1 = param_5 + 4;" (assignment_expression "param_1 = param_5 + 4" identifier = (binary_expression "param_5 + 4" identifier + number_literal)) ;) (if_statement "if (*(int *)(param_5 + 4) != 0) {\n      param_1 = FUN_0004a900();\n      if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }\n    }" if (parenthesized_expression "(*(int *)(param_5 + 4) != 0)" ( (binary_expression "*(int *)(param_5 + 4) != 0" (pointer_expression "*(int *)(param_5 + 4)" * (cast_expression "(int *)(param_5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 4)" ( (binary_expression "param_5 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      param_1 = FUN_0004a900();\n      if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }\n    }" { (expression_statement "param_1 = FUN_0004a900();" (assignment_expression "param_1 = FUN_0004a900()" identifier = (call_expression "FUN_0004a900()" identifier (argument_list "()" ( )))) ;) (if_statement "if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }" { (expression_statement "piVar3 = (int *)FUN_0002d1f0(1,8);" (assignment_expression "piVar3 = (int *)FUN_0002d1f0(1,8)" identifier = (cast_expression "(int *)FUN_0002d1f0(1,8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002d1f0(1,8)" identifier (argument_list "(1,8)" ( number_literal , number_literal ))))) ;) (expression_statement "*piVar3 = param_1;" (assignment_expression "*piVar3 = param_1" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "piVar3[1] = param_5;" (assignment_expression "piVar3[1] = param_5" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar4 = g_idle_add(FUN_0004a3a0,piVar3);" (assignment_expression "iVar4 = g_idle_add(FUN_0004a3a0,piVar3)" identifier = (call_expression "g_idle_add(FUN_0004a3a0,piVar3)" identifier (argument_list "(FUN_0004a3a0,piVar3)" ( identifier , identifier )))) ;) (return_statement "return iVar4;" return identifier ;) })) })) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (return_statement return IDENT ;) })) })) })) (return_statement return IDENT ;) })))
(function_definition "int __regparm1\nFUN_0004adf0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if ((*(byte *)(param_5 + 0x10) & 2) == 0) {\n    uVar1 = g_type_check_instance_cast(param_2,0x50);\n    uVar1 = g_object_get_data(uVar1,"user-data");\n    uVar2 = gtk_widget_get_type();\n    g_type_check_instance_cast(uVar1,uVar2);\n    param_1 = param_5 + 4;\n    if (*(int *)(param_5 + 4) != 0) {\n      param_1 = FUN_0004a900();\n      if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }\n    }\n  }\n  return param_1;\n}" (primitive_type "int") (ERROR "__regparm1" (identifier "__regparm1")) (function_declarator "FUN_0004adf0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)" (identifier "FUN_0004adf0") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if ((*(byte *)(param_5 + 0x10) & 2) == 0) {\n    uVar1 = g_type_check_instance_cast(param_2,0x50);\n    uVar1 = g_object_get_data(uVar1,"user-data");\n    uVar2 = gtk_widget_get_type();\n    g_type_check_instance_cast(uVar1,uVar2);\n    param_1 = param_5 + 4;\n    if (*(int *)(param_5 + 4) != 0) {\n      param_1 = FUN_0004a900();\n      if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }\n    }\n  }\n  return param_1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (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") (; ";")) (if_statement "if ((*(byte *)(param_5 + 0x10) & 2) == 0) {\n    uVar1 = g_type_check_instance_cast(param_2,0x50);\n    uVar1 = g_object_get_data(uVar1,"user-data");\n    uVar2 = gtk_widget_get_type();\n    g_type_check_instance_cast(uVar1,uVar2);\n    param_1 = param_5 + 4;\n    if (*(int *)(param_5 + 4) != 0) {\n      param_1 = FUN_0004a900();\n      if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_5 + 0x10) & 2) == 0)" (( "(") (binary_expression "(*(byte *)(param_5 + 0x10) & 2) == 0" (parenthesized_expression "(*(byte *)(param_5 + 0x10) & 2)" (( "(") (binary_expression "*(byte *)(param_5 + 0x10) & 2" (pointer_expression "*(byte *)(param_5 + 0x10)" (* "*") (cast_expression "(byte *)(param_5 + 0x10)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x10)" (( "(") (binary_expression "param_5 + 0x10" (identifier "param_5") (+ "+") (number_literal "0x10")) () ")")))) (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = g_type_check_instance_cast(param_2,0x50);\n    uVar1 = g_object_get_data(uVar1,"user-data");\n    uVar2 = gtk_widget_get_type();\n    g_type_check_instance_cast(uVar1,uVar2);\n    param_1 = param_5 + 4;\n    if (*(int *)(param_5 + 4) != 0) {\n      param_1 = FUN_0004a900();\n      if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }\n    }\n  }" ({ "{") (expression_statement "uVar1 = g_type_check_instance_cast(param_2,0x50);" (assignment_expression "uVar1 = g_type_check_instance_cast(param_2,0x50)" (identifier "uVar1") (= "=") (call_expression "g_type_check_instance_cast(param_2,0x50)" (identifier "g_type_check_instance_cast") (argument_list "(param_2,0x50)" (( "(") (identifier "param_2") (, ",") (number_literal "0x50") () ")")))) (; ";")) (expression_statement "uVar1 = g_object_get_data(uVar1,"user-data");" (assignment_expression "uVar1 = g_object_get_data(uVar1,"user-data")" (identifier "uVar1") (= "=") (call_expression "g_object_get_data(uVar1,"user-data")" (identifier "g_object_get_data") (argument_list "(uVar1,"user-data")" (( "(") (identifier "uVar1") (, ",") (string_literal ""user-data"" (" """) (string_content "user-data") (" """)) () ")")))) (; ";")) (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 "g_type_check_instance_cast(uVar1,uVar2);" (call_expression "g_type_check_instance_cast(uVar1,uVar2)" (identifier "g_type_check_instance_cast") (argument_list "(uVar1,uVar2)" (( "(") (identifier "uVar1") (, ",") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "param_1 = param_5 + 4;" (assignment_expression "param_1 = param_5 + 4" (identifier "param_1") (= "=") (binary_expression "param_5 + 4" (identifier "param_5") (+ "+") (number_literal "4"))) (; ";")) (if_statement "if (*(int *)(param_5 + 4) != 0) {\n      param_1 = FUN_0004a900();\n      if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)(param_5 + 4) != 0)" (( "(") (binary_expression "*(int *)(param_5 + 4) != 0" (pointer_expression "*(int *)(param_5 + 4)" (* "*") (cast_expression "(int *)(param_5 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 4)" (( "(") (binary_expression "param_5 + 4" (identifier "param_5") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      param_1 = FUN_0004a900();\n      if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }\n    }" ({ "{") (expression_statement "param_1 = FUN_0004a900();" (assignment_expression "param_1 = FUN_0004a900()" (identifier "param_1") (= "=") (call_expression "FUN_0004a900()" (identifier "FUN_0004a900") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (param_1 != 0) {\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        piVar3 = (int *)FUN_0002d1f0(1,8);\n        *piVar3 = param_1;\n        piVar3[1] = param_5;\n        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);\n        return iVar4;\n      }" ({ "{") (expression_statement "piVar3 = (int *)FUN_0002d1f0(1,8);" (assignment_expression "piVar3 = (int *)FUN_0002d1f0(1,8)" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_0002d1f0(1,8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0002d1f0(1,8)" (identifier "FUN_0002d1f0") (argument_list "(1,8)" (( "(") (number_literal "1") (, ",") (number_literal "8") () ")"))))) (; ";")) (expression_statement "*piVar3 = param_1;" (assignment_expression "*piVar3 = param_1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "piVar3[1] = param_5;" (assignment_expression "piVar3[1] = param_5" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_5")) (; ";")) (expression_statement "iVar4 = g_idle_add(FUN_0004a3a0,piVar3);" (assignment_expression "iVar4 = g_idle_add(FUN_0004a3a0,piVar3)" (identifier "iVar4") (= "=") (call_expression "g_idle_add(FUN_0004a3a0,piVar3)" (identifier "g_idle_add") (argument_list "(FUN_0004a3a0,piVar3)" (( "(") (identifier "FUN_0004a3a0") (, ",") (identifier "piVar3") () ")")))) (; ";")) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

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

void function_1(type_1 *treemodel,type_2 *path,type_3 *iter,type_4 data)

{
  type_5 uVar1;
  type_5 uVar2;
  type_6 *w;
  type_7 *var_5;
  type_5 *puVar4;
  
  if ((*(type_8 *)((int)data + 0x10) & 2) == 0) {
    uVar1 = var_1(treemodel,0x50);
    uVar1 = var_2(uVar1,"user-data");
    uVar2 = var_3();
    w = (type_6 *)var_1(uVar1,uVar2);
    if (*(int *)((int)data + 4) != 0) {
      var_5 = var_4((type_9 *)((int)data + 4),w);
      if (var_5 != (type_7 *)0x0) {
        puVar4 = (type_5 *)var_6(1,8);
        *puVar4 = var_5;
        puVar4[1] = data;
        var_7(draglist_valchange,puVar4);
        return;
      }
    }
  }
  return;
}


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

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

int __regparm1
MASKED(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)

{
  undefined4 uVar1;
  undefined4 uVar2;
  int *piVar3;
  int iVar4;
  
  if ((*(byte *)(param_5 + 0x10) & 2) == 0) {
    uVar1 = g_type_check_instance_cast(param_2,0x50);
    uVar1 = g_object_get_data(uVar1,"user-data");
    uVar2 = gtk_widget_get_type();
    g_type_check_instance_cast(uVar1,uVar2);
    param_1 = param_5 + 4;
    if (*(int *)(param_5 + 4) != 0) {
      param_1 = FUN_0004a900();
      if (param_1 != 0) {
        piVar3 = (int *)FUN_0002d1f0(1,8);
        *piVar3 = param_1;
        piVar3[1] = param_5;
        iVar4 = g_idle_add(FUN_0004a3a0,piVar3);
        return iVar4;
      }
    }
  }
  return param_1;
}

