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

char * read_setting_s(void *handle,char *key)

{
  int iVar1;
  void *pvVar2;
  char *s;
  int in_GS_OFFSET;
  skeyval tmp;
  skeyval tmp_1;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  tmp.key = key;
  if ((handle == (void *)0x0) ||
     (pvVar2 = find234((tree234 *)handle,&tmp,(cmpfn234)0x0), pvVar2 == (void *)0x0)) {
    tmp_1.key = key;
    if ((xrmtree == (tree234 *)0x0) ||
       (pvVar2 = find234(xrmtree,&tmp_1,(cmpfn234)0x0), pvVar2 == (void *)0x0)) {
      s = x_get_default(key);
    }
    else {
      s = *(char **)((int)pvVar2 + 4);
    }
    if (s == (char *)0x0) goto LAB_0006a807;
  }
  else {
    s = *(char **)((int)pvVar2 + 4);
    if (s == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");
    }
  }
  s = dupstr(s);
LAB_0006a807:
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return s;
}



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

void FUN_0006a7b0(int param_1,undefined4 param_2)

{
  int iVar1;
  int in_GS_OFFSET;
  undefined4 local_20 [2];
  undefined4 local_18 [2];
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x6a7b7;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  local_20[0] = param_2;
  if ((param_1 == 0) || (iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0)) {
    local_18[0] = param_2;
    if ((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)) {
      iVar1 = FUN_0005db80(param_2);
    }
    else {
      iVar1 = *(int *)(iVar1 + 4);
    }
    if (iVar1 == 0) goto LAB_0006a807;
  }
  else {
    iVar1 = *(int *)(iVar1 + 4);
    if (iVar1 == 0) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");
    }
  }
  FUN_0002f040(iVar1);
