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

void __regparm3 change_font_size(gui_data *inst,int increment)

{
  FontSpec **ppFVar1;
  int iVar2;
  char *name;
  FontSpec *pFVar3;
  FontSpec *pFVar4;
  int iVar5;
  int iVar6;
  int in_GS_OFFSET;
  char *local_50;
  FontSpec *oldfonts [4];
  FontSpec *newfonts [4];
  
  iVar6 = 0;
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  newfonts[0] = (FontSpec *)0x0;
  oldfonts[0] = (FontSpec *)0x0;
  newfonts[1] = (FontSpec *)0x0;
  oldfonts[1] = (FontSpec *)0x0;
  newfonts[2] = (FontSpec *)0x0;
  oldfonts[2] = (FontSpec *)0x0;
  newfonts[3] = (FontSpec *)0x0;
  oldfonts[3] = (FontSpec *)0x0;
  do {
    if (inst->fonts[iVar6] != (unifont *)0x0) {
      name = unifont_size_increment(inst->fonts[iVar6],increment);
      if (name == (char *)0x0) {
        local_50 = (char *)0x0;
        pFVar3 = (FontSpec *)0x0;
        goto LAB_00054888;
      }
      pFVar3 = fontspec_new(name);
      newfonts[iVar6] = pFVar3;
      safefree(name);
    }
    iVar6 = iVar6 + 1;
  } while (iVar6 != 4);
  iVar6 = 0;
  do {
    pFVar3 = newfonts[iVar6];
    if (pFVar3 != (FontSpec *)0x0) {
      iVar5 = change_font_size::conf_keys[iVar6];
      pFVar4 = conf_get_fontspec(inst->conf,iVar5);
      pFVar4 = fontspec_copy(pFVar4);
      oldfonts[iVar6] = pFVar4;
      conf_set_fontspec(inst->conf,iVar5,pFVar3);
    }
    iVar6 = iVar6 + 1;
  } while (iVar6 != 4);
  local_50 = setup_fonts_ucs(inst);
  pFVar3 = oldfonts[0];
  if (local_50 == (char *)0x0) {
    ppFVar1 = oldfonts;
    while( true ) {
      if (pFVar3 != (FontSpec *)0x0) {
        fontspec_free(pFVar3);
        *ppFVar1 = (FontSpec *)0x0;
      }
      ppFVar1 = ppFVar1 + 1;
      if (ppFVar1 == newfonts) break;
      pFVar3 = *ppFVar1;
    }
    set_geom_hints(inst);
    iVar6 = conf_get_int(inst->conf,0x74);
    iVar5 = conf_get_int(inst->conf,0x73);
    request_resize(inst,iVar5,iVar6);
    term_invalidate(inst->term);
    gtk_widget_queue_draw(inst->area);
    pFVar3 = oldfonts[0];
  }
LAB_00054888:
  iVar6 = 0;
  while( true ) {
    if (pFVar3 != (FontSpec *)0x0) {
      conf_set_fontspec(inst->conf,change_font_size::conf_keys[iVar6],pFVar3);
      fontspec_free(pFVar3);
    }
    pFVar3 = newfonts[iVar6];
    if (pFVar3 != (FontSpec *)0x0) {
      fontspec_free(pFVar3);
    }
    iVar6 = iVar6 + 1;
    if (iVar6 == 4) break;
    pFVar3 = oldfonts[iVar6];
  }
  safefree(local_50);
  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return;
}



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

void __regparm3 FUN_00054760(int param_1,undefined4 param_2)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  int iVar7;
  int in_GS_OFFSET;
  int local_50;
  int local_40 [11];
  undefined4 uStack_14;
  
  iVar7 = 0;
  uStack_14 = 0x5476d;
  piVar1 = local_40 + 4;
  local_40[8] = *(int *)(in_GS_OFFSET + 0x14);
  local_40[4] = 0;
  local_40[0] = 0;
  local_40[5] = 0;
  local_40[1] = 0;
  local_40[6] = 0;
  local_40[2] = 0;
  local_40[7] = 0;
  local_40[3] = 0;
  do {
    iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4);
    if (iVar3 != 0) {
      iVar3 = FUN_0004dba0(iVar3,param_2);
      if (iVar3 == 0) {
        local_50 = 0;
        iVar7 = 0;
        goto LAB_00054888;
      }
      iVar4 = FUN_00058020(iVar3);
      piVar1[iVar7] = iVar4;
      FUN_0002c6a0(iVar3);
    }
    iVar7 = iVar7 + 1;
  } while (iVar7 != 4);
  iVar7 = 0;
  do {
    iVar3 = piVar1[iVar7];
    if (iVar3 != 0) {
      uVar6 = (&DAT_0007a1c8)[iVar7];
      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);
      iVar4 = FUN_00058050(uVar5);
      local_40[iVar7] = iVar4;
      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);
    }
    iVar7 = iVar7 + 1;
  } while (iVar7 != 4);
  local_50 = FUN_00054380(param_1);
  iVar7 = local_40[0];
  if (local_50 == 0) {
    piVar2 = local_40;
    while( true ) {
      if (iVar7 != 0) {
        FUN_00058060(iVar7);
        *piVar2 = 0;
      }
      piVar2 = piVar2 + 1;
      if (piVar2 == piVar1) break;
      iVar7 = *piVar2;
    }
    FUN_000546e0(param_1);
    uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74);
    uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73);
    FUN_00052220(param_1,uVar5,uVar6);
    FUN_00036450(*(undefined4 *)(param_1 + 0xd1c));
    gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4));
    iVar7 = local_40[0];
  }
LAB_00054888:
  iVar3 = 0;
  while( true ) {
    if (iVar7 != 0) {
      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);
      FUN_00058060(iVar7);
    }
    if (piVar1[iVar3] != 0) {
      FUN_00058060(piVar1[iVar3]);
    }
    iVar3 = iVar3 + 1;
    if (iVar3 == 4) break;
    iVar7 = local_40[iVar3];
  }
  FUN_0002c6a0(local_50);
  if (local_40[8] != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0005c430();
  }
  return;
}


