
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

FontSpec * conf_get_fontspec(Conf *conf,int primary)

{
  int iVar1;
  void *pvVar2;
  int in_GS_OFFSET;
  key key;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (subkeytypes[primary] != 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");
  }
  if (valuetypes[primary] != 4) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");
  }
  key.primary = primary;
  pvVar2 = find234(conf->tree,&key,(cmpfn234)0x0);
  if (pvVar2 == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return *(FontSpec **)((int)pvVar2 + 8);
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

undefined4 FUN_0001f0c0(undefined4 *param_1,int param_2)

{
  int iVar1;
  int in_GS_OFFSET;
  int local_18 [2];
  int local_10;
  undefined4 uStack_8;
  
  uStack_8 = 0x1f0c6;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(int *)(&DAT_00079680 + param_2 * 4) != 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");
  }
  if (*(int *)(&DAT_000793a0 + param_2 * 4) != 4) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");
  }
  local_18[0] = param_2;
  iVar1 = FUN_00047980(*param_1,local_18,0);
  if (iVar1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return *(undefined4 *)(iVar1 + 8);
  }
                    /* WARNING: Subroutine does not return */
  FUN_00066390();
}


PUSH EBX
CALL 0x0001b410
ADD EBX,0x916de
SUB ESP,0x18
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0xc],ECX
XOR ECX,ECX
MOV EAX,dword ptr [ESP + 0x24]
MOV EDX,dword ptr [ESP + 0x20]
MOV ECX,dword ptr [EBX + EAX*0x4 + 0xfffc8edc]
TEST ECX,ECX
JNZ 0x0001f12a
CMP dword ptr [EBX + EAX*0x4 + 0xfffc8bfc],0x4
JNZ 0x0001f16d
MOV dword ptr [ESP + 0x4],EAX
SUB ESP,0x4
PUSH 0x0
LEA EAX,[ESP + 0xc]
PUSH EAX
PUSH dword ptr [EDX]
CALL 0x00047980
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001f14e
MOV ECX,dword ptr [ESP + 0xc]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,dword ptr [EAX + 0x8]
JNZ 0x0001f149
ADD ESP,0x18
POP EBX
RET
LEA EAX,[EBX + 0xfffc8b2c]
PUSH EAX
LEA EAX,[EBX + 0xfffc8970]
PUSH 0x17b
PUSH EAX
LEA EAX,[EBX + 0xfffc8990]
PUSH EAX
CALL 0x0001af20
CALL 0x00066390
LEA EAX,[EBX + 0xfffc8b2c]
PUSH EAX
LEA EAX,[EBX + 0xfffc8970]
PUSH 0x17f
PUSH EAX
LEA EAX,[EBX + 0xfffc8983]
PUSH EAX
CALL 0x0001af20
LEA EAX,[EBX + 0xfffc8b2c]
PUSH EAX
LEA EAX,[EBX + 0xfffc8970]
PUSH 0x17c
PUSH EAX
LEA EAX,[EBX + 0xfffc8a64]
PUSH EAX
CALL 0x0001af20
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0001f0c0(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  int local_18 [2];\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1f0c6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_00079680 + param_2 * 4) != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");\n  }\n  if (*(int *)(&DAT_000793a0 + param_2 * 4) != 4) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");\n  }\n  local_18[0] = param_2;\n  iVar1 = FUN_00047980(*param_1,local_18,0);\n  if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return *(undefined4 *)(iVar1 + 8);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00066390();\n}\n\n" comment (function_definition "undefined4 FUN_0001f0c0(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  int local_18 [2];\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1f0c6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_00079680 + param_2 * 4) != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");\n  }\n  if (*(int *)(&DAT_000793a0 + param_2 * 4) != 4) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");\n  }\n  local_18[0] = param_2;\n  iVar1 = FUN_00047980(*param_1,local_18,0);\n  if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return *(undefined4 *)(iVar1 + 8);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00066390();\n}" type_identifier (function_declarator "FUN_0001f0c0(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  int local_18 [2];\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1f0c6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_00079680 + param_2 * 4) != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");\n  }\n  if (*(int *)(&DAT_000793a0 + param_2 * 4) != 4) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");\n  }\n  local_18[0] = param_2;\n  iVar1 = FUN_00047980(*param_1,local_18,0);\n  if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return *(undefined4 *)(iVar1 + 8);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00066390();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_18 [2];" primitive_type (array_declarator "local_18 [2]" identifier [ number_literal ]) ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x1f0c6;" (assignment_expression "uStack_8 = 0x1f0c6" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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) ))))) ;) (if_statement "if (*(int *)(&DAT_00079680 + param_2 * 4) != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");\n  }" if (parenthesized_expression "(*(int *)(&DAT_00079680 + param_2 * 4) != 0)" ( (binary_expression "*(int *)(&DAT_00079680 + param_2 * 4) != 0" (pointer_expression "*(int *)(&DAT_00079680 + param_2 * 4)" * (cast_expression "(int *)(&DAT_00079680 + param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00079680 + param_2 * 4)" ( (binary_expression "&DAT_00079680 + param_2 * 4" (pointer_expression "&DAT_00079680" & identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");\n  }" { comment (expression_statement "__assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");" (call_expression "__assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec")" identifier (argument_list "("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec")" ( (string_literal ""subkeytypes[primary] == TYPE_NONE"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_fontspec"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(&DAT_000793a0 + param_2 * 4) != 4) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");\n  }" if (parenthesized_expression "(*(int *)(&DAT_000793a0 + param_2 * 4) != 4)" ( (binary_expression "*(int *)(&DAT_000793a0 + param_2 * 4) != 4" (pointer_expression "*(int *)(&DAT_000793a0 + param_2 * 4)" * (cast_expression "(int *)(&DAT_000793a0 + param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000793a0 + param_2 * 4)" ( (binary_expression "&DAT_000793a0 + param_2 * 4" (pointer_expression "&DAT_000793a0" & identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");\n  }" { comment (expression_statement "__assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");" (call_expression "__assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec")" identifier (argument_list "("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec")" ( (string_literal ""valuetypes[primary] == TYPE_FONT"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_fontspec"" " string_content ") ))) ;) })) (expression_statement "local_18[0] = param_2;" (assignment_expression "local_18[0] = param_2" (subscript_expression "local_18[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = FUN_00047980(*param_1,local_18,0);" (assignment_expression "iVar1 = FUN_00047980(*param_1,local_18,0)" identifier = (call_expression "FUN_00047980(*param_1,local_18,0)" identifier (argument_list "(*param_1,local_18,0)" ( (pointer_expression "*param_1" * identifier) , identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");\n  }" { comment (expression_statement "__assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");" (call_expression "__assert_fail("entry","conf.c",0x17f,"conf_get_fontspec")" identifier (argument_list "("entry","conf.c",0x17f,"conf_get_fontspec")" ( (string_literal ""entry"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_fontspec"" " string_content ") ))) ;) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return *(undefined4 *)(iVar1 + 8);\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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 *(undefined4 *)(iVar1 + 8);\n  }" { (return_statement "return *(undefined4 *)(iVar1 + 8);" return (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) ;) })) comment (expression_statement "FUN_00066390();" (call_expression "FUN_00066390()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nFontSpec * conf_get_fontspec(Conf *conf,int primary)\n\n{\n  int iVar1;\n  void *pvVar2;\n  int in_GS_OFFSET;\n  key key;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (subkeytypes[primary] != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");\n  }\n  if (valuetypes[primary] != 4) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");\n  }\n  key.primary = primary;\n  pvVar2 = find234(conf->tree,&key,(cmpfn234)0x0);\n  if (pvVar2 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return *(FontSpec **)((int)pvVar2 + 8);\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "FontSpec * conf_get_fontspec(Conf *conf,int primary)\n\n{\n  int iVar1;\n  void *pvVar2;\n  int in_GS_OFFSET;\n  key key;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (subkeytypes[primary] != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");\n  }\n  if (valuetypes[primary] != 4) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");\n  }\n  key.primary = primary;\n  pvVar2 = find234(conf->tree,&key,(cmpfn234)0x0);\n  if (pvVar2 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return *(FontSpec **)((int)pvVar2 + 8);\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (pointer_declarator "* conf_get_fontspec(Conf *conf,int primary)" * (function_declarator "conf_get_fontspec(Conf *conf,int primary)" identifier (parameter_list "(Conf *conf,int primary)" ( (parameter_declaration "Conf *conf" type_identifier (pointer_declarator "*conf" * identifier)) , (parameter_declaration "int primary" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  void *pvVar2;\n  int in_GS_OFFSET;\n  key key;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (subkeytypes[primary] != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");\n  }\n  if (valuetypes[primary] != 4) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");\n  }\n  key.primary = primary;\n  pvVar2 = find234(conf->tree,&key,(cmpfn234)0x0);\n  if (pvVar2 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return *(FontSpec **)((int)pvVar2 + 8);\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "key key;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (subkeytypes[primary] != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");\n  }" if (parenthesized_expression "(subkeytypes[primary] != 0)" ( (binary_expression "subkeytypes[primary] != 0" (subscript_expression "subkeytypes[primary]" identifier [ identifier ]) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");\n  }" { comment (expression_statement "__assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");" (call_expression "__assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec")" identifier (argument_list "("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec")" ( (string_literal ""subkeytypes[primary] == TYPE_NONE"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_fontspec"" " string_content ") ))) ;) })) (if_statement "if (valuetypes[primary] != 4) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");\n  }" if (parenthesized_expression "(valuetypes[primary] != 4)" ( (binary_expression "valuetypes[primary] != 4" (subscript_expression "valuetypes[primary]" identifier [ identifier ]) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");\n  }" { comment (expression_statement "__assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");" (call_expression "__assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec")" identifier (argument_list "("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec")" ( (string_literal ""valuetypes[primary] == TYPE_FONT"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_fontspec"" " string_content ") ))) ;) })) (expression_statement "key.primary = primary;" (assignment_expression "key.primary = primary" (field_expression "key.primary" identifier . field_identifier) = identifier) ;) (expression_statement "pvVar2 = find234(conf->tree,&key,(cmpfn234)0x0);" (assignment_expression "pvVar2 = find234(conf->tree,&key,(cmpfn234)0x0)" identifier = (call_expression "find234(conf->tree,&key,(cmpfn234)0x0)" identifier (argument_list "(conf->tree,&key,(cmpfn234)0x0)" ( (field_expression "conf->tree" identifier -> field_identifier) , (pointer_expression "&key" & identifier) , (cast_expression "(cmpfn234)0x0" ( (type_descriptor "cmpfn234" type_identifier) ) number_literal) )))) ;) (if_statement "if (pvVar2 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");\n  }" if (parenthesized_expression "(pvVar2 == (void *)0x0)" ( (binary_expression "pvVar2 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");\n  }" { comment (expression_statement "__assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");" (call_expression "__assert_fail("entry","conf.c",0x17f,"conf_get_fontspec")" identifier (argument_list "("entry","conf.c",0x17f,"conf_get_fontspec")" ( (string_literal ""entry"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_fontspec"" " string_content ") ))) ;) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return *(FontSpec **)((int)pvVar2 + 8);\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return *(FontSpec **)((int)pvVar2 + 8);\n  }" { (return_statement "return *(FontSpec **)((int)pvVar2 + 8);" return (pointer_expression "*(FontSpec **)((int)pvVar2 + 8)" * (cast_expression "(FontSpec **)((int)pvVar2 + 8)" ( (type_descriptor "FontSpec **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar2 + 8)" ( (binary_expression "(int)pvVar2 + 8" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 FUN_0001f0c0(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  int local_18 [2];\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1f0c6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_00079680 + param_2 * 4) != 0) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");\n  }\n  if (*(int *)(&DAT_000793a0 + param_2 * 4) != 4) {\n                    \n    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");\n  }\n  local_18[0] = param_2;\n  iVar1 = FUN_00047980(*param_1,local_18,0);\n  if (iVar1 == 0) {\n                    \n    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return *(undefined4 *)(iVar1 + 8);\n  }\n                    \n  FUN_00066390();\n}\n\n" (function_definition "undefined4 FUN_0001f0c0(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  int local_18 [2];\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1f0c6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_00079680 + param_2 * 4) != 0) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");\n  }\n  if (*(int *)(&DAT_000793a0 + param_2 * 4) != 4) {\n                    \n    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");\n  }\n  local_18[0] = param_2;\n  iVar1 = FUN_00047980(*param_1,local_18,0);\n  if (iVar1 == 0) {\n                    \n    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return *(undefined4 *)(iVar1 + 8);\n  }\n                    \n  FUN_00066390();\n}" type_identifier (function_declarator "FUN_0001f0c0(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  int local_18 [2];\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1f0c6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_00079680 + param_2 * 4) != 0) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");\n  }\n  if (*(int *)(&DAT_000793a0 + param_2 * 4) != 4) {\n                    \n    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");\n  }\n  local_18[0] = param_2;\n  iVar1 = FUN_00047980(*param_1,local_18,0);\n  if (iVar1 == 0) {\n                    \n    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return *(undefined4 *)(iVar1 + 8);\n  }\n                    \n  FUN_00066390();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_18 [2];" primitive_type (array_declarator "local_18 [2]" identifier [ number_literal ]) ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x1f0c6;" (assignment_expression "uStack_8 = 0x1f0c6" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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) ))))) ;) (if_statement "if (*(int *)(&DAT_00079680 + param_2 * 4) != 0) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");\n  }" if (parenthesized_expression "(*(int *)(&DAT_00079680 + param_2 * 4) != 0)" ( (binary_expression "*(int *)(&DAT_00079680 + param_2 * 4) != 0" (pointer_expression "*(int *)(&DAT_00079680 + param_2 * 4)" * (cast_expression "(int *)(&DAT_00079680 + param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00079680 + param_2 * 4)" ( (binary_expression "&DAT_00079680 + param_2 * 4" (pointer_expression "&DAT_00079680" & identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");\n  }" { (expression_statement "__assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");" (call_expression "__assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec")" identifier (argument_list "("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec")" ( (string_literal ""subkeytypes[primary] == TYPE_NONE"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_fontspec"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(&DAT_000793a0 + param_2 * 4) != 4) {\n                    \n    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");\n  }" if (parenthesized_expression "(*(int *)(&DAT_000793a0 + param_2 * 4) != 4)" ( (binary_expression "*(int *)(&DAT_000793a0 + param_2 * 4) != 4" (pointer_expression "*(int *)(&DAT_000793a0 + param_2 * 4)" * (cast_expression "(int *)(&DAT_000793a0 + param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000793a0 + param_2 * 4)" ( (binary_expression "&DAT_000793a0 + param_2 * 4" (pointer_expression "&DAT_000793a0" & identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");\n  }" { (expression_statement "__assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");" (call_expression "__assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec")" identifier (argument_list "("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec")" ( (string_literal ""valuetypes[primary] == TYPE_FONT"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_fontspec"" " string_content ") ))) ;) })) (expression_statement "local_18[0] = param_2;" (assignment_expression "local_18[0] = param_2" (subscript_expression "local_18[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = FUN_00047980(*param_1,local_18,0);" (assignment_expression "iVar1 = FUN_00047980(*param_1,local_18,0)" identifier = (call_expression "FUN_00047980(*param_1,local_18,0)" identifier (argument_list "(*param_1,local_18,0)" ( (pointer_expression "*param_1" * identifier) , identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n                    \n    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");\n  }" { (expression_statement "__assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");" (call_expression "__assert_fail("entry","conf.c",0x17f,"conf_get_fontspec")" identifier (argument_list "("entry","conf.c",0x17f,"conf_get_fontspec")" ( (string_literal ""entry"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_fontspec"" " string_content ") ))) ;) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return *(undefined4 *)(iVar1 + 8);\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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 *(undefined4 *)(iVar1 + 8);\n  }" { (return_statement "return *(undefined4 *)(iVar1 + 8);" return (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) ;) })) (expression_statement "FUN_00066390();" (call_expression "FUN_00066390()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 FUN_0001f0c0(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  int local_18 [2];\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1f0c6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_00079680 + param_2 * 4) != 0) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");\n  }\n  if (*(int *)(&DAT_000793a0 + param_2 * 4) != 4) {\n                    \n    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");\n  }\n  local_18[0] = param_2;\n  iVar1 = FUN_00047980(*param_1,local_18,0);\n  if (iVar1 == 0) {\n                    \n    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return *(undefined4 *)(iVar1 + 8);\n  }\n                    \n  FUN_00066390();\n}" (type_identifier "undefined4") (function_declarator "FUN_0001f0c0(undefined4 *param_1,int param_2)" (identifier "FUN_0001f0c0") (parameter_list "(undefined4 *param_1,int param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  int local_18 [2];\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1f0c6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_00079680 + param_2 * 4) != 0) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");\n  }\n  if (*(int *)(&DAT_000793a0 + param_2 * 4) != 4) {\n                    \n    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");\n  }\n  local_18[0] = param_2;\n  iVar1 = FUN_00047980(*param_1,local_18,0);\n  if (iVar1 == 0) {\n                    \n    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return *(undefined4 *)(iVar1 + 8);\n  }\n                    \n  FUN_00066390();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_18 [2];" (primitive_type "int") (array_declarator "local_18 [2]" (identifier "local_18") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (declaration "undefined4 uStack_8;" (type_identifier "undefined4") (identifier "uStack_8") (; ";")) (expression_statement "uStack_8 = 0x1f0c6;" (assignment_expression "uStack_8 = 0x1f0c6" (identifier "uStack_8") (= "=") (number_literal "0x1f0c6")) (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (*(int *)(&DAT_00079680 + param_2 * 4) != 0) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");\n  }" (if "if") (parenthesized_expression "(*(int *)(&DAT_00079680 + param_2 * 4) != 0)" (( "(") (binary_expression "*(int *)(&DAT_00079680 + param_2 * 4) != 0" (pointer_expression "*(int *)(&DAT_00079680 + param_2 * 4)" (* "*") (cast_expression "(int *)(&DAT_00079680 + param_2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00079680 + param_2 * 4)" (( "(") (binary_expression "&DAT_00079680 + param_2 * 4" (pointer_expression "&DAT_00079680" (& "&") (identifier "DAT_00079680")) (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");\n  }" ({ "{") (expression_statement "__assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");" (call_expression "__assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec")" (identifier "__assert_fail") (argument_list "("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec")" (( "(") (string_literal ""subkeytypes[primary] == TYPE_NONE"" (" """) (string_content "subkeytypes[primary] == TYPE_NONE") (" """)) (, ",") (string_literal ""conf.c"" (" """) (string_content "conf.c") (" """)) (, ",") (number_literal "0x17b") (, ",") (string_literal ""conf_get_fontspec"" (" """) (string_content "conf_get_fontspec") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(&DAT_000793a0 + param_2 * 4) != 4) {\n                    \n    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");\n  }" (if "if") (parenthesized_expression "(*(int *)(&DAT_000793a0 + param_2 * 4) != 4)" (( "(") (binary_expression "*(int *)(&DAT_000793a0 + param_2 * 4) != 4" (pointer_expression "*(int *)(&DAT_000793a0 + param_2 * 4)" (* "*") (cast_expression "(int *)(&DAT_000793a0 + param_2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_000793a0 + param_2 * 4)" (( "(") (binary_expression "&DAT_000793a0 + param_2 * 4" (pointer_expression "&DAT_000793a0" (& "&") (identifier "DAT_000793a0")) (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) () ")")))) (!= "!=") (number_literal "4")) () ")")) (compound_statement "{\n                    \n    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");\n  }" ({ "{") (expression_statement "__assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");" (call_expression "__assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec")" (identifier "__assert_fail") (argument_list "("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec")" (( "(") (string_literal ""valuetypes[primary] == TYPE_FONT"" (" """) (string_content "valuetypes[primary] == TYPE_FONT") (" """)) (, ",") (string_literal ""conf.c"" (" """) (string_content "conf.c") (" """)) (, ",") (number_literal "0x17c") (, ",") (string_literal ""conf_get_fontspec"" (" """) (string_content "conf_get_fontspec") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "local_18[0] = param_2;" (assignment_expression "local_18[0] = param_2" (subscript_expression "local_18[0]" (identifier "local_18") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "iVar1 = FUN_00047980(*param_1,local_18,0);" (assignment_expression "iVar1 = FUN_00047980(*param_1,local_18,0)" (identifier "iVar1") (= "=") (call_expression "FUN_00047980(*param_1,local_18,0)" (identifier "FUN_00047980") (argument_list "(*param_1,local_18,0)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "local_18") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n                    \n    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");\n  }" ({ "{") (expression_statement "__assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");" (call_expression "__assert_fail("entry","conf.c",0x17f,"conf_get_fontspec")" (identifier "__assert_fail") (argument_list "("entry","conf.c",0x17f,"conf_get_fontspec")" (( "(") (string_literal ""entry"" (" """) (string_content "entry") (" """)) (, ",") (string_literal ""conf.c"" (" """) (string_content "conf.c") (" """)) (, ",") (number_literal "0x17f") (, ",") (string_literal ""conf_get_fontspec"" (" """) (string_content "conf_get_fontspec") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return *(undefined4 *)(iVar1 + 8);\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (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 *(undefined4 *)(iVar1 + 8);\n  }" ({ "{") (return_statement "return *(undefined4 *)(iVar1 + 8);" (return "return") (pointer_expression "*(undefined4 *)(iVar1 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (; ";")) (} "}"))) (expression_statement "FUN_00066390();" (call_expression "FUN_00066390()" (identifier "FUN_00066390") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

type_1 * function_1(type_2 *conf,int primary)

{
  int var_5;
  void *var_4;
  int var_1;
  type_3 type_3;
  
  var_5 = *(int *)(var_1 + 0x14);
  if (subkeytypes[primary] != 0) {
                    /* WARNING: Subroutine does not return */
    var_2("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");
  }
  if (valuetypes[primary] != 4) {
                    /* WARNING: Subroutine does not return */
    var_2("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");
  }
  type_3.primary = primary;
  var_4 = var_3(conf->tree,&type_3,(type_4)0x0);
  if (var_4 == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("entry","conf.c",0x17f,"conf_get_fontspec");
  }
  if (var_5 == *(int *)(var_1 + 0x14)) {
    return *(type_1 **)((int)var_4 + 8);
  }
                    /* WARNING: Subroutine does not return */
  var_6();
}


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

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

undefined4 MASKED(undefined4 *param_1,int param_2)

{
  int iVar1;
  int in_GS_OFFSET;
  int local_18 [2];
  int local_10;
  undefined4 uStack_8;
  
  uStack_8 = 0x1f0c6;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(int *)(&DAT_00079680 + param_2 * 4) != 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("subkeytypes[primary] == TYPE_NONE","conf.c",0x17b,"conf_get_fontspec");
  }
  if (*(int *)(&DAT_000793a0 + param_2 * 4) != 4) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("valuetypes[primary] == TYPE_FONT","conf.c",0x17c,"conf_get_fontspec");
  }
  local_18[0] = param_2;
  iVar1 = FUN_00047980(*param_1,local_18,0);
  if (iVar1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("entry","conf.c",0x17f,"conf_get_fontspec");
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return *(undefined4 *)(iVar1 + 8);
  }
                    /* WARNING: Subroutine does not return */
  FUN_00066390();
}