LAB_0006a807:
  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0006c950();
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x0001a360
ADD EBX,0x4b02d
SUB ESP,0x24
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x1c],ECX
XOR ECX,ECX
MOV ESI,dword ptr [ESP + 0x34]
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0xc],ESI
TEST EAX,EAX
JZ 0x0006a820
SUB ESP,0x4
PUSH 0x0
LEA EDX,[ESP + 0x14]
PUSH EDX
PUSH EAX
CALL 0x0004c9c0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0006a820
MOV EAX,dword ptr [EAX + 0x4]
TEST EAX,EAX
JZ 0x0006a867
SUB ESP,0xc
PUSH EAX
CALL 0x0002f040
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x1c]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x0006a862
ADD ESP,0x24
POP EBX
POP ESI
RET
MOV EAX,dword ptr [EBX + 0xab0]
MOV dword ptr [ESP + 0x14],ESI
TEST EAX,EAX
JZ 0x0006a850
SUB ESP,0x4
PUSH 0x0
LEA EDX,[ESP + 0x1c]
PUSH EDX
PUSH EAX
CALL 0x0004c9c0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0006a850
MOV EAX,dword ptr [EAX + 0x4]
JMP 0x0006a85c
SUB ESP,0xc
PUSH ESI
CALL 0x0005db80
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0006a807
JMP 0x0006a7fb
CALL 0x0006c950
LEA EAX,[EBX + 0xfffd53a4]
PUSH EAX
LEA EAX,[EBX + 0xfffd51ee]
PUSH 0x18f
PUSH EAX
LEA EAX,[EBX + 0xfffca246]
PUSH EAX
CALL 0x00019e90
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0006a7b0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_20 [2];\n  undefined4 local_18 [2];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x6a7b7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_20[0] = param_2;\n  if ((param_1 == 0) || (iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0)) {\n    local_18[0] = param_2;\n    if ((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)) {\n      iVar1 = FUN_0005db80(param_2);\n    }\n    else {\n      iVar1 = *(int *)(iVar1 + 4);\n    }\n    if (iVar1 == 0) goto LAB_0006a807;\n  }\n  else {\n    iVar1 = *(int *)(iVar1 + 4);\n    if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }\n  FUN_0002f040(iVar1);\nLAB_0006a807:\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006c950();\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0006a7b0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_20 [2];\n  undefined4 local_18 [2];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x6a7b7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_20[0] = param_2;\n  if ((param_1 == 0) || (iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0)) {\n    local_18[0] = param_2;\n    if ((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)) {\n      iVar1 = FUN_0005db80(param_2);\n    }\n    else {\n      iVar1 = *(int *)(iVar1 + 4);\n    }\n    if (iVar1 == 0) goto LAB_0006a807;\n  }\n  else {\n    iVar1 = *(int *)(iVar1 + 4);\n    if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }\n  FUN_0002f040(iVar1);\nLAB_0006a807:\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006c950();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0006a7b0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_20 [2];\n  undefined4 local_18 [2];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x6a7b7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_20[0] = param_2;\n  if ((param_1 == 0) || (iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0)) {\n    local_18[0] = param_2;\n    if ((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)) {\n      iVar1 = FUN_0005db80(param_2);\n    }\n    else {\n      iVar1 = *(int *)(iVar1 + 4);\n    }\n    if (iVar1 == 0) goto LAB_0006a807;\n  }\n  else {\n    iVar1 = *(int *)(iVar1 + 4);\n    if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }\n  FUN_0002f040(iVar1);\nLAB_0006a807:\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006c950();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_20 [2];" type_identifier (array_declarator "local_20 [2]" identifier [ number_literal ]) ;) (declaration "undefined4 local_18 [2];" type_identifier (array_declarator "local_18 [2]" identifier [ number_literal ]) ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x6a7b7;" (assignment_expression "uStack_c = 0x6a7b7" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_20[0] = param_2;" (assignment_expression "local_20[0] = param_2" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((param_1 == 0) || (iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0)) {\n    local_18[0] = param_2;\n    if ((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)) {\n      iVar1 = FUN_0005db80(param_2);\n    }\n    else {\n      iVar1 = *(int *)(iVar1 + 4);\n    }\n    if (iVar1 == 0) goto LAB_0006a807;\n  }\n  else {\n    iVar1 = *(int *)(iVar1 + 4);\n    if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }" if (parenthesized_expression "((param_1 == 0) || (iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0))" ( (binary_expression "(param_1 == 0) || (iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0)" (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0)" ( (comma_expression "iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0" (assignment_expression "iVar1 = FUN_0004c9c0(param_1,local_20,0)" identifier = (call_expression "FUN_0004c9c0(param_1,local_20,0)" identifier (argument_list "(param_1,local_20,0)" ( identifier , identifier , number_literal )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    local_18[0] = param_2;\n    if ((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)) {\n      iVar1 = FUN_0005db80(param_2);\n    }\n    else {\n      iVar1 = *(int *)(iVar1 + 4);\n    }\n    if (iVar1 == 0) goto LAB_0006a807;\n  }" { (expression_statement "local_18[0] = param_2;" (assignment_expression "local_18[0] = param_2" (subscript_expression "local_18[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)) {\n      iVar1 = FUN_0005db80(param_2);\n    }\n    else {\n      iVar1 = *(int *)(iVar1 + 4);\n    }" if (parenthesized_expression "((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0))" ( (binary_expression "(DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)" (parenthesized_expression "(DAT_000b6294 == 0)" ( (binary_expression "DAT_000b6294 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)" ( (comma_expression "iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0" (assignment_expression "iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0)" identifier = (call_expression "FUN_0004c9c0(DAT_000b6294,local_18,0)" identifier (argument_list "(DAT_000b6294,local_18,0)" ( identifier , identifier , number_literal )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      iVar1 = FUN_0005db80(param_2);\n    }" { (expression_statement "iVar1 = FUN_0005db80(param_2);" (assignment_expression "iVar1 = FUN_0005db80(param_2)" identifier = (call_expression "FUN_0005db80(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) }) (else_clause "else {\n      iVar1 = *(int *)(iVar1 + 4);\n    }" else (compound_statement "{\n      iVar1 = *(int *)(iVar1 + 4);\n    }" { (expression_statement "iVar1 = *(int *)(iVar1 + 4);" (assignment_expression "iVar1 = *(int *)(iVar1 + 4)" identifier = (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar1 == 0) goto LAB_0006a807;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0006a807;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar1 = *(int *)(iVar1 + 4);\n    if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }" else (compound_statement "{\n    iVar1 = *(int *)(iVar1 + 4);\n    if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }" { (expression_statement "iVar1 = *(int *)(iVar1 + 4);" (assignment_expression "iVar1 = *(int *)(iVar1 + 4)" identifier = (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }" { comment (expression_statement "__assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");" (call_expression "__assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s")" identifier (argument_list "("val != NULL","unix/uxstore.c",399,"read_setting_s")" ( (string_literal ""val != NULL"" " string_content ") , (string_literal ""unix/uxstore.c"" " string_content ") , number_literal , (string_literal ""read_setting_s"" " string_content ") ))) ;) })) }))) (expression_statement "FUN_0002f040(iVar1);" (call_expression "FUN_0002f040(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (labeled_statement "LAB_0006a807:\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006c950();\n  }" statement_identifier : (if_statement "if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006c950();\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                    /* WARNING: Subroutine does not return */\n    FUN_0006c950();\n  }" { comment (expression_statement "FUN_0006c950();" (call_expression "FUN_0006c950()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * read_setting_s(void *handle,char *key)\n\n{\n  int iVar1;\n  void *pvVar2;\n  char *s;\n  int in_GS_OFFSET;\n  skeyval tmp;\n  skeyval tmp_1;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  tmp.key = key;\n  if ((handle == (void *)0x0) ||\n     (pvVar2 = find234((tree234 *)handle,&tmp,(cmpfn234)0x0), pvVar2 == (void *)0x0)) {\n    tmp_1.key = key;\n    if ((xrmtree == (tree234 *)0x0) ||\n       (pvVar2 = find234(xrmtree,&tmp_1,(cmpfn234)0x0), pvVar2 == (void *)0x0)) {\n      s = x_get_default(key);\n    }\n    else {\n      s = *(char **)((int)pvVar2 + 4);\n    }\n    if (s == (char *)0x0) goto LAB_0006a807;\n  }\n  else {\n    s = *(char **)((int)pvVar2 + 4);\n    if (s == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }\n  s = dupstr(s);\nLAB_0006a807:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return s;\n}\n\n" comment comment (function_definition "char * read_setting_s(void *handle,char *key)\n\n{\n  int iVar1;\n  void *pvVar2;\n  char *s;\n  int in_GS_OFFSET;\n  skeyval tmp;\n  skeyval tmp_1;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  tmp.key = key;\n  if ((handle == (void *)0x0) ||\n     (pvVar2 = find234((tree234 *)handle,&tmp,(cmpfn234)0x0), pvVar2 == (void *)0x0)) {\n    tmp_1.key = key;\n    if ((xrmtree == (tree234 *)0x0) ||\n       (pvVar2 = find234(xrmtree,&tmp_1,(cmpfn234)0x0), pvVar2 == (void *)0x0)) {\n      s = x_get_default(key);\n    }\n    else {\n      s = *(char **)((int)pvVar2 + 4);\n    }\n    if (s == (char *)0x0) goto LAB_0006a807;\n  }\n  else {\n    s = *(char **)((int)pvVar2 + 4);\n    if (s == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }\n  s = dupstr(s);\nLAB_0006a807:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return s;\n}" primitive_type (pointer_declarator "* read_setting_s(void *handle,char *key)" * (function_declarator "read_setting_s(void *handle,char *key)" identifier (parameter_list "(void *handle,char *key)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "char *key" primitive_type (pointer_declarator "*key" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  void *pvVar2;\n  char *s;\n  int in_GS_OFFSET;\n  skeyval tmp;\n  skeyval tmp_1;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  tmp.key = key;\n  if ((handle == (void *)0x0) ||\n     (pvVar2 = find234((tree234 *)handle,&tmp,(cmpfn234)0x0), pvVar2 == (void *)0x0)) {\n    tmp_1.key = key;\n    if ((xrmtree == (tree234 *)0x0) ||\n       (pvVar2 = find234(xrmtree,&tmp_1,(cmpfn234)0x0), pvVar2 == (void *)0x0)) {\n      s = x_get_default(key);\n    }\n    else {\n      s = *(char **)((int)pvVar2 + 4);\n    }\n    if (s == (char *)0x0) goto LAB_0006a807;\n  }\n  else {\n    s = *(char **)((int)pvVar2 + 4);\n    if (s == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }\n  s = dupstr(s);\nLAB_0006a807:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return s;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "char *s;" primitive_type (pointer_declarator "*s" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "skeyval tmp;" type_identifier identifier ;) (declaration "skeyval tmp_1;" 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) ))))) ;) (expression_statement "tmp.key = key;" (assignment_expression "tmp.key = key" (field_expression "tmp.key" identifier . field_identifier) = identifier) ;) (if_statement "if ((handle == (void *)0x0) ||\n     (pvVar2 = find234((tree234 *)handle,&tmp,(cmpfn234)0x0), pvVar2 == (void *)0x0)) {\n    tmp_1.key = key;\n    if ((xrmtree == (tree234 *)0x0) ||\n       (pvVar2 = find234(xrmtree,&tmp_1,(cmpfn234)0x0), pvVar2 == (void *)0x0)) {\n      s = x_get_default(key);\n    }\n    else {\n      s = *(char **)((int)pvVar2 + 4);\n    }\n    if (s == (char *)0x0) goto LAB_0006a807;\n  }\n  else {\n    s = *(char **)((int)pvVar2 + 4);\n    if (s == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }" if (parenthesized_expression "((handle == (void *)0x0) ||\n     (pvVar2 = find234((tree234 *)handle,&tmp,(cmpfn234)0x0), pvVar2 == (void *)0x0))" ( (binary_expression "(handle == (void *)0x0) ||\n     (pvVar2 = find234((tree234 *)handle,&tmp,(cmpfn234)0x0), pvVar2 == (void *)0x0)" (parenthesized_expression "(handle == (void *)0x0)" ( (binary_expression "handle == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(pvVar2 = find234((tree234 *)handle,&tmp,(cmpfn234)0x0), pvVar2 == (void *)0x0)" ( (comma_expression "pvVar2 = find234((tree234 *)handle,&tmp,(cmpfn234)0x0), pvVar2 == (void *)0x0" (assignment_expression "pvVar2 = find234((tree234 *)handle,&tmp,(cmpfn234)0x0)" identifier = (call_expression "find234((tree234 *)handle,&tmp,(cmpfn234)0x0)" identifier (argument_list "((tree234 *)handle,&tmp,(cmpfn234)0x0)" ( (cast_expression "(tree234 *)handle" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (pointer_expression "&tmp" & identifier) , (cast_expression "(cmpfn234)0x0" ( (type_descriptor "cmpfn234" type_identifier) ) number_literal) )))) , (binary_expression "pvVar2 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    tmp_1.key = key;\n    if ((xrmtree == (tree234 *)0x0) ||\n       (pvVar2 = find234(xrmtree,&tmp_1,(cmpfn234)0x0), pvVar2 == (void *)0x0)) {\n      s = x_get_default(key);\n    }\n    else {\n      s = *(char **)((int)pvVar2 + 4);\n    }\n    if (s == (char *)0x0) goto LAB_0006a807;\n  }" { (expression_statement "tmp_1.key = key;" (assignment_expression "tmp_1.key = key" (field_expression "tmp_1.key" identifier . field_identifier) = identifier) ;) (if_statement "if ((xrmtree == (tree234 *)0x0) ||\n       (pvVar2 = find234(xrmtree,&tmp_1,(cmpfn234)0x0), pvVar2 == (void *)0x0)) {\n      s = x_get_default(key);\n    }\n    else {\n      s = *(char **)((int)pvVar2 + 4);\n    }" if (parenthesized_expression "((xrmtree == (tree234 *)0x0) ||\n       (pvVar2 = find234(xrmtree,&tmp_1,(cmpfn234)0x0), pvVar2 == (void *)0x0))" ( (binary_expression "(xrmtree == (tree234 *)0x0) ||\n       (pvVar2 = find234(xrmtree,&tmp_1,(cmpfn234)0x0), pvVar2 == (void *)0x0)" (parenthesized_expression "(xrmtree == (tree234 *)0x0)" ( (binary_expression "xrmtree == (tree234 *)0x0" identifier == (cast_expression "(tree234 *)0x0" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(pvVar2 = find234(xrmtree,&tmp_1,(cmpfn234)0x0), pvVar2 == (void *)0x0)" ( (comma_expression "pvVar2 = find234(xrmtree,&tmp_1,(cmpfn234)0x0), pvVar2 == (void *)0x0" (assignment_expression "pvVar2 = find234(xrmtree,&tmp_1,(cmpfn234)0x0)" identifier = (call_expression "find234(xrmtree,&tmp_1,(cmpfn234)0x0)" identifier (argument_list "(xrmtree,&tmp_1,(cmpfn234)0x0)" ( identifier , (pointer_expression "&tmp_1" & identifier) , (cast_expression "(cmpfn234)0x0" ( (type_descriptor "cmpfn234" type_identifier) ) number_literal) )))) , (binary_expression "pvVar2 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      s = x_get_default(key);\n    }" { (expression_statement "s = x_get_default(key);" (assignment_expression "s = x_get_default(key)" identifier = (call_expression "x_get_default(key)" identifier (argument_list "(key)" ( identifier )))) ;) }) (else_clause "else {\n      s = *(char **)((int)pvVar2 + 4);\n    }" else (compound_statement "{\n      s = *(char **)((int)pvVar2 + 4);\n    }" { (expression_statement "s = *(char **)((int)pvVar2 + 4);" (assignment_expression "s = *(char **)((int)pvVar2 + 4)" identifier = (pointer_expression "*(char **)((int)pvVar2 + 4)" * (cast_expression "(char **)((int)pvVar2 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar2 + 4)" ( (binary_expression "(int)pvVar2 + 4" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }))) (if_statement "if (s == (char *)0x0) goto LAB_0006a807;" if (parenthesized_expression "(s == (char *)0x0)" ( (binary_expression "s == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0006a807;" goto statement_identifier ;)) }) (else_clause "else {\n    s = *(char **)((int)pvVar2 + 4);\n    if (s == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }" else (compound_statement "{\n    s = *(char **)((int)pvVar2 + 4);\n    if (s == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }" { (expression_statement "s = *(char **)((int)pvVar2 + 4);" (assignment_expression "s = *(char **)((int)pvVar2 + 4)" identifier = (pointer_expression "*(char **)((int)pvVar2 + 4)" * (cast_expression "(char **)((int)pvVar2 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar2 + 4)" ( (binary_expression "(int)pvVar2 + 4" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (s == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }" if (parenthesized_expression "(s == (char *)0x0)" ( (binary_expression "s == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }" { comment (expression_statement "__assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");" (call_expression "__assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s")" identifier (argument_list "("val != NULL","unix/uxstore.c",399,"read_setting_s")" ( (string_literal ""val != NULL"" " string_content ") , (string_literal ""unix/uxstore.c"" " string_content ") , number_literal , (string_literal ""read_setting_s"" " string_content ") ))) ;) })) }))) (expression_statement "s = dupstr(s);" (assignment_expression "s = dupstr(s)" identifier = (call_expression "dupstr(s)" identifier (argument_list "(s)" ( identifier )))) ;) (labeled_statement "LAB_0006a807:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\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                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return s;" return identifier ;) })))
(translation_unit "void FUN_0006a7b0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_20 [2];\n  undefined4 local_18 [2];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x6a7b7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_20[0] = param_2;\n  if ((param_1 == 0) || (iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0)) {\n    local_18[0] = param_2;\n    if ((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)) {\n      iVar1 = FUN_0005db80(param_2);\n    }\n    else {\n      iVar1 = *(int *)(iVar1 + 4);\n    }\n    if (iVar1 == 0) goto LAB_0006a807;\n  }\n  else {\n    iVar1 = *(int *)(iVar1 + 4);\n    if (iVar1 == 0) {\n                    \n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }\n  FUN_0002f040(iVar1);\nLAB_0006a807:\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006c950();\n  }\n  return;\n}\n\n" (function_definition "void FUN_0006a7b0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_20 [2];\n  undefined4 local_18 [2];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x6a7b7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_20[0] = param_2;\n  if ((param_1 == 0) || (iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0)) {\n    local_18[0] = param_2;\n    if ((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)) {\n      iVar1 = FUN_0005db80(param_2);\n    }\n    else {\n      iVar1 = *(int *)(iVar1 + 4);\n    }\n    if (iVar1 == 0) goto LAB_0006a807;\n  }\n  else {\n    iVar1 = *(int *)(iVar1 + 4);\n    if (iVar1 == 0) {\n                    \n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }\n  FUN_0002f040(iVar1);\nLAB_0006a807:\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006c950();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0006a7b0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_20 [2];\n  undefined4 local_18 [2];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x6a7b7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_20[0] = param_2;\n  if ((param_1 == 0) || (iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0)) {\n    local_18[0] = param_2;\n    if ((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)) {\n      iVar1 = FUN_0005db80(param_2);\n    }\n    else {\n      iVar1 = *(int *)(iVar1 + 4);\n    }\n    if (iVar1 == 0) goto LAB_0006a807;\n  }\n  else {\n    iVar1 = *(int *)(iVar1 + 4);\n    if (iVar1 == 0) {\n                    \n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }\n  FUN_0002f040(iVar1);\nLAB_0006a807:\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006c950();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_20 [2];" type_identifier (array_declarator "local_20 [2]" identifier [ number_literal ]) ;) (declaration "undefined4 local_18 [2];" type_identifier (array_declarator "local_18 [2]" identifier [ number_literal ]) ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x6a7b7;" (assignment_expression "uStack_c = 0x6a7b7" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_20[0] = param_2;" (assignment_expression "local_20[0] = param_2" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((param_1 == 0) || (iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0)) {\n    local_18[0] = param_2;\n    if ((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)) {\n      iVar1 = FUN_0005db80(param_2);\n    }\n    else {\n      iVar1 = *(int *)(iVar1 + 4);\n    }\n    if (iVar1 == 0) goto LAB_0006a807;\n  }\n  else {\n    iVar1 = *(int *)(iVar1 + 4);\n    if (iVar1 == 0) {\n                    \n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }" if (parenthesized_expression "((param_1 == 0) || (iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0))" ( (binary_expression "(param_1 == 0) || (iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0)" (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0)" ( (comma_expression "iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0" (assignment_expression "iVar1 = FUN_0004c9c0(param_1,local_20,0)" identifier = (call_expression "FUN_0004c9c0(param_1,local_20,0)" identifier (argument_list "(param_1,local_20,0)" ( identifier , identifier , number_literal )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    local_18[0] = param_2;\n    if ((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)) {\n      iVar1 = FUN_0005db80(param_2);\n    }\n    else {\n      iVar1 = *(int *)(iVar1 + 4);\n    }\n    if (iVar1 == 0) goto LAB_0006a807;\n  }" { (expression_statement "local_18[0] = param_2;" (assignment_expression "local_18[0] = param_2" (subscript_expression "local_18[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)) {\n      iVar1 = FUN_0005db80(param_2);\n    }\n    else {\n      iVar1 = *(int *)(iVar1 + 4);\n    }" if (parenthesized_expression "((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0))" ( (binary_expression "(DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)" (parenthesized_expression "(DAT_000b6294 == 0)" ( (binary_expression "DAT_000b6294 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)" ( (comma_expression "iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0" (assignment_expression "iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0)" identifier = (call_expression "FUN_0004c9c0(DAT_000b6294,local_18,0)" identifier (argument_list "(DAT_000b6294,local_18,0)" ( identifier , identifier , number_literal )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      iVar1 = FUN_0005db80(param_2);\n    }" { (expression_statement "iVar1 = FUN_0005db80(param_2);" (assignment_expression "iVar1 = FUN_0005db80(param_2)" identifier = (call_expression "FUN_0005db80(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) }) (else_clause "else {\n      iVar1 = *(int *)(iVar1 + 4);\n    }" else (compound_statement "{\n      iVar1 = *(int *)(iVar1 + 4);\n    }" { (expression_statement "iVar1 = *(int *)(iVar1 + 4);" (assignment_expression "iVar1 = *(int *)(iVar1 + 4)" identifier = (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar1 == 0) goto LAB_0006a807;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0006a807;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar1 = *(int *)(iVar1 + 4);\n    if (iVar1 == 0) {\n                    \n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }" else (compound_statement "{\n    iVar1 = *(int *)(iVar1 + 4);\n    if (iVar1 == 0) {\n                    \n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }" { (expression_statement "iVar1 = *(int *)(iVar1 + 4);" (assignment_expression "iVar1 = *(int *)(iVar1 + 4)" identifier = (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 0) {\n                    \n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }" { (expression_statement "__assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");" (call_expression "__assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s")" identifier (argument_list "("val != NULL","unix/uxstore.c",399,"read_setting_s")" ( (string_literal ""val != NULL"" " string_content ") , (string_literal ""unix/uxstore.c"" " string_content ") , number_literal , (string_literal ""read_setting_s"" " string_content ") ))) ;) })) }))) (expression_statement "FUN_0002f040(iVar1);" (call_expression "FUN_0002f040(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (labeled_statement "LAB_0006a807:\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006c950();\n  }" statement_identifier : (if_statement "if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006c950();\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                    \n    FUN_0006c950();\n  }" { (expression_statement "FUN_0006c950();" (call_expression "FUN_0006c950()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }) (else_clause else (compound_statement { (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 IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (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 IDENT == 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 (call_expression IDENT (argument_list ( IDENT ))) ;) (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 { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return ;) })))
(function_definition "void FUN_0006a7b0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_20 [2];\n  undefined4 local_18 [2];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x6a7b7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_20[0] = param_2;\n  if ((param_1 == 0) || (iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0)) {\n    local_18[0] = param_2;\n    if ((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)) {\n      iVar1 = FUN_0005db80(param_2);\n    }\n    else {\n      iVar1 = *(int *)(iVar1 + 4);\n    }\n    if (iVar1 == 0) goto LAB_0006a807;\n  }\n  else {\n    iVar1 = *(int *)(iVar1 + 4);\n    if (iVar1 == 0) {\n                    \n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }\n  FUN_0002f040(iVar1);\nLAB_0006a807:\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006c950();\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0006a7b0(int param_1,undefined4 param_2)" (identifier "FUN_0006a7b0") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_20 [2];\n  undefined4 local_18 [2];\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x6a7b7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_20[0] = param_2;\n  if ((param_1 == 0) || (iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0)) {\n    local_18[0] = param_2;\n    if ((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)) {\n      iVar1 = FUN_0005db80(param_2);\n    }\n    else {\n      iVar1 = *(int *)(iVar1 + 4);\n    }\n    if (iVar1 == 0) goto LAB_0006a807;\n  }\n  else {\n    iVar1 = *(int *)(iVar1 + 4);\n    if (iVar1 == 0) {\n                    \n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }\n  FUN_0002f040(iVar1);\nLAB_0006a807:\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006c950();\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_20 [2];" (type_identifier "undefined4") (array_declarator "local_20 [2]" (identifier "local_20") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "undefined4 local_18 [2];" (type_identifier "undefined4") (array_declarator "local_18 [2]" (identifier "local_18") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (declaration "undefined4 uStack_c;" (type_identifier "undefined4") (identifier "uStack_c") (; ";")) (expression_statement "uStack_c = 0x6a7b7;" (assignment_expression "uStack_c = 0x6a7b7" (identifier "uStack_c") (= "=") (number_literal "0x6a7b7")) (; ";")) (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")) () ")"))))) (; ";")) (expression_statement "local_20[0] = param_2;" (assignment_expression "local_20[0] = param_2" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_2")) (; ";")) (if_statement "if ((param_1 == 0) || (iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0)) {\n    local_18[0] = param_2;\n    if ((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)) {\n      iVar1 = FUN_0005db80(param_2);\n    }\n    else {\n      iVar1 = *(int *)(iVar1 + 4);\n    }\n    if (iVar1 == 0) goto LAB_0006a807;\n  }\n  else {\n    iVar1 = *(int *)(iVar1 + 4);\n    if (iVar1 == 0) {\n                    \n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }" (if "if") (parenthesized_expression "((param_1 == 0) || (iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0))" (( "(") (binary_expression "(param_1 == 0) || (iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0)" (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0)" (( "(") (comma_expression "iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0" (assignment_expression "iVar1 = FUN_0004c9c0(param_1,local_20,0)" (identifier "iVar1") (= "=") (call_expression "FUN_0004c9c0(param_1,local_20,0)" (identifier "FUN_0004c9c0") (argument_list "(param_1,local_20,0)" (( "(") (identifier "param_1") (, ",") (identifier "local_20") (, ",") (number_literal "0") () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    local_18[0] = param_2;\n    if ((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)) {\n      iVar1 = FUN_0005db80(param_2);\n    }\n    else {\n      iVar1 = *(int *)(iVar1 + 4);\n    }\n    if (iVar1 == 0) goto LAB_0006a807;\n  }" ({ "{") (expression_statement "local_18[0] = param_2;" (assignment_expression "local_18[0] = param_2" (subscript_expression "local_18[0]" (identifier "local_18") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_2")) (; ";")) (if_statement "if ((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)) {\n      iVar1 = FUN_0005db80(param_2);\n    }\n    else {\n      iVar1 = *(int *)(iVar1 + 4);\n    }" (if "if") (parenthesized_expression "((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0))" (( "(") (binary_expression "(DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)" (parenthesized_expression "(DAT_000b6294 == 0)" (( "(") (binary_expression "DAT_000b6294 == 0" (identifier "DAT_000b6294") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)" (( "(") (comma_expression "iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0" (assignment_expression "iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0)" (identifier "iVar1") (= "=") (call_expression "FUN_0004c9c0(DAT_000b6294,local_18,0)" (identifier "FUN_0004c9c0") (argument_list "(DAT_000b6294,local_18,0)" (( "(") (identifier "DAT_000b6294") (, ",") (identifier "local_18") (, ",") (number_literal "0") () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      iVar1 = FUN_0005db80(param_2);\n    }" ({ "{") (expression_statement "iVar1 = FUN_0005db80(param_2);" (assignment_expression "iVar1 = FUN_0005db80(param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_0005db80(param_2)" (identifier "FUN_0005db80") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      iVar1 = *(int *)(iVar1 + 4);\n    }" (else "else") (compound_statement "{\n      iVar1 = *(int *)(iVar1 + 4);\n    }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar1 + 4);" (assignment_expression "iVar1 = *(int *)(iVar1 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar1 + 4)" (* "*") (cast_expression "(int *)(iVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar1 == 0) goto LAB_0006a807;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0006a807;" (goto "goto") (statement_identifier "LAB_0006a807") (; ";"))) (} "}")) (else_clause "else {\n    iVar1 = *(int *)(iVar1 + 4);\n    if (iVar1 == 0) {\n                    \n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = *(int *)(iVar1 + 4);\n    if (iVar1 == 0) {\n                    \n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar1 + 4);" (assignment_expression "iVar1 = *(int *)(iVar1 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar1 + 4)" (* "*") (cast_expression "(int *)(iVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (iVar1 == 0) {\n                    \n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");\n    }" ({ "{") (expression_statement "__assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");" (call_expression "__assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s")" (identifier "__assert_fail") (argument_list "("val != NULL","unix/uxstore.c",399,"read_setting_s")" (( "(") (string_literal ""val != NULL"" (" """) (string_content "val != NULL") (" """)) (, ",") (string_literal ""unix/uxstore.c"" (" """) (string_content "unix/uxstore.c") (" """)) (, ",") (number_literal "399") (, ",") (string_literal ""read_setting_s"" (" """) (string_content "read_setting_s") (" """)) () ")"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "FUN_0002f040(iVar1);" (call_expression "FUN_0002f040(iVar1)" (identifier "FUN_0002f040") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (labeled_statement "LAB_0006a807:\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006c950();\n  }" (statement_identifier "LAB_0006a807") (: ":") (if_statement "if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006c950();\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                    \n    FUN_0006c950();\n  }" ({ "{") (expression_statement "FUN_0006c950();" (call_expression "FUN_0006c950()" (identifier "FUN_0006c950") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

char * function_1(void *var_2,char *key)

{
  int var_10;
  void *var_4;
  char *var_7;
  int var_1;
  type_1 tmp;
  type_1 tmp_1;
  
  var_10 = *(int *)(var_1 + 0x14);
  tmp.key = key;
  if ((var_2 == (void *)0x0) ||
     (var_4 = var_3((type_2 *)var_2,&tmp,(type_3)0x0), var_4 == (void *)0x0)) {
    tmp_1.key = key;
    if ((var_5 == (type_2 *)0x0) ||
       (var_4 = var_3(var_5,&tmp_1,(type_3)0x0), var_4 == (void *)0x0)) {
      var_7 = var_6(key);
    }
    else {
      var_7 = *(char **)((int)var_4 + 4);
    }
    if (var_7 == (char *)0x0) goto LAB_0006a807;
  }
  else {
    var_7 = *(char **)((int)var_4 + 4);
    if (var_7 == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
      var_8("val != NULL","unix/uxstore.c",399,"read_setting_s");
    }
  }
  var_7 = var_9(var_7);
LAB_0006a807:
  if (var_10 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_11();
  }
  return var_7;
}


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

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

void MASKED(int param_1,undefined4 param_2)

{
  int iVar1;
  int in_GS_OFFSET;
  undefined4 local_20 [2];
  undefined4 local_18 [2];
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x6a7b7;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  local_20[0] = param_2;
  if ((param_1 == 0) || (iVar1 = FUN_0004c9c0(param_1,local_20,0), iVar1 == 0)) {
    local_18[0] = param_2;
    if ((DAT_000b6294 == 0) || (iVar1 = FUN_0004c9c0(DAT_000b6294,local_18,0), iVar1 == 0)) {
      iVar1 = FUN_0005db80(param_2);
    }
    else {
      iVar1 = *(int *)(iVar1 + 4);
    }
    if (iVar1 == 0) goto LAB_0006a807;
  }
  else {
    iVar1 = *(int *)(iVar1 + 4);
    if (iVar1 == 0) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("val != NULL","unix/uxstore.c",399,"read_setting_s");
    }
  }
  FUN_0002f040(iVar1);
LAB_0006a807:
  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0006c950();
  }
  return;
}

