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

gint configure_area(GtkWidget *widget,GdkEventConfigure *event,gpointer data)

{
  int iVar1;
  int value;
  int newrows;
  undefined4 uVar2;
  int iVar3;
  int local_24;
  int local_20;
  
  iVar1 = *(int *)((int)data + 0x2254);
  iVar3 = *(int *)((int)data + 0xcdc);
  value = (event->width + iVar1 * -2) / iVar3;
  local_24 = *(int *)((int)data + 0xce0);
  newrows = (event->height + iVar1 * -2) / local_24;
  if ((*(int *)((int)data + 0xce4) == value) && (*(int *)((int)data + 0xce8) == newrows)) {
    local_20 = *(int *)((int)data + 0x10);
    if (local_20 != 0) {
      return 1;
    }
  }
  else {
    *(int *)((int)data + 0xce8) = newrows;
    *(int *)((int)data + 0xce4) = value;
    conf_set_int(*(Conf **)((int)data + 0x2238),0x73,value);
    conf_set_int(*(Conf **)((int)data + 0x2238),0x74,*(int *)((int)data + 0xce8));
    iVar1 = *(int *)((int)data + 0x2254);
    iVar3 = *(int *)((int)data + 0xcdc);
    local_24 = *(int *)((int)data + 0xce0);
    local_20 = 1;
  }
  *(undefined4 *)((int)data + 0x10) = 1;
  if (*(int *)((int)data + 0x34) != 0) {
    cairo_surface_destroy(*(int *)((int)data + 0x34));
    *(undefined4 *)((int)data + 0x34) = 0;
  }
  uVar2 = cairo_image_surface_create(0,iVar3 * value + iVar1 * 2,iVar1 * 2 + local_24 * newrows);
  *(undefined4 *)((int)data + 0x34) = uVar2;
  draw_backing_rect((gui_data *)data);
  if (local_20 != 0) {
    if (*(int *)((int)data + 0xd1c) == 0) goto LAB_0005a44e;
    iVar3 = conf_get_int(*(Conf **)((int)data + 0x2238),0x60);
    term_size(*(Terminal **)((int)data + 0xd1c),newrows,value,iVar3);
  }
  if (*(Terminal **)((int)data + 0xd1c) != (Terminal *)0x0) {
    term_invalidate(*(Terminal **)((int)data + 0xd1c));
  }
LAB_0005a44e:
  uVar2 = gtk_widget_get_window(widget);
  gtk_im_context_set_client_window(*(undefined4 *)((int)data + 0x38),uVar2);
  return 1;
}



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

undefined4 FUN_0005a320(undefined4 param_1,int param_2,int param_3)

{
  int iVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  int local_24;
  int local_20;
  
  iVar1 = *(int *)(param_3 + 0x2254);
  iVar5 = *(int *)(param_3 + 0xcdc);
  iVar2 = (*(int *)(param_2 + 0x14) + iVar1 * -2) / iVar5;
  local_24 = *(int *)(param_3 + 0xce0);
  iVar3 = (*(int *)(param_2 + 0x18) + iVar1 * -2) / local_24;
  if ((*(int *)(param_3 + 0xce4) == iVar2) && (*(int *)(param_3 + 0xce8) == iVar3)) {
    local_20 = *(int *)(param_3 + 0x10);
    if (local_20 != 0) {
      return 1;
    }
  }
  else {
    *(int *)(param_3 + 0xce8) = iVar3;
    *(int *)(param_3 + 0xce4) = iVar2;
    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);
    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));
    iVar1 = *(int *)(param_3 + 0x2254);
    iVar5 = *(int *)(param_3 + 0xcdc);
    local_24 = *(int *)(param_3 + 0xce0);
    local_20 = 1;
  }
  *(undefined4 *)(param_3 + 0x10) = 1;
  if (*(int *)(param_3 + 0x34) != 0) {
    cairo_surface_destroy(*(int *)(param_3 + 0x34));
    *(undefined4 *)(param_3 + 0x34) = 0;
  }
  uVar4 = cairo_image_surface_create(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3);
  *(undefined4 *)(param_3 + 0x34) = uVar4;
  FUN_0005a240();
  if (local_20 != 0) {
    if (*(int *)(param_3 + 0xd1c) == 0) goto LAB_0005a44e;
    uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60);
    FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4);
  }
  if (*(int *)(param_3 + 0xd1c) != 0) {
    FUN_0003d730(*(int *)(param_3 + 0xd1c));
  }
LAB_0005a44e:
  uVar4 = gtk_widget_get_window(param_1);
  gtk_im_context_set_client_window(*(undefined4 *)(param_3 + 0x38),uVar4);
  return 1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001b410
