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

char * conf_get_str_nthstrkey(Conf *conf,int primary,int n)

{
  int iVar1;
  int *piVar2;
  char *pcVar3;
  int in_GS_OFFSET;
  int index;
  constkey key;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (subkeytypes[primary] != 2) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");
  }
  if (valuetypes[primary] != 2) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");
  }
  key.secondary.s = "";
  key.primary = primary;
  piVar2 = (int *)findrelpos234(conf->tree,&key,conf_cmp_constkey,4,&index);
  if ((piVar2 != (int *)0x0) && (*piVar2 == primary)) {
    piVar2 = (int *)index234(conf->tree,n + index);
    if ((piVar2 != (int *)0x0) && (*piVar2 == primary)) {
      pcVar3 = (char *)piVar2[1];
      goto LAB_00017892;
    }
  }
  pcVar3 = (char *)0x0;
LAB_00017892:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return pcVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

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

{
  int *piVar1;
  int iVar2;
  int in_GS_OFFSET;
  int local_1c;
  int local_18;
  undefined *local_14;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");
  }
  if (*(int *)(&DAT_000706e0 + param_2 * 4) != 2) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");
  }
  local_14 = &DAT_000712ce;
  local_18 = param_2;
  piVar1 = (int *)FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c);
  if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {
    piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c);
    if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {
      iVar2 = piVar1[1];
      goto LAB_00017892;
    }
  }
  iVar2 = 0;
