
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void __regparm3 draw_backing_rect(gui_data *inst)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int *ptr;
  double dVar6;
  
  ptr = (int *)get_ctx(inst);
  iVar1 = inst->height;
  iVar2 = inst->font_height;
  iVar3 = inst->width;
  iVar4 = inst->font_width;
  iVar5 = inst->window_border * 2;
  if (ptr[1] == 0) {
    dVar6 = (double)((float)*(ushort *)(*ptr + 0xc90) / _DAT_00095440);
    cairo_set_source_rgb();
    if (ptr[1] == 0) {
      cairo_new_path();
      cairo_rectangle(ptr[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),
                      dVar6);
      cairo_fill();
    }
  }
  gtk_widget_queue_draw_area();
  if (ptr[1] == 0) {
    cairo_destroy();
  }
  safefree(ptr);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void __regparm3 FUN_00069b00(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int *piVar6;
  double dVar7;
  
  piVar6 = (int *)FUN_00069a40();
  iVar1 = *(int *)(param_1 + 0xce8);
  iVar2 = *(int *)(param_1 + 0xce0);
  iVar3 = *(int *)(param_1 + 0xce4);
  iVar4 = *(int *)(param_1 + 0xcdc);
  iVar5 = *(int *)(param_1 + 0x2254) * 2;
  if (piVar6[1] == 0) {
    dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440);
    cairo_set_source_rgb();
    if (piVar6[1] == 0) {
      cairo_new_path();
      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),
                      dVar7);
      cairo_fill();
    }
  }
  gtk_widget_queue_draw_area();
  if (piVar6[1] == 0) {
    cairo_destroy();
  }
  FUN_00031580();
  return;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001b410