PUSH EBP
XOR EBP,EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x0001a360
ADD EBX,0x4d077
SUB ESP,0x4c
MOV dword ptr [ESP + 0xc],EDX
LEA EDI,[ESP + 0x2c]
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x3c],EAX
XOR EAX,EAX
MOV dword ptr [ESP + 0x2c],0x0
MOV dword ptr [ESP + 0x1c],0x0
MOV dword ptr [ESP + 0x30],0x0
MOV dword ptr [ESP + 0x20],0x0
MOV dword ptr [ESP + 0x34],0x0
MOV dword ptr [ESP + 0x24],0x0
MOV dword ptr [ESP + 0x38],0x0
MOV dword ptr [ESP + 0x28],0x0
MOV EAX,dword ptr [ESI + EBP*0x4 + 0x3c]
TEST EAX,EAX
JZ 0x0005480b
SUB ESP,0x8
PUSH dword ptr [ESP + 0x14]
PUSH EAX
CALL 0x0004dba0
ADD ESP,0x10
MOV EDX,EAX
TEST EAX,EAX
JZ 0x00054998
SUB ESP,0xc
PUSH EAX
MOV dword ptr [ESP + 0x18],EAX
CALL 0x00058020
MOV EDX,dword ptr [ESP + 0x18]
MOV dword ptr [EDI + EBP*0x4],EAX
MOV dword ptr [ESP],EDX
CALL 0x0002c6a0
ADD ESP,0x10
ADD EBP,0x1
CMP EBP,0x4
JNZ 0x000547ca
XOR EBP,EBP
LEA ESI,[ESI]
MOV ECX,dword ptr [EDI + EBP*0x4]
TEST ECX,ECX
MOV dword ptr [ESP + 0x8],ECX
JZ 0x00054864
MOV EDX,dword ptr [EBX + EBP*0x4 + 0xfffd89e4]
SUB ESP,0x8
PUSH EDX
MOV dword ptr [ESP + 0x18],EDX
PUSH dword ptr [ESI + 0x2238]
CALL 0x0001dce0
MOV dword ptr [ESP],EAX
CALL 0x00058050
MOV dword ptr [ESP + EBP*0x4 + 0x2c],EAX
ADD ESP,0xc
MOV ECX,dword ptr [ESP + 0xc]
PUSH ECX
MOV EDX,dword ptr [ESP + 0x14]
PUSH EDX
PUSH dword ptr [ESI + 0x2238]
CALL 0x0001e1e0
ADD ESP,0x10
ADD EBP,0x1
CMP EBP,0x4
JNZ 0x00054818
SUB ESP,0xc
PUSH ESI
CALL 0x00054380
MOV EDX,dword ptr [ESP + 0x2c]
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00054910
XOR EBP,EBP
TEST EDX,EDX
JZ 0x000548b7
SUB ESP,0x4
PUSH EDX
MOV dword ptr [ESP + 0x10],EDX
PUSH dword ptr [EBX + EBP*0x4 + 0xfffd89e4]
PUSH dword ptr [ESI + 0x2238]
CALL 0x0001e1e0
MOV EDX,dword ptr [ESP + 0x18]
MOV dword ptr [ESP],EDX
CALL 0x00058060
ADD ESP,0x10
MOV EDX,dword ptr [EDI + EBP*0x4]
TEST EDX,EDX
JZ 0x000548ca
SUB ESP,0xc
PUSH EDX
CALL 0x00058060
ADD ESP,0x10
ADD EBP,0x1
CMP EBP,0x4
JZ 0x000548e0
MOV EDX,dword ptr [ESP + EBP*0x4 + 0x1c]
TEST EDX,EDX
JNZ 0x0005488e
JMP 0x000548b7
SUB ESP,0xc
PUSH dword ptr [ESP + 0x18]
CALL 0x0002c6a0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x3c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x000549a5
ADD ESP,0x4c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EBP,[ESP + 0x1c]
TEST EDX,EDX
JZ 0x0005492b
SUB ESP,0xc
PUSH EDX
CALL 0x00058060
MOV dword ptr [EBP],0x0
ADD ESP,0x10
ADD EBP,0x4
CMP EBP,EDI
JZ 0x00054940
MOV EDX,dword ptr [EBP]
TEST EDX,EDX
JNZ 0x00054918
ADD EBP,0x4
CMP EBP,EDI
JNZ 0x00054932
SUB ESP,0xc
PUSH ESI
CALL 0x000546e0
POP EAX
POP EDX
PUSH 0x74
PUSH dword ptr [ESI + 0x2238]
CALL 0x0001d690
POP ECX
MOV EBP,EAX
POP EAX
PUSH 0x73
PUSH dword ptr [ESI + 0x2238]
CALL 0x0001d690
ADD ESP,0xc
PUSH EBP
PUSH EAX
PUSH ESI
CALL 0x00052220
POP EAX
PUSH dword ptr [ESI + 0xd1c]
CALL 0x00036450
POP EAX
PUSH dword ptr [ESI + 0x4]
CALL 0x00018110
MOV EDX,dword ptr [ESP + 0x2c]
ADD ESP,0x10
JMP 0x00054888
MOV dword ptr [ESP + 0xc],0x0
JMP 0x00054888
CALL 0x0005c430
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00054760(int param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  int local_50;\n  int local_40 [11];\n  undefined4 uStack_14;\n  \n  iVar7 = 0;\n  uStack_14 = 0x5476d;\n  piVar1 = local_40 + 4;\n  local_40[8] = *(int *)(in_GS_OFFSET + 0x14);\n  local_40[4] = 0;\n  local_40[0] = 0;\n  local_40[5] = 0;\n  local_40[1] = 0;\n  local_40[6] = 0;\n  local_40[2] = 0;\n  local_40[7] = 0;\n  local_40[3] = 0;\n  do {\n    iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4);\n    if (iVar3 != 0) {\n      iVar3 = FUN_0004dba0(iVar3,param_2);\n      if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }\n      iVar4 = FUN_00058020(iVar3);\n      piVar1[iVar7] = iVar4;\n      FUN_0002c6a0(iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);\n  iVar7 = 0;\n  do {\n    iVar3 = piVar1[iVar7];\n    if (iVar3 != 0) {\n      uVar6 = (&DAT_0007a1c8)[iVar7];\n      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);\n      iVar4 = FUN_00058050(uVar5);\n      local_40[iVar7] = iVar4;\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);\n  local_50 = FUN_00054380(param_1);\n  iVar7 = local_40[0];\n  if (local_50 == 0) {\n    piVar2 = local_40;\n    while( true ) {\n      if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }\n      piVar2 = piVar2 + 1;\n      if (piVar2 == piVar1) break;\n      iVar7 = *piVar2;\n    }\n    FUN_000546e0(param_1);\n    uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74);\n    uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73);\n    FUN_00052220(param_1,uVar5,uVar6);\n    FUN_00036450(*(undefined4 *)(param_1 + 0xd1c));\n    gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4));\n    iVar7 = local_40[0];\n  }\nLAB_00054888:\n  iVar3 = 0;\n  while( true ) {\n    if (iVar7 != 0) {\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);\n      FUN_00058060(iVar7);\n    }\n    if (piVar1[iVar3] != 0) {\n      FUN_00058060(piVar1[iVar3]);\n    }\n    iVar3 = iVar3 + 1;\n    if (iVar3 == 4) break;\n    iVar7 = local_40[iVar3];\n  }\n  FUN_0002c6a0(local_50);\n  if (local_40[8] != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005c430();\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00054760(int param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  int local_50;\n  int local_40 [11];\n  undefined4 uStack_14;\n  \n  iVar7 = 0;\n  uStack_14 = 0x5476d;\n  piVar1 = local_40 + 4;\n  local_40[8] = *(int *)(in_GS_OFFSET + 0x14);\n  local_40[4] = 0;\n  local_40[0] = 0;\n  local_40[5] = 0;\n  local_40[1] = 0;\n  local_40[6] = 0;\n  local_40[2] = 0;\n  local_40[7] = 0;\n  local_40[3] = 0;\n  do {\n    iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4);\n    if (iVar3 != 0) {\n      iVar3 = FUN_0004dba0(iVar3,param_2);\n      if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }\n      iVar4 = FUN_00058020(iVar3);\n      piVar1[iVar7] = iVar4;\n      FUN_0002c6a0(iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);\n  iVar7 = 0;\n  do {\n    iVar3 = piVar1[iVar7];\n    if (iVar3 != 0) {\n      uVar6 = (&DAT_0007a1c8)[iVar7];\n      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);\n      iVar4 = FUN_00058050(uVar5);\n      local_40[iVar7] = iVar4;\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);\n  local_50 = FUN_00054380(param_1);\n  iVar7 = local_40[0];\n  if (local_50 == 0) {\n    piVar2 = local_40;\n    while( true ) {\n      if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }\n      piVar2 = piVar2 + 1;\n      if (piVar2 == piVar1) break;\n      iVar7 = *piVar2;\n    }\n    FUN_000546e0(param_1);\n    uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74);\n    uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73);\n    FUN_00052220(param_1,uVar5,uVar6);\n    FUN_00036450(*(undefined4 *)(param_1 + 0xd1c));\n    gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4));\n    iVar7 = local_40[0];\n  }\nLAB_00054888:\n  iVar3 = 0;\n  while( true ) {\n    if (iVar7 != 0) {\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);\n      FUN_00058060(iVar7);\n    }\n    if (piVar1[iVar3] != 0) {\n      FUN_00058060(piVar1[iVar3]);\n    }\n    iVar3 = iVar3 + 1;\n    if (iVar3 == 4) break;\n    iVar7 = local_40[iVar3];\n  }\n  FUN_0002c6a0(local_50);\n  if (local_40[8] != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005c430();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00054760(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  int local_50;\n  int local_40 [11];\n  undefined4 uStack_14;\n  \n  iVar7 = 0;\n  uStack_14 = 0x5476d;\n  piVar1 = local_40 + 4;\n  local_40[8] = *(int *)(in_GS_OFFSET + 0x14);\n  local_40[4] = 0;\n  local_40[0] = 0;\n  local_40[5] = 0;\n  local_40[1] = 0;\n  local_40[6] = 0;\n  local_40[2] = 0;\n  local_40[7] = 0;\n  local_40[3] = 0;\n  do {\n    iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4);\n    if (iVar3 != 0) {\n      iVar3 = FUN_0004dba0(iVar3,param_2);\n      if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }\n      iVar4 = FUN_00058020(iVar3);\n      piVar1[iVar7] = iVar4;\n      FUN_0002c6a0(iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);\n  iVar7 = 0;\n  do {\n    iVar3 = piVar1[iVar7];\n    if (iVar3 != 0) {\n      uVar6 = (&DAT_0007a1c8)[iVar7];\n      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);\n      iVar4 = FUN_00058050(uVar5);\n      local_40[iVar7] = iVar4;\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);\n  local_50 = FUN_00054380(param_1);\n  iVar7 = local_40[0];\n  if (local_50 == 0) {\n    piVar2 = local_40;\n    while( true ) {\n      if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }\n      piVar2 = piVar2 + 1;\n      if (piVar2 == piVar1) break;\n      iVar7 = *piVar2;\n    }\n    FUN_000546e0(param_1);\n    uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74);\n    uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73);\n    FUN_00052220(param_1,uVar5,uVar6);\n    FUN_00036450(*(undefined4 *)(param_1 + 0xd1c));\n    gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4));\n    iVar7 = local_40[0];\n  }\nLAB_00054888:\n  iVar3 = 0;\n  while( true ) {\n    if (iVar7 != 0) {\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);\n      FUN_00058060(iVar7);\n    }\n    if (piVar1[iVar3] != 0) {\n      FUN_00058060(piVar1[iVar3]);\n    }\n    iVar3 = iVar3 + 1;\n    if (iVar3 == 4) break;\n    iVar7 = local_40[iVar3];\n  }\n  FUN_0002c6a0(local_50);\n  if (local_40[8] != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005c430();\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_50;" primitive_type identifier ;) (declaration "int local_40 [11];" primitive_type (array_declarator "local_40 [11]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x5476d;" (assignment_expression "uStack_14 = 0x5476d" identifier = number_literal) ;) (expression_statement "piVar1 = local_40 + 4;" (assignment_expression "piVar1 = local_40 + 4" identifier = (binary_expression "local_40 + 4" identifier + number_literal)) ;) (expression_statement "local_40[8] = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_40[8] = *(int *)(in_GS_OFFSET + 0x14)" (subscript_expression "local_40[8]" identifier [ number_literal ]) = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_40[4] = 0;" (assignment_expression "local_40[4] = 0" (subscript_expression "local_40[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0] = 0;" (assignment_expression "local_40[0] = 0" (subscript_expression "local_40[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[5] = 0;" (assignment_expression "local_40[5] = 0" (subscript_expression "local_40[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[1] = 0;" (assignment_expression "local_40[1] = 0" (subscript_expression "local_40[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[6] = 0;" (assignment_expression "local_40[6] = 0" (subscript_expression "local_40[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[2] = 0;" (assignment_expression "local_40[2] = 0" (subscript_expression "local_40[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[7] = 0;" (assignment_expression "local_40[7] = 0" (subscript_expression "local_40[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[3] = 0;" (assignment_expression "local_40[3] = 0" (subscript_expression "local_40[3]" identifier [ number_literal ]) = number_literal) ;) (do_statement "do {\n    iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4);\n    if (iVar3 != 0) {\n      iVar3 = FUN_0004dba0(iVar3,param_2);\n      if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }\n      iVar4 = FUN_00058020(iVar3);\n      piVar1[iVar7] = iVar4;\n      FUN_0002c6a0(iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);" do (compound_statement "{\n    iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4);\n    if (iVar3 != 0) {\n      iVar3 = FUN_0004dba0(iVar3,param_2);\n      if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }\n      iVar4 = FUN_00058020(iVar3);\n      piVar1[iVar7] = iVar4;\n      FUN_0002c6a0(iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  }" { (expression_statement "iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4)" identifier = (pointer_expression "*(int *)(param_1 + 0x3c + iVar7 * 4)" * (cast_expression "(int *)(param_1 + 0x3c + iVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c + iVar7 * 4)" ( (binary_expression "param_1 + 0x3c + iVar7 * 4" (binary_expression "param_1 + 0x3c" identifier + number_literal) + (binary_expression "iVar7 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (iVar3 != 0) {\n      iVar3 = FUN_0004dba0(iVar3,param_2);\n      if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }\n      iVar4 = FUN_00058020(iVar3);\n      piVar1[iVar7] = iVar4;\n      FUN_0002c6a0(iVar3);\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar3 = FUN_0004dba0(iVar3,param_2);\n      if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }\n      iVar4 = FUN_00058020(iVar3);\n      piVar1[iVar7] = iVar4;\n      FUN_0002c6a0(iVar3);\n    }" { (expression_statement "iVar3 = FUN_0004dba0(iVar3,param_2);" (assignment_expression "iVar3 = FUN_0004dba0(iVar3,param_2)" identifier = (call_expression "FUN_0004dba0(iVar3,param_2)" identifier (argument_list "(iVar3,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }" { (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00054888;" goto statement_identifier ;) })) (expression_statement "iVar4 = FUN_00058020(iVar3);" (assignment_expression "iVar4 = FUN_00058020(iVar3)" identifier = (call_expression "FUN_00058020(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "piVar1[iVar7] = iVar4;" (assignment_expression "piVar1[iVar7] = iVar4" (subscript_expression "piVar1[iVar7]" identifier [ identifier ]) = identifier) ;) (expression_statement "FUN_0002c6a0(iVar3);" (call_expression "FUN_0002c6a0(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) })) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != 4)" ( (binary_expression "iVar7 != 4" identifier != number_literal) )) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar3 = piVar1[iVar7];\n    if (iVar3 != 0) {\n      uVar6 = (&DAT_0007a1c8)[iVar7];\n      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);\n      iVar4 = FUN_00058050(uVar5);\n      local_40[iVar7] = iVar4;\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);" do (compound_statement "{\n    iVar3 = piVar1[iVar7];\n    if (iVar3 != 0) {\n      uVar6 = (&DAT_0007a1c8)[iVar7];\n      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);\n      iVar4 = FUN_00058050(uVar5);\n      local_40[iVar7] = iVar4;\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  }" { (expression_statement "iVar3 = piVar1[iVar7];" (assignment_expression "iVar3 = piVar1[iVar7]" identifier = (subscript_expression "piVar1[iVar7]" identifier [ identifier ])) ;) (if_statement "if (iVar3 != 0) {\n      uVar6 = (&DAT_0007a1c8)[iVar7];\n      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);\n      iVar4 = FUN_00058050(uVar5);\n      local_40[iVar7] = iVar4;\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar6 = (&DAT_0007a1c8)[iVar7];\n      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);\n      iVar4 = FUN_00058050(uVar5);\n      local_40[iVar7] = iVar4;\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);\n    }" { (expression_statement "uVar6 = (&DAT_0007a1c8)[iVar7];" (assignment_expression "uVar6 = (&DAT_0007a1c8)[iVar7]" identifier = (subscript_expression "(&DAT_0007a1c8)[iVar7]" (parenthesized_expression "(&DAT_0007a1c8)" ( (pointer_expression "&DAT_0007a1c8" & identifier) )) [ identifier ])) ;) (expression_statement "uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);" (assignment_expression "uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6)" identifier = (call_expression "FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x2238),uVar6)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x2238)" * (cast_expression "(undefined4 *)(param_1 + 0x2238)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2238)" ( (binary_expression "param_1 + 0x2238" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "iVar4 = FUN_00058050(uVar5);" (assignment_expression "iVar4 = FUN_00058050(uVar5)" identifier = (call_expression "FUN_00058050(uVar5)" identifier (argument_list "(uVar5)" ( identifier )))) ;) (expression_statement "local_40[iVar7] = iVar4;" (assignment_expression "local_40[iVar7] = iVar4" (subscript_expression "local_40[iVar7]" identifier [ identifier ]) = identifier) ;) (expression_statement "FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);" (call_expression "FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x2238)" * (cast_expression "(undefined4 *)(param_1 + 0x2238)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2238)" ( (binary_expression "param_1 + 0x2238" identifier + number_literal) )))) , identifier , identifier ))) ;) })) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != 4)" ( (binary_expression "iVar7 != 4" identifier != number_literal) )) ;) (expression_statement "local_50 = FUN_00054380(param_1);" (assignment_expression "local_50 = FUN_00054380(param_1)" identifier = (call_expression "FUN_00054380(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar7 = local_40[0];" (assignment_expression "iVar7 = local_40[0]" identifier = (subscript_expression "local_40[0]" identifier [ number_literal ])) ;) (if_statement "if (local_50 == 0) {\n    piVar2 = local_40;\n    while( true ) {\n      if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }\n      piVar2 = piVar2 + 1;\n      if (piVar2 == piVar1) break;\n      iVar7 = *piVar2;\n    }\n    FUN_000546e0(param_1);\n    uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74);\n    uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73);\n    FUN_00052220(param_1,uVar5,uVar6);\n    FUN_00036450(*(undefined4 *)(param_1 + 0xd1c));\n    gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4));\n    iVar7 = local_40[0];\n  }" if (parenthesized_expression "(local_50 == 0)" ( (binary_expression "local_50 == 0" identifier == number_literal) )) (compound_statement "{\n    piVar2 = local_40;\n    while( true ) {\n      if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }\n      piVar2 = piVar2 + 1;\n      if (piVar2 == piVar1) break;\n      iVar7 = *piVar2;\n    }\n    FUN_000546e0(param_1);\n    uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74);\n    uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73);\n    FUN_00052220(param_1,uVar5,uVar6);\n    FUN_00036450(*(undefined4 *)(param_1 + 0xd1c));\n    gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4));\n    iVar7 = local_40[0];\n  }" { (expression_statement "piVar2 = local_40;" (assignment_expression "piVar2 = local_40" identifier = identifier) ;) (while_statement "while( true ) {\n      if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }\n      piVar2 = piVar2 + 1;\n      if (piVar2 == piVar1) break;\n      iVar7 = *piVar2;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }\n      piVar2 = piVar2 + 1;\n      if (piVar2 == piVar1) break;\n      iVar7 = *piVar2;\n    }" { (if_statement "if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }" { (expression_statement "FUN_00058060(iVar7);" (call_expression "FUN_00058060(iVar7)" identifier (argument_list "(iVar7)" ( identifier ))) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) })) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (if_statement "if (piVar2 == piVar1) break;" if (parenthesized_expression "(piVar2 == piVar1)" ( (binary_expression "piVar2 == piVar1" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = *piVar2;" (assignment_expression "iVar7 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) (expression_statement "FUN_000546e0(param_1);" (call_expression "FUN_000546e0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74);" (assignment_expression "uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74)" identifier = (call_expression "FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x2238),0x74)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x2238)" * (cast_expression "(undefined4 *)(param_1 + 0x2238)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2238)" ( (binary_expression "param_1 + 0x2238" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73);" (assignment_expression "uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73)" identifier = (call_expression "FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x2238),0x73)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x2238)" * (cast_expression "(undefined4 *)(param_1 + 0x2238)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2238)" ( (binary_expression "param_1 + 0x2238" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "FUN_00052220(param_1,uVar5,uVar6);" (call_expression "FUN_00052220(param_1,uVar5,uVar6)" identifier (argument_list "(param_1,uVar5,uVar6)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_00036450(*(undefined4 *)(param_1 + 0xd1c));" (call_expression "FUN_00036450(*(undefined4 *)(param_1 + 0xd1c))" identifier (argument_list "(*(undefined4 *)(param_1 + 0xd1c))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xd1c)" * (cast_expression "(undefined4 *)(param_1 + 0xd1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd1c)" ( (binary_expression "param_1 + 0xd1c" identifier + number_literal) )))) ))) ;) (expression_statement "gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4));" (call_expression "gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "iVar7 = local_40[0];" (assignment_expression "iVar7 = local_40[0]" identifier = (subscript_expression "local_40[0]" identifier [ number_literal ])) ;) })) (labeled_statement "LAB_00054888:\n  iVar3 = 0;" statement_identifier : (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;)) (while_statement "while( true ) {\n    if (iVar7 != 0) {\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);\n      FUN_00058060(iVar7);\n    }\n    if (piVar1[iVar3] != 0) {\n      FUN_00058060(piVar1[iVar3]);\n    }\n    iVar3 = iVar3 + 1;\n    if (iVar3 == 4) break;\n    iVar7 = local_40[iVar3];\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (iVar7 != 0) {\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);\n      FUN_00058060(iVar7);\n    }\n    if (piVar1[iVar3] != 0) {\n      FUN_00058060(piVar1[iVar3]);\n    }\n    iVar3 = iVar3 + 1;\n    if (iVar3 == 4) break;\n    iVar7 = local_40[iVar3];\n  }" { (if_statement "if (iVar7 != 0) {\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);\n      FUN_00058060(iVar7);\n    }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);\n      FUN_00058060(iVar7);\n    }" { (expression_statement "FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);" (call_expression "FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x2238)" * (cast_expression "(undefined4 *)(param_1 + 0x2238)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2238)" ( (binary_expression "param_1 + 0x2238" identifier + number_literal) )))) , (subscript_expression "(&DAT_0007a1c8)[iVar3]" (parenthesized_expression "(&DAT_0007a1c8)" ( (pointer_expression "&DAT_0007a1c8" & identifier) )) [ identifier ]) , identifier ))) ;) (expression_statement "FUN_00058060(iVar7);" (call_expression "FUN_00058060(iVar7)" identifier (argument_list "(iVar7)" ( identifier ))) ;) })) (if_statement "if (piVar1[iVar3] != 0) {\n      FUN_00058060(piVar1[iVar3]);\n    }" if (parenthesized_expression "(piVar1[iVar3] != 0)" ( (binary_expression "piVar1[iVar3] != 0" (subscript_expression "piVar1[iVar3]" identifier [ identifier ]) != number_literal) )) (compound_statement "{\n      FUN_00058060(piVar1[iVar3]);\n    }" { (expression_statement "FUN_00058060(piVar1[iVar3]);" (call_expression "FUN_00058060(piVar1[iVar3])" identifier (argument_list "(piVar1[iVar3])" ( (subscript_expression "piVar1[iVar3]" identifier [ identifier ]) ))) ;) })) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if (iVar3 == 4) break;" if (parenthesized_expression "(iVar3 == 4)" ( (binary_expression "iVar3 == 4" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = local_40[iVar3];" (assignment_expression "iVar7 = local_40[iVar3]" identifier = (subscript_expression "local_40[iVar3]" identifier [ identifier ])) ;) })) (expression_statement "FUN_0002c6a0(local_50);" (call_expression "FUN_0002c6a0(local_50)" identifier (argument_list "(local_50)" ( identifier ))) ;) (if_statement "if (local_40[8] != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005c430();\n  }" if (parenthesized_expression "(local_40[8] != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_40[8] != *(int *)(in_GS_OFFSET + 0x14)" (subscript_expression "local_40[8]" identifier [ number_literal ]) != (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                    /* WARNING: Subroutine does not return */\n    FUN_0005c430();\n  }" { comment (expression_statement "FUN_0005c430();" (call_expression "FUN_0005c430()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid __regparm3 change_font_size(gui_data *inst,int increment)\n\n{\n  FontSpec **ppFVar1;\n  int iVar2;\n  char *name;\n  FontSpec *pFVar3;\n  FontSpec *pFVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  char *local_50;\n  FontSpec *oldfonts [4];\n  FontSpec *newfonts [4];\n  \n  iVar6 = 0;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  newfonts[0] = (FontSpec *)0x0;\n  oldfonts[0] = (FontSpec *)0x0;\n  newfonts[1] = (FontSpec *)0x0;\n  oldfonts[1] = (FontSpec *)0x0;\n  newfonts[2] = (FontSpec *)0x0;\n  oldfonts[2] = (FontSpec *)0x0;\n  newfonts[3] = (FontSpec *)0x0;\n  oldfonts[3] = (FontSpec *)0x0;\n  do {\n    if (inst->fonts[iVar6] != (unifont *)0x0) {\n      name = unifont_size_increment(inst->fonts[iVar6],increment);\n      if (name == (char *)0x0) {\n        local_50 = (char *)0x0;\n        pFVar3 = (FontSpec *)0x0;\n        goto LAB_00054888;\n      }\n      pFVar3 = fontspec_new(name);\n      newfonts[iVar6] = pFVar3;\n      safefree(name);\n    }\n    iVar6 = iVar6 + 1;\n  } while (iVar6 != 4);\n  iVar6 = 0;\n  do {\n    pFVar3 = newfonts[iVar6];\n    if (pFVar3 != (FontSpec *)0x0) {\n      iVar5 = change_font_size::conf_keys[iVar6];\n      pFVar4 = conf_get_fontspec(inst->conf,iVar5);\n      pFVar4 = fontspec_copy(pFVar4);\n      oldfonts[iVar6] = pFVar4;\n      conf_set_fontspec(inst->conf,iVar5,pFVar3);\n    }\n    iVar6 = iVar6 + 1;\n  } while (iVar6 != 4);\n  local_50 = setup_fonts_ucs(inst);\n  pFVar3 = oldfonts[0];\n  if (local_50 == (char *)0x0) {\n    ppFVar1 = oldfonts;\n    while( true ) {\n      if (pFVar3 != (FontSpec *)0x0) {\n        fontspec_free(pFVar3);\n        *ppFVar1 = (FontSpec *)0x0;\n      }\n      ppFVar1 = ppFVar1 + 1;\n      if (ppFVar1 == newfonts) break;\n      pFVar3 = *ppFVar1;\n    }\n    set_geom_hints(inst);\n    iVar6 = conf_get_int(inst->conf,0x74);\n    iVar5 = conf_get_int(inst->conf,0x73);\n    request_resize(inst,iVar5,iVar6);\n    term_invalidate(inst->term);\n    gtk_widget_queue_draw(inst->area);\n    pFVar3 = oldfonts[0];\n  }\nLAB_00054888:\n  iVar6 = 0;\n  while( true ) {\n    if (pFVar3 != (FontSpec *)0x0) {\n      conf_set_fontspec(inst->conf,change_font_size::conf_keys[iVar6],pFVar3);\n      fontspec_free(pFVar3);\n    }\n    pFVar3 = newfonts[iVar6];\n    if (pFVar3 != (FontSpec *)0x0) {\n      fontspec_free(pFVar3);\n    }\n    iVar6 = iVar6 + 1;\n    if (iVar6 == 4) break;\n    pFVar3 = oldfonts[iVar6];\n  }\n  safefree(local_50);\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}\n\n" comment comment (function_definition "void __regparm3 change_font_size(gui_data *inst,int increment)\n\n{\n  FontSpec **ppFVar1;\n  int iVar2;\n  char *name;\n  FontSpec *pFVar3;\n  FontSpec *pFVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  char *local_50;\n  FontSpec *oldfonts [4];\n  FontSpec *newfonts [4];\n  \n  iVar6 = 0;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  newfonts[0] = (FontSpec *)0x0;\n  oldfonts[0] = (FontSpec *)0x0;\n  newfonts[1] = (FontSpec *)0x0;\n  oldfonts[1] = (FontSpec *)0x0;\n  newfonts[2] = (FontSpec *)0x0;\n  oldfonts[2] = (FontSpec *)0x0;\n  newfonts[3] = (FontSpec *)0x0;\n  oldfonts[3] = (FontSpec *)0x0;\n  do {\n    if (inst->fonts[iVar6] != (unifont *)0x0) {\n      name = unifont_size_increment(inst->fonts[iVar6],increment);\n      if (name == (char *)0x0) {\n        local_50 = (char *)0x0;\n        pFVar3 = (FontSpec *)0x0;\n        goto LAB_00054888;\n      }\n      pFVar3 = fontspec_new(name);\n      newfonts[iVar6] = pFVar3;\n      safefree(name);\n    }\n    iVar6 = iVar6 + 1;\n  } while (iVar6 != 4);\n  iVar6 = 0;\n  do {\n    pFVar3 = newfonts[iVar6];\n    if (pFVar3 != (FontSpec *)0x0) {\n      iVar5 = change_font_size::conf_keys[iVar6];\n      pFVar4 = conf_get_fontspec(inst->conf,iVar5);\n      pFVar4 = fontspec_copy(pFVar4);\n      oldfonts[iVar6] = pFVar4;\n      conf_set_fontspec(inst->conf,iVar5,pFVar3);\n    }\n    iVar6 = iVar6 + 1;\n  } while (iVar6 != 4);\n  local_50 = setup_fonts_ucs(inst);\n  pFVar3 = oldfonts[0];\n  if (local_50 == (char *)0x0) {\n    ppFVar1 = oldfonts;\n    while( true ) {\n      if (pFVar3 != (FontSpec *)0x0) {\n        fontspec_free(pFVar3);\n        *ppFVar1 = (FontSpec *)0x0;\n      }\n      ppFVar1 = ppFVar1 + 1;\n      if (ppFVar1 == newfonts) break;\n      pFVar3 = *ppFVar1;\n    }\n    set_geom_hints(inst);\n    iVar6 = conf_get_int(inst->conf,0x74);\n    iVar5 = conf_get_int(inst->conf,0x73);\n    request_resize(inst,iVar5,iVar6);\n    term_invalidate(inst->term);\n    gtk_widget_queue_draw(inst->area);\n    pFVar3 = oldfonts[0];\n  }\nLAB_00054888:\n  iVar6 = 0;\n  while( true ) {\n    if (pFVar3 != (FontSpec *)0x0) {\n      conf_set_fontspec(inst->conf,change_font_size::conf_keys[iVar6],pFVar3);\n      fontspec_free(pFVar3);\n    }\n    pFVar3 = newfonts[iVar6];\n    if (pFVar3 != (FontSpec *)0x0) {\n      fontspec_free(pFVar3);\n    }\n    iVar6 = iVar6 + 1;\n    if (iVar6 == 4) break;\n    pFVar3 = oldfonts[iVar6];\n  }\n  safefree(local_50);\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "change_font_size(gui_data *inst,int increment)" identifier (parameter_list "(gui_data *inst,int increment)" ( (parameter_declaration "gui_data *inst" type_identifier (pointer_declarator "*inst" * identifier)) , (parameter_declaration "int increment" primitive_type identifier) ))) (compound_statement "{\n  FontSpec **ppFVar1;\n  int iVar2;\n  char *name;\n  FontSpec *pFVar3;\n  FontSpec *pFVar4;\n  int iVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  char *local_50;\n  FontSpec *oldfonts [4];\n  FontSpec *newfonts [4];\n  \n  iVar6 = 0;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  newfonts[0] = (FontSpec *)0x0;\n  oldfonts[0] = (FontSpec *)0x0;\n  newfonts[1] = (FontSpec *)0x0;\n  oldfonts[1] = (FontSpec *)0x0;\n  newfonts[2] = (FontSpec *)0x0;\n  oldfonts[2] = (FontSpec *)0x0;\n  newfonts[3] = (FontSpec *)0x0;\n  oldfonts[3] = (FontSpec *)0x0;\n  do {\n    if (inst->fonts[iVar6] != (unifont *)0x0) {\n      name = unifont_size_increment(inst->fonts[iVar6],increment);\n      if (name == (char *)0x0) {\n        local_50 = (char *)0x0;\n        pFVar3 = (FontSpec *)0x0;\n        goto LAB_00054888;\n      }\n      pFVar3 = fontspec_new(name);\n      newfonts[iVar6] = pFVar3;\n      safefree(name);\n    }\n    iVar6 = iVar6 + 1;\n  } while (iVar6 != 4);\n  iVar6 = 0;\n  do {\n    pFVar3 = newfonts[iVar6];\n    if (pFVar3 != (FontSpec *)0x0) {\n      iVar5 = change_font_size::conf_keys[iVar6];\n      pFVar4 = conf_get_fontspec(inst->conf,iVar5);\n      pFVar4 = fontspec_copy(pFVar4);\n      oldfonts[iVar6] = pFVar4;\n      conf_set_fontspec(inst->conf,iVar5,pFVar3);\n    }\n    iVar6 = iVar6 + 1;\n  } while (iVar6 != 4);\n  local_50 = setup_fonts_ucs(inst);\n  pFVar3 = oldfonts[0];\n  if (local_50 == (char *)0x0) {\n    ppFVar1 = oldfonts;\n    while( true ) {\n      if (pFVar3 != (FontSpec *)0x0) {\n        fontspec_free(pFVar3);\n        *ppFVar1 = (FontSpec *)0x0;\n      }\n      ppFVar1 = ppFVar1 + 1;\n      if (ppFVar1 == newfonts) break;\n      pFVar3 = *ppFVar1;\n    }\n    set_geom_hints(inst);\n    iVar6 = conf_get_int(inst->conf,0x74);\n    iVar5 = conf_get_int(inst->conf,0x73);\n    request_resize(inst,iVar5,iVar6);\n    term_invalidate(inst->term);\n    gtk_widget_queue_draw(inst->area);\n    pFVar3 = oldfonts[0];\n  }\nLAB_00054888:\n  iVar6 = 0;\n  while( true ) {\n    if (pFVar3 != (FontSpec *)0x0) {\n      conf_set_fontspec(inst->conf,change_font_size::conf_keys[iVar6],pFVar3);\n      fontspec_free(pFVar3);\n    }\n    pFVar3 = newfonts[iVar6];\n    if (pFVar3 != (FontSpec *)0x0) {\n      fontspec_free(pFVar3);\n    }\n    iVar6 = iVar6 + 1;\n    if (iVar6 == 4) break;\n    pFVar3 = oldfonts[iVar6];\n  }\n  safefree(local_50);\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" { (declaration "FontSpec **ppFVar1;" type_identifier (pointer_declarator "**ppFVar1" * (pointer_declarator "*ppFVar1" * identifier)) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *name;" primitive_type (pointer_declarator "*name" * identifier) ;) (declaration "FontSpec *pFVar3;" type_identifier (pointer_declarator "*pFVar3" * identifier) ;) (declaration "FontSpec *pFVar4;" type_identifier (pointer_declarator "*pFVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_50;" primitive_type (pointer_declarator "*local_50" * identifier) ;) (declaration "FontSpec *oldfonts [4];" type_identifier (pointer_declarator "*oldfonts [4]" * (array_declarator "oldfonts [4]" identifier [ number_literal ])) ;) (declaration "FontSpec *newfonts [4];" type_identifier (pointer_declarator "*newfonts [4]" * (array_declarator "newfonts [4]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(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 "newfonts[0] = (FontSpec *)0x0;" (assignment_expression "newfonts[0] = (FontSpec *)0x0" (subscript_expression "newfonts[0]" identifier [ number_literal ]) = (cast_expression "(FontSpec *)0x0" ( (type_descriptor "FontSpec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "oldfonts[0] = (FontSpec *)0x0;" (assignment_expression "oldfonts[0] = (FontSpec *)0x0" (subscript_expression "oldfonts[0]" identifier [ number_literal ]) = (cast_expression "(FontSpec *)0x0" ( (type_descriptor "FontSpec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "newfonts[1] = (FontSpec *)0x0;" (assignment_expression "newfonts[1] = (FontSpec *)0x0" (subscript_expression "newfonts[1]" identifier [ number_literal ]) = (cast_expression "(FontSpec *)0x0" ( (type_descriptor "FontSpec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "oldfonts[1] = (FontSpec *)0x0;" (assignment_expression "oldfonts[1] = (FontSpec *)0x0" (subscript_expression "oldfonts[1]" identifier [ number_literal ]) = (cast_expression "(FontSpec *)0x0" ( (type_descriptor "FontSpec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "newfonts[2] = (FontSpec *)0x0;" (assignment_expression "newfonts[2] = (FontSpec *)0x0" (subscript_expression "newfonts[2]" identifier [ number_literal ]) = (cast_expression "(FontSpec *)0x0" ( (type_descriptor "FontSpec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "oldfonts[2] = (FontSpec *)0x0;" (assignment_expression "oldfonts[2] = (FontSpec *)0x0" (subscript_expression "oldfonts[2]" identifier [ number_literal ]) = (cast_expression "(FontSpec *)0x0" ( (type_descriptor "FontSpec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "newfonts[3] = (FontSpec *)0x0;" (assignment_expression "newfonts[3] = (FontSpec *)0x0" (subscript_expression "newfonts[3]" identifier [ number_literal ]) = (cast_expression "(FontSpec *)0x0" ( (type_descriptor "FontSpec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "oldfonts[3] = (FontSpec *)0x0;" (assignment_expression "oldfonts[3] = (FontSpec *)0x0" (subscript_expression "oldfonts[3]" identifier [ number_literal ]) = (cast_expression "(FontSpec *)0x0" ( (type_descriptor "FontSpec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if (inst->fonts[iVar6] != (unifont *)0x0) {\n      name = unifont_size_increment(inst->fonts[iVar6],increment);\n      if (name == (char *)0x0) {\n        local_50 = (char *)0x0;\n        pFVar3 = (FontSpec *)0x0;\n        goto LAB_00054888;\n      }\n      pFVar3 = fontspec_new(name);\n      newfonts[iVar6] = pFVar3;\n      safefree(name);\n    }\n    iVar6 = iVar6 + 1;\n  } while (iVar6 != 4);" do (compound_statement "{\n    if (inst->fonts[iVar6] != (unifont *)0x0) {\n      name = unifont_size_increment(inst->fonts[iVar6],increment);\n      if (name == (char *)0x0) {\n        local_50 = (char *)0x0;\n        pFVar3 = (FontSpec *)0x0;\n        goto LAB_00054888;\n      }\n      pFVar3 = fontspec_new(name);\n      newfonts[iVar6] = pFVar3;\n      safefree(name);\n    }\n    iVar6 = iVar6 + 1;\n  }" { (if_statement "if (inst->fonts[iVar6] != (unifont *)0x0) {\n      name = unifont_size_increment(inst->fonts[iVar6],increment);\n      if (name == (char *)0x0) {\n        local_50 = (char *)0x0;\n        pFVar3 = (FontSpec *)0x0;\n        goto LAB_00054888;\n      }\n      pFVar3 = fontspec_new(name);\n      newfonts[iVar6] = pFVar3;\n      safefree(name);\n    }" if (parenthesized_expression "(inst->fonts[iVar6] != (unifont *)0x0)" ( (binary_expression "inst->fonts[iVar6] != (unifont *)0x0" (subscript_expression "inst->fonts[iVar6]" (field_expression "inst->fonts" identifier -> field_identifier) [ identifier ]) != (cast_expression "(unifont *)0x0" ( (type_descriptor "unifont *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      name = unifont_size_increment(inst->fonts[iVar6],increment);\n      if (name == (char *)0x0) {\n        local_50 = (char *)0x0;\n        pFVar3 = (FontSpec *)0x0;\n        goto LAB_00054888;\n      }\n      pFVar3 = fontspec_new(name);\n      newfonts[iVar6] = pFVar3;\n      safefree(name);\n    }" { (expression_statement "name = unifont_size_increment(inst->fonts[iVar6],increment);" (assignment_expression "name = unifont_size_increment(inst->fonts[iVar6],increment)" identifier = (call_expression "unifont_size_increment(inst->fonts[iVar6],increment)" identifier (argument_list "(inst->fonts[iVar6],increment)" ( (subscript_expression "inst->fonts[iVar6]" (field_expression "inst->fonts" identifier -> field_identifier) [ identifier ]) , identifier )))) ;) (if_statement "if (name == (char *)0x0) {\n        local_50 = (char *)0x0;\n        pFVar3 = (FontSpec *)0x0;\n        goto LAB_00054888;\n      }" if (parenthesized_expression "(name == (char *)0x0)" ( (binary_expression "name == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        local_50 = (char *)0x0;\n        pFVar3 = (FontSpec *)0x0;\n        goto LAB_00054888;\n      }" { (expression_statement "local_50 = (char *)0x0;" (assignment_expression "local_50 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pFVar3 = (FontSpec *)0x0;" (assignment_expression "pFVar3 = (FontSpec *)0x0" identifier = (cast_expression "(FontSpec *)0x0" ( (type_descriptor "FontSpec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_00054888;" goto statement_identifier ;) })) (expression_statement "pFVar3 = fontspec_new(name);" (assignment_expression "pFVar3 = fontspec_new(name)" identifier = (call_expression "fontspec_new(name)" identifier (argument_list "(name)" ( identifier )))) ;) (expression_statement "newfonts[iVar6] = pFVar3;" (assignment_expression "newfonts[iVar6] = pFVar3" (subscript_expression "newfonts[iVar6]" identifier [ identifier ]) = identifier) ;) (expression_statement "safefree(name);" (call_expression "safefree(name)" identifier (argument_list "(name)" ( identifier ))) ;) })) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 4)" ( (binary_expression "iVar6 != 4" identifier != number_literal) )) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n    pFVar3 = newfonts[iVar6];\n    if (pFVar3 != (FontSpec *)0x0) {\n      iVar5 = change_font_size::conf_keys[iVar6];\n      pFVar4 = conf_get_fontspec(inst->conf,iVar5);\n      pFVar4 = fontspec_copy(pFVar4);\n      oldfonts[iVar6] = pFVar4;\n      conf_set_fontspec(inst->conf,iVar5,pFVar3);\n    }\n    iVar6 = iVar6 + 1;\n  } while (iVar6 != 4);" do (compound_statement "{\n    pFVar3 = newfonts[iVar6];\n    if (pFVar3 != (FontSpec *)0x0) {\n      iVar5 = change_font_size::conf_keys[iVar6];\n      pFVar4 = conf_get_fontspec(inst->conf,iVar5);\n      pFVar4 = fontspec_copy(pFVar4);\n      oldfonts[iVar6] = pFVar4;\n      conf_set_fontspec(inst->conf,iVar5,pFVar3);\n    }\n    iVar6 = iVar6 + 1;\n  }" { (expression_statement "pFVar3 = newfonts[iVar6];" (assignment_expression "pFVar3 = newfonts[iVar6]" identifier = (subscript_expression "newfonts[iVar6]" identifier [ identifier ])) ;) (if_statement "if (pFVar3 != (FontSpec *)0x0) {\n      iVar5 = change_font_size::conf_keys[iVar6];\n      pFVar4 = conf_get_fontspec(inst->conf,iVar5);\n      pFVar4 = fontspec_copy(pFVar4);\n      oldfonts[iVar6] = pFVar4;\n      conf_set_fontspec(inst->conf,iVar5,pFVar3);\n    }" if (parenthesized_expression "(pFVar3 != (FontSpec *)0x0)" ( (binary_expression "pFVar3 != (FontSpec *)0x0" identifier != (cast_expression "(FontSpec *)0x0" ( (type_descriptor "FontSpec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar5 = change_font_size::conf_keys[iVar6];\n      pFVar4 = conf_get_fontspec(inst->conf,iVar5);\n      pFVar4 = fontspec_copy(pFVar4);\n      oldfonts[iVar6] = pFVar4;\n      conf_set_fontspec(inst->conf,iVar5,pFVar3);\n    }" { (expression_statement "iVar5 = change_font_size::conf_keys[iVar6];" (subscript_expression "iVar5 = change_font_size::conf_keys[iVar6]" (assignment_expression "iVar5 = change_font_size" identifier = identifier) (ERROR "::conf_keys" : : identifier) [ identifier ]) ;) (expression_statement "pFVar4 = conf_get_fontspec(inst->conf,iVar5);" (assignment_expression "pFVar4 = conf_get_fontspec(inst->conf,iVar5)" identifier = (call_expression "conf_get_fontspec(inst->conf,iVar5)" identifier (argument_list "(inst->conf,iVar5)" ( (field_expression "inst->conf" identifier -> field_identifier) , identifier )))) ;) (expression_statement "pFVar4 = fontspec_copy(pFVar4);" (assignment_expression "pFVar4 = fontspec_copy(pFVar4)" identifier = (call_expression "fontspec_copy(pFVar4)" identifier (argument_list "(pFVar4)" ( identifier )))) ;) (expression_statement "oldfonts[iVar6] = pFVar4;" (assignment_expression "oldfonts[iVar6] = pFVar4" (subscript_expression "oldfonts[iVar6]" identifier [ identifier ]) = identifier) ;) (expression_statement "conf_set_fontspec(inst->conf,iVar5,pFVar3);" (call_expression "conf_set_fontspec(inst->conf,iVar5,pFVar3)" identifier (argument_list "(inst->conf,iVar5,pFVar3)" ( (field_expression "inst->conf" identifier -> field_identifier) , identifier , identifier ))) ;) })) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 4)" ( (binary_expression "iVar6 != 4" identifier != number_literal) )) ;) (expression_statement "local_50 = setup_fonts_ucs(inst);" (assignment_expression "local_50 = setup_fonts_ucs(inst)" identifier = (call_expression "setup_fonts_ucs(inst)" identifier (argument_list "(inst)" ( identifier )))) ;) (expression_statement "pFVar3 = oldfonts[0];" (assignment_expression "pFVar3 = oldfonts[0]" identifier = (subscript_expression "oldfonts[0]" identifier [ number_literal ])) ;) (if_statement "if (local_50 == (char *)0x0) {\n    ppFVar1 = oldfonts;\n    while( true ) {\n      if (pFVar3 != (FontSpec *)0x0) {\n        fontspec_free(pFVar3);\n        *ppFVar1 = (FontSpec *)0x0;\n      }\n      ppFVar1 = ppFVar1 + 1;\n      if (ppFVar1 == newfonts) break;\n      pFVar3 = *ppFVar1;\n    }\n    set_geom_hints(inst);\n    iVar6 = conf_get_int(inst->conf,0x74);\n    iVar5 = conf_get_int(inst->conf,0x73);\n    request_resize(inst,iVar5,iVar6);\n    term_invalidate(inst->term);\n    gtk_widget_queue_draw(inst->area);\n    pFVar3 = oldfonts[0];\n  }" if (parenthesized_expression "(local_50 == (char *)0x0)" ( (binary_expression "local_50 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ppFVar1 = oldfonts;\n    while( true ) {\n      if (pFVar3 != (FontSpec *)0x0) {\n        fontspec_free(pFVar3);\n        *ppFVar1 = (FontSpec *)0x0;\n      }\n      ppFVar1 = ppFVar1 + 1;\n      if (ppFVar1 == newfonts) break;\n      pFVar3 = *ppFVar1;\n    }\n    set_geom_hints(inst);\n    iVar6 = conf_get_int(inst->conf,0x74);\n    iVar5 = conf_get_int(inst->conf,0x73);\n    request_resize(inst,iVar5,iVar6);\n    term_invalidate(inst->term);\n    gtk_widget_queue_draw(inst->area);\n    pFVar3 = oldfonts[0];\n  }" { (expression_statement "ppFVar1 = oldfonts;" (assignment_expression "ppFVar1 = oldfonts" identifier = identifier) ;) (while_statement "while( true ) {\n      if (pFVar3 != (FontSpec *)0x0) {\n        fontspec_free(pFVar3);\n        *ppFVar1 = (FontSpec *)0x0;\n      }\n      ppFVar1 = ppFVar1 + 1;\n      if (ppFVar1 == newfonts) break;\n      pFVar3 = *ppFVar1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (pFVar3 != (FontSpec *)0x0) {\n        fontspec_free(pFVar3);\n        *ppFVar1 = (FontSpec *)0x0;\n      }\n      ppFVar1 = ppFVar1 + 1;\n      if (ppFVar1 == newfonts) break;\n      pFVar3 = *ppFVar1;\n    }" { (if_statement "if (pFVar3 != (FontSpec *)0x0) {\n        fontspec_free(pFVar3);\n        *ppFVar1 = (FontSpec *)0x0;\n      }" if (parenthesized_expression "(pFVar3 != (FontSpec *)0x0)" ( (binary_expression "pFVar3 != (FontSpec *)0x0" identifier != (cast_expression "(FontSpec *)0x0" ( (type_descriptor "FontSpec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        fontspec_free(pFVar3);\n        *ppFVar1 = (FontSpec *)0x0;\n      }" { (expression_statement "fontspec_free(pFVar3);" (call_expression "fontspec_free(pFVar3)" identifier (argument_list "(pFVar3)" ( identifier ))) ;) (expression_statement "*ppFVar1 = (FontSpec *)0x0;" (assignment_expression "*ppFVar1 = (FontSpec *)0x0" (pointer_expression "*ppFVar1" * identifier) = (cast_expression "(FontSpec *)0x0" ( (type_descriptor "FontSpec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "ppFVar1 = ppFVar1 + 1;" (assignment_expression "ppFVar1 = ppFVar1 + 1" identifier = (binary_expression "ppFVar1 + 1" identifier + number_literal)) ;) (if_statement "if (ppFVar1 == newfonts) break;" if (parenthesized_expression "(ppFVar1 == newfonts)" ( (binary_expression "ppFVar1 == newfonts" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "pFVar3 = *ppFVar1;" (assignment_expression "pFVar3 = *ppFVar1" identifier = (pointer_expression "*ppFVar1" * identifier)) ;) })) (expression_statement "set_geom_hints(inst);" (call_expression "set_geom_hints(inst)" identifier (argument_list "(inst)" ( identifier ))) ;) (expression_statement "iVar6 = conf_get_int(inst->conf,0x74);" (assignment_expression "iVar6 = conf_get_int(inst->conf,0x74)" identifier = (call_expression "conf_get_int(inst->conf,0x74)" identifier (argument_list "(inst->conf,0x74)" ( (field_expression "inst->conf" identifier -> field_identifier) , number_literal )))) ;) (expression_statement "iVar5 = conf_get_int(inst->conf,0x73);" (assignment_expression "iVar5 = conf_get_int(inst->conf,0x73)" identifier = (call_expression "conf_get_int(inst->conf,0x73)" identifier (argument_list "(inst->conf,0x73)" ( (field_expression "inst->conf" identifier -> field_identifier) , number_literal )))) ;) (expression_statement "request_resize(inst,iVar5,iVar6);" (call_expression "request_resize(inst,iVar5,iVar6)" identifier (argument_list "(inst,iVar5,iVar6)" ( identifier , identifier , identifier ))) ;) (expression_statement "term_invalidate(inst->term);" (call_expression "term_invalidate(inst->term)" identifier (argument_list "(inst->term)" ( (field_expression "inst->term" identifier -> field_identifier) ))) ;) (expression_statement "gtk_widget_queue_draw(inst->area);" (call_expression "gtk_widget_queue_draw(inst->area)" identifier (argument_list "(inst->area)" ( (field_expression "inst->area" identifier -> field_identifier) ))) ;) (expression_statement "pFVar3 = oldfonts[0];" (assignment_expression "pFVar3 = oldfonts[0]" identifier = (subscript_expression "oldfonts[0]" identifier [ number_literal ])) ;) })) (labeled_statement "LAB_00054888:\n  iVar6 = 0;" statement_identifier : (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;)) (while_statement "while( true ) {\n    if (pFVar3 != (FontSpec *)0x0) {\n      conf_set_fontspec(inst->conf,change_font_size::conf_keys[iVar6],pFVar3);\n      fontspec_free(pFVar3);\n    }\n    pFVar3 = newfonts[iVar6];\n    if (pFVar3 != (FontSpec *)0x0) {\n      fontspec_free(pFVar3);\n    }\n    iVar6 = iVar6 + 1;\n    if (iVar6 == 4) break;\n    pFVar3 = oldfonts[iVar6];\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (pFVar3 != (FontSpec *)0x0) {\n      conf_set_fontspec(inst->conf,change_font_size::conf_keys[iVar6],pFVar3);\n      fontspec_free(pFVar3);\n    }\n    pFVar3 = newfonts[iVar6];\n    if (pFVar3 != (FontSpec *)0x0) {\n      fontspec_free(pFVar3);\n    }\n    iVar6 = iVar6 + 1;\n    if (iVar6 == 4) break;\n    pFVar3 = oldfonts[iVar6];\n  }" { (if_statement "if (pFVar3 != (FontSpec *)0x0) {\n      conf_set_fontspec(inst->conf,change_font_size::conf_keys[iVar6],pFVar3);\n      fontspec_free(pFVar3);\n    }" if (parenthesized_expression "(pFVar3 != (FontSpec *)0x0)" ( (binary_expression "pFVar3 != (FontSpec *)0x0" identifier != (cast_expression "(FontSpec *)0x0" ( (type_descriptor "FontSpec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      conf_set_fontspec(inst->conf,change_font_size::conf_keys[iVar6],pFVar3);\n      fontspec_free(pFVar3);\n    }" { (expression_statement "conf_set_fontspec(inst->conf,change_font_size::conf_keys[iVar6],pFVar3);" (call_expression "conf_set_fontspec(inst->conf,change_font_size::conf_keys[iVar6],pFVar3)" identifier (argument_list "(inst->conf,change_font_size::conf_keys[iVar6],pFVar3)" ( (field_expression "inst->conf" identifier -> field_identifier) , (subscript_expression "change_font_size::conf_keys[iVar6]" identifier (ERROR "::conf_keys" : : identifier) [ identifier ]) , identifier ))) ;) (expression_statement "fontspec_free(pFVar3);" (call_expression "fontspec_free(pFVar3)" identifier (argument_list "(pFVar3)" ( identifier ))) ;) })) (expression_statement "pFVar3 = newfonts[iVar6];" (assignment_expression "pFVar3 = newfonts[iVar6]" identifier = (subscript_expression "newfonts[iVar6]" identifier [ identifier ])) ;) (if_statement "if (pFVar3 != (FontSpec *)0x0) {\n      fontspec_free(pFVar3);\n    }" if (parenthesized_expression "(pFVar3 != (FontSpec *)0x0)" ( (binary_expression "pFVar3 != (FontSpec *)0x0" identifier != (cast_expression "(FontSpec *)0x0" ( (type_descriptor "FontSpec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      fontspec_free(pFVar3);\n    }" { (expression_statement "fontspec_free(pFVar3);" (call_expression "fontspec_free(pFVar3)" identifier (argument_list "(pFVar3)" ( identifier ))) ;) })) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if (iVar6 == 4) break;" if (parenthesized_expression "(iVar6 == 4)" ( (binary_expression "iVar6 == 4" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pFVar3 = oldfonts[iVar6];" (assignment_expression "pFVar3 = oldfonts[iVar6]" identifier = (subscript_expression "oldfonts[iVar6]" identifier [ identifier ])) ;) })) (expression_statement "safefree(local_50);" (call_expression "safefree(local_50)" identifier (argument_list "(local_50)" ( identifier ))) ;) (if_statement "if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar2 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 != *(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                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00054760(int param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  int local_50;\n  int local_40 [11];\n  undefined4 uStack_14;\n  \n  iVar7 = 0;\n  uStack_14 = 0x5476d;\n  piVar1 = local_40 + 4;\n  local_40[8] = *(int *)(in_GS_OFFSET + 0x14);\n  local_40[4] = 0;\n  local_40[0] = 0;\n  local_40[5] = 0;\n  local_40[1] = 0;\n  local_40[6] = 0;\n  local_40[2] = 0;\n  local_40[7] = 0;\n  local_40[3] = 0;\n  do {\n    iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4);\n    if (iVar3 != 0) {\n      iVar3 = FUN_0004dba0(iVar3,param_2);\n      if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }\n      iVar4 = FUN_00058020(iVar3);\n      piVar1[iVar7] = iVar4;\n      FUN_0002c6a0(iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);\n  iVar7 = 0;\n  do {\n    iVar3 = piVar1[iVar7];\n    if (iVar3 != 0) {\n      uVar6 = (&DAT_0007a1c8)[iVar7];\n      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);\n      iVar4 = FUN_00058050(uVar5);\n      local_40[iVar7] = iVar4;\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);\n  local_50 = FUN_00054380(param_1);\n  iVar7 = local_40[0];\n  if (local_50 == 0) {\n    piVar2 = local_40;\n    while( true ) {\n      if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }\n      piVar2 = piVar2 + 1;\n      if (piVar2 == piVar1) break;\n      iVar7 = *piVar2;\n    }\n    FUN_000546e0(param_1);\n    uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74);\n    uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73);\n    FUN_00052220(param_1,uVar5,uVar6);\n    FUN_00036450(*(undefined4 *)(param_1 + 0xd1c));\n    gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4));\n    iVar7 = local_40[0];\n  }\nLAB_00054888:\n  iVar3 = 0;\n  while( true ) {\n    if (iVar7 != 0) {\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);\n      FUN_00058060(iVar7);\n    }\n    if (piVar1[iVar3] != 0) {\n      FUN_00058060(piVar1[iVar3]);\n    }\n    iVar3 = iVar3 + 1;\n    if (iVar3 == 4) break;\n    iVar7 = local_40[iVar3];\n  }\n  FUN_0002c6a0(local_50);\n  if (local_40[8] != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0005c430();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00054760(int param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  int local_50;\n  int local_40 [11];\n  undefined4 uStack_14;\n  \n  iVar7 = 0;\n  uStack_14 = 0x5476d;\n  piVar1 = local_40 + 4;\n  local_40[8] = *(int *)(in_GS_OFFSET + 0x14);\n  local_40[4] = 0;\n  local_40[0] = 0;\n  local_40[5] = 0;\n  local_40[1] = 0;\n  local_40[6] = 0;\n  local_40[2] = 0;\n  local_40[7] = 0;\n  local_40[3] = 0;\n  do {\n    iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4);\n    if (iVar3 != 0) {\n      iVar3 = FUN_0004dba0(iVar3,param_2);\n      if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }\n      iVar4 = FUN_00058020(iVar3);\n      piVar1[iVar7] = iVar4;\n      FUN_0002c6a0(iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);\n  iVar7 = 0;\n  do {\n    iVar3 = piVar1[iVar7];\n    if (iVar3 != 0) {\n      uVar6 = (&DAT_0007a1c8)[iVar7];\n      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);\n      iVar4 = FUN_00058050(uVar5);\n      local_40[iVar7] = iVar4;\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);\n  local_50 = FUN_00054380(param_1);\n  iVar7 = local_40[0];\n  if (local_50 == 0) {\n    piVar2 = local_40;\n    while( true ) {\n      if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }\n      piVar2 = piVar2 + 1;\n      if (piVar2 == piVar1) break;\n      iVar7 = *piVar2;\n    }\n    FUN_000546e0(param_1);\n    uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74);\n    uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73);\n    FUN_00052220(param_1,uVar5,uVar6);\n    FUN_00036450(*(undefined4 *)(param_1 + 0xd1c));\n    gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4));\n    iVar7 = local_40[0];\n  }\nLAB_00054888:\n  iVar3 = 0;\n  while( true ) {\n    if (iVar7 != 0) {\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);\n      FUN_00058060(iVar7);\n    }\n    if (piVar1[iVar3] != 0) {\n      FUN_00058060(piVar1[iVar3]);\n    }\n    iVar3 = iVar3 + 1;\n    if (iVar3 == 4) break;\n    iVar7 = local_40[iVar3];\n  }\n  FUN_0002c6a0(local_50);\n  if (local_40[8] != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0005c430();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00054760(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  int local_50;\n  int local_40 [11];\n  undefined4 uStack_14;\n  \n  iVar7 = 0;\n  uStack_14 = 0x5476d;\n  piVar1 = local_40 + 4;\n  local_40[8] = *(int *)(in_GS_OFFSET + 0x14);\n  local_40[4] = 0;\n  local_40[0] = 0;\n  local_40[5] = 0;\n  local_40[1] = 0;\n  local_40[6] = 0;\n  local_40[2] = 0;\n  local_40[7] = 0;\n  local_40[3] = 0;\n  do {\n    iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4);\n    if (iVar3 != 0) {\n      iVar3 = FUN_0004dba0(iVar3,param_2);\n      if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }\n      iVar4 = FUN_00058020(iVar3);\n      piVar1[iVar7] = iVar4;\n      FUN_0002c6a0(iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);\n  iVar7 = 0;\n  do {\n    iVar3 = piVar1[iVar7];\n    if (iVar3 != 0) {\n      uVar6 = (&DAT_0007a1c8)[iVar7];\n      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);\n      iVar4 = FUN_00058050(uVar5);\n      local_40[iVar7] = iVar4;\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);\n  local_50 = FUN_00054380(param_1);\n  iVar7 = local_40[0];\n  if (local_50 == 0) {\n    piVar2 = local_40;\n    while( true ) {\n      if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }\n      piVar2 = piVar2 + 1;\n      if (piVar2 == piVar1) break;\n      iVar7 = *piVar2;\n    }\n    FUN_000546e0(param_1);\n    uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74);\n    uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73);\n    FUN_00052220(param_1,uVar5,uVar6);\n    FUN_00036450(*(undefined4 *)(param_1 + 0xd1c));\n    gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4));\n    iVar7 = local_40[0];\n  }\nLAB_00054888:\n  iVar3 = 0;\n  while( true ) {\n    if (iVar7 != 0) {\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);\n      FUN_00058060(iVar7);\n    }\n    if (piVar1[iVar3] != 0) {\n      FUN_00058060(piVar1[iVar3]);\n    }\n    iVar3 = iVar3 + 1;\n    if (iVar3 == 4) break;\n    iVar7 = local_40[iVar3];\n  }\n  FUN_0002c6a0(local_50);\n  if (local_40[8] != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0005c430();\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_50;" primitive_type identifier ;) (declaration "int local_40 [11];" primitive_type (array_declarator "local_40 [11]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x5476d;" (assignment_expression "uStack_14 = 0x5476d" identifier = number_literal) ;) (expression_statement "piVar1 = local_40 + 4;" (assignment_expression "piVar1 = local_40 + 4" identifier = (binary_expression "local_40 + 4" identifier + number_literal)) ;) (expression_statement "local_40[8] = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_40[8] = *(int *)(in_GS_OFFSET + 0x14)" (subscript_expression "local_40[8]" identifier [ number_literal ]) = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_40[4] = 0;" (assignment_expression "local_40[4] = 0" (subscript_expression "local_40[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0] = 0;" (assignment_expression "local_40[0] = 0" (subscript_expression "local_40[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[5] = 0;" (assignment_expression "local_40[5] = 0" (subscript_expression "local_40[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[1] = 0;" (assignment_expression "local_40[1] = 0" (subscript_expression "local_40[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[6] = 0;" (assignment_expression "local_40[6] = 0" (subscript_expression "local_40[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[2] = 0;" (assignment_expression "local_40[2] = 0" (subscript_expression "local_40[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[7] = 0;" (assignment_expression "local_40[7] = 0" (subscript_expression "local_40[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[3] = 0;" (assignment_expression "local_40[3] = 0" (subscript_expression "local_40[3]" identifier [ number_literal ]) = number_literal) ;) (do_statement "do {\n    iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4);\n    if (iVar3 != 0) {\n      iVar3 = FUN_0004dba0(iVar3,param_2);\n      if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }\n      iVar4 = FUN_00058020(iVar3);\n      piVar1[iVar7] = iVar4;\n      FUN_0002c6a0(iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);" do (compound_statement "{\n    iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4);\n    if (iVar3 != 0) {\n      iVar3 = FUN_0004dba0(iVar3,param_2);\n      if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }\n      iVar4 = FUN_00058020(iVar3);\n      piVar1[iVar7] = iVar4;\n      FUN_0002c6a0(iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  }" { (expression_statement "iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4)" identifier = (pointer_expression "*(int *)(param_1 + 0x3c + iVar7 * 4)" * (cast_expression "(int *)(param_1 + 0x3c + iVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c + iVar7 * 4)" ( (binary_expression "param_1 + 0x3c + iVar7 * 4" (binary_expression "param_1 + 0x3c" identifier + number_literal) + (binary_expression "iVar7 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (iVar3 != 0) {\n      iVar3 = FUN_0004dba0(iVar3,param_2);\n      if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }\n      iVar4 = FUN_00058020(iVar3);\n      piVar1[iVar7] = iVar4;\n      FUN_0002c6a0(iVar3);\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar3 = FUN_0004dba0(iVar3,param_2);\n      if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }\n      iVar4 = FUN_00058020(iVar3);\n      piVar1[iVar7] = iVar4;\n      FUN_0002c6a0(iVar3);\n    }" { (expression_statement "iVar3 = FUN_0004dba0(iVar3,param_2);" (assignment_expression "iVar3 = FUN_0004dba0(iVar3,param_2)" identifier = (call_expression "FUN_0004dba0(iVar3,param_2)" identifier (argument_list "(iVar3,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }" { (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00054888;" goto statement_identifier ;) })) (expression_statement "iVar4 = FUN_00058020(iVar3);" (assignment_expression "iVar4 = FUN_00058020(iVar3)" identifier = (call_expression "FUN_00058020(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "piVar1[iVar7] = iVar4;" (assignment_expression "piVar1[iVar7] = iVar4" (subscript_expression "piVar1[iVar7]" identifier [ identifier ]) = identifier) ;) (expression_statement "FUN_0002c6a0(iVar3);" (call_expression "FUN_0002c6a0(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) })) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != 4)" ( (binary_expression "iVar7 != 4" identifier != number_literal) )) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar3 = piVar1[iVar7];\n    if (iVar3 != 0) {\n      uVar6 = (&DAT_0007a1c8)[iVar7];\n      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);\n      iVar4 = FUN_00058050(uVar5);\n      local_40[iVar7] = iVar4;\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);" do (compound_statement "{\n    iVar3 = piVar1[iVar7];\n    if (iVar3 != 0) {\n      uVar6 = (&DAT_0007a1c8)[iVar7];\n      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);\n      iVar4 = FUN_00058050(uVar5);\n      local_40[iVar7] = iVar4;\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  }" { (expression_statement "iVar3 = piVar1[iVar7];" (assignment_expression "iVar3 = piVar1[iVar7]" identifier = (subscript_expression "piVar1[iVar7]" identifier [ identifier ])) ;) (if_statement "if (iVar3 != 0) {\n      uVar6 = (&DAT_0007a1c8)[iVar7];\n      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);\n      iVar4 = FUN_00058050(uVar5);\n      local_40[iVar7] = iVar4;\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar6 = (&DAT_0007a1c8)[iVar7];\n      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);\n      iVar4 = FUN_00058050(uVar5);\n      local_40[iVar7] = iVar4;\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);\n    }" { (expression_statement "uVar6 = (&DAT_0007a1c8)[iVar7];" (assignment_expression "uVar6 = (&DAT_0007a1c8)[iVar7]" identifier = (subscript_expression "(&DAT_0007a1c8)[iVar7]" (parenthesized_expression "(&DAT_0007a1c8)" ( (pointer_expression "&DAT_0007a1c8" & identifier) )) [ identifier ])) ;) (expression_statement "uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);" (assignment_expression "uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6)" identifier = (call_expression "FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x2238),uVar6)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x2238)" * (cast_expression "(undefined4 *)(param_1 + 0x2238)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2238)" ( (binary_expression "param_1 + 0x2238" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "iVar4 = FUN_00058050(uVar5);" (assignment_expression "iVar4 = FUN_00058050(uVar5)" identifier = (call_expression "FUN_00058050(uVar5)" identifier (argument_list "(uVar5)" ( identifier )))) ;) (expression_statement "local_40[iVar7] = iVar4;" (assignment_expression "local_40[iVar7] = iVar4" (subscript_expression "local_40[iVar7]" identifier [ identifier ]) = identifier) ;) (expression_statement "FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);" (call_expression "FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x2238)" * (cast_expression "(undefined4 *)(param_1 + 0x2238)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2238)" ( (binary_expression "param_1 + 0x2238" identifier + number_literal) )))) , identifier , identifier ))) ;) })) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != 4)" ( (binary_expression "iVar7 != 4" identifier != number_literal) )) ;) (expression_statement "local_50 = FUN_00054380(param_1);" (assignment_expression "local_50 = FUN_00054380(param_1)" identifier = (call_expression "FUN_00054380(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar7 = local_40[0];" (assignment_expression "iVar7 = local_40[0]" identifier = (subscript_expression "local_40[0]" identifier [ number_literal ])) ;) (if_statement "if (local_50 == 0) {\n    piVar2 = local_40;\n    while( true ) {\n      if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }\n      piVar2 = piVar2 + 1;\n      if (piVar2 == piVar1) break;\n      iVar7 = *piVar2;\n    }\n    FUN_000546e0(param_1);\n    uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74);\n    uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73);\n    FUN_00052220(param_1,uVar5,uVar6);\n    FUN_00036450(*(undefined4 *)(param_1 + 0xd1c));\n    gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4));\n    iVar7 = local_40[0];\n  }" if (parenthesized_expression "(local_50 == 0)" ( (binary_expression "local_50 == 0" identifier == number_literal) )) (compound_statement "{\n    piVar2 = local_40;\n    while( true ) {\n      if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }\n      piVar2 = piVar2 + 1;\n      if (piVar2 == piVar1) break;\n      iVar7 = *piVar2;\n    }\n    FUN_000546e0(param_1);\n    uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74);\n    uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73);\n    FUN_00052220(param_1,uVar5,uVar6);\n    FUN_00036450(*(undefined4 *)(param_1 + 0xd1c));\n    gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4));\n    iVar7 = local_40[0];\n  }" { (expression_statement "piVar2 = local_40;" (assignment_expression "piVar2 = local_40" identifier = identifier) ;) (while_statement "while( true ) {\n      if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }\n      piVar2 = piVar2 + 1;\n      if (piVar2 == piVar1) break;\n      iVar7 = *piVar2;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }\n      piVar2 = piVar2 + 1;\n      if (piVar2 == piVar1) break;\n      iVar7 = *piVar2;\n    }" { (if_statement "if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }" { (expression_statement "FUN_00058060(iVar7);" (call_expression "FUN_00058060(iVar7)" identifier (argument_list "(iVar7)" ( identifier ))) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) })) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (if_statement "if (piVar2 == piVar1) break;" if (parenthesized_expression "(piVar2 == piVar1)" ( (binary_expression "piVar2 == piVar1" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = *piVar2;" (assignment_expression "iVar7 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) (expression_statement "FUN_000546e0(param_1);" (call_expression "FUN_000546e0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74);" (assignment_expression "uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74)" identifier = (call_expression "FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x2238),0x74)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x2238)" * (cast_expression "(undefined4 *)(param_1 + 0x2238)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2238)" ( (binary_expression "param_1 + 0x2238" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73);" (assignment_expression "uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73)" identifier = (call_expression "FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x2238),0x73)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x2238)" * (cast_expression "(undefined4 *)(param_1 + 0x2238)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2238)" ( (binary_expression "param_1 + 0x2238" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "FUN_00052220(param_1,uVar5,uVar6);" (call_expression "FUN_00052220(param_1,uVar5,uVar6)" identifier (argument_list "(param_1,uVar5,uVar6)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_00036450(*(undefined4 *)(param_1 + 0xd1c));" (call_expression "FUN_00036450(*(undefined4 *)(param_1 + 0xd1c))" identifier (argument_list "(*(undefined4 *)(param_1 + 0xd1c))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xd1c)" * (cast_expression "(undefined4 *)(param_1 + 0xd1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd1c)" ( (binary_expression "param_1 + 0xd1c" identifier + number_literal) )))) ))) ;) (expression_statement "gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4));" (call_expression "gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "iVar7 = local_40[0];" (assignment_expression "iVar7 = local_40[0]" identifier = (subscript_expression "local_40[0]" identifier [ number_literal ])) ;) })) (labeled_statement "LAB_00054888:\n  iVar3 = 0;" statement_identifier : (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;)) (while_statement "while( true ) {\n    if (iVar7 != 0) {\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);\n      FUN_00058060(iVar7);\n    }\n    if (piVar1[iVar3] != 0) {\n      FUN_00058060(piVar1[iVar3]);\n    }\n    iVar3 = iVar3 + 1;\n    if (iVar3 == 4) break;\n    iVar7 = local_40[iVar3];\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (iVar7 != 0) {\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);\n      FUN_00058060(iVar7);\n    }\n    if (piVar1[iVar3] != 0) {\n      FUN_00058060(piVar1[iVar3]);\n    }\n    iVar3 = iVar3 + 1;\n    if (iVar3 == 4) break;\n    iVar7 = local_40[iVar3];\n  }" { (if_statement "if (iVar7 != 0) {\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);\n      FUN_00058060(iVar7);\n    }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);\n      FUN_00058060(iVar7);\n    }" { (expression_statement "FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);" (call_expression "FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x2238)" * (cast_expression "(undefined4 *)(param_1 + 0x2238)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2238)" ( (binary_expression "param_1 + 0x2238" identifier + number_literal) )))) , (subscript_expression "(&DAT_0007a1c8)[iVar3]" (parenthesized_expression "(&DAT_0007a1c8)" ( (pointer_expression "&DAT_0007a1c8" & identifier) )) [ identifier ]) , identifier ))) ;) (expression_statement "FUN_00058060(iVar7);" (call_expression "FUN_00058060(iVar7)" identifier (argument_list "(iVar7)" ( identifier ))) ;) })) (if_statement "if (piVar1[iVar3] != 0) {\n      FUN_00058060(piVar1[iVar3]);\n    }" if (parenthesized_expression "(piVar1[iVar3] != 0)" ( (binary_expression "piVar1[iVar3] != 0" (subscript_expression "piVar1[iVar3]" identifier [ identifier ]) != number_literal) )) (compound_statement "{\n      FUN_00058060(piVar1[iVar3]);\n    }" { (expression_statement "FUN_00058060(piVar1[iVar3]);" (call_expression "FUN_00058060(piVar1[iVar3])" identifier (argument_list "(piVar1[iVar3])" ( (subscript_expression "piVar1[iVar3]" identifier [ identifier ]) ))) ;) })) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if (iVar3 == 4) break;" if (parenthesized_expression "(iVar3 == 4)" ( (binary_expression "iVar3 == 4" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = local_40[iVar3];" (assignment_expression "iVar7 = local_40[iVar3]" identifier = (subscript_expression "local_40[iVar3]" identifier [ identifier ])) ;) })) (expression_statement "FUN_0002c6a0(local_50);" (call_expression "FUN_0002c6a0(local_50)" identifier (argument_list "(local_50)" ( identifier ))) ;) (if_statement "if (local_40[8] != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0005c430();\n  }" if (parenthesized_expression "(local_40[8] != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_40[8] != *(int *)(in_GS_OFFSET + 0x14)" (subscript_expression "local_40[8]" identifier [ number_literal ]) != (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                    \n    FUN_0005c430();\n  }" { (expression_statement "FUN_0005c430();" (call_expression "FUN_0005c430()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ IDENT ]) ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00054760(int param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  int local_50;\n  int local_40 [11];\n  undefined4 uStack_14;\n  \n  iVar7 = 0;\n  uStack_14 = 0x5476d;\n  piVar1 = local_40 + 4;\n  local_40[8] = *(int *)(in_GS_OFFSET + 0x14);\n  local_40[4] = 0;\n  local_40[0] = 0;\n  local_40[5] = 0;\n  local_40[1] = 0;\n  local_40[6] = 0;\n  local_40[2] = 0;\n  local_40[7] = 0;\n  local_40[3] = 0;\n  do {\n    iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4);\n    if (iVar3 != 0) {\n      iVar3 = FUN_0004dba0(iVar3,param_2);\n      if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }\n      iVar4 = FUN_00058020(iVar3);\n      piVar1[iVar7] = iVar4;\n      FUN_0002c6a0(iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);\n  iVar7 = 0;\n  do {\n    iVar3 = piVar1[iVar7];\n    if (iVar3 != 0) {\n      uVar6 = (&DAT_0007a1c8)[iVar7];\n      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);\n      iVar4 = FUN_00058050(uVar5);\n      local_40[iVar7] = iVar4;\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);\n  local_50 = FUN_00054380(param_1);\n  iVar7 = local_40[0];\n  if (local_50 == 0) {\n    piVar2 = local_40;\n    while( true ) {\n      if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }\n      piVar2 = piVar2 + 1;\n      if (piVar2 == piVar1) break;\n      iVar7 = *piVar2;\n    }\n    FUN_000546e0(param_1);\n    uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74);\n    uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73);\n    FUN_00052220(param_1,uVar5,uVar6);\n    FUN_00036450(*(undefined4 *)(param_1 + 0xd1c));\n    gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4));\n    iVar7 = local_40[0];\n  }\nLAB_00054888:\n  iVar3 = 0;\n  while( true ) {\n    if (iVar7 != 0) {\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);\n      FUN_00058060(iVar7);\n    }\n    if (piVar1[iVar3] != 0) {\n      FUN_00058060(piVar1[iVar3]);\n    }\n    iVar3 = iVar3 + 1;\n    if (iVar3 == 4) break;\n    iVar7 = local_40[iVar3];\n  }\n  FUN_0002c6a0(local_50);\n  if (local_40[8] != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0005c430();\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00054760(int param_1,undefined4 param_2)" (identifier "FUN_00054760") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  int local_50;\n  int local_40 [11];\n  undefined4 uStack_14;\n  \n  iVar7 = 0;\n  uStack_14 = 0x5476d;\n  piVar1 = local_40 + 4;\n  local_40[8] = *(int *)(in_GS_OFFSET + 0x14);\n  local_40[4] = 0;\n  local_40[0] = 0;\n  local_40[5] = 0;\n  local_40[1] = 0;\n  local_40[6] = 0;\n  local_40[2] = 0;\n  local_40[7] = 0;\n  local_40[3] = 0;\n  do {\n    iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4);\n    if (iVar3 != 0) {\n      iVar3 = FUN_0004dba0(iVar3,param_2);\n      if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }\n      iVar4 = FUN_00058020(iVar3);\n      piVar1[iVar7] = iVar4;\n      FUN_0002c6a0(iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);\n  iVar7 = 0;\n  do {\n    iVar3 = piVar1[iVar7];\n    if (iVar3 != 0) {\n      uVar6 = (&DAT_0007a1c8)[iVar7];\n      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);\n      iVar4 = FUN_00058050(uVar5);\n      local_40[iVar7] = iVar4;\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);\n  local_50 = FUN_00054380(param_1);\n  iVar7 = local_40[0];\n  if (local_50 == 0) {\n    piVar2 = local_40;\n    while( true ) {\n      if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }\n      piVar2 = piVar2 + 1;\n      if (piVar2 == piVar1) break;\n      iVar7 = *piVar2;\n    }\n    FUN_000546e0(param_1);\n    uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74);\n    uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73);\n    FUN_00052220(param_1,uVar5,uVar6);\n    FUN_00036450(*(undefined4 *)(param_1 + 0xd1c));\n    gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4));\n    iVar7 = local_40[0];\n  }\nLAB_00054888:\n  iVar3 = 0;\n  while( true ) {\n    if (iVar7 != 0) {\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);\n      FUN_00058060(iVar7);\n    }\n    if (piVar1[iVar3] != 0) {\n      FUN_00058060(piVar1[iVar3]);\n    }\n    iVar3 = iVar3 + 1;\n    if (iVar3 == 4) break;\n    iVar7 = local_40[iVar3];\n  }\n  FUN_0002c6a0(local_50);\n  if (local_40[8] != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0005c430();\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_50;" (primitive_type "int") (identifier "local_50") (; ";")) (declaration "int local_40 [11];" (primitive_type "int") (array_declarator "local_40 [11]" (identifier "local_40") ([ "[") (number_literal "11") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "uStack_14 = 0x5476d;" (assignment_expression "uStack_14 = 0x5476d" (identifier "uStack_14") (= "=") (number_literal "0x5476d")) (; ";")) (expression_statement "piVar1 = local_40 + 4;" (assignment_expression "piVar1 = local_40 + 4" (identifier "piVar1") (= "=") (binary_expression "local_40 + 4" (identifier "local_40") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "local_40[8] = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_40[8] = *(int *)(in_GS_OFFSET + 0x14)" (subscript_expression "local_40[8]" (identifier "local_40") ([ "[") (number_literal "8") (] "]")) (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_40[4] = 0;" (assignment_expression "local_40[4] = 0" (subscript_expression "local_40[4]" (identifier "local_40") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[0] = 0;" (assignment_expression "local_40[0] = 0" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[5] = 0;" (assignment_expression "local_40[5] = 0" (subscript_expression "local_40[5]" (identifier "local_40") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[1] = 0;" (assignment_expression "local_40[1] = 0" (subscript_expression "local_40[1]" (identifier "local_40") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[6] = 0;" (assignment_expression "local_40[6] = 0" (subscript_expression "local_40[6]" (identifier "local_40") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[2] = 0;" (assignment_expression "local_40[2] = 0" (subscript_expression "local_40[2]" (identifier "local_40") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[7] = 0;" (assignment_expression "local_40[7] = 0" (subscript_expression "local_40[7]" (identifier "local_40") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[3] = 0;" (assignment_expression "local_40[3] = 0" (subscript_expression "local_40[3]" (identifier "local_40") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4);\n    if (iVar3 != 0) {\n      iVar3 = FUN_0004dba0(iVar3,param_2);\n      if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }\n      iVar4 = FUN_00058020(iVar3);\n      piVar1[iVar7] = iVar4;\n      FUN_0002c6a0(iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);" (do "do") (compound_statement "{\n    iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4);\n    if (iVar3 != 0) {\n      iVar3 = FUN_0004dba0(iVar3,param_2);\n      if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }\n      iVar4 = FUN_00058020(iVar3);\n      piVar1[iVar7] = iVar4;\n      FUN_0002c6a0(iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  }" ({ "{") (expression_statement "iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x3c + iVar7 * 4)" (* "*") (cast_expression "(int *)(param_1 + 0x3c + iVar7 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c + iVar7 * 4)" (( "(") (binary_expression "param_1 + 0x3c + iVar7 * 4" (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) (+ "+") (binary_expression "iVar7 * 4" (identifier "iVar7") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (iVar3 != 0) {\n      iVar3 = FUN_0004dba0(iVar3,param_2);\n      if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }\n      iVar4 = FUN_00058020(iVar3);\n      piVar1[iVar7] = iVar4;\n      FUN_0002c6a0(iVar3);\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = FUN_0004dba0(iVar3,param_2);\n      if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }\n      iVar4 = FUN_00058020(iVar3);\n      piVar1[iVar7] = iVar4;\n      FUN_0002c6a0(iVar3);\n    }" ({ "{") (expression_statement "iVar3 = FUN_0004dba0(iVar3,param_2);" (assignment_expression "iVar3 = FUN_0004dba0(iVar3,param_2)" (identifier "iVar3") (= "=") (call_expression "FUN_0004dba0(iVar3,param_2)" (identifier "FUN_0004dba0") (argument_list "(iVar3,param_2)" (( "(") (identifier "iVar3") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        local_50 = 0;\n        iVar7 = 0;\n        goto LAB_00054888;\n      }" ({ "{") (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" (identifier "local_50") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00054888;" (goto "goto") (statement_identifier "LAB_00054888") (; ";")) (} "}"))) (expression_statement "iVar4 = FUN_00058020(iVar3);" (assignment_expression "iVar4 = FUN_00058020(iVar3)" (identifier "iVar4") (= "=") (call_expression "FUN_00058020(iVar3)" (identifier "FUN_00058020") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "piVar1[iVar7] = iVar4;" (assignment_expression "piVar1[iVar7] = iVar4" (subscript_expression "piVar1[iVar7]" (identifier "piVar1") ([ "[") (identifier "iVar7") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "FUN_0002c6a0(iVar3);" (call_expression "FUN_0002c6a0(iVar3)" (identifier "FUN_0002c6a0") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar7 != 4)" (( "(") (binary_expression "iVar7 != 4" (identifier "iVar7") (!= "!=") (number_literal "4")) () ")")) (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    iVar3 = piVar1[iVar7];\n    if (iVar3 != 0) {\n      uVar6 = (&DAT_0007a1c8)[iVar7];\n      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);\n      iVar4 = FUN_00058050(uVar5);\n      local_40[iVar7] = iVar4;\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  } while (iVar7 != 4);" (do "do") (compound_statement "{\n    iVar3 = piVar1[iVar7];\n    if (iVar3 != 0) {\n      uVar6 = (&DAT_0007a1c8)[iVar7];\n      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);\n      iVar4 = FUN_00058050(uVar5);\n      local_40[iVar7] = iVar4;\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);\n    }\n    iVar7 = iVar7 + 1;\n  }" ({ "{") (expression_statement "iVar3 = piVar1[iVar7];" (assignment_expression "iVar3 = piVar1[iVar7]" (identifier "iVar3") (= "=") (subscript_expression "piVar1[iVar7]" (identifier "piVar1") ([ "[") (identifier "iVar7") (] "]"))) (; ";")) (if_statement "if (iVar3 != 0) {\n      uVar6 = (&DAT_0007a1c8)[iVar7];\n      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);\n      iVar4 = FUN_00058050(uVar5);\n      local_40[iVar7] = iVar4;\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar6 = (&DAT_0007a1c8)[iVar7];\n      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);\n      iVar4 = FUN_00058050(uVar5);\n      local_40[iVar7] = iVar4;\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);\n    }" ({ "{") (expression_statement "uVar6 = (&DAT_0007a1c8)[iVar7];" (assignment_expression "uVar6 = (&DAT_0007a1c8)[iVar7]" (identifier "uVar6") (= "=") (subscript_expression "(&DAT_0007a1c8)[iVar7]" (parenthesized_expression "(&DAT_0007a1c8)" (( "(") (pointer_expression "&DAT_0007a1c8" (& "&") (identifier "DAT_0007a1c8")) () ")")) ([ "[") (identifier "iVar7") (] "]"))) (; ";")) (expression_statement "uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);" (assignment_expression "uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6)" (identifier "uVar5") (= "=") (call_expression "FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6)" (identifier "FUN_0001dce0") (argument_list "(*(undefined4 *)(param_1 + 0x2238),uVar6)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x2238)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x2238)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2238)" (( "(") (binary_expression "param_1 + 0x2238" (identifier "param_1") (+ "+") (number_literal "0x2238")) () ")")))) (, ",") (identifier "uVar6") () ")")))) (; ";")) (expression_statement "iVar4 = FUN_00058050(uVar5);" (assignment_expression "iVar4 = FUN_00058050(uVar5)" (identifier "iVar4") (= "=") (call_expression "FUN_00058050(uVar5)" (identifier "FUN_00058050") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")")))) (; ";")) (expression_statement "local_40[iVar7] = iVar4;" (assignment_expression "local_40[iVar7] = iVar4" (subscript_expression "local_40[iVar7]" (identifier "local_40") ([ "[") (identifier "iVar7") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);" (call_expression "FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3)" (identifier "FUN_0001e1e0") (argument_list "(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x2238)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x2238)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2238)" (( "(") (binary_expression "param_1 + 0x2238" (identifier "param_1") (+ "+") (number_literal "0x2238")) () ")")))) (, ",") (identifier "uVar6") (, ",") (identifier "iVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar7 != 4)" (( "(") (binary_expression "iVar7 != 4" (identifier "iVar7") (!= "!=") (number_literal "4")) () ")")) (; ";")) (expression_statement "local_50 = FUN_00054380(param_1);" (assignment_expression "local_50 = FUN_00054380(param_1)" (identifier "local_50") (= "=") (call_expression "FUN_00054380(param_1)" (identifier "FUN_00054380") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar7 = local_40[0];" (assignment_expression "iVar7 = local_40[0]" (identifier "iVar7") (= "=") (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]"))) (; ";")) (if_statement "if (local_50 == 0) {\n    piVar2 = local_40;\n    while( true ) {\n      if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }\n      piVar2 = piVar2 + 1;\n      if (piVar2 == piVar1) break;\n      iVar7 = *piVar2;\n    }\n    FUN_000546e0(param_1);\n    uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74);\n    uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73);\n    FUN_00052220(param_1,uVar5,uVar6);\n    FUN_00036450(*(undefined4 *)(param_1 + 0xd1c));\n    gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4));\n    iVar7 = local_40[0];\n  }" (if "if") (parenthesized_expression "(local_50 == 0)" (( "(") (binary_expression "local_50 == 0" (identifier "local_50") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    piVar2 = local_40;\n    while( true ) {\n      if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }\n      piVar2 = piVar2 + 1;\n      if (piVar2 == piVar1) break;\n      iVar7 = *piVar2;\n    }\n    FUN_000546e0(param_1);\n    uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74);\n    uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73);\n    FUN_00052220(param_1,uVar5,uVar6);\n    FUN_00036450(*(undefined4 *)(param_1 + 0xd1c));\n    gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4));\n    iVar7 = local_40[0];\n  }" ({ "{") (expression_statement "piVar2 = local_40;" (assignment_expression "piVar2 = local_40" (identifier "piVar2") (= "=") (identifier "local_40")) (; ";")) (while_statement "while( true ) {\n      if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }\n      piVar2 = piVar2 + 1;\n      if (piVar2 == piVar1) break;\n      iVar7 = *piVar2;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }\n      piVar2 = piVar2 + 1;\n      if (piVar2 == piVar1) break;\n      iVar7 = *piVar2;\n    }" ({ "{") (if_statement "if (iVar7 != 0) {\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_00058060(iVar7);\n        *piVar2 = 0;\n      }" ({ "{") (expression_statement "FUN_00058060(iVar7);" (call_expression "FUN_00058060(iVar7)" (identifier "FUN_00058060") (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")"))) (; ";")) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (piVar2 == piVar1) break;" (if "if") (parenthesized_expression "(piVar2 == piVar1)" (( "(") (binary_expression "piVar2 == piVar1" (identifier "piVar2") (== "==") (identifier "piVar1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar7 = *piVar2;" (assignment_expression "iVar7 = *piVar2" (identifier "iVar7") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (} "}"))) (expression_statement "FUN_000546e0(param_1);" (call_expression "FUN_000546e0(param_1)" (identifier "FUN_000546e0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74);" (assignment_expression "uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74)" (identifier "uVar6") (= "=") (call_expression "FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74)" (identifier "FUN_0001d690") (argument_list "(*(undefined4 *)(param_1 + 0x2238),0x74)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x2238)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x2238)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2238)" (( "(") (binary_expression "param_1 + 0x2238" (identifier "param_1") (+ "+") (number_literal "0x2238")) () ")")))) (, ",") (number_literal "0x74") () ")")))) (; ";")) (expression_statement "uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73);" (assignment_expression "uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73)" (identifier "uVar5") (= "=") (call_expression "FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73)" (identifier "FUN_0001d690") (argument_list "(*(undefined4 *)(param_1 + 0x2238),0x73)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x2238)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x2238)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2238)" (( "(") (binary_expression "param_1 + 0x2238" (identifier "param_1") (+ "+") (number_literal "0x2238")) () ")")))) (, ",") (number_literal "0x73") () ")")))) (; ";")) (expression_statement "FUN_00052220(param_1,uVar5,uVar6);" (call_expression "FUN_00052220(param_1,uVar5,uVar6)" (identifier "FUN_00052220") (argument_list "(param_1,uVar5,uVar6)" (( "(") (identifier "param_1") (, ",") (identifier "uVar5") (, ",") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "FUN_00036450(*(undefined4 *)(param_1 + 0xd1c));" (call_expression "FUN_00036450(*(undefined4 *)(param_1 + 0xd1c))" (identifier "FUN_00036450") (argument_list "(*(undefined4 *)(param_1 + 0xd1c))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xd1c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xd1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd1c)" (( "(") (binary_expression "param_1 + 0xd1c" (identifier "param_1") (+ "+") (number_literal "0xd1c")) () ")")))) () ")"))) (; ";")) (expression_statement "gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4));" (call_expression "gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4))" (identifier "gtk_widget_queue_draw") (argument_list "(*(undefined4 *)(param_1 + 4))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar7 = local_40[0];" (assignment_expression "iVar7 = local_40[0]" (identifier "iVar7") (= "=") (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]"))) (; ";")) (} "}"))) (labeled_statement "LAB_00054888:\n  iVar3 = 0;" (statement_identifier "LAB_00054888") (: ":") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";"))) (while_statement "while( true ) {\n    if (iVar7 != 0) {\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);\n      FUN_00058060(iVar7);\n    }\n    if (piVar1[iVar3] != 0) {\n      FUN_00058060(piVar1[iVar3]);\n    }\n    iVar3 = iVar3 + 1;\n    if (iVar3 == 4) break;\n    iVar7 = local_40[iVar3];\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (iVar7 != 0) {\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);\n      FUN_00058060(iVar7);\n    }\n    if (piVar1[iVar3] != 0) {\n      FUN_00058060(piVar1[iVar3]);\n    }\n    iVar3 = iVar3 + 1;\n    if (iVar3 == 4) break;\n    iVar7 = local_40[iVar3];\n  }" ({ "{") (if_statement "if (iVar7 != 0) {\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);\n      FUN_00058060(iVar7);\n    }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);\n      FUN_00058060(iVar7);\n    }" ({ "{") (expression_statement "FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);" (call_expression "FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7)" (identifier "FUN_0001e1e0") (argument_list "(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x2238)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x2238)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2238)" (( "(") (binary_expression "param_1 + 0x2238" (identifier "param_1") (+ "+") (number_literal "0x2238")) () ")")))) (, ",") (subscript_expression "(&DAT_0007a1c8)[iVar3]" (parenthesized_expression "(&DAT_0007a1c8)" (( "(") (pointer_expression "&DAT_0007a1c8" (& "&") (identifier "DAT_0007a1c8")) () ")")) ([ "[") (identifier "iVar3") (] "]")) (, ",") (identifier "iVar7") () ")"))) (; ";")) (expression_statement "FUN_00058060(iVar7);" (call_expression "FUN_00058060(iVar7)" (identifier "FUN_00058060") (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")"))) (; ";")) (} "}"))) (if_statement "if (piVar1[iVar3] != 0) {\n      FUN_00058060(piVar1[iVar3]);\n    }" (if "if") (parenthesized_expression "(piVar1[iVar3] != 0)" (( "(") (binary_expression "piVar1[iVar3] != 0" (subscript_expression "piVar1[iVar3]" (identifier "piVar1") ([ "[") (identifier "iVar3") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00058060(piVar1[iVar3]);\n    }" ({ "{") (expression_statement "FUN_00058060(piVar1[iVar3]);" (call_expression "FUN_00058060(piVar1[iVar3])" (identifier "FUN_00058060") (argument_list "(piVar1[iVar3])" (( "(") (subscript_expression "piVar1[iVar3]" (identifier "piVar1") ([ "[") (identifier "iVar3") (] "]")) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar3 == 4) break;" (if "if") (parenthesized_expression "(iVar3 == 4)" (( "(") (binary_expression "iVar3 == 4" (identifier "iVar3") (== "==") (number_literal "4")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar7 = local_40[iVar3];" (assignment_expression "iVar7 = local_40[iVar3]" (identifier "iVar7") (= "=") (subscript_expression "local_40[iVar3]" (identifier "local_40") ([ "[") (identifier "iVar3") (] "]"))) (; ";")) (} "}"))) (expression_statement "FUN_0002c6a0(local_50);" (call_expression "FUN_0002c6a0(local_50)" (identifier "FUN_0002c6a0") (argument_list "(local_50)" (( "(") (identifier "local_50") () ")"))) (; ";")) (if_statement "if (local_40[8] != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0005c430();\n  }" (if "if") (parenthesized_expression "(local_40[8] != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_40[8] != *(int *)(in_GS_OFFSET + 0x14)" (subscript_expression "local_40[8]" (identifier "local_40") ([ "[") (number_literal "8") (] "]")) (!= "!=") (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                    \n    FUN_0005c430();\n  }" ({ "{") (expression_statement "FUN_0005c430();" (call_expression "FUN_0005c430()" (identifier "FUN_0005c430") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *inst,int increment)

{
  type_2 **var_14;
  int var_21;
  char *var_3;
  type_2 *var_7;
  type_2 *pFVar4;
  int iVar5;
  int var_6;
  int var_1;
  char *var_12;
  type_2 *oldfonts [4];
  type_2 *var_15 [4];
  
  var_6 = 0;
  var_21 = *(int *)(var_1 + 0x14);
  var_15[0] = (type_2 *)0x0;
  oldfonts[0] = (type_2 *)0x0;
  var_15[1] = (type_2 *)0x0;
  oldfonts[1] = (type_2 *)0x0;
  var_15[2] = (type_2 *)0x0;
  oldfonts[2] = (type_2 *)0x0;
  var_15[3] = (type_2 *)0x0;
  oldfonts[3] = (type_2 *)0x0;
  do {
    if (inst->fonts[var_6] != (type_3 *)0x0) {
      var_3 = var_2(inst->fonts[var_6],increment);
      if (var_3 == (char *)0x0) {
        var_12 = (char *)0x0;
        var_7 = (type_2 *)0x0;
        goto LAB_00054888;
      }
      var_7 = var_4(var_3);
      var_15[var_6] = var_7;
      var_5(var_3);
    }
    var_6 = var_6 + 1;
  } while (var_6 != 4);
  var_6 = 0;
  do {
    var_7 = var_15[var_6];
    if (var_7 != (type_2 *)0x0) {
      iVar5 = function_1::conf_keys[var_6];
      pFVar4 = var_8(inst->conf,iVar5);
      pFVar4 = var_9(pFVar4);
      oldfonts[var_6] = pFVar4;
      var_10(inst->conf,iVar5,var_7);
    }
    var_6 = var_6 + 1;
  } while (var_6 != 4);
  var_12 = var_11(inst);
  var_7 = oldfonts[0];
  if (var_12 == (char *)0x0) {
    var_14 = oldfonts;
    while( true ) {
      if (var_7 != (type_2 *)0x0) {
        var_13(var_7);
        *var_14 = (type_2 *)0x0;
      }
      var_14 = var_14 + 1;
      if (var_14 == var_15) break;
      var_7 = *var_14;
    }
    var_16(inst);
    var_6 = var_17(inst->conf,0x74);
    iVar5 = var_17(inst->conf,0x73);
    var_18(inst,iVar5,var_6);
    var_19(inst->term);
    var_20(inst->area);
    var_7 = oldfonts[0];
  }
LAB_00054888:
  var_6 = 0;
  while( true ) {
    if (var_7 != (type_2 *)0x0) {
      var_10(inst->conf,function_1::conf_keys[var_6],var_7);
      var_13(var_7);
    }
    var_7 = var_15[var_6];
    if (var_7 != (type_2 *)0x0) {
      var_13(var_7);
    }
    var_6 = var_6 + 1;
    if (var_6 == 4) break;
    var_7 = oldfonts[var_6];
  }
  var_5(var_12);
  if (var_21 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_22();
  }
  return;
}


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

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

void __regparm3 MASKED(int param_1,undefined4 param_2)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  int iVar7;
  int in_GS_OFFSET;
  int local_50;
  int local_40 [11];
  undefined4 uStack_14;
  
  iVar7 = 0;
  uStack_14 = 0x5476d;
  piVar1 = local_40 + 4;
  local_40[8] = *(int *)(in_GS_OFFSET + 0x14);
  local_40[4] = 0;
  local_40[0] = 0;
  local_40[5] = 0;
  local_40[1] = 0;
  local_40[6] = 0;
  local_40[2] = 0;
  local_40[7] = 0;
  local_40[3] = 0;
  do {
    iVar3 = *(int *)(param_1 + 0x3c + iVar7 * 4);
    if (iVar3 != 0) {
      iVar3 = FUN_0004dba0(iVar3,param_2);
      if (iVar3 == 0) {
        local_50 = 0;
        iVar7 = 0;
        goto LAB_00054888;
      }
      iVar4 = FUN_00058020(iVar3);
      piVar1[iVar7] = iVar4;
      FUN_0002c6a0(iVar3);
    }
    iVar7 = iVar7 + 1;
  } while (iVar7 != 4);
  iVar7 = 0;
  do {
    iVar3 = piVar1[iVar7];
    if (iVar3 != 0) {
      uVar6 = (&DAT_0007a1c8)[iVar7];
      uVar5 = FUN_0001dce0(*(undefined4 *)(param_1 + 0x2238),uVar6);
      iVar4 = FUN_00058050(uVar5);
      local_40[iVar7] = iVar4;
      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),uVar6,iVar3);
    }
    iVar7 = iVar7 + 1;
  } while (iVar7 != 4);
  local_50 = FUN_00054380(param_1);
  iVar7 = local_40[0];
  if (local_50 == 0) {
    piVar2 = local_40;
    while( true ) {
      if (iVar7 != 0) {
        FUN_00058060(iVar7);
        *piVar2 = 0;
      }
      piVar2 = piVar2 + 1;
      if (piVar2 == piVar1) break;
      iVar7 = *piVar2;
    }
    FUN_000546e0(param_1);
    uVar6 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x74);
    uVar5 = FUN_0001d690(*(undefined4 *)(param_1 + 0x2238),0x73);
    FUN_00052220(param_1,uVar5,uVar6);
    FUN_00036450(*(undefined4 *)(param_1 + 0xd1c));
    gtk_widget_queue_draw(*(undefined4 *)(param_1 + 4));
    iVar7 = local_40[0];
  }
LAB_00054888:
  iVar3 = 0;
  while( true ) {
    if (iVar7 != 0) {
      FUN_0001e1e0(*(undefined4 *)(param_1 + 0x2238),(&DAT_0007a1c8)[iVar3],iVar7);
      FUN_00058060(iVar7);
    }
    if (piVar1[iVar3] != 0) {
      FUN_00058060(piVar1[iVar3]);
    }
    iVar3 = iVar3 + 1;
    if (iVar3 == 4) break;
    iVar7 = local_40[iVar3];
  }
  FUN_0002c6a0(local_50);
  if (local_40[8] != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0005c430();
  }
  return;
}

