
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void do_cursor(Context ctx,int x,int y,wchar_t *text,int len,ulong attr,int lattr)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  uint uVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  uint uVar9;
  int iVar10;
  int in_GS_OFFSET;
  bool bVar11;
  double dVar12;
  int local_60;
  int local_50;
  GdkRectangle cursorrect;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
                    /* WARNING: Load size is inaccurate */
  iVar2 = *ctx;
  bVar11 = (attr & 0x20000000) != 0;
  if (bVar11) {
    attr = attr & 0xdfffffff;
  }
  iVar3 = 0;
  if (((attr & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)) {
    attr = attr & 0xbfffffff;
    iVar3 = 1;
  }
  dVar12 = (double)CONCAT44(lattr,attr);
  do_text_internal(ctx,x,y,text,len,attr,lattr);
  if ((int)attr < 0) {
    len = 1;
  }
  local_60 = ((attr & 0x400000) != 0) + 1;
  if ((lattr & 3U) == 0) {
    local_60 = len * local_60;
    iVar4 = *(int *)(iVar2 + 0x2258);
    if (iVar4 == 0) goto LAB_0006ac2b;
    iVar7 = *(int *)(iVar2 + 0xcdc);
    if ((attr & 0x400000) != 0) goto LAB_0006aeb6;
    uVar5 = *(uint *)(iVar2 + 0xce0);
    iVar8 = iVar7;
    iVar10 = iVar7;
    if (iVar4 != 1) goto LAB_0006ad44;
LAB_0006aec9:
    local_50 = 0;
    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;
    if ((int)uVar5 <= iVar6) {
      iVar6 = uVar5 - 1;
    }
    iVar8 = iVar7 * x + *(int *)(iVar2 + 0x2254);
    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * y + iVar6;
    uVar5 = local_60 * iVar10;
    iVar7 = *(int *)((int)ctx + 4);
joined_r0x0006ad80:
    if (iVar7 != 0) {
      if (bVar11) goto LAB_0006ad92;
LAB_0006af90:
      if ((iVar3 == 0) || (*(int *)((int)ctx + 4) != 0)) goto LAB_0006ac80;
      cairo_new_path();
      cairo_move_to();
      cairo_line_to();
      goto LAB_0006b155;
    }
                    /* WARNING: Load size is inaccurate */
    dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440);
    cairo_set_source_rgb();
    if (!bVar11) goto LAB_0006af90;
LAB_0006ad92:
    uVar9 = 0;
    if (0 < (int)uVar5) {
      do {
        while (((uVar9 & 1) == 0 && (*(int *)((int)ctx + 4) == 0))) {
          uVar9 = uVar9 + 1;
          cairo_new_path();
          cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),(double)iVar8,(double)iVar6,
                          0x3ff0000000000000,0x3ff0000000000000,dVar12);
          cairo_fill();
          iVar8 = iVar8 + iVar4;
          iVar6 = iVar6 + local_50;
          if (uVar5 == uVar9) goto LAB_0006ac80;
        }
        uVar9 = uVar9 + 1;
        iVar8 = iVar8 + iVar4;
        iVar6 = iVar6 + local_50;
      } while (uVar5 != uVar9);
    }
  }
  else {
    iVar7 = x * 2;
    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);
    if (iVar4 <= iVar7) goto LAB_0006aced;
    if (iVar4 < iVar7 + len * local_60 * 2) {
      iVar4 = iVar4 + x * -2;
      len = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);
    }
    iVar4 = *(int *)(iVar2 + 0x2258);
    local_60 = len * local_60 * 2;
    x = iVar7;
    if (iVar4 != 0) {
      iVar7 = *(int *)(iVar2 + 0xcdc);
LAB_0006aeb6:
      uVar5 = *(uint *)(iVar2 + 0xce0);
      iVar8 = iVar7 * 2;
      iVar10 = iVar7 * 2;
      if (iVar4 == 1) goto LAB_0006aec9;
LAB_0006ad44:
      iVar8 = iVar8 + -1;
      if ((attr & 0x10000000) == 0) {
        iVar8 = 0;
      }
      local_50 = 1;
      iVar8 = iVar7 * x + *(int *)(iVar2 + 0x2254) + iVar8;
      iVar7 = *(int *)((int)ctx + 4);
      iVar6 = *(int *)(iVar2 + 0x2254) + y * uVar5;
      iVar4 = 0;
      goto joined_r0x0006ad80;
    }
LAB_0006ac2b:
    if (bVar11) {
      if (*(int *)((int)ctx + 4) == 0) {
                    /* WARNING: Load size is inaccurate */
        dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440);
        cairo_set_source_rgb();
      }
      iVar3 = *(int *)(iVar2 + 0xcdc);
      iVar4 = *(int *)(iVar2 + 0xce0);
      iVar2 = *(int *)(iVar2 + 0x2254);
      if (*(int *)((int)ctx + 4) == 0) {
        cairo_new_path();
        cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),
                        (double)((float)(iVar3 * x + iVar2) + DAT_00096380),
                        (double)((float)(y * iVar4 + iVar2) + DAT_00096380),
                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);
        cairo_close_path();
LAB_0006b155:
        cairo_stroke();
      }
    }
  }
LAB_0006ac80:
  gtk_widget_queue_draw_area();
  gtk_im_context_set_cursor_location();
LAB_0006aced:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void FUN_0006ab10(int *param_1,int param_2,int param_3,undefined4 param_4,int param_5,uint param_6,
                 uint param_7)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  uint uVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  uint uVar9;
  int iVar10;
  int in_GS_OFFSET;
  bool bVar11;
  double dVar12;
  int local_60;
  int local_50;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = *param_1;
  bVar11 = (param_6 & 0x20000000) != 0;
  if (bVar11) {
    param_6 = param_6 & 0xdfffffff;
  }
  iVar3 = 0;
  if (((param_6 & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)) {
    param_6 = param_6 & 0xbfffffff;
    iVar3 = 1;
  }
  dVar12 = (double)CONCAT44(param_7,param_6);
  FUN_0006a1a0();
  if ((int)param_6 < 0) {
    param_5 = 1;
  }
  local_60 = ((param_6 & 0x400000) != 0) + 1;
  if ((param_7 & 3) == 0) {
    local_60 = param_5 * local_60;
    iVar4 = *(int *)(iVar2 + 0x2258);
    if (iVar4 == 0) goto LAB_0006ac2b;
    iVar7 = *(int *)(iVar2 + 0xcdc);
    if ((param_6 & 0x400000) != 0) goto LAB_0006aeb6;
    uVar5 = *(uint *)(iVar2 + 0xce0);
    iVar8 = iVar7;
    iVar10 = iVar7;
    if (iVar4 != 1) goto LAB_0006ad44;
LAB_0006aec9:
    local_50 = 0;
    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;
    if ((int)uVar5 <= iVar6) {
      iVar6 = uVar5 - 1;
    }
    iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254);
    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6;
    uVar5 = local_60 * iVar10;
    iVar7 = param_1[1];
joined_r0x0006ad80:
    if (iVar7 != 0) {
      if (bVar11) goto LAB_0006ad92;
LAB_0006af90:
      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;
      cairo_new_path();
      cairo_move_to();
      cairo_line_to();
      goto LAB_0006b155;
    }
    dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);
    cairo_set_source_rgb();
    if (!bVar11) goto LAB_0006af90;
LAB_0006ad92:
    uVar9 = 0;
    if (0 < (int)uVar5) {
      do {
        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {
          uVar9 = uVar9 + 1;
          cairo_new_path();
          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,
                          0x3ff0000000000000,dVar12);
          cairo_fill();
          iVar8 = iVar8 + iVar4;
          iVar6 = iVar6 + local_50;
          if (uVar5 == uVar9) goto LAB_0006ac80;
        }
        uVar9 = uVar9 + 1;
        iVar8 = iVar8 + iVar4;
        iVar6 = iVar6 + local_50;
      } while (uVar5 != uVar9);
    }
  }
  else {
    iVar7 = param_2 * 2;
    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);
    if (iVar4 <= iVar7) goto LAB_0006aced;
    if (iVar4 < iVar7 + param_5 * local_60 * 2) {
      iVar4 = iVar4 + param_2 * -2;
      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);
    }
    iVar4 = *(int *)(iVar2 + 0x2258);
    local_60 = param_5 * local_60 * 2;
    param_2 = iVar7;
    if (iVar4 != 0) {
      iVar7 = *(int *)(iVar2 + 0xcdc);
LAB_0006aeb6:
      uVar5 = *(uint *)(iVar2 + 0xce0);
      iVar8 = iVar7 * 2;
      iVar10 = iVar7 * 2;
      if (iVar4 == 1) goto LAB_0006aec9;
LAB_0006ad44:
      iVar8 = iVar8 + -1;
      if ((param_6 & 0x10000000) == 0) {
        iVar8 = 0;
      }
      local_50 = 1;
      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;
      iVar7 = param_1[1];
      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;
      iVar4 = 0;
      goto joined_r0x0006ad80;
    }
LAB_0006ac2b:
    if (bVar11) {
      if (param_1[1] == 0) {
        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);
        cairo_set_source_rgb();
      }
      iVar3 = *(int *)(iVar2 + 0xcdc);
      iVar4 = *(int *)(iVar2 + 0xce0);
      iVar2 = *(int *)(iVar2 + 0x2254);
      if (param_1[1] == 0) {
        cairo_new_path();
        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),
                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),
                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);
        cairo_close_path();
LAB_0006b155:
        cairo_stroke();
      }
    }
  }
LAB_0006ac80:
  gtk_widget_queue_draw_area();
  gtk_im_context_set_cursor_location();
LAB_0006aced:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00077880();
}