LAB_00017892:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f430();
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014970
ADD EBX,0x92598
SUB ESP,0x10
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x24]
MOV EDI,dword ptr [ESP + 0x20]
CMP dword ptr [EBX + ESI*0x4 + 0xfffc6c30],0x2
JNZ 0x000178c5
CMP dword ptr [EBX + ESI*0x4 + 0xfffc6950],0x2
JNZ 0x000178a6
LEA EAX,[EBX + 0xfffc753e]
MOV dword ptr [ESP + 0x4],ESI
SUB ESP,0xc
MOV dword ptr [ESP + 0x14],EAX
LEA EAX,[ESP + 0xc]
PUSH EAX
LEA EAX,[EBX + 0xfff6d200]
PUSH 0x4
PUSH EAX
LEA EAX,[ESP + 0x1c]
PUSH EAX
PUSH dword ptr [EDI]
CALL 0x00063e00
ADD ESP,0x20
TEST EAX,EAX
JZ 0x00017890
CMP dword ptr [EAX],ESI
JNZ 0x00017890
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x30]
ADD EAX,dword ptr [ESP + 0x8]
PUSH EAX
PUSH dword ptr [EDI]
CALL 0x00063d60
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00017890
CMP dword ptr [EAX],ESI
JNZ 0x00017890
MOV EAX,dword ptr [EAX + 0x4]
JMP 0x00017892
XOR EAX,EAX
MOV EDX,dword ptr [ESP + 0xc]
XOR EDX,dword ptr GS:[0x14]
JNZ 0x000178e4
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
LEA EAX,[EBX + 0xfffc68a8]
PUSH EAX
LEA EAX,[EBX + 0xfffc66d0]
PUSH 0x15c
PUSH EAX
LEA EAX,[EBX + 0xfffc6758]
PUSH EAX
CALL 0x00014870
LEA EAX,[EBX + 0xfffc68a8]
PUSH EAX
LEA EAX,[EBX + 0xfffc66d0]
PUSH 0x15b
PUSH EAX
LEA EAX,[EBX + 0xfffc6778]
PUSH EAX
CALL 0x00014870
CALL 0x0006f430
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_000177f0(undefined4 *param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_1c;\n  int local_18;\n  undefined *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n  }\n  local_14 = &DAT_000712ce;\n  local_18 = param_2;\n  piVar1 = (int *)FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c);\n  if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n    piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c);\n    if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n      iVar2 = piVar1[1];\n      goto LAB_00017892;\n    }\n  }\n  iVar2 = 0;\nLAB_00017892:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}\n\n" comment (function_definition "int FUN_000177f0(undefined4 *param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_1c;\n  int local_18;\n  undefined *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n  }\n  local_14 = &DAT_000712ce;\n  local_18 = param_2;\n  piVar1 = (int *)FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c);\n  if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n    piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c);\n    if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n      iVar2 = piVar1[1];\n      goto LAB_00017892;\n    }\n  }\n  iVar2 = 0;\nLAB_00017892:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}" primitive_type (function_declarator "FUN_000177f0(undefined4 *param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 *param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_1c;\n  int local_18;\n  undefined *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n  }\n  local_14 = &DAT_000712ce;\n  local_18 = param_2;\n  piVar1 = (int *)FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c);\n  if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n    piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c);\n    if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n      iVar2 = piVar1[1];\n      goto LAB_00017892;\n    }\n  }\n  iVar2 = 0;\nLAB_00017892:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (declaration "int local_18;" primitive_type identifier ;) (declaration "undefined *local_14;" type_identifier (pointer_declarator "*local_14" * identifier) ;) (declaration "int local_10;" primitive_type identifier ;) (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_000709c0 + param_2 * 4) != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }" if (parenthesized_expression "(*(int *)(&DAT_000709c0 + param_2 * 4) != 2)" ( (binary_expression "*(int *)(&DAT_000709c0 + param_2 * 4) != 2" (pointer_expression "*(int *)(&DAT_000709c0 + param_2 * 4)" * (cast_expression "(int *)(&DAT_000709c0 + param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000709c0 + param_2 * 4)" ( (binary_expression "&DAT_000709c0 + param_2 * 4" (pointer_expression "&DAT_000709c0" & 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_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }" { comment (expression_statement "__assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");" (call_expression "__assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey")" identifier (argument_list "("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey")" ( (string_literal ""subkeytypes[primary] == TYPE_STR"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_str_nthstrkey"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(&DAT_000706e0 + param_2 * 4) != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n  }" if (parenthesized_expression "(*(int *)(&DAT_000706e0 + param_2 * 4) != 2)" ( (binary_expression "*(int *)(&DAT_000706e0 + param_2 * 4) != 2" (pointer_expression "*(int *)(&DAT_000706e0 + param_2 * 4)" * (cast_expression "(int *)(&DAT_000706e0 + param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000706e0 + param_2 * 4)" ( (binary_expression "&DAT_000706e0 + param_2 * 4" (pointer_expression "&DAT_000706e0" & 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_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n  }" { comment (expression_statement "__assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");" (call_expression "__assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey")" identifier (argument_list "("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey")" ( (string_literal ""valuetypes[primary] == TYPE_STR"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_str_nthstrkey"" " string_content ") ))) ;) })) (expression_statement "local_14 = &DAT_000712ce;" (assignment_expression "local_14 = &DAT_000712ce" identifier = (pointer_expression "&DAT_000712ce" & identifier)) ;) (expression_statement "local_18 = param_2;" (assignment_expression "local_18 = param_2" identifier = identifier) ;) (expression_statement "piVar1 = (int *)FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c);" (assignment_expression "piVar1 = (int *)FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c)" identifier = (cast_expression "(int *)FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c)" identifier (argument_list "(*param_1,&local_18,FUN_00016f90,4,&local_1c)" ( (pointer_expression "*param_1" * identifier) , (pointer_expression "&local_18" & identifier) , identifier , number_literal , (pointer_expression "&local_1c" & identifier) ))))) ;) (if_statement "if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n    piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c);\n    if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n      iVar2 = piVar1[1];\n      goto LAB_00017892;\n    }\n  }" if (parenthesized_expression "((piVar1 != (int *)0x0) && (*piVar1 == param_2))" ( (binary_expression "(piVar1 != (int *)0x0) && (*piVar1 == param_2)" (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*piVar1 == param_2)" ( (binary_expression "*piVar1 == param_2" (pointer_expression "*piVar1" * identifier) == identifier) ))) )) (compound_statement "{\n    piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c);\n    if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n      iVar2 = piVar1[1];\n      goto LAB_00017892;\n    }\n  }" { (expression_statement "piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c);" (assignment_expression "piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c)" identifier = (cast_expression "(int *)FUN_00063d60(*param_1,param_3 + local_1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00063d60(*param_1,param_3 + local_1c)" identifier (argument_list "(*param_1,param_3 + local_1c)" ( (pointer_expression "*param_1" * identifier) , (binary_expression "param_3 + local_1c" identifier + identifier) ))))) ;) (if_statement "if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n      iVar2 = piVar1[1];\n      goto LAB_00017892;\n    }" if (parenthesized_expression "((piVar1 != (int *)0x0) && (*piVar1 == param_2))" ( (binary_expression "(piVar1 != (int *)0x0) && (*piVar1 == param_2)" (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*piVar1 == param_2)" ( (binary_expression "*piVar1 == param_2" (pointer_expression "*piVar1" * identifier) == identifier) ))) )) (compound_statement "{\n      iVar2 = piVar1[1];\n      goto LAB_00017892;\n    }" { (expression_statement "iVar2 = piVar1[1];" (assignment_expression "iVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_00017892;" goto statement_identifier ;) })) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00017892:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\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 iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) }))) comment (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" 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\nchar * conf_get_str_nthstrkey(Conf *conf,int primary,int n)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  int index;\n  constkey key;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (subkeytypes[primary] != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }\n  if (valuetypes[primary] != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n  }\n  key.secondary.s = "";\n  key.primary = primary;\n  piVar2 = (int *)findrelpos234(conf->tree,&key,conf_cmp_constkey,4,&index);\n  if ((piVar2 != (int *)0x0) && (*piVar2 == primary)) {\n    piVar2 = (int *)index234(conf->tree,n + index);\n    if ((piVar2 != (int *)0x0) && (*piVar2 == primary)) {\n      pcVar3 = (char *)piVar2[1];\n      goto LAB_00017892;\n    }\n  }\n  pcVar3 = (char *)0x0;\nLAB_00017892:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "char * conf_get_str_nthstrkey(Conf *conf,int primary,int n)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  int index;\n  constkey key;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (subkeytypes[primary] != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }\n  if (valuetypes[primary] != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n  }\n  key.secondary.s = "";\n  key.primary = primary;\n  piVar2 = (int *)findrelpos234(conf->tree,&key,conf_cmp_constkey,4,&index);\n  if ((piVar2 != (int *)0x0) && (*piVar2 == primary)) {\n    piVar2 = (int *)index234(conf->tree,n + index);\n    if ((piVar2 != (int *)0x0) && (*piVar2 == primary)) {\n      pcVar3 = (char *)piVar2[1];\n      goto LAB_00017892;\n    }\n  }\n  pcVar3 = (char *)0x0;\nLAB_00017892:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (pointer_declarator "* conf_get_str_nthstrkey(Conf *conf,int primary,int n)" * (function_declarator "conf_get_str_nthstrkey(Conf *conf,int primary,int n)" identifier (parameter_list "(Conf *conf,int primary,int n)" ( (parameter_declaration "Conf *conf" type_identifier (pointer_declarator "*conf" * identifier)) , (parameter_declaration "int primary" primitive_type identifier) , (parameter_declaration "int n" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  int index;\n  constkey key;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (subkeytypes[primary] != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }\n  if (valuetypes[primary] != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n  }\n  key.secondary.s = "";\n  key.primary = primary;\n  piVar2 = (int *)findrelpos234(conf->tree,&key,conf_cmp_constkey,4,&index);\n  if ((piVar2 != (int *)0x0) && (*piVar2 == primary)) {\n    piVar2 = (int *)index234(conf->tree,n + index);\n    if ((piVar2 != (int *)0x0) && (*piVar2 == primary)) {\n      pcVar3 = (char *)piVar2[1];\n      goto LAB_00017892;\n    }\n  }\n  pcVar3 = (char *)0x0;\nLAB_00017892:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int index;" primitive_type identifier ;) (declaration "constkey 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] != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }" if (parenthesized_expression "(subkeytypes[primary] != 2)" ( (binary_expression "subkeytypes[primary] != 2" (subscript_expression "subkeytypes[primary]" identifier [ identifier ]) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }" { comment (expression_statement "__assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");" (call_expression "__assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey")" identifier (argument_list "("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey")" ( (string_literal ""subkeytypes[primary] == TYPE_STR"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_str_nthstrkey"" " string_content ") ))) ;) })) (if_statement "if (valuetypes[primary] != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n  }" if (parenthesized_expression "(valuetypes[primary] != 2)" ( (binary_expression "valuetypes[primary] != 2" (subscript_expression "valuetypes[primary]" identifier [ identifier ]) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n  }" { comment (expression_statement "__assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");" (call_expression "__assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey")" identifier (argument_list "("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey")" ( (string_literal ""valuetypes[primary] == TYPE_STR"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_str_nthstrkey"" " string_content ") ))) ;) })) (expression_statement "key.secondary.s = "";" (assignment_expression "key.secondary.s = """ (field_expression "key.secondary.s" (field_expression "key.secondary" identifier . field_identifier) . field_identifier) = (string_literal """" " ")) ;) (expression_statement "key.primary = primary;" (assignment_expression "key.primary = primary" (field_expression "key.primary" identifier . field_identifier) = identifier) ;) (expression_statement "piVar2 = (int *)findrelpos234(conf->tree,&key,conf_cmp_constkey,4,&index);" (assignment_expression "piVar2 = (int *)findrelpos234(conf->tree,&key,conf_cmp_constkey,4,&index)" identifier = (cast_expression "(int *)findrelpos234(conf->tree,&key,conf_cmp_constkey,4,&index)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "findrelpos234(conf->tree,&key,conf_cmp_constkey,4,&index)" identifier (argument_list "(conf->tree,&key,conf_cmp_constkey,4,&index)" ( (field_expression "conf->tree" identifier -> field_identifier) , (pointer_expression "&key" & identifier) , identifier , number_literal , (pointer_expression "&index" & identifier) ))))) ;) (if_statement "if ((piVar2 != (int *)0x0) && (*piVar2 == primary)) {\n    piVar2 = (int *)index234(conf->tree,n + index);\n    if ((piVar2 != (int *)0x0) && (*piVar2 == primary)) {\n      pcVar3 = (char *)piVar2[1];\n      goto LAB_00017892;\n    }\n  }" if (parenthesized_expression "((piVar2 != (int *)0x0) && (*piVar2 == primary))" ( (binary_expression "(piVar2 != (int *)0x0) && (*piVar2 == primary)" (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*piVar2 == primary)" ( (binary_expression "*piVar2 == primary" (pointer_expression "*piVar2" * identifier) == identifier) ))) )) (compound_statement "{\n    piVar2 = (int *)index234(conf->tree,n + index);\n    if ((piVar2 != (int *)0x0) && (*piVar2 == primary)) {\n      pcVar3 = (char *)piVar2[1];\n      goto LAB_00017892;\n    }\n  }" { (expression_statement "piVar2 = (int *)index234(conf->tree,n + index);" (assignment_expression "piVar2 = (int *)index234(conf->tree,n + index)" identifier = (cast_expression "(int *)index234(conf->tree,n + index)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "index234(conf->tree,n + index)" identifier (argument_list "(conf->tree,n + index)" ( (field_expression "conf->tree" identifier -> field_identifier) , (binary_expression "n + index" identifier + identifier) ))))) ;) (if_statement "if ((piVar2 != (int *)0x0) && (*piVar2 == primary)) {\n      pcVar3 = (char *)piVar2[1];\n      goto LAB_00017892;\n    }" if (parenthesized_expression "((piVar2 != (int *)0x0) && (*piVar2 == primary))" ( (binary_expression "(piVar2 != (int *)0x0) && (*piVar2 == primary)" (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*piVar2 == primary)" ( (binary_expression "*piVar2 == primary" (pointer_expression "*piVar2" * identifier) == identifier) ))) )) (compound_statement "{\n      pcVar3 = (char *)piVar2[1];\n      goto LAB_00017892;\n    }" { (expression_statement "pcVar3 = (char *)piVar2[1];" (assignment_expression "pcVar3 = (char *)piVar2[1]" identifier = (cast_expression "(char *)piVar2[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ]))) ;) (goto_statement "goto LAB_00017892;" goto statement_identifier ;) })) })) (expression_statement "pcVar3 = (char *)0x0;" (assignment_expression "pcVar3 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00017892:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\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 pcVar3;\n  }" { (return_statement "return pcVar3;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int FUN_000177f0(undefined4 *param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_1c;\n  int local_18;\n  undefined *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n  }\n  local_14 = &DAT_000712ce;\n  local_18 = param_2;\n  piVar1 = (int *)FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c);\n  if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n    piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c);\n    if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n      iVar2 = piVar1[1];\n      goto LAB_00017892;\n    }\n  }\n  iVar2 = 0;\nLAB_00017892:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_0006f430();\n}\n\n" (function_definition "int FUN_000177f0(undefined4 *param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_1c;\n  int local_18;\n  undefined *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n  }\n  local_14 = &DAT_000712ce;\n  local_18 = param_2;\n  piVar1 = (int *)FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c);\n  if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n    piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c);\n    if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n      iVar2 = piVar1[1];\n      goto LAB_00017892;\n    }\n  }\n  iVar2 = 0;\nLAB_00017892:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_0006f430();\n}" primitive_type (function_declarator "FUN_000177f0(undefined4 *param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 *param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_1c;\n  int local_18;\n  undefined *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n  }\n  local_14 = &DAT_000712ce;\n  local_18 = param_2;\n  piVar1 = (int *)FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c);\n  if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n    piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c);\n    if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n      iVar2 = piVar1[1];\n      goto LAB_00017892;\n    }\n  }\n  iVar2 = 0;\nLAB_00017892:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_0006f430();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (declaration "int local_18;" primitive_type identifier ;) (declaration "undefined *local_14;" type_identifier (pointer_declarator "*local_14" * identifier) ;) (declaration "int local_10;" primitive_type identifier ;) (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_000709c0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }" if (parenthesized_expression "(*(int *)(&DAT_000709c0 + param_2 * 4) != 2)" ( (binary_expression "*(int *)(&DAT_000709c0 + param_2 * 4) != 2" (pointer_expression "*(int *)(&DAT_000709c0 + param_2 * 4)" * (cast_expression "(int *)(&DAT_000709c0 + param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000709c0 + param_2 * 4)" ( (binary_expression "&DAT_000709c0 + param_2 * 4" (pointer_expression "&DAT_000709c0" & identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }" { (expression_statement "__assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");" (call_expression "__assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey")" identifier (argument_list "("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey")" ( (string_literal ""subkeytypes[primary] == TYPE_STR"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_str_nthstrkey"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(&DAT_000706e0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n  }" if (parenthesized_expression "(*(int *)(&DAT_000706e0 + param_2 * 4) != 2)" ( (binary_expression "*(int *)(&DAT_000706e0 + param_2 * 4) != 2" (pointer_expression "*(int *)(&DAT_000706e0 + param_2 * 4)" * (cast_expression "(int *)(&DAT_000706e0 + param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000706e0 + param_2 * 4)" ( (binary_expression "&DAT_000706e0 + param_2 * 4" (pointer_expression "&DAT_000706e0" & identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n  }" { (expression_statement "__assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");" (call_expression "__assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey")" identifier (argument_list "("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey")" ( (string_literal ""valuetypes[primary] == TYPE_STR"" " string_content ") , (string_literal ""conf.c"" " string_content ") , number_literal , (string_literal ""conf_get_str_nthstrkey"" " string_content ") ))) ;) })) (expression_statement "local_14 = &DAT_000712ce;" (assignment_expression "local_14 = &DAT_000712ce" identifier = (pointer_expression "&DAT_000712ce" & identifier)) ;) (expression_statement "local_18 = param_2;" (assignment_expression "local_18 = param_2" identifier = identifier) ;) (expression_statement "piVar1 = (int *)FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c);" (assignment_expression "piVar1 = (int *)FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c)" identifier = (cast_expression "(int *)FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c)" identifier (argument_list "(*param_1,&local_18,FUN_00016f90,4,&local_1c)" ( (pointer_expression "*param_1" * identifier) , (pointer_expression "&local_18" & identifier) , identifier , number_literal , (pointer_expression "&local_1c" & identifier) ))))) ;) (if_statement "if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n    piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c);\n    if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n      iVar2 = piVar1[1];\n      goto LAB_00017892;\n    }\n  }" if (parenthesized_expression "((piVar1 != (int *)0x0) && (*piVar1 == param_2))" ( (binary_expression "(piVar1 != (int *)0x0) && (*piVar1 == param_2)" (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*piVar1 == param_2)" ( (binary_expression "*piVar1 == param_2" (pointer_expression "*piVar1" * identifier) == identifier) ))) )) (compound_statement "{\n    piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c);\n    if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n      iVar2 = piVar1[1];\n      goto LAB_00017892;\n    }\n  }" { (expression_statement "piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c);" (assignment_expression "piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c)" identifier = (cast_expression "(int *)FUN_00063d60(*param_1,param_3 + local_1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00063d60(*param_1,param_3 + local_1c)" identifier (argument_list "(*param_1,param_3 + local_1c)" ( (pointer_expression "*param_1" * identifier) , (binary_expression "param_3 + local_1c" identifier + identifier) ))))) ;) (if_statement "if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n      iVar2 = piVar1[1];\n      goto LAB_00017892;\n    }" if (parenthesized_expression "((piVar1 != (int *)0x0) && (*piVar1 == param_2))" ( (binary_expression "(piVar1 != (int *)0x0) && (*piVar1 == param_2)" (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*piVar1 == param_2)" ( (binary_expression "*piVar1 == param_2" (pointer_expression "*piVar1" * identifier) == identifier) ))) )) (compound_statement "{\n      iVar2 = piVar1[1];\n      goto LAB_00017892;\n    }" { (expression_statement "iVar2 = piVar1[1];" (assignment_expression "iVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_00017892;" goto statement_identifier ;) })) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00017892:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\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 iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) }))) (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (pointer_expression & IDENT) , IDENT , LIT , (pointer_expression & IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (binary_expression IDENT + IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int FUN_000177f0(undefined4 *param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_1c;\n  int local_18;\n  undefined *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n  }\n  local_14 = &DAT_000712ce;\n  local_18 = param_2;\n  piVar1 = (int *)FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c);\n  if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n    piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c);\n    if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n      iVar2 = piVar1[1];\n      goto LAB_00017892;\n    }\n  }\n  iVar2 = 0;\nLAB_00017892:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_0006f430();\n}" (primitive_type "int") (function_declarator "FUN_000177f0(undefined4 *param_1,int param_2,int param_3)" (identifier "FUN_000177f0") (parameter_list "(undefined4 *param_1,int param_2,int param_3)" (( "(") (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")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_1c;\n  int local_18;\n  undefined *local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }\n  if (*(int *)(&DAT_000706e0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n  }\n  local_14 = &DAT_000712ce;\n  local_18 = param_2;\n  piVar1 = (int *)FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c);\n  if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n    piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c);\n    if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n      iVar2 = piVar1[1];\n      goto LAB_00017892;\n    }\n  }\n  iVar2 = 0;\nLAB_00017892:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_0006f430();\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_1c;" (primitive_type "int") (identifier "local_1c") (; ";")) (declaration "int local_18;" (primitive_type "int") (identifier "local_18") (; ";")) (declaration "undefined *local_14;" (type_identifier "undefined") (pointer_declarator "*local_14" (* "*") (identifier "local_14")) (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (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_000709c0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }" (if "if") (parenthesized_expression "(*(int *)(&DAT_000709c0 + param_2 * 4) != 2)" (( "(") (binary_expression "*(int *)(&DAT_000709c0 + param_2 * 4) != 2" (pointer_expression "*(int *)(&DAT_000709c0 + param_2 * 4)" (* "*") (cast_expression "(int *)(&DAT_000709c0 + param_2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_000709c0 + param_2 * 4)" (( "(") (binary_expression "&DAT_000709c0 + param_2 * 4" (pointer_expression "&DAT_000709c0" (& "&") (identifier "DAT_000709c0")) (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) () ")")))) (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }" ({ "{") (expression_statement "__assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");" (call_expression "__assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey")" (identifier "__assert_fail") (argument_list "("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey")" (( "(") (string_literal ""subkeytypes[primary] == TYPE_STR"" (" """) (string_content "subkeytypes[primary] == TYPE_STR") (" """)) (, ",") (string_literal ""conf.c"" (" """) (string_content "conf.c") (" """)) (, ",") (number_literal "0x15b") (, ",") (string_literal ""conf_get_str_nthstrkey"" (" """) (string_content "conf_get_str_nthstrkey") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(&DAT_000706e0 + param_2 * 4) != 2) {\n                    \n    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n  }" (if "if") (parenthesized_expression "(*(int *)(&DAT_000706e0 + param_2 * 4) != 2)" (( "(") (binary_expression "*(int *)(&DAT_000706e0 + param_2 * 4) != 2" (pointer_expression "*(int *)(&DAT_000706e0 + param_2 * 4)" (* "*") (cast_expression "(int *)(&DAT_000706e0 + param_2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_000706e0 + param_2 * 4)" (( "(") (binary_expression "&DAT_000706e0 + param_2 * 4" (pointer_expression "&DAT_000706e0" (& "&") (identifier "DAT_000706e0")) (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) () ")")))) (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n                    \n    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n  }" ({ "{") (expression_statement "__assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");" (call_expression "__assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey")" (identifier "__assert_fail") (argument_list "("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey")" (( "(") (string_literal ""valuetypes[primary] == TYPE_STR"" (" """) (string_content "valuetypes[primary] == TYPE_STR") (" """)) (, ",") (string_literal ""conf.c"" (" """) (string_content "conf.c") (" """)) (, ",") (number_literal "0x15c") (, ",") (string_literal ""conf_get_str_nthstrkey"" (" """) (string_content "conf_get_str_nthstrkey") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "local_14 = &DAT_000712ce;" (assignment_expression "local_14 = &DAT_000712ce" (identifier "local_14") (= "=") (pointer_expression "&DAT_000712ce" (& "&") (identifier "DAT_000712ce"))) (; ";")) (expression_statement "local_18 = param_2;" (assignment_expression "local_18 = param_2" (identifier "local_18") (= "=") (identifier "param_2")) (; ";")) (expression_statement "piVar1 = (int *)FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c);" (assignment_expression "piVar1 = (int *)FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c)" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c)" (identifier "FUN_00063e00") (argument_list "(*param_1,&local_18,FUN_00016f90,4,&local_1c)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (pointer_expression "&local_18" (& "&") (identifier "local_18")) (, ",") (identifier "FUN_00016f90") (, ",") (number_literal "4") (, ",") (pointer_expression "&local_1c" (& "&") (identifier "local_1c")) () ")"))))) (; ";")) (if_statement "if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n    piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c);\n    if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n      iVar2 = piVar1[1];\n      goto LAB_00017892;\n    }\n  }" (if "if") (parenthesized_expression "((piVar1 != (int *)0x0) && (*piVar1 == param_2))" (( "(") (binary_expression "(piVar1 != (int *)0x0) && (*piVar1 == param_2)" (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*piVar1 == param_2)" (( "(") (binary_expression "*piVar1 == param_2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (identifier "param_2")) () ")"))) () ")")) (compound_statement "{\n    piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c);\n    if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n      iVar2 = piVar1[1];\n      goto LAB_00017892;\n    }\n  }" ({ "{") (expression_statement "piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c);" (assignment_expression "piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c)" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_00063d60(*param_1,param_3 + local_1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00063d60(*param_1,param_3 + local_1c)" (identifier "FUN_00063d60") (argument_list "(*param_1,param_3 + local_1c)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (binary_expression "param_3 + local_1c" (identifier "param_3") (+ "+") (identifier "local_1c")) () ")"))))) (; ";")) (if_statement "if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {\n      iVar2 = piVar1[1];\n      goto LAB_00017892;\n    }" (if "if") (parenthesized_expression "((piVar1 != (int *)0x0) && (*piVar1 == param_2))" (( "(") (binary_expression "(piVar1 != (int *)0x0) && (*piVar1 == param_2)" (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*piVar1 == param_2)" (( "(") (binary_expression "*piVar1 == param_2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (identifier "param_2")) () ")"))) () ")")) (compound_statement "{\n      iVar2 = piVar1[1];\n      goto LAB_00017892;\n    }" ({ "{") (expression_statement "iVar2 = piVar1[1];" (assignment_expression "iVar2 = piVar1[1]" (identifier "iVar2") (= "=") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (goto_statement "goto LAB_00017892;" (goto "goto") (statement_identifier "LAB_00017892") (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00017892:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" (statement_identifier "LAB_00017892") (: ":") (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\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 iVar2;\n  }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))) (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" (identifier "FUN_0006f430") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

char * function_1(type_1 *conf,int var_5,int var_7)

{
  int var_9;
  int *var_4;
  char *pcVar3;
  int var_1;
  int var_8;
  type_2 key;
  
  var_9 = *(int *)(var_1 + 0x14);
  if (subkeytypes[var_5] != 2) {
                    /* WARNING: Subroutine does not return */
    var_2("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");
  }
  if (valuetypes[var_5] != 2) {
                    /* WARNING: Subroutine does not return */
    var_2("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");
  }
  key.secondary.s = "";
  key.var_5 = var_5;
  var_4 = (int *)var_3(conf->tree,&key,conf_cmp_constkey,4,&var_8);
  if ((var_4 != (int *)0x0) && (*var_4 == var_5)) {
    var_4 = (int *)var_6(conf->tree,var_7 + var_8);
    if ((var_4 != (int *)0x0) && (*var_4 == var_5)) {
      pcVar3 = (char *)var_4[1];
      goto LAB_00017892;
    }
  }
  pcVar3 = (char *)0x0;
LAB_00017892:
  if (var_9 == *(int *)(var_1 + 0x14)) {
    return pcVar3;
  }
                    /* WARNING: Subroutine does not return */
  var_10();
}


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

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

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

{
  int *piVar1;
  int iVar2;
  int in_GS_OFFSET;
  int local_1c;
  int local_18;
  undefined *local_14;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(int *)(&DAT_000709c0 + param_2 * 4) != 2) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");
  }
  if (*(int *)(&DAT_000706e0 + param_2 * 4) != 2) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");
  }
  local_14 = &DAT_000712ce;
  local_18 = param_2;
  piVar1 = (int *)FUN_00063e00(*param_1,&local_18,FUN_00016f90,4,&local_1c);
  if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {
    piVar1 = (int *)FUN_00063d60(*param_1,param_3 + local_1c);
    if ((piVar1 != (int *)0x0) && (*piVar1 == param_2)) {
      iVar2 = piVar1[1];
      goto LAB_00017892;
    }
  }
  iVar2 = 0;
LAB_00017892:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f430();
}

