
/* 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 */
/* WARNING: Enum "GdkEventType": Some values do not have unique names */

void init_clipboard(gui_data *inst)

{
  int iVar1;
  undefined4 uVar2;
  Display *disp;
  int in_GS_OFFSET;
  uchar empty [1];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  empty[0] = '\0';
  uVar2 = gdk_display_get_default();
  disp = (Display *)gdk_x11_display_get_xdisplay(uVar2);
  x11_ignore_error(disp,'\b');
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(disp,uVar2,9,0x1f,8,2,empty,0);
  x11_ignore_error(disp,'\b');
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(disp,uVar2,10,0x1f,8,2,empty,0);
  x11_ignore_error(disp,'\b');
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(disp,uVar2,0xb,0x1f,8,2,empty,0);
  x11_ignore_error(disp,'\b');
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(disp,uVar2,0xc,0x1f,8,2,empty,0);
  x11_ignore_error(disp,'\b');
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(disp,uVar2,0xd,0x1f,8,2,empty,0);
  x11_ignore_error(disp,'\b');
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(disp,uVar2,0xe,0x1f,8,2,empty,0);
  x11_ignore_error(disp,'\b');
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(disp,uVar2,0xf,0x1f,8,2,empty,0);
  x11_ignore_error(disp,'\b');
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(disp,uVar2,0x10,0x1f,8,2,empty,0);
  uVar2 = g_type_check_instance_cast(inst->area,0x50);
  g_signal_connect_data(uVar2,"selection_received",selection_received,inst,0,0);
  uVar2 = g_type_check_instance_cast(inst->area,0x50);
  g_signal_connect_data(uVar2,"selection_get",selection_get,inst,0,0);
  uVar2 = g_type_check_instance_cast(inst->area,0x50);
  g_signal_connect_data(uVar2,"selection_clear_event",selection_clear,inst,0,0);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void FUN_000b3dd0(int param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  int in_GS_OFFSET;
  undefined1 local_21;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xb3dd9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_21 = 0;
  uVar1 = gdk_display_get_default();
  uVar1 = gdk_x11_display_get_xdisplay(uVar1);
  FUN_000c32a0(uVar1,8);
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(uVar1,uVar2,9,0x1f,8,2,&local_21,0);
  FUN_000c32a0(uVar1,8);
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(uVar1,uVar2,10,0x1f,8,2,&local_21,0);
  FUN_000c32a0(uVar1,8);
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(uVar1,uVar2,0xb,0x1f,8,2,&local_21,0);
  FUN_000c32a0(uVar1,8);
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(uVar1,uVar2,0xc,0x1f,8,2,&local_21,0);
  FUN_000c32a0(uVar1,8);
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(uVar1,uVar2,0xd,0x1f,8,2,&local_21,0);
  FUN_000c32a0(uVar1,8);
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(uVar1,uVar2,0xe,0x1f,8,2,&local_21,0);
  FUN_000c32a0(uVar1,8);
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(uVar1,uVar2,0xf,0x1f,8,2,&local_21,0);
  FUN_000c32a0(uVar1,8);
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(uVar1,uVar2,0x10,0x1f,8,2,&local_21,0);
  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);
  g_signal_connect_data(uVar1,"selection_received",FUN_000b1bb0,param_1,0,0);
  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);
  g_signal_connect_data(uVar1,"selection_get",FUN_000b1b10,param_1,0,0);
  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);
  g_signal_connect_data(uVar1,"selection_clear_event",FUN_000b1a60,param_1,0,0);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000c60b0();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001c520