CALL 0x0001ba4e
ADD EAX,0x5ac8f
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x5c
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x70]
MOV EBX,dword ptr [ESP + 0x84]
MOV EDI,dword ptr [ESP + 0x80]
MOV dword ptr [ESP + 0x4],EAX
MOV ECX,EAX
MOV EAX,dword ptr [ESP + 0x7c]
MOV ESI,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x4c],ESI
XOR ESI,ESI
MOV ESI,dword ptr [ECX]
MOV dword ptr [ESP + 0x18],0x0
TEST EBX,0x20000000
JZ 0x0006ab6e
MOV dword ptr [ESP + 0x18],0x1
AND EBX,0xdfffffff
MOV dword ptr [ESP + 0x10],0x0
TEST EBX,0x40000000
JZ 0x0006ab90
MOV ECX,dword ptr [ESI + 0x2258]
MOV dword ptr [ESP + 0x10],ECX
TEST ECX,ECX
JNZ 0x0006ae98
SUB ESP,0x4
PUSH dword ptr [ESP + 0x8c]
PUSH EBX
PUSH EDI
PUSH EAX
PUSH dword ptr [ESP + 0x8c]
PUSH dword ptr [ESP + 0x8c]
PUSH dword ptr [ESP + 0x20]
CALL 0x0006a1a0
MOV EAX,0x1
ADD ESP,0x20
TEST EBX,EBX
CMOVS EDI,EAX
MOV EAX,EBX
XOR ECX,ECX
AND EAX,0x400000
SETNZ CL
MOV EBP,ECX
ADD EBP,0x1
TEST byte ptr [ESP + 0x88],0x3
JZ 0x0006ad10
MOV EAX,dword ptr [ESI + 0xd1c]
SHL dword ptr [ESP + 0x74],0x1
MOV EAX,dword ptr [EAX + 0x12c]
CMP EAX,dword ptr [ESP + 0x74]
JLE 0x0006aced
MOV EDX,EDI
MOV ECX,dword ptr [ESP + 0x74]
IMUL EDX,EBP
LEA EDX,[ECX + EDX*0x2]
CMP EAX,EDX
JGE 0x0006ac13
SUB EAX,ECX
SAR EAX,0x1
CDQ
IDIV EBP
MOV EDI,EAX
IMUL EDI,EBP
MOV ECX,dword ptr [ESI + 0x2258]
LEA EAX,[EDI + EDI*0x1]
MOV dword ptr [ESP + 0xc],EAX
TEST ECX,ECX
JNZ 0x0006aeb0
MOV EDI,dword ptr [ESP + 0x18]
TEST EDI,EDI
JZ 0x0006ae64
MOV EAX,dword ptr [ESP + 0x4]
MOV EBX,dword ptr [EAX + 0x4]
TEST EBX,EBX
JZ 0x0006b068
MOV EDI,dword ptr [ESI + 0xcdc]
MOV EAX,dword ptr [ESI + 0xce0]
MOV EDX,dword ptr [ESP + 0xc]
MOV EBP,dword ptr [ESP + 0x78]
MOV ECX,dword ptr [ESI + 0x2254]
MOV EBX,dword ptr [ESP + 0x4]
IMUL EDX,EDI
IMUL EBP,EAX
IMUL EDI,dword ptr [ESP + 0x74]
ADD EBP,ECX
ADD EDI,ECX
MOV ECX,dword ptr [EBX + 0x4]
TEST ECX,ECX
JZ 0x0006b0d0
NOP
SUB ESP,0xc
PUSH EAX
PUSH EDX
PUSH EBP
PUSH EDI
MOV EAX,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [EAX]
PUSH dword ptr [EAX + 0x4]
MOV EBP,dword ptr [ESP + 0x28]
MOV EBX,EBP
CALL 0x00019270
MOV EDI,dword ptr [ESI + 0xcdc]
MOV EDX,dword ptr [ESP + 0x94]
MOV EAX,dword ptr [ESI + 0x2254]
MOV ECX,dword ptr [ESI + 0xce0]
IMUL EDX,EDI
IMUL EDI,dword ptr [ESP + 0x2c]
MOV dword ptr [ESP + 0x68],ECX
ADD EDX,EAX
MOV dword ptr [ESP + 0x5c],EDX
MOV EDX,dword ptr [ESP + 0x98]
MOV dword ptr [ESP + 0x64],EDI
IMUL EDX,ECX
ADD EAX,EDX
MOV dword ptr [ESP + 0x60],EAX
ADD ESP,0x18
LEA EAX,[ESP + 0x44]
PUSH EAX
PUSH dword ptr [ESI + 0x38]
CALL 0x0001a050
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x4c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0006b194
ADD ESP,0x5c
POP EBX
POP ESI
POP EDI
POP EBP
RET
IMUL EDI,EBP
MOV ECX,dword ptr [ESI + 0x2258]
MOV dword ptr [ESP + 0xc],EDI
TEST ECX,ECX
JZ 0x0006ac2b
MOV EDI,dword ptr [ESI + 0xcdc]
MOV EBP,EDI
TEST EAX,EAX
JNZ 0x0006aeb6
MOV EAX,dword ptr [ESI + 0xce0]
CMP ECX,0x1
JZ 0x0006aec9
SUB EDI,0x1
MOV EDX,0x0
AND EBX,0x10000000
MOV ECX,dword ptr [ESP + 0x78]
CMOVZ EDI,EDX
IMUL EBP,dword ptr [ESP + 0x74]
MOV EBX,dword ptr [ESP + 0x4]
MOV dword ptr [ESP + 0x1c],0x1
MOV EDX,dword ptr [ESI + 0x2254]
IMUL ECX,EAX
ADD EBP,EDX
ADD EBP,EDI
MOV EDI,dword ptr [EBX + 0x4]
ADD EDX,ECX
XOR ECX,ECX
TEST EDI,EDI
JZ 0x0006af0e
MOV EDI,dword ptr [ESP + 0x18]
TEST EDI,EDI
JZ 0x0006af90
XOR EDI,EDI
TEST EAX,EAX
JLE 0x0006ae64
MOV dword ptr [ESP + 0x18],ESI
MOV ESI,dword ptr [ESP + 0x1c]
JMP 0x0006adbf
ADD EDI,0x1
ADD EBP,ECX
ADD EDX,ESI
CMP EAX,EDI
JZ 0x0006ae60
TEST EDI,0x1
JNZ 0x0006adb0
MOV EBX,dword ptr [ESP + 0x4]
MOV EBX,dword ptr [EBX + 0x4]
TEST EBX,EBX
JNZ 0x0006adb0
MOV dword ptr [ESP + 0x20],ECX
SUB ESP,0xc
ADD EDI,0x1
MOV dword ptr [ESP + 0x1c],EDX
MOV dword ptr [ESP + 0x28],EAX
MOV EAX,dword ptr [ESP + 0x10]
PUSH dword ptr [EAX + 0xc]
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x000198d0
SUB ESP,0x1c
MOV EDX,dword ptr [ESP + 0x3c]
FLD1
MOV EAX,dword ptr [ESP + 0x34]
FST qword ptr [ESP + 0x18]
MOV EBX,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0x34],EDX
FSTP qword ptr [ESP + 0x10]
FILD dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0x34],EBP
FSTP qword ptr [ESP + 0x8]
FILD dword ptr [ESP + 0x34]
FSTP qword ptr [ESP]
PUSH dword ptr [EBX + 0xc]
MOV EBX,EAX
MOV dword ptr [ESP + 0x38],EAX
CALL 0x00019810
ADD ESP,0x24
MOV ECX,dword ptr [ESP + 0x10]
PUSH dword ptr [ECX + 0xc]
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x0001ae00
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x20]
MOV EDX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESP + 0x1c]
ADD EBP,ECX
ADD EDX,ESI
CMP EAX,EDI
JNZ 0x0006adbf
MOV ESI,dword ptr [ESP + 0x18]
MOV EDI,dword ptr [ESI + 0xcdc]
MOV EAX,dword ptr [ESI + 0xce0]
MOV EDX,dword ptr [ESP + 0xc]
MOV EBP,dword ptr [ESP + 0x78]
MOV ECX,dword ptr [ESI + 0x2254]
IMUL EDX,EDI
IMUL EBP,EAX
IMUL EDI,dword ptr [ESP + 0x74]
ADD EBP,ECX
ADD EDI,ECX
JMP 0x0006ac80
AND EBX,0xbfffffff
MOV dword ptr [ESP + 0x10],0x1
JMP 0x0006ab90
MOV EBP,dword ptr [ESI + 0xcdc]
LEA EDI,[EBP + EBP*0x1]
MOV EAX,dword ptr [ESI + 0xce0]
CMP ECX,0x1
JNZ 0x0006ad44
MOV EDX,dword ptr [ESI + 0x3c]
MOV dword ptr [ESP + 0x1c],0x0
MOV EDX,dword ptr [EDX + 0x10]
LEA EBX,[EDX + 0x1]
LEA EDX,[EAX + -0x1]
CMP EBX,EAX
CMOVGE EBX,EDX
IMUL EAX,dword ptr [ESP + 0x78]
MOV EDX,dword ptr [ESI + 0x2254]
IMUL EBP,dword ptr [ESP + 0x74]
ADD EBP,EDX
ADD EDX,EAX
MOV EAX,dword ptr [ESP + 0xc]
ADD EDX,EBX
MOV EBX,dword ptr [ESP + 0x4]
IMUL EAX,EDI
MOV EDI,dword ptr [EBX + 0x4]
TEST EDI,EDI
JNZ 0x0006ad86
MOV EDI,dword ptr [EBX]
MOV dword ptr [ESP + 0x24],EAX
SUB ESP,0x1c
MOV EAX,EBX
MOV dword ptr [ESP + 0x48],ECX
MOV dword ptr [ESP + 0x44],EDX
MOVZX EBX,word ptr [EDI + 0xcb4]
MOV ECX,dword ptr [ESP + 0x24]
MOV dword ptr [ESP + 0x3c],EBX
FILD dword ptr [ESP + 0x3c]
FLD dword ptr [ECX + 0xfffcfc9c]
MOVZX EBX,word ptr [EDI + 0xcb2]
MOV dword ptr [ESP + 0x3c],EBX
MOVZX EBX,word ptr [EDI + 0xcb0]
FDIV ST1,ST0
FXCH
FSTP qword ptr [ESP + 0x10]
FILD dword ptr [ESP + 0x3c]
MOV dword ptr [ESP + 0x3c],EBX
MOV EBX,ECX
FDIV ST0,ST1
FSTP qword ptr [ESP + 0x8]
FILD dword ptr [ESP + 0x3c]
FDIVRP
FSTP qword ptr [ESP]
PUSH dword ptr [EAX + 0xc]
CALL 0x000199f0
ADD ESP,0x20
MOV EDI,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [ESP + 0x2c]
MOV EDX,dword ptr [ESP + 0x28]
MOV EAX,dword ptr [ESP + 0x24]
TEST EDI,EDI
JNZ 0x0006ad92
MOV EDI,dword ptr [ESP + 0x10]
TEST EDI,EDI
JZ 0x0006ae64
MOV EBX,dword ptr [ESP + 0x4]
MOV EBX,dword ptr [EBX + 0x4]
TEST EBX,EBX
JNZ 0x0006ae64
MOV dword ptr [ESP + 0x24],ECX
SUB ESP,0xc
LEA EDI,[EAX + -0x1]
MOV dword ptr [ESP + 0x24],EDX
MOV EAX,dword ptr [ESP + 0x10]
PUSH dword ptr [EAX + 0xc]
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x000198d0
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x24]
FILD dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0x24],EBP
MOV EDX,dword ptr [ESP + 0x34]
MOV EBX,dword ptr [ESP + 0x20]
FLD dword ptr [EAX + 0xfffd0bdc]
MOV dword ptr [ESP + 0x3c],EDX
FADD ST1,ST0
FXCH
FSTP qword ptr [ESP + 0x8]
FILD dword ptr [ESP + 0x24]
FADD ST0,ST1
FXCH
FSTP qword ptr [ESP + 0x2c]
FSTP qword ptr [ESP]
PUSH dword ptr [EBX + 0xc]
MOV EBX,EAX
MOV dword ptr [ESP + 0x28],EAX
CALL 0x000195d0
POP EAX
MOV EAX,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [ESP + 0x3c]
MOV ECX,dword ptr [ESP + 0x40]
IMUL EAX,EDI
IMUL ECX,EDI
ADD EDX,EAX
MOV dword ptr [ESP + 0x34],EDX
FILD dword ptr [ESP + 0x34]
ADD EBP,ECX
FLD qword ptr [ESP + 0x2c]
MOV dword ptr [ESP + 0x34],EBP
MOV EBP,dword ptr [ESP + 0x20]
FADD ST1,ST0
FXCH
FSTP qword ptr [ESP + 0x8]
FILD dword ptr [ESP + 0x34]
FADDP
FSTP qword ptr [ESP]
PUSH dword ptr [EBP + 0xc]
MOV EDI,dword ptr [ESP + 0x28]
MOV EBX,EDI
CALL 0x0001a2f0
ADD ESP,0x14
JMP 0x0006b155
MOV EDX,dword ptr [EAX]
SUB ESP,0x1c
MOV ECX,EAX
MOV EBX,dword ptr [ESP + 0x24]
MOVZX EAX,word ptr [EDX + 0xcb4]
MOV dword ptr [ESP + 0x34],EAX
FILD dword ptr [ESP + 0x34]
FLD dword ptr [EBX + 0xfffcfc9c]
MOVZX EAX,word ptr [EDX + 0xcb2]
MOV dword ptr [ESP + 0x34],EAX
MOVZX EAX,word ptr [EDX + 0xcb0]
FDIV ST1,ST0
FXCH
FSTP qword ptr [ESP + 0x10]
FILD dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0x34],EAX
FDIV ST0,ST1
FSTP qword ptr [ESP + 0x8]
FILD dword ptr [ESP + 0x34]
FDIVRP
FSTP qword ptr [ESP]
PUSH dword ptr [ECX + 0xc]
CALL 0x000199f0
ADD ESP,0x20
JMP 0x0006ac46
MOV dword ptr [ESP + 0x10],EDX
SUB ESP,0xc
MOV dword ptr [ESP + 0x24],EAX
MOV EAX,dword ptr [ESP + 0x10]
PUSH dword ptr [EAX + 0xc]
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x000198d0
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x44]
MOV EDX,dword ptr [ESP + 0x3c]
SUB EAX,0x1
SUB EDX,0x1
MOV dword ptr [ESP + 0x44],EAX
FILD dword ptr [ESP + 0x44]
MOV dword ptr [ESP + 0x44],EDX
MOV EAX,dword ptr [ESP + 0x34]
FSTP qword ptr [ESP + 0x18]
FILD dword ptr [ESP + 0x44]
MOV EBX,EAX
MOV dword ptr [ESP + 0x44],EBP
MOV EBP,dword ptr [ESP + 0x30]
FSTP qword ptr [ESP + 0x10]
FILD dword ptr [ESP + 0x44]
FLD dword ptr [EAX + 0xfffd0bdc]
MOV dword ptr [ESP + 0x44],EDI
FADD ST1,ST0
FXCH
FSTP qword ptr [ESP + 0x8]
FILD dword ptr [ESP + 0x44]
FADDP
FSTP qword ptr [ESP]
PUSH dword ptr [EBP + 0xc]
CALL 0x00019810
ADD ESP,0x24
PUSH dword ptr [EBP + 0xc]
CALL 0x0001a9a0
POP EAX
PUSH dword ptr [EBP + 0xc]
CALL 0x0001ad70
MOV EDI,dword ptr [ESI + 0xcdc]
MOV EDX,dword ptr [ESP + 0x1c]
MOV EBP,dword ptr [ESP + 0x88]
MOV EAX,dword ptr [ESI + 0xce0]
IMUL EDX,EDI
MOV ECX,dword ptr [ESI + 0x2254]
IMUL EDI,dword ptr [ESP + 0x84]
ADD ESP,0x10
IMUL EBP,EAX
ADD EDI,ECX
ADD EBP,ECX
JMP 0x0006ac80
CALL 0x00077880
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nvoid FUN_0006ab10(int *param_1,int param_2,int param_3,undefined4 param_4,int param_5,uint param_6,\n                 uint param_7)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  bool bVar11;\n  double dVar12;\n  int local_60;\n  int local_50;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = *param_1;\n  bVar11 = (param_6 & 0x20000000) != 0;\n  if (bVar11) {\n    param_6 = param_6 & 0xdfffffff;\n  }\n  iVar3 = 0;\n  if (((param_6 & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)) {\n    param_6 = param_6 & 0xbfffffff;\n    iVar3 = 1;\n  }\n  dVar12 = (double)CONCAT44(param_7,param_6);\n  FUN_0006a1a0();\n  if ((int)param_6 < 0) {\n    param_5 = 1;\n  }\n  local_60 = ((param_6 & 0x400000) != 0) + 1;\n  if ((param_7 & 3) == 0) {\n    local_60 = param_5 * local_60;\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    if (iVar4 == 0) goto LAB_0006ac2b;\n    iVar7 = *(int *)(iVar2 + 0xcdc);\n    if ((param_6 & 0x400000) != 0) goto LAB_0006aeb6;\n    uVar5 = *(uint *)(iVar2 + 0xce0);\n    iVar8 = iVar7;\n    iVar10 = iVar7;\n    if (iVar4 != 1) goto LAB_0006ad44;\nLAB_0006aec9:\n    local_50 = 0;\n    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;\n    if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }\n    iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254);\n    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6;\n    uVar5 = local_60 * iVar10;\n    iVar7 = param_1[1];\njoined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }\n    dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (!bVar11) goto LAB_0006af90;\nLAB_0006ad92:\n    uVar9 = 0;\n    if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }\n  }\n  else {\n    iVar7 = param_2 * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + param_5 * local_60 * 2) {\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = param_5 * local_60 * 2;\n    param_2 = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }\nLAB_0006ac80:\n  gtk_widget_queue_draw_area();\n  gtk_im_context_set_cursor_location();\nLAB_0006aced:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00077880();\n}\n\n" comment comment (function_definition "void FUN_0006ab10(int *param_1,int param_2,int param_3,undefined4 param_4,int param_5,uint param_6,\n                 uint param_7)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  bool bVar11;\n  double dVar12;\n  int local_60;\n  int local_50;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = *param_1;\n  bVar11 = (param_6 & 0x20000000) != 0;\n  if (bVar11) {\n    param_6 = param_6 & 0xdfffffff;\n  }\n  iVar3 = 0;\n  if (((param_6 & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)) {\n    param_6 = param_6 & 0xbfffffff;\n    iVar3 = 1;\n  }\n  dVar12 = (double)CONCAT44(param_7,param_6);\n  FUN_0006a1a0();\n  if ((int)param_6 < 0) {\n    param_5 = 1;\n  }\n  local_60 = ((param_6 & 0x400000) != 0) + 1;\n  if ((param_7 & 3) == 0) {\n    local_60 = param_5 * local_60;\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    if (iVar4 == 0) goto LAB_0006ac2b;\n    iVar7 = *(int *)(iVar2 + 0xcdc);\n    if ((param_6 & 0x400000) != 0) goto LAB_0006aeb6;\n    uVar5 = *(uint *)(iVar2 + 0xce0);\n    iVar8 = iVar7;\n    iVar10 = iVar7;\n    if (iVar4 != 1) goto LAB_0006ad44;\nLAB_0006aec9:\n    local_50 = 0;\n    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;\n    if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }\n    iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254);\n    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6;\n    uVar5 = local_60 * iVar10;\n    iVar7 = param_1[1];\njoined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }\n    dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (!bVar11) goto LAB_0006af90;\nLAB_0006ad92:\n    uVar9 = 0;\n    if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }\n  }\n  else {\n    iVar7 = param_2 * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + param_5 * local_60 * 2) {\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = param_5 * local_60 * 2;\n    param_2 = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }\nLAB_0006ac80:\n  gtk_widget_queue_draw_area();\n  gtk_im_context_set_cursor_location();\nLAB_0006aced:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00077880();\n}" primitive_type (function_declarator "FUN_0006ab10(int *param_1,int param_2,int param_3,undefined4 param_4,int param_5,uint param_6,\n                 uint param_7)" identifier (parameter_list "(int *param_1,int param_2,int param_3,undefined4 param_4,int param_5,uint param_6,\n                 uint param_7)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "uint param_6" type_identifier identifier) , (parameter_declaration "uint param_7" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  bool bVar11;\n  double dVar12;\n  int local_60;\n  int local_50;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = *param_1;\n  bVar11 = (param_6 & 0x20000000) != 0;\n  if (bVar11) {\n    param_6 = param_6 & 0xdfffffff;\n  }\n  iVar3 = 0;\n  if (((param_6 & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)) {\n    param_6 = param_6 & 0xbfffffff;\n    iVar3 = 1;\n  }\n  dVar12 = (double)CONCAT44(param_7,param_6);\n  FUN_0006a1a0();\n  if ((int)param_6 < 0) {\n    param_5 = 1;\n  }\n  local_60 = ((param_6 & 0x400000) != 0) + 1;\n  if ((param_7 & 3) == 0) {\n    local_60 = param_5 * local_60;\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    if (iVar4 == 0) goto LAB_0006ac2b;\n    iVar7 = *(int *)(iVar2 + 0xcdc);\n    if ((param_6 & 0x400000) != 0) goto LAB_0006aeb6;\n    uVar5 = *(uint *)(iVar2 + 0xce0);\n    iVar8 = iVar7;\n    iVar10 = iVar7;\n    if (iVar4 != 1) goto LAB_0006ad44;\nLAB_0006aec9:\n    local_50 = 0;\n    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;\n    if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }\n    iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254);\n    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6;\n    uVar5 = local_60 * iVar10;\n    iVar7 = param_1[1];\njoined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }\n    dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (!bVar11) goto LAB_0006af90;\nLAB_0006ad92:\n    uVar9 = 0;\n    if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }\n  }\n  else {\n    iVar7 = param_2 * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + param_5 * local_60 * 2) {\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = param_5 * local_60 * 2;\n    param_2 = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }\nLAB_0006ac80:\n  gtk_widget_queue_draw_area();\n  gtk_im_context_set_cursor_location();\nLAB_0006aced:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00077880();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar11;" primitive_type identifier ;) (declaration "double dVar12;" primitive_type identifier ;) (declaration "int local_60;" primitive_type identifier ;) (declaration "int local_50;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "bVar11 = (param_6 & 0x20000000) != 0;" (assignment_expression "bVar11 = (param_6 & 0x20000000) != 0" identifier = (binary_expression "(param_6 & 0x20000000) != 0" (parenthesized_expression "(param_6 & 0x20000000)" ( (binary_expression "param_6 & 0x20000000" identifier & number_literal) )) != number_literal)) ;) (if_statement "if (bVar11) {\n    param_6 = param_6 & 0xdfffffff;\n  }" if (parenthesized_expression "(bVar11)" ( identifier )) (compound_statement "{\n    param_6 = param_6 & 0xdfffffff;\n  }" { (expression_statement "param_6 = param_6 & 0xdfffffff;" (assignment_expression "param_6 = param_6 & 0xdfffffff" identifier = (binary_expression "param_6 & 0xdfffffff" identifier & number_literal)) ;) })) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (((param_6 & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)) {\n    param_6 = param_6 & 0xbfffffff;\n    iVar3 = 1;\n  }" if (parenthesized_expression "(((param_6 & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0))" ( (binary_expression "((param_6 & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)" (parenthesized_expression "((param_6 & 0x40000000) != 0)" ( (binary_expression "(param_6 & 0x40000000) != 0" (parenthesized_expression "(param_6 & 0x40000000)" ( (binary_expression "param_6 & 0x40000000" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)" ( (comma_expression "iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0" (assignment_expression "iVar3 = *(int *)(iVar2 + 0x2258)" identifier = (pointer_expression "*(int *)(iVar2 + 0x2258)" * (cast_expression "(int *)(iVar2 + 0x2258)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2258)" ( (binary_expression "iVar2 + 0x2258" identifier + number_literal) ))))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    param_6 = param_6 & 0xbfffffff;\n    iVar3 = 1;\n  }" { (expression_statement "param_6 = param_6 & 0xbfffffff;" (assignment_expression "param_6 = param_6 & 0xbfffffff" identifier = (binary_expression "param_6 & 0xbfffffff" identifier & number_literal)) ;) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) })) (expression_statement "dVar12 = (double)CONCAT44(param_7,param_6);" (assignment_expression "dVar12 = (double)CONCAT44(param_7,param_6)" identifier = (cast_expression "(double)CONCAT44(param_7,param_6)" ( (type_descriptor "double" primitive_type) ) (call_expression "CONCAT44(param_7,param_6)" identifier (argument_list "(param_7,param_6)" ( identifier , identifier ))))) ;) (expression_statement "FUN_0006a1a0();" (call_expression "FUN_0006a1a0()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((int)param_6 < 0) {\n    param_5 = 1;\n  }" if (parenthesized_expression "((int)param_6 < 0)" ( (binary_expression "(int)param_6 < 0" (cast_expression "(int)param_6" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    param_5 = 1;\n  }" { (expression_statement "param_5 = 1;" (assignment_expression "param_5 = 1" identifier = number_literal) ;) })) (expression_statement "local_60 = ((param_6 & 0x400000) != 0) + 1;" (assignment_expression "local_60 = ((param_6 & 0x400000) != 0) + 1" identifier = (binary_expression "((param_6 & 0x400000) != 0) + 1" (parenthesized_expression "((param_6 & 0x400000) != 0)" ( (binary_expression "(param_6 & 0x400000) != 0" (parenthesized_expression "(param_6 & 0x400000)" ( (binary_expression "param_6 & 0x400000" identifier & number_literal) )) != number_literal) )) + number_literal)) ;) (if_statement "if ((param_7 & 3) == 0) {\n    local_60 = param_5 * local_60;\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    if (iVar4 == 0) goto LAB_0006ac2b;\n    iVar7 = *(int *)(iVar2 + 0xcdc);\n    if ((param_6 & 0x400000) != 0) goto LAB_0006aeb6;\n    uVar5 = *(uint *)(iVar2 + 0xce0);\n    iVar8 = iVar7;\n    iVar10 = iVar7;\n    if (iVar4 != 1) goto LAB_0006ad44;\nLAB_0006aec9:\n    local_50 = 0;\n    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;\n    if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }\n    iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254);\n    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6;\n    uVar5 = local_60 * iVar10;\n    iVar7 = param_1[1];\njoined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }\n    dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (!bVar11) goto LAB_0006af90;\nLAB_0006ad92:\n    uVar9 = 0;\n    if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }\n  }\n  else {\n    iVar7 = param_2 * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + param_5 * local_60 * 2) {\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = param_5 * local_60 * 2;\n    param_2 = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }" if (parenthesized_expression "((param_7 & 3) == 0)" ( (binary_expression "(param_7 & 3) == 0" (parenthesized_expression "(param_7 & 3)" ( (binary_expression "param_7 & 3" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    local_60 = param_5 * local_60;\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    if (iVar4 == 0) goto LAB_0006ac2b;\n    iVar7 = *(int *)(iVar2 + 0xcdc);\n    if ((param_6 & 0x400000) != 0) goto LAB_0006aeb6;\n    uVar5 = *(uint *)(iVar2 + 0xce0);\n    iVar8 = iVar7;\n    iVar10 = iVar7;\n    if (iVar4 != 1) goto LAB_0006ad44;\nLAB_0006aec9:\n    local_50 = 0;\n    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;\n    if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }\n    iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254);\n    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6;\n    uVar5 = local_60 * iVar10;\n    iVar7 = param_1[1];\njoined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }\n    dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (!bVar11) goto LAB_0006af90;\nLAB_0006ad92:\n    uVar9 = 0;\n    if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }\n  }" { (expression_statement "local_60 = param_5 * local_60;" (assignment_expression "local_60 = param_5 * local_60" identifier = (binary_expression "param_5 * local_60" identifier * identifier)) ;) (expression_statement "iVar4 = *(int *)(iVar2 + 0x2258);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x2258)" identifier = (pointer_expression "*(int *)(iVar2 + 0x2258)" * (cast_expression "(int *)(iVar2 + 0x2258)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2258)" ( (binary_expression "iVar2 + 0x2258" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 == 0) goto LAB_0006ac2b;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0006ac2b;" goto statement_identifier ;)) (expression_statement "iVar7 = *(int *)(iVar2 + 0xcdc);" (assignment_expression "iVar7 = *(int *)(iVar2 + 0xcdc)" identifier = (pointer_expression "*(int *)(iVar2 + 0xcdc)" * (cast_expression "(int *)(iVar2 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xcdc)" ( (binary_expression "iVar2 + 0xcdc" identifier + number_literal) ))))) ;) (if_statement "if ((param_6 & 0x400000) != 0) goto LAB_0006aeb6;" if (parenthesized_expression "((param_6 & 0x400000) != 0)" ( (binary_expression "(param_6 & 0x400000) != 0" (parenthesized_expression "(param_6 & 0x400000)" ( (binary_expression "param_6 & 0x400000" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_0006aeb6;" goto statement_identifier ;)) (expression_statement "uVar5 = *(uint *)(iVar2 + 0xce0);" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0xce0)" identifier = (pointer_expression "*(uint *)(iVar2 + 0xce0)" * (cast_expression "(uint *)(iVar2 + 0xce0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xce0)" ( (binary_expression "iVar2 + 0xce0" identifier + number_literal) ))))) ;) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" identifier = identifier) ;) (expression_statement "iVar10 = iVar7;" (assignment_expression "iVar10 = iVar7" identifier = identifier) ;) (if_statement "if (iVar4 != 1) goto LAB_0006ad44;" if (parenthesized_expression "(iVar4 != 1)" ( (binary_expression "iVar4 != 1" identifier != number_literal) )) (goto_statement "goto LAB_0006ad44;" goto statement_identifier ;)) (labeled_statement "LAB_0006aec9:\n    local_50 = 0;" statement_identifier : (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;)) (expression_statement "iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;" (assignment_expression "iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1" identifier = (binary_expression "*(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1" (pointer_expression "*(int *)(*(int *)(iVar2 + 0x3c) + 0x10)" * (cast_expression "(int *)(*(int *)(iVar2 + 0x3c) + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar2 + 0x3c) + 0x10)" ( (binary_expression "*(int *)(iVar2 + 0x3c) + 0x10" (pointer_expression "*(int *)(iVar2 + 0x3c)" * (cast_expression "(int *)(iVar2 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x3c)" ( (binary_expression "iVar2 + 0x3c" identifier + number_literal) )))) + number_literal) )))) + number_literal)) ;) (if_statement "if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }" if (parenthesized_expression "((int)uVar5 <= iVar6)" ( (binary_expression "(int)uVar5 <= iVar6" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) (compound_statement "{\n      iVar6 = uVar5 - 1;\n    }" { (expression_statement "iVar6 = uVar5 - 1;" (assignment_expression "iVar6 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) })) (expression_statement "iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254);" (assignment_expression "iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254)" identifier = (binary_expression "iVar7 * param_2 + *(int *)(iVar2 + 0x2254)" (binary_expression "iVar7 * param_2" identifier * identifier) + (pointer_expression "*(int *)(iVar2 + 0x2254)" * (cast_expression "(int *)(iVar2 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2254)" ( (binary_expression "iVar2 + 0x2254" identifier + number_literal) )))))) ;) (expression_statement "iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6;" (assignment_expression "iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6" identifier = (binary_expression "*(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6" (binary_expression "*(int *)(iVar2 + 0x2254) + uVar5 * param_3" (pointer_expression "*(int *)(iVar2 + 0x2254)" * (cast_expression "(int *)(iVar2 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2254)" ( (binary_expression "iVar2 + 0x2254" identifier + number_literal) )))) + (binary_expression "uVar5 * param_3" identifier * identifier)) + identifier)) ;) (expression_statement "uVar5 = local_60 * iVar10;" (assignment_expression "uVar5 = local_60 * iVar10" identifier = (binary_expression "local_60 * iVar10" identifier * identifier)) ;) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (labeled_statement "joined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }" statement_identifier : (if_statement "if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }" { (if_statement "if (bVar11) goto LAB_0006ad92;" if (parenthesized_expression "(bVar11)" ( identifier )) (goto_statement "goto LAB_0006ad92;" goto statement_identifier ;)) (labeled_statement "LAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;" statement_identifier : (if_statement "if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;" if (parenthesized_expression "((iVar3 == 0) || (param_1[1] != 0))" ( (binary_expression "(iVar3 == 0) || (param_1[1] != 0)" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) ))) )) (goto_statement "goto LAB_0006ac80;" goto statement_identifier ;))) (expression_statement "cairo_new_path();" (call_expression "cairo_new_path()" identifier (argument_list "()" ( ))) ;) (expression_statement "cairo_move_to();" (call_expression "cairo_move_to()" identifier (argument_list "()" ( ))) ;) (expression_statement "cairo_line_to();" (call_expression "cairo_line_to()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_0006b155;" goto statement_identifier ;) }))) (expression_statement "dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);" (assignment_expression "dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440)" identifier = (cast_expression "(double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440)" ( (binary_expression "(float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440" (cast_expression "(float)*(ushort *)(*param_1 + 0xcb4)" ( (type_descriptor "float" primitive_type) ) (pointer_expression "*(ushort *)(*param_1 + 0xcb4)" * (cast_expression "(ushort *)(*param_1 + 0xcb4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xcb4)" ( (binary_expression "*param_1 + 0xcb4" (pointer_expression "*param_1" * identifier) + number_literal) ))))) / identifier) )))) ;) (expression_statement "cairo_set_source_rgb();" (call_expression "cairo_set_source_rgb()" identifier (argument_list "()" ( ))) ;) (if_statement "if (!bVar11) goto LAB_0006af90;" if (parenthesized_expression "(!bVar11)" ( (unary_expression "!bVar11" ! identifier) )) (goto_statement "goto LAB_0006af90;" goto statement_identifier ;)) (labeled_statement "LAB_0006ad92:\n    uVar9 = 0;" statement_identifier : (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;)) (if_statement "if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }" if (parenthesized_expression "(0 < (int)uVar5)" ( (binary_expression "0 < (int)uVar5" number_literal < (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }" { (do_statement "do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);" do (compound_statement "{\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      }" { (while_statement "while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }" while (parenthesized_expression "(((uVar9 & 1) == 0 && (param_1[1] == 0)))" ( (parenthesized_expression "((uVar9 & 1) == 0 && (param_1[1] == 0))" ( (binary_expression "(uVar9 & 1) == 0 && (param_1[1] == 0)" (binary_expression "(uVar9 & 1) == 0" (parenthesized_expression "(uVar9 & 1)" ( (binary_expression "uVar9 & 1" identifier & number_literal) )) == number_literal) && (parenthesized_expression "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) ))) )) )) (compound_statement "{\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }" { (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) (expression_statement "cairo_new_path();" (call_expression "cairo_new_path()" identifier (argument_list "()" ( ))) ;) (expression_statement "cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);" (call_expression "cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12)" identifier (argument_list "(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12)" ( (subscript_expression "param_1[3]" identifier [ number_literal ]) , (cast_expression "(double)iVar8" ( (type_descriptor "double" primitive_type) ) identifier) , (cast_expression "(double)iVar6" ( (type_descriptor "double" primitive_type) ) identifier) , number_literal , number_literal , identifier ))) ;) (expression_statement "cairo_fill();" (call_expression "cairo_fill()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar8 = iVar8 + iVar4;" (assignment_expression "iVar8 = iVar8 + iVar4" identifier = (binary_expression "iVar8 + iVar4" identifier + identifier)) ;) (expression_statement "iVar6 = iVar6 + local_50;" (assignment_expression "iVar6 = iVar6 + local_50" identifier = (binary_expression "iVar6 + local_50" identifier + identifier)) ;) (if_statement "if (uVar5 == uVar9) goto LAB_0006ac80;" if (parenthesized_expression "(uVar5 == uVar9)" ( (binary_expression "uVar5 == uVar9" identifier == identifier) )) (goto_statement "goto LAB_0006ac80;" goto statement_identifier ;)) })) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar8 + iVar4;" (assignment_expression "iVar8 = iVar8 + iVar4" identifier = (binary_expression "iVar8 + iVar4" identifier + identifier)) ;) (expression_statement "iVar6 = iVar6 + local_50;" (assignment_expression "iVar6 = iVar6 + local_50" identifier = (binary_expression "iVar6 + local_50" identifier + identifier)) ;) }) while (parenthesized_expression "(uVar5 != uVar9)" ( (binary_expression "uVar5 != uVar9" identifier != identifier) )) ;) })) }) (else_clause "else {\n    iVar7 = param_2 * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + param_5 * local_60 * 2) {\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = param_5 * local_60 * 2;\n    param_2 = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }" else (compound_statement "{\n    iVar7 = param_2 * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + param_5 * local_60 * 2) {\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = param_5 * local_60 * 2;\n    param_2 = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }" { (expression_statement "iVar7 = param_2 * 2;" (assignment_expression "iVar7 = param_2 * 2" identifier = (binary_expression "param_2 * 2" identifier * number_literal)) ;) (expression_statement "iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);" (assignment_expression "iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300)" identifier = (pointer_expression "*(int *)(*(int *)(iVar2 + 0xd1c) + 300)" * (cast_expression "(int *)(*(int *)(iVar2 + 0xd1c) + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar2 + 0xd1c) + 300)" ( (binary_expression "*(int *)(iVar2 + 0xd1c) + 300" (pointer_expression "*(int *)(iVar2 + 0xd1c)" * (cast_expression "(int *)(iVar2 + 0xd1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xd1c)" ( (binary_expression "iVar2 + 0xd1c" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar4 <= iVar7) goto LAB_0006aced;" if (parenthesized_expression "(iVar4 <= iVar7)" ( (binary_expression "iVar4 <= iVar7" identifier <= identifier) )) (goto_statement "goto LAB_0006aced;" goto statement_identifier ;)) (if_statement "if (iVar4 < iVar7 + param_5 * local_60 * 2) {\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }" if (parenthesized_expression "(iVar4 < iVar7 + param_5 * local_60 * 2)" ( (binary_expression "iVar4 < iVar7 + param_5 * local_60 * 2" identifier < (binary_expression "iVar7 + param_5 * local_60 * 2" identifier + (binary_expression "param_5 * local_60 * 2" (binary_expression "param_5 * local_60" identifier * identifier) * number_literal))) )) (compound_statement "{\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }" { (expression_statement "iVar4 = iVar4 + param_2 * -2;" (assignment_expression "iVar4 = iVar4 + param_2 * -2" identifier = (binary_expression "iVar4 + param_2 * -2" identifier + (binary_expression "param_2 * -2" identifier * number_literal))) ;) (expression_statement "param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);" (assignment_expression "param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60)" identifier = (cast_expression "(int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60)" ( (binary_expression "CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60" (call_expression "CONCAT44(iVar4 >> 0x1f,iVar4 >> 1)" identifier (argument_list "(iVar4 >> 0x1f,iVar4 >> 1)" ( (binary_expression "iVar4 >> 0x1f" identifier >> number_literal) , (binary_expression "iVar4 >> 1" identifier >> number_literal) ))) / (cast_expression "(longlong)local_60" ( (type_descriptor "longlong" type_identifier) ) identifier)) )))) ;) })) (expression_statement "iVar4 = *(int *)(iVar2 + 0x2258);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x2258)" identifier = (pointer_expression "*(int *)(iVar2 + 0x2258)" * (cast_expression "(int *)(iVar2 + 0x2258)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2258)" ( (binary_expression "iVar2 + 0x2258" identifier + number_literal) ))))) ;) (expression_statement "local_60 = param_5 * local_60 * 2;" (assignment_expression "local_60 = param_5 * local_60 * 2" identifier = (binary_expression "param_5 * local_60 * 2" (binary_expression "param_5 * local_60" identifier * identifier) * number_literal)) ;) (expression_statement "param_2 = iVar7;" (assignment_expression "param_2 = iVar7" identifier = identifier) ;) (if_statement "if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }" { (expression_statement "iVar7 = *(int *)(iVar2 + 0xcdc);" (assignment_expression "iVar7 = *(int *)(iVar2 + 0xcdc)" identifier = (pointer_expression "*(int *)(iVar2 + 0xcdc)" * (cast_expression "(int *)(iVar2 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xcdc)" ( (binary_expression "iVar2 + 0xcdc" identifier + number_literal) ))))) ;) (labeled_statement "LAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);" statement_identifier : (expression_statement "uVar5 = *(uint *)(iVar2 + 0xce0);" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0xce0)" identifier = (pointer_expression "*(uint *)(iVar2 + 0xce0)" * (cast_expression "(uint *)(iVar2 + 0xce0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xce0)" ( (binary_expression "iVar2 + 0xce0" identifier + number_literal) ))))) ;)) (expression_statement "iVar8 = iVar7 * 2;" (assignment_expression "iVar8 = iVar7 * 2" identifier = (binary_expression "iVar7 * 2" identifier * number_literal)) ;) (expression_statement "iVar10 = iVar7 * 2;" (assignment_expression "iVar10 = iVar7 * 2" identifier = (binary_expression "iVar7 * 2" identifier * number_literal)) ;) (if_statement "if (iVar4 == 1) goto LAB_0006aec9;" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == number_literal) )) (goto_statement "goto LAB_0006aec9;" goto statement_identifier ;)) (labeled_statement "LAB_0006ad44:\n      iVar8 = iVar8 + -1;" statement_identifier : (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;)) (if_statement "if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }" if (parenthesized_expression "((param_6 & 0x10000000) == 0)" ( (binary_expression "(param_6 & 0x10000000) == 0" (parenthesized_expression "(param_6 & 0x10000000)" ( (binary_expression "param_6 & 0x10000000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        iVar8 = 0;\n      }" { (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) })) (expression_statement "local_50 = 1;" (assignment_expression "local_50 = 1" identifier = number_literal) ;) (expression_statement "iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;" (assignment_expression "iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8" identifier = (binary_expression "iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8" (binary_expression "iVar7 * param_2 + *(int *)(iVar2 + 0x2254)" (binary_expression "iVar7 * param_2" identifier * identifier) + (pointer_expression "*(int *)(iVar2 + 0x2254)" * (cast_expression "(int *)(iVar2 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2254)" ( (binary_expression "iVar2 + 0x2254" identifier + number_literal) ))))) + identifier)) ;) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;" (assignment_expression "iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5" identifier = (binary_expression "*(int *)(iVar2 + 0x2254) + param_3 * uVar5" (pointer_expression "*(int *)(iVar2 + 0x2254)" * (cast_expression "(int *)(iVar2 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2254)" ( (binary_expression "iVar2 + 0x2254" identifier + number_literal) )))) + (binary_expression "param_3 * uVar5" identifier * identifier))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (goto_statement "goto joined_r0x0006ad80;" goto statement_identifier ;) })) (labeled_statement "LAB_0006ac2b:\n    if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }" statement_identifier : (if_statement "if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }" if (parenthesized_expression "(bVar11)" ( identifier )) (compound_statement "{\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }" { (if_statement "if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }" if (parenthesized_expression "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }" { (expression_statement "dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);" (assignment_expression "dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440)" identifier = (cast_expression "(double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440)" ( (binary_expression "(float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440" (cast_expression "(float)*(ushort *)(*param_1 + 0xcb4)" ( (type_descriptor "float" primitive_type) ) (pointer_expression "*(ushort *)(*param_1 + 0xcb4)" * (cast_expression "(ushort *)(*param_1 + 0xcb4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xcb4)" ( (binary_expression "*param_1 + 0xcb4" (pointer_expression "*param_1" * identifier) + number_literal) ))))) / identifier) )))) ;) (expression_statement "cairo_set_source_rgb();" (call_expression "cairo_set_source_rgb()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar3 = *(int *)(iVar2 + 0xcdc);" (assignment_expression "iVar3 = *(int *)(iVar2 + 0xcdc)" identifier = (pointer_expression "*(int *)(iVar2 + 0xcdc)" * (cast_expression "(int *)(iVar2 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xcdc)" ( (binary_expression "iVar2 + 0xcdc" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(iVar2 + 0xce0);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0xce0)" identifier = (pointer_expression "*(int *)(iVar2 + 0xce0)" * (cast_expression "(int *)(iVar2 + 0xce0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xce0)" ( (binary_expression "iVar2 + 0xce0" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(iVar2 + 0x2254);" (assignment_expression "iVar2 = *(int *)(iVar2 + 0x2254)" identifier = (pointer_expression "*(int *)(iVar2 + 0x2254)" * (cast_expression "(int *)(iVar2 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2254)" ( (binary_expression "iVar2 + 0x2254" identifier + number_literal) ))))) ;) (if_statement "if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }" if (parenthesized_expression "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }" { (expression_statement "cairo_new_path();" (call_expression "cairo_new_path()" identifier (argument_list "()" ( ))) ;) (expression_statement "cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);" (call_expression "cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12)" identifier (argument_list "(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12)" ( (subscript_expression "param_1[3]" identifier [ number_literal ]) , (cast_expression "(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)(iVar3 * param_2 + iVar2) + DAT_00096380)" ( (binary_expression "(float)(iVar3 * param_2 + iVar2) + DAT_00096380" (cast_expression "(float)(iVar3 * param_2 + iVar2)" ( (type_descriptor "float" primitive_type) ) (parenthesized_expression "(iVar3 * param_2 + iVar2)" ( (binary_expression "iVar3 * param_2 + iVar2" (binary_expression "iVar3 * param_2" identifier * identifier) + identifier) ))) + identifier) ))) , (cast_expression "(double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)(param_3 * iVar4 + iVar2) + DAT_00096380)" ( (binary_expression "(float)(param_3 * iVar4 + iVar2) + DAT_00096380" (cast_expression "(float)(param_3 * iVar4 + iVar2)" ( (type_descriptor "float" primitive_type) ) (parenthesized_expression "(param_3 * iVar4 + iVar2)" ( (binary_expression "param_3 * iVar4 + iVar2" (binary_expression "param_3 * iVar4" identifier * identifier) + identifier) ))) + identifier) ))) , (cast_expression "(double)(local_60 * iVar3 + -1)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(local_60 * iVar3 + -1)" ( (binary_expression "local_60 * iVar3 + -1" (binary_expression "local_60 * iVar3" identifier * identifier) + number_literal) ))) , (cast_expression "(double)(iVar4 + -1)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(iVar4 + -1)" ( (binary_expression "iVar4 + -1" identifier + number_literal) ))) , identifier ))) ;) (expression_statement "cairo_close_path();" (call_expression "cairo_close_path()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_0006b155:\n        cairo_stroke();" statement_identifier : (expression_statement "cairo_stroke();" (call_expression "cairo_stroke()" identifier (argument_list "()" ( ))) ;)) })) }))) }))) (labeled_statement "LAB_0006ac80:\n  gtk_widget_queue_draw_area();" statement_identifier : (expression_statement "gtk_widget_queue_draw_area();" (call_expression "gtk_widget_queue_draw_area()" identifier (argument_list "()" ( ))) ;)) (expression_statement "gtk_im_context_set_cursor_location();" (call_expression "gtk_im_context_set_cursor_location()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_0006aced:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) comment (expression_statement "FUN_00077880();" (call_expression "FUN_00077880()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nvoid do_cursor(Context ctx,int x,int y,wchar_t *text,int len,ulong attr,int lattr)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  bool bVar11;\n  double dVar12;\n  int local_60;\n  int local_50;\n  GdkRectangle cursorrect;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n                    /* WARNING: Load size is inaccurate */\n  iVar2 = *ctx;\n  bVar11 = (attr & 0x20000000) != 0;\n  if (bVar11) {\n    attr = attr & 0xdfffffff;\n  }\n  iVar3 = 0;\n  if (((attr & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)) {\n    attr = attr & 0xbfffffff;\n    iVar3 = 1;\n  }\n  dVar12 = (double)CONCAT44(lattr,attr);\n  do_text_internal(ctx,x,y,text,len,attr,lattr);\n  if ((int)attr < 0) {\n    len = 1;\n  }\n  local_60 = ((attr & 0x400000) != 0) + 1;\n  if ((lattr & 3U) == 0) {\n    local_60 = len * local_60;\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    if (iVar4 == 0) goto LAB_0006ac2b;\n    iVar7 = *(int *)(iVar2 + 0xcdc);\n    if ((attr & 0x400000) != 0) goto LAB_0006aeb6;\n    uVar5 = *(uint *)(iVar2 + 0xce0);\n    iVar8 = iVar7;\n    iVar10 = iVar7;\n    if (iVar4 != 1) goto LAB_0006ad44;\nLAB_0006aec9:\n    local_50 = 0;\n    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;\n    if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }\n    iVar8 = iVar7 * x + *(int *)(iVar2 + 0x2254);\n    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * y + iVar6;\n    uVar5 = local_60 * iVar10;\n    iVar7 = *(int *)((int)ctx + 4);\njoined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (*(int *)((int)ctx + 4) != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }\n                    /* WARNING: Load size is inaccurate */\n    dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (!bVar11) goto LAB_0006af90;\nLAB_0006ad92:\n    uVar9 = 0;\n    if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (*(int *)((int)ctx + 4) == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),(double)iVar8,(double)iVar6,\n                          0x3ff0000000000000,0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }\n  }\n  else {\n    iVar7 = x * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + len * local_60 * 2) {\n      iVar4 = iVar4 + x * -2;\n      len = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = len * local_60 * 2;\n    x = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((attr & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * x + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = *(int *)((int)ctx + 4);\n      iVar6 = *(int *)(iVar2 + 0x2254) + y * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (*(int *)((int)ctx + 4) == 0) {\n                    /* WARNING: Load size is inaccurate */\n        dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (*(int *)((int)ctx + 4) == 0) {\n        cairo_new_path();\n        cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),\n                        (double)((float)(iVar3 * x + iVar2) + DAT_00096380),\n                        (double)((float)(y * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }\nLAB_0006ac80:\n  gtk_widget_queue_draw_area();\n  gtk_im_context_set_cursor_location();\nLAB_0006aced:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void do_cursor(Context ctx,int x,int y,wchar_t *text,int len,ulong attr,int lattr)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  bool bVar11;\n  double dVar12;\n  int local_60;\n  int local_50;\n  GdkRectangle cursorrect;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n                    /* WARNING: Load size is inaccurate */\n  iVar2 = *ctx;\n  bVar11 = (attr & 0x20000000) != 0;\n  if (bVar11) {\n    attr = attr & 0xdfffffff;\n  }\n  iVar3 = 0;\n  if (((attr & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)) {\n    attr = attr & 0xbfffffff;\n    iVar3 = 1;\n  }\n  dVar12 = (double)CONCAT44(lattr,attr);\n  do_text_internal(ctx,x,y,text,len,attr,lattr);\n  if ((int)attr < 0) {\n    len = 1;\n  }\n  local_60 = ((attr & 0x400000) != 0) + 1;\n  if ((lattr & 3U) == 0) {\n    local_60 = len * local_60;\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    if (iVar4 == 0) goto LAB_0006ac2b;\n    iVar7 = *(int *)(iVar2 + 0xcdc);\n    if ((attr & 0x400000) != 0) goto LAB_0006aeb6;\n    uVar5 = *(uint *)(iVar2 + 0xce0);\n    iVar8 = iVar7;\n    iVar10 = iVar7;\n    if (iVar4 != 1) goto LAB_0006ad44;\nLAB_0006aec9:\n    local_50 = 0;\n    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;\n    if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }\n    iVar8 = iVar7 * x + *(int *)(iVar2 + 0x2254);\n    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * y + iVar6;\n    uVar5 = local_60 * iVar10;\n    iVar7 = *(int *)((int)ctx + 4);\njoined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (*(int *)((int)ctx + 4) != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }\n                    /* WARNING: Load size is inaccurate */\n    dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (!bVar11) goto LAB_0006af90;\nLAB_0006ad92:\n    uVar9 = 0;\n    if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (*(int *)((int)ctx + 4) == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),(double)iVar8,(double)iVar6,\n                          0x3ff0000000000000,0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }\n  }\n  else {\n    iVar7 = x * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + len * local_60 * 2) {\n      iVar4 = iVar4 + x * -2;\n      len = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = len * local_60 * 2;\n    x = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((attr & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * x + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = *(int *)((int)ctx + 4);\n      iVar6 = *(int *)(iVar2 + 0x2254) + y * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (*(int *)((int)ctx + 4) == 0) {\n                    /* WARNING: Load size is inaccurate */\n        dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (*(int *)((int)ctx + 4) == 0) {\n        cairo_new_path();\n        cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),\n                        (double)((float)(iVar3 * x + iVar2) + DAT_00096380),\n                        (double)((float)(y * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }\nLAB_0006ac80:\n  gtk_widget_queue_draw_area();\n  gtk_im_context_set_cursor_location();\nLAB_0006aced:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "do_cursor(Context ctx,int x,int y,wchar_t *text,int len,ulong attr,int lattr)" identifier (parameter_list "(Context ctx,int x,int y,wchar_t *text,int len,ulong attr,int lattr)" ( (parameter_declaration "Context ctx" type_identifier identifier) , (parameter_declaration "int x" primitive_type identifier) , (parameter_declaration "int y" primitive_type identifier) , (parameter_declaration "wchar_t *text" type_identifier (pointer_declarator "*text" * identifier)) , (parameter_declaration "int len" primitive_type identifier) , (parameter_declaration "ulong attr" type_identifier identifier) , (parameter_declaration "int lattr" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  bool bVar11;\n  double dVar12;\n  int local_60;\n  int local_50;\n  GdkRectangle cursorrect;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n                    /* WARNING: Load size is inaccurate */\n  iVar2 = *ctx;\n  bVar11 = (attr & 0x20000000) != 0;\n  if (bVar11) {\n    attr = attr & 0xdfffffff;\n  }\n  iVar3 = 0;\n  if (((attr & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)) {\n    attr = attr & 0xbfffffff;\n    iVar3 = 1;\n  }\n  dVar12 = (double)CONCAT44(lattr,attr);\n  do_text_internal(ctx,x,y,text,len,attr,lattr);\n  if ((int)attr < 0) {\n    len = 1;\n  }\n  local_60 = ((attr & 0x400000) != 0) + 1;\n  if ((lattr & 3U) == 0) {\n    local_60 = len * local_60;\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    if (iVar4 == 0) goto LAB_0006ac2b;\n    iVar7 = *(int *)(iVar2 + 0xcdc);\n    if ((attr & 0x400000) != 0) goto LAB_0006aeb6;\n    uVar5 = *(uint *)(iVar2 + 0xce0);\n    iVar8 = iVar7;\n    iVar10 = iVar7;\n    if (iVar4 != 1) goto LAB_0006ad44;\nLAB_0006aec9:\n    local_50 = 0;\n    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;\n    if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }\n    iVar8 = iVar7 * x + *(int *)(iVar2 + 0x2254);\n    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * y + iVar6;\n    uVar5 = local_60 * iVar10;\n    iVar7 = *(int *)((int)ctx + 4);\njoined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (*(int *)((int)ctx + 4) != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }\n                    /* WARNING: Load size is inaccurate */\n    dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (!bVar11) goto LAB_0006af90;\nLAB_0006ad92:\n    uVar9 = 0;\n    if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (*(int *)((int)ctx + 4) == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),(double)iVar8,(double)iVar6,\n                          0x3ff0000000000000,0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }\n  }\n  else {\n    iVar7 = x * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + len * local_60 * 2) {\n      iVar4 = iVar4 + x * -2;\n      len = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = len * local_60 * 2;\n    x = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((attr & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * x + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = *(int *)((int)ctx + 4);\n      iVar6 = *(int *)(iVar2 + 0x2254) + y * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (*(int *)((int)ctx + 4) == 0) {\n                    /* WARNING: Load size is inaccurate */\n        dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (*(int *)((int)ctx + 4) == 0) {\n        cairo_new_path();\n        cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),\n                        (double)((float)(iVar3 * x + iVar2) + DAT_00096380),\n                        (double)((float)(y * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }\nLAB_0006ac80:\n  gtk_widget_queue_draw_area();\n  gtk_im_context_set_cursor_location();\nLAB_0006aced:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar11;" primitive_type identifier ;) (declaration "double dVar12;" primitive_type identifier ;) (declaration "int local_60;" primitive_type identifier ;) (declaration "int local_50;" primitive_type identifier ;) (declaration "GdkRectangle cursorrect;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) comment (expression_statement "iVar2 = *ctx;" (assignment_expression "iVar2 = *ctx" identifier = (pointer_expression "*ctx" * identifier)) ;) (expression_statement "bVar11 = (attr & 0x20000000) != 0;" (assignment_expression "bVar11 = (attr & 0x20000000) != 0" identifier = (binary_expression "(attr & 0x20000000) != 0" (parenthesized_expression "(attr & 0x20000000)" ( (binary_expression "attr & 0x20000000" identifier & number_literal) )) != number_literal)) ;) (if_statement "if (bVar11) {\n    attr = attr & 0xdfffffff;\n  }" if (parenthesized_expression "(bVar11)" ( identifier )) (compound_statement "{\n    attr = attr & 0xdfffffff;\n  }" { (expression_statement "attr = attr & 0xdfffffff;" (assignment_expression "attr = attr & 0xdfffffff" identifier = (binary_expression "attr & 0xdfffffff" identifier & number_literal)) ;) })) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (((attr & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)) {\n    attr = attr & 0xbfffffff;\n    iVar3 = 1;\n  }" if (parenthesized_expression "(((attr & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0))" ( (binary_expression "((attr & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)" (parenthesized_expression "((attr & 0x40000000) != 0)" ( (binary_expression "(attr & 0x40000000) != 0" (parenthesized_expression "(attr & 0x40000000)" ( (binary_expression "attr & 0x40000000" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)" ( (comma_expression "iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0" (assignment_expression "iVar3 = *(int *)(iVar2 + 0x2258)" identifier = (pointer_expression "*(int *)(iVar2 + 0x2258)" * (cast_expression "(int *)(iVar2 + 0x2258)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2258)" ( (binary_expression "iVar2 + 0x2258" identifier + number_literal) ))))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    attr = attr & 0xbfffffff;\n    iVar3 = 1;\n  }" { (expression_statement "attr = attr & 0xbfffffff;" (assignment_expression "attr = attr & 0xbfffffff" identifier = (binary_expression "attr & 0xbfffffff" identifier & number_literal)) ;) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) })) (expression_statement "dVar12 = (double)CONCAT44(lattr,attr);" (assignment_expression "dVar12 = (double)CONCAT44(lattr,attr)" identifier = (cast_expression "(double)CONCAT44(lattr,attr)" ( (type_descriptor "double" primitive_type) ) (call_expression "CONCAT44(lattr,attr)" identifier (argument_list "(lattr,attr)" ( identifier , identifier ))))) ;) (expression_statement "do_text_internal(ctx,x,y,text,len,attr,lattr);" (call_expression "do_text_internal(ctx,x,y,text,len,attr,lattr)" identifier (argument_list "(ctx,x,y,text,len,attr,lattr)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (if_statement "if ((int)attr < 0) {\n    len = 1;\n  }" if (parenthesized_expression "((int)attr < 0)" ( (binary_expression "(int)attr < 0" (cast_expression "(int)attr" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    len = 1;\n  }" { (expression_statement "len = 1;" (assignment_expression "len = 1" identifier = number_literal) ;) })) (expression_statement "local_60 = ((attr & 0x400000) != 0) + 1;" (assignment_expression "local_60 = ((attr & 0x400000) != 0) + 1" identifier = (binary_expression "((attr & 0x400000) != 0) + 1" (parenthesized_expression "((attr & 0x400000) != 0)" ( (binary_expression "(attr & 0x400000) != 0" (parenthesized_expression "(attr & 0x400000)" ( (binary_expression "attr & 0x400000" identifier & number_literal) )) != number_literal) )) + number_literal)) ;) (if_statement "if ((lattr & 3U) == 0) {\n    local_60 = len * local_60;\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    if (iVar4 == 0) goto LAB_0006ac2b;\n    iVar7 = *(int *)(iVar2 + 0xcdc);\n    if ((attr & 0x400000) != 0) goto LAB_0006aeb6;\n    uVar5 = *(uint *)(iVar2 + 0xce0);\n    iVar8 = iVar7;\n    iVar10 = iVar7;\n    if (iVar4 != 1) goto LAB_0006ad44;\nLAB_0006aec9:\n    local_50 = 0;\n    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;\n    if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }\n    iVar8 = iVar7 * x + *(int *)(iVar2 + 0x2254);\n    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * y + iVar6;\n    uVar5 = local_60 * iVar10;\n    iVar7 = *(int *)((int)ctx + 4);\njoined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (*(int *)((int)ctx + 4) != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }\n                    /* WARNING: Load size is inaccurate */\n    dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (!bVar11) goto LAB_0006af90;\nLAB_0006ad92:\n    uVar9 = 0;\n    if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (*(int *)((int)ctx + 4) == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),(double)iVar8,(double)iVar6,\n                          0x3ff0000000000000,0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }\n  }\n  else {\n    iVar7 = x * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + len * local_60 * 2) {\n      iVar4 = iVar4 + x * -2;\n      len = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = len * local_60 * 2;\n    x = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((attr & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * x + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = *(int *)((int)ctx + 4);\n      iVar6 = *(int *)(iVar2 + 0x2254) + y * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (*(int *)((int)ctx + 4) == 0) {\n                    /* WARNING: Load size is inaccurate */\n        dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (*(int *)((int)ctx + 4) == 0) {\n        cairo_new_path();\n        cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),\n                        (double)((float)(iVar3 * x + iVar2) + DAT_00096380),\n                        (double)((float)(y * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }" if (parenthesized_expression "((lattr & 3U) == 0)" ( (binary_expression "(lattr & 3U) == 0" (parenthesized_expression "(lattr & 3U)" ( (binary_expression "lattr & 3U" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    local_60 = len * local_60;\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    if (iVar4 == 0) goto LAB_0006ac2b;\n    iVar7 = *(int *)(iVar2 + 0xcdc);\n    if ((attr & 0x400000) != 0) goto LAB_0006aeb6;\n    uVar5 = *(uint *)(iVar2 + 0xce0);\n    iVar8 = iVar7;\n    iVar10 = iVar7;\n    if (iVar4 != 1) goto LAB_0006ad44;\nLAB_0006aec9:\n    local_50 = 0;\n    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;\n    if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }\n    iVar8 = iVar7 * x + *(int *)(iVar2 + 0x2254);\n    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * y + iVar6;\n    uVar5 = local_60 * iVar10;\n    iVar7 = *(int *)((int)ctx + 4);\njoined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (*(int *)((int)ctx + 4) != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }\n                    /* WARNING: Load size is inaccurate */\n    dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (!bVar11) goto LAB_0006af90;\nLAB_0006ad92:\n    uVar9 = 0;\n    if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (*(int *)((int)ctx + 4) == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),(double)iVar8,(double)iVar6,\n                          0x3ff0000000000000,0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }\n  }" { (expression_statement "local_60 = len * local_60;" (assignment_expression "local_60 = len * local_60" identifier = (binary_expression "len * local_60" identifier * identifier)) ;) (expression_statement "iVar4 = *(int *)(iVar2 + 0x2258);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x2258)" identifier = (pointer_expression "*(int *)(iVar2 + 0x2258)" * (cast_expression "(int *)(iVar2 + 0x2258)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2258)" ( (binary_expression "iVar2 + 0x2258" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 == 0) goto LAB_0006ac2b;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0006ac2b;" goto statement_identifier ;)) (expression_statement "iVar7 = *(int *)(iVar2 + 0xcdc);" (assignment_expression "iVar7 = *(int *)(iVar2 + 0xcdc)" identifier = (pointer_expression "*(int *)(iVar2 + 0xcdc)" * (cast_expression "(int *)(iVar2 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xcdc)" ( (binary_expression "iVar2 + 0xcdc" identifier + number_literal) ))))) ;) (if_statement "if ((attr & 0x400000) != 0) goto LAB_0006aeb6;" if (parenthesized_expression "((attr & 0x400000) != 0)" ( (binary_expression "(attr & 0x400000) != 0" (parenthesized_expression "(attr & 0x400000)" ( (binary_expression "attr & 0x400000" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_0006aeb6;" goto statement_identifier ;)) (expression_statement "uVar5 = *(uint *)(iVar2 + 0xce0);" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0xce0)" identifier = (pointer_expression "*(uint *)(iVar2 + 0xce0)" * (cast_expression "(uint *)(iVar2 + 0xce0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xce0)" ( (binary_expression "iVar2 + 0xce0" identifier + number_literal) ))))) ;) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" identifier = identifier) ;) (expression_statement "iVar10 = iVar7;" (assignment_expression "iVar10 = iVar7" identifier = identifier) ;) (if_statement "if (iVar4 != 1) goto LAB_0006ad44;" if (parenthesized_expression "(iVar4 != 1)" ( (binary_expression "iVar4 != 1" identifier != number_literal) )) (goto_statement "goto LAB_0006ad44;" goto statement_identifier ;)) (labeled_statement "LAB_0006aec9:\n    local_50 = 0;" statement_identifier : (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;)) (expression_statement "iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;" (assignment_expression "iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1" identifier = (binary_expression "*(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1" (pointer_expression "*(int *)(*(int *)(iVar2 + 0x3c) + 0x10)" * (cast_expression "(int *)(*(int *)(iVar2 + 0x3c) + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar2 + 0x3c) + 0x10)" ( (binary_expression "*(int *)(iVar2 + 0x3c) + 0x10" (pointer_expression "*(int *)(iVar2 + 0x3c)" * (cast_expression "(int *)(iVar2 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x3c)" ( (binary_expression "iVar2 + 0x3c" identifier + number_literal) )))) + number_literal) )))) + number_literal)) ;) (if_statement "if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }" if (parenthesized_expression "((int)uVar5 <= iVar6)" ( (binary_expression "(int)uVar5 <= iVar6" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) (compound_statement "{\n      iVar6 = uVar5 - 1;\n    }" { (expression_statement "iVar6 = uVar5 - 1;" (assignment_expression "iVar6 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) })) (expression_statement "iVar8 = iVar7 * x + *(int *)(iVar2 + 0x2254);" (assignment_expression "iVar8 = iVar7 * x + *(int *)(iVar2 + 0x2254)" identifier = (binary_expression "iVar7 * x + *(int *)(iVar2 + 0x2254)" (binary_expression "iVar7 * x" identifier * identifier) + (pointer_expression "*(int *)(iVar2 + 0x2254)" * (cast_expression "(int *)(iVar2 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2254)" ( (binary_expression "iVar2 + 0x2254" identifier + number_literal) )))))) ;) (expression_statement "iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * y + iVar6;" (assignment_expression "iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * y + iVar6" identifier = (binary_expression "*(int *)(iVar2 + 0x2254) + uVar5 * y + iVar6" (binary_expression "*(int *)(iVar2 + 0x2254) + uVar5 * y" (pointer_expression "*(int *)(iVar2 + 0x2254)" * (cast_expression "(int *)(iVar2 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2254)" ( (binary_expression "iVar2 + 0x2254" identifier + number_literal) )))) + (binary_expression "uVar5 * y" identifier * identifier)) + identifier)) ;) (expression_statement "uVar5 = local_60 * iVar10;" (assignment_expression "uVar5 = local_60 * iVar10" identifier = (binary_expression "local_60 * iVar10" identifier * identifier)) ;) (expression_statement "iVar7 = *(int *)((int)ctx + 4);" (assignment_expression "iVar7 = *(int *)((int)ctx + 4)" identifier = (pointer_expression "*(int *)((int)ctx + 4)" * (cast_expression "(int *)((int)ctx + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 4)" ( (binary_expression "(int)ctx + 4" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (labeled_statement "joined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (*(int *)((int)ctx + 4) != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }" statement_identifier : (if_statement "if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (*(int *)((int)ctx + 4) != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (*(int *)((int)ctx + 4) != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }" { (if_statement "if (bVar11) goto LAB_0006ad92;" if (parenthesized_expression "(bVar11)" ( identifier )) (goto_statement "goto LAB_0006ad92;" goto statement_identifier ;)) (labeled_statement "LAB_0006af90:\n      if ((iVar3 == 0) || (*(int *)((int)ctx + 4) != 0)) goto LAB_0006ac80;" statement_identifier : (if_statement "if ((iVar3 == 0) || (*(int *)((int)ctx + 4) != 0)) goto LAB_0006ac80;" if (parenthesized_expression "((iVar3 == 0) || (*(int *)((int)ctx + 4) != 0))" ( (binary_expression "(iVar3 == 0) || (*(int *)((int)ctx + 4) != 0)" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(int *)((int)ctx + 4) != 0)" ( (binary_expression "*(int *)((int)ctx + 4) != 0" (pointer_expression "*(int *)((int)ctx + 4)" * (cast_expression "(int *)((int)ctx + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 4)" ( (binary_expression "(int)ctx + 4" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) ))) )) (goto_statement "goto LAB_0006ac80;" goto statement_identifier ;))) (expression_statement "cairo_new_path();" (call_expression "cairo_new_path()" identifier (argument_list "()" ( ))) ;) (expression_statement "cairo_move_to();" (call_expression "cairo_move_to()" identifier (argument_list "()" ( ))) ;) (expression_statement "cairo_line_to();" (call_expression "cairo_line_to()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_0006b155;" goto statement_identifier ;) }))) comment (expression_statement "dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440);" (assignment_expression "dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440)" identifier = (cast_expression "(double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440)" ( (binary_expression "(float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440" (cast_expression "(float)*(ushort *)(*ctx + 0xcb4)" ( (type_descriptor "float" primitive_type) ) (pointer_expression "*(ushort *)(*ctx + 0xcb4)" * (cast_expression "(ushort *)(*ctx + 0xcb4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*ctx + 0xcb4)" ( (binary_expression "*ctx + 0xcb4" (pointer_expression "*ctx" * identifier) + number_literal) ))))) / identifier) )))) ;) (expression_statement "cairo_set_source_rgb();" (call_expression "cairo_set_source_rgb()" identifier (argument_list "()" ( ))) ;) (if_statement "if (!bVar11) goto LAB_0006af90;" if (parenthesized_expression "(!bVar11)" ( (unary_expression "!bVar11" ! identifier) )) (goto_statement "goto LAB_0006af90;" goto statement_identifier ;)) (labeled_statement "LAB_0006ad92:\n    uVar9 = 0;" statement_identifier : (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;)) (if_statement "if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (*(int *)((int)ctx + 4) == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),(double)iVar8,(double)iVar6,\n                          0x3ff0000000000000,0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }" if (parenthesized_expression "(0 < (int)uVar5)" ( (binary_expression "0 < (int)uVar5" number_literal < (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      do {\n        while (((uVar9 & 1) == 0 && (*(int *)((int)ctx + 4) == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),(double)iVar8,(double)iVar6,\n                          0x3ff0000000000000,0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }" { (do_statement "do {\n        while (((uVar9 & 1) == 0 && (*(int *)((int)ctx + 4) == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),(double)iVar8,(double)iVar6,\n                          0x3ff0000000000000,0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);" do (compound_statement "{\n        while (((uVar9 & 1) == 0 && (*(int *)((int)ctx + 4) == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),(double)iVar8,(double)iVar6,\n                          0x3ff0000000000000,0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      }" { (while_statement "while (((uVar9 & 1) == 0 && (*(int *)((int)ctx + 4) == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),(double)iVar8,(double)iVar6,\n                          0x3ff0000000000000,0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }" while (parenthesized_expression "(((uVar9 & 1) == 0 && (*(int *)((int)ctx + 4) == 0)))" ( (parenthesized_expression "((uVar9 & 1) == 0 && (*(int *)((int)ctx + 4) == 0))" ( (binary_expression "(uVar9 & 1) == 0 && (*(int *)((int)ctx + 4) == 0)" (binary_expression "(uVar9 & 1) == 0" (parenthesized_expression "(uVar9 & 1)" ( (binary_expression "uVar9 & 1" identifier & number_literal) )) == number_literal) && (parenthesized_expression "(*(int *)((int)ctx + 4) == 0)" ( (binary_expression "*(int *)((int)ctx + 4) == 0" (pointer_expression "*(int *)((int)ctx + 4)" * (cast_expression "(int *)((int)ctx + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 4)" ( (binary_expression "(int)ctx + 4" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) ))) )) )) (compound_statement "{\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),(double)iVar8,(double)iVar6,\n                          0x3ff0000000000000,0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }" { (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) (expression_statement "cairo_new_path();" (call_expression "cairo_new_path()" identifier (argument_list "()" ( ))) ;) (expression_statement "cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),(double)iVar8,(double)iVar6,\n                          0x3ff0000000000000,0x3ff0000000000000,dVar12);" (call_expression "cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),(double)iVar8,(double)iVar6,\n                          0x3ff0000000000000,0x3ff0000000000000,dVar12)" identifier (argument_list "(*(undefined4 *)((int)ctx + 0xc),(double)iVar8,(double)iVar6,\n                          0x3ff0000000000000,0x3ff0000000000000,dVar12)" ( (pointer_expression "*(undefined4 *)((int)ctx + 0xc)" * (cast_expression "(undefined4 *)((int)ctx + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0xc)" ( (binary_expression "(int)ctx + 0xc" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (cast_expression "(double)iVar8" ( (type_descriptor "double" primitive_type) ) identifier) , (cast_expression "(double)iVar6" ( (type_descriptor "double" primitive_type) ) identifier) , number_literal , number_literal , identifier ))) ;) (expression_statement "cairo_fill();" (call_expression "cairo_fill()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar8 = iVar8 + iVar4;" (assignment_expression "iVar8 = iVar8 + iVar4" identifier = (binary_expression "iVar8 + iVar4" identifier + identifier)) ;) (expression_statement "iVar6 = iVar6 + local_50;" (assignment_expression "iVar6 = iVar6 + local_50" identifier = (binary_expression "iVar6 + local_50" identifier + identifier)) ;) (if_statement "if (uVar5 == uVar9) goto LAB_0006ac80;" if (parenthesized_expression "(uVar5 == uVar9)" ( (binary_expression "uVar5 == uVar9" identifier == identifier) )) (goto_statement "goto LAB_0006ac80;" goto statement_identifier ;)) })) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar8 + iVar4;" (assignment_expression "iVar8 = iVar8 + iVar4" identifier = (binary_expression "iVar8 + iVar4" identifier + identifier)) ;) (expression_statement "iVar6 = iVar6 + local_50;" (assignment_expression "iVar6 = iVar6 + local_50" identifier = (binary_expression "iVar6 + local_50" identifier + identifier)) ;) }) while (parenthesized_expression "(uVar5 != uVar9)" ( (binary_expression "uVar5 != uVar9" identifier != identifier) )) ;) })) }) (else_clause "else {\n    iVar7 = x * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + len * local_60 * 2) {\n      iVar4 = iVar4 + x * -2;\n      len = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = len * local_60 * 2;\n    x = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((attr & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * x + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = *(int *)((int)ctx + 4);\n      iVar6 = *(int *)(iVar2 + 0x2254) + y * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (*(int *)((int)ctx + 4) == 0) {\n                    /* WARNING: Load size is inaccurate */\n        dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (*(int *)((int)ctx + 4) == 0) {\n        cairo_new_path();\n        cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),\n                        (double)((float)(iVar3 * x + iVar2) + DAT_00096380),\n                        (double)((float)(y * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }" else (compound_statement "{\n    iVar7 = x * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + len * local_60 * 2) {\n      iVar4 = iVar4 + x * -2;\n      len = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = len * local_60 * 2;\n    x = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((attr & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * x + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = *(int *)((int)ctx + 4);\n      iVar6 = *(int *)(iVar2 + 0x2254) + y * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (*(int *)((int)ctx + 4) == 0) {\n                    /* WARNING: Load size is inaccurate */\n        dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (*(int *)((int)ctx + 4) == 0) {\n        cairo_new_path();\n        cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),\n                        (double)((float)(iVar3 * x + iVar2) + DAT_00096380),\n                        (double)((float)(y * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }" { (expression_statement "iVar7 = x * 2;" (assignment_expression "iVar7 = x * 2" identifier = (binary_expression "x * 2" identifier * number_literal)) ;) (expression_statement "iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);" (assignment_expression "iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300)" identifier = (pointer_expression "*(int *)(*(int *)(iVar2 + 0xd1c) + 300)" * (cast_expression "(int *)(*(int *)(iVar2 + 0xd1c) + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar2 + 0xd1c) + 300)" ( (binary_expression "*(int *)(iVar2 + 0xd1c) + 300" (pointer_expression "*(int *)(iVar2 + 0xd1c)" * (cast_expression "(int *)(iVar2 + 0xd1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xd1c)" ( (binary_expression "iVar2 + 0xd1c" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar4 <= iVar7) goto LAB_0006aced;" if (parenthesized_expression "(iVar4 <= iVar7)" ( (binary_expression "iVar4 <= iVar7" identifier <= identifier) )) (goto_statement "goto LAB_0006aced;" goto statement_identifier ;)) (if_statement "if (iVar4 < iVar7 + len * local_60 * 2) {\n      iVar4 = iVar4 + x * -2;\n      len = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }" if (parenthesized_expression "(iVar4 < iVar7 + len * local_60 * 2)" ( (binary_expression "iVar4 < iVar7 + len * local_60 * 2" identifier < (binary_expression "iVar7 + len * local_60 * 2" identifier + (binary_expression "len * local_60 * 2" (binary_expression "len * local_60" identifier * identifier) * number_literal))) )) (compound_statement "{\n      iVar4 = iVar4 + x * -2;\n      len = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }" { (expression_statement "iVar4 = iVar4 + x * -2;" (assignment_expression "iVar4 = iVar4 + x * -2" identifier = (binary_expression "iVar4 + x * -2" identifier + (binary_expression "x * -2" identifier * number_literal))) ;) (expression_statement "len = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);" (assignment_expression "len = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60)" identifier = (cast_expression "(int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60)" ( (binary_expression "CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60" (call_expression "CONCAT44(iVar4 >> 0x1f,iVar4 >> 1)" identifier (argument_list "(iVar4 >> 0x1f,iVar4 >> 1)" ( (binary_expression "iVar4 >> 0x1f" identifier >> number_literal) , (binary_expression "iVar4 >> 1" identifier >> number_literal) ))) / (cast_expression "(longlong)local_60" ( (type_descriptor "longlong" type_identifier) ) identifier)) )))) ;) })) (expression_statement "iVar4 = *(int *)(iVar2 + 0x2258);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x2258)" identifier = (pointer_expression "*(int *)(iVar2 + 0x2258)" * (cast_expression "(int *)(iVar2 + 0x2258)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2258)" ( (binary_expression "iVar2 + 0x2258" identifier + number_literal) ))))) ;) (expression_statement "local_60 = len * local_60 * 2;" (assignment_expression "local_60 = len * local_60 * 2" identifier = (binary_expression "len * local_60 * 2" (binary_expression "len * local_60" identifier * identifier) * number_literal)) ;) (expression_statement "x = iVar7;" (assignment_expression "x = iVar7" identifier = identifier) ;) (if_statement "if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((attr & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * x + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = *(int *)((int)ctx + 4);\n      iVar6 = *(int *)(iVar2 + 0x2254) + y * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((attr & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * x + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = *(int *)((int)ctx + 4);\n      iVar6 = *(int *)(iVar2 + 0x2254) + y * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }" { (expression_statement "iVar7 = *(int *)(iVar2 + 0xcdc);" (assignment_expression "iVar7 = *(int *)(iVar2 + 0xcdc)" identifier = (pointer_expression "*(int *)(iVar2 + 0xcdc)" * (cast_expression "(int *)(iVar2 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xcdc)" ( (binary_expression "iVar2 + 0xcdc" identifier + number_literal) ))))) ;) (labeled_statement "LAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);" statement_identifier : (expression_statement "uVar5 = *(uint *)(iVar2 + 0xce0);" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0xce0)" identifier = (pointer_expression "*(uint *)(iVar2 + 0xce0)" * (cast_expression "(uint *)(iVar2 + 0xce0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xce0)" ( (binary_expression "iVar2 + 0xce0" identifier + number_literal) ))))) ;)) (expression_statement "iVar8 = iVar7 * 2;" (assignment_expression "iVar8 = iVar7 * 2" identifier = (binary_expression "iVar7 * 2" identifier * number_literal)) ;) (expression_statement "iVar10 = iVar7 * 2;" (assignment_expression "iVar10 = iVar7 * 2" identifier = (binary_expression "iVar7 * 2" identifier * number_literal)) ;) (if_statement "if (iVar4 == 1) goto LAB_0006aec9;" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == number_literal) )) (goto_statement "goto LAB_0006aec9;" goto statement_identifier ;)) (labeled_statement "LAB_0006ad44:\n      iVar8 = iVar8 + -1;" statement_identifier : (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;)) (if_statement "if ((attr & 0x10000000) == 0) {\n        iVar8 = 0;\n      }" if (parenthesized_expression "((attr & 0x10000000) == 0)" ( (binary_expression "(attr & 0x10000000) == 0" (parenthesized_expression "(attr & 0x10000000)" ( (binary_expression "attr & 0x10000000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        iVar8 = 0;\n      }" { (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) })) (expression_statement "local_50 = 1;" (assignment_expression "local_50 = 1" identifier = number_literal) ;) (expression_statement "iVar8 = iVar7 * x + *(int *)(iVar2 + 0x2254) + iVar8;" (assignment_expression "iVar8 = iVar7 * x + *(int *)(iVar2 + 0x2254) + iVar8" identifier = (binary_expression "iVar7 * x + *(int *)(iVar2 + 0x2254) + iVar8" (binary_expression "iVar7 * x + *(int *)(iVar2 + 0x2254)" (binary_expression "iVar7 * x" identifier * identifier) + (pointer_expression "*(int *)(iVar2 + 0x2254)" * (cast_expression "(int *)(iVar2 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2254)" ( (binary_expression "iVar2 + 0x2254" identifier + number_literal) ))))) + identifier)) ;) (expression_statement "iVar7 = *(int *)((int)ctx + 4);" (assignment_expression "iVar7 = *(int *)((int)ctx + 4)" identifier = (pointer_expression "*(int *)((int)ctx + 4)" * (cast_expression "(int *)((int)ctx + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 4)" ( (binary_expression "(int)ctx + 4" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(iVar2 + 0x2254) + y * uVar5;" (assignment_expression "iVar6 = *(int *)(iVar2 + 0x2254) + y * uVar5" identifier = (binary_expression "*(int *)(iVar2 + 0x2254) + y * uVar5" (pointer_expression "*(int *)(iVar2 + 0x2254)" * (cast_expression "(int *)(iVar2 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2254)" ( (binary_expression "iVar2 + 0x2254" identifier + number_literal) )))) + (binary_expression "y * uVar5" identifier * identifier))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (goto_statement "goto joined_r0x0006ad80;" goto statement_identifier ;) })) (labeled_statement "LAB_0006ac2b:\n    if (bVar11) {\n      if (*(int *)((int)ctx + 4) == 0) {\n                    /* WARNING: Load size is inaccurate */\n        dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (*(int *)((int)ctx + 4) == 0) {\n        cairo_new_path();\n        cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),\n                        (double)((float)(iVar3 * x + iVar2) + DAT_00096380),\n                        (double)((float)(y * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }" statement_identifier : (if_statement "if (bVar11) {\n      if (*(int *)((int)ctx + 4) == 0) {\n                    /* WARNING: Load size is inaccurate */\n        dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (*(int *)((int)ctx + 4) == 0) {\n        cairo_new_path();\n        cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),\n                        (double)((float)(iVar3 * x + iVar2) + DAT_00096380),\n                        (double)((float)(y * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }" if (parenthesized_expression "(bVar11)" ( identifier )) (compound_statement "{\n      if (*(int *)((int)ctx + 4) == 0) {\n                    /* WARNING: Load size is inaccurate */\n        dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (*(int *)((int)ctx + 4) == 0) {\n        cairo_new_path();\n        cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),\n                        (double)((float)(iVar3 * x + iVar2) + DAT_00096380),\n                        (double)((float)(y * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }" { (if_statement "if (*(int *)((int)ctx + 4) == 0) {\n                    /* WARNING: Load size is inaccurate */\n        dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }" if (parenthesized_expression "(*(int *)((int)ctx + 4) == 0)" ( (binary_expression "*(int *)((int)ctx + 4) == 0" (pointer_expression "*(int *)((int)ctx + 4)" * (cast_expression "(int *)((int)ctx + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 4)" ( (binary_expression "(int)ctx + 4" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n        dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }" { comment (expression_statement "dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440);" (assignment_expression "dVar12 = (double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440)" identifier = (cast_expression "(double)((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440)" ( (binary_expression "(float)*(ushort *)(*ctx + 0xcb4) / _DAT_00095440" (cast_expression "(float)*(ushort *)(*ctx + 0xcb4)" ( (type_descriptor "float" primitive_type) ) (pointer_expression "*(ushort *)(*ctx + 0xcb4)" * (cast_expression "(ushort *)(*ctx + 0xcb4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*ctx + 0xcb4)" ( (binary_expression "*ctx + 0xcb4" (pointer_expression "*ctx" * identifier) + number_literal) ))))) / identifier) )))) ;) (expression_statement "cairo_set_source_rgb();" (call_expression "cairo_set_source_rgb()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar3 = *(int *)(iVar2 + 0xcdc);" (assignment_expression "iVar3 = *(int *)(iVar2 + 0xcdc)" identifier = (pointer_expression "*(int *)(iVar2 + 0xcdc)" * (cast_expression "(int *)(iVar2 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xcdc)" ( (binary_expression "iVar2 + 0xcdc" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(iVar2 + 0xce0);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0xce0)" identifier = (pointer_expression "*(int *)(iVar2 + 0xce0)" * (cast_expression "(int *)(iVar2 + 0xce0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xce0)" ( (binary_expression "iVar2 + 0xce0" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(iVar2 + 0x2254);" (assignment_expression "iVar2 = *(int *)(iVar2 + 0x2254)" identifier = (pointer_expression "*(int *)(iVar2 + 0x2254)" * (cast_expression "(int *)(iVar2 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2254)" ( (binary_expression "iVar2 + 0x2254" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)((int)ctx + 4) == 0) {\n        cairo_new_path();\n        cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),\n                        (double)((float)(iVar3 * x + iVar2) + DAT_00096380),\n                        (double)((float)(y * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }" if (parenthesized_expression "(*(int *)((int)ctx + 4) == 0)" ( (binary_expression "*(int *)((int)ctx + 4) == 0" (pointer_expression "*(int *)((int)ctx + 4)" * (cast_expression "(int *)((int)ctx + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 4)" ( (binary_expression "(int)ctx + 4" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n        cairo_new_path();\n        cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),\n                        (double)((float)(iVar3 * x + iVar2) + DAT_00096380),\n                        (double)((float)(y * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }" { (expression_statement "cairo_new_path();" (call_expression "cairo_new_path()" identifier (argument_list "()" ( ))) ;) (expression_statement "cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),\n                        (double)((float)(iVar3 * x + iVar2) + DAT_00096380),\n                        (double)((float)(y * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);" (call_expression "cairo_rectangle(*(undefined4 *)((int)ctx + 0xc),\n                        (double)((float)(iVar3 * x + iVar2) + DAT_00096380),\n                        (double)((float)(y * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12)" identifier (argument_list "(*(undefined4 *)((int)ctx + 0xc),\n                        (double)((float)(iVar3 * x + iVar2) + DAT_00096380),\n                        (double)((float)(y * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12)" ( (pointer_expression "*(undefined4 *)((int)ctx + 0xc)" * (cast_expression "(undefined4 *)((int)ctx + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0xc)" ( (binary_expression "(int)ctx + 0xc" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (cast_expression "(double)((float)(iVar3 * x + iVar2) + DAT_00096380)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)(iVar3 * x + iVar2) + DAT_00096380)" ( (binary_expression "(float)(iVar3 * x + iVar2) + DAT_00096380" (cast_expression "(float)(iVar3 * x + iVar2)" ( (type_descriptor "float" primitive_type) ) (parenthesized_expression "(iVar3 * x + iVar2)" ( (binary_expression "iVar3 * x + iVar2" (binary_expression "iVar3 * x" identifier * identifier) + identifier) ))) + identifier) ))) , (cast_expression "(double)((float)(y * iVar4 + iVar2) + DAT_00096380)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)(y * iVar4 + iVar2) + DAT_00096380)" ( (binary_expression "(float)(y * iVar4 + iVar2) + DAT_00096380" (cast_expression "(float)(y * iVar4 + iVar2)" ( (type_descriptor "float" primitive_type) ) (parenthesized_expression "(y * iVar4 + iVar2)" ( (binary_expression "y * iVar4 + iVar2" (binary_expression "y * iVar4" identifier * identifier) + identifier) ))) + identifier) ))) , (cast_expression "(double)(local_60 * iVar3 + -1)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(local_60 * iVar3 + -1)" ( (binary_expression "local_60 * iVar3 + -1" (binary_expression "local_60 * iVar3" identifier * identifier) + number_literal) ))) , (cast_expression "(double)(iVar4 + -1)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(iVar4 + -1)" ( (binary_expression "iVar4 + -1" identifier + number_literal) ))) , identifier ))) ;) (expression_statement "cairo_close_path();" (call_expression "cairo_close_path()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_0006b155:\n        cairo_stroke();" statement_identifier : (expression_statement "cairo_stroke();" (call_expression "cairo_stroke()" identifier (argument_list "()" ( ))) ;)) })) }))) }))) (labeled_statement "LAB_0006ac80:\n  gtk_widget_queue_draw_area();" statement_identifier : (expression_statement "gtk_widget_queue_draw_area();" (call_expression "gtk_widget_queue_draw_area()" identifier (argument_list "()" ( ))) ;)) (expression_statement "gtk_im_context_set_cursor_location();" (call_expression "gtk_im_context_set_cursor_location()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_0006aced:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_0006ab10(int *param_1,int param_2,int param_3,undefined4 param_4,int param_5,uint param_6,\n                 uint param_7)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  bool bVar11;\n  double dVar12;\n  int local_60;\n  int local_50;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = *param_1;\n  bVar11 = (param_6 & 0x20000000) != 0;\n  if (bVar11) {\n    param_6 = param_6 & 0xdfffffff;\n  }\n  iVar3 = 0;\n  if (((param_6 & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)) {\n    param_6 = param_6 & 0xbfffffff;\n    iVar3 = 1;\n  }\n  dVar12 = (double)CONCAT44(param_7,param_6);\n  FUN_0006a1a0();\n  if ((int)param_6 < 0) {\n    param_5 = 1;\n  }\n  local_60 = ((param_6 & 0x400000) != 0) + 1;\n  if ((param_7 & 3) == 0) {\n    local_60 = param_5 * local_60;\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    if (iVar4 == 0) goto LAB_0006ac2b;\n    iVar7 = *(int *)(iVar2 + 0xcdc);\n    if ((param_6 & 0x400000) != 0) goto LAB_0006aeb6;\n    uVar5 = *(uint *)(iVar2 + 0xce0);\n    iVar8 = iVar7;\n    iVar10 = iVar7;\n    if (iVar4 != 1) goto LAB_0006ad44;\nLAB_0006aec9:\n    local_50 = 0;\n    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;\n    if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }\n    iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254);\n    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6;\n    uVar5 = local_60 * iVar10;\n    iVar7 = param_1[1];\njoined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }\n    dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (!bVar11) goto LAB_0006af90;\nLAB_0006ad92:\n    uVar9 = 0;\n    if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }\n  }\n  else {\n    iVar7 = param_2 * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + param_5 * local_60 * 2) {\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = param_5 * local_60 * 2;\n    param_2 = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }\nLAB_0006ac80:\n  gtk_widget_queue_draw_area();\n  gtk_im_context_set_cursor_location();\nLAB_0006aced:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00077880();\n}\n\n" (function_definition "void FUN_0006ab10(int *param_1,int param_2,int param_3,undefined4 param_4,int param_5,uint param_6,\n                 uint param_7)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  bool bVar11;\n  double dVar12;\n  int local_60;\n  int local_50;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = *param_1;\n  bVar11 = (param_6 & 0x20000000) != 0;\n  if (bVar11) {\n    param_6 = param_6 & 0xdfffffff;\n  }\n  iVar3 = 0;\n  if (((param_6 & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)) {\n    param_6 = param_6 & 0xbfffffff;\n    iVar3 = 1;\n  }\n  dVar12 = (double)CONCAT44(param_7,param_6);\n  FUN_0006a1a0();\n  if ((int)param_6 < 0) {\n    param_5 = 1;\n  }\n  local_60 = ((param_6 & 0x400000) != 0) + 1;\n  if ((param_7 & 3) == 0) {\n    local_60 = param_5 * local_60;\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    if (iVar4 == 0) goto LAB_0006ac2b;\n    iVar7 = *(int *)(iVar2 + 0xcdc);\n    if ((param_6 & 0x400000) != 0) goto LAB_0006aeb6;\n    uVar5 = *(uint *)(iVar2 + 0xce0);\n    iVar8 = iVar7;\n    iVar10 = iVar7;\n    if (iVar4 != 1) goto LAB_0006ad44;\nLAB_0006aec9:\n    local_50 = 0;\n    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;\n    if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }\n    iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254);\n    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6;\n    uVar5 = local_60 * iVar10;\n    iVar7 = param_1[1];\njoined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }\n    dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (!bVar11) goto LAB_0006af90;\nLAB_0006ad92:\n    uVar9 = 0;\n    if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }\n  }\n  else {\n    iVar7 = param_2 * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + param_5 * local_60 * 2) {\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = param_5 * local_60 * 2;\n    param_2 = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }\nLAB_0006ac80:\n  gtk_widget_queue_draw_area();\n  gtk_im_context_set_cursor_location();\nLAB_0006aced:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00077880();\n}" primitive_type (function_declarator "FUN_0006ab10(int *param_1,int param_2,int param_3,undefined4 param_4,int param_5,uint param_6,\n                 uint param_7)" identifier (parameter_list "(int *param_1,int param_2,int param_3,undefined4 param_4,int param_5,uint param_6,\n                 uint param_7)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "uint param_6" type_identifier identifier) , (parameter_declaration "uint param_7" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  bool bVar11;\n  double dVar12;\n  int local_60;\n  int local_50;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = *param_1;\n  bVar11 = (param_6 & 0x20000000) != 0;\n  if (bVar11) {\n    param_6 = param_6 & 0xdfffffff;\n  }\n  iVar3 = 0;\n  if (((param_6 & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)) {\n    param_6 = param_6 & 0xbfffffff;\n    iVar3 = 1;\n  }\n  dVar12 = (double)CONCAT44(param_7,param_6);\n  FUN_0006a1a0();\n  if ((int)param_6 < 0) {\n    param_5 = 1;\n  }\n  local_60 = ((param_6 & 0x400000) != 0) + 1;\n  if ((param_7 & 3) == 0) {\n    local_60 = param_5 * local_60;\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    if (iVar4 == 0) goto LAB_0006ac2b;\n    iVar7 = *(int *)(iVar2 + 0xcdc);\n    if ((param_6 & 0x400000) != 0) goto LAB_0006aeb6;\n    uVar5 = *(uint *)(iVar2 + 0xce0);\n    iVar8 = iVar7;\n    iVar10 = iVar7;\n    if (iVar4 != 1) goto LAB_0006ad44;\nLAB_0006aec9:\n    local_50 = 0;\n    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;\n    if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }\n    iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254);\n    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6;\n    uVar5 = local_60 * iVar10;\n    iVar7 = param_1[1];\njoined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }\n    dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (!bVar11) goto LAB_0006af90;\nLAB_0006ad92:\n    uVar9 = 0;\n    if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }\n  }\n  else {\n    iVar7 = param_2 * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + param_5 * local_60 * 2) {\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = param_5 * local_60 * 2;\n    param_2 = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }\nLAB_0006ac80:\n  gtk_widget_queue_draw_area();\n  gtk_im_context_set_cursor_location();\nLAB_0006aced:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00077880();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar11;" primitive_type identifier ;) (declaration "double dVar12;" primitive_type identifier ;) (declaration "int local_60;" primitive_type identifier ;) (declaration "int local_50;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "bVar11 = (param_6 & 0x20000000) != 0;" (assignment_expression "bVar11 = (param_6 & 0x20000000) != 0" identifier = (binary_expression "(param_6 & 0x20000000) != 0" (parenthesized_expression "(param_6 & 0x20000000)" ( (binary_expression "param_6 & 0x20000000" identifier & number_literal) )) != number_literal)) ;) (if_statement "if (bVar11) {\n    param_6 = param_6 & 0xdfffffff;\n  }" if (parenthesized_expression "(bVar11)" ( identifier )) (compound_statement "{\n    param_6 = param_6 & 0xdfffffff;\n  }" { (expression_statement "param_6 = param_6 & 0xdfffffff;" (assignment_expression "param_6 = param_6 & 0xdfffffff" identifier = (binary_expression "param_6 & 0xdfffffff" identifier & number_literal)) ;) })) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (((param_6 & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)) {\n    param_6 = param_6 & 0xbfffffff;\n    iVar3 = 1;\n  }" if (parenthesized_expression "(((param_6 & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0))" ( (binary_expression "((param_6 & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)" (parenthesized_expression "((param_6 & 0x40000000) != 0)" ( (binary_expression "(param_6 & 0x40000000) != 0" (parenthesized_expression "(param_6 & 0x40000000)" ( (binary_expression "param_6 & 0x40000000" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)" ( (comma_expression "iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0" (assignment_expression "iVar3 = *(int *)(iVar2 + 0x2258)" identifier = (pointer_expression "*(int *)(iVar2 + 0x2258)" * (cast_expression "(int *)(iVar2 + 0x2258)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2258)" ( (binary_expression "iVar2 + 0x2258" identifier + number_literal) ))))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    param_6 = param_6 & 0xbfffffff;\n    iVar3 = 1;\n  }" { (expression_statement "param_6 = param_6 & 0xbfffffff;" (assignment_expression "param_6 = param_6 & 0xbfffffff" identifier = (binary_expression "param_6 & 0xbfffffff" identifier & number_literal)) ;) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) })) (expression_statement "dVar12 = (double)CONCAT44(param_7,param_6);" (assignment_expression "dVar12 = (double)CONCAT44(param_7,param_6)" identifier = (cast_expression "(double)CONCAT44(param_7,param_6)" ( (type_descriptor "double" primitive_type) ) (call_expression "CONCAT44(param_7,param_6)" identifier (argument_list "(param_7,param_6)" ( identifier , identifier ))))) ;) (expression_statement "FUN_0006a1a0();" (call_expression "FUN_0006a1a0()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((int)param_6 < 0) {\n    param_5 = 1;\n  }" if (parenthesized_expression "((int)param_6 < 0)" ( (binary_expression "(int)param_6 < 0" (cast_expression "(int)param_6" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    param_5 = 1;\n  }" { (expression_statement "param_5 = 1;" (assignment_expression "param_5 = 1" identifier = number_literal) ;) })) (expression_statement "local_60 = ((param_6 & 0x400000) != 0) + 1;" (assignment_expression "local_60 = ((param_6 & 0x400000) != 0) + 1" identifier = (binary_expression "((param_6 & 0x400000) != 0) + 1" (parenthesized_expression "((param_6 & 0x400000) != 0)" ( (binary_expression "(param_6 & 0x400000) != 0" (parenthesized_expression "(param_6 & 0x400000)" ( (binary_expression "param_6 & 0x400000" identifier & number_literal) )) != number_literal) )) + number_literal)) ;) (if_statement "if ((param_7 & 3) == 0) {\n    local_60 = param_5 * local_60;\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    if (iVar4 == 0) goto LAB_0006ac2b;\n    iVar7 = *(int *)(iVar2 + 0xcdc);\n    if ((param_6 & 0x400000) != 0) goto LAB_0006aeb6;\n    uVar5 = *(uint *)(iVar2 + 0xce0);\n    iVar8 = iVar7;\n    iVar10 = iVar7;\n    if (iVar4 != 1) goto LAB_0006ad44;\nLAB_0006aec9:\n    local_50 = 0;\n    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;\n    if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }\n    iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254);\n    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6;\n    uVar5 = local_60 * iVar10;\n    iVar7 = param_1[1];\njoined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }\n    dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (!bVar11) goto LAB_0006af90;\nLAB_0006ad92:\n    uVar9 = 0;\n    if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }\n  }\n  else {\n    iVar7 = param_2 * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + param_5 * local_60 * 2) {\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = param_5 * local_60 * 2;\n    param_2 = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }" if (parenthesized_expression "((param_7 & 3) == 0)" ( (binary_expression "(param_7 & 3) == 0" (parenthesized_expression "(param_7 & 3)" ( (binary_expression "param_7 & 3" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    local_60 = param_5 * local_60;\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    if (iVar4 == 0) goto LAB_0006ac2b;\n    iVar7 = *(int *)(iVar2 + 0xcdc);\n    if ((param_6 & 0x400000) != 0) goto LAB_0006aeb6;\n    uVar5 = *(uint *)(iVar2 + 0xce0);\n    iVar8 = iVar7;\n    iVar10 = iVar7;\n    if (iVar4 != 1) goto LAB_0006ad44;\nLAB_0006aec9:\n    local_50 = 0;\n    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;\n    if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }\n    iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254);\n    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6;\n    uVar5 = local_60 * iVar10;\n    iVar7 = param_1[1];\njoined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }\n    dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (!bVar11) goto LAB_0006af90;\nLAB_0006ad92:\n    uVar9 = 0;\n    if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }\n  }" { (expression_statement "local_60 = param_5 * local_60;" (assignment_expression "local_60 = param_5 * local_60" identifier = (binary_expression "param_5 * local_60" identifier * identifier)) ;) (expression_statement "iVar4 = *(int *)(iVar2 + 0x2258);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x2258)" identifier = (pointer_expression "*(int *)(iVar2 + 0x2258)" * (cast_expression "(int *)(iVar2 + 0x2258)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2258)" ( (binary_expression "iVar2 + 0x2258" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 == 0) goto LAB_0006ac2b;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0006ac2b;" goto statement_identifier ;)) (expression_statement "iVar7 = *(int *)(iVar2 + 0xcdc);" (assignment_expression "iVar7 = *(int *)(iVar2 + 0xcdc)" identifier = (pointer_expression "*(int *)(iVar2 + 0xcdc)" * (cast_expression "(int *)(iVar2 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xcdc)" ( (binary_expression "iVar2 + 0xcdc" identifier + number_literal) ))))) ;) (if_statement "if ((param_6 & 0x400000) != 0) goto LAB_0006aeb6;" if (parenthesized_expression "((param_6 & 0x400000) != 0)" ( (binary_expression "(param_6 & 0x400000) != 0" (parenthesized_expression "(param_6 & 0x400000)" ( (binary_expression "param_6 & 0x400000" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_0006aeb6;" goto statement_identifier ;)) (expression_statement "uVar5 = *(uint *)(iVar2 + 0xce0);" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0xce0)" identifier = (pointer_expression "*(uint *)(iVar2 + 0xce0)" * (cast_expression "(uint *)(iVar2 + 0xce0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xce0)" ( (binary_expression "iVar2 + 0xce0" identifier + number_literal) ))))) ;) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" identifier = identifier) ;) (expression_statement "iVar10 = iVar7;" (assignment_expression "iVar10 = iVar7" identifier = identifier) ;) (if_statement "if (iVar4 != 1) goto LAB_0006ad44;" if (parenthesized_expression "(iVar4 != 1)" ( (binary_expression "iVar4 != 1" identifier != number_literal) )) (goto_statement "goto LAB_0006ad44;" goto statement_identifier ;)) (labeled_statement "LAB_0006aec9:\n    local_50 = 0;" statement_identifier : (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;)) (expression_statement "iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;" (assignment_expression "iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1" identifier = (binary_expression "*(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1" (pointer_expression "*(int *)(*(int *)(iVar2 + 0x3c) + 0x10)" * (cast_expression "(int *)(*(int *)(iVar2 + 0x3c) + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar2 + 0x3c) + 0x10)" ( (binary_expression "*(int *)(iVar2 + 0x3c) + 0x10" (pointer_expression "*(int *)(iVar2 + 0x3c)" * (cast_expression "(int *)(iVar2 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x3c)" ( (binary_expression "iVar2 + 0x3c" identifier + number_literal) )))) + number_literal) )))) + number_literal)) ;) (if_statement "if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }" if (parenthesized_expression "((int)uVar5 <= iVar6)" ( (binary_expression "(int)uVar5 <= iVar6" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) (compound_statement "{\n      iVar6 = uVar5 - 1;\n    }" { (expression_statement "iVar6 = uVar5 - 1;" (assignment_expression "iVar6 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) })) (expression_statement "iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254);" (assignment_expression "iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254)" identifier = (binary_expression "iVar7 * param_2 + *(int *)(iVar2 + 0x2254)" (binary_expression "iVar7 * param_2" identifier * identifier) + (pointer_expression "*(int *)(iVar2 + 0x2254)" * (cast_expression "(int *)(iVar2 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2254)" ( (binary_expression "iVar2 + 0x2254" identifier + number_literal) )))))) ;) (expression_statement "iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6;" (assignment_expression "iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6" identifier = (binary_expression "*(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6" (binary_expression "*(int *)(iVar2 + 0x2254) + uVar5 * param_3" (pointer_expression "*(int *)(iVar2 + 0x2254)" * (cast_expression "(int *)(iVar2 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2254)" ( (binary_expression "iVar2 + 0x2254" identifier + number_literal) )))) + (binary_expression "uVar5 * param_3" identifier * identifier)) + identifier)) ;) (expression_statement "uVar5 = local_60 * iVar10;" (assignment_expression "uVar5 = local_60 * iVar10" identifier = (binary_expression "local_60 * iVar10" identifier * identifier)) ;) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (labeled_statement "joined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }" statement_identifier : (if_statement "if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }" { (if_statement "if (bVar11) goto LAB_0006ad92;" if (parenthesized_expression "(bVar11)" ( identifier )) (goto_statement "goto LAB_0006ad92;" goto statement_identifier ;)) (labeled_statement "LAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;" statement_identifier : (if_statement "if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;" if (parenthesized_expression "((iVar3 == 0) || (param_1[1] != 0))" ( (binary_expression "(iVar3 == 0) || (param_1[1] != 0)" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) ))) )) (goto_statement "goto LAB_0006ac80;" goto statement_identifier ;))) (expression_statement "cairo_new_path();" (call_expression "cairo_new_path()" identifier (argument_list "()" ( ))) ;) (expression_statement "cairo_move_to();" (call_expression "cairo_move_to()" identifier (argument_list "()" ( ))) ;) (expression_statement "cairo_line_to();" (call_expression "cairo_line_to()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_0006b155;" goto statement_identifier ;) }))) (expression_statement "dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);" (assignment_expression "dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440)" identifier = (cast_expression "(double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440)" ( (binary_expression "(float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440" (cast_expression "(float)*(ushort *)(*param_1 + 0xcb4)" ( (type_descriptor "float" primitive_type) ) (pointer_expression "*(ushort *)(*param_1 + 0xcb4)" * (cast_expression "(ushort *)(*param_1 + 0xcb4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xcb4)" ( (binary_expression "*param_1 + 0xcb4" (pointer_expression "*param_1" * identifier) + number_literal) ))))) / identifier) )))) ;) (expression_statement "cairo_set_source_rgb();" (call_expression "cairo_set_source_rgb()" identifier (argument_list "()" ( ))) ;) (if_statement "if (!bVar11) goto LAB_0006af90;" if (parenthesized_expression "(!bVar11)" ( (unary_expression "!bVar11" ! identifier) )) (goto_statement "goto LAB_0006af90;" goto statement_identifier ;)) (labeled_statement "LAB_0006ad92:\n    uVar9 = 0;" statement_identifier : (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;)) (if_statement "if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }" if (parenthesized_expression "(0 < (int)uVar5)" ( (binary_expression "0 < (int)uVar5" number_literal < (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }" { (do_statement "do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);" do (compound_statement "{\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      }" { (while_statement "while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }" while (parenthesized_expression "(((uVar9 & 1) == 0 && (param_1[1] == 0)))" ( (parenthesized_expression "((uVar9 & 1) == 0 && (param_1[1] == 0))" ( (binary_expression "(uVar9 & 1) == 0 && (param_1[1] == 0)" (binary_expression "(uVar9 & 1) == 0" (parenthesized_expression "(uVar9 & 1)" ( (binary_expression "uVar9 & 1" identifier & number_literal) )) == number_literal) && (parenthesized_expression "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) ))) )) )) (compound_statement "{\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }" { (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) (expression_statement "cairo_new_path();" (call_expression "cairo_new_path()" identifier (argument_list "()" ( ))) ;) (expression_statement "cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);" (call_expression "cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12)" identifier (argument_list "(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12)" ( (subscript_expression "param_1[3]" identifier [ number_literal ]) , (cast_expression "(double)iVar8" ( (type_descriptor "double" primitive_type) ) identifier) , (cast_expression "(double)iVar6" ( (type_descriptor "double" primitive_type) ) identifier) , number_literal , number_literal , identifier ))) ;) (expression_statement "cairo_fill();" (call_expression "cairo_fill()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar8 = iVar8 + iVar4;" (assignment_expression "iVar8 = iVar8 + iVar4" identifier = (binary_expression "iVar8 + iVar4" identifier + identifier)) ;) (expression_statement "iVar6 = iVar6 + local_50;" (assignment_expression "iVar6 = iVar6 + local_50" identifier = (binary_expression "iVar6 + local_50" identifier + identifier)) ;) (if_statement "if (uVar5 == uVar9) goto LAB_0006ac80;" if (parenthesized_expression "(uVar5 == uVar9)" ( (binary_expression "uVar5 == uVar9" identifier == identifier) )) (goto_statement "goto LAB_0006ac80;" goto statement_identifier ;)) })) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar8 + iVar4;" (assignment_expression "iVar8 = iVar8 + iVar4" identifier = (binary_expression "iVar8 + iVar4" identifier + identifier)) ;) (expression_statement "iVar6 = iVar6 + local_50;" (assignment_expression "iVar6 = iVar6 + local_50" identifier = (binary_expression "iVar6 + local_50" identifier + identifier)) ;) }) while (parenthesized_expression "(uVar5 != uVar9)" ( (binary_expression "uVar5 != uVar9" identifier != identifier) )) ;) })) }) (else_clause "else {\n    iVar7 = param_2 * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + param_5 * local_60 * 2) {\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = param_5 * local_60 * 2;\n    param_2 = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }" else (compound_statement "{\n    iVar7 = param_2 * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + param_5 * local_60 * 2) {\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = param_5 * local_60 * 2;\n    param_2 = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }" { (expression_statement "iVar7 = param_2 * 2;" (assignment_expression "iVar7 = param_2 * 2" identifier = (binary_expression "param_2 * 2" identifier * number_literal)) ;) (expression_statement "iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);" (assignment_expression "iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300)" identifier = (pointer_expression "*(int *)(*(int *)(iVar2 + 0xd1c) + 300)" * (cast_expression "(int *)(*(int *)(iVar2 + 0xd1c) + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar2 + 0xd1c) + 300)" ( (binary_expression "*(int *)(iVar2 + 0xd1c) + 300" (pointer_expression "*(int *)(iVar2 + 0xd1c)" * (cast_expression "(int *)(iVar2 + 0xd1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xd1c)" ( (binary_expression "iVar2 + 0xd1c" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar4 <= iVar7) goto LAB_0006aced;" if (parenthesized_expression "(iVar4 <= iVar7)" ( (binary_expression "iVar4 <= iVar7" identifier <= identifier) )) (goto_statement "goto LAB_0006aced;" goto statement_identifier ;)) (if_statement "if (iVar4 < iVar7 + param_5 * local_60 * 2) {\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }" if (parenthesized_expression "(iVar4 < iVar7 + param_5 * local_60 * 2)" ( (binary_expression "iVar4 < iVar7 + param_5 * local_60 * 2" identifier < (binary_expression "iVar7 + param_5 * local_60 * 2" identifier + (binary_expression "param_5 * local_60 * 2" (binary_expression "param_5 * local_60" identifier * identifier) * number_literal))) )) (compound_statement "{\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }" { (expression_statement "iVar4 = iVar4 + param_2 * -2;" (assignment_expression "iVar4 = iVar4 + param_2 * -2" identifier = (binary_expression "iVar4 + param_2 * -2" identifier + (binary_expression "param_2 * -2" identifier * number_literal))) ;) (expression_statement "param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);" (assignment_expression "param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60)" identifier = (cast_expression "(int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60)" ( (binary_expression "CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60" (call_expression "CONCAT44(iVar4 >> 0x1f,iVar4 >> 1)" identifier (argument_list "(iVar4 >> 0x1f,iVar4 >> 1)" ( (binary_expression "iVar4 >> 0x1f" identifier >> number_literal) , (binary_expression "iVar4 >> 1" identifier >> number_literal) ))) / (cast_expression "(longlong)local_60" ( (type_descriptor "longlong" type_identifier) ) identifier)) )))) ;) })) (expression_statement "iVar4 = *(int *)(iVar2 + 0x2258);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x2258)" identifier = (pointer_expression "*(int *)(iVar2 + 0x2258)" * (cast_expression "(int *)(iVar2 + 0x2258)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2258)" ( (binary_expression "iVar2 + 0x2258" identifier + number_literal) ))))) ;) (expression_statement "local_60 = param_5 * local_60 * 2;" (assignment_expression "local_60 = param_5 * local_60 * 2" identifier = (binary_expression "param_5 * local_60 * 2" (binary_expression "param_5 * local_60" identifier * identifier) * number_literal)) ;) (expression_statement "param_2 = iVar7;" (assignment_expression "param_2 = iVar7" identifier = identifier) ;) (if_statement "if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }" { (expression_statement "iVar7 = *(int *)(iVar2 + 0xcdc);" (assignment_expression "iVar7 = *(int *)(iVar2 + 0xcdc)" identifier = (pointer_expression "*(int *)(iVar2 + 0xcdc)" * (cast_expression "(int *)(iVar2 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xcdc)" ( (binary_expression "iVar2 + 0xcdc" identifier + number_literal) ))))) ;) (labeled_statement "LAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);" statement_identifier : (expression_statement "uVar5 = *(uint *)(iVar2 + 0xce0);" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0xce0)" identifier = (pointer_expression "*(uint *)(iVar2 + 0xce0)" * (cast_expression "(uint *)(iVar2 + 0xce0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xce0)" ( (binary_expression "iVar2 + 0xce0" identifier + number_literal) ))))) ;)) (expression_statement "iVar8 = iVar7 * 2;" (assignment_expression "iVar8 = iVar7 * 2" identifier = (binary_expression "iVar7 * 2" identifier * number_literal)) ;) (expression_statement "iVar10 = iVar7 * 2;" (assignment_expression "iVar10 = iVar7 * 2" identifier = (binary_expression "iVar7 * 2" identifier * number_literal)) ;) (if_statement "if (iVar4 == 1) goto LAB_0006aec9;" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == number_literal) )) (goto_statement "goto LAB_0006aec9;" goto statement_identifier ;)) (labeled_statement "LAB_0006ad44:\n      iVar8 = iVar8 + -1;" statement_identifier : (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;)) (if_statement "if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }" if (parenthesized_expression "((param_6 & 0x10000000) == 0)" ( (binary_expression "(param_6 & 0x10000000) == 0" (parenthesized_expression "(param_6 & 0x10000000)" ( (binary_expression "param_6 & 0x10000000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        iVar8 = 0;\n      }" { (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) })) (expression_statement "local_50 = 1;" (assignment_expression "local_50 = 1" identifier = number_literal) ;) (expression_statement "iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;" (assignment_expression "iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8" identifier = (binary_expression "iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8" (binary_expression "iVar7 * param_2 + *(int *)(iVar2 + 0x2254)" (binary_expression "iVar7 * param_2" identifier * identifier) + (pointer_expression "*(int *)(iVar2 + 0x2254)" * (cast_expression "(int *)(iVar2 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2254)" ( (binary_expression "iVar2 + 0x2254" identifier + number_literal) ))))) + identifier)) ;) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;" (assignment_expression "iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5" identifier = (binary_expression "*(int *)(iVar2 + 0x2254) + param_3 * uVar5" (pointer_expression "*(int *)(iVar2 + 0x2254)" * (cast_expression "(int *)(iVar2 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2254)" ( (binary_expression "iVar2 + 0x2254" identifier + number_literal) )))) + (binary_expression "param_3 * uVar5" identifier * identifier))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (goto_statement "goto joined_r0x0006ad80;" goto statement_identifier ;) })) (labeled_statement "LAB_0006ac2b:\n    if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }" statement_identifier : (if_statement "if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }" if (parenthesized_expression "(bVar11)" ( identifier )) (compound_statement "{\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }" { (if_statement "if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }" if (parenthesized_expression "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }" { (expression_statement "dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);" (assignment_expression "dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440)" identifier = (cast_expression "(double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440)" ( (binary_expression "(float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440" (cast_expression "(float)*(ushort *)(*param_1 + 0xcb4)" ( (type_descriptor "float" primitive_type) ) (pointer_expression "*(ushort *)(*param_1 + 0xcb4)" * (cast_expression "(ushort *)(*param_1 + 0xcb4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xcb4)" ( (binary_expression "*param_1 + 0xcb4" (pointer_expression "*param_1" * identifier) + number_literal) ))))) / identifier) )))) ;) (expression_statement "cairo_set_source_rgb();" (call_expression "cairo_set_source_rgb()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar3 = *(int *)(iVar2 + 0xcdc);" (assignment_expression "iVar3 = *(int *)(iVar2 + 0xcdc)" identifier = (pointer_expression "*(int *)(iVar2 + 0xcdc)" * (cast_expression "(int *)(iVar2 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xcdc)" ( (binary_expression "iVar2 + 0xcdc" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(iVar2 + 0xce0);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0xce0)" identifier = (pointer_expression "*(int *)(iVar2 + 0xce0)" * (cast_expression "(int *)(iVar2 + 0xce0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xce0)" ( (binary_expression "iVar2 + 0xce0" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(iVar2 + 0x2254);" (assignment_expression "iVar2 = *(int *)(iVar2 + 0x2254)" identifier = (pointer_expression "*(int *)(iVar2 + 0x2254)" * (cast_expression "(int *)(iVar2 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2254)" ( (binary_expression "iVar2 + 0x2254" identifier + number_literal) ))))) ;) (if_statement "if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }" if (parenthesized_expression "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }" { (expression_statement "cairo_new_path();" (call_expression "cairo_new_path()" identifier (argument_list "()" ( ))) ;) (expression_statement "cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);" (call_expression "cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12)" identifier (argument_list "(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12)" ( (subscript_expression "param_1[3]" identifier [ number_literal ]) , (cast_expression "(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)(iVar3 * param_2 + iVar2) + DAT_00096380)" ( (binary_expression "(float)(iVar3 * param_2 + iVar2) + DAT_00096380" (cast_expression "(float)(iVar3 * param_2 + iVar2)" ( (type_descriptor "float" primitive_type) ) (parenthesized_expression "(iVar3 * param_2 + iVar2)" ( (binary_expression "iVar3 * param_2 + iVar2" (binary_expression "iVar3 * param_2" identifier * identifier) + identifier) ))) + identifier) ))) , (cast_expression "(double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "((float)(param_3 * iVar4 + iVar2) + DAT_00096380)" ( (binary_expression "(float)(param_3 * iVar4 + iVar2) + DAT_00096380" (cast_expression "(float)(param_3 * iVar4 + iVar2)" ( (type_descriptor "float" primitive_type) ) (parenthesized_expression "(param_3 * iVar4 + iVar2)" ( (binary_expression "param_3 * iVar4 + iVar2" (binary_expression "param_3 * iVar4" identifier * identifier) + identifier) ))) + identifier) ))) , (cast_expression "(double)(local_60 * iVar3 + -1)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(local_60 * iVar3 + -1)" ( (binary_expression "local_60 * iVar3 + -1" (binary_expression "local_60 * iVar3" identifier * identifier) + number_literal) ))) , (cast_expression "(double)(iVar4 + -1)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(iVar4 + -1)" ( (binary_expression "iVar4 + -1" identifier + number_literal) ))) , identifier ))) ;) (expression_statement "cairo_close_path();" (call_expression "cairo_close_path()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_0006b155:\n        cairo_stroke();" statement_identifier : (expression_statement "cairo_stroke();" (call_expression "cairo_stroke()" identifier (argument_list "()" ( ))) ;)) })) }))) }))) (labeled_statement "LAB_0006ac80:\n  gtk_widget_queue_draw_area();" statement_identifier : (expression_statement "gtk_widget_queue_draw_area();" (call_expression "gtk_widget_queue_draw_area()" identifier (argument_list "()" ( ))) ;)) (expression_statement "gtk_im_context_set_cursor_location();" (call_expression "gtk_im_context_set_cursor_location()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_0006aced:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (expression_statement "FUN_00077880();" (call_expression "FUN_00077880()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * IDENT)) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( IDENT )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (goto_statement goto statement_identifier ;))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (goto_statement goto statement_identifier ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) / IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (cast_expression ( (type_descriptor TYPE) ) IDENT) , (cast_expression ( (type_descriptor TYPE) ) IDENT) , LIT , LIT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + (binary_expression (binary_expression IDENT * IDENT) * LIT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression IDENT (argument_list ( (binary_expression IDENT >> LIT) , (binary_expression IDENT >> LIT) ))) / (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * IDENT) * LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression IDENT * IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * IDENT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) / IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * IDENT) + IDENT) ))) + IDENT) ))) , (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * IDENT) + IDENT) ))) + IDENT) ))) , (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * IDENT) + LIT) ))) , (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) })) }))) }))) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_0006ab10(int *param_1,int param_2,int param_3,undefined4 param_4,int param_5,uint param_6,\n                 uint param_7)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  bool bVar11;\n  double dVar12;\n  int local_60;\n  int local_50;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = *param_1;\n  bVar11 = (param_6 & 0x20000000) != 0;\n  if (bVar11) {\n    param_6 = param_6 & 0xdfffffff;\n  }\n  iVar3 = 0;\n  if (((param_6 & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)) {\n    param_6 = param_6 & 0xbfffffff;\n    iVar3 = 1;\n  }\n  dVar12 = (double)CONCAT44(param_7,param_6);\n  FUN_0006a1a0();\n  if ((int)param_6 < 0) {\n    param_5 = 1;\n  }\n  local_60 = ((param_6 & 0x400000) != 0) + 1;\n  if ((param_7 & 3) == 0) {\n    local_60 = param_5 * local_60;\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    if (iVar4 == 0) goto LAB_0006ac2b;\n    iVar7 = *(int *)(iVar2 + 0xcdc);\n    if ((param_6 & 0x400000) != 0) goto LAB_0006aeb6;\n    uVar5 = *(uint *)(iVar2 + 0xce0);\n    iVar8 = iVar7;\n    iVar10 = iVar7;\n    if (iVar4 != 1) goto LAB_0006ad44;\nLAB_0006aec9:\n    local_50 = 0;\n    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;\n    if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }\n    iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254);\n    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6;\n    uVar5 = local_60 * iVar10;\n    iVar7 = param_1[1];\njoined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }\n    dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (!bVar11) goto LAB_0006af90;\nLAB_0006ad92:\n    uVar9 = 0;\n    if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }\n  }\n  else {\n    iVar7 = param_2 * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + param_5 * local_60 * 2) {\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = param_5 * local_60 * 2;\n    param_2 = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }\nLAB_0006ac80:\n  gtk_widget_queue_draw_area();\n  gtk_im_context_set_cursor_location();\nLAB_0006aced:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00077880();\n}" (primitive_type "void") (function_declarator "FUN_0006ab10(int *param_1,int param_2,int param_3,undefined4 param_4,int param_5,uint param_6,\n                 uint param_7)" (identifier "FUN_0006ab10") (parameter_list "(int *param_1,int param_2,int param_3,undefined4 param_4,int param_5,uint param_6,\n                 uint param_7)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "uint param_6" (type_identifier "uint") (identifier "param_6")) (, ",") (parameter_declaration "uint param_7" (type_identifier "uint") (identifier "param_7")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  bool bVar11;\n  double dVar12;\n  int local_60;\n  int local_50;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = *param_1;\n  bVar11 = (param_6 & 0x20000000) != 0;\n  if (bVar11) {\n    param_6 = param_6 & 0xdfffffff;\n  }\n  iVar3 = 0;\n  if (((param_6 & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)) {\n    param_6 = param_6 & 0xbfffffff;\n    iVar3 = 1;\n  }\n  dVar12 = (double)CONCAT44(param_7,param_6);\n  FUN_0006a1a0();\n  if ((int)param_6 < 0) {\n    param_5 = 1;\n  }\n  local_60 = ((param_6 & 0x400000) != 0) + 1;\n  if ((param_7 & 3) == 0) {\n    local_60 = param_5 * local_60;\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    if (iVar4 == 0) goto LAB_0006ac2b;\n    iVar7 = *(int *)(iVar2 + 0xcdc);\n    if ((param_6 & 0x400000) != 0) goto LAB_0006aeb6;\n    uVar5 = *(uint *)(iVar2 + 0xce0);\n    iVar8 = iVar7;\n    iVar10 = iVar7;\n    if (iVar4 != 1) goto LAB_0006ad44;\nLAB_0006aec9:\n    local_50 = 0;\n    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;\n    if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }\n    iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254);\n    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6;\n    uVar5 = local_60 * iVar10;\n    iVar7 = param_1[1];\njoined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }\n    dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (!bVar11) goto LAB_0006af90;\nLAB_0006ad92:\n    uVar9 = 0;\n    if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }\n  }\n  else {\n    iVar7 = param_2 * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + param_5 * local_60 * 2) {\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = param_5 * local_60 * 2;\n    param_2 = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }\nLAB_0006ac80:\n  gtk_widget_queue_draw_area();\n  gtk_im_context_set_cursor_location();\nLAB_0006aced:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00077880();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "bool bVar11;" (primitive_type "bool") (identifier "bVar11") (; ";")) (declaration "double dVar12;" (primitive_type "double") (identifier "dVar12") (; ";")) (declaration "int local_60;" (primitive_type "int") (identifier "local_60") (; ";")) (declaration "int local_50;" (primitive_type "int") (identifier "local_50") (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" (identifier "iVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "bVar11 = (param_6 & 0x20000000) != 0;" (assignment_expression "bVar11 = (param_6 & 0x20000000) != 0" (identifier "bVar11") (= "=") (binary_expression "(param_6 & 0x20000000) != 0" (parenthesized_expression "(param_6 & 0x20000000)" (( "(") (binary_expression "param_6 & 0x20000000" (identifier "param_6") (& "&") (number_literal "0x20000000")) () ")")) (!= "!=") (number_literal "0"))) (; ";")) (if_statement "if (bVar11) {\n    param_6 = param_6 & 0xdfffffff;\n  }" (if "if") (parenthesized_expression "(bVar11)" (( "(") (identifier "bVar11") () ")")) (compound_statement "{\n    param_6 = param_6 & 0xdfffffff;\n  }" ({ "{") (expression_statement "param_6 = param_6 & 0xdfffffff;" (assignment_expression "param_6 = param_6 & 0xdfffffff" (identifier "param_6") (= "=") (binary_expression "param_6 & 0xdfffffff" (identifier "param_6") (& "&") (number_literal "0xdfffffff"))) (; ";")) (} "}"))) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (((param_6 & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)) {\n    param_6 = param_6 & 0xbfffffff;\n    iVar3 = 1;\n  }" (if "if") (parenthesized_expression "(((param_6 & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0))" (( "(") (binary_expression "((param_6 & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)" (parenthesized_expression "((param_6 & 0x40000000) != 0)" (( "(") (binary_expression "(param_6 & 0x40000000) != 0" (parenthesized_expression "(param_6 & 0x40000000)" (( "(") (binary_expression "param_6 & 0x40000000" (identifier "param_6") (& "&") (number_literal "0x40000000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)" (( "(") (comma_expression "iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0" (assignment_expression "iVar3 = *(int *)(iVar2 + 0x2258)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar2 + 0x2258)" (* "*") (cast_expression "(int *)(iVar2 + 0x2258)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2258)" (( "(") (binary_expression "iVar2 + 0x2258" (identifier "iVar2") (+ "+") (number_literal "0x2258")) () ")"))))) (, ",") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    param_6 = param_6 & 0xbfffffff;\n    iVar3 = 1;\n  }" ({ "{") (expression_statement "param_6 = param_6 & 0xbfffffff;" (assignment_expression "param_6 = param_6 & 0xbfffffff" (identifier "param_6") (= "=") (binary_expression "param_6 & 0xbfffffff" (identifier "param_6") (& "&") (number_literal "0xbfffffff"))) (; ";")) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" (identifier "iVar3") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "dVar12 = (double)CONCAT44(param_7,param_6);" (assignment_expression "dVar12 = (double)CONCAT44(param_7,param_6)" (identifier "dVar12") (= "=") (cast_expression "(double)CONCAT44(param_7,param_6)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (call_expression "CONCAT44(param_7,param_6)" (identifier "CONCAT44") (argument_list "(param_7,param_6)" (( "(") (identifier "param_7") (, ",") (identifier "param_6") () ")"))))) (; ";")) (expression_statement "FUN_0006a1a0();" (call_expression "FUN_0006a1a0()" (identifier "FUN_0006a1a0") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if ((int)param_6 < 0) {\n    param_5 = 1;\n  }" (if "if") (parenthesized_expression "((int)param_6 < 0)" (( "(") (binary_expression "(int)param_6 < 0" (cast_expression "(int)param_6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_6")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    param_5 = 1;\n  }" ({ "{") (expression_statement "param_5 = 1;" (assignment_expression "param_5 = 1" (identifier "param_5") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "local_60 = ((param_6 & 0x400000) != 0) + 1;" (assignment_expression "local_60 = ((param_6 & 0x400000) != 0) + 1" (identifier "local_60") (= "=") (binary_expression "((param_6 & 0x400000) != 0) + 1" (parenthesized_expression "((param_6 & 0x400000) != 0)" (( "(") (binary_expression "(param_6 & 0x400000) != 0" (parenthesized_expression "(param_6 & 0x400000)" (( "(") (binary_expression "param_6 & 0x400000" (identifier "param_6") (& "&") (number_literal "0x400000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((param_7 & 3) == 0) {\n    local_60 = param_5 * local_60;\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    if (iVar4 == 0) goto LAB_0006ac2b;\n    iVar7 = *(int *)(iVar2 + 0xcdc);\n    if ((param_6 & 0x400000) != 0) goto LAB_0006aeb6;\n    uVar5 = *(uint *)(iVar2 + 0xce0);\n    iVar8 = iVar7;\n    iVar10 = iVar7;\n    if (iVar4 != 1) goto LAB_0006ad44;\nLAB_0006aec9:\n    local_50 = 0;\n    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;\n    if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }\n    iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254);\n    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6;\n    uVar5 = local_60 * iVar10;\n    iVar7 = param_1[1];\njoined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }\n    dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (!bVar11) goto LAB_0006af90;\nLAB_0006ad92:\n    uVar9 = 0;\n    if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }\n  }\n  else {\n    iVar7 = param_2 * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + param_5 * local_60 * 2) {\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = param_5 * local_60 * 2;\n    param_2 = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }" (if "if") (parenthesized_expression "((param_7 & 3) == 0)" (( "(") (binary_expression "(param_7 & 3) == 0" (parenthesized_expression "(param_7 & 3)" (( "(") (binary_expression "param_7 & 3" (identifier "param_7") (& "&") (number_literal "3")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_60 = param_5 * local_60;\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    if (iVar4 == 0) goto LAB_0006ac2b;\n    iVar7 = *(int *)(iVar2 + 0xcdc);\n    if ((param_6 & 0x400000) != 0) goto LAB_0006aeb6;\n    uVar5 = *(uint *)(iVar2 + 0xce0);\n    iVar8 = iVar7;\n    iVar10 = iVar7;\n    if (iVar4 != 1) goto LAB_0006ad44;\nLAB_0006aec9:\n    local_50 = 0;\n    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;\n    if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }\n    iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254);\n    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6;\n    uVar5 = local_60 * iVar10;\n    iVar7 = param_1[1];\njoined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }\n    dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n    cairo_set_source_rgb();\n    if (!bVar11) goto LAB_0006af90;\nLAB_0006ad92:\n    uVar9 = 0;\n    if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }\n  }" ({ "{") (expression_statement "local_60 = param_5 * local_60;" (assignment_expression "local_60 = param_5 * local_60" (identifier "local_60") (= "=") (binary_expression "param_5 * local_60" (identifier "param_5") (* "*") (identifier "local_60"))) (; ";")) (expression_statement "iVar4 = *(int *)(iVar2 + 0x2258);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x2258)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar2 + 0x2258)" (* "*") (cast_expression "(int *)(iVar2 + 0x2258)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2258)" (( "(") (binary_expression "iVar2 + 0x2258" (identifier "iVar2") (+ "+") (number_literal "0x2258")) () ")"))))) (; ";")) (if_statement "if (iVar4 == 0) goto LAB_0006ac2b;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0006ac2b;" (goto "goto") (statement_identifier "LAB_0006ac2b") (; ";"))) (expression_statement "iVar7 = *(int *)(iVar2 + 0xcdc);" (assignment_expression "iVar7 = *(int *)(iVar2 + 0xcdc)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(iVar2 + 0xcdc)" (* "*") (cast_expression "(int *)(iVar2 + 0xcdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xcdc)" (( "(") (binary_expression "iVar2 + 0xcdc" (identifier "iVar2") (+ "+") (number_literal "0xcdc")) () ")"))))) (; ";")) (if_statement "if ((param_6 & 0x400000) != 0) goto LAB_0006aeb6;" (if "if") (parenthesized_expression "((param_6 & 0x400000) != 0)" (( "(") (binary_expression "(param_6 & 0x400000) != 0" (parenthesized_expression "(param_6 & 0x400000)" (( "(") (binary_expression "param_6 & 0x400000" (identifier "param_6") (& "&") (number_literal "0x400000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0006aeb6;" (goto "goto") (statement_identifier "LAB_0006aeb6") (; ";"))) (expression_statement "uVar5 = *(uint *)(iVar2 + 0xce0);" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0xce0)" (identifier "uVar5") (= "=") (pointer_expression "*(uint *)(iVar2 + 0xce0)" (* "*") (cast_expression "(uint *)(iVar2 + 0xce0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xce0)" (( "(") (binary_expression "iVar2 + 0xce0" (identifier "iVar2") (+ "+") (number_literal "0xce0")) () ")"))))) (; ";")) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" (identifier "iVar8") (= "=") (identifier "iVar7")) (; ";")) (expression_statement "iVar10 = iVar7;" (assignment_expression "iVar10 = iVar7" (identifier "iVar10") (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (iVar4 != 1) goto LAB_0006ad44;" (if "if") (parenthesized_expression "(iVar4 != 1)" (( "(") (binary_expression "iVar4 != 1" (identifier "iVar4") (!= "!=") (number_literal "1")) () ")")) (goto_statement "goto LAB_0006ad44;" (goto "goto") (statement_identifier "LAB_0006ad44") (; ";"))) (labeled_statement "LAB_0006aec9:\n    local_50 = 0;" (statement_identifier "LAB_0006aec9") (: ":") (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" (identifier "local_50") (= "=") (number_literal "0")) (; ";"))) (expression_statement "iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;" (assignment_expression "iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1" (identifier "iVar6") (= "=") (binary_expression "*(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1" (pointer_expression "*(int *)(*(int *)(iVar2 + 0x3c) + 0x10)" (* "*") (cast_expression "(int *)(*(int *)(iVar2 + 0x3c) + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar2 + 0x3c) + 0x10)" (( "(") (binary_expression "*(int *)(iVar2 + 0x3c) + 0x10" (pointer_expression "*(int *)(iVar2 + 0x3c)" (* "*") (cast_expression "(int *)(iVar2 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x3c)" (( "(") (binary_expression "iVar2 + 0x3c" (identifier "iVar2") (+ "+") (number_literal "0x3c")) () ")")))) (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((int)uVar5 <= iVar6) {\n      iVar6 = uVar5 - 1;\n    }" (if "if") (parenthesized_expression "((int)uVar5 <= iVar6)" (( "(") (binary_expression "(int)uVar5 <= iVar6" (cast_expression "(int)uVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar5")) (<= "<=") (identifier "iVar6")) () ")")) (compound_statement "{\n      iVar6 = uVar5 - 1;\n    }" ({ "{") (expression_statement "iVar6 = uVar5 - 1;" (assignment_expression "iVar6 = uVar5 - 1" (identifier "iVar6") (= "=") (binary_expression "uVar5 - 1" (identifier "uVar5") (- "-") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254);" (assignment_expression "iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254)" (identifier "iVar8") (= "=") (binary_expression "iVar7 * param_2 + *(int *)(iVar2 + 0x2254)" (binary_expression "iVar7 * param_2" (identifier "iVar7") (* "*") (identifier "param_2")) (+ "+") (pointer_expression "*(int *)(iVar2 + 0x2254)" (* "*") (cast_expression "(int *)(iVar2 + 0x2254)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2254)" (( "(") (binary_expression "iVar2 + 0x2254" (identifier "iVar2") (+ "+") (number_literal "0x2254")) () ")")))))) (; ";")) (expression_statement "iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6;" (assignment_expression "iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6" (identifier "iVar6") (= "=") (binary_expression "*(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6" (binary_expression "*(int *)(iVar2 + 0x2254) + uVar5 * param_3" (pointer_expression "*(int *)(iVar2 + 0x2254)" (* "*") (cast_expression "(int *)(iVar2 + 0x2254)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2254)" (( "(") (binary_expression "iVar2 + 0x2254" (identifier "iVar2") (+ "+") (number_literal "0x2254")) () ")")))) (+ "+") (binary_expression "uVar5 * param_3" (identifier "uVar5") (* "*") (identifier "param_3"))) (+ "+") (identifier "iVar6"))) (; ";")) (expression_statement "uVar5 = local_60 * iVar10;" (assignment_expression "uVar5 = local_60 * iVar10" (identifier "uVar5") (= "=") (binary_expression "local_60 * iVar10" (identifier "local_60") (* "*") (identifier "iVar10"))) (; ";")) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" (identifier "iVar7") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (labeled_statement "joined_r0x0006ad80:\n    if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }" (statement_identifier "joined_r0x0006ad80") (: ":") (if_statement "if (iVar7 != 0) {\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (bVar11) goto LAB_0006ad92;\nLAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;\n      cairo_new_path();\n      cairo_move_to();\n      cairo_line_to();\n      goto LAB_0006b155;\n    }" ({ "{") (if_statement "if (bVar11) goto LAB_0006ad92;" (if "if") (parenthesized_expression "(bVar11)" (( "(") (identifier "bVar11") () ")")) (goto_statement "goto LAB_0006ad92;" (goto "goto") (statement_identifier "LAB_0006ad92") (; ";"))) (labeled_statement "LAB_0006af90:\n      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;" (statement_identifier "LAB_0006af90") (: ":") (if_statement "if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;" (if "if") (parenthesized_expression "((iVar3 == 0) || (param_1[1] != 0))" (( "(") (binary_expression "(iVar3 == 0) || (param_1[1] != 0)" (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_1[1] != 0)" (( "(") (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_0006ac80;" (goto "goto") (statement_identifier "LAB_0006ac80") (; ";")))) (expression_statement "cairo_new_path();" (call_expression "cairo_new_path()" (identifier "cairo_new_path") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "cairo_move_to();" (call_expression "cairo_move_to()" (identifier "cairo_move_to") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "cairo_line_to();" (call_expression "cairo_line_to()" (identifier "cairo_line_to") (argument_list "()" (( "(") () ")"))) (; ";")) (goto_statement "goto LAB_0006b155;" (goto "goto") (statement_identifier "LAB_0006b155") (; ";")) (} "}")))) (expression_statement "dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);" (assignment_expression "dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440)" (identifier "dVar12") (= "=") (cast_expression "(double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (parenthesized_expression "((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440)" (( "(") (binary_expression "(float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440" (cast_expression "(float)*(ushort *)(*param_1 + 0xcb4)" (( "(") (type_descriptor "float" (primitive_type "float")) () ")") (pointer_expression "*(ushort *)(*param_1 + 0xcb4)" (* "*") (cast_expression "(ushort *)(*param_1 + 0xcb4)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xcb4)" (( "(") (binary_expression "*param_1 + 0xcb4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xcb4")) () ")"))))) (/ "/") (identifier "_DAT_00095440")) () ")")))) (; ";")) (expression_statement "cairo_set_source_rgb();" (call_expression "cairo_set_source_rgb()" (identifier "cairo_set_source_rgb") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (!bVar11) goto LAB_0006af90;" (if "if") (parenthesized_expression "(!bVar11)" (( "(") (unary_expression "!bVar11" (! "!") (identifier "bVar11")) () ")")) (goto_statement "goto LAB_0006af90;" (goto "goto") (statement_identifier "LAB_0006af90") (; ";"))) (labeled_statement "LAB_0006ad92:\n    uVar9 = 0;" (statement_identifier "LAB_0006ad92") (: ":") (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";"))) (if_statement "if (0 < (int)uVar5) {\n      do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }" (if "if") (parenthesized_expression "(0 < (int)uVar5)" (( "(") (binary_expression "0 < (int)uVar5" (number_literal "0") (< "<") (cast_expression "(int)uVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar5"))) () ")")) (compound_statement "{\n      do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);\n    }" ({ "{") (do_statement "do {\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      } while (uVar5 != uVar9);" (do "do") (compound_statement "{\n        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }\n        uVar9 = uVar9 + 1;\n        iVar8 = iVar8 + iVar4;\n        iVar6 = iVar6 + local_50;\n      }" ({ "{") (while_statement "while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }" (while "while") (parenthesized_expression "(((uVar9 & 1) == 0 && (param_1[1] == 0)))" (( "(") (parenthesized_expression "((uVar9 & 1) == 0 && (param_1[1] == 0))" (( "(") (binary_expression "(uVar9 & 1) == 0 && (param_1[1] == 0)" (binary_expression "(uVar9 & 1) == 0" (parenthesized_expression "(uVar9 & 1)" (( "(") (binary_expression "uVar9 & 1" (identifier "uVar9") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) (&& "&&") (parenthesized_expression "(param_1[1] == 0)" (( "(") (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")"))) () ")")) () ")")) (compound_statement "{\n          uVar9 = uVar9 + 1;\n          cairo_new_path();\n          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);\n          cairo_fill();\n          iVar8 = iVar8 + iVar4;\n          iVar6 = iVar6 + local_50;\n          if (uVar5 == uVar9) goto LAB_0006ac80;\n        }" ({ "{") (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" (identifier "uVar9") (= "=") (binary_expression "uVar9 + 1" (identifier "uVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cairo_new_path();" (call_expression "cairo_new_path()" (identifier "cairo_new_path") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12);" (call_expression "cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12)" (identifier "cairo_rectangle") (argument_list "(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,\n                          0x3ff0000000000000,dVar12)" (( "(") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (, ",") (cast_expression "(double)iVar8" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "iVar8")) (, ",") (cast_expression "(double)iVar6" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "iVar6")) (, ",") (number_literal "0x3ff0000000000000") (, ",") (number_literal "0x3ff0000000000000") (, ",") (identifier "dVar12") () ")"))) (; ";")) (expression_statement "cairo_fill();" (call_expression "cairo_fill()" (identifier "cairo_fill") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar8 = iVar8 + iVar4;" (assignment_expression "iVar8 = iVar8 + iVar4" (identifier "iVar8") (= "=") (binary_expression "iVar8 + iVar4" (identifier "iVar8") (+ "+") (identifier "iVar4"))) (; ";")) (expression_statement "iVar6 = iVar6 + local_50;" (assignment_expression "iVar6 = iVar6 + local_50" (identifier "iVar6") (= "=") (binary_expression "iVar6 + local_50" (identifier "iVar6") (+ "+") (identifier "local_50"))) (; ";")) (if_statement "if (uVar5 == uVar9) goto LAB_0006ac80;" (if "if") (parenthesized_expression "(uVar5 == uVar9)" (( "(") (binary_expression "uVar5 == uVar9" (identifier "uVar5") (== "==") (identifier "uVar9")) () ")")) (goto_statement "goto LAB_0006ac80;" (goto "goto") (statement_identifier "LAB_0006ac80") (; ";"))) (} "}"))) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" (identifier "uVar9") (= "=") (binary_expression "uVar9 + 1" (identifier "uVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar8 = iVar8 + iVar4;" (assignment_expression "iVar8 = iVar8 + iVar4" (identifier "iVar8") (= "=") (binary_expression "iVar8 + iVar4" (identifier "iVar8") (+ "+") (identifier "iVar4"))) (; ";")) (expression_statement "iVar6 = iVar6 + local_50;" (assignment_expression "iVar6 = iVar6 + local_50" (identifier "iVar6") (= "=") (binary_expression "iVar6 + local_50" (identifier "iVar6") (+ "+") (identifier "local_50"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar5 != uVar9)" (( "(") (binary_expression "uVar5 != uVar9" (identifier "uVar5") (!= "!=") (identifier "uVar9")) () ")")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar7 = param_2 * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + param_5 * local_60 * 2) {\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = param_5 * local_60 * 2;\n    param_2 = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }" (else "else") (compound_statement "{\n    iVar7 = param_2 * 2;\n    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);\n    if (iVar4 <= iVar7) goto LAB_0006aced;\n    if (iVar4 < iVar7 + param_5 * local_60 * 2) {\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }\n    iVar4 = *(int *)(iVar2 + 0x2258);\n    local_60 = param_5 * local_60 * 2;\n    param_2 = iVar7;\n    if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }\nLAB_0006ac2b:\n    if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }\n  }" ({ "{") (expression_statement "iVar7 = param_2 * 2;" (assignment_expression "iVar7 = param_2 * 2" (identifier "iVar7") (= "=") (binary_expression "param_2 * 2" (identifier "param_2") (* "*") (number_literal "2"))) (; ";")) (expression_statement "iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);" (assignment_expression "iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(*(int *)(iVar2 + 0xd1c) + 300)" (* "*") (cast_expression "(int *)(*(int *)(iVar2 + 0xd1c) + 300)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar2 + 0xd1c) + 300)" (( "(") (binary_expression "*(int *)(iVar2 + 0xd1c) + 300" (pointer_expression "*(int *)(iVar2 + 0xd1c)" (* "*") (cast_expression "(int *)(iVar2 + 0xd1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xd1c)" (( "(") (binary_expression "iVar2 + 0xd1c" (identifier "iVar2") (+ "+") (number_literal "0xd1c")) () ")")))) (+ "+") (number_literal "300")) () ")"))))) (; ";")) (if_statement "if (iVar4 <= iVar7) goto LAB_0006aced;" (if "if") (parenthesized_expression "(iVar4 <= iVar7)" (( "(") (binary_expression "iVar4 <= iVar7" (identifier "iVar4") (<= "<=") (identifier "iVar7")) () ")")) (goto_statement "goto LAB_0006aced;" (goto "goto") (statement_identifier "LAB_0006aced") (; ";"))) (if_statement "if (iVar4 < iVar7 + param_5 * local_60 * 2) {\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }" (if "if") (parenthesized_expression "(iVar4 < iVar7 + param_5 * local_60 * 2)" (( "(") (binary_expression "iVar4 < iVar7 + param_5 * local_60 * 2" (identifier "iVar4") (< "<") (binary_expression "iVar7 + param_5 * local_60 * 2" (identifier "iVar7") (+ "+") (binary_expression "param_5 * local_60 * 2" (binary_expression "param_5 * local_60" (identifier "param_5") (* "*") (identifier "local_60")) (* "*") (number_literal "2")))) () ")")) (compound_statement "{\n      iVar4 = iVar4 + param_2 * -2;\n      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);\n    }" ({ "{") (expression_statement "iVar4 = iVar4 + param_2 * -2;" (assignment_expression "iVar4 = iVar4 + param_2 * -2" (identifier "iVar4") (= "=") (binary_expression "iVar4 + param_2 * -2" (identifier "iVar4") (+ "+") (binary_expression "param_2 * -2" (identifier "param_2") (* "*") (number_literal "-2")))) (; ";")) (expression_statement "param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);" (assignment_expression "param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60)" (identifier "param_5") (= "=") (cast_expression "(int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60)" (( "(") (binary_expression "CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60" (call_expression "CONCAT44(iVar4 >> 0x1f,iVar4 >> 1)" (identifier "CONCAT44") (argument_list "(iVar4 >> 0x1f,iVar4 >> 1)" (( "(") (binary_expression "iVar4 >> 0x1f" (identifier "iVar4") (>> ">>") (number_literal "0x1f")) (, ",") (binary_expression "iVar4 >> 1" (identifier "iVar4") (>> ">>") (number_literal "1")) () ")"))) (/ "/") (cast_expression "(longlong)local_60" (( "(") (type_descriptor "longlong" (type_identifier "longlong")) () ")") (identifier "local_60"))) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar4 = *(int *)(iVar2 + 0x2258);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x2258)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar2 + 0x2258)" (* "*") (cast_expression "(int *)(iVar2 + 0x2258)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2258)" (( "(") (binary_expression "iVar2 + 0x2258" (identifier "iVar2") (+ "+") (number_literal "0x2258")) () ")"))))) (; ";")) (expression_statement "local_60 = param_5 * local_60 * 2;" (assignment_expression "local_60 = param_5 * local_60 * 2" (identifier "local_60") (= "=") (binary_expression "param_5 * local_60 * 2" (binary_expression "param_5 * local_60" (identifier "param_5") (* "*") (identifier "local_60")) (* "*") (number_literal "2"))) (; ";")) (expression_statement "param_2 = iVar7;" (assignment_expression "param_2 = iVar7" (identifier "param_2") (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (iVar4 != 0) {\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar7 = *(int *)(iVar2 + 0xcdc);\nLAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);\n      iVar8 = iVar7 * 2;\n      iVar10 = iVar7 * 2;\n      if (iVar4 == 1) goto LAB_0006aec9;\nLAB_0006ad44:\n      iVar8 = iVar8 + -1;\n      if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }\n      local_50 = 1;\n      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;\n      iVar7 = param_1[1];\n      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;\n      iVar4 = 0;\n      goto joined_r0x0006ad80;\n    }" ({ "{") (expression_statement "iVar7 = *(int *)(iVar2 + 0xcdc);" (assignment_expression "iVar7 = *(int *)(iVar2 + 0xcdc)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(iVar2 + 0xcdc)" (* "*") (cast_expression "(int *)(iVar2 + 0xcdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xcdc)" (( "(") (binary_expression "iVar2 + 0xcdc" (identifier "iVar2") (+ "+") (number_literal "0xcdc")) () ")"))))) (; ";")) (labeled_statement "LAB_0006aeb6:\n      uVar5 = *(uint *)(iVar2 + 0xce0);" (statement_identifier "LAB_0006aeb6") (: ":") (expression_statement "uVar5 = *(uint *)(iVar2 + 0xce0);" (assignment_expression "uVar5 = *(uint *)(iVar2 + 0xce0)" (identifier "uVar5") (= "=") (pointer_expression "*(uint *)(iVar2 + 0xce0)" (* "*") (cast_expression "(uint *)(iVar2 + 0xce0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xce0)" (( "(") (binary_expression "iVar2 + 0xce0" (identifier "iVar2") (+ "+") (number_literal "0xce0")) () ")"))))) (; ";"))) (expression_statement "iVar8 = iVar7 * 2;" (assignment_expression "iVar8 = iVar7 * 2" (identifier "iVar8") (= "=") (binary_expression "iVar7 * 2" (identifier "iVar7") (* "*") (number_literal "2"))) (; ";")) (expression_statement "iVar10 = iVar7 * 2;" (assignment_expression "iVar10 = iVar7 * 2" (identifier "iVar10") (= "=") (binary_expression "iVar7 * 2" (identifier "iVar7") (* "*") (number_literal "2"))) (; ";")) (if_statement "if (iVar4 == 1) goto LAB_0006aec9;" (if "if") (parenthesized_expression "(iVar4 == 1)" (( "(") (binary_expression "iVar4 == 1" (identifier "iVar4") (== "==") (number_literal "1")) () ")")) (goto_statement "goto LAB_0006aec9;" (goto "goto") (statement_identifier "LAB_0006aec9") (; ";"))) (labeled_statement "LAB_0006ad44:\n      iVar8 = iVar8 + -1;" (statement_identifier "LAB_0006ad44") (: ":") (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + -1" (identifier "iVar8") (+ "+") (number_literal "-1"))) (; ";"))) (if_statement "if ((param_6 & 0x10000000) == 0) {\n        iVar8 = 0;\n      }" (if "if") (parenthesized_expression "((param_6 & 0x10000000) == 0)" (( "(") (binary_expression "(param_6 & 0x10000000) == 0" (parenthesized_expression "(param_6 & 0x10000000)" (( "(") (binary_expression "param_6 & 0x10000000" (identifier "param_6") (& "&") (number_literal "0x10000000")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar8 = 0;\n      }" ({ "{") (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "local_50 = 1;" (assignment_expression "local_50 = 1" (identifier "local_50") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;" (assignment_expression "iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8" (identifier "iVar8") (= "=") (binary_expression "iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8" (binary_expression "iVar7 * param_2 + *(int *)(iVar2 + 0x2254)" (binary_expression "iVar7 * param_2" (identifier "iVar7") (* "*") (identifier "param_2")) (+ "+") (pointer_expression "*(int *)(iVar2 + 0x2254)" (* "*") (cast_expression "(int *)(iVar2 + 0x2254)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2254)" (( "(") (binary_expression "iVar2 + 0x2254" (identifier "iVar2") (+ "+") (number_literal "0x2254")) () ")"))))) (+ "+") (identifier "iVar8"))) (; ";")) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" (identifier "iVar7") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;" (assignment_expression "iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5" (identifier "iVar6") (= "=") (binary_expression "*(int *)(iVar2 + 0x2254) + param_3 * uVar5" (pointer_expression "*(int *)(iVar2 + 0x2254)" (* "*") (cast_expression "(int *)(iVar2 + 0x2254)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2254)" (( "(") (binary_expression "iVar2 + 0x2254" (identifier "iVar2") (+ "+") (number_literal "0x2254")) () ")")))) (+ "+") (binary_expression "param_3 * uVar5" (identifier "param_3") (* "*") (identifier "uVar5")))) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto joined_r0x0006ad80;" (goto "goto") (statement_identifier "joined_r0x0006ad80") (; ";")) (} "}"))) (labeled_statement "LAB_0006ac2b:\n    if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }" (statement_identifier "LAB_0006ac2b") (: ":") (if_statement "if (bVar11) {\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }" (if "if") (parenthesized_expression "(bVar11)" (( "(") (identifier "bVar11") () ")")) (compound_statement "{\n      if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }\n      iVar3 = *(int *)(iVar2 + 0xcdc);\n      iVar4 = *(int *)(iVar2 + 0xce0);\n      iVar2 = *(int *)(iVar2 + 0x2254);\n      if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }\n    }" ({ "{") (if_statement "if (param_1[1] == 0) {\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }" (if "if") (parenthesized_expression "(param_1[1] == 0)" (( "(") (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);\n        cairo_set_source_rgb();\n      }" ({ "{") (expression_statement "dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);" (assignment_expression "dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440)" (identifier "dVar12") (= "=") (cast_expression "(double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (parenthesized_expression "((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440)" (( "(") (binary_expression "(float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440" (cast_expression "(float)*(ushort *)(*param_1 + 0xcb4)" (( "(") (type_descriptor "float" (primitive_type "float")) () ")") (pointer_expression "*(ushort *)(*param_1 + 0xcb4)" (* "*") (cast_expression "(ushort *)(*param_1 + 0xcb4)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xcb4)" (( "(") (binary_expression "*param_1 + 0xcb4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xcb4")) () ")"))))) (/ "/") (identifier "_DAT_00095440")) () ")")))) (; ";")) (expression_statement "cairo_set_source_rgb();" (call_expression "cairo_set_source_rgb()" (identifier "cairo_set_source_rgb") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(iVar2 + 0xcdc);" (assignment_expression "iVar3 = *(int *)(iVar2 + 0xcdc)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar2 + 0xcdc)" (* "*") (cast_expression "(int *)(iVar2 + 0xcdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xcdc)" (( "(") (binary_expression "iVar2 + 0xcdc" (identifier "iVar2") (+ "+") (number_literal "0xcdc")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(iVar2 + 0xce0);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0xce0)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar2 + 0xce0)" (* "*") (cast_expression "(int *)(iVar2 + 0xce0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xce0)" (( "(") (binary_expression "iVar2 + 0xce0" (identifier "iVar2") (+ "+") (number_literal "0xce0")) () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(iVar2 + 0x2254);" (assignment_expression "iVar2 = *(int *)(iVar2 + 0x2254)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar2 + 0x2254)" (* "*") (cast_expression "(int *)(iVar2 + 0x2254)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2254)" (( "(") (binary_expression "iVar2 + 0x2254" (identifier "iVar2") (+ "+") (number_literal "0x2254")) () ")"))))) (; ";")) (if_statement "if (param_1[1] == 0) {\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }" (if "if") (parenthesized_expression "(param_1[1] == 0)" (( "(") (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        cairo_new_path();\n        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);\n        cairo_close_path();\nLAB_0006b155:\n        cairo_stroke();\n      }" ({ "{") (expression_statement "cairo_new_path();" (call_expression "cairo_new_path()" (identifier "cairo_new_path") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);" (call_expression "cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12)" (identifier "cairo_rectangle") (argument_list "(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),\n                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),\n                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12)" (( "(") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (, ",") (cast_expression "(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (parenthesized_expression "((float)(iVar3 * param_2 + iVar2) + DAT_00096380)" (( "(") (binary_expression "(float)(iVar3 * param_2 + iVar2) + DAT_00096380" (cast_expression "(float)(iVar3 * param_2 + iVar2)" (( "(") (type_descriptor "float" (primitive_type "float")) () ")") (parenthesized_expression "(iVar3 * param_2 + iVar2)" (( "(") (binary_expression "iVar3 * param_2 + iVar2" (binary_expression "iVar3 * param_2" (identifier "iVar3") (* "*") (identifier "param_2")) (+ "+") (identifier "iVar2")) () ")"))) (+ "+") (identifier "DAT_00096380")) () ")"))) (, ",") (cast_expression "(double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (parenthesized_expression "((float)(param_3 * iVar4 + iVar2) + DAT_00096380)" (( "(") (binary_expression "(float)(param_3 * iVar4 + iVar2) + DAT_00096380" (cast_expression "(float)(param_3 * iVar4 + iVar2)" (( "(") (type_descriptor "float" (primitive_type "float")) () ")") (parenthesized_expression "(param_3 * iVar4 + iVar2)" (( "(") (binary_expression "param_3 * iVar4 + iVar2" (binary_expression "param_3 * iVar4" (identifier "param_3") (* "*") (identifier "iVar4")) (+ "+") (identifier "iVar2")) () ")"))) (+ "+") (identifier "DAT_00096380")) () ")"))) (, ",") (cast_expression "(double)(local_60 * iVar3 + -1)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (parenthesized_expression "(local_60 * iVar3 + -1)" (( "(") (binary_expression "local_60 * iVar3 + -1" (binary_expression "local_60 * iVar3" (identifier "local_60") (* "*") (identifier "iVar3")) (+ "+") (number_literal "-1")) () ")"))) (, ",") (cast_expression "(double)(iVar4 + -1)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (parenthesized_expression "(iVar4 + -1)" (( "(") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1")) () ")"))) (, ",") (identifier "dVar12") () ")"))) (; ";")) (expression_statement "cairo_close_path();" (call_expression "cairo_close_path()" (identifier "cairo_close_path") (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_0006b155:\n        cairo_stroke();" (statement_identifier "LAB_0006b155") (: ":") (expression_statement "cairo_stroke();" (call_expression "cairo_stroke()" (identifier "cairo_stroke") (argument_list "()" (( "(") () ")"))) (; ";"))) (} "}"))) (} "}")))) (} "}")))) (labeled_statement "LAB_0006ac80:\n  gtk_widget_queue_draw_area();" (statement_identifier "LAB_0006ac80") (: ":") (expression_statement "gtk_widget_queue_draw_area();" (call_expression "gtk_widget_queue_draw_area()" (identifier "gtk_widget_queue_draw_area") (argument_list "()" (( "(") () ")"))) (; ";"))) (expression_statement "gtk_im_context_set_cursor_location();" (call_expression "gtk_im_context_set_cursor_location()" (identifier "gtk_im_context_set_cursor_location") (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_0006aced:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (statement_identifier "LAB_0006aced") (: ":") (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}")))) (expression_statement "FUN_00077880();" (call_expression "FUN_00077880()" (identifier "FUN_00077880") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void function_1(type_1 ctx,int var_14,int var_15,type_2 *text,int var_8,type_3 var_2,int var_7)

{
  int var_32;
  int var_3;
  int var_4;
  int var_10;
  type_4 var_12;
  int var_11;
  int var_13;
  int var_25;
  type_4 var_22;
  int var_16;
  int var_1;
  bool bVar11;
  double dVar12;
  int var_9;
  int var_26;
  type_5 cursorrect;
  
  var_32 = *(int *)(var_1 + 0x14);
                    /* WARNING: Load size is inaccurate */
  var_3 = *ctx;
  bVar11 = (var_2 & 0x20000000) != 0;
  if (bVar11) {
    var_2 = var_2 & 0xdfffffff;
  }
  var_4 = 0;
  if (((var_2 & 0x40000000) != 0) && (var_4 = *(int *)(var_3 + 0x2258), var_4 != 0)) {
    var_2 = var_2 & 0xbfffffff;
    var_4 = 1;
  }
  dVar12 = (double)var_5(var_7,var_2);
  var_6(ctx,var_14,var_15,text,var_8,var_2,var_7);
  if ((int)var_2 < 0) {
    var_8 = 1;
  }
  var_9 = ((var_2 & 0x400000) != 0) + 1;
  if ((var_7 & 3U) == 0) {
    var_9 = var_8 * var_9;
    var_10 = *(int *)(var_3 + 0x2258);
    if (var_10 == 0) goto LAB_0006ac2b;
    var_13 = *(int *)(var_3 + 0xcdc);
    if ((var_2 & 0x400000) != 0) goto LAB_0006aeb6;
    var_12 = *(type_4 *)(var_3 + 0xce0);
    var_25 = var_13;
    var_16 = var_13;
    if (var_10 != 1) goto LAB_0006ad44;
LAB_0006aec9:
    var_26 = 0;
    var_11 = *(int *)(*(int *)(var_3 + 0x3c) + 0x10) + 1;
    if ((int)var_12 <= var_11) {
      var_11 = var_12 - 1;
    }
    var_25 = var_13 * var_14 + *(int *)(var_3 + 0x2254);
    var_11 = *(int *)(var_3 + 0x2254) + var_12 * var_15 + var_11;
    var_12 = var_9 * var_16;
    var_13 = *(int *)((int)ctx + 4);
joined_r0x0006ad80:
    if (var_13 != 0) {
      if (bVar11) goto LAB_0006ad92;
LAB_0006af90:
      if ((var_4 == 0) || (*(int *)((int)ctx + 4) != 0)) goto LAB_0006ac80;
      var_17();
      var_18();
      var_19();
      goto LAB_0006b155;
    }
                    /* WARNING: Load size is inaccurate */
    dVar12 = (double)((float)*(type_6 *)(*ctx + 0xcb4) / var_20);
    var_21();
    if (!bVar11) goto LAB_0006af90;
LAB_0006ad92:
    var_22 = 0;
    if (0 < (int)var_12) {
      do {
        while (((var_22 & 1) == 0 && (*(int *)((int)ctx + 4) == 0))) {
          var_22 = var_22 + 1;
          var_17();
          var_23(*(type_7 *)((int)ctx + 0xc),(double)var_25,(double)var_11,
                          0x3ff0000000000000,0x3ff0000000000000,dVar12);
          var_24();
          var_25 = var_25 + var_10;
          var_11 = var_11 + var_26;
          if (var_12 == var_22) goto LAB_0006ac80;
        }
        var_22 = var_22 + 1;
        var_25 = var_25 + var_10;
        var_11 = var_11 + var_26;
      } while (var_12 != var_22);
    }
  }
  else {
    var_13 = var_14 * 2;
    var_10 = *(int *)(*(int *)(var_3 + 0xd1c) + 300);
    if (var_10 <= var_13) goto LAB_0006aced;
    if (var_10 < var_13 + var_8 * var_9 * 2) {
      var_10 = var_10 + var_14 * -2;
      var_8 = (int)(var_5(var_10 >> 0x1f,var_10 >> 1) / (type_8)var_9);
    }
    var_10 = *(int *)(var_3 + 0x2258);
    var_9 = var_8 * var_9 * 2;
    var_14 = var_13;
    if (var_10 != 0) {
      var_13 = *(int *)(var_3 + 0xcdc);
LAB_0006aeb6:
      var_12 = *(type_4 *)(var_3 + 0xce0);
      var_25 = var_13 * 2;
      var_16 = var_13 * 2;
      if (var_10 == 1) goto LAB_0006aec9;
LAB_0006ad44:
      var_25 = var_25 + -1;
      if ((var_2 & 0x10000000) == 0) {
        var_25 = 0;
      }
      var_26 = 1;
      var_25 = var_13 * var_14 + *(int *)(var_3 + 0x2254) + var_25;
      var_13 = *(int *)((int)ctx + 4);
      var_11 = *(int *)(var_3 + 0x2254) + var_15 * var_12;
      var_10 = 0;
      goto joined_r0x0006ad80;
    }
LAB_0006ac2b:
    if (bVar11) {
      if (*(int *)((int)ctx + 4) == 0) {
                    /* WARNING: Load size is inaccurate */
        dVar12 = (double)((float)*(type_6 *)(*ctx + 0xcb4) / var_20);
        var_21();
      }
      var_4 = *(int *)(var_3 + 0xcdc);
      var_10 = *(int *)(var_3 + 0xce0);
      var_3 = *(int *)(var_3 + 0x2254);
      if (*(int *)((int)ctx + 4) == 0) {
        var_17();
        var_23(*(type_7 *)((int)ctx + 0xc),
                        (double)((float)(var_4 * var_14 + var_3) + var_27),
                        (double)((float)(var_15 * var_10 + var_3) + var_27),
                        (double)(var_9 * var_4 + -1),(double)(var_10 + -1),dVar12);
        var_28();
LAB_0006b155:
        var_29();
      }
    }
  }
LAB_0006ac80:
  var_30();
  var_31();
LAB_0006aced:
  if (var_32 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_33();
}


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

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

void MASKED(int *param_1,int param_2,int param_3,undefined4 param_4,int param_5,uint param_6,
                 uint param_7)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  uint uVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  uint uVar9;
  int iVar10;
  int in_GS_OFFSET;
  bool bVar11;
  double dVar12;
  int local_60;
  int local_50;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = *param_1;
  bVar11 = (param_6 & 0x20000000) != 0;
  if (bVar11) {
    param_6 = param_6 & 0xdfffffff;
  }
  iVar3 = 0;
  if (((param_6 & 0x40000000) != 0) && (iVar3 = *(int *)(iVar2 + 0x2258), iVar3 != 0)) {
    param_6 = param_6 & 0xbfffffff;
    iVar3 = 1;
  }
  dVar12 = (double)CONCAT44(param_7,param_6);
  FUN_0006a1a0();
  if ((int)param_6 < 0) {
    param_5 = 1;
  }
  local_60 = ((param_6 & 0x400000) != 0) + 1;
  if ((param_7 & 3) == 0) {
    local_60 = param_5 * local_60;
    iVar4 = *(int *)(iVar2 + 0x2258);
    if (iVar4 == 0) goto LAB_0006ac2b;
    iVar7 = *(int *)(iVar2 + 0xcdc);
    if ((param_6 & 0x400000) != 0) goto LAB_0006aeb6;
    uVar5 = *(uint *)(iVar2 + 0xce0);
    iVar8 = iVar7;
    iVar10 = iVar7;
    if (iVar4 != 1) goto LAB_0006ad44;
LAB_0006aec9:
    local_50 = 0;
    iVar6 = *(int *)(*(int *)(iVar2 + 0x3c) + 0x10) + 1;
    if ((int)uVar5 <= iVar6) {
      iVar6 = uVar5 - 1;
    }
    iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254);
    iVar6 = *(int *)(iVar2 + 0x2254) + uVar5 * param_3 + iVar6;
    uVar5 = local_60 * iVar10;
    iVar7 = param_1[1];
joined_r0x0006ad80:
    if (iVar7 != 0) {
      if (bVar11) goto LAB_0006ad92;
LAB_0006af90:
      if ((iVar3 == 0) || (param_1[1] != 0)) goto LAB_0006ac80;
      cairo_new_path();
      cairo_move_to();
      cairo_line_to();
      goto LAB_0006b155;
    }
    dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);
    cairo_set_source_rgb();
    if (!bVar11) goto LAB_0006af90;
LAB_0006ad92:
    uVar9 = 0;
    if (0 < (int)uVar5) {
      do {
        while (((uVar9 & 1) == 0 && (param_1[1] == 0))) {
          uVar9 = uVar9 + 1;
          cairo_new_path();
          cairo_rectangle(param_1[3],(double)iVar8,(double)iVar6,0x3ff0000000000000,
                          0x3ff0000000000000,dVar12);
          cairo_fill();
          iVar8 = iVar8 + iVar4;
          iVar6 = iVar6 + local_50;
          if (uVar5 == uVar9) goto LAB_0006ac80;
        }
        uVar9 = uVar9 + 1;
        iVar8 = iVar8 + iVar4;
        iVar6 = iVar6 + local_50;
      } while (uVar5 != uVar9);
    }
  }
  else {
    iVar7 = param_2 * 2;
    iVar4 = *(int *)(*(int *)(iVar2 + 0xd1c) + 300);
    if (iVar4 <= iVar7) goto LAB_0006aced;
    if (iVar4 < iVar7 + param_5 * local_60 * 2) {
      iVar4 = iVar4 + param_2 * -2;
      param_5 = (int)(CONCAT44(iVar4 >> 0x1f,iVar4 >> 1) / (longlong)local_60);
    }
    iVar4 = *(int *)(iVar2 + 0x2258);
    local_60 = param_5 * local_60 * 2;
    param_2 = iVar7;
    if (iVar4 != 0) {
      iVar7 = *(int *)(iVar2 + 0xcdc);
LAB_0006aeb6:
      uVar5 = *(uint *)(iVar2 + 0xce0);
      iVar8 = iVar7 * 2;
      iVar10 = iVar7 * 2;
      if (iVar4 == 1) goto LAB_0006aec9;
LAB_0006ad44:
      iVar8 = iVar8 + -1;
      if ((param_6 & 0x10000000) == 0) {
        iVar8 = 0;
      }
      local_50 = 1;
      iVar8 = iVar7 * param_2 + *(int *)(iVar2 + 0x2254) + iVar8;
      iVar7 = param_1[1];
      iVar6 = *(int *)(iVar2 + 0x2254) + param_3 * uVar5;
      iVar4 = 0;
      goto joined_r0x0006ad80;
    }
LAB_0006ac2b:
    if (bVar11) {
      if (param_1[1] == 0) {
        dVar12 = (double)((float)*(ushort *)(*param_1 + 0xcb4) / _DAT_00095440);
        cairo_set_source_rgb();
      }
      iVar3 = *(int *)(iVar2 + 0xcdc);
      iVar4 = *(int *)(iVar2 + 0xce0);
      iVar2 = *(int *)(iVar2 + 0x2254);
      if (param_1[1] == 0) {
        cairo_new_path();
        cairo_rectangle(param_1[3],(double)((float)(iVar3 * param_2 + iVar2) + DAT_00096380),
                        (double)((float)(param_3 * iVar4 + iVar2) + DAT_00096380),
                        (double)(local_60 * iVar3 + -1),(double)(iVar4 + -1),dVar12);
        cairo_close_path();
LAB_0006b155:
        cairo_stroke();
      }
    }
  }
LAB_0006ac80:
  gtk_widget_queue_draw_area();
  gtk_im_context_set_cursor_location();
LAB_0006aced:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00077880();
}

