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

{
  long lVar1;
  int *piVar2;
  long in_FS_OFFSET;
  int index;
  constkey key;
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  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) {
    key.secondary.s = "";
    key.primary = primary;
    piVar2 = (int *)findrelpos234(conf->tree,&key,conf_cmp_constkey,4,&index);
    if (piVar2 != (int *)0x0) {
      if (*piVar2 == primary) {
        piVar2 = (int *)index234(conf->tree,n + index);
        if (piVar2 != (int *)0x0) {
          if (*piVar2 == primary) {
            piVar2 = *(int **)(piVar2 + 2);
          }
          else {
            piVar2 = (int *)0x0;
          }
        }
      }
      else {
        piVar2 = (int *)0x0;
      }
    }
    if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
      return (char *)piVar2;
    }
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");
}



int * FUN_0010b6ff(undefined8 *param_1,int param_2,int param_3)

{
  int *piVar1;
  long in_FS_OFFSET;
  int local_3c;
  int local_38 [2];
  undefined *local_30;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  if (*(int *)(&DAT_0015da80 + (long)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_0015d7a0 + (long)param_2 * 4) == 2) {
    local_30 = &DAT_0015e3de;
    local_38[0] = param_2;
    piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c);
    if (piVar1 != (int *)0x0) {
      if (*piVar1 == param_2) {
        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);
        if (piVar1 != (int *)0x0) {
          if (*piVar1 == param_2) {
            piVar1 = *(int **)(piVar1 + 2);
          }
          else {
            piVar1 = (int *)0x0;
          }
        }
      }
      else {
        piVar1 = (int *)0x0;
      }
    }
    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
      return piVar1;
    }
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");
}


PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x30
MOV EBP,EDX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x28],RAX
XOR EAX,EAX
MOVSXD RDX,ESI
LEA RAX,[0x15da80]
CMP dword ptr [RAX + RDX*0x4],0x2
JNZ 0x0010b793
MOV R12,RDI
MOV EBX,ESI
MOVSXD RAX,ESI
LEA RDX,[0x15d7a0]
CMP dword ptr [RDX + RAX*0x4],0x2
JNZ 0x0010b7b2
MOV dword ptr [RSP + 0x10],ESI
LEA RAX,[0x15e3de]
MOV qword ptr [RSP + 0x18],RAX
LEA RSI,[RSP + 0x10]
LEA R8,[RSP + 0xc]
MOV ECX,0x4
LEA RDX,[0x10b017]
MOV RDI,qword ptr [RDI]
CALL 0x0014fb4b
TEST RAX,RAX
JZ 0x0010b7d6
CMP dword ptr [RAX],EBX
JNZ 0x0010b7d1
MOV ESI,EBP
ADD ESI,dword ptr [RSP + 0xc]
MOV RDI,qword ptr [R12]
CALL 0x0014fac6
TEST RAX,RAX
JZ 0x0010b7d6
CMP dword ptr [RAX],EBX
JNZ 0x0010b7ef
MOV RAX,qword ptr [RAX + 0x8]
JMP 0x0010b7d6
LEA RCX,[0x15d6d0]
MOV EDX,0x15b
LEA RSI,[0x15d484]
LEA RDI,[0x15d538]
CALL 0x00108340
LEA RCX,[0x15d6d0]
MOV EDX,0x15c
LEA RSI,[0x15d484]
LEA RDI,[0x15d518]
CALL 0x00108340
MOV EAX,0x0
MOV RCX,qword ptr [RSP + 0x28]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x0010b7f6
ADD RSP,0x30
POP RBX
POP RBP
POP R12
RET
MOV EAX,0x0
JMP 0x0010b7d6
CALL 0x00108280
(translation_unit "int * FUN_0010b6ff(undefined8 *param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  long in_FS_OFFSET;\n  int local_3c;\n  int local_38 [2];\n  undefined *local_30;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(int *)(&DAT_0015da80 + (long)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_0015d7a0 + (long)param_2 * 4) == 2) {\n    local_30 = &DAT_0015e3de;\n    local_38[0] = param_2;\n    piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return piVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n}\n\n" (function_definition "int * FUN_0010b6ff(undefined8 *param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  long in_FS_OFFSET;\n  int local_3c;\n  int local_38 [2];\n  undefined *local_30;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(int *)(&DAT_0015da80 + (long)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_0015d7a0 + (long)param_2 * 4) == 2) {\n    local_30 = &DAT_0015e3de;\n    local_38[0] = param_2;\n    piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return piVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n}" primitive_type (pointer_declarator "* FUN_0010b6ff(undefined8 *param_1,int param_2,int param_3)" * (function_declarator "FUN_0010b6ff(undefined8 *param_1,int param_2,int param_3)" identifier (parameter_list "(undefined8 *param_1,int param_2,int param_3)" ( (parameter_declaration "undefined8 *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  long in_FS_OFFSET;\n  int local_3c;\n  int local_38 [2];\n  undefined *local_30;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(int *)(&DAT_0015da80 + (long)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_0015d7a0 + (long)param_2 * 4) == 2) {\n    local_30 = &DAT_0015e3de;\n    local_38[0] = param_2;\n    piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return piVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "int local_38 [2];" primitive_type (array_declarator "local_38 [2]" identifier [ number_literal ]) ;) (declaration "undefined *local_30;" type_identifier (pointer_declarator "*local_30" * identifier) ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(&DAT_0015da80 + (long)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_0015da80 + (long)param_2 * 4) != 2)" ( (binary_expression "*(int *)(&DAT_0015da80 + (long)param_2 * 4) != 2" (pointer_expression "*(int *)(&DAT_0015da80 + (long)param_2 * 4)" * (cast_expression "(int *)(&DAT_0015da80 + (long)param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0015da80 + (long)param_2 * 4)" ( (binary_expression "&DAT_0015da80 + (long)param_2 * 4" (pointer_expression "&DAT_0015da80" & identifier) + (binary_expression "(long)param_2 * 4" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) 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_0015d7a0 + (long)param_2 * 4) == 2) {\n    local_30 = &DAT_0015e3de;\n    local_38[0] = param_2;\n    piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return piVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(*(int *)(&DAT_0015d7a0 + (long)param_2 * 4) == 2)" ( (binary_expression "*(int *)(&DAT_0015d7a0 + (long)param_2 * 4) == 2" (pointer_expression "*(int *)(&DAT_0015d7a0 + (long)param_2 * 4)" * (cast_expression "(int *)(&DAT_0015d7a0 + (long)param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0015d7a0 + (long)param_2 * 4)" ( (binary_expression "&DAT_0015d7a0 + (long)param_2 * 4" (pointer_expression "&DAT_0015d7a0" & identifier) + (binary_expression "(long)param_2 * 4" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) == number_literal) )) (compound_statement "{\n    local_30 = &DAT_0015e3de;\n    local_38[0] = param_2;\n    piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return piVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { (expression_statement "local_30 = &DAT_0015e3de;" (assignment_expression "local_30 = &DAT_0015e3de" identifier = (pointer_expression "&DAT_0015e3de" & identifier)) ;) (expression_statement "local_38[0] = param_2;" (assignment_expression "local_38[0] = param_2" (subscript_expression "local_38[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c);" (assignment_expression "piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c)" identifier = (cast_expression "(int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c)" identifier (argument_list "(*param_1,local_38,FUN_0010b017,4,&local_3c)" ( (pointer_expression "*param_1" * identifier) , identifier , identifier , number_literal , (pointer_expression "&local_3c" & identifier) ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }" if (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)) )) (compound_statement "{\n      if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }" { (if_statement "if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }" if (parenthesized_expression "(*piVar1 == param_2)" ( (binary_expression "*piVar1 == param_2" (pointer_expression "*piVar1" * identifier) == identifier) )) (compound_statement "{\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }" { (expression_statement "piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);" (assignment_expression "piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c)" identifier = (cast_expression "(int *)FUN_0014fac6(*param_1,param_3 + local_3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0014fac6(*param_1,param_3 + local_3c)" identifier (argument_list "(*param_1,param_3 + local_3c)" ( (pointer_expression "*param_1" * identifier) , (binary_expression "param_3 + local_3c" identifier + identifier) ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }" if (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)) )) (compound_statement "{\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }" { (if_statement "if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }" if (parenthesized_expression "(*piVar1 == param_2)" ( (binary_expression "*piVar1 == param_2" (pointer_expression "*piVar1" * identifier) == identifier) )) (compound_statement "{\n            piVar1 = *(int **)(piVar1 + 2);\n          }" { (expression_statement "piVar1 = *(int **)(piVar1 + 2);" (assignment_expression "piVar1 = *(int **)(piVar1 + 2)" identifier = (pointer_expression "*(int **)(piVar1 + 2)" * (cast_expression "(int **)(piVar1 + 2)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar1 + 2)" ( (binary_expression "piVar1 + 2" identifier + number_literal) ))))) ;) }) (else_clause "else {\n            piVar1 = (int *)0x0;\n          }" else (compound_statement "{\n            piVar1 = (int *)0x0;\n          }" { (expression_statement "piVar1 = (int *)0x0;" (assignment_expression "piVar1 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) })) }) (else_clause "else {\n        piVar1 = (int *)0x0;\n      }" else (compound_statement "{\n        piVar1 = (int *)0x0;\n      }" { (expression_statement "piVar1 = (int *)0x0;" (assignment_expression "piVar1 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) })) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return piVar1;\n    }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n      return piVar1;\n    }" { (return_statement "return piVar1;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) 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 ") ))) ;) })))
(translation_unit "char * conf_get_str_nthstrkey(Conf *conf,int primary,int n)\n\n{\n  long lVar1;\n  int *piVar2;\n  long in_FS_OFFSET;\n  int index;\n  constkey key;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\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    key.secondary.s = "";\n    key.primary = primary;\n    piVar2 = (int *)findrelpos234(conf->tree,&key,conf_cmp_constkey,4,&index);\n    if (piVar2 != (int *)0x0) {\n      if (*piVar2 == primary) {\n        piVar2 = (int *)index234(conf->tree,n + index);\n        if (piVar2 != (int *)0x0) {\n          if (*piVar2 == primary) {\n            piVar2 = *(int **)(piVar2 + 2);\n          }\n          else {\n            piVar2 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar2 = (int *)0x0;\n      }\n    }\n    if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return (char *)piVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n}\n\n" (function_definition "char * conf_get_str_nthstrkey(Conf *conf,int primary,int n)\n\n{\n  long lVar1;\n  int *piVar2;\n  long in_FS_OFFSET;\n  int index;\n  constkey key;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\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    key.secondary.s = "";\n    key.primary = primary;\n    piVar2 = (int *)findrelpos234(conf->tree,&key,conf_cmp_constkey,4,&index);\n    if (piVar2 != (int *)0x0) {\n      if (*piVar2 == primary) {\n        piVar2 = (int *)index234(conf->tree,n + index);\n        if (piVar2 != (int *)0x0) {\n          if (*piVar2 == primary) {\n            piVar2 = *(int **)(piVar2 + 2);\n          }\n          else {\n            piVar2 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar2 = (int *)0x0;\n      }\n    }\n    if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return (char *)piVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\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  long lVar1;\n  int *piVar2;\n  long in_FS_OFFSET;\n  int index;\n  constkey key;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\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    key.secondary.s = "";\n    key.primary = primary;\n    piVar2 = (int *)findrelpos234(conf->tree,&key,conf_cmp_constkey,4,&index);\n    if (piVar2 != (int *)0x0) {\n      if (*piVar2 == primary) {\n        piVar2 = (int *)index234(conf->tree,n + index);\n        if (piVar2 != (int *)0x0) {\n          if (*piVar2 == primary) {\n            piVar2 = *(int **)(piVar2 + 2);\n          }\n          else {\n            piVar2 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar2 = (int *)0x0;\n      }\n    }\n    if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return (char *)piVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int index;" primitive_type identifier ;) (declaration "constkey key;" type_identifier identifier ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" 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    key.secondary.s = "";\n    key.primary = primary;\n    piVar2 = (int *)findrelpos234(conf->tree,&key,conf_cmp_constkey,4,&index);\n    if (piVar2 != (int *)0x0) {\n      if (*piVar2 == primary) {\n        piVar2 = (int *)index234(conf->tree,n + index);\n        if (piVar2 != (int *)0x0) {\n          if (*piVar2 == primary) {\n            piVar2 = *(int **)(piVar2 + 2);\n          }\n          else {\n            piVar2 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar2 = (int *)0x0;\n      }\n    }\n    if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return (char *)piVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(valuetypes[primary] == 2)" ( (binary_expression "valuetypes[primary] == 2" (subscript_expression "valuetypes[primary]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\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) {\n      if (*piVar2 == primary) {\n        piVar2 = (int *)index234(conf->tree,n + index);\n        if (piVar2 != (int *)0x0) {\n          if (*piVar2 == primary) {\n            piVar2 = *(int **)(piVar2 + 2);\n          }\n          else {\n            piVar2 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar2 = (int *)0x0;\n      }\n    }\n    if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return (char *)piVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { (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) {\n      if (*piVar2 == primary) {\n        piVar2 = (int *)index234(conf->tree,n + index);\n        if (piVar2 != (int *)0x0) {\n          if (*piVar2 == primary) {\n            piVar2 = *(int **)(piVar2 + 2);\n          }\n          else {\n            piVar2 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar2 = (int *)0x0;\n      }\n    }" if (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)) )) (compound_statement "{\n      if (*piVar2 == primary) {\n        piVar2 = (int *)index234(conf->tree,n + index);\n        if (piVar2 != (int *)0x0) {\n          if (*piVar2 == primary) {\n            piVar2 = *(int **)(piVar2 + 2);\n          }\n          else {\n            piVar2 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar2 = (int *)0x0;\n      }\n    }" { (if_statement "if (*piVar2 == primary) {\n        piVar2 = (int *)index234(conf->tree,n + index);\n        if (piVar2 != (int *)0x0) {\n          if (*piVar2 == primary) {\n            piVar2 = *(int **)(piVar2 + 2);\n          }\n          else {\n            piVar2 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar2 = (int *)0x0;\n      }" if (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) {\n          if (*piVar2 == primary) {\n            piVar2 = *(int **)(piVar2 + 2);\n          }\n          else {\n            piVar2 = (int *)0x0;\n          }\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) {\n          if (*piVar2 == primary) {\n            piVar2 = *(int **)(piVar2 + 2);\n          }\n          else {\n            piVar2 = (int *)0x0;\n          }\n        }" if (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)) )) (compound_statement "{\n          if (*piVar2 == primary) {\n            piVar2 = *(int **)(piVar2 + 2);\n          }\n          else {\n            piVar2 = (int *)0x0;\n          }\n        }" { (if_statement "if (*piVar2 == primary) {\n            piVar2 = *(int **)(piVar2 + 2);\n          }\n          else {\n            piVar2 = (int *)0x0;\n          }" if (parenthesized_expression "(*piVar2 == primary)" ( (binary_expression "*piVar2 == primary" (pointer_expression "*piVar2" * identifier) == identifier) )) (compound_statement "{\n            piVar2 = *(int **)(piVar2 + 2);\n          }" { (expression_statement "piVar2 = *(int **)(piVar2 + 2);" (assignment_expression "piVar2 = *(int **)(piVar2 + 2)" identifier = (pointer_expression "*(int **)(piVar2 + 2)" * (cast_expression "(int **)(piVar2 + 2)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar2 + 2)" ( (binary_expression "piVar2 + 2" identifier + number_literal) ))))) ;) }) (else_clause "else {\n            piVar2 = (int *)0x0;\n          }" else (compound_statement "{\n            piVar2 = (int *)0x0;\n          }" { (expression_statement "piVar2 = (int *)0x0;" (assignment_expression "piVar2 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) })) }) (else_clause "else {\n        piVar2 = (int *)0x0;\n      }" else (compound_statement "{\n        piVar2 = (int *)0x0;\n      }" { (expression_statement "piVar2 = (int *)0x0;" (assignment_expression "piVar2 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) })) (if_statement "if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return (char *)piVar2;\n    }" if (parenthesized_expression "(lVar1 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n      return (char *)piVar2;\n    }" { (return_statement "return (char *)piVar2;" return (cast_expression "(char *)piVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) 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 ") ))) ;) })))
(translation_unit "int * FUN_0010b6ff(undefined8 *param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  long in_FS_OFFSET;\n  int local_3c;\n  int local_38 [2];\n  undefined *local_30;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(int *)(&DAT_0015da80 + (long)param_2 * 4) != 2) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }\n  if (*(int *)(&DAT_0015d7a0 + (long)param_2 * 4) == 2) {\n    local_30 = &DAT_0015e3de;\n    local_38[0] = param_2;\n    piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return piVar1;\n    }\n                    \n    __stack_chk_fail();\n  }\n                    \n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n}\n\n" (function_definition "int * FUN_0010b6ff(undefined8 *param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  long in_FS_OFFSET;\n  int local_3c;\n  int local_38 [2];\n  undefined *local_30;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(int *)(&DAT_0015da80 + (long)param_2 * 4) != 2) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }\n  if (*(int *)(&DAT_0015d7a0 + (long)param_2 * 4) == 2) {\n    local_30 = &DAT_0015e3de;\n    local_38[0] = param_2;\n    piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return piVar1;\n    }\n                    \n    __stack_chk_fail();\n  }\n                    \n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n}" primitive_type (pointer_declarator "* FUN_0010b6ff(undefined8 *param_1,int param_2,int param_3)" * (function_declarator "FUN_0010b6ff(undefined8 *param_1,int param_2,int param_3)" identifier (parameter_list "(undefined8 *param_1,int param_2,int param_3)" ( (parameter_declaration "undefined8 *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  long in_FS_OFFSET;\n  int local_3c;\n  int local_38 [2];\n  undefined *local_30;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(int *)(&DAT_0015da80 + (long)param_2 * 4) != 2) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }\n  if (*(int *)(&DAT_0015d7a0 + (long)param_2 * 4) == 2) {\n    local_30 = &DAT_0015e3de;\n    local_38[0] = param_2;\n    piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return piVar1;\n    }\n                    \n    __stack_chk_fail();\n  }\n                    \n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "int local_38 [2];" primitive_type (array_declarator "local_38 [2]" identifier [ number_literal ]) ;) (declaration "undefined *local_30;" type_identifier (pointer_declarator "*local_30" * identifier) ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(&DAT_0015da80 + (long)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_0015da80 + (long)param_2 * 4) != 2)" ( (binary_expression "*(int *)(&DAT_0015da80 + (long)param_2 * 4) != 2" (pointer_expression "*(int *)(&DAT_0015da80 + (long)param_2 * 4)" * (cast_expression "(int *)(&DAT_0015da80 + (long)param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0015da80 + (long)param_2 * 4)" ( (binary_expression "&DAT_0015da80 + (long)param_2 * 4" (pointer_expression "&DAT_0015da80" & identifier) + (binary_expression "(long)param_2 * 4" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) 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_0015d7a0 + (long)param_2 * 4) == 2) {\n    local_30 = &DAT_0015e3de;\n    local_38[0] = param_2;\n    piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return piVar1;\n    }\n                    \n    __stack_chk_fail();\n  }" if (parenthesized_expression "(*(int *)(&DAT_0015d7a0 + (long)param_2 * 4) == 2)" ( (binary_expression "*(int *)(&DAT_0015d7a0 + (long)param_2 * 4) == 2" (pointer_expression "*(int *)(&DAT_0015d7a0 + (long)param_2 * 4)" * (cast_expression "(int *)(&DAT_0015d7a0 + (long)param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0015d7a0 + (long)param_2 * 4)" ( (binary_expression "&DAT_0015d7a0 + (long)param_2 * 4" (pointer_expression "&DAT_0015d7a0" & identifier) + (binary_expression "(long)param_2 * 4" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) == number_literal) )) (compound_statement "{\n    local_30 = &DAT_0015e3de;\n    local_38[0] = param_2;\n    piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return piVar1;\n    }\n                    \n    __stack_chk_fail();\n  }" { (expression_statement "local_30 = &DAT_0015e3de;" (assignment_expression "local_30 = &DAT_0015e3de" identifier = (pointer_expression "&DAT_0015e3de" & identifier)) ;) (expression_statement "local_38[0] = param_2;" (assignment_expression "local_38[0] = param_2" (subscript_expression "local_38[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c);" (assignment_expression "piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c)" identifier = (cast_expression "(int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c)" identifier (argument_list "(*param_1,local_38,FUN_0010b017,4,&local_3c)" ( (pointer_expression "*param_1" * identifier) , identifier , identifier , number_literal , (pointer_expression "&local_3c" & identifier) ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }" if (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)) )) (compound_statement "{\n      if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }" { (if_statement "if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }" if (parenthesized_expression "(*piVar1 == param_2)" ( (binary_expression "*piVar1 == param_2" (pointer_expression "*piVar1" * identifier) == identifier) )) (compound_statement "{\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }" { (expression_statement "piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);" (assignment_expression "piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c)" identifier = (cast_expression "(int *)FUN_0014fac6(*param_1,param_3 + local_3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0014fac6(*param_1,param_3 + local_3c)" identifier (argument_list "(*param_1,param_3 + local_3c)" ( (pointer_expression "*param_1" * identifier) , (binary_expression "param_3 + local_3c" identifier + identifier) ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }" if (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)) )) (compound_statement "{\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }" { (if_statement "if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }" if (parenthesized_expression "(*piVar1 == param_2)" ( (binary_expression "*piVar1 == param_2" (pointer_expression "*piVar1" * identifier) == identifier) )) (compound_statement "{\n            piVar1 = *(int **)(piVar1 + 2);\n          }" { (expression_statement "piVar1 = *(int **)(piVar1 + 2);" (assignment_expression "piVar1 = *(int **)(piVar1 + 2)" identifier = (pointer_expression "*(int **)(piVar1 + 2)" * (cast_expression "(int **)(piVar1 + 2)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar1 + 2)" ( (binary_expression "piVar1 + 2" identifier + number_literal) ))))) ;) }) (else_clause "else {\n            piVar1 = (int *)0x0;\n          }" else (compound_statement "{\n            piVar1 = (int *)0x0;\n          }" { (expression_statement "piVar1 = (int *)0x0;" (assignment_expression "piVar1 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) })) }) (else_clause "else {\n        piVar1 = (int *)0x0;\n      }" else (compound_statement "{\n        piVar1 = (int *)0x0;\n      }" { (expression_statement "piVar1 = (int *)0x0;" (assignment_expression "piVar1 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) })) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return piVar1;\n    }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n      return piVar1;\n    }" { (return_statement "return piVar1;" return identifier ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (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 ") ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (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 (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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 (cast_expression ( (type_descriptor (sized_type_specifier long)) ) 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 (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , IDENT , LIT , (pointer_expression & IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (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 IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }))) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "int * FUN_0010b6ff(undefined8 *param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  long in_FS_OFFSET;\n  int local_3c;\n  int local_38 [2];\n  undefined *local_30;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(int *)(&DAT_0015da80 + (long)param_2 * 4) != 2) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }\n  if (*(int *)(&DAT_0015d7a0 + (long)param_2 * 4) == 2) {\n    local_30 = &DAT_0015e3de;\n    local_38[0] = param_2;\n    piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return piVar1;\n    }\n                    \n    __stack_chk_fail();\n  }\n                    \n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n}" (primitive_type "int") (pointer_declarator "* FUN_0010b6ff(undefined8 *param_1,int param_2,int param_3)" (* "*") (function_declarator "FUN_0010b6ff(undefined8 *param_1,int param_2,int param_3)" (identifier "FUN_0010b6ff") (parameter_list "(undefined8 *param_1,int param_2,int param_3)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (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  long in_FS_OFFSET;\n  int local_3c;\n  int local_38 [2];\n  undefined *local_30;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(int *)(&DAT_0015da80 + (long)param_2 * 4) != 2) {\n                    \n    __assert_fail("subkeytypes[primary] == TYPE_STR","conf.c",0x15b,"conf_get_str_nthstrkey");\n  }\n  if (*(int *)(&DAT_0015d7a0 + (long)param_2 * 4) == 2) {\n    local_30 = &DAT_0015e3de;\n    local_38[0] = param_2;\n    piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return piVar1;\n    }\n                    \n    __stack_chk_fail();\n  }\n                    \n  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "int local_3c;" (primitive_type "int") (identifier "local_3c") (; ";")) (declaration "int local_38 [2];" (primitive_type "int") (array_declarator "local_38 [2]" (identifier "local_38") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "undefined *local_30;" (type_identifier "undefined") (pointer_declarator "*local_30" (* "*") (identifier "local_30")) (; ";")) (declaration "long local_20;" (sized_type_specifier "long" (long "long")) (identifier "local_20") (; ";")) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (*(int *)(&DAT_0015da80 + (long)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_0015da80 + (long)param_2 * 4) != 2)" (( "(") (binary_expression "*(int *)(&DAT_0015da80 + (long)param_2 * 4) != 2" (pointer_expression "*(int *)(&DAT_0015da80 + (long)param_2 * 4)" (* "*") (cast_expression "(int *)(&DAT_0015da80 + (long)param_2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_0015da80 + (long)param_2 * 4)" (( "(") (binary_expression "&DAT_0015da80 + (long)param_2 * 4" (pointer_expression "&DAT_0015da80" (& "&") (identifier "DAT_0015da80")) (+ "+") (binary_expression "(long)param_2 * 4" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (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_0015d7a0 + (long)param_2 * 4) == 2) {\n    local_30 = &DAT_0015e3de;\n    local_38[0] = param_2;\n    piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return piVar1;\n    }\n                    \n    __stack_chk_fail();\n  }" (if "if") (parenthesized_expression "(*(int *)(&DAT_0015d7a0 + (long)param_2 * 4) == 2)" (( "(") (binary_expression "*(int *)(&DAT_0015d7a0 + (long)param_2 * 4) == 2" (pointer_expression "*(int *)(&DAT_0015d7a0 + (long)param_2 * 4)" (* "*") (cast_expression "(int *)(&DAT_0015d7a0 + (long)param_2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_0015d7a0 + (long)param_2 * 4)" (( "(") (binary_expression "&DAT_0015d7a0 + (long)param_2 * 4" (pointer_expression "&DAT_0015d7a0" (& "&") (identifier "DAT_0015d7a0")) (+ "+") (binary_expression "(long)param_2 * 4" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (* "*") (number_literal "4"))) () ")")))) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    local_30 = &DAT_0015e3de;\n    local_38[0] = param_2;\n    piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c);\n    if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return piVar1;\n    }\n                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "local_30 = &DAT_0015e3de;" (assignment_expression "local_30 = &DAT_0015e3de" (identifier "local_30") (= "=") (pointer_expression "&DAT_0015e3de" (& "&") (identifier "DAT_0015e3de"))) (; ";")) (expression_statement "local_38[0] = param_2;" (assignment_expression "local_38[0] = param_2" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c);" (assignment_expression "piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c)" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c)" (identifier "FUN_0014fb4b") (argument_list "(*param_1,local_38,FUN_0010b017,4,&local_3c)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "local_38") (, ",") (identifier "FUN_0010b017") (, ",") (number_literal "4") (, ",") (pointer_expression "&local_3c" (& "&") (identifier "local_3c")) () ")"))))) (; ";")) (if_statement "if (piVar1 != (int *)0x0) {\n      if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }" (if "if") (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"))) () ")")) (compound_statement "{\n      if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }\n    }" ({ "{") (if_statement "if (*piVar1 == param_2) {\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }\n      else {\n        piVar1 = (int *)0x0;\n      }" (if "if") (parenthesized_expression "(*piVar1 == param_2)" (( "(") (binary_expression "*piVar1 == param_2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);\n        if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }\n      }" ({ "{") (expression_statement "piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);" (assignment_expression "piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c)" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_0014fac6(*param_1,param_3 + local_3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0014fac6(*param_1,param_3 + local_3c)" (identifier "FUN_0014fac6") (argument_list "(*param_1,param_3 + local_3c)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (binary_expression "param_3 + local_3c" (identifier "param_3") (+ "+") (identifier "local_3c")) () ")"))))) (; ";")) (if_statement "if (piVar1 != (int *)0x0) {\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }" (if "if") (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"))) () ")")) (compound_statement "{\n          if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }\n        }" ({ "{") (if_statement "if (*piVar1 == param_2) {\n            piVar1 = *(int **)(piVar1 + 2);\n          }\n          else {\n            piVar1 = (int *)0x0;\n          }" (if "if") (parenthesized_expression "(*piVar1 == param_2)" (( "(") (binary_expression "*piVar1 == param_2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n            piVar1 = *(int **)(piVar1 + 2);\n          }" ({ "{") (expression_statement "piVar1 = *(int **)(piVar1 + 2);" (assignment_expression "piVar1 = *(int **)(piVar1 + 2)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(piVar1 + 2)" (* "*") (cast_expression "(int **)(piVar1 + 2)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(piVar1 + 2)" (( "(") (binary_expression "piVar1 + 2" (identifier "piVar1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n            piVar1 = (int *)0x0;\n          }" (else "else") (compound_statement "{\n            piVar1 = (int *)0x0;\n          }" ({ "{") (expression_statement "piVar1 = (int *)0x0;" (assignment_expression "piVar1 = (int *)0x0" (identifier "piVar1") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")))) (} "}"))) (} "}")) (else_clause "else {\n        piVar1 = (int *)0x0;\n      }" (else "else") (compound_statement "{\n        piVar1 = (int *)0x0;\n      }" ({ "{") (expression_statement "piVar1 = (int *)0x0;" (assignment_expression "piVar1 = (int *)0x0" (identifier "piVar1") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")))) (} "}"))) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return piVar1;\n    }" (if "if") (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n      return piVar1;\n    }" ({ "{") (return_statement "return piVar1;" (return "return") (identifier "piVar1") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (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") (" """)) () ")"))) (; ";")) (} "}")))

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

{
  long var_9;
  int *var_4;
  long var_1;
  int var_8;
  type_2 key;
  
  var_9 = *(long *)(var_1 + 0x28);
  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) {
    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) {
      if (*var_4 == var_5) {
        var_4 = (int *)var_6(conf->tree,var_7 + var_8);
        if (var_4 != (int *)0x0) {
          if (*var_4 == var_5) {
            var_4 = *(int **)(var_4 + 2);
          }
          else {
            var_4 = (int *)0x0;
          }
        }
      }
      else {
        var_4 = (int *)0x0;
      }
    }
    if (var_9 == *(long *)(var_1 + 0x28)) {
      return (char *)var_4;
    }
                    /* WARNING: Subroutine does not return */
    var_10();
  }
                    /* WARNING: Subroutine does not return */
  var_2("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");
}


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

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

{
  int *piVar1;
  long in_FS_OFFSET;
  int local_3c;
  int local_38 [2];
  undefined *local_30;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  if (*(int *)(&DAT_0015da80 + (long)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_0015d7a0 + (long)param_2 * 4) == 2) {
    local_30 = &DAT_0015e3de;
    local_38[0] = param_2;
    piVar1 = (int *)FUN_0014fb4b(*param_1,local_38,FUN_0010b017,4,&local_3c);
    if (piVar1 != (int *)0x0) {
      if (*piVar1 == param_2) {
        piVar1 = (int *)FUN_0014fac6(*param_1,param_3 + local_3c);
        if (piVar1 != (int *)0x0) {
          if (*piVar1 == param_2) {
            piVar1 = *(int **)(piVar1 + 2);
          }
          else {
            piVar1 = (int *)0x0;
          }
        }
      }
      else {
        piVar1 = (int *)0x0;
      }
    }
    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
      return piVar1;
    }
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("valuetypes[primary] == TYPE_STR","conf.c",0x15c,"conf_get_str_nthstrkey");
}

