
gint draw_area(GtkWidget *widget,cairo_t *cr,gpointer data)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  gint gVar4;
  int iVar5;
  cairo_t *pcVar6;
  cairo_t *pcVar7;
  cairo_t *pcVar8;
  undefined *puVar9;
  GdkRectangle dirtyrect;
  
  puVar9 = PTR___stack_chk_guard_000b60f8;
  iVar5 = *(int *)PTR___stack_chk_guard_000b60f8;
  pcVar6 = cr;
  if (*(int *)((int)data + 0x34) != 0) {
    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(cr,&dirtyrect);
    pcVar6 = *(cairo_t **)((int)data + 0x34);
    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(cr);
    data = (gpointer)((ulonglong)(double)dirtyrect.x >> 0x20);
    (*(code *)PTR_cairo_rectangle_000b6028)(cr);
    (*(code *)PTR_cairo_fill_000b5a98)(cr);
  }
  if (iVar5 == *(int *)puVar9) {
    return 1;
  }
  puVar9 = PTR___stack_chk_fail_000b5d9c;
  (*(code *)PTR___stack_chk_fail_000b5d9c)();
  (**(code **)(puVar9 + 0x49a2c))();
  uVar1 = (**(code **)(puVar9 + 0x493c4))();
  uVar2 = (**(code **)(puVar9 + 0x49a68))(iVar5,uVar1);
  uVar3 = (**(code **)(puVar9 + 0x496dc))(*(undefined4 *)pcVar6);
  (**(code **)(puVar9 + 0x49ab8))(uVar2,uVar3);
  if ((int)data < 1) {
    uVar2 = 0;
  }
  else {
    uVar2 = 0;
    pcVar7 = pcVar6;
    do {
      pcVar8 = pcVar7 + 4;
      uVar3 = (**(code **)(puVar9 + 0x496dc))(*(undefined4 *)pcVar7);
      uVar2 = (**(code **)(puVar9 + 0x499fc))(uVar2,uVar3);
      pcVar7 = pcVar8;
    } while (pcVar8 != pcVar6 + (int)data * 4);
  }
  uVar1 = (**(code **)(puVar9 + 0x49a68))(iVar5,uVar1);
                    /* WARNING: Could not recover jumptable at 0x0006c770. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  gVar4 = (**(code **)(puVar9 + 0x49658))(uVar1,uVar2);
  return gVar4;
}



undefined4 FUN_0006c564(undefined4 param_1,undefined4 *param_2,int param_3)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 *puVar5;
  undefined4 *puVar6;
  undefined4 *puVar7;
  undefined *puVar8;
  int local_24 [4];
  int local_14;
  
  puVar8 = PTR___stack_chk_guard_000b60f8;
  local_14 = *(int *)PTR___stack_chk_guard_000b60f8;
  puVar5 = param_2;
  if (*(int *)(param_3 + 0x34) != 0) {
    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24);
    puVar5 = *(undefined4 **)(param_3 + 0x34);
    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2);
    param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20);
    (*(code *)PTR_cairo_rectangle_000b6028)(param_2);
    (*(code *)PTR_cairo_fill_000b5a98)(param_2);
  }
  if (local_14 == *(int *)puVar8) {
    return 1;
  }
  iVar4 = local_14;
  puVar8 = PTR___stack_chk_fail_000b5d9c;
  (*(code *)PTR___stack_chk_fail_000b5d9c)();
  (**(code **)(puVar8 + 0x49a2c))();
  uVar1 = (**(code **)(puVar8 + 0x493c4))();
  uVar2 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);
  uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar5);
  (**(code **)(puVar8 + 0x49ab8))(uVar2,uVar3);
  if (param_3 < 1) {
    uVar2 = 0;
  }
  else {
    uVar2 = 0;
    puVar6 = puVar5;
    do {
      puVar7 = puVar6 + 1;
      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);
      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);
      puVar6 = puVar7;
    } while (puVar7 != puVar5 + param_3);
  }
  uVar1 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);
                    /* WARNING: Could not recover jumptable at 0x0006c770. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  uVar1 = (**(code **)(puVar8 + 0x49658))(uVar1,uVar2);
  return uVar1;
}


lui gp,0x5
addiu gp,gp,0xc6c
addu gp,gp,t9
addiu sp,sp,-0x58
lw v0,0x34(a2)
sw s1,0x4c(sp)
lw s1,-0x70d8(gp)
sw gp,0x28(sp)
sw ra,0x54(sp)
sw s2,0x50(sp)
sw s0,0x48(sp)
lw v1,0x0(s1)
sw v1,0x44(sp)
beq v0,zero,0x0006c630
_lw t9,-0x7070(gp)
or s0,a1,zero
addiu a1,sp,0x34
or a0,s0,zero
jalr t9
_or s2,a2,zero
lw gp,0x28(sp)
or a3,zero,zero
lw a1,0x34(s2)
or a2,zero,zero
or a0,s0,zero
sw a3,0x14(sp)
lw t9,-0x7720(gp)
jalr t9
_sw a2,0x10(sp)
or a0,s0,zero
lwc1 f0,0x40(sp)
lw gp,0x28(sp)
lwc1 f6,0x34(sp)
lw t9,-0x71a8(gp)
cvt.d.W f4,f0
lwc1 f0,0x3c(sp)
cvt.d.W f6,f6
cvt.d.W f2,f0
lwc1 f0,0x38(sp)
mfc1 a3,f6
sdc1 f4,0x20(sp)
mfhc1 a2,f6
cvt.d.W f0,f0
sdc1 f2,0x18(sp)
jalr t9
_sdc1 f0,0x10(sp)
lw gp,0x28(sp)
lw t9,-0x7738(gp)
jalr t9
_or a0,s0,zero
lw gp,0x28(sp)
lw a0,0x44(sp)
li v0,0x1
lw v1,0x0(s1)
bne a0,v1,0x0006c658
_lw ra,0x54(sp)
lw s2,0x50(sp)
lw s1,0x4c(sp)
lw s0,0x48(sp)
jr ra
_addiu sp,sp,0x58
lw t9,-0x7434(gp)
jalr t9
_nop
(translation_unit "undefined4 FUN_0006c564(undefined4 param_1,undefined4 *param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined *puVar8;\n  int local_24 [4];\n  int local_14;\n  \n  puVar8 = PTR___stack_chk_guard_000b60f8;\n  local_14 = *(int *)PTR___stack_chk_guard_000b60f8;\n  puVar5 = param_2;\n  if (*(int *)(param_3 + 0x34) != 0) {\n    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24);\n    puVar5 = *(undefined4 **)(param_3 + 0x34);\n    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2);\n    param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20);\n    (*(code *)PTR_cairo_rectangle_000b6028)(param_2);\n    (*(code *)PTR_cairo_fill_000b5a98)(param_2);\n  }\n  if (local_14 == *(int *)puVar8) {\n    return 1;\n  }\n  iVar4 = local_14;\n  puVar8 = PTR___stack_chk_fail_000b5d9c;\n  (*(code *)PTR___stack_chk_fail_000b5d9c)();\n  (**(code **)(puVar8 + 0x49a2c))();\n  uVar1 = (**(code **)(puVar8 + 0x493c4))();\n  uVar2 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);\n  uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar5);\n  (**(code **)(puVar8 + 0x49ab8))(uVar2,uVar3);\n  if (param_3 < 1) {\n    uVar2 = 0;\n  }\n  else {\n    uVar2 = 0;\n    puVar6 = puVar5;\n    do {\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    } while (puVar7 != puVar5 + param_3);\n  }\n  uVar1 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);\n                    /* WARNING: Could not recover jumptable at 0x0006c770. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar1 = (**(code **)(puVar8 + 0x49658))(uVar1,uVar2);\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_0006c564(undefined4 param_1,undefined4 *param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined *puVar8;\n  int local_24 [4];\n  int local_14;\n  \n  puVar8 = PTR___stack_chk_guard_000b60f8;\n  local_14 = *(int *)PTR___stack_chk_guard_000b60f8;\n  puVar5 = param_2;\n  if (*(int *)(param_3 + 0x34) != 0) {\n    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24);\n    puVar5 = *(undefined4 **)(param_3 + 0x34);\n    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2);\n    param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20);\n    (*(code *)PTR_cairo_rectangle_000b6028)(param_2);\n    (*(code *)PTR_cairo_fill_000b5a98)(param_2);\n  }\n  if (local_14 == *(int *)puVar8) {\n    return 1;\n  }\n  iVar4 = local_14;\n  puVar8 = PTR___stack_chk_fail_000b5d9c;\n  (*(code *)PTR___stack_chk_fail_000b5d9c)();\n  (**(code **)(puVar8 + 0x49a2c))();\n  uVar1 = (**(code **)(puVar8 + 0x493c4))();\n  uVar2 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);\n  uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar5);\n  (**(code **)(puVar8 + 0x49ab8))(uVar2,uVar3);\n  if (param_3 < 1) {\n    uVar2 = 0;\n  }\n  else {\n    uVar2 = 0;\n    puVar6 = puVar5;\n    do {\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    } while (puVar7 != puVar5 + param_3);\n  }\n  uVar1 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);\n                    /* WARNING: Could not recover jumptable at 0x0006c770. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar1 = (**(code **)(puVar8 + 0x49658))(uVar1,uVar2);\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0006c564(undefined4 param_1,undefined4 *param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined *puVar8;\n  int local_24 [4];\n  int local_14;\n  \n  puVar8 = PTR___stack_chk_guard_000b60f8;\n  local_14 = *(int *)PTR___stack_chk_guard_000b60f8;\n  puVar5 = param_2;\n  if (*(int *)(param_3 + 0x34) != 0) {\n    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24);\n    puVar5 = *(undefined4 **)(param_3 + 0x34);\n    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2);\n    param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20);\n    (*(code *)PTR_cairo_rectangle_000b6028)(param_2);\n    (*(code *)PTR_cairo_fill_000b5a98)(param_2);\n  }\n  if (local_14 == *(int *)puVar8) {\n    return 1;\n  }\n  iVar4 = local_14;\n  puVar8 = PTR___stack_chk_fail_000b5d9c;\n  (*(code *)PTR___stack_chk_fail_000b5d9c)();\n  (**(code **)(puVar8 + 0x49a2c))();\n  uVar1 = (**(code **)(puVar8 + 0x493c4))();\n  uVar2 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);\n  uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar5);\n  (**(code **)(puVar8 + 0x49ab8))(uVar2,uVar3);\n  if (param_3 < 1) {\n    uVar2 = 0;\n  }\n  else {\n    uVar2 = 0;\n    puVar6 = puVar5;\n    do {\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    } while (puVar7 != puVar5 + param_3);\n  }\n  uVar1 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);\n                    /* WARNING: Could not recover jumptable at 0x0006c770. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar1 = (**(code **)(puVar8 + 0x49658))(uVar1,uVar2);\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int local_24 [4];" primitive_type (array_declarator "local_24 [4]" identifier [ number_literal ]) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar8 = PTR___stack_chk_guard_000b60f8;" (assignment_expression "puVar8 = PTR___stack_chk_guard_000b60f8" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000b60f8;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000b60f8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b60f8" * (cast_expression "(int *)PTR___stack_chk_guard_000b60f8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar5 = param_2;" (assignment_expression "puVar5 = param_2" identifier = identifier) ;) (if_statement "if (*(int *)(param_3 + 0x34) != 0) {\n    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24);\n    puVar5 = *(undefined4 **)(param_3 + 0x34);\n    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2);\n    param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20);\n    (*(code *)PTR_cairo_rectangle_000b6028)(param_2);\n    (*(code *)PTR_cairo_fill_000b5a98)(param_2);\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    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24);\n    puVar5 = *(undefined4 **)(param_3 + 0x34);\n    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2);\n    param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20);\n    (*(code *)PTR_cairo_rectangle_000b6028)(param_2);\n    (*(code *)PTR_cairo_fill_000b5a98)(param_2);\n  }" { (expression_statement "(*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24);" (call_expression "(*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24)" (parenthesized_expression "(*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)" ( (pointer_expression "*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160" * (cast_expression "(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,local_24)" ( identifier , identifier ))) ;) (expression_statement "puVar5 = *(undefined4 **)(param_3 + 0x34);" (assignment_expression "puVar5 = *(undefined4 **)(param_3 + 0x34)" identifier = (pointer_expression "*(undefined4 **)(param_3 + 0x34)" * (cast_expression "(undefined4 **)(param_3 + 0x34)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0x34)" ( (binary_expression "param_3 + 0x34" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2);" (call_expression "(*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2)" (parenthesized_expression "(*(code *)PTR_cairo_set_source_surface_000b5ab0)" ( (pointer_expression "*(code *)PTR_cairo_set_source_surface_000b5ab0" * (cast_expression "(code *)PTR_cairo_set_source_surface_000b5ab0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20);" (assignment_expression "param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20)" identifier = (cast_expression "(int)((ulonglong)(double)local_24[0] >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)(double)local_24[0] >> 0x20)" ( (binary_expression "(ulonglong)(double)local_24[0] >> 0x20" (cast_expression "(ulonglong)(double)local_24[0]" ( (type_descriptor "ulonglong" type_identifier) ) (cast_expression "(double)local_24[0]" ( (type_descriptor "double" primitive_type) ) (subscript_expression "local_24[0]" identifier [ number_literal ]))) >> number_literal) )))) ;) (expression_statement "(*(code *)PTR_cairo_rectangle_000b6028)(param_2);" (call_expression "(*(code *)PTR_cairo_rectangle_000b6028)(param_2)" (parenthesized_expression "(*(code *)PTR_cairo_rectangle_000b6028)" ( (pointer_expression "*(code *)PTR_cairo_rectangle_000b6028" * (cast_expression "(code *)PTR_cairo_rectangle_000b6028" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_cairo_fill_000b5a98)(param_2);" (call_expression "(*(code *)PTR_cairo_fill_000b5a98)(param_2)" (parenthesized_expression "(*(code *)PTR_cairo_fill_000b5a98)" ( (pointer_expression "*(code *)PTR_cairo_fill_000b5a98" * (cast_expression "(code *)PTR_cairo_fill_000b5a98" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier ))) ;) })) (if_statement "if (local_14 == *(int *)puVar8) {\n    return 1;\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar8)" ( (binary_expression "local_14 == *(int *)puVar8" identifier == (pointer_expression "*(int *)puVar8" * (cast_expression "(int *)puVar8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar4 = local_14;" (assignment_expression "iVar4 = local_14" identifier = identifier) ;) (expression_statement "puVar8 = PTR___stack_chk_fail_000b5d9c;" (assignment_expression "puVar8 = PTR___stack_chk_fail_000b5d9c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b5d9c)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b5d9c" * (cast_expression "(code *)PTR___stack_chk_fail_000b5d9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "(**(code **)(puVar8 + 0x49a2c))();" (call_expression "(**(code **)(puVar8 + 0x49a2c))()" (parenthesized_expression "(**(code **)(puVar8 + 0x49a2c))" ( (pointer_expression "**(code **)(puVar8 + 0x49a2c)" * (pointer_expression "*(code **)(puVar8 + 0x49a2c)" * (cast_expression "(code **)(puVar8 + 0x49a2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x49a2c)" ( (binary_expression "puVar8 + 0x49a2c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "uVar1 = (**(code **)(puVar8 + 0x493c4))();" (assignment_expression "uVar1 = (**(code **)(puVar8 + 0x493c4))()" identifier = (call_expression "(**(code **)(puVar8 + 0x493c4))()" (parenthesized_expression "(**(code **)(puVar8 + 0x493c4))" ( (pointer_expression "**(code **)(puVar8 + 0x493c4)" * (pointer_expression "*(code **)(puVar8 + 0x493c4)" * (cast_expression "(code **)(puVar8 + 0x493c4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x493c4)" ( (binary_expression "puVar8 + 0x493c4" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "uVar2 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);" (assignment_expression "uVar2 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1)" identifier = (call_expression "(**(code **)(puVar8 + 0x49a68))(iVar4,uVar1)" (parenthesized_expression "(**(code **)(puVar8 + 0x49a68))" ( (pointer_expression "**(code **)(puVar8 + 0x49a68)" * (pointer_expression "*(code **)(puVar8 + 0x49a68)" * (cast_expression "(code **)(puVar8 + 0x49a68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x49a68)" ( (binary_expression "puVar8 + 0x49a68" identifier + number_literal) ))))) )) (argument_list "(iVar4,uVar1)" ( identifier , identifier )))) ;) (expression_statement "uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar5);" (assignment_expression "uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar5)" identifier = (call_expression "(**(code **)(puVar8 + 0x496dc))(*puVar5)" (parenthesized_expression "(**(code **)(puVar8 + 0x496dc))" ( (pointer_expression "**(code **)(puVar8 + 0x496dc)" * (pointer_expression "*(code **)(puVar8 + 0x496dc)" * (cast_expression "(code **)(puVar8 + 0x496dc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x496dc)" ( (binary_expression "puVar8 + 0x496dc" identifier + number_literal) ))))) )) (argument_list "(*puVar5)" ( (pointer_expression "*puVar5" * identifier) )))) ;) (expression_statement "(**(code **)(puVar8 + 0x49ab8))(uVar2,uVar3);" (call_expression "(**(code **)(puVar8 + 0x49ab8))(uVar2,uVar3)" (parenthesized_expression "(**(code **)(puVar8 + 0x49ab8))" ( (pointer_expression "**(code **)(puVar8 + 0x49ab8)" * (pointer_expression "*(code **)(puVar8 + 0x49ab8)" * (cast_expression "(code **)(puVar8 + 0x49ab8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x49ab8)" ( (binary_expression "puVar8 + 0x49ab8" identifier + number_literal) ))))) )) (argument_list "(uVar2,uVar3)" ( identifier , identifier ))) ;) (if_statement "if (param_3 < 1) {\n    uVar2 = 0;\n  }\n  else {\n    uVar2 = 0;\n    puVar6 = puVar5;\n    do {\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    } while (puVar7 != puVar5 + param_3);\n  }" if (parenthesized_expression "(param_3 < 1)" ( (binary_expression "param_3 < 1" identifier < number_literal) )) (compound_statement "{\n    uVar2 = 0;\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar2 = 0;\n    puVar6 = puVar5;\n    do {\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    } while (puVar7 != puVar5 + param_3);\n  }" else (compound_statement "{\n    uVar2 = 0;\n    puVar6 = puVar5;\n    do {\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    } while (puVar7 != puVar5 + param_3);\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "puVar6 = puVar5;" (assignment_expression "puVar6 = puVar5" identifier = identifier) ;) (do_statement "do {\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    } while (puVar7 != puVar5 + param_3);" do (compound_statement "{\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    }" { (expression_statement "puVar7 = puVar6 + 1;" (assignment_expression "puVar7 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);" (assignment_expression "uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6)" identifier = (call_expression "(**(code **)(puVar8 + 0x496dc))(*puVar6)" (parenthesized_expression "(**(code **)(puVar8 + 0x496dc))" ( (pointer_expression "**(code **)(puVar8 + 0x496dc)" * (pointer_expression "*(code **)(puVar8 + 0x496dc)" * (cast_expression "(code **)(puVar8 + 0x496dc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x496dc)" ( (binary_expression "puVar8 + 0x496dc" identifier + number_literal) ))))) )) (argument_list "(*puVar6)" ( (pointer_expression "*puVar6" * identifier) )))) ;) (expression_statement "uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);" (assignment_expression "uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3)" identifier = (call_expression "(**(code **)(puVar8 + 0x499fc))(uVar2,uVar3)" (parenthesized_expression "(**(code **)(puVar8 + 0x499fc))" ( (pointer_expression "**(code **)(puVar8 + 0x499fc)" * (pointer_expression "*(code **)(puVar8 + 0x499fc)" * (cast_expression "(code **)(puVar8 + 0x499fc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x499fc)" ( (binary_expression "puVar8 + 0x499fc" identifier + number_literal) ))))) )) (argument_list "(uVar2,uVar3)" ( identifier , identifier )))) ;) (expression_statement "puVar6 = puVar7;" (assignment_expression "puVar6 = puVar7" identifier = identifier) ;) }) while (parenthesized_expression "(puVar7 != puVar5 + param_3)" ( (binary_expression "puVar7 != puVar5 + param_3" identifier != (binary_expression "puVar5 + param_3" identifier + identifier)) )) ;) }))) (expression_statement "uVar1 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);" (assignment_expression "uVar1 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1)" identifier = (call_expression "(**(code **)(puVar8 + 0x49a68))(iVar4,uVar1)" (parenthesized_expression "(**(code **)(puVar8 + 0x49a68))" ( (pointer_expression "**(code **)(puVar8 + 0x49a68)" * (pointer_expression "*(code **)(puVar8 + 0x49a68)" * (cast_expression "(code **)(puVar8 + 0x49a68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x49a68)" ( (binary_expression "puVar8 + 0x49a68" identifier + number_literal) ))))) )) (argument_list "(iVar4,uVar1)" ( identifier , identifier )))) ;) comment comment (expression_statement "uVar1 = (**(code **)(puVar8 + 0x49658))(uVar1,uVar2);" (assignment_expression "uVar1 = (**(code **)(puVar8 + 0x49658))(uVar1,uVar2)" identifier = (call_expression "(**(code **)(puVar8 + 0x49658))(uVar1,uVar2)" (parenthesized_expression "(**(code **)(puVar8 + 0x49658))" ( (pointer_expression "**(code **)(puVar8 + 0x49658)" * (pointer_expression "*(code **)(puVar8 + 0x49658)" * (cast_expression "(code **)(puVar8 + 0x49658)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x49658)" ( (binary_expression "puVar8 + 0x49658" identifier + number_literal) ))))) )) (argument_list "(uVar1,uVar2)" ( identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "gint draw_area(GtkWidget *widget,cairo_t *cr,gpointer data)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  gint gVar4;\n  int iVar5;\n  cairo_t *pcVar6;\n  cairo_t *pcVar7;\n  cairo_t *pcVar8;\n  undefined *puVar9;\n  GdkRectangle dirtyrect;\n  \n  puVar9 = PTR___stack_chk_guard_000b60f8;\n  iVar5 = *(int *)PTR___stack_chk_guard_000b60f8;\n  pcVar6 = cr;\n  if (*(int *)((int)data + 0x34) != 0) {\n    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(cr,&dirtyrect);\n    pcVar6 = *(cairo_t **)((int)data + 0x34);\n    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(cr);\n    data = (gpointer)((ulonglong)(double)dirtyrect.x >> 0x20);\n    (*(code *)PTR_cairo_rectangle_000b6028)(cr);\n    (*(code *)PTR_cairo_fill_000b5a98)(cr);\n  }\n  if (iVar5 == *(int *)puVar9) {\n    return 1;\n  }\n  puVar9 = PTR___stack_chk_fail_000b5d9c;\n  (*(code *)PTR___stack_chk_fail_000b5d9c)();\n  (**(code **)(puVar9 + 0x49a2c))();\n  uVar1 = (**(code **)(puVar9 + 0x493c4))();\n  uVar2 = (**(code **)(puVar9 + 0x49a68))(iVar5,uVar1);\n  uVar3 = (**(code **)(puVar9 + 0x496dc))(*(undefined4 *)pcVar6);\n  (**(code **)(puVar9 + 0x49ab8))(uVar2,uVar3);\n  if ((int)data < 1) {\n    uVar2 = 0;\n  }\n  else {\n    uVar2 = 0;\n    pcVar7 = pcVar6;\n    do {\n      pcVar8 = pcVar7 + 4;\n      uVar3 = (**(code **)(puVar9 + 0x496dc))(*(undefined4 *)pcVar7);\n      uVar2 = (**(code **)(puVar9 + 0x499fc))(uVar2,uVar3);\n      pcVar7 = pcVar8;\n    } while (pcVar8 != pcVar6 + (int)data * 4);\n  }\n  uVar1 = (**(code **)(puVar9 + 0x49a68))(iVar5,uVar1);\n                    /* WARNING: Could not recover jumptable at 0x0006c770. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  gVar4 = (**(code **)(puVar9 + 0x49658))(uVar1,uVar2);\n  return gVar4;\n}\n\n" (function_definition "gint draw_area(GtkWidget *widget,cairo_t *cr,gpointer data)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  gint gVar4;\n  int iVar5;\n  cairo_t *pcVar6;\n  cairo_t *pcVar7;\n  cairo_t *pcVar8;\n  undefined *puVar9;\n  GdkRectangle dirtyrect;\n  \n  puVar9 = PTR___stack_chk_guard_000b60f8;\n  iVar5 = *(int *)PTR___stack_chk_guard_000b60f8;\n  pcVar6 = cr;\n  if (*(int *)((int)data + 0x34) != 0) {\n    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(cr,&dirtyrect);\n    pcVar6 = *(cairo_t **)((int)data + 0x34);\n    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(cr);\n    data = (gpointer)((ulonglong)(double)dirtyrect.x >> 0x20);\n    (*(code *)PTR_cairo_rectangle_000b6028)(cr);\n    (*(code *)PTR_cairo_fill_000b5a98)(cr);\n  }\n  if (iVar5 == *(int *)puVar9) {\n    return 1;\n  }\n  puVar9 = PTR___stack_chk_fail_000b5d9c;\n  (*(code *)PTR___stack_chk_fail_000b5d9c)();\n  (**(code **)(puVar9 + 0x49a2c))();\n  uVar1 = (**(code **)(puVar9 + 0x493c4))();\n  uVar2 = (**(code **)(puVar9 + 0x49a68))(iVar5,uVar1);\n  uVar3 = (**(code **)(puVar9 + 0x496dc))(*(undefined4 *)pcVar6);\n  (**(code **)(puVar9 + 0x49ab8))(uVar2,uVar3);\n  if ((int)data < 1) {\n    uVar2 = 0;\n  }\n  else {\n    uVar2 = 0;\n    pcVar7 = pcVar6;\n    do {\n      pcVar8 = pcVar7 + 4;\n      uVar3 = (**(code **)(puVar9 + 0x496dc))(*(undefined4 *)pcVar7);\n      uVar2 = (**(code **)(puVar9 + 0x499fc))(uVar2,uVar3);\n      pcVar7 = pcVar8;\n    } while (pcVar8 != pcVar6 + (int)data * 4);\n  }\n  uVar1 = (**(code **)(puVar9 + 0x49a68))(iVar5,uVar1);\n                    /* WARNING: Could not recover jumptable at 0x0006c770. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  gVar4 = (**(code **)(puVar9 + 0x49658))(uVar1,uVar2);\n  return gVar4;\n}" type_identifier (function_declarator "draw_area(GtkWidget *widget,cairo_t *cr,gpointer data)" identifier (parameter_list "(GtkWidget *widget,cairo_t *cr,gpointer data)" ( (parameter_declaration "GtkWidget *widget" type_identifier (pointer_declarator "*widget" * identifier)) , (parameter_declaration "cairo_t *cr" type_identifier (pointer_declarator "*cr" * identifier)) , (parameter_declaration "gpointer data" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  gint gVar4;\n  int iVar5;\n  cairo_t *pcVar6;\n  cairo_t *pcVar7;\n  cairo_t *pcVar8;\n  undefined *puVar9;\n  GdkRectangle dirtyrect;\n  \n  puVar9 = PTR___stack_chk_guard_000b60f8;\n  iVar5 = *(int *)PTR___stack_chk_guard_000b60f8;\n  pcVar6 = cr;\n  if (*(int *)((int)data + 0x34) != 0) {\n    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(cr,&dirtyrect);\n    pcVar6 = *(cairo_t **)((int)data + 0x34);\n    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(cr);\n    data = (gpointer)((ulonglong)(double)dirtyrect.x >> 0x20);\n    (*(code *)PTR_cairo_rectangle_000b6028)(cr);\n    (*(code *)PTR_cairo_fill_000b5a98)(cr);\n  }\n  if (iVar5 == *(int *)puVar9) {\n    return 1;\n  }\n  puVar9 = PTR___stack_chk_fail_000b5d9c;\n  (*(code *)PTR___stack_chk_fail_000b5d9c)();\n  (**(code **)(puVar9 + 0x49a2c))();\n  uVar1 = (**(code **)(puVar9 + 0x493c4))();\n  uVar2 = (**(code **)(puVar9 + 0x49a68))(iVar5,uVar1);\n  uVar3 = (**(code **)(puVar9 + 0x496dc))(*(undefined4 *)pcVar6);\n  (**(code **)(puVar9 + 0x49ab8))(uVar2,uVar3);\n  if ((int)data < 1) {\n    uVar2 = 0;\n  }\n  else {\n    uVar2 = 0;\n    pcVar7 = pcVar6;\n    do {\n      pcVar8 = pcVar7 + 4;\n      uVar3 = (**(code **)(puVar9 + 0x496dc))(*(undefined4 *)pcVar7);\n      uVar2 = (**(code **)(puVar9 + 0x499fc))(uVar2,uVar3);\n      pcVar7 = pcVar8;\n    } while (pcVar8 != pcVar6 + (int)data * 4);\n  }\n  uVar1 = (**(code **)(puVar9 + 0x49a68))(iVar5,uVar1);\n                    /* WARNING: Could not recover jumptable at 0x0006c770. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  gVar4 = (**(code **)(puVar9 + 0x49658))(uVar1,uVar2);\n  return gVar4;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "gint gVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "cairo_t *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (declaration "cairo_t *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (declaration "cairo_t *pcVar8;" type_identifier (pointer_declarator "*pcVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "GdkRectangle dirtyrect;" type_identifier identifier ;) (expression_statement "puVar9 = PTR___stack_chk_guard_000b60f8;" (assignment_expression "puVar9 = PTR___stack_chk_guard_000b60f8" identifier = identifier) ;) (expression_statement "iVar5 = *(int *)PTR___stack_chk_guard_000b60f8;" (assignment_expression "iVar5 = *(int *)PTR___stack_chk_guard_000b60f8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b60f8" * (cast_expression "(int *)PTR___stack_chk_guard_000b60f8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pcVar6 = cr;" (assignment_expression "pcVar6 = cr" identifier = identifier) ;) (if_statement "if (*(int *)((int)data + 0x34) != 0) {\n    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(cr,&dirtyrect);\n    pcVar6 = *(cairo_t **)((int)data + 0x34);\n    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(cr);\n    data = (gpointer)((ulonglong)(double)dirtyrect.x >> 0x20);\n    (*(code *)PTR_cairo_rectangle_000b6028)(cr);\n    (*(code *)PTR_cairo_fill_000b5a98)(cr);\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    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(cr,&dirtyrect);\n    pcVar6 = *(cairo_t **)((int)data + 0x34);\n    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(cr);\n    data = (gpointer)((ulonglong)(double)dirtyrect.x >> 0x20);\n    (*(code *)PTR_cairo_rectangle_000b6028)(cr);\n    (*(code *)PTR_cairo_fill_000b5a98)(cr);\n  }" { (expression_statement "(*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(cr,&dirtyrect);" (call_expression "(*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(cr,&dirtyrect)" (parenthesized_expression "(*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)" ( (pointer_expression "*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160" * (cast_expression "(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cr,&dirtyrect)" ( identifier , (pointer_expression "&dirtyrect" & identifier) ))) ;) (expression_statement "pcVar6 = *(cairo_t **)((int)data + 0x34);" (assignment_expression "pcVar6 = *(cairo_t **)((int)data + 0x34)" identifier = (pointer_expression "*(cairo_t **)((int)data + 0x34)" * (cast_expression "(cairo_t **)((int)data + 0x34)" ( (type_descriptor "cairo_t **" type_identifier (abstract_pointer_declarator "**" * (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 "(*(code *)PTR_cairo_set_source_surface_000b5ab0)(cr);" (call_expression "(*(code *)PTR_cairo_set_source_surface_000b5ab0)(cr)" (parenthesized_expression "(*(code *)PTR_cairo_set_source_surface_000b5ab0)" ( (pointer_expression "*(code *)PTR_cairo_set_source_surface_000b5ab0" * (cast_expression "(code *)PTR_cairo_set_source_surface_000b5ab0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cr)" ( identifier ))) ;) (expression_statement "data = (gpointer)((ulonglong)(double)dirtyrect.x >> 0x20);" (assignment_expression "data = (gpointer)((ulonglong)(double)dirtyrect.x >> 0x20)" identifier = (call_expression "(gpointer)((ulonglong)(double)dirtyrect.x >> 0x20)" (parenthesized_expression "(gpointer)" ( identifier )) (argument_list "((ulonglong)(double)dirtyrect.x >> 0x20)" ( (binary_expression "(ulonglong)(double)dirtyrect.x >> 0x20" (cast_expression "(ulonglong)(double)dirtyrect.x" ( (type_descriptor "ulonglong" type_identifier) ) (cast_expression "(double)dirtyrect.x" ( (type_descriptor "double" primitive_type) ) (field_expression "dirtyrect.x" identifier . field_identifier))) >> number_literal) )))) ;) (expression_statement "(*(code *)PTR_cairo_rectangle_000b6028)(cr);" (call_expression "(*(code *)PTR_cairo_rectangle_000b6028)(cr)" (parenthesized_expression "(*(code *)PTR_cairo_rectangle_000b6028)" ( (pointer_expression "*(code *)PTR_cairo_rectangle_000b6028" * (cast_expression "(code *)PTR_cairo_rectangle_000b6028" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cr)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_cairo_fill_000b5a98)(cr);" (call_expression "(*(code *)PTR_cairo_fill_000b5a98)(cr)" (parenthesized_expression "(*(code *)PTR_cairo_fill_000b5a98)" ( (pointer_expression "*(code *)PTR_cairo_fill_000b5a98" * (cast_expression "(code *)PTR_cairo_fill_000b5a98" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cr)" ( identifier ))) ;) })) (if_statement "if (iVar5 == *(int *)puVar9) {\n    return 1;\n  }" if (parenthesized_expression "(iVar5 == *(int *)puVar9)" ( (binary_expression "iVar5 == *(int *)puVar9" identifier == (pointer_expression "*(int *)puVar9" * (cast_expression "(int *)puVar9" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "puVar9 = PTR___stack_chk_fail_000b5d9c;" (assignment_expression "puVar9 = PTR___stack_chk_fail_000b5d9c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b5d9c)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b5d9c" * (cast_expression "(code *)PTR___stack_chk_fail_000b5d9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "(**(code **)(puVar9 + 0x49a2c))();" (call_expression "(**(code **)(puVar9 + 0x49a2c))()" (parenthesized_expression "(**(code **)(puVar9 + 0x49a2c))" ( (pointer_expression "**(code **)(puVar9 + 0x49a2c)" * (pointer_expression "*(code **)(puVar9 + 0x49a2c)" * (cast_expression "(code **)(puVar9 + 0x49a2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x49a2c)" ( (binary_expression "puVar9 + 0x49a2c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "uVar1 = (**(code **)(puVar9 + 0x493c4))();" (assignment_expression "uVar1 = (**(code **)(puVar9 + 0x493c4))()" identifier = (call_expression "(**(code **)(puVar9 + 0x493c4))()" (parenthesized_expression "(**(code **)(puVar9 + 0x493c4))" ( (pointer_expression "**(code **)(puVar9 + 0x493c4)" * (pointer_expression "*(code **)(puVar9 + 0x493c4)" * (cast_expression "(code **)(puVar9 + 0x493c4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x493c4)" ( (binary_expression "puVar9 + 0x493c4" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "uVar2 = (**(code **)(puVar9 + 0x49a68))(iVar5,uVar1);" (assignment_expression "uVar2 = (**(code **)(puVar9 + 0x49a68))(iVar5,uVar1)" identifier = (call_expression "(**(code **)(puVar9 + 0x49a68))(iVar5,uVar1)" (parenthesized_expression "(**(code **)(puVar9 + 0x49a68))" ( (pointer_expression "**(code **)(puVar9 + 0x49a68)" * (pointer_expression "*(code **)(puVar9 + 0x49a68)" * (cast_expression "(code **)(puVar9 + 0x49a68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x49a68)" ( (binary_expression "puVar9 + 0x49a68" identifier + number_literal) ))))) )) (argument_list "(iVar5,uVar1)" ( identifier , identifier )))) ;) (expression_statement "uVar3 = (**(code **)(puVar9 + 0x496dc))(*(undefined4 *)pcVar6);" (assignment_expression "uVar3 = (**(code **)(puVar9 + 0x496dc))(*(undefined4 *)pcVar6)" identifier = (call_expression "(**(code **)(puVar9 + 0x496dc))(*(undefined4 *)pcVar6)" (parenthesized_expression "(**(code **)(puVar9 + 0x496dc))" ( (pointer_expression "**(code **)(puVar9 + 0x496dc)" * (pointer_expression "*(code **)(puVar9 + 0x496dc)" * (cast_expression "(code **)(puVar9 + 0x496dc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x496dc)" ( (binary_expression "puVar9 + 0x496dc" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)pcVar6)" ( (pointer_expression "*(undefined4 *)pcVar6" * (cast_expression "(undefined4 *)pcVar6" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (expression_statement "(**(code **)(puVar9 + 0x49ab8))(uVar2,uVar3);" (call_expression "(**(code **)(puVar9 + 0x49ab8))(uVar2,uVar3)" (parenthesized_expression "(**(code **)(puVar9 + 0x49ab8))" ( (pointer_expression "**(code **)(puVar9 + 0x49ab8)" * (pointer_expression "*(code **)(puVar9 + 0x49ab8)" * (cast_expression "(code **)(puVar9 + 0x49ab8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x49ab8)" ( (binary_expression "puVar9 + 0x49ab8" identifier + number_literal) ))))) )) (argument_list "(uVar2,uVar3)" ( identifier , identifier ))) ;) (if_statement "if ((int)data < 1) {\n    uVar2 = 0;\n  }\n  else {\n    uVar2 = 0;\n    pcVar7 = pcVar6;\n    do {\n      pcVar8 = pcVar7 + 4;\n      uVar3 = (**(code **)(puVar9 + 0x496dc))(*(undefined4 *)pcVar7);\n      uVar2 = (**(code **)(puVar9 + 0x499fc))(uVar2,uVar3);\n      pcVar7 = pcVar8;\n    } while (pcVar8 != pcVar6 + (int)data * 4);\n  }" if (parenthesized_expression "((int)data < 1)" ( (binary_expression "(int)data < 1" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    uVar2 = 0;\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar2 = 0;\n    pcVar7 = pcVar6;\n    do {\n      pcVar8 = pcVar7 + 4;\n      uVar3 = (**(code **)(puVar9 + 0x496dc))(*(undefined4 *)pcVar7);\n      uVar2 = (**(code **)(puVar9 + 0x499fc))(uVar2,uVar3);\n      pcVar7 = pcVar8;\n    } while (pcVar8 != pcVar6 + (int)data * 4);\n  }" else (compound_statement "{\n    uVar2 = 0;\n    pcVar7 = pcVar6;\n    do {\n      pcVar8 = pcVar7 + 4;\n      uVar3 = (**(code **)(puVar9 + 0x496dc))(*(undefined4 *)pcVar7);\n      uVar2 = (**(code **)(puVar9 + 0x499fc))(uVar2,uVar3);\n      pcVar7 = pcVar8;\n    } while (pcVar8 != pcVar6 + (int)data * 4);\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "pcVar7 = pcVar6;" (assignment_expression "pcVar7 = pcVar6" identifier = identifier) ;) (do_statement "do {\n      pcVar8 = pcVar7 + 4;\n      uVar3 = (**(code **)(puVar9 + 0x496dc))(*(undefined4 *)pcVar7);\n      uVar2 = (**(code **)(puVar9 + 0x499fc))(uVar2,uVar3);\n      pcVar7 = pcVar8;\n    } while (pcVar8 != pcVar6 + (int)data * 4);" do (compound_statement "{\n      pcVar8 = pcVar7 + 4;\n      uVar3 = (**(code **)(puVar9 + 0x496dc))(*(undefined4 *)pcVar7);\n      uVar2 = (**(code **)(puVar9 + 0x499fc))(uVar2,uVar3);\n      pcVar7 = pcVar8;\n    }" { (expression_statement "pcVar8 = pcVar7 + 4;" (assignment_expression "pcVar8 = pcVar7 + 4" identifier = (binary_expression "pcVar7 + 4" identifier + number_literal)) ;) (expression_statement "uVar3 = (**(code **)(puVar9 + 0x496dc))(*(undefined4 *)pcVar7);" (assignment_expression "uVar3 = (**(code **)(puVar9 + 0x496dc))(*(undefined4 *)pcVar7)" identifier = (call_expression "(**(code **)(puVar9 + 0x496dc))(*(undefined4 *)pcVar7)" (parenthesized_expression "(**(code **)(puVar9 + 0x496dc))" ( (pointer_expression "**(code **)(puVar9 + 0x496dc)" * (pointer_expression "*(code **)(puVar9 + 0x496dc)" * (cast_expression "(code **)(puVar9 + 0x496dc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x496dc)" ( (binary_expression "puVar9 + 0x496dc" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)pcVar7)" ( (pointer_expression "*(undefined4 *)pcVar7" * (cast_expression "(undefined4 *)pcVar7" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (expression_statement "uVar2 = (**(code **)(puVar9 + 0x499fc))(uVar2,uVar3);" (assignment_expression "uVar2 = (**(code **)(puVar9 + 0x499fc))(uVar2,uVar3)" identifier = (call_expression "(**(code **)(puVar9 + 0x499fc))(uVar2,uVar3)" (parenthesized_expression "(**(code **)(puVar9 + 0x499fc))" ( (pointer_expression "**(code **)(puVar9 + 0x499fc)" * (pointer_expression "*(code **)(puVar9 + 0x499fc)" * (cast_expression "(code **)(puVar9 + 0x499fc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x499fc)" ( (binary_expression "puVar9 + 0x499fc" identifier + number_literal) ))))) )) (argument_list "(uVar2,uVar3)" ( identifier , identifier )))) ;) (expression_statement "pcVar7 = pcVar8;" (assignment_expression "pcVar7 = pcVar8" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar8 != pcVar6 + (int)data * 4)" ( (binary_expression "pcVar8 != pcVar6 + (int)data * 4" identifier != (binary_expression "pcVar6 + (int)data * 4" identifier + (binary_expression "(int)data * 4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal))) )) ;) }))) (expression_statement "uVar1 = (**(code **)(puVar9 + 0x49a68))(iVar5,uVar1);" (assignment_expression "uVar1 = (**(code **)(puVar9 + 0x49a68))(iVar5,uVar1)" identifier = (call_expression "(**(code **)(puVar9 + 0x49a68))(iVar5,uVar1)" (parenthesized_expression "(**(code **)(puVar9 + 0x49a68))" ( (pointer_expression "**(code **)(puVar9 + 0x49a68)" * (pointer_expression "*(code **)(puVar9 + 0x49a68)" * (cast_expression "(code **)(puVar9 + 0x49a68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x49a68)" ( (binary_expression "puVar9 + 0x49a68" identifier + number_literal) ))))) )) (argument_list "(iVar5,uVar1)" ( identifier , identifier )))) ;) comment comment (expression_statement "gVar4 = (**(code **)(puVar9 + 0x49658))(uVar1,uVar2);" (assignment_expression "gVar4 = (**(code **)(puVar9 + 0x49658))(uVar1,uVar2)" identifier = (call_expression "(**(code **)(puVar9 + 0x49658))(uVar1,uVar2)" (parenthesized_expression "(**(code **)(puVar9 + 0x49658))" ( (pointer_expression "**(code **)(puVar9 + 0x49658)" * (pointer_expression "*(code **)(puVar9 + 0x49658)" * (cast_expression "(code **)(puVar9 + 0x49658)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x49658)" ( (binary_expression "puVar9 + 0x49658" identifier + number_literal) ))))) )) (argument_list "(uVar1,uVar2)" ( identifier , identifier )))) ;) (return_statement "return gVar4;" return identifier ;) })))
(translation_unit "undefined4 FUN_0006c564(undefined4 param_1,undefined4 *param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined *puVar8;\n  int local_24 [4];\n  int local_14;\n  \n  puVar8 = PTR___stack_chk_guard_000b60f8;\n  local_14 = *(int *)PTR___stack_chk_guard_000b60f8;\n  puVar5 = param_2;\n  if (*(int *)(param_3 + 0x34) != 0) {\n    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24);\n    puVar5 = *(undefined4 **)(param_3 + 0x34);\n    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2);\n    param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20);\n    (*(code *)PTR_cairo_rectangle_000b6028)(param_2);\n    (*(code *)PTR_cairo_fill_000b5a98)(param_2);\n  }\n  if (local_14 == *(int *)puVar8) {\n    return 1;\n  }\n  iVar4 = local_14;\n  puVar8 = PTR___stack_chk_fail_000b5d9c;\n  (*(code *)PTR___stack_chk_fail_000b5d9c)();\n  (**(code **)(puVar8 + 0x49a2c))();\n  uVar1 = (**(code **)(puVar8 + 0x493c4))();\n  uVar2 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);\n  uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar5);\n  (**(code **)(puVar8 + 0x49ab8))(uVar2,uVar3);\n  if (param_3 < 1) {\n    uVar2 = 0;\n  }\n  else {\n    uVar2 = 0;\n    puVar6 = puVar5;\n    do {\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    } while (puVar7 != puVar5 + param_3);\n  }\n  uVar1 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);\n                    \n                    \n  uVar1 = (**(code **)(puVar8 + 0x49658))(uVar1,uVar2);\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_0006c564(undefined4 param_1,undefined4 *param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined *puVar8;\n  int local_24 [4];\n  int local_14;\n  \n  puVar8 = PTR___stack_chk_guard_000b60f8;\n  local_14 = *(int *)PTR___stack_chk_guard_000b60f8;\n  puVar5 = param_2;\n  if (*(int *)(param_3 + 0x34) != 0) {\n    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24);\n    puVar5 = *(undefined4 **)(param_3 + 0x34);\n    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2);\n    param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20);\n    (*(code *)PTR_cairo_rectangle_000b6028)(param_2);\n    (*(code *)PTR_cairo_fill_000b5a98)(param_2);\n  }\n  if (local_14 == *(int *)puVar8) {\n    return 1;\n  }\n  iVar4 = local_14;\n  puVar8 = PTR___stack_chk_fail_000b5d9c;\n  (*(code *)PTR___stack_chk_fail_000b5d9c)();\n  (**(code **)(puVar8 + 0x49a2c))();\n  uVar1 = (**(code **)(puVar8 + 0x493c4))();\n  uVar2 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);\n  uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar5);\n  (**(code **)(puVar8 + 0x49ab8))(uVar2,uVar3);\n  if (param_3 < 1) {\n    uVar2 = 0;\n  }\n  else {\n    uVar2 = 0;\n    puVar6 = puVar5;\n    do {\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    } while (puVar7 != puVar5 + param_3);\n  }\n  uVar1 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);\n                    \n                    \n  uVar1 = (**(code **)(puVar8 + 0x49658))(uVar1,uVar2);\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0006c564(undefined4 param_1,undefined4 *param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined *puVar8;\n  int local_24 [4];\n  int local_14;\n  \n  puVar8 = PTR___stack_chk_guard_000b60f8;\n  local_14 = *(int *)PTR___stack_chk_guard_000b60f8;\n  puVar5 = param_2;\n  if (*(int *)(param_3 + 0x34) != 0) {\n    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24);\n    puVar5 = *(undefined4 **)(param_3 + 0x34);\n    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2);\n    param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20);\n    (*(code *)PTR_cairo_rectangle_000b6028)(param_2);\n    (*(code *)PTR_cairo_fill_000b5a98)(param_2);\n  }\n  if (local_14 == *(int *)puVar8) {\n    return 1;\n  }\n  iVar4 = local_14;\n  puVar8 = PTR___stack_chk_fail_000b5d9c;\n  (*(code *)PTR___stack_chk_fail_000b5d9c)();\n  (**(code **)(puVar8 + 0x49a2c))();\n  uVar1 = (**(code **)(puVar8 + 0x493c4))();\n  uVar2 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);\n  uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar5);\n  (**(code **)(puVar8 + 0x49ab8))(uVar2,uVar3);\n  if (param_3 < 1) {\n    uVar2 = 0;\n  }\n  else {\n    uVar2 = 0;\n    puVar6 = puVar5;\n    do {\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    } while (puVar7 != puVar5 + param_3);\n  }\n  uVar1 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);\n                    \n                    \n  uVar1 = (**(code **)(puVar8 + 0x49658))(uVar1,uVar2);\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int local_24 [4];" primitive_type (array_declarator "local_24 [4]" identifier [ number_literal ]) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar8 = PTR___stack_chk_guard_000b60f8;" (assignment_expression "puVar8 = PTR___stack_chk_guard_000b60f8" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000b60f8;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000b60f8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b60f8" * (cast_expression "(int *)PTR___stack_chk_guard_000b60f8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar5 = param_2;" (assignment_expression "puVar5 = param_2" identifier = identifier) ;) (if_statement "if (*(int *)(param_3 + 0x34) != 0) {\n    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24);\n    puVar5 = *(undefined4 **)(param_3 + 0x34);\n    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2);\n    param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20);\n    (*(code *)PTR_cairo_rectangle_000b6028)(param_2);\n    (*(code *)PTR_cairo_fill_000b5a98)(param_2);\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    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24);\n    puVar5 = *(undefined4 **)(param_3 + 0x34);\n    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2);\n    param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20);\n    (*(code *)PTR_cairo_rectangle_000b6028)(param_2);\n    (*(code *)PTR_cairo_fill_000b5a98)(param_2);\n  }" { (expression_statement "(*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24);" (call_expression "(*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24)" (parenthesized_expression "(*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)" ( (pointer_expression "*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160" * (cast_expression "(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,local_24)" ( identifier , identifier ))) ;) (expression_statement "puVar5 = *(undefined4 **)(param_3 + 0x34);" (assignment_expression "puVar5 = *(undefined4 **)(param_3 + 0x34)" identifier = (pointer_expression "*(undefined4 **)(param_3 + 0x34)" * (cast_expression "(undefined4 **)(param_3 + 0x34)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0x34)" ( (binary_expression "param_3 + 0x34" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2);" (call_expression "(*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2)" (parenthesized_expression "(*(code *)PTR_cairo_set_source_surface_000b5ab0)" ( (pointer_expression "*(code *)PTR_cairo_set_source_surface_000b5ab0" * (cast_expression "(code *)PTR_cairo_set_source_surface_000b5ab0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20);" (assignment_expression "param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20)" identifier = (cast_expression "(int)((ulonglong)(double)local_24[0] >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)(double)local_24[0] >> 0x20)" ( (binary_expression "(ulonglong)(double)local_24[0] >> 0x20" (cast_expression "(ulonglong)(double)local_24[0]" ( (type_descriptor "ulonglong" type_identifier) ) (cast_expression "(double)local_24[0]" ( (type_descriptor "double" primitive_type) ) (subscript_expression "local_24[0]" identifier [ number_literal ]))) >> number_literal) )))) ;) (expression_statement "(*(code *)PTR_cairo_rectangle_000b6028)(param_2);" (call_expression "(*(code *)PTR_cairo_rectangle_000b6028)(param_2)" (parenthesized_expression "(*(code *)PTR_cairo_rectangle_000b6028)" ( (pointer_expression "*(code *)PTR_cairo_rectangle_000b6028" * (cast_expression "(code *)PTR_cairo_rectangle_000b6028" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_cairo_fill_000b5a98)(param_2);" (call_expression "(*(code *)PTR_cairo_fill_000b5a98)(param_2)" (parenthesized_expression "(*(code *)PTR_cairo_fill_000b5a98)" ( (pointer_expression "*(code *)PTR_cairo_fill_000b5a98" * (cast_expression "(code *)PTR_cairo_fill_000b5a98" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier ))) ;) })) (if_statement "if (local_14 == *(int *)puVar8) {\n    return 1;\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar8)" ( (binary_expression "local_14 == *(int *)puVar8" identifier == (pointer_expression "*(int *)puVar8" * (cast_expression "(int *)puVar8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar4 = local_14;" (assignment_expression "iVar4 = local_14" identifier = identifier) ;) (expression_statement "puVar8 = PTR___stack_chk_fail_000b5d9c;" (assignment_expression "puVar8 = PTR___stack_chk_fail_000b5d9c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b5d9c)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b5d9c" * (cast_expression "(code *)PTR___stack_chk_fail_000b5d9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "(**(code **)(puVar8 + 0x49a2c))();" (call_expression "(**(code **)(puVar8 + 0x49a2c))()" (parenthesized_expression "(**(code **)(puVar8 + 0x49a2c))" ( (pointer_expression "**(code **)(puVar8 + 0x49a2c)" * (pointer_expression "*(code **)(puVar8 + 0x49a2c)" * (cast_expression "(code **)(puVar8 + 0x49a2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x49a2c)" ( (binary_expression "puVar8 + 0x49a2c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "uVar1 = (**(code **)(puVar8 + 0x493c4))();" (assignment_expression "uVar1 = (**(code **)(puVar8 + 0x493c4))()" identifier = (call_expression "(**(code **)(puVar8 + 0x493c4))()" (parenthesized_expression "(**(code **)(puVar8 + 0x493c4))" ( (pointer_expression "**(code **)(puVar8 + 0x493c4)" * (pointer_expression "*(code **)(puVar8 + 0x493c4)" * (cast_expression "(code **)(puVar8 + 0x493c4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x493c4)" ( (binary_expression "puVar8 + 0x493c4" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "uVar2 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);" (assignment_expression "uVar2 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1)" identifier = (call_expression "(**(code **)(puVar8 + 0x49a68))(iVar4,uVar1)" (parenthesized_expression "(**(code **)(puVar8 + 0x49a68))" ( (pointer_expression "**(code **)(puVar8 + 0x49a68)" * (pointer_expression "*(code **)(puVar8 + 0x49a68)" * (cast_expression "(code **)(puVar8 + 0x49a68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x49a68)" ( (binary_expression "puVar8 + 0x49a68" identifier + number_literal) ))))) )) (argument_list "(iVar4,uVar1)" ( identifier , identifier )))) ;) (expression_statement "uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar5);" (assignment_expression "uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar5)" identifier = (call_expression "(**(code **)(puVar8 + 0x496dc))(*puVar5)" (parenthesized_expression "(**(code **)(puVar8 + 0x496dc))" ( (pointer_expression "**(code **)(puVar8 + 0x496dc)" * (pointer_expression "*(code **)(puVar8 + 0x496dc)" * (cast_expression "(code **)(puVar8 + 0x496dc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x496dc)" ( (binary_expression "puVar8 + 0x496dc" identifier + number_literal) ))))) )) (argument_list "(*puVar5)" ( (pointer_expression "*puVar5" * identifier) )))) ;) (expression_statement "(**(code **)(puVar8 + 0x49ab8))(uVar2,uVar3);" (call_expression "(**(code **)(puVar8 + 0x49ab8))(uVar2,uVar3)" (parenthesized_expression "(**(code **)(puVar8 + 0x49ab8))" ( (pointer_expression "**(code **)(puVar8 + 0x49ab8)" * (pointer_expression "*(code **)(puVar8 + 0x49ab8)" * (cast_expression "(code **)(puVar8 + 0x49ab8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x49ab8)" ( (binary_expression "puVar8 + 0x49ab8" identifier + number_literal) ))))) )) (argument_list "(uVar2,uVar3)" ( identifier , identifier ))) ;) (if_statement "if (param_3 < 1) {\n    uVar2 = 0;\n  }\n  else {\n    uVar2 = 0;\n    puVar6 = puVar5;\n    do {\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    } while (puVar7 != puVar5 + param_3);\n  }" if (parenthesized_expression "(param_3 < 1)" ( (binary_expression "param_3 < 1" identifier < number_literal) )) (compound_statement "{\n    uVar2 = 0;\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar2 = 0;\n    puVar6 = puVar5;\n    do {\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    } while (puVar7 != puVar5 + param_3);\n  }" else (compound_statement "{\n    uVar2 = 0;\n    puVar6 = puVar5;\n    do {\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    } while (puVar7 != puVar5 + param_3);\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "puVar6 = puVar5;" (assignment_expression "puVar6 = puVar5" identifier = identifier) ;) (do_statement "do {\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    } while (puVar7 != puVar5 + param_3);" do (compound_statement "{\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    }" { (expression_statement "puVar7 = puVar6 + 1;" (assignment_expression "puVar7 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);" (assignment_expression "uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6)" identifier = (call_expression "(**(code **)(puVar8 + 0x496dc))(*puVar6)" (parenthesized_expression "(**(code **)(puVar8 + 0x496dc))" ( (pointer_expression "**(code **)(puVar8 + 0x496dc)" * (pointer_expression "*(code **)(puVar8 + 0x496dc)" * (cast_expression "(code **)(puVar8 + 0x496dc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x496dc)" ( (binary_expression "puVar8 + 0x496dc" identifier + number_literal) ))))) )) (argument_list "(*puVar6)" ( (pointer_expression "*puVar6" * identifier) )))) ;) (expression_statement "uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);" (assignment_expression "uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3)" identifier = (call_expression "(**(code **)(puVar8 + 0x499fc))(uVar2,uVar3)" (parenthesized_expression "(**(code **)(puVar8 + 0x499fc))" ( (pointer_expression "**(code **)(puVar8 + 0x499fc)" * (pointer_expression "*(code **)(puVar8 + 0x499fc)" * (cast_expression "(code **)(puVar8 + 0x499fc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x499fc)" ( (binary_expression "puVar8 + 0x499fc" identifier + number_literal) ))))) )) (argument_list "(uVar2,uVar3)" ( identifier , identifier )))) ;) (expression_statement "puVar6 = puVar7;" (assignment_expression "puVar6 = puVar7" identifier = identifier) ;) }) while (parenthesized_expression "(puVar7 != puVar5 + param_3)" ( (binary_expression "puVar7 != puVar5 + param_3" identifier != (binary_expression "puVar5 + param_3" identifier + identifier)) )) ;) }))) (expression_statement "uVar1 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);" (assignment_expression "uVar1 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1)" identifier = (call_expression "(**(code **)(puVar8 + 0x49a68))(iVar4,uVar1)" (parenthesized_expression "(**(code **)(puVar8 + 0x49a68))" ( (pointer_expression "**(code **)(puVar8 + 0x49a68)" * (pointer_expression "*(code **)(puVar8 + 0x49a68)" * (cast_expression "(code **)(puVar8 + 0x49a68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x49a68)" ( (binary_expression "puVar8 + 0x49a68" identifier + number_literal) ))))) )) (argument_list "(iVar4,uVar1)" ( identifier , identifier )))) ;) (expression_statement "uVar1 = (**(code **)(puVar8 + 0x49658))(uVar1,uVar2);" (assignment_expression "uVar1 = (**(code **)(puVar8 + 0x49658))(uVar1,uVar2)" identifier = (call_expression "(**(code **)(puVar8 + 0x49658))(uVar1,uVar2)" (parenthesized_expression "(**(code **)(puVar8 + 0x49658))" ( (pointer_expression "**(code **)(puVar8 + 0x49658)" * (pointer_expression "*(code **)(puVar8 + 0x49658)" * (cast_expression "(code **)(puVar8 + 0x49658)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x49658)" ( (binary_expression "puVar8 + 0x49658" identifier + number_literal) ))))) )) (argument_list "(uVar1,uVar2)" ( identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression 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 (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) >> LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + IDENT)) )) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0006c564(undefined4 param_1,undefined4 *param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined *puVar8;\n  int local_24 [4];\n  int local_14;\n  \n  puVar8 = PTR___stack_chk_guard_000b60f8;\n  local_14 = *(int *)PTR___stack_chk_guard_000b60f8;\n  puVar5 = param_2;\n  if (*(int *)(param_3 + 0x34) != 0) {\n    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24);\n    puVar5 = *(undefined4 **)(param_3 + 0x34);\n    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2);\n    param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20);\n    (*(code *)PTR_cairo_rectangle_000b6028)(param_2);\n    (*(code *)PTR_cairo_fill_000b5a98)(param_2);\n  }\n  if (local_14 == *(int *)puVar8) {\n    return 1;\n  }\n  iVar4 = local_14;\n  puVar8 = PTR___stack_chk_fail_000b5d9c;\n  (*(code *)PTR___stack_chk_fail_000b5d9c)();\n  (**(code **)(puVar8 + 0x49a2c))();\n  uVar1 = (**(code **)(puVar8 + 0x493c4))();\n  uVar2 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);\n  uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar5);\n  (**(code **)(puVar8 + 0x49ab8))(uVar2,uVar3);\n  if (param_3 < 1) {\n    uVar2 = 0;\n  }\n  else {\n    uVar2 = 0;\n    puVar6 = puVar5;\n    do {\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    } while (puVar7 != puVar5 + param_3);\n  }\n  uVar1 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);\n                    \n                    \n  uVar1 = (**(code **)(puVar8 + 0x49658))(uVar1,uVar2);\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "FUN_0006c564(undefined4 param_1,undefined4 *param_2,int param_3)" (identifier "FUN_0006c564") (parameter_list "(undefined4 param_1,undefined4 *param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined *puVar8;\n  int local_24 [4];\n  int local_14;\n  \n  puVar8 = PTR___stack_chk_guard_000b60f8;\n  local_14 = *(int *)PTR___stack_chk_guard_000b60f8;\n  puVar5 = param_2;\n  if (*(int *)(param_3 + 0x34) != 0) {\n    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24);\n    puVar5 = *(undefined4 **)(param_3 + 0x34);\n    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2);\n    param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20);\n    (*(code *)PTR_cairo_rectangle_000b6028)(param_2);\n    (*(code *)PTR_cairo_fill_000b5a98)(param_2);\n  }\n  if (local_14 == *(int *)puVar8) {\n    return 1;\n  }\n  iVar4 = local_14;\n  puVar8 = PTR___stack_chk_fail_000b5d9c;\n  (*(code *)PTR___stack_chk_fail_000b5d9c)();\n  (**(code **)(puVar8 + 0x49a2c))();\n  uVar1 = (**(code **)(puVar8 + 0x493c4))();\n  uVar2 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);\n  uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar5);\n  (**(code **)(puVar8 + 0x49ab8))(uVar2,uVar3);\n  if (param_3 < 1) {\n    uVar2 = 0;\n  }\n  else {\n    uVar2 = 0;\n    puVar6 = puVar5;\n    do {\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    } while (puVar7 != puVar5 + param_3);\n  }\n  uVar1 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);\n                    \n                    \n  uVar1 = (**(code **)(puVar8 + 0x49658))(uVar1,uVar2);\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined *puVar8;" (type_identifier "undefined") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "int local_24 [4];" (primitive_type "int") (array_declarator "local_24 [4]" (identifier "local_24") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (expression_statement "puVar8 = PTR___stack_chk_guard_000b60f8;" (assignment_expression "puVar8 = PTR___stack_chk_guard_000b60f8" (identifier "puVar8") (= "=") (identifier "PTR___stack_chk_guard_000b60f8")) (; ";")) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000b60f8;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000b60f8" (identifier "local_14") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000b60f8" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000b60f8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000b60f8")))) (; ";")) (expression_statement "puVar5 = param_2;" (assignment_expression "puVar5 = param_2" (identifier "puVar5") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (*(int *)(param_3 + 0x34) != 0) {\n    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24);\n    puVar5 = *(undefined4 **)(param_3 + 0x34);\n    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2);\n    param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20);\n    (*(code *)PTR_cairo_rectangle_000b6028)(param_2);\n    (*(code *)PTR_cairo_fill_000b5a98)(param_2);\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    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24);\n    puVar5 = *(undefined4 **)(param_3 + 0x34);\n    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2);\n    param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20);\n    (*(code *)PTR_cairo_rectangle_000b6028)(param_2);\n    (*(code *)PTR_cairo_fill_000b5a98)(param_2);\n  }" ({ "{") (expression_statement "(*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24);" (call_expression "(*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24)" (parenthesized_expression "(*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)" (( "(") (pointer_expression "*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160" (* "*") (cast_expression "(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_gdk_cairo_get_clip_rectangle_000b6160"))) () ")")) (argument_list "(param_2,local_24)" (( "(") (identifier "param_2") (, ",") (identifier "local_24") () ")"))) (; ";")) (expression_statement "puVar5 = *(undefined4 **)(param_3 + 0x34);" (assignment_expression "puVar5 = *(undefined4 **)(param_3 + 0x34)" (identifier "puVar5") (= "=") (pointer_expression "*(undefined4 **)(param_3 + 0x34)" (* "*") (cast_expression "(undefined4 **)(param_3 + 0x34)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_3 + 0x34)" (( "(") (binary_expression "param_3 + 0x34" (identifier "param_3") (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (expression_statement "(*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2);" (call_expression "(*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2)" (parenthesized_expression "(*(code *)PTR_cairo_set_source_surface_000b5ab0)" (( "(") (pointer_expression "*(code *)PTR_cairo_set_source_surface_000b5ab0" (* "*") (cast_expression "(code *)PTR_cairo_set_source_surface_000b5ab0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_cairo_set_source_surface_000b5ab0"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (expression_statement "param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20);" (assignment_expression "param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20)" (identifier "param_3") (= "=") (cast_expression "(int)((ulonglong)(double)local_24[0] >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)(double)local_24[0] >> 0x20)" (( "(") (binary_expression "(ulonglong)(double)local_24[0] >> 0x20" (cast_expression "(ulonglong)(double)local_24[0]" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (cast_expression "(double)local_24[0]" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (subscript_expression "local_24[0]" (identifier "local_24") ([ "[") (number_literal "0") (] "]")))) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_cairo_rectangle_000b6028)(param_2);" (call_expression "(*(code *)PTR_cairo_rectangle_000b6028)(param_2)" (parenthesized_expression "(*(code *)PTR_cairo_rectangle_000b6028)" (( "(") (pointer_expression "*(code *)PTR_cairo_rectangle_000b6028" (* "*") (cast_expression "(code *)PTR_cairo_rectangle_000b6028" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_cairo_rectangle_000b6028"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_cairo_fill_000b5a98)(param_2);" (call_expression "(*(code *)PTR_cairo_fill_000b5a98)(param_2)" (parenthesized_expression "(*(code *)PTR_cairo_fill_000b5a98)" (( "(") (pointer_expression "*(code *)PTR_cairo_fill_000b5a98" (* "*") (cast_expression "(code *)PTR_cairo_fill_000b5a98" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_cairo_fill_000b5a98"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_14 == *(int *)puVar8) {\n    return 1;\n  }" (if "if") (parenthesized_expression "(local_14 == *(int *)puVar8)" (( "(") (binary_expression "local_14 == *(int *)puVar8" (identifier "local_14") (== "==") (pointer_expression "*(int *)puVar8" (* "*") (cast_expression "(int *)puVar8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar8")))) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "iVar4 = local_14;" (assignment_expression "iVar4 = local_14" (identifier "iVar4") (= "=") (identifier "local_14")) (; ";")) (expression_statement "puVar8 = PTR___stack_chk_fail_000b5d9c;" (assignment_expression "puVar8 = PTR___stack_chk_fail_000b5d9c" (identifier "puVar8") (= "=") (identifier "PTR___stack_chk_fail_000b5d9c")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000b5d9c)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000b5d9c" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000b5d9c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000b5d9c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "(**(code **)(puVar8 + 0x49a2c))();" (call_expression "(**(code **)(puVar8 + 0x49a2c))()" (parenthesized_expression "(**(code **)(puVar8 + 0x49a2c))" (( "(") (pointer_expression "**(code **)(puVar8 + 0x49a2c)" (* "*") (pointer_expression "*(code **)(puVar8 + 0x49a2c)" (* "*") (cast_expression "(code **)(puVar8 + 0x49a2c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x49a2c)" (( "(") (binary_expression "puVar8 + 0x49a2c" (identifier "puVar8") (+ "+") (number_literal "0x49a2c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar1 = (**(code **)(puVar8 + 0x493c4))();" (assignment_expression "uVar1 = (**(code **)(puVar8 + 0x493c4))()" (identifier "uVar1") (= "=") (call_expression "(**(code **)(puVar8 + 0x493c4))()" (parenthesized_expression "(**(code **)(puVar8 + 0x493c4))" (( "(") (pointer_expression "**(code **)(puVar8 + 0x493c4)" (* "*") (pointer_expression "*(code **)(puVar8 + 0x493c4)" (* "*") (cast_expression "(code **)(puVar8 + 0x493c4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x493c4)" (( "(") (binary_expression "puVar8 + 0x493c4" (identifier "puVar8") (+ "+") (number_literal "0x493c4")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar2 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);" (assignment_expression "uVar2 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1)" (identifier "uVar2") (= "=") (call_expression "(**(code **)(puVar8 + 0x49a68))(iVar4,uVar1)" (parenthesized_expression "(**(code **)(puVar8 + 0x49a68))" (( "(") (pointer_expression "**(code **)(puVar8 + 0x49a68)" (* "*") (pointer_expression "*(code **)(puVar8 + 0x49a68)" (* "*") (cast_expression "(code **)(puVar8 + 0x49a68)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x49a68)" (( "(") (binary_expression "puVar8 + 0x49a68" (identifier "puVar8") (+ "+") (number_literal "0x49a68")) () ")"))))) () ")")) (argument_list "(iVar4,uVar1)" (( "(") (identifier "iVar4") (, ",") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar5);" (assignment_expression "uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar5)" (identifier "uVar3") (= "=") (call_expression "(**(code **)(puVar8 + 0x496dc))(*puVar5)" (parenthesized_expression "(**(code **)(puVar8 + 0x496dc))" (( "(") (pointer_expression "**(code **)(puVar8 + 0x496dc)" (* "*") (pointer_expression "*(code **)(puVar8 + 0x496dc)" (* "*") (cast_expression "(code **)(puVar8 + 0x496dc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x496dc)" (( "(") (binary_expression "puVar8 + 0x496dc" (identifier "puVar8") (+ "+") (number_literal "0x496dc")) () ")"))))) () ")")) (argument_list "(*puVar5)" (( "(") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) () ")")))) (; ";")) (expression_statement "(**(code **)(puVar8 + 0x49ab8))(uVar2,uVar3);" (call_expression "(**(code **)(puVar8 + 0x49ab8))(uVar2,uVar3)" (parenthesized_expression "(**(code **)(puVar8 + 0x49ab8))" (( "(") (pointer_expression "**(code **)(puVar8 + 0x49ab8)" (* "*") (pointer_expression "*(code **)(puVar8 + 0x49ab8)" (* "*") (cast_expression "(code **)(puVar8 + 0x49ab8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x49ab8)" (( "(") (binary_expression "puVar8 + 0x49ab8" (identifier "puVar8") (+ "+") (number_literal "0x49ab8")) () ")"))))) () ")")) (argument_list "(uVar2,uVar3)" (( "(") (identifier "uVar2") (, ",") (identifier "uVar3") () ")"))) (; ";")) (if_statement "if (param_3 < 1) {\n    uVar2 = 0;\n  }\n  else {\n    uVar2 = 0;\n    puVar6 = puVar5;\n    do {\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    } while (puVar7 != puVar5 + param_3);\n  }" (if "if") (parenthesized_expression "(param_3 < 1)" (( "(") (binary_expression "param_3 < 1" (identifier "param_3") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    uVar2 = 0;\n  }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar2 = 0;\n    puVar6 = puVar5;\n    do {\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    } while (puVar7 != puVar5 + param_3);\n  }" (else "else") (compound_statement "{\n    uVar2 = 0;\n    puVar6 = puVar5;\n    do {\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    } while (puVar7 != puVar5 + param_3);\n  }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar6 = puVar5;" (assignment_expression "puVar6 = puVar5" (identifier "puVar6") (= "=") (identifier "puVar5")) (; ";")) (do_statement "do {\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    } while (puVar7 != puVar5 + param_3);" (do "do") (compound_statement "{\n      puVar7 = puVar6 + 1;\n      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);\n      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);\n      puVar6 = puVar7;\n    }" ({ "{") (expression_statement "puVar7 = puVar6 + 1;" (assignment_expression "puVar7 = puVar6 + 1" (identifier "puVar7") (= "=") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);" (assignment_expression "uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6)" (identifier "uVar3") (= "=") (call_expression "(**(code **)(puVar8 + 0x496dc))(*puVar6)" (parenthesized_expression "(**(code **)(puVar8 + 0x496dc))" (( "(") (pointer_expression "**(code **)(puVar8 + 0x496dc)" (* "*") (pointer_expression "*(code **)(puVar8 + 0x496dc)" (* "*") (cast_expression "(code **)(puVar8 + 0x496dc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x496dc)" (( "(") (binary_expression "puVar8 + 0x496dc" (identifier "puVar8") (+ "+") (number_literal "0x496dc")) () ")"))))) () ")")) (argument_list "(*puVar6)" (( "(") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) () ")")))) (; ";")) (expression_statement "uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);" (assignment_expression "uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3)" (identifier "uVar2") (= "=") (call_expression "(**(code **)(puVar8 + 0x499fc))(uVar2,uVar3)" (parenthesized_expression "(**(code **)(puVar8 + 0x499fc))" (( "(") (pointer_expression "**(code **)(puVar8 + 0x499fc)" (* "*") (pointer_expression "*(code **)(puVar8 + 0x499fc)" (* "*") (cast_expression "(code **)(puVar8 + 0x499fc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x499fc)" (( "(") (binary_expression "puVar8 + 0x499fc" (identifier "puVar8") (+ "+") (number_literal "0x499fc")) () ")"))))) () ")")) (argument_list "(uVar2,uVar3)" (( "(") (identifier "uVar2") (, ",") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "puVar6 = puVar7;" (assignment_expression "puVar6 = puVar7" (identifier "puVar6") (= "=") (identifier "puVar7")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar7 != puVar5 + param_3)" (( "(") (binary_expression "puVar7 != puVar5 + param_3" (identifier "puVar7") (!= "!=") (binary_expression "puVar5 + param_3" (identifier "puVar5") (+ "+") (identifier "param_3"))) () ")")) (; ";")) (} "}")))) (expression_statement "uVar1 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);" (assignment_expression "uVar1 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(puVar8 + 0x49a68))(iVar4,uVar1)" (parenthesized_expression "(**(code **)(puVar8 + 0x49a68))" (( "(") (pointer_expression "**(code **)(puVar8 + 0x49a68)" (* "*") (pointer_expression "*(code **)(puVar8 + 0x49a68)" (* "*") (cast_expression "(code **)(puVar8 + 0x49a68)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x49a68)" (( "(") (binary_expression "puVar8 + 0x49a68" (identifier "puVar8") (+ "+") (number_literal "0x49a68")) () ")"))))) () ")")) (argument_list "(iVar4,uVar1)" (( "(") (identifier "iVar4") (, ",") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "uVar1 = (**(code **)(puVar8 + 0x49658))(uVar1,uVar2);" (assignment_expression "uVar1 = (**(code **)(puVar8 + 0x49658))(uVar1,uVar2)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(puVar8 + 0x49658))(uVar1,uVar2)" (parenthesized_expression "(**(code **)(puVar8 + 0x49658))" (( "(") (pointer_expression "**(code **)(puVar8 + 0x49658)" (* "*") (pointer_expression "*(code **)(puVar8 + 0x49658)" (* "*") (cast_expression "(code **)(puVar8 + 0x49658)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x49658)" (( "(") (binary_expression "puVar8 + 0x49658" (identifier "puVar8") (+ "+") (number_literal "0x49658")) () ")"))))) () ")")) (argument_list "(uVar1,uVar2)" (( "(") (identifier "uVar1") (, ",") (identifier "uVar2") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

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

{
  type_5 uVar1;
  type_5 uVar2;
  type_5 uVar3;
  type_1 gVar4;
  int var_1;
  type_3 *var_5;
  type_3 *var_3;
  type_3 *var_4;
  type_6 *var_2;
  type_7 dirtyrect;
  
  var_2 = PTR___stack_chk_guard_000b60f8;
  var_1 = *(int *)PTR___stack_chk_guard_000b60f8;
  var_5 = cr;
  if (*(int *)((int)data + 0x34) != 0) {
    (*(type_8 *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(cr,&dirtyrect);
    var_5 = *(type_3 **)((int)data + 0x34);
    (*(type_8 *)PTR_cairo_set_source_surface_000b5ab0)(cr);
    data = (type_4)((type_9)(double)dirtyrect.x >> 0x20);
    (*(type_8 *)PTR_cairo_rectangle_000b6028)(cr);
    (*(type_8 *)PTR_cairo_fill_000b5a98)(cr);
  }
  if (var_1 == *(int *)var_2) {
    return 1;
  }
  var_2 = PTR___stack_chk_fail_000b5d9c;
  (*(type_8 *)PTR___stack_chk_fail_000b5d9c)();
  (**(type_8 **)(var_2 + 0x49a2c))();
  uVar1 = (**(type_8 **)(var_2 + 0x493c4))();
  uVar2 = (**(type_8 **)(var_2 + 0x49a68))(var_1,uVar1);
  uVar3 = (**(type_8 **)(var_2 + 0x496dc))(*(type_5 *)var_5);
  (**(type_8 **)(var_2 + 0x49ab8))(uVar2,uVar3);
  if ((int)data < 1) {
    uVar2 = 0;
  }
  else {
    uVar2 = 0;
    var_3 = var_5;
    do {
      var_4 = var_3 + 4;
      uVar3 = (**(type_8 **)(var_2 + 0x496dc))(*(type_5 *)var_3);
      uVar2 = (**(type_8 **)(var_2 + 0x499fc))(uVar2,uVar3);
      var_3 = var_4;
    } while (var_4 != var_5 + (int)data * 4);
  }
  uVar1 = (**(type_8 **)(var_2 + 0x49a68))(var_1,uVar1);
                    /* WARNING: Could not recover jumptable at 0x0006c770. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  gVar4 = (**(type_8 **)(var_2 + 0x49658))(uVar1,uVar2);
  return gVar4;
}


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

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

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 *puVar5;
  undefined4 *puVar6;
  undefined4 *puVar7;
  undefined *puVar8;
  int local_24 [4];
  int local_14;
  
  puVar8 = PTR___stack_chk_guard_000b60f8;
  local_14 = *(int *)PTR___stack_chk_guard_000b60f8;
  puVar5 = param_2;
  if (*(int *)(param_3 + 0x34) != 0) {
    (*(code *)PTR_gdk_cairo_get_clip_rectangle_000b6160)(param_2,local_24);
    puVar5 = *(undefined4 **)(param_3 + 0x34);
    (*(code *)PTR_cairo_set_source_surface_000b5ab0)(param_2);
    param_3 = (int)((ulonglong)(double)local_24[0] >> 0x20);
    (*(code *)PTR_cairo_rectangle_000b6028)(param_2);
    (*(code *)PTR_cairo_fill_000b5a98)(param_2);
  }
  if (local_14 == *(int *)puVar8) {
    return 1;
  }
  iVar4 = local_14;
  puVar8 = PTR___stack_chk_fail_000b5d9c;
  (*(code *)PTR___stack_chk_fail_000b5d9c)();
  (**(code **)(puVar8 + 0x49a2c))();
  uVar1 = (**(code **)(puVar8 + 0x493c4))();
  uVar2 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);
  uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar5);
  (**(code **)(puVar8 + 0x49ab8))(uVar2,uVar3);
  if (param_3 < 1) {
    uVar2 = 0;
  }
  else {
    uVar2 = 0;
    puVar6 = puVar5;
    do {
      puVar7 = puVar6 + 1;
      uVar3 = (**(code **)(puVar8 + 0x496dc))(*puVar6);
      uVar2 = (**(code **)(puVar8 + 0x499fc))(uVar2,uVar3);
      puVar6 = puVar7;
    } while (puVar7 != puVar5 + param_3);
  }
  uVar1 = (**(code **)(puVar8 + 0x49a68))(iVar4,uVar1);
                    /* WARNING: Could not recover jumptable at 0x0006c770. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  uVar1 = (**(code **)(puVar8 + 0x49658))(uVar1,uVar2);
  return uVar1;
}