ADD EBX,0x5bc99
SUB ESP,0x28
PUSH EAX
CALL 0x00069a40
MOV EDX,dword ptr [EBP + 0xce8]
IMUL EDX,dword ptr [EBP + 0xce0]
ADD ESP,0x10
MOV ESI,EAX
MOV EDI,dword ptr [EBP + 0xce4]
MOV EAX,dword ptr [EBP + 0x2254]
IMUL EDI,dword ptr [EBP + 0xcdc]
MOV ECX,dword ptr [ESI + 0x4]
ADD EAX,EAX
MOV EBP,EDX
ADD EBP,EAX
ADD EDI,EAX
TEST ECX,ECX
JZ 0x00069b80
SUB ESP,0xc
PUSH EBP
PUSH EDI
PUSH 0x0
PUSH 0x0
MOV EAX,dword ptr [ESI]
PUSH dword ptr [EAX + 0x4]
CALL 0x00019270
MOV EAX,dword ptr [ESI + 0x4]
ADD ESP,0x20
TEST EAX,EAX
JZ 0x00069c30
SUB ESP,0xc
PUSH ESI
CALL 0x00031580
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [ESI]
SUB ESP,0x1c
MOVZX EAX,word ptr [EDX + 0xc90]
MOV dword ptr [ESP + 0x28],EAX
FILD dword ptr [ESP + 0x28]
FLD dword ptr [EBX + 0xfffcfc9c]
FDIV ST1,ST0
FXCH
FSTP qword ptr [ESP + 0x10]
MOVZX EAX,word ptr [EDX + 0xc8e]
MOV dword ptr [ESP + 0x28],EAX
FILD dword ptr [ESP + 0x28]
FDIV ST0,ST1
FSTP qword ptr [ESP + 0x8]
MOVZX EAX,word ptr [EDX + 0xc8c]
MOV dword ptr [ESP + 0x28],EAX
FILD dword ptr [ESP + 0x28]
FDIVRP
FSTP qword ptr [ESP]
PUSH dword ptr [ESI + 0xc]
CALL 0x000199f0
MOV EDX,dword ptr [ESI + 0x4]
ADD ESP,0x20
TEST EDX,EDX
JNZ 0x00069b4e
SUB ESP,0xc
PUSH dword ptr [ESI + 0xc]
CALL 0x000198d0
SUB ESP,0x1c
MOV dword ptr [ESP + 0x38],EBP
FILD dword ptr [ESP + 0x38]
MOV dword ptr [ESP + 0x38],EDI
FSTP qword ptr [ESP + 0x18]
FILD dword ptr [ESP + 0x38]
FSTP qword ptr [ESP + 0x10]
FLDZ
FST qword ptr [ESP + 0x8]
FSTP qword ptr [ESP]
PUSH dword ptr [ESI + 0xc]
CALL 0x00019810
ADD ESP,0x24
PUSH dword ptr [ESI + 0xc]
CALL 0x0001ae00
ADD ESP,0x10
JMP 0x00069b4e
SUB ESP,0xc
PUSH dword ptr [ESI + 0xc]
CALL 0x0001a690
ADD ESP,0x10
JMP 0x00069b6f
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nvoid __regparm3 FUN_00069b00(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  double dVar7;\n  \n  piVar6 = (int *)FUN_00069a40();\n  iVar1 = *(int *)(param_1 + 0xce8);\n  iVar2 = *(int *)(param_1 + 0xce0);\n  iVar3 = *(int *)(param_1 + 0xce4);\n  iVar4 = *(int *)(param_1 + 0xcdc);\n  iVar5 = *(int *)(param_1 + 0x2254) * 2;\n  if (piVar6[1] == 0) {\n    dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (piVar6[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);\n      cairo_fill();\n    }\n  }\n  gtk_widget_queue_draw_area();\n  if (piVar6[1] == 0) {\n    cairo_destroy();\n  }\n  FUN_00031580();\n  return;\n}\n\n" comment comment (function_definition "void __regparm3 FUN_00069b00(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  double dVar7;\n  \n  piVar6 = (int *)FUN_00069a40();\n  iVar1 = *(int *)(param_1 + 0xce8);\n  iVar2 = *(int *)(param_1 + 0xce0);\n  iVar3 = *(int *)(param_1 + 0xce4);\n  iVar4 = *(int *)(param_1 + 0xcdc);\n  iVar5 = *(int *)(param_1 + 0x2254) * 2;\n  if (piVar6[1] == 0) {\n    dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (piVar6[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);\n      cairo_fill();\n    }\n  }\n  gtk_widget_queue_draw_area();\n  if (piVar6[1] == 0) {\n    cairo_destroy();\n  }\n  FUN_00031580();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00069b00(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  double dVar7;\n  \n  piVar6 = (int *)FUN_00069a40();\n  iVar1 = *(int *)(param_1 + 0xce8);\n  iVar2 = *(int *)(param_1 + 0xce0);\n  iVar3 = *(int *)(param_1 + 0xce4);\n  iVar4 = *(int *)(param_1 + 0xcdc);\n  iVar5 = *(int *)(param_1 + 0x2254) * 2;\n  if (piVar6[1] == 0) {\n    dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (piVar6[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);\n      cairo_fill();\n    }\n  }\n  gtk_widget_queue_draw_area();\n  if (piVar6[1] == 0) {\n    cairo_destroy();\n  }\n  FUN_00031580();\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "double dVar7;" primitive_type identifier ;) (expression_statement "piVar6 = (int *)FUN_00069a40();" (assignment_expression "piVar6 = (int *)FUN_00069a40()" identifier = (cast_expression "(int *)FUN_00069a40()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00069a40()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0xce8);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xce8)" identifier = (pointer_expression "*(int *)(param_1 + 0xce8)" * (cast_expression "(int *)(param_1 + 0xce8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xce8)" ( (binary_expression "param_1 + 0xce8" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0xce0);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xce0)" identifier = (pointer_expression "*(int *)(param_1 + 0xce0)" * (cast_expression "(int *)(param_1 + 0xce0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xce0)" ( (binary_expression "param_1 + 0xce0" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0xce4);" (assignment_expression "iVar3 = *(int *)(param_1 + 0xce4)" identifier = (pointer_expression "*(int *)(param_1 + 0xce4)" * (cast_expression "(int *)(param_1 + 0xce4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xce4)" ( (binary_expression "param_1 + 0xce4" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0xcdc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xcdc)" identifier = (pointer_expression "*(int *)(param_1 + 0xcdc)" * (cast_expression "(int *)(param_1 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xcdc)" ( (binary_expression "param_1 + 0xcdc" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 0x2254) * 2;" (assignment_expression "iVar5 = *(int *)(param_1 + 0x2254) * 2" identifier = (binary_expression "*(int *)(param_1 + 0x2254) * 2" (pointer_expression "*(int *)(param_1 + 0x2254)" * (cast_expression "(int *)(param_1 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2254)" ( (binary_expression "param_1 + 0x2254" identifier + number_literal) )))) * number_literal)) ;) (if_statement "if (piVar6[1] == 0) {\n    dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (piVar6[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);\n      cairo_fill();\n    }\n  }" if (parenthesized_expression "(piVar6[1] == 0)" ( (binary_expression "piVar6[1] == 0" (subscript_expression "piVar6[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (piVar6[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);\n      cairo_fill();\n    }\n  }" { (expression_statement "dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440);" (assignment_expression "dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440)" identifier = (cast_expression "(double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440)" ( (binary_expression "(float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440" (cast_expression "(float)*(ushort *)(*piVar6 + 0xc90)" ( (type_descriptor "float" primitive_type) ) (pointer_expression "*(ushort *)(*piVar6 + 0xc90)" * (cast_expression "(ushort *)(*piVar6 + 0xc90)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar6 + 0xc90)" ( (binary_expression "*piVar6 + 0xc90" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) / identifier) )))) ;) (expression_statement "cairo_set_source_rgb();" (call_expression "cairo_set_source_rgb()" identifier (argument_list "()" ( ))) ;) (if_statement "if (piVar6[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);\n      cairo_fill();\n    }" if (parenthesized_expression "(piVar6[1] == 0)" ( (binary_expression "piVar6[1] == 0" (subscript_expression "piVar6[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      cairo_new_path();\n      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);\n      cairo_fill();\n    }" { (expression_statement "cairo_new_path();" (call_expression "cairo_new_path()" identifier (argument_list "()" ( ))) ;) (expression_statement "cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);" (call_expression "cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7)" identifier (argument_list "(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7)" ( (subscript_expression "piVar6[3]" identifier [ number_literal ]) , number_literal , number_literal , (cast_expression "(double)(iVar3 * iVar4 + iVar5)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(iVar3 * iVar4 + iVar5)" ( (binary_expression "iVar3 * iVar4 + iVar5" (binary_expression "iVar3 * iVar4" identifier * identifier) + identifier) ))) , (cast_expression "(double)(iVar1 * iVar2 + iVar5)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(iVar1 * iVar2 + iVar5)" ( (binary_expression "iVar1 * iVar2 + iVar5" (binary_expression "iVar1 * iVar2" identifier * identifier) + identifier) ))) , identifier ))) ;) (expression_statement "cairo_fill();" (call_expression "cairo_fill()" identifier (argument_list "()" ( ))) ;) })) })) (expression_statement "gtk_widget_queue_draw_area();" (call_expression "gtk_widget_queue_draw_area()" identifier (argument_list "()" ( ))) ;) (if_statement "if (piVar6[1] == 0) {\n    cairo_destroy();\n  }" if (parenthesized_expression "(piVar6[1] == 0)" ( (binary_expression "piVar6[1] == 0" (subscript_expression "piVar6[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    cairo_destroy();\n  }" { (expression_statement "cairo_destroy();" (call_expression "cairo_destroy()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00031580();" (call_expression "FUN_00031580()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid __regparm3 draw_backing_rect(gui_data *inst)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int *ptr;\n  double dVar6;\n  \n  ptr = (int *)get_ctx(inst);\n  iVar1 = inst->height;\n  iVar2 = inst->font_height;\n  iVar3 = inst->width;\n  iVar4 = inst->font_width;\n  iVar5 = inst->window_border * 2;\n  if (ptr[1] == 0) {\n    dVar6 = (double)((float)*(ushort *)(*ptr + 0xc90) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (ptr[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(ptr[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar6);\n      cairo_fill();\n    }\n  }\n  gtk_widget_queue_draw_area();\n  if (ptr[1] == 0) {\n    cairo_destroy();\n  }\n  safefree(ptr);\n  return;\n}\n\n" comment comment comment (function_definition "void __regparm3 draw_backing_rect(gui_data *inst)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int *ptr;\n  double dVar6;\n  \n  ptr = (int *)get_ctx(inst);\n  iVar1 = inst->height;\n  iVar2 = inst->font_height;\n  iVar3 = inst->width;\n  iVar4 = inst->font_width;\n  iVar5 = inst->window_border * 2;\n  if (ptr[1] == 0) {\n    dVar6 = (double)((float)*(ushort *)(*ptr + 0xc90) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (ptr[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(ptr[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar6);\n      cairo_fill();\n    }\n  }\n  gtk_widget_queue_draw_area();\n  if (ptr[1] == 0) {\n    cairo_destroy();\n  }\n  safefree(ptr);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "draw_backing_rect(gui_data *inst)" identifier (parameter_list "(gui_data *inst)" ( (parameter_declaration "gui_data *inst" type_identifier (pointer_declarator "*inst" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int *ptr;\n  double dVar6;\n  \n  ptr = (int *)get_ctx(inst);\n  iVar1 = inst->height;\n  iVar2 = inst->font_height;\n  iVar3 = inst->width;\n  iVar4 = inst->font_width;\n  iVar5 = inst->window_border * 2;\n  if (ptr[1] == 0) {\n    dVar6 = (double)((float)*(ushort *)(*ptr + 0xc90) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (ptr[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(ptr[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar6);\n      cairo_fill();\n    }\n  }\n  gtk_widget_queue_draw_area();\n  if (ptr[1] == 0) {\n    cairo_destroy();\n  }\n  safefree(ptr);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *ptr;" primitive_type (pointer_declarator "*ptr" * identifier) ;) (declaration "double dVar6;" primitive_type identifier ;) (expression_statement "ptr = (int *)get_ctx(inst);" (assignment_expression "ptr = (int *)get_ctx(inst)" identifier = (cast_expression "(int *)get_ctx(inst)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "get_ctx(inst)" identifier (argument_list "(inst)" ( identifier ))))) ;) (expression_statement "iVar1 = inst->height;" (assignment_expression "iVar1 = inst->height" identifier = (field_expression "inst->height" identifier -> field_identifier)) ;) (expression_statement "iVar2 = inst->font_height;" (assignment_expression "iVar2 = inst->font_height" identifier = (field_expression "inst->font_height" identifier -> field_identifier)) ;) (expression_statement "iVar3 = inst->width;" (assignment_expression "iVar3 = inst->width" identifier = (field_expression "inst->width" identifier -> field_identifier)) ;) (expression_statement "iVar4 = inst->font_width;" (assignment_expression "iVar4 = inst->font_width" identifier = (field_expression "inst->font_width" identifier -> field_identifier)) ;) (expression_statement "iVar5 = inst->window_border * 2;" (assignment_expression "iVar5 = inst->window_border * 2" identifier = (binary_expression "inst->window_border * 2" (field_expression "inst->window_border" identifier -> field_identifier) * number_literal)) ;) (if_statement "if (ptr[1] == 0) {\n    dVar6 = (double)((float)*(ushort *)(*ptr + 0xc90) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (ptr[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(ptr[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar6);\n      cairo_fill();\n    }\n  }" if (parenthesized_expression "(ptr[1] == 0)" ( (binary_expression "ptr[1] == 0" (subscript_expression "ptr[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    dVar6 = (double)((float)*(ushort *)(*ptr + 0xc90) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (ptr[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(ptr[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar6);\n      cairo_fill();\n    }\n  }" { (expression_statement "dVar6 = (double)((float)*(ushort *)(*ptr + 0xc90) / _DAT_00095440);" (assignment_expression "dVar6 = (double)((float)*(ushort *)(*ptr + 0xc90) / _DAT_00095440)" identifier = (cast_expression "(double)((float)*(ushort *)(*ptr + 0xc90) / _DAT_00095440)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)*(ushort *)(*ptr + 0xc90) / _DAT_00095440)" ( (binary_expression "(float)*(ushort *)(*ptr + 0xc90) / _DAT_00095440" (cast_expression "(float)*(ushort *)(*ptr + 0xc90)" ( (type_descriptor "float" primitive_type) ) (pointer_expression "*(ushort *)(*ptr + 0xc90)" * (cast_expression "(ushort *)(*ptr + 0xc90)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*ptr + 0xc90)" ( (binary_expression "*ptr + 0xc90" (pointer_expression "*ptr" * identifier) + number_literal) ))))) / identifier) )))) ;) (expression_statement "cairo_set_source_rgb();" (call_expression "cairo_set_source_rgb()" identifier (argument_list "()" ( ))) ;) (if_statement "if (ptr[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(ptr[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar6);\n      cairo_fill();\n    }" if (parenthesized_expression "(ptr[1] == 0)" ( (binary_expression "ptr[1] == 0" (subscript_expression "ptr[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      cairo_new_path();\n      cairo_rectangle(ptr[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar6);\n      cairo_fill();\n    }" { (expression_statement "cairo_new_path();" (call_expression "cairo_new_path()" identifier (argument_list "()" ( ))) ;) (expression_statement "cairo_rectangle(ptr[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar6);" (call_expression "cairo_rectangle(ptr[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar6)" identifier (argument_list "(ptr[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar6)" ( (subscript_expression "ptr[3]" identifier [ number_literal ]) , number_literal , number_literal , (cast_expression "(double)(iVar3 * iVar4 + iVar5)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(iVar3 * iVar4 + iVar5)" ( (binary_expression "iVar3 * iVar4 + iVar5" (binary_expression "iVar3 * iVar4" identifier * identifier) + identifier) ))) , (cast_expression "(double)(iVar1 * iVar2 + iVar5)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(iVar1 * iVar2 + iVar5)" ( (binary_expression "iVar1 * iVar2 + iVar5" (binary_expression "iVar1 * iVar2" identifier * identifier) + identifier) ))) , identifier ))) ;) (expression_statement "cairo_fill();" (call_expression "cairo_fill()" identifier (argument_list "()" ( ))) ;) })) })) (expression_statement "gtk_widget_queue_draw_area();" (call_expression "gtk_widget_queue_draw_area()" identifier (argument_list "()" ( ))) ;) (if_statement "if (ptr[1] == 0) {\n    cairo_destroy();\n  }" if (parenthesized_expression "(ptr[1] == 0)" ( (binary_expression "ptr[1] == 0" (subscript_expression "ptr[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    cairo_destroy();\n  }" { (expression_statement "cairo_destroy();" (call_expression "cairo_destroy()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00069b00(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  double dVar7;\n  \n  piVar6 = (int *)FUN_00069a40();\n  iVar1 = *(int *)(param_1 + 0xce8);\n  iVar2 = *(int *)(param_1 + 0xce0);\n  iVar3 = *(int *)(param_1 + 0xce4);\n  iVar4 = *(int *)(param_1 + 0xcdc);\n  iVar5 = *(int *)(param_1 + 0x2254) * 2;\n  if (piVar6[1] == 0) {\n    dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (piVar6[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);\n      cairo_fill();\n    }\n  }\n  gtk_widget_queue_draw_area();\n  if (piVar6[1] == 0) {\n    cairo_destroy();\n  }\n  FUN_00031580();\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00069b00(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  double dVar7;\n  \n  piVar6 = (int *)FUN_00069a40();\n  iVar1 = *(int *)(param_1 + 0xce8);\n  iVar2 = *(int *)(param_1 + 0xce0);\n  iVar3 = *(int *)(param_1 + 0xce4);\n  iVar4 = *(int *)(param_1 + 0xcdc);\n  iVar5 = *(int *)(param_1 + 0x2254) * 2;\n  if (piVar6[1] == 0) {\n    dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (piVar6[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);\n      cairo_fill();\n    }\n  }\n  gtk_widget_queue_draw_area();\n  if (piVar6[1] == 0) {\n    cairo_destroy();\n  }\n  FUN_00031580();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00069b00(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  double dVar7;\n  \n  piVar6 = (int *)FUN_00069a40();\n  iVar1 = *(int *)(param_1 + 0xce8);\n  iVar2 = *(int *)(param_1 + 0xce0);\n  iVar3 = *(int *)(param_1 + 0xce4);\n  iVar4 = *(int *)(param_1 + 0xcdc);\n  iVar5 = *(int *)(param_1 + 0x2254) * 2;\n  if (piVar6[1] == 0) {\n    dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (piVar6[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);\n      cairo_fill();\n    }\n  }\n  gtk_widget_queue_draw_area();\n  if (piVar6[1] == 0) {\n    cairo_destroy();\n  }\n  FUN_00031580();\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "double dVar7;" primitive_type identifier ;) (expression_statement "piVar6 = (int *)FUN_00069a40();" (assignment_expression "piVar6 = (int *)FUN_00069a40()" identifier = (cast_expression "(int *)FUN_00069a40()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00069a40()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0xce8);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xce8)" identifier = (pointer_expression "*(int *)(param_1 + 0xce8)" * (cast_expression "(int *)(param_1 + 0xce8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xce8)" ( (binary_expression "param_1 + 0xce8" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0xce0);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xce0)" identifier = (pointer_expression "*(int *)(param_1 + 0xce0)" * (cast_expression "(int *)(param_1 + 0xce0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xce0)" ( (binary_expression "param_1 + 0xce0" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0xce4);" (assignment_expression "iVar3 = *(int *)(param_1 + 0xce4)" identifier = (pointer_expression "*(int *)(param_1 + 0xce4)" * (cast_expression "(int *)(param_1 + 0xce4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xce4)" ( (binary_expression "param_1 + 0xce4" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0xcdc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xcdc)" identifier = (pointer_expression "*(int *)(param_1 + 0xcdc)" * (cast_expression "(int *)(param_1 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xcdc)" ( (binary_expression "param_1 + 0xcdc" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 0x2254) * 2;" (assignment_expression "iVar5 = *(int *)(param_1 + 0x2254) * 2" identifier = (binary_expression "*(int *)(param_1 + 0x2254) * 2" (pointer_expression "*(int *)(param_1 + 0x2254)" * (cast_expression "(int *)(param_1 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2254)" ( (binary_expression "param_1 + 0x2254" identifier + number_literal) )))) * number_literal)) ;) (if_statement "if (piVar6[1] == 0) {\n    dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (piVar6[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);\n      cairo_fill();\n    }\n  }" if (parenthesized_expression "(piVar6[1] == 0)" ( (binary_expression "piVar6[1] == 0" (subscript_expression "piVar6[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (piVar6[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);\n      cairo_fill();\n    }\n  }" { (expression_statement "dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440);" (assignment_expression "dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440)" identifier = (cast_expression "(double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440)" ( (binary_expression "(float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440" (cast_expression "(float)*(ushort *)(*piVar6 + 0xc90)" ( (type_descriptor "float" primitive_type) ) (pointer_expression "*(ushort *)(*piVar6 + 0xc90)" * (cast_expression "(ushort *)(*piVar6 + 0xc90)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar6 + 0xc90)" ( (binary_expression "*piVar6 + 0xc90" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) / identifier) )))) ;) (expression_statement "cairo_set_source_rgb();" (call_expression "cairo_set_source_rgb()" identifier (argument_list "()" ( ))) ;) (if_statement "if (piVar6[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);\n      cairo_fill();\n    }" if (parenthesized_expression "(piVar6[1] == 0)" ( (binary_expression "piVar6[1] == 0" (subscript_expression "piVar6[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      cairo_new_path();\n      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);\n      cairo_fill();\n    }" { (expression_statement "cairo_new_path();" (call_expression "cairo_new_path()" identifier (argument_list "()" ( ))) ;) (expression_statement "cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);" (call_expression "cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7)" identifier (argument_list "(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7)" ( (subscript_expression "piVar6[3]" identifier [ number_literal ]) , number_literal , number_literal , (cast_expression "(double)(iVar3 * iVar4 + iVar5)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(iVar3 * iVar4 + iVar5)" ( (binary_expression "iVar3 * iVar4 + iVar5" (binary_expression "iVar3 * iVar4" identifier * identifier) + identifier) ))) , (cast_expression "(double)(iVar1 * iVar2 + iVar5)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(iVar1 * iVar2 + iVar5)" ( (binary_expression "iVar1 * iVar2 + iVar5" (binary_expression "iVar1 * iVar2" identifier * identifier) + identifier) ))) , identifier ))) ;) (expression_statement "cairo_fill();" (call_expression "cairo_fill()" identifier (argument_list "()" ( ))) ;) })) })) (expression_statement "gtk_widget_queue_draw_area();" (call_expression "gtk_widget_queue_draw_area()" identifier (argument_list "()" ( ))) ;) (if_statement "if (piVar6[1] == 0) {\n    cairo_destroy();\n  }" if (parenthesized_expression "(piVar6[1] == 0)" ( (binary_expression "piVar6[1] == 0" (subscript_expression "piVar6[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    cairo_destroy();\n  }" { (expression_statement "cairo_destroy();" (call_expression "cairo_destroy()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00031580();" (call_expression "FUN_00031580()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_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 (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) / IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT , LIT , (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * IDENT) + IDENT) ))) , (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * IDENT) + IDENT) ))) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00069b00(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  double dVar7;\n  \n  piVar6 = (int *)FUN_00069a40();\n  iVar1 = *(int *)(param_1 + 0xce8);\n  iVar2 = *(int *)(param_1 + 0xce0);\n  iVar3 = *(int *)(param_1 + 0xce4);\n  iVar4 = *(int *)(param_1 + 0xcdc);\n  iVar5 = *(int *)(param_1 + 0x2254) * 2;\n  if (piVar6[1] == 0) {\n    dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (piVar6[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);\n      cairo_fill();\n    }\n  }\n  gtk_widget_queue_draw_area();\n  if (piVar6[1] == 0) {\n    cairo_destroy();\n  }\n  FUN_00031580();\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00069b00(int param_1)" (identifier "FUN_00069b00") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  double dVar7;\n  \n  piVar6 = (int *)FUN_00069a40();\n  iVar1 = *(int *)(param_1 + 0xce8);\n  iVar2 = *(int *)(param_1 + 0xce0);\n  iVar3 = *(int *)(param_1 + 0xce4);\n  iVar4 = *(int *)(param_1 + 0xcdc);\n  iVar5 = *(int *)(param_1 + 0x2254) * 2;\n  if (piVar6[1] == 0) {\n    dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (piVar6[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);\n      cairo_fill();\n    }\n  }\n  gtk_widget_queue_draw_area();\n  if (piVar6[1] == 0) {\n    cairo_destroy();\n  }\n  FUN_00031580();\n  return;\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 "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "double dVar7;" (primitive_type "double") (identifier "dVar7") (; ";")) (expression_statement "piVar6 = (int *)FUN_00069a40();" (assignment_expression "piVar6 = (int *)FUN_00069a40()" (identifier "piVar6") (= "=") (cast_expression "(int *)FUN_00069a40()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00069a40()" (identifier "FUN_00069a40") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0xce8);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xce8)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0xce8)" (* "*") (cast_expression "(int *)(param_1 + 0xce8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xce8)" (( "(") (binary_expression "param_1 + 0xce8" (identifier "param_1") (+ "+") (number_literal "0xce8")) () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0xce0);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xce0)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0xce0)" (* "*") (cast_expression "(int *)(param_1 + 0xce0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xce0)" (( "(") (binary_expression "param_1 + 0xce0" (identifier "param_1") (+ "+") (number_literal "0xce0")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 0xce4);" (assignment_expression "iVar3 = *(int *)(param_1 + 0xce4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0xce4)" (* "*") (cast_expression "(int *)(param_1 + 0xce4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xce4)" (( "(") (binary_expression "param_1 + 0xce4" (identifier "param_1") (+ "+") (number_literal "0xce4")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 0xcdc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xcdc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0xcdc)" (* "*") (cast_expression "(int *)(param_1 + 0xcdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xcdc)" (( "(") (binary_expression "param_1 + 0xcdc" (identifier "param_1") (+ "+") (number_literal "0xcdc")) () ")"))))) (; ";")) (expression_statement "iVar5 = *(int *)(param_1 + 0x2254) * 2;" (assignment_expression "iVar5 = *(int *)(param_1 + 0x2254) * 2" (identifier "iVar5") (= "=") (binary_expression "*(int *)(param_1 + 0x2254) * 2" (pointer_expression "*(int *)(param_1 + 0x2254)" (* "*") (cast_expression "(int *)(param_1 + 0x2254)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2254)" (( "(") (binary_expression "param_1 + 0x2254" (identifier "param_1") (+ "+") (number_literal "0x2254")) () ")")))) (* "*") (number_literal "2"))) (; ";")) (if_statement "if (piVar6[1] == 0) {\n    dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (piVar6[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);\n      cairo_fill();\n    }\n  }" (if "if") (parenthesized_expression "(piVar6[1] == 0)" (( "(") (binary_expression "piVar6[1] == 0" (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (piVar6[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);\n      cairo_fill();\n    }\n  }" ({ "{") (expression_statement "dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440);" (assignment_expression "dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440)" (identifier "dVar7") (= "=") (cast_expression "(double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (parenthesized_expression "((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440)" (( "(") (binary_expression "(float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440" (cast_expression "(float)*(ushort *)(*piVar6 + 0xc90)" (( "(") (type_descriptor "float" (primitive_type "float")) () ")") (pointer_expression "*(ushort *)(*piVar6 + 0xc90)" (* "*") (cast_expression "(ushort *)(*piVar6 + 0xc90)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar6 + 0xc90)" (( "(") (binary_expression "*piVar6 + 0xc90" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (+ "+") (number_literal "0xc90")) () ")"))))) (/ "/") (identifier "_DAT_00095440")) () ")")))) (; ";")) (expression_statement "cairo_set_source_rgb();" (call_expression "cairo_set_source_rgb()" (identifier "cairo_set_source_rgb") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (piVar6[1] == 0) {\n      cairo_new_path();\n      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);\n      cairo_fill();\n    }" (if "if") (parenthesized_expression "(piVar6[1] == 0)" (( "(") (binary_expression "piVar6[1] == 0" (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      cairo_new_path();\n      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);\n      cairo_fill();\n    }" ({ "{") (expression_statement "cairo_new_path();" (call_expression "cairo_new_path()" (identifier "cairo_new_path") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7);" (call_expression "cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7)" (identifier "cairo_rectangle") (argument_list "(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),\n                      dVar7)" (( "(") (subscript_expression "piVar6[3]" (identifier "piVar6") ([ "[") (number_literal "3") (] "]")) (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (cast_expression "(double)(iVar3 * iVar4 + iVar5)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (parenthesized_expression "(iVar3 * iVar4 + iVar5)" (( "(") (binary_expression "iVar3 * iVar4 + iVar5" (binary_expression "iVar3 * iVar4" (identifier "iVar3") (* "*") (identifier "iVar4")) (+ "+") (identifier "iVar5")) () ")"))) (, ",") (cast_expression "(double)(iVar1 * iVar2 + iVar5)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (parenthesized_expression "(iVar1 * iVar2 + iVar5)" (( "(") (binary_expression "iVar1 * iVar2 + iVar5" (binary_expression "iVar1 * iVar2" (identifier "iVar1") (* "*") (identifier "iVar2")) (+ "+") (identifier "iVar5")) () ")"))) (, ",") (identifier "dVar7") () ")"))) (; ";")) (expression_statement "cairo_fill();" (call_expression "cairo_fill()" (identifier "cairo_fill") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "gtk_widget_queue_draw_area();" (call_expression "gtk_widget_queue_draw_area()" (identifier "gtk_widget_queue_draw_area") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (piVar6[1] == 0) {\n    cairo_destroy();\n  }" (if "if") (parenthesized_expression "(piVar6[1] == 0)" (( "(") (binary_expression "piVar6[1] == 0" (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    cairo_destroy();\n  }" ({ "{") (expression_statement "cairo_destroy();" (call_expression "cairo_destroy()" (identifier "cairo_destroy") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00031580();" (call_expression "FUN_00031580()" (identifier "FUN_00031580") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void __regparm3 function_1(type_1 *inst)

{
  int var_9;
  int var_10;
  int var_6;
  int var_7;
  int var_8;
  int *ptr;
  double dVar6;
  
  ptr = (int *)var_1(inst);
  var_9 = inst->height;
  var_10 = inst->font_height;
  var_6 = inst->width;
  var_7 = inst->font_width;
  var_8 = inst->window_border * 2;
  if (ptr[1] == 0) {
    dVar6 = (double)((float)*(type_2 *)(*ptr + 0xc90) / var_2);
    var_3();
    if (ptr[1] == 0) {
      var_4();
      var_5(ptr[3],0,0,(double)(var_6 * var_7 + var_8),(double)(var_9 * var_10 + var_8),
                      dVar6);
      var_11();
    }
  }
  var_12();
  if (ptr[1] == 0) {
    var_13();
  }
  var_14(ptr);
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void __regparm3 MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int *piVar6;
  double dVar7;
  
  piVar6 = (int *)FUN_00069a40();
  iVar1 = *(int *)(param_1 + 0xce8);
  iVar2 = *(int *)(param_1 + 0xce0);
  iVar3 = *(int *)(param_1 + 0xce4);
  iVar4 = *(int *)(param_1 + 0xcdc);
  iVar5 = *(int *)(param_1 + 0x2254) * 2;
  if (piVar6[1] == 0) {
    dVar7 = (double)((float)*(ushort *)(*piVar6 + 0xc90) / _DAT_00095440);
    cairo_set_source_rgb();
    if (piVar6[1] == 0) {
      cairo_new_path();
      cairo_rectangle(piVar6[3],0,0,(double)(iVar3 * iVar4 + iVar5),(double)(iVar1 * iVar2 + iVar5),
                      dVar7);
      cairo_fill();
    }
  }
  gtk_widget_queue_draw_area();
  if (piVar6[1] == 0) {
    cairo_destroy();
  }
  FUN_00031580();
  return;
}