ADD EBX,0x5647b
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x38]
MOV EBP,dword ptr [ESP + 0x34]
MOV EAX,dword ptr [ESI + 0x2254]
MOV EDI,dword ptr [ESI + 0xcdc]
LEA ECX,[EAX + EAX*0x1]
MOV EAX,dword ptr [EBP + 0x14]
SUB EAX,ECX
CDQ
IDIV EDI
MOV EDX,dword ptr [ESI + 0xce0]
MOV dword ptr [ESP + 0x8],EDX
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,dword ptr [EBP + 0x18]
MOV EBP,EDX
SUB EAX,ECX
CDQ
IDIV EBP
MOV EBP,EAX
MOV EAX,dword ptr [ESP + 0x4]
CMP dword ptr [ESI + 0xce4],EAX
JNZ 0x0005a383
CMP dword ptr [ESI + 0xce8],EBP
JZ 0x0005a4b0
MOV EAX,dword ptr [ESP + 0x4]
SUB ESP,0x4
MOV dword ptr [ESI + 0xce8],EBP
MOV dword ptr [ESI + 0xce4],EAX
PUSH EAX
PUSH 0x73
PUSH dword ptr [ESI + 0x2238]
CALL 0x0001f190
ADD ESP,0xc
PUSH dword ptr [ESI + 0xce8]
PUSH 0x74
PUSH dword ptr [ESI + 0x2238]
CALL 0x0001f190
MOV EAX,dword ptr [ESI + 0x2254]
MOV EDI,dword ptr [ESI + 0xcdc]
LEA ECX,[EAX + EAX*0x1]
MOV EAX,dword ptr [ESI + 0xce0]
MOV dword ptr [ESP + 0x18],EAX
ADD ESP,0x10
MOV dword ptr [ESP + 0xc],0x1
MOV EAX,dword ptr [ESP + 0x8]
IMUL EDI,dword ptr [ESP + 0x4]
MOV dword ptr [ESI + 0x10],0x1
IMUL EAX,EBP
ADD EDI,ECX
ADD ECX,EAX
MOV EAX,dword ptr [ESI + 0x34]
TEST EAX,EAX
JZ 0x0005a417
MOV dword ptr [ESP + 0x8],ECX
SUB ESP,0xc
PUSH EAX
CALL 0x0001a320
ADD ESP,0x10
MOV dword ptr [ESI + 0x34],0x0
MOV ECX,dword ptr [ESP + 0x8]
SUB ESP,0x4
PUSH ECX
PUSH EDI
PUSH 0x0
CALL 0x0001a5c0
MOV dword ptr [ESI + 0x34],EAX
MOV EAX,ESI
CALL 0x0005a240
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JNZ 0x0005a478
MOV EAX,dword ptr [ESI + 0xd1c]
TEST EAX,EAX
JZ 0x0005a44e
SUB ESP,0xc
PUSH EAX
CALL 0x0003d730
ADD ESP,0x10
SUB ESP,0xc
PUSH dword ptr [ESP + 0x3c]
CALL 0x00019600
POP EDX
POP ECX
PUSH EAX
PUSH dword ptr [ESI + 0x38]
CALL 0x0001a9c0
ADD ESP,0x10
ADD ESP,0x1c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,dword ptr [ESI + 0xd1c]
TEST EDI,EDI
JZ 0x0005a44e
SUB ESP,0x8
PUSH 0x60
PUSH dword ptr [ESI + 0x2238]
CALL 0x0001ea70
PUSH EAX
PUSH dword ptr [ESP + 0x18]
PUSH EBP
PUSH dword ptr [ESI + 0xd1c]
CALL 0x0003e290
ADD ESP,0x20
JMP 0x0005a438
MOV EAX,dword ptr [ESI + 0x10]
MOV dword ptr [ESP + 0xc],EAX
TEST EAX,EAX
JZ 0x0005a3de
JMP 0x0005a468
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0005a320(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int local_24;\n  int local_20;\n  \n  iVar1 = *(int *)(param_3 + 0x2254);\n  iVar5 = *(int *)(param_3 + 0xcdc);\n  iVar2 = (*(int *)(param_2 + 0x14) + iVar1 * -2) / iVar5;\n  local_24 = *(int *)(param_3 + 0xce0);\n  iVar3 = (*(int *)(param_2 + 0x18) + iVar1 * -2) / local_24;\n  if ((*(int *)(param_3 + 0xce4) == iVar2) && (*(int *)(param_3 + 0xce8) == iVar3)) {\n    local_20 = *(int *)(param_3 + 0x10);\n    if (local_20 != 0) {\n      return 1;\n    }\n  }\n  else {\n    *(int *)(param_3 + 0xce8) = iVar3;\n    *(int *)(param_3 + 0xce4) = iVar2;\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));\n    iVar1 = *(int *)(param_3 + 0x2254);\n    iVar5 = *(int *)(param_3 + 0xcdc);\n    local_24 = *(int *)(param_3 + 0xce0);\n    local_20 = 1;\n  }\n  *(undefined4 *)(param_3 + 0x10) = 1;\n  if (*(int *)(param_3 + 0x34) != 0) {\n    cairo_surface_destroy(*(int *)(param_3 + 0x34));\n    *(undefined4 *)(param_3 + 0x34) = 0;\n  }\n  uVar4 = cairo_image_surface_create(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3);\n  *(undefined4 *)(param_3 + 0x34) = uVar4;\n  FUN_0005a240();\n  if (local_20 != 0) {\n    if (*(int *)(param_3 + 0xd1c) == 0) goto LAB_0005a44e;\n    uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60);\n    FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4);\n  }\n  if (*(int *)(param_3 + 0xd1c) != 0) {\n    FUN_0003d730(*(int *)(param_3 + 0xd1c));\n  }\nLAB_0005a44e:\n  uVar4 = gtk_widget_get_window(param_1);\n  gtk_im_context_set_client_window(*(undefined4 *)(param_3 + 0x38),uVar4);\n  return 1;\n}\n\n" comment (function_definition "undefined4 FUN_0005a320(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int local_24;\n  int local_20;\n  \n  iVar1 = *(int *)(param_3 + 0x2254);\n  iVar5 = *(int *)(param_3 + 0xcdc);\n  iVar2 = (*(int *)(param_2 + 0x14) + iVar1 * -2) / iVar5;\n  local_24 = *(int *)(param_3 + 0xce0);\n  iVar3 = (*(int *)(param_2 + 0x18) + iVar1 * -2) / local_24;\n  if ((*(int *)(param_3 + 0xce4) == iVar2) && (*(int *)(param_3 + 0xce8) == iVar3)) {\n    local_20 = *(int *)(param_3 + 0x10);\n    if (local_20 != 0) {\n      return 1;\n    }\n  }\n  else {\n    *(int *)(param_3 + 0xce8) = iVar3;\n    *(int *)(param_3 + 0xce4) = iVar2;\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));\n    iVar1 = *(int *)(param_3 + 0x2254);\n    iVar5 = *(int *)(param_3 + 0xcdc);\n    local_24 = *(int *)(param_3 + 0xce0);\n    local_20 = 1;\n  }\n  *(undefined4 *)(param_3 + 0x10) = 1;\n  if (*(int *)(param_3 + 0x34) != 0) {\n    cairo_surface_destroy(*(int *)(param_3 + 0x34));\n    *(undefined4 *)(param_3 + 0x34) = 0;\n  }\n  uVar4 = cairo_image_surface_create(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3);\n  *(undefined4 *)(param_3 + 0x34) = uVar4;\n  FUN_0005a240();\n  if (local_20 != 0) {\n    if (*(int *)(param_3 + 0xd1c) == 0) goto LAB_0005a44e;\n    uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60);\n    FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4);\n  }\n  if (*(int *)(param_3 + 0xd1c) != 0) {\n    FUN_0003d730(*(int *)(param_3 + 0xd1c));\n  }\nLAB_0005a44e:\n  uVar4 = gtk_widget_get_window(param_1);\n  gtk_im_context_set_client_window(*(undefined4 *)(param_3 + 0x38),uVar4);\n  return 1;\n}" type_identifier (function_declarator "FUN_0005a320(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int local_24;\n  int local_20;\n  \n  iVar1 = *(int *)(param_3 + 0x2254);\n  iVar5 = *(int *)(param_3 + 0xcdc);\n  iVar2 = (*(int *)(param_2 + 0x14) + iVar1 * -2) / iVar5;\n  local_24 = *(int *)(param_3 + 0xce0);\n  iVar3 = (*(int *)(param_2 + 0x18) + iVar1 * -2) / local_24;\n  if ((*(int *)(param_3 + 0xce4) == iVar2) && (*(int *)(param_3 + 0xce8) == iVar3)) {\n    local_20 = *(int *)(param_3 + 0x10);\n    if (local_20 != 0) {\n      return 1;\n    }\n  }\n  else {\n    *(int *)(param_3 + 0xce8) = iVar3;\n    *(int *)(param_3 + 0xce4) = iVar2;\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));\n    iVar1 = *(int *)(param_3 + 0x2254);\n    iVar5 = *(int *)(param_3 + 0xcdc);\n    local_24 = *(int *)(param_3 + 0xce0);\n    local_20 = 1;\n  }\n  *(undefined4 *)(param_3 + 0x10) = 1;\n  if (*(int *)(param_3 + 0x34) != 0) {\n    cairo_surface_destroy(*(int *)(param_3 + 0x34));\n    *(undefined4 *)(param_3 + 0x34) = 0;\n  }\n  uVar4 = cairo_image_surface_create(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3);\n  *(undefined4 *)(param_3 + 0x34) = uVar4;\n  FUN_0005a240();\n  if (local_20 != 0) {\n    if (*(int *)(param_3 + 0xd1c) == 0) goto LAB_0005a44e;\n    uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60);\n    FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4);\n  }\n  if (*(int *)(param_3 + 0xd1c) != 0) {\n    FUN_0003d730(*(int *)(param_3 + 0xd1c));\n  }\nLAB_0005a44e:\n  uVar4 = gtk_widget_get_window(param_1);\n  gtk_im_context_set_client_window(*(undefined4 *)(param_3 + 0x38),uVar4);\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_3 + 0x2254);" (assignment_expression "iVar1 = *(int *)(param_3 + 0x2254)" identifier = (pointer_expression "*(int *)(param_3 + 0x2254)" * (cast_expression "(int *)(param_3 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2254)" ( (binary_expression "param_3 + 0x2254" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(param_3 + 0xcdc);" (assignment_expression "iVar5 = *(int *)(param_3 + 0xcdc)" identifier = (pointer_expression "*(int *)(param_3 + 0xcdc)" * (cast_expression "(int *)(param_3 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xcdc)" ( (binary_expression "param_3 + 0xcdc" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = (*(int *)(param_2 + 0x14) + iVar1 * -2) / iVar5;" (assignment_expression "iVar2 = (*(int *)(param_2 + 0x14) + iVar1 * -2) / iVar5" identifier = (binary_expression "(*(int *)(param_2 + 0x14) + iVar1 * -2) / iVar5" (parenthesized_expression "(*(int *)(param_2 + 0x14) + iVar1 * -2)" ( (binary_expression "*(int *)(param_2 + 0x14) + iVar1 * -2" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) + (binary_expression "iVar1 * -2" identifier * number_literal)) )) / identifier)) ;) (expression_statement "local_24 = *(int *)(param_3 + 0xce0);" (assignment_expression "local_24 = *(int *)(param_3 + 0xce0)" identifier = (pointer_expression "*(int *)(param_3 + 0xce0)" * (cast_expression "(int *)(param_3 + 0xce0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xce0)" ( (binary_expression "param_3 + 0xce0" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = (*(int *)(param_2 + 0x18) + iVar1 * -2) / local_24;" (assignment_expression "iVar3 = (*(int *)(param_2 + 0x18) + iVar1 * -2) / local_24" identifier = (binary_expression "(*(int *)(param_2 + 0x18) + iVar1 * -2) / local_24" (parenthesized_expression "(*(int *)(param_2 + 0x18) + iVar1 * -2)" ( (binary_expression "*(int *)(param_2 + 0x18) + iVar1 * -2" (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) + (binary_expression "iVar1 * -2" identifier * number_literal)) )) / identifier)) ;) (if_statement "if ((*(int *)(param_3 + 0xce4) == iVar2) && (*(int *)(param_3 + 0xce8) == iVar3)) {\n    local_20 = *(int *)(param_3 + 0x10);\n    if (local_20 != 0) {\n      return 1;\n    }\n  }\n  else {\n    *(int *)(param_3 + 0xce8) = iVar3;\n    *(int *)(param_3 + 0xce4) = iVar2;\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));\n    iVar1 = *(int *)(param_3 + 0x2254);\n    iVar5 = *(int *)(param_3 + 0xcdc);\n    local_24 = *(int *)(param_3 + 0xce0);\n    local_20 = 1;\n  }" if (parenthesized_expression "((*(int *)(param_3 + 0xce4) == iVar2) && (*(int *)(param_3 + 0xce8) == iVar3))" ( (binary_expression "(*(int *)(param_3 + 0xce4) == iVar2) && (*(int *)(param_3 + 0xce8) == iVar3)" (parenthesized_expression "(*(int *)(param_3 + 0xce4) == iVar2)" ( (binary_expression "*(int *)(param_3 + 0xce4) == iVar2" (pointer_expression "*(int *)(param_3 + 0xce4)" * (cast_expression "(int *)(param_3 + 0xce4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xce4)" ( (binary_expression "param_3 + 0xce4" identifier + number_literal) )))) == identifier) )) && (parenthesized_expression "(*(int *)(param_3 + 0xce8) == iVar3)" ( (binary_expression "*(int *)(param_3 + 0xce8) == iVar3" (pointer_expression "*(int *)(param_3 + 0xce8)" * (cast_expression "(int *)(param_3 + 0xce8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xce8)" ( (binary_expression "param_3 + 0xce8" identifier + number_literal) )))) == identifier) ))) )) (compound_statement "{\n    local_20 = *(int *)(param_3 + 0x10);\n    if (local_20 != 0) {\n      return 1;\n    }\n  }" { (expression_statement "local_20 = *(int *)(param_3 + 0x10);" (assignment_expression "local_20 = *(int *)(param_3 + 0x10)" identifier = (pointer_expression "*(int *)(param_3 + 0x10)" * (cast_expression "(int *)(param_3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (local_20 != 0) {\n      return 1;\n    }" if (parenthesized_expression "(local_20 != 0)" ( (binary_expression "local_20 != 0" identifier != number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else {\n    *(int *)(param_3 + 0xce8) = iVar3;\n    *(int *)(param_3 + 0xce4) = iVar2;\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));\n    iVar1 = *(int *)(param_3 + 0x2254);\n    iVar5 = *(int *)(param_3 + 0xcdc);\n    local_24 = *(int *)(param_3 + 0xce0);\n    local_20 = 1;\n  }" else (compound_statement "{\n    *(int *)(param_3 + 0xce8) = iVar3;\n    *(int *)(param_3 + 0xce4) = iVar2;\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));\n    iVar1 = *(int *)(param_3 + 0x2254);\n    iVar5 = *(int *)(param_3 + 0xcdc);\n    local_24 = *(int *)(param_3 + 0xce0);\n    local_20 = 1;\n  }" { (expression_statement "*(int *)(param_3 + 0xce8) = iVar3;" (assignment_expression "*(int *)(param_3 + 0xce8) = iVar3" (pointer_expression "*(int *)(param_3 + 0xce8)" * (cast_expression "(int *)(param_3 + 0xce8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xce8)" ( (binary_expression "param_3 + 0xce8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_3 + 0xce4) = iVar2;" (assignment_expression "*(int *)(param_3 + 0xce4) = iVar2" (pointer_expression "*(int *)(param_3 + 0xce4)" * (cast_expression "(int *)(param_3 + 0xce4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xce4)" ( (binary_expression "param_3 + 0xce4" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);" (call_expression "FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2)" identifier (argument_list "(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2)" ( (pointer_expression "*(undefined4 *)(param_3 + 0x2238)" * (cast_expression "(undefined4 *)(param_3 + 0x2238)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2238)" ( (binary_expression "param_3 + 0x2238" identifier + number_literal) )))) , number_literal , identifier ))) ;) (expression_statement "FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));" (call_expression "FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8))" identifier (argument_list "(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8))" ( (pointer_expression "*(undefined4 *)(param_3 + 0x2238)" * (cast_expression "(undefined4 *)(param_3 + 0x2238)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2238)" ( (binary_expression "param_3 + 0x2238" identifier + number_literal) )))) , number_literal , (pointer_expression "*(undefined4 *)(param_3 + 0xce8)" * (cast_expression "(undefined4 *)(param_3 + 0xce8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xce8)" ( (binary_expression "param_3 + 0xce8" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = *(int *)(param_3 + 0x2254);" (assignment_expression "iVar1 = *(int *)(param_3 + 0x2254)" identifier = (pointer_expression "*(int *)(param_3 + 0x2254)" * (cast_expression "(int *)(param_3 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2254)" ( (binary_expression "param_3 + 0x2254" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(param_3 + 0xcdc);" (assignment_expression "iVar5 = *(int *)(param_3 + 0xcdc)" identifier = (pointer_expression "*(int *)(param_3 + 0xcdc)" * (cast_expression "(int *)(param_3 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xcdc)" ( (binary_expression "param_3 + 0xcdc" identifier + number_literal) ))))) ;) (expression_statement "local_24 = *(int *)(param_3 + 0xce0);" (assignment_expression "local_24 = *(int *)(param_3 + 0xce0)" identifier = (pointer_expression "*(int *)(param_3 + 0xce0)" * (cast_expression "(int *)(param_3 + 0xce0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xce0)" ( (binary_expression "param_3 + 0xce0" identifier + number_literal) ))))) ;) (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" identifier = number_literal) ;) }))) (expression_statement "*(undefined4 *)(param_3 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(param_3 + 0x10) = 1" (pointer_expression "*(undefined4 *)(param_3 + 0x10)" * (cast_expression "(undefined4 *)(param_3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (*(int *)(param_3 + 0x34) != 0) {\n    cairo_surface_destroy(*(int *)(param_3 + 0x34));\n    *(undefined4 *)(param_3 + 0x34) = 0;\n  }" if (parenthesized_expression "(*(int *)(param_3 + 0x34) != 0)" ( (binary_expression "*(int *)(param_3 + 0x34) != 0" (pointer_expression "*(int *)(param_3 + 0x34)" * (cast_expression "(int *)(param_3 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x34)" ( (binary_expression "param_3 + 0x34" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    cairo_surface_destroy(*(int *)(param_3 + 0x34));\n    *(undefined4 *)(param_3 + 0x34) = 0;\n  }" { (expression_statement "cairo_surface_destroy(*(int *)(param_3 + 0x34));" (call_expression "cairo_surface_destroy(*(int *)(param_3 + 0x34))" identifier (argument_list "(*(int *)(param_3 + 0x34))" ( (pointer_expression "*(int *)(param_3 + 0x34)" * (cast_expression "(int *)(param_3 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x34)" ( (binary_expression "param_3 + 0x34" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_3 + 0x34) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0x34) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0x34)" * (cast_expression "(undefined4 *)(param_3 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x34)" ( (binary_expression "param_3 + 0x34" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "uVar4 = cairo_image_surface_create(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3);" (assignment_expression "uVar4 = cairo_image_surface_create(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3)" identifier = (call_expression "cairo_image_surface_create(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3)" identifier (argument_list "(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3)" ( number_literal , (binary_expression "iVar5 * iVar2 + iVar1 * 2" (binary_expression "iVar5 * iVar2" identifier * identifier) + (binary_expression "iVar1 * 2" identifier * number_literal)) , (binary_expression "iVar1 * 2 + local_24 * iVar3" (binary_expression "iVar1 * 2" identifier * number_literal) + (binary_expression "local_24 * iVar3" identifier * identifier)) )))) ;) (expression_statement "*(undefined4 *)(param_3 + 0x34) = uVar4;" (assignment_expression "*(undefined4 *)(param_3 + 0x34) = uVar4" (pointer_expression "*(undefined4 *)(param_3 + 0x34)" * (cast_expression "(undefined4 *)(param_3 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x34)" ( (binary_expression "param_3 + 0x34" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_0005a240();" (call_expression "FUN_0005a240()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_20 != 0) {\n    if (*(int *)(param_3 + 0xd1c) == 0) goto LAB_0005a44e;\n    uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60);\n    FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4);\n  }" if (parenthesized_expression "(local_20 != 0)" ( (binary_expression "local_20 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(param_3 + 0xd1c) == 0) goto LAB_0005a44e;\n    uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60);\n    FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4);\n  }" { (if_statement "if (*(int *)(param_3 + 0xd1c) == 0) goto LAB_0005a44e;" if (parenthesized_expression "(*(int *)(param_3 + 0xd1c) == 0)" ( (binary_expression "*(int *)(param_3 + 0xd1c) == 0" (pointer_expression "*(int *)(param_3 + 0xd1c)" * (cast_expression "(int *)(param_3 + 0xd1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xd1c)" ( (binary_expression "param_3 + 0xd1c" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_0005a44e;" goto statement_identifier ;)) (expression_statement "uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60);" (assignment_expression "uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60)" identifier = (call_expression "FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60)" identifier (argument_list "(*(undefined4 *)(param_3 + 0x2238),0x60)" ( (pointer_expression "*(undefined4 *)(param_3 + 0x2238)" * (cast_expression "(undefined4 *)(param_3 + 0x2238)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2238)" ( (binary_expression "param_3 + 0x2238" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4);" (call_expression "FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4)" identifier (argument_list "(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4)" ( (pointer_expression "*(undefined4 *)(param_3 + 0xd1c)" * (cast_expression "(undefined4 *)(param_3 + 0xd1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xd1c)" ( (binary_expression "param_3 + 0xd1c" identifier + number_literal) )))) , identifier , identifier , identifier ))) ;) })) (if_statement "if (*(int *)(param_3 + 0xd1c) != 0) {\n    FUN_0003d730(*(int *)(param_3 + 0xd1c));\n  }" if (parenthesized_expression "(*(int *)(param_3 + 0xd1c) != 0)" ( (binary_expression "*(int *)(param_3 + 0xd1c) != 0" (pointer_expression "*(int *)(param_3 + 0xd1c)" * (cast_expression "(int *)(param_3 + 0xd1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xd1c)" ( (binary_expression "param_3 + 0xd1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_0003d730(*(int *)(param_3 + 0xd1c));\n  }" { (expression_statement "FUN_0003d730(*(int *)(param_3 + 0xd1c));" (call_expression "FUN_0003d730(*(int *)(param_3 + 0xd1c))" identifier (argument_list "(*(int *)(param_3 + 0xd1c))" ( (pointer_expression "*(int *)(param_3 + 0xd1c)" * (cast_expression "(int *)(param_3 + 0xd1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xd1c)" ( (binary_expression "param_3 + 0xd1c" identifier + number_literal) )))) ))) ;) })) (labeled_statement "LAB_0005a44e:\n  uVar4 = gtk_widget_get_window(param_1);" statement_identifier : (expression_statement "uVar4 = gtk_widget_get_window(param_1);" (assignment_expression "uVar4 = gtk_widget_get_window(param_1)" identifier = (call_expression "gtk_widget_get_window(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;)) (expression_statement "gtk_im_context_set_client_window(*(undefined4 *)(param_3 + 0x38),uVar4);" (call_expression "gtk_im_context_set_client_window(*(undefined4 *)(param_3 + 0x38),uVar4)" identifier (argument_list "(*(undefined4 *)(param_3 + 0x38),uVar4)" ( (pointer_expression "*(undefined4 *)(param_3 + 0x38)" * (cast_expression "(undefined4 *)(param_3 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x38)" ( (binary_expression "param_3 + 0x38" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "GdkEventType": Some values do not have unique names */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\ngint configure_area(GtkWidget *widget,GdkEventConfigure *event,gpointer data)\n\n{\n  int iVar1;\n  int value;\n  int newrows;\n  undefined4 uVar2;\n  int iVar3;\n  int local_24;\n  int local_20;\n  \n  iVar1 = *(int *)((int)data + 0x2254);\n  iVar3 = *(int *)((int)data + 0xcdc);\n  value = (event->width + iVar1 * -2) / iVar3;\n  local_24 = *(int *)((int)data + 0xce0);\n  newrows = (event->height + iVar1 * -2) / local_24;\n  if ((*(int *)((int)data + 0xce4) == value) && (*(int *)((int)data + 0xce8) == newrows)) {\n    local_20 = *(int *)((int)data + 0x10);\n    if (local_20 != 0) {\n      return 1;\n    }\n  }\n  else {\n    *(int *)((int)data + 0xce8) = newrows;\n    *(int *)((int)data + 0xce4) = value;\n    conf_set_int(*(Conf **)((int)data + 0x2238),0x73,value);\n    conf_set_int(*(Conf **)((int)data + 0x2238),0x74,*(int *)((int)data + 0xce8));\n    iVar1 = *(int *)((int)data + 0x2254);\n    iVar3 = *(int *)((int)data + 0xcdc);\n    local_24 = *(int *)((int)data + 0xce0);\n    local_20 = 1;\n  }\n  *(undefined4 *)((int)data + 0x10) = 1;\n  if (*(int *)((int)data + 0x34) != 0) {\n    cairo_surface_destroy(*(int *)((int)data + 0x34));\n    *(undefined4 *)((int)data + 0x34) = 0;\n  }\n  uVar2 = cairo_image_surface_create(0,iVar3 * value + iVar1 * 2,iVar1 * 2 + local_24 * newrows);\n  *(undefined4 *)((int)data + 0x34) = uVar2;\n  draw_backing_rect((gui_data *)data);\n  if (local_20 != 0) {\n    if (*(int *)((int)data + 0xd1c) == 0) goto LAB_0005a44e;\n    iVar3 = conf_get_int(*(Conf **)((int)data + 0x2238),0x60);\n    term_size(*(Terminal **)((int)data + 0xd1c),newrows,value,iVar3);\n  }\n  if (*(Terminal **)((int)data + 0xd1c) != (Terminal *)0x0) {\n    term_invalidate(*(Terminal **)((int)data + 0xd1c));\n  }\nLAB_0005a44e:\n  uVar2 = gtk_widget_get_window(widget);\n  gtk_im_context_set_client_window(*(undefined4 *)((int)data + 0x38),uVar2);\n  return 1;\n}\n\n" comment comment comment comment (function_definition "gint configure_area(GtkWidget *widget,GdkEventConfigure *event,gpointer data)\n\n{\n  int iVar1;\n  int value;\n  int newrows;\n  undefined4 uVar2;\n  int iVar3;\n  int local_24;\n  int local_20;\n  \n  iVar1 = *(int *)((int)data + 0x2254);\n  iVar3 = *(int *)((int)data + 0xcdc);\n  value = (event->width + iVar1 * -2) / iVar3;\n  local_24 = *(int *)((int)data + 0xce0);\n  newrows = (event->height + iVar1 * -2) / local_24;\n  if ((*(int *)((int)data + 0xce4) == value) && (*(int *)((int)data + 0xce8) == newrows)) {\n    local_20 = *(int *)((int)data + 0x10);\n    if (local_20 != 0) {\n      return 1;\n    }\n  }\n  else {\n    *(int *)((int)data + 0xce8) = newrows;\n    *(int *)((int)data + 0xce4) = value;\n    conf_set_int(*(Conf **)((int)data + 0x2238),0x73,value);\n    conf_set_int(*(Conf **)((int)data + 0x2238),0x74,*(int *)((int)data + 0xce8));\n    iVar1 = *(int *)((int)data + 0x2254);\n    iVar3 = *(int *)((int)data + 0xcdc);\n    local_24 = *(int *)((int)data + 0xce0);\n    local_20 = 1;\n  }\n  *(undefined4 *)((int)data + 0x10) = 1;\n  if (*(int *)((int)data + 0x34) != 0) {\n    cairo_surface_destroy(*(int *)((int)data + 0x34));\n    *(undefined4 *)((int)data + 0x34) = 0;\n  }\n  uVar2 = cairo_image_surface_create(0,iVar3 * value + iVar1 * 2,iVar1 * 2 + local_24 * newrows);\n  *(undefined4 *)((int)data + 0x34) = uVar2;\n  draw_backing_rect((gui_data *)data);\n  if (local_20 != 0) {\n    if (*(int *)((int)data + 0xd1c) == 0) goto LAB_0005a44e;\n    iVar3 = conf_get_int(*(Conf **)((int)data + 0x2238),0x60);\n    term_size(*(Terminal **)((int)data + 0xd1c),newrows,value,iVar3);\n  }\n  if (*(Terminal **)((int)data + 0xd1c) != (Terminal *)0x0) {\n    term_invalidate(*(Terminal **)((int)data + 0xd1c));\n  }\nLAB_0005a44e:\n  uVar2 = gtk_widget_get_window(widget);\n  gtk_im_context_set_client_window(*(undefined4 *)((int)data + 0x38),uVar2);\n  return 1;\n}" type_identifier (function_declarator "configure_area(GtkWidget *widget,GdkEventConfigure *event,gpointer data)" identifier (parameter_list "(GtkWidget *widget,GdkEventConfigure *event,gpointer data)" ( (parameter_declaration "GtkWidget *widget" type_identifier (pointer_declarator "*widget" * identifier)) , (parameter_declaration "GdkEventConfigure *event" type_identifier (pointer_declarator "*event" * identifier)) , (parameter_declaration "gpointer data" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int value;\n  int newrows;\n  undefined4 uVar2;\n  int iVar3;\n  int local_24;\n  int local_20;\n  \n  iVar1 = *(int *)((int)data + 0x2254);\n  iVar3 = *(int *)((int)data + 0xcdc);\n  value = (event->width + iVar1 * -2) / iVar3;\n  local_24 = *(int *)((int)data + 0xce0);\n  newrows = (event->height + iVar1 * -2) / local_24;\n  if ((*(int *)((int)data + 0xce4) == value) && (*(int *)((int)data + 0xce8) == newrows)) {\n    local_20 = *(int *)((int)data + 0x10);\n    if (local_20 != 0) {\n      return 1;\n    }\n  }\n  else {\n    *(int *)((int)data + 0xce8) = newrows;\n    *(int *)((int)data + 0xce4) = value;\n    conf_set_int(*(Conf **)((int)data + 0x2238),0x73,value);\n    conf_set_int(*(Conf **)((int)data + 0x2238),0x74,*(int *)((int)data + 0xce8));\n    iVar1 = *(int *)((int)data + 0x2254);\n    iVar3 = *(int *)((int)data + 0xcdc);\n    local_24 = *(int *)((int)data + 0xce0);\n    local_20 = 1;\n  }\n  *(undefined4 *)((int)data + 0x10) = 1;\n  if (*(int *)((int)data + 0x34) != 0) {\n    cairo_surface_destroy(*(int *)((int)data + 0x34));\n    *(undefined4 *)((int)data + 0x34) = 0;\n  }\n  uVar2 = cairo_image_surface_create(0,iVar3 * value + iVar1 * 2,iVar1 * 2 + local_24 * newrows);\n  *(undefined4 *)((int)data + 0x34) = uVar2;\n  draw_backing_rect((gui_data *)data);\n  if (local_20 != 0) {\n    if (*(int *)((int)data + 0xd1c) == 0) goto LAB_0005a44e;\n    iVar3 = conf_get_int(*(Conf **)((int)data + 0x2238),0x60);\n    term_size(*(Terminal **)((int)data + 0xd1c),newrows,value,iVar3);\n  }\n  if (*(Terminal **)((int)data + 0xd1c) != (Terminal *)0x0) {\n    term_invalidate(*(Terminal **)((int)data + 0xd1c));\n  }\nLAB_0005a44e:\n  uVar2 = gtk_widget_get_window(widget);\n  gtk_im_context_set_client_window(*(undefined4 *)((int)data + 0x38),uVar2);\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int value;" primitive_type identifier ;) (declaration "int newrows;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)((int)data + 0x2254);" (assignment_expression "iVar1 = *(int *)((int)data + 0x2254)" identifier = (pointer_expression "*(int *)((int)data + 0x2254)" * (cast_expression "(int *)((int)data + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x2254)" ( (binary_expression "(int)data + 0x2254" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)((int)data + 0xcdc);" (assignment_expression "iVar3 = *(int *)((int)data + 0xcdc)" identifier = (pointer_expression "*(int *)((int)data + 0xcdc)" * (cast_expression "(int *)((int)data + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xcdc)" ( (binary_expression "(int)data + 0xcdc" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "value = (event->width + iVar1 * -2) / iVar3;" (assignment_expression "value = (event->width + iVar1 * -2) / iVar3" identifier = (binary_expression "(event->width + iVar1 * -2) / iVar3" (parenthesized_expression "(event->width + iVar1 * -2)" ( (binary_expression "event->width + iVar1 * -2" (field_expression "event->width" identifier -> field_identifier) + (binary_expression "iVar1 * -2" identifier * number_literal)) )) / identifier)) ;) (expression_statement "local_24 = *(int *)((int)data + 0xce0);" (assignment_expression "local_24 = *(int *)((int)data + 0xce0)" identifier = (pointer_expression "*(int *)((int)data + 0xce0)" * (cast_expression "(int *)((int)data + 0xce0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xce0)" ( (binary_expression "(int)data + 0xce0" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "newrows = (event->height + iVar1 * -2) / local_24;" (assignment_expression "newrows = (event->height + iVar1 * -2) / local_24" identifier = (binary_expression "(event->height + iVar1 * -2) / local_24" (parenthesized_expression "(event->height + iVar1 * -2)" ( (binary_expression "event->height + iVar1 * -2" (field_expression "event->height" identifier -> field_identifier) + (binary_expression "iVar1 * -2" identifier * number_literal)) )) / identifier)) ;) (if_statement "if ((*(int *)((int)data + 0xce4) == value) && (*(int *)((int)data + 0xce8) == newrows)) {\n    local_20 = *(int *)((int)data + 0x10);\n    if (local_20 != 0) {\n      return 1;\n    }\n  }\n  else {\n    *(int *)((int)data + 0xce8) = newrows;\n    *(int *)((int)data + 0xce4) = value;\n    conf_set_int(*(Conf **)((int)data + 0x2238),0x73,value);\n    conf_set_int(*(Conf **)((int)data + 0x2238),0x74,*(int *)((int)data + 0xce8));\n    iVar1 = *(int *)((int)data + 0x2254);\n    iVar3 = *(int *)((int)data + 0xcdc);\n    local_24 = *(int *)((int)data + 0xce0);\n    local_20 = 1;\n  }" if (parenthesized_expression "((*(int *)((int)data + 0xce4) == value) && (*(int *)((int)data + 0xce8) == newrows))" ( (binary_expression "(*(int *)((int)data + 0xce4) == value) && (*(int *)((int)data + 0xce8) == newrows)" (parenthesized_expression "(*(int *)((int)data + 0xce4) == value)" ( (binary_expression "*(int *)((int)data + 0xce4) == value" (pointer_expression "*(int *)((int)data + 0xce4)" * (cast_expression "(int *)((int)data + 0xce4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xce4)" ( (binary_expression "(int)data + 0xce4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == identifier) )) && (parenthesized_expression "(*(int *)((int)data + 0xce8) == newrows)" ( (binary_expression "*(int *)((int)data + 0xce8) == newrows" (pointer_expression "*(int *)((int)data + 0xce8)" * (cast_expression "(int *)((int)data + 0xce8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xce8)" ( (binary_expression "(int)data + 0xce8" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == identifier) ))) )) (compound_statement "{\n    local_20 = *(int *)((int)data + 0x10);\n    if (local_20 != 0) {\n      return 1;\n    }\n  }" { (expression_statement "local_20 = *(int *)((int)data + 0x10);" (assignment_expression "local_20 = *(int *)((int)data + 0x10)" identifier = (pointer_expression "*(int *)((int)data + 0x10)" * (cast_expression "(int *)((int)data + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x10)" ( (binary_expression "(int)data + 0x10" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (local_20 != 0) {\n      return 1;\n    }" if (parenthesized_expression "(local_20 != 0)" ( (binary_expression "local_20 != 0" identifier != number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else {\n    *(int *)((int)data + 0xce8) = newrows;\n    *(int *)((int)data + 0xce4) = value;\n    conf_set_int(*(Conf **)((int)data + 0x2238),0x73,value);\n    conf_set_int(*(Conf **)((int)data + 0x2238),0x74,*(int *)((int)data + 0xce8));\n    iVar1 = *(int *)((int)data + 0x2254);\n    iVar3 = *(int *)((int)data + 0xcdc);\n    local_24 = *(int *)((int)data + 0xce0);\n    local_20 = 1;\n  }" else (compound_statement "{\n    *(int *)((int)data + 0xce8) = newrows;\n    *(int *)((int)data + 0xce4) = value;\n    conf_set_int(*(Conf **)((int)data + 0x2238),0x73,value);\n    conf_set_int(*(Conf **)((int)data + 0x2238),0x74,*(int *)((int)data + 0xce8));\n    iVar1 = *(int *)((int)data + 0x2254);\n    iVar3 = *(int *)((int)data + 0xcdc);\n    local_24 = *(int *)((int)data + 0xce0);\n    local_20 = 1;\n  }" { (expression_statement "*(int *)((int)data + 0xce8) = newrows;" (assignment_expression "*(int *)((int)data + 0xce8) = newrows" (pointer_expression "*(int *)((int)data + 0xce8)" * (cast_expression "(int *)((int)data + 0xce8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xce8)" ( (binary_expression "(int)data + 0xce8" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)data + 0xce4) = value;" (assignment_expression "*(int *)((int)data + 0xce4) = value" (pointer_expression "*(int *)((int)data + 0xce4)" * (cast_expression "(int *)((int)data + 0xce4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xce4)" ( (binary_expression "(int)data + 0xce4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "conf_set_int(*(Conf **)((int)data + 0x2238),0x73,value);" (call_expression "conf_set_int(*(Conf **)((int)data + 0x2238),0x73,value)" identifier (argument_list "(*(Conf **)((int)data + 0x2238),0x73,value)" ( (pointer_expression "*(Conf **)((int)data + 0x2238)" * (cast_expression "(Conf **)((int)data + 0x2238)" ( (type_descriptor "Conf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)data + 0x2238)" ( (binary_expression "(int)data + 0x2238" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal , identifier ))) ;) (expression_statement "conf_set_int(*(Conf **)((int)data + 0x2238),0x74,*(int *)((int)data + 0xce8));" (call_expression "conf_set_int(*(Conf **)((int)data + 0x2238),0x74,*(int *)((int)data + 0xce8))" identifier (argument_list "(*(Conf **)((int)data + 0x2238),0x74,*(int *)((int)data + 0xce8))" ( (pointer_expression "*(Conf **)((int)data + 0x2238)" * (cast_expression "(Conf **)((int)data + 0x2238)" ( (type_descriptor "Conf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)data + 0x2238)" ( (binary_expression "(int)data + 0x2238" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal , (pointer_expression "*(int *)((int)data + 0xce8)" * (cast_expression "(int *)((int)data + 0xce8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xce8)" ( (binary_expression "(int)data + 0xce8" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "iVar1 = *(int *)((int)data + 0x2254);" (assignment_expression "iVar1 = *(int *)((int)data + 0x2254)" identifier = (pointer_expression "*(int *)((int)data + 0x2254)" * (cast_expression "(int *)((int)data + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x2254)" ( (binary_expression "(int)data + 0x2254" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)((int)data + 0xcdc);" (assignment_expression "iVar3 = *(int *)((int)data + 0xcdc)" identifier = (pointer_expression "*(int *)((int)data + 0xcdc)" * (cast_expression "(int *)((int)data + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xcdc)" ( (binary_expression "(int)data + 0xcdc" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "local_24 = *(int *)((int)data + 0xce0);" (assignment_expression "local_24 = *(int *)((int)data + 0xce0)" identifier = (pointer_expression "*(int *)((int)data + 0xce0)" * (cast_expression "(int *)((int)data + 0xce0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xce0)" ( (binary_expression "(int)data + 0xce0" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" identifier = number_literal) ;) }))) (expression_statement "*(undefined4 *)((int)data + 0x10) = 1;" (assignment_expression "*(undefined4 *)((int)data + 0x10) = 1" (pointer_expression "*(undefined4 *)((int)data + 0x10)" * (cast_expression "(undefined4 *)((int)data + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x10)" ( (binary_expression "(int)data + 0x10" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (*(int *)((int)data + 0x34) != 0) {\n    cairo_surface_destroy(*(int *)((int)data + 0x34));\n    *(undefined4 *)((int)data + 0x34) = 0;\n  }" if (parenthesized_expression "(*(int *)((int)data + 0x34) != 0)" ( (binary_expression "*(int *)((int)data + 0x34) != 0" (pointer_expression "*(int *)((int)data + 0x34)" * (cast_expression "(int *)((int)data + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x34)" ( (binary_expression "(int)data + 0x34" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    cairo_surface_destroy(*(int *)((int)data + 0x34));\n    *(undefined4 *)((int)data + 0x34) = 0;\n  }" { (expression_statement "cairo_surface_destroy(*(int *)((int)data + 0x34));" (call_expression "cairo_surface_destroy(*(int *)((int)data + 0x34))" identifier (argument_list "(*(int *)((int)data + 0x34))" ( (pointer_expression "*(int *)((int)data + 0x34)" * (cast_expression "(int *)((int)data + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x34)" ( (binary_expression "(int)data + 0x34" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)((int)data + 0x34) = 0;" (assignment_expression "*(undefined4 *)((int)data + 0x34) = 0" (pointer_expression "*(undefined4 *)((int)data + 0x34)" * (cast_expression "(undefined4 *)((int)data + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x34)" ( (binary_expression "(int)data + 0x34" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (expression_statement "uVar2 = cairo_image_surface_create(0,iVar3 * value + iVar1 * 2,iVar1 * 2 + local_24 * newrows);" (assignment_expression "uVar2 = cairo_image_surface_create(0,iVar3 * value + iVar1 * 2,iVar1 * 2 + local_24 * newrows)" identifier = (call_expression "cairo_image_surface_create(0,iVar3 * value + iVar1 * 2,iVar1 * 2 + local_24 * newrows)" identifier (argument_list "(0,iVar3 * value + iVar1 * 2,iVar1 * 2 + local_24 * newrows)" ( number_literal , (binary_expression "iVar3 * value + iVar1 * 2" (binary_expression "iVar3 * value" identifier * identifier) + (binary_expression "iVar1 * 2" identifier * number_literal)) , (binary_expression "iVar1 * 2 + local_24 * newrows" (binary_expression "iVar1 * 2" identifier * number_literal) + (binary_expression "local_24 * newrows" identifier * identifier)) )))) ;) (expression_statement "*(undefined4 *)((int)data + 0x34) = uVar2;" (assignment_expression "*(undefined4 *)((int)data + 0x34) = uVar2" (pointer_expression "*(undefined4 *)((int)data + 0x34)" * (cast_expression "(undefined4 *)((int)data + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x34)" ( (binary_expression "(int)data + 0x34" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "draw_backing_rect((gui_data *)data);" (call_expression "draw_backing_rect((gui_data *)data)" identifier (argument_list "((gui_data *)data)" ( (cast_expression "(gui_data *)data" ( (type_descriptor "gui_data *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (if_statement "if (local_20 != 0) {\n    if (*(int *)((int)data + 0xd1c) == 0) goto LAB_0005a44e;\n    iVar3 = conf_get_int(*(Conf **)((int)data + 0x2238),0x60);\n    term_size(*(Terminal **)((int)data + 0xd1c),newrows,value,iVar3);\n  }" if (parenthesized_expression "(local_20 != 0)" ( (binary_expression "local_20 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)((int)data + 0xd1c) == 0) goto LAB_0005a44e;\n    iVar3 = conf_get_int(*(Conf **)((int)data + 0x2238),0x60);\n    term_size(*(Terminal **)((int)data + 0xd1c),newrows,value,iVar3);\n  }" { (if_statement "if (*(int *)((int)data + 0xd1c) == 0) goto LAB_0005a44e;" if (parenthesized_expression "(*(int *)((int)data + 0xd1c) == 0)" ( (binary_expression "*(int *)((int)data + 0xd1c) == 0" (pointer_expression "*(int *)((int)data + 0xd1c)" * (cast_expression "(int *)((int)data + 0xd1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xd1c)" ( (binary_expression "(int)data + 0xd1c" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_0005a44e;" goto statement_identifier ;)) (expression_statement "iVar3 = conf_get_int(*(Conf **)((int)data + 0x2238),0x60);" (assignment_expression "iVar3 = conf_get_int(*(Conf **)((int)data + 0x2238),0x60)" identifier = (call_expression "conf_get_int(*(Conf **)((int)data + 0x2238),0x60)" identifier (argument_list "(*(Conf **)((int)data + 0x2238),0x60)" ( (pointer_expression "*(Conf **)((int)data + 0x2238)" * (cast_expression "(Conf **)((int)data + 0x2238)" ( (type_descriptor "Conf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)data + 0x2238)" ( (binary_expression "(int)data + 0x2238" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal )))) ;) (expression_statement "term_size(*(Terminal **)((int)data + 0xd1c),newrows,value,iVar3);" (call_expression "term_size(*(Terminal **)((int)data + 0xd1c),newrows,value,iVar3)" identifier (argument_list "(*(Terminal **)((int)data + 0xd1c),newrows,value,iVar3)" ( (pointer_expression "*(Terminal **)((int)data + 0xd1c)" * (cast_expression "(Terminal **)((int)data + 0xd1c)" ( (type_descriptor "Terminal **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)data + 0xd1c)" ( (binary_expression "(int)data + 0xd1c" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , identifier , identifier , identifier ))) ;) })) (if_statement "if (*(Terminal **)((int)data + 0xd1c) != (Terminal *)0x0) {\n    term_invalidate(*(Terminal **)((int)data + 0xd1c));\n  }" if (parenthesized_expression "(*(Terminal **)((int)data + 0xd1c) != (Terminal *)0x0)" ( (binary_expression "*(Terminal **)((int)data + 0xd1c) != (Terminal *)0x0" (pointer_expression "*(Terminal **)((int)data + 0xd1c)" * (cast_expression "(Terminal **)((int)data + 0xd1c)" ( (type_descriptor "Terminal **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)data + 0xd1c)" ( (binary_expression "(int)data + 0xd1c" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (cast_expression "(Terminal *)0x0" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    term_invalidate(*(Terminal **)((int)data + 0xd1c));\n  }" { (expression_statement "term_invalidate(*(Terminal **)((int)data + 0xd1c));" (call_expression "term_invalidate(*(Terminal **)((int)data + 0xd1c))" identifier (argument_list "(*(Terminal **)((int)data + 0xd1c))" ( (pointer_expression "*(Terminal **)((int)data + 0xd1c)" * (cast_expression "(Terminal **)((int)data + 0xd1c)" ( (type_descriptor "Terminal **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)data + 0xd1c)" ( (binary_expression "(int)data + 0xd1c" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) })) (labeled_statement "LAB_0005a44e:\n  uVar2 = gtk_widget_get_window(widget);" statement_identifier : (expression_statement "uVar2 = gtk_widget_get_window(widget);" (assignment_expression "uVar2 = gtk_widget_get_window(widget)" identifier = (call_expression "gtk_widget_get_window(widget)" identifier (argument_list "(widget)" ( identifier )))) ;)) (expression_statement "gtk_im_context_set_client_window(*(undefined4 *)((int)data + 0x38),uVar2);" (call_expression "gtk_im_context_set_client_window(*(undefined4 *)((int)data + 0x38),uVar2)" identifier (argument_list "(*(undefined4 *)((int)data + 0x38),uVar2)" ( (pointer_expression "*(undefined4 *)((int)data + 0x38)" * (cast_expression "(undefined4 *)((int)data + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x38)" ( (binary_expression "(int)data + 0x38" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0005a320(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int local_24;\n  int local_20;\n  \n  iVar1 = *(int *)(param_3 + 0x2254);\n  iVar5 = *(int *)(param_3 + 0xcdc);\n  iVar2 = (*(int *)(param_2 + 0x14) + iVar1 * -2) / iVar5;\n  local_24 = *(int *)(param_3 + 0xce0);\n  iVar3 = (*(int *)(param_2 + 0x18) + iVar1 * -2) / local_24;\n  if ((*(int *)(param_3 + 0xce4) == iVar2) && (*(int *)(param_3 + 0xce8) == iVar3)) {\n    local_20 = *(int *)(param_3 + 0x10);\n    if (local_20 != 0) {\n      return 1;\n    }\n  }\n  else {\n    *(int *)(param_3 + 0xce8) = iVar3;\n    *(int *)(param_3 + 0xce4) = iVar2;\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));\n    iVar1 = *(int *)(param_3 + 0x2254);\n    iVar5 = *(int *)(param_3 + 0xcdc);\n    local_24 = *(int *)(param_3 + 0xce0);\n    local_20 = 1;\n  }\n  *(undefined4 *)(param_3 + 0x10) = 1;\n  if (*(int *)(param_3 + 0x34) != 0) {\n    cairo_surface_destroy(*(int *)(param_3 + 0x34));\n    *(undefined4 *)(param_3 + 0x34) = 0;\n  }\n  uVar4 = cairo_image_surface_create(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3);\n  *(undefined4 *)(param_3 + 0x34) = uVar4;\n  FUN_0005a240();\n  if (local_20 != 0) {\n    if (*(int *)(param_3 + 0xd1c) == 0) goto LAB_0005a44e;\n    uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60);\n    FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4);\n  }\n  if (*(int *)(param_3 + 0xd1c) != 0) {\n    FUN_0003d730(*(int *)(param_3 + 0xd1c));\n  }\nLAB_0005a44e:\n  uVar4 = gtk_widget_get_window(param_1);\n  gtk_im_context_set_client_window(*(undefined4 *)(param_3 + 0x38),uVar4);\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_0005a320(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int local_24;\n  int local_20;\n  \n  iVar1 = *(int *)(param_3 + 0x2254);\n  iVar5 = *(int *)(param_3 + 0xcdc);\n  iVar2 = (*(int *)(param_2 + 0x14) + iVar1 * -2) / iVar5;\n  local_24 = *(int *)(param_3 + 0xce0);\n  iVar3 = (*(int *)(param_2 + 0x18) + iVar1 * -2) / local_24;\n  if ((*(int *)(param_3 + 0xce4) == iVar2) && (*(int *)(param_3 + 0xce8) == iVar3)) {\n    local_20 = *(int *)(param_3 + 0x10);\n    if (local_20 != 0) {\n      return 1;\n    }\n  }\n  else {\n    *(int *)(param_3 + 0xce8) = iVar3;\n    *(int *)(param_3 + 0xce4) = iVar2;\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));\n    iVar1 = *(int *)(param_3 + 0x2254);\n    iVar5 = *(int *)(param_3 + 0xcdc);\n    local_24 = *(int *)(param_3 + 0xce0);\n    local_20 = 1;\n  }\n  *(undefined4 *)(param_3 + 0x10) = 1;\n  if (*(int *)(param_3 + 0x34) != 0) {\n    cairo_surface_destroy(*(int *)(param_3 + 0x34));\n    *(undefined4 *)(param_3 + 0x34) = 0;\n  }\n  uVar4 = cairo_image_surface_create(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3);\n  *(undefined4 *)(param_3 + 0x34) = uVar4;\n  FUN_0005a240();\n  if (local_20 != 0) {\n    if (*(int *)(param_3 + 0xd1c) == 0) goto LAB_0005a44e;\n    uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60);\n    FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4);\n  }\n  if (*(int *)(param_3 + 0xd1c) != 0) {\n    FUN_0003d730(*(int *)(param_3 + 0xd1c));\n  }\nLAB_0005a44e:\n  uVar4 = gtk_widget_get_window(param_1);\n  gtk_im_context_set_client_window(*(undefined4 *)(param_3 + 0x38),uVar4);\n  return 1;\n}" type_identifier (function_declarator "FUN_0005a320(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int local_24;\n  int local_20;\n  \n  iVar1 = *(int *)(param_3 + 0x2254);\n  iVar5 = *(int *)(param_3 + 0xcdc);\n  iVar2 = (*(int *)(param_2 + 0x14) + iVar1 * -2) / iVar5;\n  local_24 = *(int *)(param_3 + 0xce0);\n  iVar3 = (*(int *)(param_2 + 0x18) + iVar1 * -2) / local_24;\n  if ((*(int *)(param_3 + 0xce4) == iVar2) && (*(int *)(param_3 + 0xce8) == iVar3)) {\n    local_20 = *(int *)(param_3 + 0x10);\n    if (local_20 != 0) {\n      return 1;\n    }\n  }\n  else {\n    *(int *)(param_3 + 0xce8) = iVar3;\n    *(int *)(param_3 + 0xce4) = iVar2;\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));\n    iVar1 = *(int *)(param_3 + 0x2254);\n    iVar5 = *(int *)(param_3 + 0xcdc);\n    local_24 = *(int *)(param_3 + 0xce0);\n    local_20 = 1;\n  }\n  *(undefined4 *)(param_3 + 0x10) = 1;\n  if (*(int *)(param_3 + 0x34) != 0) {\n    cairo_surface_destroy(*(int *)(param_3 + 0x34));\n    *(undefined4 *)(param_3 + 0x34) = 0;\n  }\n  uVar4 = cairo_image_surface_create(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3);\n  *(undefined4 *)(param_3 + 0x34) = uVar4;\n  FUN_0005a240();\n  if (local_20 != 0) {\n    if (*(int *)(param_3 + 0xd1c) == 0) goto LAB_0005a44e;\n    uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60);\n    FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4);\n  }\n  if (*(int *)(param_3 + 0xd1c) != 0) {\n    FUN_0003d730(*(int *)(param_3 + 0xd1c));\n  }\nLAB_0005a44e:\n  uVar4 = gtk_widget_get_window(param_1);\n  gtk_im_context_set_client_window(*(undefined4 *)(param_3 + 0x38),uVar4);\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_3 + 0x2254);" (assignment_expression "iVar1 = *(int *)(param_3 + 0x2254)" identifier = (pointer_expression "*(int *)(param_3 + 0x2254)" * (cast_expression "(int *)(param_3 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2254)" ( (binary_expression "param_3 + 0x2254" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(param_3 + 0xcdc);" (assignment_expression "iVar5 = *(int *)(param_3 + 0xcdc)" identifier = (pointer_expression "*(int *)(param_3 + 0xcdc)" * (cast_expression "(int *)(param_3 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xcdc)" ( (binary_expression "param_3 + 0xcdc" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = (*(int *)(param_2 + 0x14) + iVar1 * -2) / iVar5;" (assignment_expression "iVar2 = (*(int *)(param_2 + 0x14) + iVar1 * -2) / iVar5" identifier = (binary_expression "(*(int *)(param_2 + 0x14) + iVar1 * -2) / iVar5" (parenthesized_expression "(*(int *)(param_2 + 0x14) + iVar1 * -2)" ( (binary_expression "*(int *)(param_2 + 0x14) + iVar1 * -2" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) + (binary_expression "iVar1 * -2" identifier * number_literal)) )) / identifier)) ;) (expression_statement "local_24 = *(int *)(param_3 + 0xce0);" (assignment_expression "local_24 = *(int *)(param_3 + 0xce0)" identifier = (pointer_expression "*(int *)(param_3 + 0xce0)" * (cast_expression "(int *)(param_3 + 0xce0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xce0)" ( (binary_expression "param_3 + 0xce0" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = (*(int *)(param_2 + 0x18) + iVar1 * -2) / local_24;" (assignment_expression "iVar3 = (*(int *)(param_2 + 0x18) + iVar1 * -2) / local_24" identifier = (binary_expression "(*(int *)(param_2 + 0x18) + iVar1 * -2) / local_24" (parenthesized_expression "(*(int *)(param_2 + 0x18) + iVar1 * -2)" ( (binary_expression "*(int *)(param_2 + 0x18) + iVar1 * -2" (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) + (binary_expression "iVar1 * -2" identifier * number_literal)) )) / identifier)) ;) (if_statement "if ((*(int *)(param_3 + 0xce4) == iVar2) && (*(int *)(param_3 + 0xce8) == iVar3)) {\n    local_20 = *(int *)(param_3 + 0x10);\n    if (local_20 != 0) {\n      return 1;\n    }\n  }\n  else {\n    *(int *)(param_3 + 0xce8) = iVar3;\n    *(int *)(param_3 + 0xce4) = iVar2;\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));\n    iVar1 = *(int *)(param_3 + 0x2254);\n    iVar5 = *(int *)(param_3 + 0xcdc);\n    local_24 = *(int *)(param_3 + 0xce0);\n    local_20 = 1;\n  }" if (parenthesized_expression "((*(int *)(param_3 + 0xce4) == iVar2) && (*(int *)(param_3 + 0xce8) == iVar3))" ( (binary_expression "(*(int *)(param_3 + 0xce4) == iVar2) && (*(int *)(param_3 + 0xce8) == iVar3)" (parenthesized_expression "(*(int *)(param_3 + 0xce4) == iVar2)" ( (binary_expression "*(int *)(param_3 + 0xce4) == iVar2" (pointer_expression "*(int *)(param_3 + 0xce4)" * (cast_expression "(int *)(param_3 + 0xce4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xce4)" ( (binary_expression "param_3 + 0xce4" identifier + number_literal) )))) == identifier) )) && (parenthesized_expression "(*(int *)(param_3 + 0xce8) == iVar3)" ( (binary_expression "*(int *)(param_3 + 0xce8) == iVar3" (pointer_expression "*(int *)(param_3 + 0xce8)" * (cast_expression "(int *)(param_3 + 0xce8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xce8)" ( (binary_expression "param_3 + 0xce8" identifier + number_literal) )))) == identifier) ))) )) (compound_statement "{\n    local_20 = *(int *)(param_3 + 0x10);\n    if (local_20 != 0) {\n      return 1;\n    }\n  }" { (expression_statement "local_20 = *(int *)(param_3 + 0x10);" (assignment_expression "local_20 = *(int *)(param_3 + 0x10)" identifier = (pointer_expression "*(int *)(param_3 + 0x10)" * (cast_expression "(int *)(param_3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (local_20 != 0) {\n      return 1;\n    }" if (parenthesized_expression "(local_20 != 0)" ( (binary_expression "local_20 != 0" identifier != number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else {\n    *(int *)(param_3 + 0xce8) = iVar3;\n    *(int *)(param_3 + 0xce4) = iVar2;\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));\n    iVar1 = *(int *)(param_3 + 0x2254);\n    iVar5 = *(int *)(param_3 + 0xcdc);\n    local_24 = *(int *)(param_3 + 0xce0);\n    local_20 = 1;\n  }" else (compound_statement "{\n    *(int *)(param_3 + 0xce8) = iVar3;\n    *(int *)(param_3 + 0xce4) = iVar2;\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));\n    iVar1 = *(int *)(param_3 + 0x2254);\n    iVar5 = *(int *)(param_3 + 0xcdc);\n    local_24 = *(int *)(param_3 + 0xce0);\n    local_20 = 1;\n  }" { (expression_statement "*(int *)(param_3 + 0xce8) = iVar3;" (assignment_expression "*(int *)(param_3 + 0xce8) = iVar3" (pointer_expression "*(int *)(param_3 + 0xce8)" * (cast_expression "(int *)(param_3 + 0xce8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xce8)" ( (binary_expression "param_3 + 0xce8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_3 + 0xce4) = iVar2;" (assignment_expression "*(int *)(param_3 + 0xce4) = iVar2" (pointer_expression "*(int *)(param_3 + 0xce4)" * (cast_expression "(int *)(param_3 + 0xce4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xce4)" ( (binary_expression "param_3 + 0xce4" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);" (call_expression "FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2)" identifier (argument_list "(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2)" ( (pointer_expression "*(undefined4 *)(param_3 + 0x2238)" * (cast_expression "(undefined4 *)(param_3 + 0x2238)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2238)" ( (binary_expression "param_3 + 0x2238" identifier + number_literal) )))) , number_literal , identifier ))) ;) (expression_statement "FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));" (call_expression "FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8))" identifier (argument_list "(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8))" ( (pointer_expression "*(undefined4 *)(param_3 + 0x2238)" * (cast_expression "(undefined4 *)(param_3 + 0x2238)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2238)" ( (binary_expression "param_3 + 0x2238" identifier + number_literal) )))) , number_literal , (pointer_expression "*(undefined4 *)(param_3 + 0xce8)" * (cast_expression "(undefined4 *)(param_3 + 0xce8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xce8)" ( (binary_expression "param_3 + 0xce8" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = *(int *)(param_3 + 0x2254);" (assignment_expression "iVar1 = *(int *)(param_3 + 0x2254)" identifier = (pointer_expression "*(int *)(param_3 + 0x2254)" * (cast_expression "(int *)(param_3 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2254)" ( (binary_expression "param_3 + 0x2254" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(param_3 + 0xcdc);" (assignment_expression "iVar5 = *(int *)(param_3 + 0xcdc)" identifier = (pointer_expression "*(int *)(param_3 + 0xcdc)" * (cast_expression "(int *)(param_3 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xcdc)" ( (binary_expression "param_3 + 0xcdc" identifier + number_literal) ))))) ;) (expression_statement "local_24 = *(int *)(param_3 + 0xce0);" (assignment_expression "local_24 = *(int *)(param_3 + 0xce0)" identifier = (pointer_expression "*(int *)(param_3 + 0xce0)" * (cast_expression "(int *)(param_3 + 0xce0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xce0)" ( (binary_expression "param_3 + 0xce0" identifier + number_literal) ))))) ;) (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" identifier = number_literal) ;) }))) (expression_statement "*(undefined4 *)(param_3 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(param_3 + 0x10) = 1" (pointer_expression "*(undefined4 *)(param_3 + 0x10)" * (cast_expression "(undefined4 *)(param_3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (*(int *)(param_3 + 0x34) != 0) {\n    cairo_surface_destroy(*(int *)(param_3 + 0x34));\n    *(undefined4 *)(param_3 + 0x34) = 0;\n  }" if (parenthesized_expression "(*(int *)(param_3 + 0x34) != 0)" ( (binary_expression "*(int *)(param_3 + 0x34) != 0" (pointer_expression "*(int *)(param_3 + 0x34)" * (cast_expression "(int *)(param_3 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x34)" ( (binary_expression "param_3 + 0x34" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    cairo_surface_destroy(*(int *)(param_3 + 0x34));\n    *(undefined4 *)(param_3 + 0x34) = 0;\n  }" { (expression_statement "cairo_surface_destroy(*(int *)(param_3 + 0x34));" (call_expression "cairo_surface_destroy(*(int *)(param_3 + 0x34))" identifier (argument_list "(*(int *)(param_3 + 0x34))" ( (pointer_expression "*(int *)(param_3 + 0x34)" * (cast_expression "(int *)(param_3 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x34)" ( (binary_expression "param_3 + 0x34" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_3 + 0x34) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0x34) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0x34)" * (cast_expression "(undefined4 *)(param_3 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x34)" ( (binary_expression "param_3 + 0x34" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "uVar4 = cairo_image_surface_create(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3);" (assignment_expression "uVar4 = cairo_image_surface_create(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3)" identifier = (call_expression "cairo_image_surface_create(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3)" identifier (argument_list "(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3)" ( number_literal , (binary_expression "iVar5 * iVar2 + iVar1 * 2" (binary_expression "iVar5 * iVar2" identifier * identifier) + (binary_expression "iVar1 * 2" identifier * number_literal)) , (binary_expression "iVar1 * 2 + local_24 * iVar3" (binary_expression "iVar1 * 2" identifier * number_literal) + (binary_expression "local_24 * iVar3" identifier * identifier)) )))) ;) (expression_statement "*(undefined4 *)(param_3 + 0x34) = uVar4;" (assignment_expression "*(undefined4 *)(param_3 + 0x34) = uVar4" (pointer_expression "*(undefined4 *)(param_3 + 0x34)" * (cast_expression "(undefined4 *)(param_3 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x34)" ( (binary_expression "param_3 + 0x34" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_0005a240();" (call_expression "FUN_0005a240()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_20 != 0) {\n    if (*(int *)(param_3 + 0xd1c) == 0) goto LAB_0005a44e;\n    uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60);\n    FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4);\n  }" if (parenthesized_expression "(local_20 != 0)" ( (binary_expression "local_20 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(param_3 + 0xd1c) == 0) goto LAB_0005a44e;\n    uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60);\n    FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4);\n  }" { (if_statement "if (*(int *)(param_3 + 0xd1c) == 0) goto LAB_0005a44e;" if (parenthesized_expression "(*(int *)(param_3 + 0xd1c) == 0)" ( (binary_expression "*(int *)(param_3 + 0xd1c) == 0" (pointer_expression "*(int *)(param_3 + 0xd1c)" * (cast_expression "(int *)(param_3 + 0xd1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xd1c)" ( (binary_expression "param_3 + 0xd1c" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_0005a44e;" goto statement_identifier ;)) (expression_statement "uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60);" (assignment_expression "uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60)" identifier = (call_expression "FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60)" identifier (argument_list "(*(undefined4 *)(param_3 + 0x2238),0x60)" ( (pointer_expression "*(undefined4 *)(param_3 + 0x2238)" * (cast_expression "(undefined4 *)(param_3 + 0x2238)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2238)" ( (binary_expression "param_3 + 0x2238" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4);" (call_expression "FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4)" identifier (argument_list "(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4)" ( (pointer_expression "*(undefined4 *)(param_3 + 0xd1c)" * (cast_expression "(undefined4 *)(param_3 + 0xd1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xd1c)" ( (binary_expression "param_3 + 0xd1c" identifier + number_literal) )))) , identifier , identifier , identifier ))) ;) })) (if_statement "if (*(int *)(param_3 + 0xd1c) != 0) {\n    FUN_0003d730(*(int *)(param_3 + 0xd1c));\n  }" if (parenthesized_expression "(*(int *)(param_3 + 0xd1c) != 0)" ( (binary_expression "*(int *)(param_3 + 0xd1c) != 0" (pointer_expression "*(int *)(param_3 + 0xd1c)" * (cast_expression "(int *)(param_3 + 0xd1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xd1c)" ( (binary_expression "param_3 + 0xd1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_0003d730(*(int *)(param_3 + 0xd1c));\n  }" { (expression_statement "FUN_0003d730(*(int *)(param_3 + 0xd1c));" (call_expression "FUN_0003d730(*(int *)(param_3 + 0xd1c))" identifier (argument_list "(*(int *)(param_3 + 0xd1c))" ( (pointer_expression "*(int *)(param_3 + 0xd1c)" * (cast_expression "(int *)(param_3 + 0xd1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xd1c)" ( (binary_expression "param_3 + 0xd1c" identifier + number_literal) )))) ))) ;) })) (labeled_statement "LAB_0005a44e:\n  uVar4 = gtk_widget_get_window(param_1);" statement_identifier : (expression_statement "uVar4 = gtk_widget_get_window(param_1);" (assignment_expression "uVar4 = gtk_widget_get_window(param_1)" identifier = (call_expression "gtk_widget_get_window(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;)) (expression_statement "gtk_im_context_set_client_window(*(undefined4 *)(param_3 + 0x38),uVar4);" (call_expression "gtk_im_context_set_client_window(*(undefined4 *)(param_3 + 0x38),uVar4)" identifier (argument_list "(*(undefined4 *)(param_3 + 0x38),uVar4)" ( (pointer_expression "*(undefined4 *)(param_3 + 0x38)" * (cast_expression "(undefined4 *)(param_3 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x38)" ( (binary_expression "param_3 + 0x38" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )) / IDENT)) ;) (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 = (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )) / IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (binary_expression (binary_expression IDENT * IDENT) + (binary_expression IDENT * LIT)) , (binary_expression (binary_expression IDENT * LIT) + (binary_expression IDENT * IDENT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (goto_statement goto statement_identifier ;)) (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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;)) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0005a320(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int local_24;\n  int local_20;\n  \n  iVar1 = *(int *)(param_3 + 0x2254);\n  iVar5 = *(int *)(param_3 + 0xcdc);\n  iVar2 = (*(int *)(param_2 + 0x14) + iVar1 * -2) / iVar5;\n  local_24 = *(int *)(param_3 + 0xce0);\n  iVar3 = (*(int *)(param_2 + 0x18) + iVar1 * -2) / local_24;\n  if ((*(int *)(param_3 + 0xce4) == iVar2) && (*(int *)(param_3 + 0xce8) == iVar3)) {\n    local_20 = *(int *)(param_3 + 0x10);\n    if (local_20 != 0) {\n      return 1;\n    }\n  }\n  else {\n    *(int *)(param_3 + 0xce8) = iVar3;\n    *(int *)(param_3 + 0xce4) = iVar2;\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));\n    iVar1 = *(int *)(param_3 + 0x2254);\n    iVar5 = *(int *)(param_3 + 0xcdc);\n    local_24 = *(int *)(param_3 + 0xce0);\n    local_20 = 1;\n  }\n  *(undefined4 *)(param_3 + 0x10) = 1;\n  if (*(int *)(param_3 + 0x34) != 0) {\n    cairo_surface_destroy(*(int *)(param_3 + 0x34));\n    *(undefined4 *)(param_3 + 0x34) = 0;\n  }\n  uVar4 = cairo_image_surface_create(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3);\n  *(undefined4 *)(param_3 + 0x34) = uVar4;\n  FUN_0005a240();\n  if (local_20 != 0) {\n    if (*(int *)(param_3 + 0xd1c) == 0) goto LAB_0005a44e;\n    uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60);\n    FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4);\n  }\n  if (*(int *)(param_3 + 0xd1c) != 0) {\n    FUN_0003d730(*(int *)(param_3 + 0xd1c));\n  }\nLAB_0005a44e:\n  uVar4 = gtk_widget_get_window(param_1);\n  gtk_im_context_set_client_window(*(undefined4 *)(param_3 + 0x38),uVar4);\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_0005a320(undefined4 param_1,int param_2,int param_3)" (identifier "FUN_0005a320") (parameter_list "(undefined4 param_1,int param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int local_24;\n  int local_20;\n  \n  iVar1 = *(int *)(param_3 + 0x2254);\n  iVar5 = *(int *)(param_3 + 0xcdc);\n  iVar2 = (*(int *)(param_2 + 0x14) + iVar1 * -2) / iVar5;\n  local_24 = *(int *)(param_3 + 0xce0);\n  iVar3 = (*(int *)(param_2 + 0x18) + iVar1 * -2) / local_24;\n  if ((*(int *)(param_3 + 0xce4) == iVar2) && (*(int *)(param_3 + 0xce8) == iVar3)) {\n    local_20 = *(int *)(param_3 + 0x10);\n    if (local_20 != 0) {\n      return 1;\n    }\n  }\n  else {\n    *(int *)(param_3 + 0xce8) = iVar3;\n    *(int *)(param_3 + 0xce4) = iVar2;\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));\n    iVar1 = *(int *)(param_3 + 0x2254);\n    iVar5 = *(int *)(param_3 + 0xcdc);\n    local_24 = *(int *)(param_3 + 0xce0);\n    local_20 = 1;\n  }\n  *(undefined4 *)(param_3 + 0x10) = 1;\n  if (*(int *)(param_3 + 0x34) != 0) {\n    cairo_surface_destroy(*(int *)(param_3 + 0x34));\n    *(undefined4 *)(param_3 + 0x34) = 0;\n  }\n  uVar4 = cairo_image_surface_create(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3);\n  *(undefined4 *)(param_3 + 0x34) = uVar4;\n  FUN_0005a240();\n  if (local_20 != 0) {\n    if (*(int *)(param_3 + 0xd1c) == 0) goto LAB_0005a44e;\n    uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60);\n    FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4);\n  }\n  if (*(int *)(param_3 + 0xd1c) != 0) {\n    FUN_0003d730(*(int *)(param_3 + 0xd1c));\n  }\nLAB_0005a44e:\n  uVar4 = gtk_widget_get_window(param_1);\n  gtk_im_context_set_client_window(*(undefined4 *)(param_3 + 0x38),uVar4);\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "iVar1 = *(int *)(param_3 + 0x2254);" (assignment_expression "iVar1 = *(int *)(param_3 + 0x2254)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_3 + 0x2254)" (* "*") (cast_expression "(int *)(param_3 + 0x2254)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x2254)" (( "(") (binary_expression "param_3 + 0x2254" (identifier "param_3") (+ "+") (number_literal "0x2254")) () ")"))))) (; ";")) (expression_statement "iVar5 = *(int *)(param_3 + 0xcdc);" (assignment_expression "iVar5 = *(int *)(param_3 + 0xcdc)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_3 + 0xcdc)" (* "*") (cast_expression "(int *)(param_3 + 0xcdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xcdc)" (( "(") (binary_expression "param_3 + 0xcdc" (identifier "param_3") (+ "+") (number_literal "0xcdc")) () ")"))))) (; ";")) (expression_statement "iVar2 = (*(int *)(param_2 + 0x14) + iVar1 * -2) / iVar5;" (assignment_expression "iVar2 = (*(int *)(param_2 + 0x14) + iVar1 * -2) / iVar5" (identifier "iVar2") (= "=") (binary_expression "(*(int *)(param_2 + 0x14) + iVar1 * -2) / iVar5" (parenthesized_expression "(*(int *)(param_2 + 0x14) + iVar1 * -2)" (( "(") (binary_expression "*(int *)(param_2 + 0x14) + iVar1 * -2" (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (binary_expression "iVar1 * -2" (identifier "iVar1") (* "*") (number_literal "-2"))) () ")")) (/ "/") (identifier "iVar5"))) (; ";")) (expression_statement "local_24 = *(int *)(param_3 + 0xce0);" (assignment_expression "local_24 = *(int *)(param_3 + 0xce0)" (identifier "local_24") (= "=") (pointer_expression "*(int *)(param_3 + 0xce0)" (* "*") (cast_expression "(int *)(param_3 + 0xce0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xce0)" (( "(") (binary_expression "param_3 + 0xce0" (identifier "param_3") (+ "+") (number_literal "0xce0")) () ")"))))) (; ";")) (expression_statement "iVar3 = (*(int *)(param_2 + 0x18) + iVar1 * -2) / local_24;" (assignment_expression "iVar3 = (*(int *)(param_2 + 0x18) + iVar1 * -2) / local_24" (identifier "iVar3") (= "=") (binary_expression "(*(int *)(param_2 + 0x18) + iVar1 * -2) / local_24" (parenthesized_expression "(*(int *)(param_2 + 0x18) + iVar1 * -2)" (( "(") (binary_expression "*(int *)(param_2 + 0x18) + iVar1 * -2" (pointer_expression "*(int *)(param_2 + 0x18)" (* "*") (cast_expression "(int *)(param_2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (binary_expression "iVar1 * -2" (identifier "iVar1") (* "*") (number_literal "-2"))) () ")")) (/ "/") (identifier "local_24"))) (; ";")) (if_statement "if ((*(int *)(param_3 + 0xce4) == iVar2) && (*(int *)(param_3 + 0xce8) == iVar3)) {\n    local_20 = *(int *)(param_3 + 0x10);\n    if (local_20 != 0) {\n      return 1;\n    }\n  }\n  else {\n    *(int *)(param_3 + 0xce8) = iVar3;\n    *(int *)(param_3 + 0xce4) = iVar2;\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));\n    iVar1 = *(int *)(param_3 + 0x2254);\n    iVar5 = *(int *)(param_3 + 0xcdc);\n    local_24 = *(int *)(param_3 + 0xce0);\n    local_20 = 1;\n  }" (if "if") (parenthesized_expression "((*(int *)(param_3 + 0xce4) == iVar2) && (*(int *)(param_3 + 0xce8) == iVar3))" (( "(") (binary_expression "(*(int *)(param_3 + 0xce4) == iVar2) && (*(int *)(param_3 + 0xce8) == iVar3)" (parenthesized_expression "(*(int *)(param_3 + 0xce4) == iVar2)" (( "(") (binary_expression "*(int *)(param_3 + 0xce4) == iVar2" (pointer_expression "*(int *)(param_3 + 0xce4)" (* "*") (cast_expression "(int *)(param_3 + 0xce4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xce4)" (( "(") (binary_expression "param_3 + 0xce4" (identifier "param_3") (+ "+") (number_literal "0xce4")) () ")")))) (== "==") (identifier "iVar2")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_3 + 0xce8) == iVar3)" (( "(") (binary_expression "*(int *)(param_3 + 0xce8) == iVar3" (pointer_expression "*(int *)(param_3 + 0xce8)" (* "*") (cast_expression "(int *)(param_3 + 0xce8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xce8)" (( "(") (binary_expression "param_3 + 0xce8" (identifier "param_3") (+ "+") (number_literal "0xce8")) () ")")))) (== "==") (identifier "iVar3")) () ")"))) () ")")) (compound_statement "{\n    local_20 = *(int *)(param_3 + 0x10);\n    if (local_20 != 0) {\n      return 1;\n    }\n  }" ({ "{") (expression_statement "local_20 = *(int *)(param_3 + 0x10);" (assignment_expression "local_20 = *(int *)(param_3 + 0x10)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(param_3 + 0x10)" (* "*") (cast_expression "(int *)(param_3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x10)" (( "(") (binary_expression "param_3 + 0x10" (identifier "param_3") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if (local_20 != 0) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(local_20 != 0)" (( "(") (binary_expression "local_20 != 0" (identifier "local_20") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    *(int *)(param_3 + 0xce8) = iVar3;\n    *(int *)(param_3 + 0xce4) = iVar2;\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));\n    iVar1 = *(int *)(param_3 + 0x2254);\n    iVar5 = *(int *)(param_3 + 0xcdc);\n    local_24 = *(int *)(param_3 + 0xce0);\n    local_20 = 1;\n  }" (else "else") (compound_statement "{\n    *(int *)(param_3 + 0xce8) = iVar3;\n    *(int *)(param_3 + 0xce4) = iVar2;\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);\n    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));\n    iVar1 = *(int *)(param_3 + 0x2254);\n    iVar5 = *(int *)(param_3 + 0xcdc);\n    local_24 = *(int *)(param_3 + 0xce0);\n    local_20 = 1;\n  }" ({ "{") (expression_statement "*(int *)(param_3 + 0xce8) = iVar3;" (assignment_expression "*(int *)(param_3 + 0xce8) = iVar3" (pointer_expression "*(int *)(param_3 + 0xce8)" (* "*") (cast_expression "(int *)(param_3 + 0xce8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xce8)" (( "(") (binary_expression "param_3 + 0xce8" (identifier "param_3") (+ "+") (number_literal "0xce8")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(int *)(param_3 + 0xce4) = iVar2;" (assignment_expression "*(int *)(param_3 + 0xce4) = iVar2" (pointer_expression "*(int *)(param_3 + 0xce4)" (* "*") (cast_expression "(int *)(param_3 + 0xce4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xce4)" (( "(") (binary_expression "param_3 + 0xce4" (identifier "param_3") (+ "+") (number_literal "0xce4")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);" (call_expression "FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2)" (identifier "FUN_0001f190") (argument_list "(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2)" (( "(") (pointer_expression "*(undefined4 *)(param_3 + 0x2238)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x2238)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x2238)" (( "(") (binary_expression "param_3 + 0x2238" (identifier "param_3") (+ "+") (number_literal "0x2238")) () ")")))) (, ",") (number_literal "0x73") (, ",") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));" (call_expression "FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8))" (identifier "FUN_0001f190") (argument_list "(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8))" (( "(") (pointer_expression "*(undefined4 *)(param_3 + 0x2238)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x2238)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x2238)" (( "(") (binary_expression "param_3 + 0x2238" (identifier "param_3") (+ "+") (number_literal "0x2238")) () ")")))) (, ",") (number_literal "0x74") (, ",") (pointer_expression "*(undefined4 *)(param_3 + 0xce8)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0xce8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xce8)" (( "(") (binary_expression "param_3 + 0xce8" (identifier "param_3") (+ "+") (number_literal "0xce8")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_3 + 0x2254);" (assignment_expression "iVar1 = *(int *)(param_3 + 0x2254)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_3 + 0x2254)" (* "*") (cast_expression "(int *)(param_3 + 0x2254)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x2254)" (( "(") (binary_expression "param_3 + 0x2254" (identifier "param_3") (+ "+") (number_literal "0x2254")) () ")"))))) (; ";")) (expression_statement "iVar5 = *(int *)(param_3 + 0xcdc);" (assignment_expression "iVar5 = *(int *)(param_3 + 0xcdc)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_3 + 0xcdc)" (* "*") (cast_expression "(int *)(param_3 + 0xcdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xcdc)" (( "(") (binary_expression "param_3 + 0xcdc" (identifier "param_3") (+ "+") (number_literal "0xcdc")) () ")"))))) (; ";")) (expression_statement "local_24 = *(int *)(param_3 + 0xce0);" (assignment_expression "local_24 = *(int *)(param_3 + 0xce0)" (identifier "local_24") (= "=") (pointer_expression "*(int *)(param_3 + 0xce0)" (* "*") (cast_expression "(int *)(param_3 + 0xce0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xce0)" (( "(") (binary_expression "param_3 + 0xce0" (identifier "param_3") (+ "+") (number_literal "0xce0")) () ")"))))) (; ";")) (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" (identifier "local_20") (= "=") (number_literal "1")) (; ";")) (} "}")))) (expression_statement "*(undefined4 *)(param_3 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(param_3 + 0x10) = 1" (pointer_expression "*(undefined4 *)(param_3 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x10)" (( "(") (binary_expression "param_3 + 0x10" (identifier "param_3") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "1")) (; ";")) (if_statement "if (*(int *)(param_3 + 0x34) != 0) {\n    cairo_surface_destroy(*(int *)(param_3 + 0x34));\n    *(undefined4 *)(param_3 + 0x34) = 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_3 + 0x34) != 0)" (( "(") (binary_expression "*(int *)(param_3 + 0x34) != 0" (pointer_expression "*(int *)(param_3 + 0x34)" (* "*") (cast_expression "(int *)(param_3 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x34)" (( "(") (binary_expression "param_3 + 0x34" (identifier "param_3") (+ "+") (number_literal "0x34")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    cairo_surface_destroy(*(int *)(param_3 + 0x34));\n    *(undefined4 *)(param_3 + 0x34) = 0;\n  }" ({ "{") (expression_statement "cairo_surface_destroy(*(int *)(param_3 + 0x34));" (call_expression "cairo_surface_destroy(*(int *)(param_3 + 0x34))" (identifier "cairo_surface_destroy") (argument_list "(*(int *)(param_3 + 0x34))" (( "(") (pointer_expression "*(int *)(param_3 + 0x34)" (* "*") (cast_expression "(int *)(param_3 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x34)" (( "(") (binary_expression "param_3 + 0x34" (identifier "param_3") (+ "+") (number_literal "0x34")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_3 + 0x34) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0x34) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0x34)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x34)" (( "(") (binary_expression "param_3 + 0x34" (identifier "param_3") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "uVar4 = cairo_image_surface_create(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3);" (assignment_expression "uVar4 = cairo_image_surface_create(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3)" (identifier "uVar4") (= "=") (call_expression "cairo_image_surface_create(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3)" (identifier "cairo_image_surface_create") (argument_list "(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3)" (( "(") (number_literal "0") (, ",") (binary_expression "iVar5 * iVar2 + iVar1 * 2" (binary_expression "iVar5 * iVar2" (identifier "iVar5") (* "*") (identifier "iVar2")) (+ "+") (binary_expression "iVar1 * 2" (identifier "iVar1") (* "*") (number_literal "2"))) (, ",") (binary_expression "iVar1 * 2 + local_24 * iVar3" (binary_expression "iVar1 * 2" (identifier "iVar1") (* "*") (number_literal "2")) (+ "+") (binary_expression "local_24 * iVar3" (identifier "local_24") (* "*") (identifier "iVar3"))) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_3 + 0x34) = uVar4;" (assignment_expression "*(undefined4 *)(param_3 + 0x34) = uVar4" (pointer_expression "*(undefined4 *)(param_3 + 0x34)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x34)" (( "(") (binary_expression "param_3 + 0x34" (identifier "param_3") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "FUN_0005a240();" (call_expression "FUN_0005a240()" (identifier "FUN_0005a240") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (local_20 != 0) {\n    if (*(int *)(param_3 + 0xd1c) == 0) goto LAB_0005a44e;\n    uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60);\n    FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4);\n  }" (if "if") (parenthesized_expression "(local_20 != 0)" (( "(") (binary_expression "local_20 != 0" (identifier "local_20") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(param_3 + 0xd1c) == 0) goto LAB_0005a44e;\n    uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60);\n    FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4);\n  }" ({ "{") (if_statement "if (*(int *)(param_3 + 0xd1c) == 0) goto LAB_0005a44e;" (if "if") (parenthesized_expression "(*(int *)(param_3 + 0xd1c) == 0)" (( "(") (binary_expression "*(int *)(param_3 + 0xd1c) == 0" (pointer_expression "*(int *)(param_3 + 0xd1c)" (* "*") (cast_expression "(int *)(param_3 + 0xd1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xd1c)" (( "(") (binary_expression "param_3 + 0xd1c" (identifier "param_3") (+ "+") (number_literal "0xd1c")) () ")")))) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0005a44e;" (goto "goto") (statement_identifier "LAB_0005a44e") (; ";"))) (expression_statement "uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60);" (assignment_expression "uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60)" (identifier "uVar4") (= "=") (call_expression "FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60)" (identifier "FUN_0001ea70") (argument_list "(*(undefined4 *)(param_3 + 0x2238),0x60)" (( "(") (pointer_expression "*(undefined4 *)(param_3 + 0x2238)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x2238)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x2238)" (( "(") (binary_expression "param_3 + 0x2238" (identifier "param_3") (+ "+") (number_literal "0x2238")) () ")")))) (, ",") (number_literal "0x60") () ")")))) (; ";")) (expression_statement "FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4);" (call_expression "FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4)" (identifier "FUN_0003e290") (argument_list "(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4)" (( "(") (pointer_expression "*(undefined4 *)(param_3 + 0xd1c)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0xd1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xd1c)" (( "(") (binary_expression "param_3 + 0xd1c" (identifier "param_3") (+ "+") (number_literal "0xd1c")) () ")")))) (, ",") (identifier "iVar3") (, ",") (identifier "iVar2") (, ",") (identifier "uVar4") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_3 + 0xd1c) != 0) {\n    FUN_0003d730(*(int *)(param_3 + 0xd1c));\n  }" (if "if") (parenthesized_expression "(*(int *)(param_3 + 0xd1c) != 0)" (( "(") (binary_expression "*(int *)(param_3 + 0xd1c) != 0" (pointer_expression "*(int *)(param_3 + 0xd1c)" (* "*") (cast_expression "(int *)(param_3 + 0xd1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xd1c)" (( "(") (binary_expression "param_3 + 0xd1c" (identifier "param_3") (+ "+") (number_literal "0xd1c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0003d730(*(int *)(param_3 + 0xd1c));\n  }" ({ "{") (expression_statement "FUN_0003d730(*(int *)(param_3 + 0xd1c));" (call_expression "FUN_0003d730(*(int *)(param_3 + 0xd1c))" (identifier "FUN_0003d730") (argument_list "(*(int *)(param_3 + 0xd1c))" (( "(") (pointer_expression "*(int *)(param_3 + 0xd1c)" (* "*") (cast_expression "(int *)(param_3 + 0xd1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xd1c)" (( "(") (binary_expression "param_3 + 0xd1c" (identifier "param_3") (+ "+") (number_literal "0xd1c")) () ")")))) () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_0005a44e:\n  uVar4 = gtk_widget_get_window(param_1);" (statement_identifier "LAB_0005a44e") (: ":") (expression_statement "uVar4 = gtk_widget_get_window(param_1);" (assignment_expression "uVar4 = gtk_widget_get_window(param_1)" (identifier "uVar4") (= "=") (call_expression "gtk_widget_get_window(param_1)" (identifier "gtk_widget_get_window") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";"))) (expression_statement "gtk_im_context_set_client_window(*(undefined4 *)(param_3 + 0x38),uVar4);" (call_expression "gtk_im_context_set_client_window(*(undefined4 *)(param_3 + 0x38),uVar4)" (identifier "gtk_im_context_set_client_window") (argument_list "(*(undefined4 *)(param_3 + 0x38),uVar4)" (( "(") (pointer_expression "*(undefined4 *)(param_3 + 0x38)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x38)" (( "(") (binary_expression "param_3 + 0x38" (identifier "param_3") (+ "+") (number_literal "0x38")) () ")")))) (, ",") (identifier "uVar4") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

type_1 function_1(type_2 *widget,type_3 *event,type_4 data)

{
  int var_1;
  int var_4;
  int var_5;
  type_5 uVar2;
  int var_2;
  int var_3;
  int var_6;
  
  var_1 = *(int *)((int)data + 0x2254);
  var_2 = *(int *)((int)data + 0xcdc);
  var_4 = (event->width + var_1 * -2) / var_2;
  var_3 = *(int *)((int)data + 0xce0);
  var_5 = (event->height + var_1 * -2) / var_3;
  if ((*(int *)((int)data + 0xce4) == var_4) && (*(int *)((int)data + 0xce8) == var_5)) {
    var_6 = *(int *)((int)data + 0x10);
    if (var_6 != 0) {
      return 1;
    }
  }
  else {
    *(int *)((int)data + 0xce8) = var_5;
    *(int *)((int)data + 0xce4) = var_4;
    var_7(*(type_6 **)((int)data + 0x2238),0x73,var_4);
    var_7(*(type_6 **)((int)data + 0x2238),0x74,*(int *)((int)data + 0xce8));
    var_1 = *(int *)((int)data + 0x2254);
    var_2 = *(int *)((int)data + 0xcdc);
    var_3 = *(int *)((int)data + 0xce0);
    var_6 = 1;
  }
  *(type_5 *)((int)data + 0x10) = 1;
  if (*(int *)((int)data + 0x34) != 0) {
    var_8(*(int *)((int)data + 0x34));
    *(type_5 *)((int)data + 0x34) = 0;
  }
  uVar2 = var_9(0,var_2 * var_4 + var_1 * 2,var_1 * 2 + var_3 * var_5);
  *(type_5 *)((int)data + 0x34) = uVar2;
  var_10((type_7 *)data);
  if (var_6 != 0) {
    if (*(int *)((int)data + 0xd1c) == 0) goto LAB_0005a44e;
    var_2 = var_11(*(type_6 **)((int)data + 0x2238),0x60);
    var_12(*(type_8 **)((int)data + 0xd1c),var_5,var_4,var_2);
  }
  if (*(type_8 **)((int)data + 0xd1c) != (type_8 *)0x0) {
    var_13(*(type_8 **)((int)data + 0xd1c));
  }
LAB_0005a44e:
  uVar2 = var_14(widget);
  var_15(*(type_5 *)((int)data + 0x38),uVar2);
  return 1;
}


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

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

undefined4 MASKED(undefined4 param_1,int param_2,int param_3)

{
  int iVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  int local_24;
  int local_20;
  
  iVar1 = *(int *)(param_3 + 0x2254);
  iVar5 = *(int *)(param_3 + 0xcdc);
  iVar2 = (*(int *)(param_2 + 0x14) + iVar1 * -2) / iVar5;
  local_24 = *(int *)(param_3 + 0xce0);
  iVar3 = (*(int *)(param_2 + 0x18) + iVar1 * -2) / local_24;
  if ((*(int *)(param_3 + 0xce4) == iVar2) && (*(int *)(param_3 + 0xce8) == iVar3)) {
    local_20 = *(int *)(param_3 + 0x10);
    if (local_20 != 0) {
      return 1;
    }
  }
  else {
    *(int *)(param_3 + 0xce8) = iVar3;
    *(int *)(param_3 + 0xce4) = iVar2;
    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x73,iVar2);
    FUN_0001f190(*(undefined4 *)(param_3 + 0x2238),0x74,*(undefined4 *)(param_3 + 0xce8));
    iVar1 = *(int *)(param_3 + 0x2254);
    iVar5 = *(int *)(param_3 + 0xcdc);
    local_24 = *(int *)(param_3 + 0xce0);
    local_20 = 1;
  }
  *(undefined4 *)(param_3 + 0x10) = 1;
  if (*(int *)(param_3 + 0x34) != 0) {
    cairo_surface_destroy(*(int *)(param_3 + 0x34));
    *(undefined4 *)(param_3 + 0x34) = 0;
  }
  uVar4 = cairo_image_surface_create(0,iVar5 * iVar2 + iVar1 * 2,iVar1 * 2 + local_24 * iVar3);
  *(undefined4 *)(param_3 + 0x34) = uVar4;
  FUN_0005a240();
  if (local_20 != 0) {
    if (*(int *)(param_3 + 0xd1c) == 0) goto LAB_0005a44e;
    uVar4 = FUN_0001ea70(*(undefined4 *)(param_3 + 0x2238),0x60);
    FUN_0003e290(*(undefined4 *)(param_3 + 0xd1c),iVar3,iVar2,uVar4);
  }
  if (*(int *)(param_3 + 0xd1c) != 0) {
    FUN_0003d730(*(int *)(param_3 + 0xd1c));
  }
LAB_0005a44e:
  uVar4 = gtk_widget_get_window(param_1);
  gtk_im_context_set_client_window(*(undefined4 *)(param_3 + 0x38),uVar4);
  return 1;
}