ADD EBX,0x86977
SUB ESP,0x1c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV EBP,dword ptr [ESP + 0x30]
MOV byte ptr [ESP + 0xb],0x0
CALL 0x0001ae70
SUB ESP,0xc
PUSH EAX
CALL 0x0001bff0
POP EDX
POP ECX
PUSH 0x8
PUSH EAX
MOV ESI,EAX
CALL 0x000c32a0
CALL 0x0001a7c0
PUSH 0x0
LEA EDI,[ESP + 0x1f]
PUSH EDI
PUSH 0x2
PUSH 0x8
PUSH 0x1f
PUSH 0x9
PUSH EAX
PUSH ESI
CALL 0x0001ade0
ADD ESP,0x28
PUSH 0x8
PUSH ESI
CALL 0x000c32a0
CALL 0x0001a7c0
PUSH 0x0
PUSH EDI
PUSH 0x2
PUSH 0x8
PUSH 0x1f
PUSH 0xa
PUSH EAX
PUSH ESI
CALL 0x0001ade0
ADD ESP,0x28
PUSH 0x8
PUSH ESI
CALL 0x000c32a0
CALL 0x0001a7c0
PUSH 0x0
PUSH EDI
PUSH 0x2
PUSH 0x8
PUSH 0x1f
PUSH 0xb
PUSH EAX
PUSH ESI
CALL 0x0001ade0
ADD ESP,0x28
PUSH 0x8
PUSH ESI
CALL 0x000c32a0
CALL 0x0001a7c0
PUSH 0x0
PUSH EDI
PUSH 0x2
PUSH 0x8
PUSH 0x1f
PUSH 0xc
PUSH EAX
PUSH ESI
CALL 0x0001ade0
ADD ESP,0x28
PUSH 0x8
PUSH ESI
CALL 0x000c32a0
CALL 0x0001a7c0
PUSH 0x0
PUSH EDI
PUSH 0x2
PUSH 0x8
PUSH 0x1f
PUSH 0xd
PUSH EAX
PUSH ESI
CALL 0x0001ade0
ADD ESP,0x28
PUSH 0x8
PUSH ESI
CALL 0x000c32a0
CALL 0x0001a7c0
PUSH 0x0
PUSH EDI
PUSH 0x2
PUSH 0x8
PUSH 0x1f
PUSH 0xe
PUSH EAX
PUSH ESI
CALL 0x0001ade0
ADD ESP,0x28
PUSH 0x8
PUSH ESI
CALL 0x000c32a0
CALL 0x0001a7c0
PUSH 0x0
PUSH EDI
PUSH 0x2
PUSH 0x8
PUSH 0x1f
PUSH 0xf
PUSH EAX
PUSH ESI
CALL 0x0001ade0
ADD ESP,0x28
PUSH 0x8
PUSH ESI
CALL 0x000c32a0
CALL 0x0001a7c0
PUSH 0x0
PUSH EDI
PUSH 0x2
PUSH 0x8
PUSH 0x1f
PUSH 0x10
PUSH EAX
PUSH ESI
CALL 0x0001ade0
ADD ESP,0x28
PUSH 0x50
PUSH dword ptr [EBP + 0x4]
CALL 0x0001a5e0
LEA EDX,[EBX + 0xfff77460]
POP ESI
POP EDI
PUSH 0x0
PUSH 0x0
PUSH EBP
PUSH EDX
LEA EDX,[EBX + 0xfffb55ea]
PUSH EDX
PUSH EAX
CALL 0x0001afe0
ADD ESP,0x18
PUSH 0x50
PUSH dword ptr [EBP + 0x4]
CALL 0x0001a5e0
POP EDX
LEA EDX,[EBX + 0xfff773c0]
POP ECX
PUSH 0x0
PUSH 0x0
PUSH EBP
PUSH EDX
LEA EDX,[EBX + 0xfffb36b4]
PUSH EDX
PUSH EAX
CALL 0x0001afe0
ADD ESP,0x18
PUSH 0x50
PUSH dword ptr [EBP + 0x4]
CALL 0x0001a5e0
LEA EDX,[EBX + 0xfff77310]
POP ESI
POP EDI
PUSH 0x0
PUSH 0x0
PUSH EBP
PUSH EDX
LEA EDX,[EBX + 0xfffb36c2]
PUSH EDX
PUSH EAX
CALL 0x0001afe0
ADD ESP,0x20
MOV EAX,dword ptr [ESP + 0xc]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x000b3faa
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x000c60b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000b3dd0(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xb3dd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_21 = 0;\n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,9,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,10,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xb,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xc,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xd,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xe,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xf,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0x10,0x1f,8,2,&local_21,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_received",FUN_000b1bb0,param_1,0,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_get",FUN_000b1b10,param_1,0,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_clear_event",FUN_000b1a60,param_1,0,0);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000c60b0();\n}\n\n" comment (function_definition "void FUN_000b3dd0(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xb3dd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_21 = 0;\n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,9,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,10,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xb,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xc,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xd,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xe,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xf,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0x10,0x1f,8,2,&local_21,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_received",FUN_000b1bb0,param_1,0,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_get",FUN_000b1b10,param_1,0,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_clear_event",FUN_000b1a60,param_1,0,0);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000c60b0();\n}" primitive_type (function_declarator "FUN_000b3dd0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xb3dd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_21 = 0;\n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,9,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,10,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xb,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xc,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xd,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xe,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xf,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0x10,0x1f,8,2,&local_21,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_received",FUN_000b1bb0,param_1,0,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_get",FUN_000b1b10,param_1,0,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_clear_event",FUN_000b1a60,param_1,0,0);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000c60b0();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_21;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xb3dd9;" (assignment_expression "uStack_14 = 0xb3dd9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_21 = 0;" (assignment_expression "local_21 = 0" identifier = number_literal) ;) (expression_statement "uVar1 = gdk_display_get_default();" (assignment_expression "uVar1 = gdk_display_get_default()" identifier = (call_expression "gdk_display_get_default()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar1 = gdk_x11_display_get_xdisplay(uVar1);" (assignment_expression "uVar1 = gdk_x11_display_get_xdisplay(uVar1)" identifier = (call_expression "gdk_x11_display_get_xdisplay(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" identifier (argument_list "(uVar1,8)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(uVar1,uVar2,9,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,9,0x1f,8,2,&local_21,0)" identifier (argument_list "(uVar1,uVar2,9,0x1f,8,2,&local_21,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" identifier (argument_list "(uVar1,8)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(uVar1,uVar2,10,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,10,0x1f,8,2,&local_21,0)" identifier (argument_list "(uVar1,uVar2,10,0x1f,8,2,&local_21,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" identifier (argument_list "(uVar1,8)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(uVar1,uVar2,0xb,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,0xb,0x1f,8,2,&local_21,0)" identifier (argument_list "(uVar1,uVar2,0xb,0x1f,8,2,&local_21,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" identifier (argument_list "(uVar1,8)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(uVar1,uVar2,0xc,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,0xc,0x1f,8,2,&local_21,0)" identifier (argument_list "(uVar1,uVar2,0xc,0x1f,8,2,&local_21,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" identifier (argument_list "(uVar1,8)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(uVar1,uVar2,0xd,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,0xd,0x1f,8,2,&local_21,0)" identifier (argument_list "(uVar1,uVar2,0xd,0x1f,8,2,&local_21,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" identifier (argument_list "(uVar1,8)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(uVar1,uVar2,0xe,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,0xe,0x1f,8,2,&local_21,0)" identifier (argument_list "(uVar1,uVar2,0xe,0x1f,8,2,&local_21,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" identifier (argument_list "(uVar1,8)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(uVar1,uVar2,0xf,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,0xf,0x1f,8,2,&local_21,0)" identifier (argument_list "(uVar1,uVar2,0xf,0x1f,8,2,&local_21,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" identifier (argument_list "(uVar1,8)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(uVar1,uVar2,0x10,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,0x10,0x1f,8,2,&local_21,0)" identifier (argument_list "(uVar1,uVar2,0x10,0x1f,8,2,&local_21,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);" (assignment_expression "uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50)" identifier = (call_expression "g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50)" identifier (argument_list "(*(undefined4 *)(param_1 + 4),0x50)" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar1,"selection_received",FUN_000b1bb0,param_1,0,0);" (call_expression "g_signal_connect_data(uVar1,"selection_received",FUN_000b1bb0,param_1,0,0)" identifier (argument_list "(uVar1,"selection_received",FUN_000b1bb0,param_1,0,0)" ( identifier , (string_literal ""selection_received"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);" (assignment_expression "uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50)" identifier = (call_expression "g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50)" identifier (argument_list "(*(undefined4 *)(param_1 + 4),0x50)" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar1,"selection_get",FUN_000b1b10,param_1,0,0);" (call_expression "g_signal_connect_data(uVar1,"selection_get",FUN_000b1b10,param_1,0,0)" identifier (argument_list "(uVar1,"selection_get",FUN_000b1b10,param_1,0,0)" ( identifier , (string_literal ""selection_get"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);" (assignment_expression "uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50)" identifier = (call_expression "g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50)" identifier (argument_list "(*(undefined4 *)(param_1 + 4),0x50)" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar1,"selection_clear_event",FUN_000b1a60,param_1,0,0);" (call_expression "g_signal_connect_data(uVar1,"selection_clear_event",FUN_000b1a60,param_1,0,0)" identifier (argument_list "(uVar1,"selection_clear_event",FUN_000b1a60,param_1,0,0)" ( identifier , (string_literal ""selection_clear_event"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_000c60b0();" (call_expression "FUN_000c60b0()" identifier (argument_list "()" ( ))) ;) })))
(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/* WARNING: Enum "GdkEventType": Some values do not have unique names */\n\nvoid init_clipboard(gui_data *inst)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  Display *disp;\n  int in_GS_OFFSET;\n  uchar empty [1];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  empty[0] = '\0';\n  uVar2 = gdk_display_get_default();\n  disp = (Display *)gdk_x11_display_get_xdisplay(uVar2);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,9,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,10,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,0xb,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,0xc,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,0xd,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,0xe,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,0xf,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,0x10,0x1f,8,2,empty,0);\n  uVar2 = g_type_check_instance_cast(inst->area,0x50);\n  g_signal_connect_data(uVar2,"selection_received",selection_received,inst,0,0);\n  uVar2 = g_type_check_instance_cast(inst->area,0x50);\n  g_signal_connect_data(uVar2,"selection_get",selection_get,inst,0,0);\n  uVar2 = g_type_check_instance_cast(inst->area,0x50);\n  g_signal_connect_data(uVar2,"selection_clear_event",selection_clear,inst,0,0);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment comment comment (function_definition "void init_clipboard(gui_data *inst)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  Display *disp;\n  int in_GS_OFFSET;\n  uchar empty [1];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  empty[0] = '\0';\n  uVar2 = gdk_display_get_default();\n  disp = (Display *)gdk_x11_display_get_xdisplay(uVar2);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,9,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,10,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,0xb,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,0xc,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,0xd,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,0xe,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,0xf,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,0x10,0x1f,8,2,empty,0);\n  uVar2 = g_type_check_instance_cast(inst->area,0x50);\n  g_signal_connect_data(uVar2,"selection_received",selection_received,inst,0,0);\n  uVar2 = g_type_check_instance_cast(inst->area,0x50);\n  g_signal_connect_data(uVar2,"selection_get",selection_get,inst,0,0);\n  uVar2 = g_type_check_instance_cast(inst->area,0x50);\n  g_signal_connect_data(uVar2,"selection_clear_event",selection_clear,inst,0,0);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "init_clipboard(gui_data *inst)" identifier (parameter_list "(gui_data *inst)" ( (parameter_declaration "gui_data *inst" type_identifier (pointer_declarator "*inst" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  Display *disp;\n  int in_GS_OFFSET;\n  uchar empty [1];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  empty[0] = '\0';\n  uVar2 = gdk_display_get_default();\n  disp = (Display *)gdk_x11_display_get_xdisplay(uVar2);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,9,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,10,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,0xb,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,0xc,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,0xd,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,0xe,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,0xf,0x1f,8,2,empty,0);\n  x11_ignore_error(disp,'\b');\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(disp,uVar2,0x10,0x1f,8,2,empty,0);\n  uVar2 = g_type_check_instance_cast(inst->area,0x50);\n  g_signal_connect_data(uVar2,"selection_received",selection_received,inst,0,0);\n  uVar2 = g_type_check_instance_cast(inst->area,0x50);\n  g_signal_connect_data(uVar2,"selection_get",selection_get,inst,0,0);\n  uVar2 = g_type_check_instance_cast(inst->area,0x50);\n  g_signal_connect_data(uVar2,"selection_clear_event",selection_clear,inst,0,0);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "Display *disp;" type_identifier (pointer_declarator "*disp" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uchar empty [1];" type_identifier (array_declarator "empty [1]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "empty[0] = '\0';" (assignment_expression "empty[0] = '\0'" (subscript_expression "empty[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "uVar2 = gdk_display_get_default();" (assignment_expression "uVar2 = gdk_display_get_default()" identifier = (call_expression "gdk_display_get_default()" identifier (argument_list "()" ( )))) ;) (expression_statement "disp = (Display *)gdk_x11_display_get_xdisplay(uVar2);" (assignment_expression "disp = (Display *)gdk_x11_display_get_xdisplay(uVar2)" identifier = (cast_expression "(Display *)gdk_x11_display_get_xdisplay(uVar2)" ( (type_descriptor "Display *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "gdk_x11_display_get_xdisplay(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))))) ;) (expression_statement "x11_ignore_error(disp,'\b');" (call_expression "x11_ignore_error(disp,'\b')" identifier (argument_list "(disp,'\b')" ( identifier , (char_literal "'\b'" ' escape_sequence ') ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(disp,uVar2,9,0x1f,8,2,empty,0);" (call_expression "XChangeProperty(disp,uVar2,9,0x1f,8,2,empty,0)" identifier (argument_list "(disp,uVar2,9,0x1f,8,2,empty,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , identifier , number_literal ))) ;) (expression_statement "x11_ignore_error(disp,'\b');" (call_expression "x11_ignore_error(disp,'\b')" identifier (argument_list "(disp,'\b')" ( identifier , (char_literal "'\b'" ' escape_sequence ') ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(disp,uVar2,10,0x1f,8,2,empty,0);" (call_expression "XChangeProperty(disp,uVar2,10,0x1f,8,2,empty,0)" identifier (argument_list "(disp,uVar2,10,0x1f,8,2,empty,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , identifier , number_literal ))) ;) (expression_statement "x11_ignore_error(disp,'\b');" (call_expression "x11_ignore_error(disp,'\b')" identifier (argument_list "(disp,'\b')" ( identifier , (char_literal "'\b'" ' escape_sequence ') ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(disp,uVar2,0xb,0x1f,8,2,empty,0);" (call_expression "XChangeProperty(disp,uVar2,0xb,0x1f,8,2,empty,0)" identifier (argument_list "(disp,uVar2,0xb,0x1f,8,2,empty,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , identifier , number_literal ))) ;) (expression_statement "x11_ignore_error(disp,'\b');" (call_expression "x11_ignore_error(disp,'\b')" identifier (argument_list "(disp,'\b')" ( identifier , (char_literal "'\b'" ' escape_sequence ') ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(disp,uVar2,0xc,0x1f,8,2,empty,0);" (call_expression "XChangeProperty(disp,uVar2,0xc,0x1f,8,2,empty,0)" identifier (argument_list "(disp,uVar2,0xc,0x1f,8,2,empty,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , identifier , number_literal ))) ;) (expression_statement "x11_ignore_error(disp,'\b');" (call_expression "x11_ignore_error(disp,'\b')" identifier (argument_list "(disp,'\b')" ( identifier , (char_literal "'\b'" ' escape_sequence ') ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(disp,uVar2,0xd,0x1f,8,2,empty,0);" (call_expression "XChangeProperty(disp,uVar2,0xd,0x1f,8,2,empty,0)" identifier (argument_list "(disp,uVar2,0xd,0x1f,8,2,empty,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , identifier , number_literal ))) ;) (expression_statement "x11_ignore_error(disp,'\b');" (call_expression "x11_ignore_error(disp,'\b')" identifier (argument_list "(disp,'\b')" ( identifier , (char_literal "'\b'" ' escape_sequence ') ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(disp,uVar2,0xe,0x1f,8,2,empty,0);" (call_expression "XChangeProperty(disp,uVar2,0xe,0x1f,8,2,empty,0)" identifier (argument_list "(disp,uVar2,0xe,0x1f,8,2,empty,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , identifier , number_literal ))) ;) (expression_statement "x11_ignore_error(disp,'\b');" (call_expression "x11_ignore_error(disp,'\b')" identifier (argument_list "(disp,'\b')" ( identifier , (char_literal "'\b'" ' escape_sequence ') ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(disp,uVar2,0xf,0x1f,8,2,empty,0);" (call_expression "XChangeProperty(disp,uVar2,0xf,0x1f,8,2,empty,0)" identifier (argument_list "(disp,uVar2,0xf,0x1f,8,2,empty,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , identifier , number_literal ))) ;) (expression_statement "x11_ignore_error(disp,'\b');" (call_expression "x11_ignore_error(disp,'\b')" identifier (argument_list "(disp,'\b')" ( identifier , (char_literal "'\b'" ' escape_sequence ') ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(disp,uVar2,0x10,0x1f,8,2,empty,0);" (call_expression "XChangeProperty(disp,uVar2,0x10,0x1f,8,2,empty,0)" identifier (argument_list "(disp,uVar2,0x10,0x1f,8,2,empty,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , identifier , number_literal ))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(inst->area,0x50);" (assignment_expression "uVar2 = g_type_check_instance_cast(inst->area,0x50)" identifier = (call_expression "g_type_check_instance_cast(inst->area,0x50)" identifier (argument_list "(inst->area,0x50)" ( (field_expression "inst->area" identifier -> field_identifier) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar2,"selection_received",selection_received,inst,0,0);" (call_expression "g_signal_connect_data(uVar2,"selection_received",selection_received,inst,0,0)" identifier (argument_list "(uVar2,"selection_received",selection_received,inst,0,0)" ( identifier , (string_literal ""selection_received"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(inst->area,0x50);" (assignment_expression "uVar2 = g_type_check_instance_cast(inst->area,0x50)" identifier = (call_expression "g_type_check_instance_cast(inst->area,0x50)" identifier (argument_list "(inst->area,0x50)" ( (field_expression "inst->area" identifier -> field_identifier) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar2,"selection_get",selection_get,inst,0,0);" (call_expression "g_signal_connect_data(uVar2,"selection_get",selection_get,inst,0,0)" identifier (argument_list "(uVar2,"selection_get",selection_get,inst,0,0)" ( identifier , (string_literal ""selection_get"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(inst->area,0x50);" (assignment_expression "uVar2 = g_type_check_instance_cast(inst->area,0x50)" identifier = (call_expression "g_type_check_instance_cast(inst->area,0x50)" identifier (argument_list "(inst->area,0x50)" ( (field_expression "inst->area" identifier -> field_identifier) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar2,"selection_clear_event",selection_clear,inst,0,0);" (call_expression "g_signal_connect_data(uVar2,"selection_clear_event",selection_clear,inst,0,0)" identifier (argument_list "(uVar2,"selection_clear_event",selection_clear,inst,0,0)" ( identifier , (string_literal ""selection_clear_event"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_000b3dd0(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xb3dd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_21 = 0;\n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,9,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,10,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xb,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xc,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xd,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xe,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xf,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0x10,0x1f,8,2,&local_21,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_received",FUN_000b1bb0,param_1,0,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_get",FUN_000b1b10,param_1,0,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_clear_event",FUN_000b1a60,param_1,0,0);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000c60b0();\n}\n\n" (function_definition "void FUN_000b3dd0(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xb3dd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_21 = 0;\n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,9,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,10,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xb,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xc,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xd,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xe,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xf,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0x10,0x1f,8,2,&local_21,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_received",FUN_000b1bb0,param_1,0,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_get",FUN_000b1b10,param_1,0,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_clear_event",FUN_000b1a60,param_1,0,0);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000c60b0();\n}" primitive_type (function_declarator "FUN_000b3dd0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xb3dd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_21 = 0;\n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,9,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,10,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xb,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xc,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xd,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xe,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xf,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0x10,0x1f,8,2,&local_21,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_received",FUN_000b1bb0,param_1,0,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_get",FUN_000b1b10,param_1,0,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_clear_event",FUN_000b1a60,param_1,0,0);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000c60b0();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_21;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xb3dd9;" (assignment_expression "uStack_14 = 0xb3dd9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_21 = 0;" (assignment_expression "local_21 = 0" identifier = number_literal) ;) (expression_statement "uVar1 = gdk_display_get_default();" (assignment_expression "uVar1 = gdk_display_get_default()" identifier = (call_expression "gdk_display_get_default()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar1 = gdk_x11_display_get_xdisplay(uVar1);" (assignment_expression "uVar1 = gdk_x11_display_get_xdisplay(uVar1)" identifier = (call_expression "gdk_x11_display_get_xdisplay(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" identifier (argument_list "(uVar1,8)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(uVar1,uVar2,9,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,9,0x1f,8,2,&local_21,0)" identifier (argument_list "(uVar1,uVar2,9,0x1f,8,2,&local_21,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" identifier (argument_list "(uVar1,8)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(uVar1,uVar2,10,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,10,0x1f,8,2,&local_21,0)" identifier (argument_list "(uVar1,uVar2,10,0x1f,8,2,&local_21,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" identifier (argument_list "(uVar1,8)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(uVar1,uVar2,0xb,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,0xb,0x1f,8,2,&local_21,0)" identifier (argument_list "(uVar1,uVar2,0xb,0x1f,8,2,&local_21,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" identifier (argument_list "(uVar1,8)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(uVar1,uVar2,0xc,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,0xc,0x1f,8,2,&local_21,0)" identifier (argument_list "(uVar1,uVar2,0xc,0x1f,8,2,&local_21,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" identifier (argument_list "(uVar1,8)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(uVar1,uVar2,0xd,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,0xd,0x1f,8,2,&local_21,0)" identifier (argument_list "(uVar1,uVar2,0xd,0x1f,8,2,&local_21,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" identifier (argument_list "(uVar1,8)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(uVar1,uVar2,0xe,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,0xe,0x1f,8,2,&local_21,0)" identifier (argument_list "(uVar1,uVar2,0xe,0x1f,8,2,&local_21,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" identifier (argument_list "(uVar1,8)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(uVar1,uVar2,0xf,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,0xf,0x1f,8,2,&local_21,0)" identifier (argument_list "(uVar1,uVar2,0xf,0x1f,8,2,&local_21,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" identifier (argument_list "(uVar1,8)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" identifier = (call_expression "gdk_x11_get_default_root_xwindow()" identifier (argument_list "()" ( )))) ;) (expression_statement "XChangeProperty(uVar1,uVar2,0x10,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,0x10,0x1f,8,2,&local_21,0)" identifier (argument_list "(uVar1,uVar2,0x10,0x1f,8,2,&local_21,0)" ( identifier , identifier , number_literal , number_literal , number_literal , number_literal , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);" (assignment_expression "uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50)" identifier = (call_expression "g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50)" identifier (argument_list "(*(undefined4 *)(param_1 + 4),0x50)" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar1,"selection_received",FUN_000b1bb0,param_1,0,0);" (call_expression "g_signal_connect_data(uVar1,"selection_received",FUN_000b1bb0,param_1,0,0)" identifier (argument_list "(uVar1,"selection_received",FUN_000b1bb0,param_1,0,0)" ( identifier , (string_literal ""selection_received"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);" (assignment_expression "uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50)" identifier = (call_expression "g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50)" identifier (argument_list "(*(undefined4 *)(param_1 + 4),0x50)" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar1,"selection_get",FUN_000b1b10,param_1,0,0);" (call_expression "g_signal_connect_data(uVar1,"selection_get",FUN_000b1b10,param_1,0,0)" identifier (argument_list "(uVar1,"selection_get",FUN_000b1b10,param_1,0,0)" ( identifier , (string_literal ""selection_get"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);" (assignment_expression "uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50)" identifier = (call_expression "g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50)" identifier (argument_list "(*(undefined4 *)(param_1 + 4),0x50)" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "g_signal_connect_data(uVar1,"selection_clear_event",FUN_000b1a60,param_1,0,0);" (call_expression "g_signal_connect_data(uVar1,"selection_clear_event",FUN_000b1a60,param_1,0,0)" identifier (argument_list "(uVar1,"selection_clear_event",FUN_000b1a60,param_1,0,0)" ( identifier , (string_literal ""selection_clear_event"" " string_content ") , identifier , identifier , number_literal , number_literal ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_000c60b0();" (call_expression "FUN_000c60b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , LIT , LIT , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , LIT , LIT , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , LIT , LIT , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , LIT , LIT , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , LIT , LIT , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , LIT , LIT , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , LIT , LIT , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , LIT , LIT , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT , LIT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_000b3dd0(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xb3dd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_21 = 0;\n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,9,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,10,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xb,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xc,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xd,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xe,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xf,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0x10,0x1f,8,2,&local_21,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_received",FUN_000b1bb0,param_1,0,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_get",FUN_000b1b10,param_1,0,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_clear_event",FUN_000b1a60,param_1,0,0);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000c60b0();\n}" (primitive_type "void") (function_declarator "FUN_000b3dd0(int param_1)" (identifier "FUN_000b3dd0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int in_GS_OFFSET;\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xb3dd9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_21 = 0;\n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,9,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,10,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xb,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xc,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xd,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xe,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0xf,0x1f,8,2,&local_21,0);\n  FUN_000c32a0(uVar1,8);\n  uVar2 = gdk_x11_get_default_root_xwindow();\n  XChangeProperty(uVar1,uVar2,0x10,0x1f,8,2,&local_21,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_received",FUN_000b1bb0,param_1,0,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_get",FUN_000b1b10,param_1,0,0);\n  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);\n  g_signal_connect_data(uVar1,"selection_clear_event",FUN_000b1a60,param_1,0,0);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000c60b0();\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined1 local_21;" (type_identifier "undefined1") (identifier "local_21") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0xb3dd9;" (assignment_expression "uStack_14 = 0xb3dd9" (identifier "uStack_14") (= "=") (number_literal "0xb3dd9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_21 = 0;" (assignment_expression "local_21 = 0" (identifier "local_21") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = gdk_display_get_default();" (assignment_expression "uVar1 = gdk_display_get_default()" (identifier "uVar1") (= "=") (call_expression "gdk_display_get_default()" (identifier "gdk_display_get_default") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar1 = gdk_x11_display_get_xdisplay(uVar1);" (assignment_expression "uVar1 = gdk_x11_display_get_xdisplay(uVar1)" (identifier "uVar1") (= "=") (call_expression "gdk_x11_display_get_xdisplay(uVar1)" (identifier "gdk_x11_display_get_xdisplay") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" (identifier "FUN_000c32a0") (argument_list "(uVar1,8)" (( "(") (identifier "uVar1") (, ",") (number_literal "8") () ")"))) (; ";")) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" (identifier "uVar2") (= "=") (call_expression "gdk_x11_get_default_root_xwindow()" (identifier "gdk_x11_get_default_root_xwindow") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "XChangeProperty(uVar1,uVar2,9,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,9,0x1f,8,2,&local_21,0)" (identifier "XChangeProperty") (argument_list "(uVar1,uVar2,9,0x1f,8,2,&local_21,0)" (( "(") (identifier "uVar1") (, ",") (identifier "uVar2") (, ",") (number_literal "9") (, ",") (number_literal "0x1f") (, ",") (number_literal "8") (, ",") (number_literal "2") (, ",") (pointer_expression "&local_21" (& "&") (identifier "local_21")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" (identifier "FUN_000c32a0") (argument_list "(uVar1,8)" (( "(") (identifier "uVar1") (, ",") (number_literal "8") () ")"))) (; ";")) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" (identifier "uVar2") (= "=") (call_expression "gdk_x11_get_default_root_xwindow()" (identifier "gdk_x11_get_default_root_xwindow") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "XChangeProperty(uVar1,uVar2,10,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,10,0x1f,8,2,&local_21,0)" (identifier "XChangeProperty") (argument_list "(uVar1,uVar2,10,0x1f,8,2,&local_21,0)" (( "(") (identifier "uVar1") (, ",") (identifier "uVar2") (, ",") (number_literal "10") (, ",") (number_literal "0x1f") (, ",") (number_literal "8") (, ",") (number_literal "2") (, ",") (pointer_expression "&local_21" (& "&") (identifier "local_21")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" (identifier "FUN_000c32a0") (argument_list "(uVar1,8)" (( "(") (identifier "uVar1") (, ",") (number_literal "8") () ")"))) (; ";")) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" (identifier "uVar2") (= "=") (call_expression "gdk_x11_get_default_root_xwindow()" (identifier "gdk_x11_get_default_root_xwindow") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "XChangeProperty(uVar1,uVar2,0xb,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,0xb,0x1f,8,2,&local_21,0)" (identifier "XChangeProperty") (argument_list "(uVar1,uVar2,0xb,0x1f,8,2,&local_21,0)" (( "(") (identifier "uVar1") (, ",") (identifier "uVar2") (, ",") (number_literal "0xb") (, ",") (number_literal "0x1f") (, ",") (number_literal "8") (, ",") (number_literal "2") (, ",") (pointer_expression "&local_21" (& "&") (identifier "local_21")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" (identifier "FUN_000c32a0") (argument_list "(uVar1,8)" (( "(") (identifier "uVar1") (, ",") (number_literal "8") () ")"))) (; ";")) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" (identifier "uVar2") (= "=") (call_expression "gdk_x11_get_default_root_xwindow()" (identifier "gdk_x11_get_default_root_xwindow") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "XChangeProperty(uVar1,uVar2,0xc,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,0xc,0x1f,8,2,&local_21,0)" (identifier "XChangeProperty") (argument_list "(uVar1,uVar2,0xc,0x1f,8,2,&local_21,0)" (( "(") (identifier "uVar1") (, ",") (identifier "uVar2") (, ",") (number_literal "0xc") (, ",") (number_literal "0x1f") (, ",") (number_literal "8") (, ",") (number_literal "2") (, ",") (pointer_expression "&local_21" (& "&") (identifier "local_21")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" (identifier "FUN_000c32a0") (argument_list "(uVar1,8)" (( "(") (identifier "uVar1") (, ",") (number_literal "8") () ")"))) (; ";")) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" (identifier "uVar2") (= "=") (call_expression "gdk_x11_get_default_root_xwindow()" (identifier "gdk_x11_get_default_root_xwindow") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "XChangeProperty(uVar1,uVar2,0xd,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,0xd,0x1f,8,2,&local_21,0)" (identifier "XChangeProperty") (argument_list "(uVar1,uVar2,0xd,0x1f,8,2,&local_21,0)" (( "(") (identifier "uVar1") (, ",") (identifier "uVar2") (, ",") (number_literal "0xd") (, ",") (number_literal "0x1f") (, ",") (number_literal "8") (, ",") (number_literal "2") (, ",") (pointer_expression "&local_21" (& "&") (identifier "local_21")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" (identifier "FUN_000c32a0") (argument_list "(uVar1,8)" (( "(") (identifier "uVar1") (, ",") (number_literal "8") () ")"))) (; ";")) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" (identifier "uVar2") (= "=") (call_expression "gdk_x11_get_default_root_xwindow()" (identifier "gdk_x11_get_default_root_xwindow") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "XChangeProperty(uVar1,uVar2,0xe,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,0xe,0x1f,8,2,&local_21,0)" (identifier "XChangeProperty") (argument_list "(uVar1,uVar2,0xe,0x1f,8,2,&local_21,0)" (( "(") (identifier "uVar1") (, ",") (identifier "uVar2") (, ",") (number_literal "0xe") (, ",") (number_literal "0x1f") (, ",") (number_literal "8") (, ",") (number_literal "2") (, ",") (pointer_expression "&local_21" (& "&") (identifier "local_21")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" (identifier "FUN_000c32a0") (argument_list "(uVar1,8)" (( "(") (identifier "uVar1") (, ",") (number_literal "8") () ")"))) (; ";")) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" (identifier "uVar2") (= "=") (call_expression "gdk_x11_get_default_root_xwindow()" (identifier "gdk_x11_get_default_root_xwindow") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "XChangeProperty(uVar1,uVar2,0xf,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,0xf,0x1f,8,2,&local_21,0)" (identifier "XChangeProperty") (argument_list "(uVar1,uVar2,0xf,0x1f,8,2,&local_21,0)" (( "(") (identifier "uVar1") (, ",") (identifier "uVar2") (, ",") (number_literal "0xf") (, ",") (number_literal "0x1f") (, ",") (number_literal "8") (, ",") (number_literal "2") (, ",") (pointer_expression "&local_21" (& "&") (identifier "local_21")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_000c32a0(uVar1,8);" (call_expression "FUN_000c32a0(uVar1,8)" (identifier "FUN_000c32a0") (argument_list "(uVar1,8)" (( "(") (identifier "uVar1") (, ",") (number_literal "8") () ")"))) (; ";")) (expression_statement "uVar2 = gdk_x11_get_default_root_xwindow();" (assignment_expression "uVar2 = gdk_x11_get_default_root_xwindow()" (identifier "uVar2") (= "=") (call_expression "gdk_x11_get_default_root_xwindow()" (identifier "gdk_x11_get_default_root_xwindow") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "XChangeProperty(uVar1,uVar2,0x10,0x1f,8,2,&local_21,0);" (call_expression "XChangeProperty(uVar1,uVar2,0x10,0x1f,8,2,&local_21,0)" (identifier "XChangeProperty") (argument_list "(uVar1,uVar2,0x10,0x1f,8,2,&local_21,0)" (( "(") (identifier "uVar1") (, ",") (identifier "uVar2") (, ",") (number_literal "0x10") (, ",") (number_literal "0x1f") (, ",") (number_literal "8") (, ",") (number_literal "2") (, ",") (pointer_expression "&local_21" (& "&") (identifier "local_21")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);" (assignment_expression "uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50)" (identifier "uVar1") (= "=") (call_expression "g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50)" (identifier "g_type_check_instance_cast") (argument_list "(*(undefined4 *)(param_1 + 4),0x50)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (, ",") (number_literal "0x50") () ")")))) (; ";")) (expression_statement "g_signal_connect_data(uVar1,"selection_received",FUN_000b1bb0,param_1,0,0);" (call_expression "g_signal_connect_data(uVar1,"selection_received",FUN_000b1bb0,param_1,0,0)" (identifier "g_signal_connect_data") (argument_list "(uVar1,"selection_received",FUN_000b1bb0,param_1,0,0)" (( "(") (identifier "uVar1") (, ",") (string_literal ""selection_received"" (" """) (string_content "selection_received") (" """)) (, ",") (identifier "FUN_000b1bb0") (, ",") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);" (assignment_expression "uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50)" (identifier "uVar1") (= "=") (call_expression "g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50)" (identifier "g_type_check_instance_cast") (argument_list "(*(undefined4 *)(param_1 + 4),0x50)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (, ",") (number_literal "0x50") () ")")))) (; ";")) (expression_statement "g_signal_connect_data(uVar1,"selection_get",FUN_000b1b10,param_1,0,0);" (call_expression "g_signal_connect_data(uVar1,"selection_get",FUN_000b1b10,param_1,0,0)" (identifier "g_signal_connect_data") (argument_list "(uVar1,"selection_get",FUN_000b1b10,param_1,0,0)" (( "(") (identifier "uVar1") (, ",") (string_literal ""selection_get"" (" """) (string_content "selection_get") (" """)) (, ",") (identifier "FUN_000b1b10") (, ",") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);" (assignment_expression "uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50)" (identifier "uVar1") (= "=") (call_expression "g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50)" (identifier "g_type_check_instance_cast") (argument_list "(*(undefined4 *)(param_1 + 4),0x50)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (, ",") (number_literal "0x50") () ")")))) (; ";")) (expression_statement "g_signal_connect_data(uVar1,"selection_clear_event",FUN_000b1a60,param_1,0,0);" (call_expression "g_signal_connect_data(uVar1,"selection_clear_event",FUN_000b1a60,param_1,0,0)" (identifier "g_signal_connect_data") (argument_list "(uVar1,"selection_clear_event",FUN_000b1a60,param_1,0,0)" (( "(") (identifier "uVar1") (, ",") (string_literal ""selection_clear_event"" (" """) (string_content "selection_clear_event") (" """)) (, ",") (identifier "FUN_000b1a60") (, ",") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_000c60b0();" (call_expression "FUN_000c60b0()" (identifier "FUN_000c60b0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* 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 */
/* WARNING: Enum "GdkEventType": Some values do not have unique names */

void function_1(type_1 *inst)

{
  int var_9;
  type_2 uVar2;
  type_3 *disp;
  int var_1;
  type_4 empty [1];
  
  var_9 = *(int *)(var_1 + 0x14);
  empty[0] = '\0';
  uVar2 = var_2();
  disp = (type_3 *)var_3(uVar2);
  var_4(disp,'\b');
  uVar2 = var_5();
  var_6(disp,uVar2,9,0x1f,8,2,empty,0);
  var_4(disp,'\b');
  uVar2 = var_5();
  var_6(disp,uVar2,10,0x1f,8,2,empty,0);
  var_4(disp,'\b');
  uVar2 = var_5();
  var_6(disp,uVar2,0xb,0x1f,8,2,empty,0);
  var_4(disp,'\b');
  uVar2 = var_5();
  var_6(disp,uVar2,0xc,0x1f,8,2,empty,0);
  var_4(disp,'\b');
  uVar2 = var_5();
  var_6(disp,uVar2,0xd,0x1f,8,2,empty,0);
  var_4(disp,'\b');
  uVar2 = var_5();
  var_6(disp,uVar2,0xe,0x1f,8,2,empty,0);
  var_4(disp,'\b');
  uVar2 = var_5();
  var_6(disp,uVar2,0xf,0x1f,8,2,empty,0);
  var_4(disp,'\b');
  uVar2 = var_5();
  var_6(disp,uVar2,0x10,0x1f,8,2,empty,0);
  uVar2 = var_7(inst->area,0x50);
  var_8(uVar2,"selection_received",selection_received,inst,0,0);
  uVar2 = var_7(inst->area,0x50);
  var_8(uVar2,"selection_get",selection_get,inst,0,0);
  uVar2 = var_7(inst->area,0x50);
  var_8(uVar2,"selection_clear_event",selection_clear,inst,0,0);
  if (var_9 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_10();
}


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

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

void MASKED(int param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  int in_GS_OFFSET;
  undefined1 local_21;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xb3dd9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_21 = 0;
  uVar1 = gdk_display_get_default();
  uVar1 = gdk_x11_display_get_xdisplay(uVar1);
  FUN_000c32a0(uVar1,8);
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(uVar1,uVar2,9,0x1f,8,2,&local_21,0);
  FUN_000c32a0(uVar1,8);
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(uVar1,uVar2,10,0x1f,8,2,&local_21,0);
  FUN_000c32a0(uVar1,8);
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(uVar1,uVar2,0xb,0x1f,8,2,&local_21,0);
  FUN_000c32a0(uVar1,8);
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(uVar1,uVar2,0xc,0x1f,8,2,&local_21,0);
  FUN_000c32a0(uVar1,8);
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(uVar1,uVar2,0xd,0x1f,8,2,&local_21,0);
  FUN_000c32a0(uVar1,8);
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(uVar1,uVar2,0xe,0x1f,8,2,&local_21,0);
  FUN_000c32a0(uVar1,8);
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(uVar1,uVar2,0xf,0x1f,8,2,&local_21,0);
  FUN_000c32a0(uVar1,8);
  uVar2 = gdk_x11_get_default_root_xwindow();
  XChangeProperty(uVar1,uVar2,0x10,0x1f,8,2,&local_21,0);
  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);
  g_signal_connect_data(uVar1,"selection_received",FUN_000b1bb0,param_1,0,0);
  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);
  g_signal_connect_data(uVar1,"selection_get",FUN_000b1b10,param_1,0,0);
  uVar1 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 4),0x50);
  g_signal_connect_data(uVar1,"selection_clear_event",FUN_000b1a60,param_1,0,0);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000c60b0();
}

