
/* 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 x11_alloc_subfont(x11font *xfont,int sfid)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int iVar4;
  char *pcVar5;
  xlfd_decomposed *dec;
  XFontStruct *pXVar6;
  int in_GS_OFFSET;
  ulong ret;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5f56d;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = gdk_display_get_default();
  uVar1 = gdk_x11_display_get_xdisplay(uVar1);
  pXVar6 = xfont->fonts[0].xfs;
  uVar2 = gdk_display_get_default();
  uVar2 = gdk_x11_display_get_xdisplay(uVar2);
  uVar3 = XInternAtom(uVar2,&DAT_00094ea7,0);
  iVar4 = XGetFontProperty(pXVar6,uVar3,&ret);
  if (iVar4 != 0) {
    pcVar5 = (char *)XGetAtomName(uVar2,ret);
    dec = xlfd_decompose(pcVar5);
    if (dec != (xlfd_decomposed *)0x0) {
      if ((sfid & 1U) != 0) {
        dec->weight_name = (char *)0x934f9;
      }
      if ((sfid & 2U) != 0) {
        dec->average_width = dec->average_width << 1;
        dec->add_style_name = "*";
        dec->setwidth_name = "*";
      }
      pcVar5 = xlfd_recompose(dec);
      safefree(dec);
      goto LAB_0005f642;
    }
  }
  pcVar5 = (char *)0x0;
LAB_0005f642:
  pXVar6 = (XFontStruct *)XLoadQueryFont(uVar1,pcVar5);
  xfont->fonts[sfid].allocated = 1;
  xfont->fonts[sfid].xfs = pXVar6;
  safefree(pcVar5);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void __regparm3 FUN_0005f560(int param_1,uint param_2)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  int iVar5;
  int in_GS_OFFSET;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5f56d;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = gdk_display_get_default();
  uVar2 = gdk_x11_display_get_xdisplay(uVar1);
  uVar1 = *(undefined4 *)(param_1 + 0x20);
  uVar3 = gdk_display_get_default();
  uVar3 = gdk_x11_display_get_xdisplay(uVar3);
  uVar4 = XInternAtom(uVar3,&DAT_00094ea7,0);
  iVar5 = XGetFontProperty(uVar1,uVar4,&local_24);
  if (iVar5 != 0) {
    XGetAtomName(uVar3,local_24);
    iVar5 = FUN_0005ed90();
    if (iVar5 != 0) {
      if ((param_2 & 1) != 0) {
        *(char **)(iVar5 + 8) = "bold";
      }
      if ((param_2 & 2) != 0) {
        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;
        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;
        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;
      }
      uVar1 = FUN_0005f0f0();
      FUN_00031580(iVar5);
      goto LAB_0005f642;
    }
  }
  uVar1 = 0;
LAB_0005f642:
  param_1 = param_1 + param_2 * 0x34;
  uVar2 = XLoadQueryFont(uVar2,uVar1);
  *(undefined4 *)(param_1 + 0x24) = 1;
  *(undefined4 *)(param_1 + 0x20) = uVar2;
  FUN_00031580(uVar1);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00077880();
}


PUSH EBP
PUSH EDI
MOV EDI,EDX
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x0001b410
ADD EBX,0x66237
SUB ESP,0x2c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
CALL 0x00019e00
SUB ESP,0xc
PUSH EAX
CALL 0x0001af10
MOV EDX,dword ptr [ESI + 0x20]
MOV dword ptr [ESP + 0x18],EAX
MOV dword ptr [ESP + 0x1c],EDX
CALL 0x00019e00
MOV dword ptr [ESP],EAX
CALL 0x0001af10
ADD ESP,0xc
MOV EBP,EAX
LEA EAX,[EBX + 0xfffcf703]
PUSH 0x0
PUSH EAX
PUSH EBP
CALL 0x00019b20
ADD ESP,0xc
LEA ECX,[ESP + 0x1c]
PUSH ECX
PUSH EAX
MOV EDX,dword ptr [ESP + 0x18]
PUSH EDX
CALL 0x00019210
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0005f640
SUB ESP,0x8
PUSH dword ptr [ESP + 0x20]
PUSH EBP
CALL 0x0001aef0
CALL 0x0005ed90
ADD ESP,0x10
MOV EDX,EAX
TEST EAX,EAX
JZ 0x0005f640
TEST EDI,0x1
JZ 0x0005f602
LEA EAX,[EBX + 0xfffcdd55]
MOV dword ptr [EDX + 0x8],EAX
TEST EDI,0x2
JZ 0x0005f619
LEA EAX,[EBX + 0xfffcf701]
SHL dword ptr [EDX + 0x2c],0x1
MOV dword ptr [EDX + 0x14],EAX
MOV dword ptr [EDX + 0x10],EAX
MOV EAX,EDX
MOV dword ptr [ESP + 0xc],EDX
CALL 0x0005f0f0
SUB ESP,0xc
MOV EDX,dword ptr [ESP + 0x18]
MOV EBP,EAX
PUSH EDX
CALL 0x00031580
ADD ESP,0x10
JMP 0x0005f642
XOR EBP,EBP
SUB ESP,0x8
IMUL EDI,EDI,0x34
PUSH EBP
PUSH dword ptr [ESP + 0x14]
ADD ESI,EDI
CALL 0x0001aca0
MOV dword ptr [ESI + 0x24],0x1
MOV dword ptr [ESI + 0x20],EAX
MOV dword ptr [ESP],EBP
CALL 0x00031580
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0005f67e
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x00077880
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0005f560(int param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5f56d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = gdk_display_get_default();\n  uVar2 = gdk_x11_display_get_xdisplay(uVar1);\n  uVar1 = *(undefined4 *)(param_1 + 0x20);\n  uVar3 = gdk_display_get_default();\n  uVar3 = gdk_x11_display_get_xdisplay(uVar3);\n  uVar4 = XInternAtom(uVar3,&DAT_00094ea7,0);\n  iVar5 = XGetFontProperty(uVar1,uVar4,&local_24);\n  if (iVar5 != 0) {\n    XGetAtomName(uVar3,local_24);\n    iVar5 = FUN_0005ed90();\n    if (iVar5 != 0) {\n      if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }\n      if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }\n      uVar1 = FUN_0005f0f0();\n      FUN_00031580(iVar5);\n      goto LAB_0005f642;\n    }\n  }\n  uVar1 = 0;\nLAB_0005f642:\n  param_1 = param_1 + param_2 * 0x34;\n  uVar2 = XLoadQueryFont(uVar2,uVar1);\n  *(undefined4 *)(param_1 + 0x24) = 1;\n  *(undefined4 *)(param_1 + 0x20) = uVar2;\n  FUN_00031580(uVar1);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00077880();\n}\n\n" comment (function_definition "void __regparm3 FUN_0005f560(int param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5f56d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = gdk_display_get_default();\n  uVar2 = gdk_x11_display_get_xdisplay(uVar1);\n  uVar1 = *(undefined4 *)(param_1 + 0x20);\n  uVar3 = gdk_display_get_default();\n  uVar3 = gdk_x11_display_get_xdisplay(uVar3);\n  uVar4 = XInternAtom(uVar3,&DAT_00094ea7,0);\n  iVar5 = XGetFontProperty(uVar1,uVar4,&local_24);\n  if (iVar5 != 0) {\n    XGetAtomName(uVar3,local_24);\n    iVar5 = FUN_0005ed90();\n    if (iVar5 != 0) {\n      if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }\n      if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }\n      uVar1 = FUN_0005f0f0();\n      FUN_00031580(iVar5);\n      goto LAB_0005f642;\n    }\n  }\n  uVar1 = 0;\nLAB_0005f642:\n  param_1 = param_1 + param_2 * 0x34;\n  uVar2 = XLoadQueryFont(uVar2,uVar1);\n  *(undefined4 *)(param_1 + 0x24) = 1;\n  *(undefined4 *)(param_1 + 0x20) = uVar2;\n  FUN_00031580(uVar1);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00077880();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0005f560(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5f56d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = gdk_display_get_default();\n  uVar2 = gdk_x11_display_get_xdisplay(uVar1);\n  uVar1 = *(undefined4 *)(param_1 + 0x20);\n  uVar3 = gdk_display_get_default();\n  uVar3 = gdk_x11_display_get_xdisplay(uVar3);\n  uVar4 = XInternAtom(uVar3,&DAT_00094ea7,0);\n  iVar5 = XGetFontProperty(uVar1,uVar4,&local_24);\n  if (iVar5 != 0) {\n    XGetAtomName(uVar3,local_24);\n    iVar5 = FUN_0005ed90();\n    if (iVar5 != 0) {\n      if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }\n      if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }\n      uVar1 = FUN_0005f0f0();\n      FUN_00031580(iVar5);\n      goto LAB_0005f642;\n    }\n  }\n  uVar1 = 0;\nLAB_0005f642:\n  param_1 = param_1 + param_2 * 0x34;\n  uVar2 = XLoadQueryFont(uVar2,uVar1);\n  *(undefined4 *)(param_1 + 0x24) = 1;\n  *(undefined4 *)(param_1 + 0x20) = uVar2;\n  FUN_00031580(uVar1);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00077880();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5f56d;" (assignment_expression "uStack_14 = 0x5f56d" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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 "uVar1 = gdk_display_get_default();" (assignment_expression "uVar1 = gdk_display_get_default()" identifier = (call_expression "gdk_display_get_default()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = gdk_x11_display_get_xdisplay(uVar1);" (assignment_expression "uVar2 = gdk_x11_display_get_xdisplay(uVar1)" identifier = (call_expression "gdk_x11_display_get_xdisplay(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x20);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x20)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = gdk_display_get_default();" (assignment_expression "uVar3 = gdk_display_get_default()" identifier = (call_expression "gdk_display_get_default()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = gdk_x11_display_get_xdisplay(uVar3);" (assignment_expression "uVar3 = gdk_x11_display_get_xdisplay(uVar3)" identifier = (call_expression "gdk_x11_display_get_xdisplay(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "uVar4 = XInternAtom(uVar3,&DAT_00094ea7,0);" (assignment_expression "uVar4 = XInternAtom(uVar3,&DAT_00094ea7,0)" identifier = (call_expression "XInternAtom(uVar3,&DAT_00094ea7,0)" identifier (argument_list "(uVar3,&DAT_00094ea7,0)" ( identifier , (pointer_expression "&DAT_00094ea7" & identifier) , number_literal )))) ;) (expression_statement "iVar5 = XGetFontProperty(uVar1,uVar4,&local_24);" (assignment_expression "iVar5 = XGetFontProperty(uVar1,uVar4,&local_24)" identifier = (call_expression "XGetFontProperty(uVar1,uVar4,&local_24)" identifier (argument_list "(uVar1,uVar4,&local_24)" ( identifier , identifier , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar5 != 0) {\n    XGetAtomName(uVar3,local_24);\n    iVar5 = FUN_0005ed90();\n    if (iVar5 != 0) {\n      if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }\n      if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }\n      uVar1 = FUN_0005f0f0();\n      FUN_00031580(iVar5);\n      goto LAB_0005f642;\n    }\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    XGetAtomName(uVar3,local_24);\n    iVar5 = FUN_0005ed90();\n    if (iVar5 != 0) {\n      if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }\n      if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }\n      uVar1 = FUN_0005f0f0();\n      FUN_00031580(iVar5);\n      goto LAB_0005f642;\n    }\n  }" { (expression_statement "XGetAtomName(uVar3,local_24);" (call_expression "XGetAtomName(uVar3,local_24)" identifier (argument_list "(uVar3,local_24)" ( identifier , identifier ))) ;) (expression_statement "iVar5 = FUN_0005ed90();" (assignment_expression "iVar5 = FUN_0005ed90()" identifier = (call_expression "FUN_0005ed90()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar5 != 0) {\n      if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }\n      if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }\n      uVar1 = FUN_0005f0f0();\n      FUN_00031580(iVar5);\n      goto LAB_0005f642;\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }\n      if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }\n      uVar1 = FUN_0005f0f0();\n      FUN_00031580(iVar5);\n      goto LAB_0005f642;\n    }" { (if_statement "if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }" if (parenthesized_expression "((param_2 & 1) != 0)" ( (binary_expression "(param_2 & 1) != 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        *(char **)(iVar5 + 8) = "bold";\n      }" { (expression_statement "*(char **)(iVar5 + 8) = "bold";" (assignment_expression "*(char **)(iVar5 + 8) = "bold"" (pointer_expression "*(char **)(iVar5 + 8)" * (cast_expression "(char **)(iVar5 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) )))) = (string_literal ""bold"" " string_content ")) ;) })) (if_statement "if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }" if (parenthesized_expression "((param_2 & 2) != 0)" ( (binary_expression "(param_2 & 2) != 0" (parenthesized_expression "(param_2 & 2)" ( (binary_expression "param_2 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }" { (expression_statement "*(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;" (assignment_expression "*(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1" (pointer_expression "*(int *)(iVar5 + 0x2c)" * (cast_expression "(int *)(iVar5 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x2c)" ( (binary_expression "iVar5 + 0x2c" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar5 + 0x2c) << 1" (pointer_expression "*(int *)(iVar5 + 0x2c)" * (cast_expression "(int *)(iVar5 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x2c)" ( (binary_expression "iVar5 + 0x2c" identifier + number_literal) )))) << number_literal)) ;) (expression_statement "*(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;" (assignment_expression "*(undefined **)(iVar5 + 0x14) = &DAT_00094ea5" (pointer_expression "*(undefined **)(iVar5 + 0x14)" * (cast_expression "(undefined **)(iVar5 + 0x14)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0x14)" ( (binary_expression "iVar5 + 0x14" identifier + number_literal) )))) = (pointer_expression "&DAT_00094ea5" & identifier)) ;) (expression_statement "*(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;" (assignment_expression "*(undefined **)(iVar5 + 0x10) = &DAT_00094ea5" (pointer_expression "*(undefined **)(iVar5 + 0x10)" * (cast_expression "(undefined **)(iVar5 + 0x10)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))) = (pointer_expression "&DAT_00094ea5" & identifier)) ;) })) (expression_statement "uVar1 = FUN_0005f0f0();" (assignment_expression "uVar1 = FUN_0005f0f0()" identifier = (call_expression "FUN_0005f0f0()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00031580(iVar5);" (call_expression "FUN_00031580(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))) ;) (goto_statement "goto LAB_0005f642;" goto statement_identifier ;) })) })) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0005f642:\n  param_1 = param_1 + param_2 * 0x34;" statement_identifier : (expression_statement "param_1 = param_1 + param_2 * 0x34;" (assignment_expression "param_1 = param_1 + param_2 * 0x34" identifier = (binary_expression "param_1 + param_2 * 0x34" identifier + (binary_expression "param_2 * 0x34" identifier * number_literal))) ;)) (expression_statement "uVar2 = XLoadQueryFont(uVar2,uVar1);" (assignment_expression "uVar2 = XLoadQueryFont(uVar2,uVar1)" identifier = (call_expression "XLoadQueryFont(uVar2,uVar1)" identifier (argument_list "(uVar2,uVar1)" ( identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x24) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x20) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00031580(uVar1);" (call_expression "FUN_00031580(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_00077880();" (call_expression "FUN_00077880()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid __regparm3 x11_alloc_subfont(x11font *xfont,int sfid)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *pcVar5;\n  xlfd_decomposed *dec;\n  XFontStruct *pXVar6;\n  int in_GS_OFFSET;\n  ulong ret;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5f56d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  pXVar6 = xfont->fonts[0].xfs;\n  uVar2 = gdk_display_get_default();\n  uVar2 = gdk_x11_display_get_xdisplay(uVar2);\n  uVar3 = XInternAtom(uVar2,&DAT_00094ea7,0);\n  iVar4 = XGetFontProperty(pXVar6,uVar3,&ret);\n  if (iVar4 != 0) {\n    pcVar5 = (char *)XGetAtomName(uVar2,ret);\n    dec = xlfd_decompose(pcVar5);\n    if (dec != (xlfd_decomposed *)0x0) {\n      if ((sfid & 1U) != 0) {\n        dec->weight_name = (char *)0x934f9;\n      }\n      if ((sfid & 2U) != 0) {\n        dec->average_width = dec->average_width << 1;\n        dec->add_style_name = "*";\n        dec->setwidth_name = "*";\n      }\n      pcVar5 = xlfd_recompose(dec);\n      safefree(dec);\n      goto LAB_0005f642;\n    }\n  }\n  pcVar5 = (char *)0x0;\nLAB_0005f642:\n  pXVar6 = (XFontStruct *)XLoadQueryFont(uVar1,pcVar5);\n  xfont->fonts[sfid].allocated = 1;\n  xfont->fonts[sfid].xfs = pXVar6;\n  safefree(pcVar5);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void __regparm3 x11_alloc_subfont(x11font *xfont,int sfid)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *pcVar5;\n  xlfd_decomposed *dec;\n  XFontStruct *pXVar6;\n  int in_GS_OFFSET;\n  ulong ret;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5f56d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  pXVar6 = xfont->fonts[0].xfs;\n  uVar2 = gdk_display_get_default();\n  uVar2 = gdk_x11_display_get_xdisplay(uVar2);\n  uVar3 = XInternAtom(uVar2,&DAT_00094ea7,0);\n  iVar4 = XGetFontProperty(pXVar6,uVar3,&ret);\n  if (iVar4 != 0) {\n    pcVar5 = (char *)XGetAtomName(uVar2,ret);\n    dec = xlfd_decompose(pcVar5);\n    if (dec != (xlfd_decomposed *)0x0) {\n      if ((sfid & 1U) != 0) {\n        dec->weight_name = (char *)0x934f9;\n      }\n      if ((sfid & 2U) != 0) {\n        dec->average_width = dec->average_width << 1;\n        dec->add_style_name = "*";\n        dec->setwidth_name = "*";\n      }\n      pcVar5 = xlfd_recompose(dec);\n      safefree(dec);\n      goto LAB_0005f642;\n    }\n  }\n  pcVar5 = (char *)0x0;\nLAB_0005f642:\n  pXVar6 = (XFontStruct *)XLoadQueryFont(uVar1,pcVar5);\n  xfont->fonts[sfid].allocated = 1;\n  xfont->fonts[sfid].xfs = pXVar6;\n  safefree(pcVar5);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "x11_alloc_subfont(x11font *xfont,int sfid)" identifier (parameter_list "(x11font *xfont,int sfid)" ( (parameter_declaration "x11font *xfont" type_identifier (pointer_declarator "*xfont" * identifier)) , (parameter_declaration "int sfid" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *pcVar5;\n  xlfd_decomposed *dec;\n  XFontStruct *pXVar6;\n  int in_GS_OFFSET;\n  ulong ret;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5f56d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  pXVar6 = xfont->fonts[0].xfs;\n  uVar2 = gdk_display_get_default();\n  uVar2 = gdk_x11_display_get_xdisplay(uVar2);\n  uVar3 = XInternAtom(uVar2,&DAT_00094ea7,0);\n  iVar4 = XGetFontProperty(pXVar6,uVar3,&ret);\n  if (iVar4 != 0) {\n    pcVar5 = (char *)XGetAtomName(uVar2,ret);\n    dec = xlfd_decompose(pcVar5);\n    if (dec != (xlfd_decomposed *)0x0) {\n      if ((sfid & 1U) != 0) {\n        dec->weight_name = (char *)0x934f9;\n      }\n      if ((sfid & 2U) != 0) {\n        dec->average_width = dec->average_width << 1;\n        dec->add_style_name = "*";\n        dec->setwidth_name = "*";\n      }\n      pcVar5 = xlfd_recompose(dec);\n      safefree(dec);\n      goto LAB_0005f642;\n    }\n  }\n  pcVar5 = (char *)0x0;\nLAB_0005f642:\n  pXVar6 = (XFontStruct *)XLoadQueryFont(uVar1,pcVar5);\n  xfont->fonts[sfid].allocated = 1;\n  xfont->fonts[sfid].xfs = pXVar6;\n  safefree(pcVar5);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "xlfd_decomposed *dec;" type_identifier (pointer_declarator "*dec" * identifier) ;) (declaration "XFontStruct *pXVar6;" type_identifier (pointer_declarator "*pXVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "ulong ret;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5f56d;" (assignment_expression "uStack_14 = 0x5f56d" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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 "uVar1 = gdk_display_get_default();" (assignment_expression "uVar1 = gdk_display_get_default()" identifier = (call_expression "gdk_display_get_default()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar1 = gdk_x11_display_get_xdisplay(uVar1);" (assignment_expression "uVar1 = gdk_x11_display_get_xdisplay(uVar1)" identifier = (call_expression "gdk_x11_display_get_xdisplay(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "pXVar6 = xfont->fonts[0].xfs;" (assignment_expression "pXVar6 = xfont->fonts[0].xfs" identifier = (field_expression "xfont->fonts[0].xfs" (subscript_expression "xfont->fonts[0]" (field_expression "xfont->fonts" identifier -> field_identifier) [ number_literal ]) . field_identifier)) ;) (expression_statement "uVar2 = gdk_display_get_default();" (assignment_expression "uVar2 = gdk_display_get_default()" identifier = (call_expression "gdk_display_get_default()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = gdk_x11_display_get_xdisplay(uVar2);" (assignment_expression "uVar2 = gdk_x11_display_get_xdisplay(uVar2)" identifier = (call_expression "gdk_x11_display_get_xdisplay(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "uVar3 = XInternAtom(uVar2,&DAT_00094ea7,0);" (assignment_expression "uVar3 = XInternAtom(uVar2,&DAT_00094ea7,0)" identifier = (call_expression "XInternAtom(uVar2,&DAT_00094ea7,0)" identifier (argument_list "(uVar2,&DAT_00094ea7,0)" ( identifier , (pointer_expression "&DAT_00094ea7" & identifier) , number_literal )))) ;) (expression_statement "iVar4 = XGetFontProperty(pXVar6,uVar3,&ret);" (assignment_expression "iVar4 = XGetFontProperty(pXVar6,uVar3,&ret)" identifier = (call_expression "XGetFontProperty(pXVar6,uVar3,&ret)" identifier (argument_list "(pXVar6,uVar3,&ret)" ( identifier , identifier , (pointer_expression "&ret" & identifier) )))) ;) (if_statement "if (iVar4 != 0) {\n    pcVar5 = (char *)XGetAtomName(uVar2,ret);\n    dec = xlfd_decompose(pcVar5);\n    if (dec != (xlfd_decomposed *)0x0) {\n      if ((sfid & 1U) != 0) {\n        dec->weight_name = (char *)0x934f9;\n      }\n      if ((sfid & 2U) != 0) {\n        dec->average_width = dec->average_width << 1;\n        dec->add_style_name = "*";\n        dec->setwidth_name = "*";\n      }\n      pcVar5 = xlfd_recompose(dec);\n      safefree(dec);\n      goto LAB_0005f642;\n    }\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar5 = (char *)XGetAtomName(uVar2,ret);\n    dec = xlfd_decompose(pcVar5);\n    if (dec != (xlfd_decomposed *)0x0) {\n      if ((sfid & 1U) != 0) {\n        dec->weight_name = (char *)0x934f9;\n      }\n      if ((sfid & 2U) != 0) {\n        dec->average_width = dec->average_width << 1;\n        dec->add_style_name = "*";\n        dec->setwidth_name = "*";\n      }\n      pcVar5 = xlfd_recompose(dec);\n      safefree(dec);\n      goto LAB_0005f642;\n    }\n  }" { (expression_statement "pcVar5 = (char *)XGetAtomName(uVar2,ret);" (assignment_expression "pcVar5 = (char *)XGetAtomName(uVar2,ret)" identifier = (cast_expression "(char *)XGetAtomName(uVar2,ret)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "XGetAtomName(uVar2,ret)" identifier (argument_list "(uVar2,ret)" ( identifier , identifier ))))) ;) (expression_statement "dec = xlfd_decompose(pcVar5);" (assignment_expression "dec = xlfd_decompose(pcVar5)" identifier = (call_expression "xlfd_decompose(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (if_statement "if (dec != (xlfd_decomposed *)0x0) {\n      if ((sfid & 1U) != 0) {\n        dec->weight_name = (char *)0x934f9;\n      }\n      if ((sfid & 2U) != 0) {\n        dec->average_width = dec->average_width << 1;\n        dec->add_style_name = "*";\n        dec->setwidth_name = "*";\n      }\n      pcVar5 = xlfd_recompose(dec);\n      safefree(dec);\n      goto LAB_0005f642;\n    }" if (parenthesized_expression "(dec != (xlfd_decomposed *)0x0)" ( (binary_expression "dec != (xlfd_decomposed *)0x0" identifier != (cast_expression "(xlfd_decomposed *)0x0" ( (type_descriptor "xlfd_decomposed *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if ((sfid & 1U) != 0) {\n        dec->weight_name = (char *)0x934f9;\n      }\n      if ((sfid & 2U) != 0) {\n        dec->average_width = dec->average_width << 1;\n        dec->add_style_name = "*";\n        dec->setwidth_name = "*";\n      }\n      pcVar5 = xlfd_recompose(dec);\n      safefree(dec);\n      goto LAB_0005f642;\n    }" { (if_statement "if ((sfid & 1U) != 0) {\n        dec->weight_name = (char *)0x934f9;\n      }" if (parenthesized_expression "((sfid & 1U) != 0)" ( (binary_expression "(sfid & 1U) != 0" (parenthesized_expression "(sfid & 1U)" ( (binary_expression "sfid & 1U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        dec->weight_name = (char *)0x934f9;\n      }" { (expression_statement "dec->weight_name = (char *)0x934f9;" (assignment_expression "dec->weight_name = (char *)0x934f9" (field_expression "dec->weight_name" identifier -> field_identifier) = (cast_expression "(char *)0x934f9" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (if_statement "if ((sfid & 2U) != 0) {\n        dec->average_width = dec->average_width << 1;\n        dec->add_style_name = "*";\n        dec->setwidth_name = "*";\n      }" if (parenthesized_expression "((sfid & 2U) != 0)" ( (binary_expression "(sfid & 2U) != 0" (parenthesized_expression "(sfid & 2U)" ( (binary_expression "sfid & 2U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        dec->average_width = dec->average_width << 1;\n        dec->add_style_name = "*";\n        dec->setwidth_name = "*";\n      }" { (expression_statement "dec->average_width = dec->average_width << 1;" (assignment_expression "dec->average_width = dec->average_width << 1" (field_expression "dec->average_width" identifier -> field_identifier) = (binary_expression "dec->average_width << 1" (field_expression "dec->average_width" identifier -> field_identifier) << number_literal)) ;) (expression_statement "dec->add_style_name = "*";" (assignment_expression "dec->add_style_name = "*"" (field_expression "dec->add_style_name" identifier -> field_identifier) = (string_literal ""*"" " string_content ")) ;) (expression_statement "dec->setwidth_name = "*";" (assignment_expression "dec->setwidth_name = "*"" (field_expression "dec->setwidth_name" identifier -> field_identifier) = (string_literal ""*"" " string_content ")) ;) })) (expression_statement "pcVar5 = xlfd_recompose(dec);" (assignment_expression "pcVar5 = xlfd_recompose(dec)" identifier = (call_expression "xlfd_recompose(dec)" identifier (argument_list "(dec)" ( identifier )))) ;) (expression_statement "safefree(dec);" (call_expression "safefree(dec)" identifier (argument_list "(dec)" ( identifier ))) ;) (goto_statement "goto LAB_0005f642;" goto statement_identifier ;) })) })) (expression_statement "pcVar5 = (char *)0x0;" (assignment_expression "pcVar5 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_0005f642:\n  pXVar6 = (XFontStruct *)XLoadQueryFont(uVar1,pcVar5);" statement_identifier : (expression_statement "pXVar6 = (XFontStruct *)XLoadQueryFont(uVar1,pcVar5);" (assignment_expression "pXVar6 = (XFontStruct *)XLoadQueryFont(uVar1,pcVar5)" identifier = (cast_expression "(XFontStruct *)XLoadQueryFont(uVar1,pcVar5)" ( (type_descriptor "XFontStruct *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "XLoadQueryFont(uVar1,pcVar5)" identifier (argument_list "(uVar1,pcVar5)" ( identifier , identifier ))))) ;)) (expression_statement "xfont->fonts[sfid].allocated = 1;" (assignment_expression "xfont->fonts[sfid].allocated = 1" (field_expression "xfont->fonts[sfid].allocated" (subscript_expression "xfont->fonts[sfid]" (field_expression "xfont->fonts" identifier -> field_identifier) [ identifier ]) . field_identifier) = number_literal) ;) (expression_statement "xfont->fonts[sfid].xfs = pXVar6;" (assignment_expression "xfont->fonts[sfid].xfs = pXVar6" (field_expression "xfont->fonts[sfid].xfs" (subscript_expression "xfont->fonts[sfid]" (field_expression "xfont->fonts" identifier -> field_identifier) [ identifier ]) . field_identifier) = identifier) ;) (expression_statement "safefree(pcVar5);" (call_expression "safefree(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void __regparm3 FUN_0005f560(int param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5f56d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = gdk_display_get_default();\n  uVar2 = gdk_x11_display_get_xdisplay(uVar1);\n  uVar1 = *(undefined4 *)(param_1 + 0x20);\n  uVar3 = gdk_display_get_default();\n  uVar3 = gdk_x11_display_get_xdisplay(uVar3);\n  uVar4 = XInternAtom(uVar3,&DAT_00094ea7,0);\n  iVar5 = XGetFontProperty(uVar1,uVar4,&local_24);\n  if (iVar5 != 0) {\n    XGetAtomName(uVar3,local_24);\n    iVar5 = FUN_0005ed90();\n    if (iVar5 != 0) {\n      if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }\n      if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }\n      uVar1 = FUN_0005f0f0();\n      FUN_00031580(iVar5);\n      goto LAB_0005f642;\n    }\n  }\n  uVar1 = 0;\nLAB_0005f642:\n  param_1 = param_1 + param_2 * 0x34;\n  uVar2 = XLoadQueryFont(uVar2,uVar1);\n  *(undefined4 *)(param_1 + 0x24) = 1;\n  *(undefined4 *)(param_1 + 0x20) = uVar2;\n  FUN_00031580(uVar1);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00077880();\n}\n\n" (function_definition "void __regparm3 FUN_0005f560(int param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5f56d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = gdk_display_get_default();\n  uVar2 = gdk_x11_display_get_xdisplay(uVar1);\n  uVar1 = *(undefined4 *)(param_1 + 0x20);\n  uVar3 = gdk_display_get_default();\n  uVar3 = gdk_x11_display_get_xdisplay(uVar3);\n  uVar4 = XInternAtom(uVar3,&DAT_00094ea7,0);\n  iVar5 = XGetFontProperty(uVar1,uVar4,&local_24);\n  if (iVar5 != 0) {\n    XGetAtomName(uVar3,local_24);\n    iVar5 = FUN_0005ed90();\n    if (iVar5 != 0) {\n      if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }\n      if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }\n      uVar1 = FUN_0005f0f0();\n      FUN_00031580(iVar5);\n      goto LAB_0005f642;\n    }\n  }\n  uVar1 = 0;\nLAB_0005f642:\n  param_1 = param_1 + param_2 * 0x34;\n  uVar2 = XLoadQueryFont(uVar2,uVar1);\n  *(undefined4 *)(param_1 + 0x24) = 1;\n  *(undefined4 *)(param_1 + 0x20) = uVar2;\n  FUN_00031580(uVar1);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00077880();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0005f560(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5f56d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = gdk_display_get_default();\n  uVar2 = gdk_x11_display_get_xdisplay(uVar1);\n  uVar1 = *(undefined4 *)(param_1 + 0x20);\n  uVar3 = gdk_display_get_default();\n  uVar3 = gdk_x11_display_get_xdisplay(uVar3);\n  uVar4 = XInternAtom(uVar3,&DAT_00094ea7,0);\n  iVar5 = XGetFontProperty(uVar1,uVar4,&local_24);\n  if (iVar5 != 0) {\n    XGetAtomName(uVar3,local_24);\n    iVar5 = FUN_0005ed90();\n    if (iVar5 != 0) {\n      if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }\n      if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }\n      uVar1 = FUN_0005f0f0();\n      FUN_00031580(iVar5);\n      goto LAB_0005f642;\n    }\n  }\n  uVar1 = 0;\nLAB_0005f642:\n  param_1 = param_1 + param_2 * 0x34;\n  uVar2 = XLoadQueryFont(uVar2,uVar1);\n  *(undefined4 *)(param_1 + 0x24) = 1;\n  *(undefined4 *)(param_1 + 0x20) = uVar2;\n  FUN_00031580(uVar1);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00077880();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5f56d;" (assignment_expression "uStack_14 = 0x5f56d" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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 "uVar1 = gdk_display_get_default();" (assignment_expression "uVar1 = gdk_display_get_default()" identifier = (call_expression "gdk_display_get_default()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = gdk_x11_display_get_xdisplay(uVar1);" (assignment_expression "uVar2 = gdk_x11_display_get_xdisplay(uVar1)" identifier = (call_expression "gdk_x11_display_get_xdisplay(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x20);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x20)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = gdk_display_get_default();" (assignment_expression "uVar3 = gdk_display_get_default()" identifier = (call_expression "gdk_display_get_default()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = gdk_x11_display_get_xdisplay(uVar3);" (assignment_expression "uVar3 = gdk_x11_display_get_xdisplay(uVar3)" identifier = (call_expression "gdk_x11_display_get_xdisplay(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "uVar4 = XInternAtom(uVar3,&DAT_00094ea7,0);" (assignment_expression "uVar4 = XInternAtom(uVar3,&DAT_00094ea7,0)" identifier = (call_expression "XInternAtom(uVar3,&DAT_00094ea7,0)" identifier (argument_list "(uVar3,&DAT_00094ea7,0)" ( identifier , (pointer_expression "&DAT_00094ea7" & identifier) , number_literal )))) ;) (expression_statement "iVar5 = XGetFontProperty(uVar1,uVar4,&local_24);" (assignment_expression "iVar5 = XGetFontProperty(uVar1,uVar4,&local_24)" identifier = (call_expression "XGetFontProperty(uVar1,uVar4,&local_24)" identifier (argument_list "(uVar1,uVar4,&local_24)" ( identifier , identifier , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar5 != 0) {\n    XGetAtomName(uVar3,local_24);\n    iVar5 = FUN_0005ed90();\n    if (iVar5 != 0) {\n      if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }\n      if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }\n      uVar1 = FUN_0005f0f0();\n      FUN_00031580(iVar5);\n      goto LAB_0005f642;\n    }\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    XGetAtomName(uVar3,local_24);\n    iVar5 = FUN_0005ed90();\n    if (iVar5 != 0) {\n      if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }\n      if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }\n      uVar1 = FUN_0005f0f0();\n      FUN_00031580(iVar5);\n      goto LAB_0005f642;\n    }\n  }" { (expression_statement "XGetAtomName(uVar3,local_24);" (call_expression "XGetAtomName(uVar3,local_24)" identifier (argument_list "(uVar3,local_24)" ( identifier , identifier ))) ;) (expression_statement "iVar5 = FUN_0005ed90();" (assignment_expression "iVar5 = FUN_0005ed90()" identifier = (call_expression "FUN_0005ed90()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar5 != 0) {\n      if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }\n      if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }\n      uVar1 = FUN_0005f0f0();\n      FUN_00031580(iVar5);\n      goto LAB_0005f642;\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }\n      if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }\n      uVar1 = FUN_0005f0f0();\n      FUN_00031580(iVar5);\n      goto LAB_0005f642;\n    }" { (if_statement "if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }" if (parenthesized_expression "((param_2 & 1) != 0)" ( (binary_expression "(param_2 & 1) != 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        *(char **)(iVar5 + 8) = "bold";\n      }" { (expression_statement "*(char **)(iVar5 + 8) = "bold";" (assignment_expression "*(char **)(iVar5 + 8) = "bold"" (pointer_expression "*(char **)(iVar5 + 8)" * (cast_expression "(char **)(iVar5 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) )))) = (string_literal ""bold"" " string_content ")) ;) })) (if_statement "if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }" if (parenthesized_expression "((param_2 & 2) != 0)" ( (binary_expression "(param_2 & 2) != 0" (parenthesized_expression "(param_2 & 2)" ( (binary_expression "param_2 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }" { (expression_statement "*(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;" (assignment_expression "*(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1" (pointer_expression "*(int *)(iVar5 + 0x2c)" * (cast_expression "(int *)(iVar5 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x2c)" ( (binary_expression "iVar5 + 0x2c" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar5 + 0x2c) << 1" (pointer_expression "*(int *)(iVar5 + 0x2c)" * (cast_expression "(int *)(iVar5 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x2c)" ( (binary_expression "iVar5 + 0x2c" identifier + number_literal) )))) << number_literal)) ;) (expression_statement "*(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;" (assignment_expression "*(undefined **)(iVar5 + 0x14) = &DAT_00094ea5" (pointer_expression "*(undefined **)(iVar5 + 0x14)" * (cast_expression "(undefined **)(iVar5 + 0x14)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0x14)" ( (binary_expression "iVar5 + 0x14" identifier + number_literal) )))) = (pointer_expression "&DAT_00094ea5" & identifier)) ;) (expression_statement "*(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;" (assignment_expression "*(undefined **)(iVar5 + 0x10) = &DAT_00094ea5" (pointer_expression "*(undefined **)(iVar5 + 0x10)" * (cast_expression "(undefined **)(iVar5 + 0x10)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))) = (pointer_expression "&DAT_00094ea5" & identifier)) ;) })) (expression_statement "uVar1 = FUN_0005f0f0();" (assignment_expression "uVar1 = FUN_0005f0f0()" identifier = (call_expression "FUN_0005f0f0()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00031580(iVar5);" (call_expression "FUN_00031580(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))) ;) (goto_statement "goto LAB_0005f642;" goto statement_identifier ;) })) })) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0005f642:\n  param_1 = param_1 + param_2 * 0x34;" statement_identifier : (expression_statement "param_1 = param_1 + param_2 * 0x34;" (assignment_expression "param_1 = param_1 + param_2 * 0x34" identifier = (binary_expression "param_1 + param_2 * 0x34" identifier + (binary_expression "param_2 * 0x34" identifier * number_literal))) ;)) (expression_statement "uVar2 = XLoadQueryFont(uVar2,uVar1);" (assignment_expression "uVar2 = XLoadQueryFont(uVar2,uVar1)" identifier = (call_expression "XLoadQueryFont(uVar2,uVar1)" identifier (argument_list "(uVar2,uVar1)" ( identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x24) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x20) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00031580(uVar1);" (call_expression "FUN_00031580(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00077880();" (call_expression "FUN_00077880()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (string_literal " string_content ")) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) << LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression & IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void __regparm3 FUN_0005f560(int param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5f56d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = gdk_display_get_default();\n  uVar2 = gdk_x11_display_get_xdisplay(uVar1);\n  uVar1 = *(undefined4 *)(param_1 + 0x20);\n  uVar3 = gdk_display_get_default();\n  uVar3 = gdk_x11_display_get_xdisplay(uVar3);\n  uVar4 = XInternAtom(uVar3,&DAT_00094ea7,0);\n  iVar5 = XGetFontProperty(uVar1,uVar4,&local_24);\n  if (iVar5 != 0) {\n    XGetAtomName(uVar3,local_24);\n    iVar5 = FUN_0005ed90();\n    if (iVar5 != 0) {\n      if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }\n      if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }\n      uVar1 = FUN_0005f0f0();\n      FUN_00031580(iVar5);\n      goto LAB_0005f642;\n    }\n  }\n  uVar1 = 0;\nLAB_0005f642:\n  param_1 = param_1 + param_2 * 0x34;\n  uVar2 = XLoadQueryFont(uVar2,uVar1);\n  *(undefined4 *)(param_1 + 0x24) = 1;\n  *(undefined4 *)(param_1 + 0x20) = uVar2;\n  FUN_00031580(uVar1);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00077880();\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0005f560(int param_1,uint param_2)" (identifier "FUN_0005f560") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5f56d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = gdk_display_get_default();\n  uVar2 = gdk_x11_display_get_xdisplay(uVar1);\n  uVar1 = *(undefined4 *)(param_1 + 0x20);\n  uVar3 = gdk_display_get_default();\n  uVar3 = gdk_x11_display_get_xdisplay(uVar3);\n  uVar4 = XInternAtom(uVar3,&DAT_00094ea7,0);\n  iVar5 = XGetFontProperty(uVar1,uVar4,&local_24);\n  if (iVar5 != 0) {\n    XGetAtomName(uVar3,local_24);\n    iVar5 = FUN_0005ed90();\n    if (iVar5 != 0) {\n      if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }\n      if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }\n      uVar1 = FUN_0005f0f0();\n      FUN_00031580(iVar5);\n      goto LAB_0005f642;\n    }\n  }\n  uVar1 = 0;\nLAB_0005f642:\n  param_1 = param_1 + param_2 * 0x34;\n  uVar2 = XLoadQueryFont(uVar2,uVar1);\n  *(undefined4 *)(param_1 + 0x24) = 1;\n  *(undefined4 *)(param_1 + 0x20) = uVar2;\n  FUN_00031580(uVar1);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00077880();\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x5f56d;" (assignment_expression "uStack_14 = 0x5f56d" (identifier "uStack_14") (= "=") (number_literal "0x5f56d")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (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 "uVar1 = gdk_display_get_default();" (assignment_expression "uVar1 = gdk_display_get_default()" (identifier "uVar1") (= "=") (call_expression "gdk_display_get_default()" (identifier "gdk_display_get_default") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar2 = gdk_x11_display_get_xdisplay(uVar1);" (assignment_expression "uVar2 = gdk_x11_display_get_xdisplay(uVar1)" (identifier "uVar2") (= "=") (call_expression "gdk_x11_display_get_xdisplay(uVar1)" (identifier "gdk_x11_display_get_xdisplay") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x20);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x20)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "uVar3 = gdk_display_get_default();" (assignment_expression "uVar3 = gdk_display_get_default()" (identifier "uVar3") (= "=") (call_expression "gdk_display_get_default()" (identifier "gdk_display_get_default") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar3 = gdk_x11_display_get_xdisplay(uVar3);" (assignment_expression "uVar3 = gdk_x11_display_get_xdisplay(uVar3)" (identifier "uVar3") (= "=") (call_expression "gdk_x11_display_get_xdisplay(uVar3)" (identifier "gdk_x11_display_get_xdisplay") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "uVar4 = XInternAtom(uVar3,&DAT_00094ea7,0);" (assignment_expression "uVar4 = XInternAtom(uVar3,&DAT_00094ea7,0)" (identifier "uVar4") (= "=") (call_expression "XInternAtom(uVar3,&DAT_00094ea7,0)" (identifier "XInternAtom") (argument_list "(uVar3,&DAT_00094ea7,0)" (( "(") (identifier "uVar3") (, ",") (pointer_expression "&DAT_00094ea7" (& "&") (identifier "DAT_00094ea7")) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar5 = XGetFontProperty(uVar1,uVar4,&local_24);" (assignment_expression "iVar5 = XGetFontProperty(uVar1,uVar4,&local_24)" (identifier "iVar5") (= "=") (call_expression "XGetFontProperty(uVar1,uVar4,&local_24)" (identifier "XGetFontProperty") (argument_list "(uVar1,uVar4,&local_24)" (( "(") (identifier "uVar1") (, ",") (identifier "uVar4") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (; ";")) (if_statement "if (iVar5 != 0) {\n    XGetAtomName(uVar3,local_24);\n    iVar5 = FUN_0005ed90();\n    if (iVar5 != 0) {\n      if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }\n      if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }\n      uVar1 = FUN_0005f0f0();\n      FUN_00031580(iVar5);\n      goto LAB_0005f642;\n    }\n  }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    XGetAtomName(uVar3,local_24);\n    iVar5 = FUN_0005ed90();\n    if (iVar5 != 0) {\n      if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }\n      if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }\n      uVar1 = FUN_0005f0f0();\n      FUN_00031580(iVar5);\n      goto LAB_0005f642;\n    }\n  }" ({ "{") (expression_statement "XGetAtomName(uVar3,local_24);" (call_expression "XGetAtomName(uVar3,local_24)" (identifier "XGetAtomName") (argument_list "(uVar3,local_24)" (( "(") (identifier "uVar3") (, ",") (identifier "local_24") () ")"))) (; ";")) (expression_statement "iVar5 = FUN_0005ed90();" (assignment_expression "iVar5 = FUN_0005ed90()" (identifier "iVar5") (= "=") (call_expression "FUN_0005ed90()" (identifier "FUN_0005ed90") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar5 != 0) {\n      if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }\n      if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }\n      uVar1 = FUN_0005f0f0();\n      FUN_00031580(iVar5);\n      goto LAB_0005f642;\n    }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }\n      if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }\n      uVar1 = FUN_0005f0f0();\n      FUN_00031580(iVar5);\n      goto LAB_0005f642;\n    }" ({ "{") (if_statement "if ((param_2 & 1) != 0) {\n        *(char **)(iVar5 + 8) = "bold";\n      }" (if "if") (parenthesized_expression "((param_2 & 1) != 0)" (( "(") (binary_expression "(param_2 & 1) != 0" (parenthesized_expression "(param_2 & 1)" (( "(") (binary_expression "param_2 & 1" (identifier "param_2") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        *(char **)(iVar5 + 8) = "bold";\n      }" ({ "{") (expression_statement "*(char **)(iVar5 + 8) = "bold";" (assignment_expression "*(char **)(iVar5 + 8) = "bold"" (pointer_expression "*(char **)(iVar5 + 8)" (* "*") (cast_expression "(char **)(iVar5 + 8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar5 + 8)" (( "(") (binary_expression "iVar5 + 8" (identifier "iVar5") (+ "+") (number_literal "8")) () ")")))) (= "=") (string_literal ""bold"" (" """) (string_content "bold") (" """))) (; ";")) (} "}"))) (if_statement "if ((param_2 & 2) != 0) {\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }" (if "if") (parenthesized_expression "((param_2 & 2) != 0)" (( "(") (binary_expression "(param_2 & 2) != 0" (parenthesized_expression "(param_2 & 2)" (( "(") (binary_expression "param_2 & 2" (identifier "param_2") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;\n        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;\n        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;\n      }" ({ "{") (expression_statement "*(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;" (assignment_expression "*(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1" (pointer_expression "*(int *)(iVar5 + 0x2c)" (* "*") (cast_expression "(int *)(iVar5 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x2c)" (( "(") (binary_expression "iVar5 + 0x2c" (identifier "iVar5") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (binary_expression "*(int *)(iVar5 + 0x2c) << 1" (pointer_expression "*(int *)(iVar5 + 0x2c)" (* "*") (cast_expression "(int *)(iVar5 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x2c)" (( "(") (binary_expression "iVar5 + 0x2c" (identifier "iVar5") (+ "+") (number_literal "0x2c")) () ")")))) (<< "<<") (number_literal "1"))) (; ";")) (expression_statement "*(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;" (assignment_expression "*(undefined **)(iVar5 + 0x14) = &DAT_00094ea5" (pointer_expression "*(undefined **)(iVar5 + 0x14)" (* "*") (cast_expression "(undefined **)(iVar5 + 0x14)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar5 + 0x14)" (( "(") (binary_expression "iVar5 + 0x14" (identifier "iVar5") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (pointer_expression "&DAT_00094ea5" (& "&") (identifier "DAT_00094ea5"))) (; ";")) (expression_statement "*(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;" (assignment_expression "*(undefined **)(iVar5 + 0x10) = &DAT_00094ea5" (pointer_expression "*(undefined **)(iVar5 + 0x10)" (* "*") (cast_expression "(undefined **)(iVar5 + 0x10)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar5 + 0x10)" (( "(") (binary_expression "iVar5 + 0x10" (identifier "iVar5") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (pointer_expression "&DAT_00094ea5" (& "&") (identifier "DAT_00094ea5"))) (; ";")) (} "}"))) (expression_statement "uVar1 = FUN_0005f0f0();" (assignment_expression "uVar1 = FUN_0005f0f0()" (identifier "uVar1") (= "=") (call_expression "FUN_0005f0f0()" (identifier "FUN_0005f0f0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_00031580(iVar5);" (call_expression "FUN_00031580(iVar5)" (identifier "FUN_00031580") (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")"))) (; ";")) (goto_statement "goto LAB_0005f642;" (goto "goto") (statement_identifier "LAB_0005f642") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0005f642:\n  param_1 = param_1 + param_2 * 0x34;" (statement_identifier "LAB_0005f642") (: ":") (expression_statement "param_1 = param_1 + param_2 * 0x34;" (assignment_expression "param_1 = param_1 + param_2 * 0x34" (identifier "param_1") (= "=") (binary_expression "param_1 + param_2 * 0x34" (identifier "param_1") (+ "+") (binary_expression "param_2 * 0x34" (identifier "param_2") (* "*") (number_literal "0x34")))) (; ";"))) (expression_statement "uVar2 = XLoadQueryFont(uVar2,uVar1);" (assignment_expression "uVar2 = XLoadQueryFont(uVar2,uVar1)" (identifier "uVar2") (= "=") (call_expression "XLoadQueryFont(uVar2,uVar1)" (identifier "XLoadQueryFont") (argument_list "(uVar2,uVar1)" (( "(") (identifier "uVar2") (, ",") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x24) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x20) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "FUN_00031580(uVar1);" (call_expression "FUN_00031580(uVar1)" (identifier "FUN_00031580") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00077880();" (call_expression "FUN_00077880()" (identifier "FUN_00077880") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.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 *xfont,int var_10)

{
  type_2 uVar1;
  type_2 uVar2;
  type_2 uVar3;
  int var_6;
  char *pcVar5;
  type_3 *var_9;
  type_4 *pXVar6;
  int var_1;
  type_5 ret;
  int var_14;
  type_2 uStack_14;
  
  uStack_14 = 0x5f56d;
  var_14 = *(int *)(var_1 + 0x14);
  uVar1 = var_2();
  uVar1 = var_3(uVar1);
  pXVar6 = xfont->fonts[0].xfs;
  uVar2 = var_2();
  uVar2 = var_3(uVar2);
  uVar3 = var_4(uVar2,&DAT_00094ea7,0);
  var_6 = var_5(pXVar6,uVar3,&ret);
  if (var_6 != 0) {
    pcVar5 = (char *)var_7(uVar2,ret);
    var_9 = var_8(pcVar5);
    if (var_9 != (type_3 *)0x0) {
      if ((var_10 & 1U) != 0) {
        var_9->weight_name = (char *)0x934f9;
      }
      if ((var_10 & 2U) != 0) {
        var_9->average_width = var_9->average_width << 1;
        var_9->add_style_name = "*";
        var_9->setwidth_name = "*";
      }
      pcVar5 = var_11(var_9);
      var_12(var_9);
      goto LAB_0005f642;
    }
  }
  pcVar5 = (char *)0x0;
LAB_0005f642:
  pXVar6 = (type_4 *)var_13(uVar1,pcVar5);
  xfont->fonts[var_10].allocated = 1;
  xfont->fonts[var_10].xfs = pXVar6;
  var_12(pcVar5);
  if (var_14 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_15();
}


(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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (identifier)))))) (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) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (string_literal (string_content)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

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

void __regparm3 MASKED(int param_1,uint param_2)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  int iVar5;
  int in_GS_OFFSET;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5f56d;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = gdk_display_get_default();
  uVar2 = gdk_x11_display_get_xdisplay(uVar1);
  uVar1 = *(undefined4 *)(param_1 + 0x20);
  uVar3 = gdk_display_get_default();
  uVar3 = gdk_x11_display_get_xdisplay(uVar3);
  uVar4 = XInternAtom(uVar3,&DAT_00094ea7,0);
  iVar5 = XGetFontProperty(uVar1,uVar4,&local_24);
  if (iVar5 != 0) {
    XGetAtomName(uVar3,local_24);
    iVar5 = FUN_0005ed90();
    if (iVar5 != 0) {
      if ((param_2 & 1) != 0) {
        *(char **)(iVar5 + 8) = "bold";
      }
      if ((param_2 & 2) != 0) {
        *(int *)(iVar5 + 0x2c) = *(int *)(iVar5 + 0x2c) << 1;
        *(undefined **)(iVar5 + 0x14) = &DAT_00094ea5;
        *(undefined **)(iVar5 + 0x10) = &DAT_00094ea5;
      }
      uVar1 = FUN_0005f0f0();
      FUN_00031580(iVar5);
      goto LAB_0005f642;
    }
  }
  uVar1 = 0;
LAB_0005f642:
  param_1 = param_1 + param_2 * 0x34;
  uVar2 = XLoadQueryFont(uVar2,uVar1);
  *(undefined4 *)(param_1 + 0x24) = 1;
  *(undefined4 *)(param_1 + 0x20) = uVar2;
  FUN_00031580(uVar1);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00077880();
}

