
SHELL_VAR * find_nameref_at_context(SHELL_VAR *v,VAR_CONTEXT *vc)

{
  undefined *puVar1;
  int iVar2;
  SHELL_VAR *pSVar3;
  SHELL_VAR *nv;
  char *pcVar4;
  int iVar5;
  char *pcVar6;
  
  puVar1 = PTR_data_start_00144568;
  if (v != (SHELL_VAR *)0x0) {
    if ((v->attributes & 0x800U) == 0) {
      return v;
    }
    pcVar4 = v->value;
    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {
      iVar5 = 7;
      do {
        pcVar6 = vc->name;
        iVar5 = iVar5 + -1;
        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,pcVar6,0);
        if (iVar2 == 0) {
          return v;
        }
        pSVar3 = *(SHELL_VAR **)(iVar2 + 8);
        *(char **)(puVar1 + 0x7cf0) = pcVar6;
        if (pSVar3 == (SHELL_VAR *)0x0) {
          return v;
        }
        if ((pSVar3->attributes & 0x800U) == 0) {
          return pSVar3;
        }
        if (iVar5 == 0) {
          return (SHELL_VAR *)(PTR_data_start_00144568 + 0x7cf4);
        }
        pcVar4 = pSVar3->value;
      } while ((pcVar4 != (char *)0x0) && (v = pSVar3, *pcVar4 != '\0'));
    }
  }
  return (SHELL_VAR *)0x0;
}



undefined * FUN_00054184(undefined *param_1,undefined4 *param_2)

{
  undefined *puVar1;
  int iVar2;
  undefined *puVar3;
  char *pcVar4;
  int iVar5;
  undefined4 uVar6;
  
  puVar1 = PTR_data_start_00144568;
  if (param_1 != (undefined *)0x0) {
    if ((*(uint *)(param_1 + 0x14) & 0x800) == 0) {
      return param_1;
    }
    pcVar4 = *(char **)(param_1 + 4);
    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {
      iVar5 = 7;
      do {
        uVar6 = *param_2;
        iVar5 = iVar5 + -1;
        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);
        if (iVar2 == 0) {
          return param_1;
        }
        puVar3 = *(undefined **)(iVar2 + 8);
        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;
        if (puVar3 == (undefined *)0x0) {
          return param_1;
        }
        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {
          return puVar3;
        }
        if (iVar5 == 0) {
          return PTR_data_start_00144568 + 0x7cf4;
        }
        pcVar4 = *(char **)(puVar3 + 4);
      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));
    }
  }
  return (undefined *)0x0;
}


lui gp,0x10
addiu gp,gp,-0x7c44
addu gp,gp,t9
addiu sp,sp,-0x30
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
beq a0,zero,0x00054240
_sw s0,0x18(sp)
lw v0,0x14(a0)
andi v0,v0,0x800
beq v0,zero,0x00054244
_or s0,a0,zero
lw a0,0x4(a0)
beq a0,zero,0x00054240
_nop
lb v0,0x0(a0)
beq v0,zero,0x00054240
_lw s4,-0x7fd8(gp)
li s1,0x7
or s3,a1,zero
lw s2,0x0(s3)
or a2,zero,zero
lw t9,-0x7664(gp)
addiu s1,s1,-0x1
jalr t9
_or a1,s2,zero
beq v0,zero,0x00054244
_lw gp,0x10(sp)
lw v0,0x8(v0)
beq v0,zero,0x00054244
_sw s2,0x7cf0(s4)
lw v1,0x14(v0)
andi v1,v1,0x800
beq v1,zero,0x00054244
_or s0,v0,zero
beq s1,zero,0x00054268
_lw ra,0x2c(sp)
lw a0,0x4(v0)
beq a0,zero,0x00054240
_nop
lb v0,0x0(a0)
bne v0,zero,0x000541e4
_nop
or s0,zero,zero
lw ra,0x2c(sp)
or v0,s0,zero
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
lw s0,-0x7fd8(gp)
lw s4,0x28(sp)
addiu s0,s0,0x7cf4
lw s3,0x24(sp)
lw s2,0x20(sp)
or v0,s0,zero
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "undefined * FUN_00054184(undefined *param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined *puVar3;\n  char *pcVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  puVar1 = PTR_data_start_00144568;\n  if (param_1 != (undefined *)0x0) {\n    if ((*(uint *)(param_1 + 0x14) & 0x800) == 0) {\n      return param_1;\n    }\n    pcVar4 = *(char **)(param_1 + 4);\n    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));\n    }\n  }\n  return (undefined *)0x0;\n}\n\n" (function_definition "undefined * FUN_00054184(undefined *param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined *puVar3;\n  char *pcVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  puVar1 = PTR_data_start_00144568;\n  if (param_1 != (undefined *)0x0) {\n    if ((*(uint *)(param_1 + 0x14) & 0x800) == 0) {\n      return param_1;\n    }\n    pcVar4 = *(char **)(param_1 + 4);\n    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));\n    }\n  }\n  return (undefined *)0x0;\n}" type_identifier (pointer_declarator "* FUN_00054184(undefined *param_1,undefined4 *param_2)" * (function_declarator "FUN_00054184(undefined *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined *puVar3;\n  char *pcVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  puVar1 = PTR_data_start_00144568;\n  if (param_1 != (undefined *)0x0) {\n    if ((*(uint *)(param_1 + 0x14) & 0x800) == 0) {\n      return param_1;\n    }\n    pcVar4 = *(char **)(param_1 + 4);\n    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));\n    }\n  }\n  return (undefined *)0x0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_data_start_00144568;" (assignment_expression "puVar1 = PTR_data_start_00144568" identifier = identifier) ;) (if_statement "if (param_1 != (undefined *)0x0) {\n    if ((*(uint *)(param_1 + 0x14) & 0x800) == 0) {\n      return param_1;\n    }\n    pcVar4 = *(char **)(param_1 + 4);\n    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));\n    }\n  }" if (parenthesized_expression "(param_1 != (undefined *)0x0)" ( (binary_expression "param_1 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if ((*(uint *)(param_1 + 0x14) & 0x800) == 0) {\n      return param_1;\n    }\n    pcVar4 = *(char **)(param_1 + 4);\n    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));\n    }\n  }" { (if_statement "if ((*(uint *)(param_1 + 0x14) & 0x800) == 0) {\n      return param_1;\n    }" if (parenthesized_expression "((*(uint *)(param_1 + 0x14) & 0x800) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x14) & 0x800) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x14) & 0x800)" ( (binary_expression "*(uint *)(param_1 + 0x14) & 0x800" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "pcVar4 = *(char **)(param_1 + 4);" (assignment_expression "pcVar4 = *(char **)(param_1 + 4)" identifier = (pointer_expression "*(char **)(param_1 + 4)" * (cast_expression "(char **)(param_1 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));\n    }" if (parenthesized_expression "((pcVar4 != (char *)0x0) && (*pcVar4 != '\0'))" ( (binary_expression "(pcVar4 != (char *)0x0) && (*pcVar4 != '\0')" (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*pcVar4 != '\0')" ( (binary_expression "*pcVar4 != '\0'" (pointer_expression "*pcVar4" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      iVar5 = 7;\n      do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));\n    }" { (expression_statement "iVar5 = 7;" (assignment_expression "iVar5 = 7" identifier = number_literal) ;) (do_statement "do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));" do (compound_statement "{\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      }" { (expression_statement "uVar6 = *param_2;" (assignment_expression "uVar6 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);" (assignment_expression "iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0)" identifier = (call_expression "(*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0)" (parenthesized_expression "(*(code *)PTR_hash_search_00144edc)" ( (pointer_expression "*(code *)PTR_hash_search_00144edc" * (cast_expression "(code *)PTR_hash_search_00144edc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4,uVar6,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n          return param_1;\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          return param_1;\n        }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "puVar3 = *(undefined **)(iVar2 + 8);" (assignment_expression "puVar3 = *(undefined **)(iVar2 + 8)" identifier = (pointer_expression "*(undefined **)(iVar2 + 8)" * (cast_expression "(undefined **)(iVar2 + 8)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x7cf0) = uVar6;" (assignment_expression "*(undefined4 *)(puVar1 + 0x7cf0) = uVar6" (pointer_expression "*(undefined4 *)(puVar1 + 0x7cf0)" * (cast_expression "(undefined4 *)(puVar1 + 0x7cf0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x7cf0)" ( (binary_expression "puVar1 + 0x7cf0" identifier + number_literal) )))) = identifier) ;) (if_statement "if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }" if (parenthesized_expression "(puVar3 == (undefined *)0x0)" ( (binary_expression "puVar3 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return param_1;\n        }" { (return_statement "return param_1;" return identifier ;) })) (if_statement "if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }" if (parenthesized_expression "((*(uint *)(puVar3 + 0x14) & 0x800) == 0)" ( (binary_expression "(*(uint *)(puVar3 + 0x14) & 0x800) == 0" (parenthesized_expression "(*(uint *)(puVar3 + 0x14) & 0x800)" ( (binary_expression "*(uint *)(puVar3 + 0x14) & 0x800" (pointer_expression "*(uint *)(puVar3 + 0x14)" * (cast_expression "(uint *)(puVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x14)" ( (binary_expression "puVar3 + 0x14" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n          return puVar3;\n        }" { (return_statement "return puVar3;" return identifier ;) })) (if_statement "if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n          return PTR_data_start_00144568 + 0x7cf4;\n        }" { (return_statement "return PTR_data_start_00144568 + 0x7cf4;" return (binary_expression "PTR_data_start_00144568 + 0x7cf4" identifier + number_literal) ;) })) (expression_statement "pcVar4 = *(char **)(puVar3 + 4);" (assignment_expression "pcVar4 = *(char **)(puVar3 + 4)" identifier = (pointer_expression "*(char **)(puVar3 + 4)" * (cast_expression "(char **)(puVar3 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'))" ( (binary_expression "(pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0')" (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(param_1 = puVar3, *pcVar4 != '\0')" ( (comma_expression "param_1 = puVar3, *pcVar4 != '\0'" (assignment_expression "param_1 = puVar3" identifier = identifier) , (binary_expression "*pcVar4 != '\0'" (pointer_expression "*pcVar4" * identifier) != (char_literal "'\0'" ' escape_sequence '))) ))) )) ;) })) })) (return_statement "return (undefined *)0x0;" return (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "SHELL_VAR * find_nameref_at_context(SHELL_VAR *v,VAR_CONTEXT *vc)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  SHELL_VAR *pSVar3;\n  SHELL_VAR *nv;\n  char *pcVar4;\n  int iVar5;\n  char *pcVar6;\n  \n  puVar1 = PTR_data_start_00144568;\n  if (v != (SHELL_VAR *)0x0) {\n    if ((v->attributes & 0x800U) == 0) {\n      return v;\n    }\n    pcVar4 = v->value;\n    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        pcVar6 = vc->name;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,pcVar6,0);\n        if (iVar2 == 0) {\n          return v;\n        }\n        pSVar3 = *(SHELL_VAR **)(iVar2 + 8);\n        *(char **)(puVar1 + 0x7cf0) = pcVar6;\n        if (pSVar3 == (SHELL_VAR *)0x0) {\n          return v;\n        }\n        if ((pSVar3->attributes & 0x800U) == 0) {\n          return pSVar3;\n        }\n        if (iVar5 == 0) {\n          return (SHELL_VAR *)(PTR_data_start_00144568 + 0x7cf4);\n        }\n        pcVar4 = pSVar3->value;\n      } while ((pcVar4 != (char *)0x0) && (v = pSVar3, *pcVar4 != '\0'));\n    }\n  }\n  return (SHELL_VAR *)0x0;\n}\n\n" (function_definition "SHELL_VAR * find_nameref_at_context(SHELL_VAR *v,VAR_CONTEXT *vc)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  SHELL_VAR *pSVar3;\n  SHELL_VAR *nv;\n  char *pcVar4;\n  int iVar5;\n  char *pcVar6;\n  \n  puVar1 = PTR_data_start_00144568;\n  if (v != (SHELL_VAR *)0x0) {\n    if ((v->attributes & 0x800U) == 0) {\n      return v;\n    }\n    pcVar4 = v->value;\n    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        pcVar6 = vc->name;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,pcVar6,0);\n        if (iVar2 == 0) {\n          return v;\n        }\n        pSVar3 = *(SHELL_VAR **)(iVar2 + 8);\n        *(char **)(puVar1 + 0x7cf0) = pcVar6;\n        if (pSVar3 == (SHELL_VAR *)0x0) {\n          return v;\n        }\n        if ((pSVar3->attributes & 0x800U) == 0) {\n          return pSVar3;\n        }\n        if (iVar5 == 0) {\n          return (SHELL_VAR *)(PTR_data_start_00144568 + 0x7cf4);\n        }\n        pcVar4 = pSVar3->value;\n      } while ((pcVar4 != (char *)0x0) && (v = pSVar3, *pcVar4 != '\0'));\n    }\n  }\n  return (SHELL_VAR *)0x0;\n}" type_identifier (pointer_declarator "* find_nameref_at_context(SHELL_VAR *v,VAR_CONTEXT *vc)" * (function_declarator "find_nameref_at_context(SHELL_VAR *v,VAR_CONTEXT *vc)" identifier (parameter_list "(SHELL_VAR *v,VAR_CONTEXT *vc)" ( (parameter_declaration "SHELL_VAR *v" type_identifier (pointer_declarator "*v" * identifier)) , (parameter_declaration "VAR_CONTEXT *vc" type_identifier (pointer_declarator "*vc" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  SHELL_VAR *pSVar3;\n  SHELL_VAR *nv;\n  char *pcVar4;\n  int iVar5;\n  char *pcVar6;\n  \n  puVar1 = PTR_data_start_00144568;\n  if (v != (SHELL_VAR *)0x0) {\n    if ((v->attributes & 0x800U) == 0) {\n      return v;\n    }\n    pcVar4 = v->value;\n    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        pcVar6 = vc->name;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,pcVar6,0);\n        if (iVar2 == 0) {\n          return v;\n        }\n        pSVar3 = *(SHELL_VAR **)(iVar2 + 8);\n        *(char **)(puVar1 + 0x7cf0) = pcVar6;\n        if (pSVar3 == (SHELL_VAR *)0x0) {\n          return v;\n        }\n        if ((pSVar3->attributes & 0x800U) == 0) {\n          return pSVar3;\n        }\n        if (iVar5 == 0) {\n          return (SHELL_VAR *)(PTR_data_start_00144568 + 0x7cf4);\n        }\n        pcVar4 = pSVar3->value;\n      } while ((pcVar4 != (char *)0x0) && (v = pSVar3, *pcVar4 != '\0'));\n    }\n  }\n  return (SHELL_VAR *)0x0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "SHELL_VAR *pSVar3;" type_identifier (pointer_declarator "*pSVar3" * identifier) ;) (declaration "SHELL_VAR *nv;" type_identifier (pointer_declarator "*nv" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "puVar1 = PTR_data_start_00144568;" (assignment_expression "puVar1 = PTR_data_start_00144568" identifier = identifier) ;) (if_statement "if (v != (SHELL_VAR *)0x0) {\n    if ((v->attributes & 0x800U) == 0) {\n      return v;\n    }\n    pcVar4 = v->value;\n    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        pcVar6 = vc->name;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,pcVar6,0);\n        if (iVar2 == 0) {\n          return v;\n        }\n        pSVar3 = *(SHELL_VAR **)(iVar2 + 8);\n        *(char **)(puVar1 + 0x7cf0) = pcVar6;\n        if (pSVar3 == (SHELL_VAR *)0x0) {\n          return v;\n        }\n        if ((pSVar3->attributes & 0x800U) == 0) {\n          return pSVar3;\n        }\n        if (iVar5 == 0) {\n          return (SHELL_VAR *)(PTR_data_start_00144568 + 0x7cf4);\n        }\n        pcVar4 = pSVar3->value;\n      } while ((pcVar4 != (char *)0x0) && (v = pSVar3, *pcVar4 != '\0'));\n    }\n  }" if (parenthesized_expression "(v != (SHELL_VAR *)0x0)" ( (binary_expression "v != (SHELL_VAR *)0x0" identifier != (cast_expression "(SHELL_VAR *)0x0" ( (type_descriptor "SHELL_VAR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if ((v->attributes & 0x800U) == 0) {\n      return v;\n    }\n    pcVar4 = v->value;\n    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        pcVar6 = vc->name;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,pcVar6,0);\n        if (iVar2 == 0) {\n          return v;\n        }\n        pSVar3 = *(SHELL_VAR **)(iVar2 + 8);\n        *(char **)(puVar1 + 0x7cf0) = pcVar6;\n        if (pSVar3 == (SHELL_VAR *)0x0) {\n          return v;\n        }\n        if ((pSVar3->attributes & 0x800U) == 0) {\n          return pSVar3;\n        }\n        if (iVar5 == 0) {\n          return (SHELL_VAR *)(PTR_data_start_00144568 + 0x7cf4);\n        }\n        pcVar4 = pSVar3->value;\n      } while ((pcVar4 != (char *)0x0) && (v = pSVar3, *pcVar4 != '\0'));\n    }\n  }" { (if_statement "if ((v->attributes & 0x800U) == 0) {\n      return v;\n    }" if (parenthesized_expression "((v->attributes & 0x800U) == 0)" ( (binary_expression "(v->attributes & 0x800U) == 0" (parenthesized_expression "(v->attributes & 0x800U)" ( (binary_expression "v->attributes & 0x800U" (field_expression "v->attributes" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      return v;\n    }" { (return_statement "return v;" return identifier ;) })) (expression_statement "pcVar4 = v->value;" (assignment_expression "pcVar4 = v->value" identifier = (field_expression "v->value" identifier -> field_identifier)) ;) (if_statement "if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        pcVar6 = vc->name;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,pcVar6,0);\n        if (iVar2 == 0) {\n          return v;\n        }\n        pSVar3 = *(SHELL_VAR **)(iVar2 + 8);\n        *(char **)(puVar1 + 0x7cf0) = pcVar6;\n        if (pSVar3 == (SHELL_VAR *)0x0) {\n          return v;\n        }\n        if ((pSVar3->attributes & 0x800U) == 0) {\n          return pSVar3;\n        }\n        if (iVar5 == 0) {\n          return (SHELL_VAR *)(PTR_data_start_00144568 + 0x7cf4);\n        }\n        pcVar4 = pSVar3->value;\n      } while ((pcVar4 != (char *)0x0) && (v = pSVar3, *pcVar4 != '\0'));\n    }" if (parenthesized_expression "((pcVar4 != (char *)0x0) && (*pcVar4 != '\0'))" ( (binary_expression "(pcVar4 != (char *)0x0) && (*pcVar4 != '\0')" (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*pcVar4 != '\0')" ( (binary_expression "*pcVar4 != '\0'" (pointer_expression "*pcVar4" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      iVar5 = 7;\n      do {\n        pcVar6 = vc->name;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,pcVar6,0);\n        if (iVar2 == 0) {\n          return v;\n        }\n        pSVar3 = *(SHELL_VAR **)(iVar2 + 8);\n        *(char **)(puVar1 + 0x7cf0) = pcVar6;\n        if (pSVar3 == (SHELL_VAR *)0x0) {\n          return v;\n        }\n        if ((pSVar3->attributes & 0x800U) == 0) {\n          return pSVar3;\n        }\n        if (iVar5 == 0) {\n          return (SHELL_VAR *)(PTR_data_start_00144568 + 0x7cf4);\n        }\n        pcVar4 = pSVar3->value;\n      } while ((pcVar4 != (char *)0x0) && (v = pSVar3, *pcVar4 != '\0'));\n    }" { (expression_statement "iVar5 = 7;" (assignment_expression "iVar5 = 7" identifier = number_literal) ;) (do_statement "do {\n        pcVar6 = vc->name;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,pcVar6,0);\n        if (iVar2 == 0) {\n          return v;\n        }\n        pSVar3 = *(SHELL_VAR **)(iVar2 + 8);\n        *(char **)(puVar1 + 0x7cf0) = pcVar6;\n        if (pSVar3 == (SHELL_VAR *)0x0) {\n          return v;\n        }\n        if ((pSVar3->attributes & 0x800U) == 0) {\n          return pSVar3;\n        }\n        if (iVar5 == 0) {\n          return (SHELL_VAR *)(PTR_data_start_00144568 + 0x7cf4);\n        }\n        pcVar4 = pSVar3->value;\n      } while ((pcVar4 != (char *)0x0) && (v = pSVar3, *pcVar4 != '\0'));" do (compound_statement "{\n        pcVar6 = vc->name;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,pcVar6,0);\n        if (iVar2 == 0) {\n          return v;\n        }\n        pSVar3 = *(SHELL_VAR **)(iVar2 + 8);\n        *(char **)(puVar1 + 0x7cf0) = pcVar6;\n        if (pSVar3 == (SHELL_VAR *)0x0) {\n          return v;\n        }\n        if ((pSVar3->attributes & 0x800U) == 0) {\n          return pSVar3;\n        }\n        if (iVar5 == 0) {\n          return (SHELL_VAR *)(PTR_data_start_00144568 + 0x7cf4);\n        }\n        pcVar4 = pSVar3->value;\n      }" { (expression_statement "pcVar6 = vc->name;" (assignment_expression "pcVar6 = vc->name" identifier = (field_expression "vc->name" identifier -> field_identifier)) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,pcVar6,0);" (assignment_expression "iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,pcVar6,0)" identifier = (call_expression "(*(code *)PTR_hash_search_00144edc)(pcVar4,pcVar6,0)" (parenthesized_expression "(*(code *)PTR_hash_search_00144edc)" ( (pointer_expression "*(code *)PTR_hash_search_00144edc" * (cast_expression "(code *)PTR_hash_search_00144edc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4,pcVar6,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n          return v;\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          return v;\n        }" { (return_statement "return v;" return identifier ;) })) (expression_statement "pSVar3 = *(SHELL_VAR **)(iVar2 + 8);" (assignment_expression "pSVar3 = *(SHELL_VAR **)(iVar2 + 8)" identifier = (pointer_expression "*(SHELL_VAR **)(iVar2 + 8)" * (cast_expression "(SHELL_VAR **)(iVar2 + 8)" ( (type_descriptor "SHELL_VAR **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(char **)(puVar1 + 0x7cf0) = pcVar6;" (assignment_expression "*(char **)(puVar1 + 0x7cf0) = pcVar6" (pointer_expression "*(char **)(puVar1 + 0x7cf0)" * (cast_expression "(char **)(puVar1 + 0x7cf0)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x7cf0)" ( (binary_expression "puVar1 + 0x7cf0" identifier + number_literal) )))) = identifier) ;) (if_statement "if (pSVar3 == (SHELL_VAR *)0x0) {\n          return v;\n        }" if (parenthesized_expression "(pSVar3 == (SHELL_VAR *)0x0)" ( (binary_expression "pSVar3 == (SHELL_VAR *)0x0" identifier == (cast_expression "(SHELL_VAR *)0x0" ( (type_descriptor "SHELL_VAR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return v;\n        }" { (return_statement "return v;" return identifier ;) })) (if_statement "if ((pSVar3->attributes & 0x800U) == 0) {\n          return pSVar3;\n        }" if (parenthesized_expression "((pSVar3->attributes & 0x800U) == 0)" ( (binary_expression "(pSVar3->attributes & 0x800U) == 0" (parenthesized_expression "(pSVar3->attributes & 0x800U)" ( (binary_expression "pSVar3->attributes & 0x800U" (field_expression "pSVar3->attributes" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n          return pSVar3;\n        }" { (return_statement "return pSVar3;" return identifier ;) })) (if_statement "if (iVar5 == 0) {\n          return (SHELL_VAR *)(PTR_data_start_00144568 + 0x7cf4);\n        }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n          return (SHELL_VAR *)(PTR_data_start_00144568 + 0x7cf4);\n        }" { (return_statement "return (SHELL_VAR *)(PTR_data_start_00144568 + 0x7cf4);" return (cast_expression "(SHELL_VAR *)(PTR_data_start_00144568 + 0x7cf4)" ( (type_descriptor "SHELL_VAR *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x7cf4)" ( (binary_expression "PTR_data_start_00144568 + 0x7cf4" identifier + number_literal) ))) ;) })) (expression_statement "pcVar4 = pSVar3->value;" (assignment_expression "pcVar4 = pSVar3->value" identifier = (field_expression "pSVar3->value" identifier -> field_identifier)) ;) }) while (parenthesized_expression "((pcVar4 != (char *)0x0) && (v = pSVar3, *pcVar4 != '\0'))" ( (binary_expression "(pcVar4 != (char *)0x0) && (v = pSVar3, *pcVar4 != '\0')" (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(v = pSVar3, *pcVar4 != '\0')" ( (comma_expression "v = pSVar3, *pcVar4 != '\0'" (assignment_expression "v = pSVar3" identifier = identifier) , (binary_expression "*pcVar4 != '\0'" (pointer_expression "*pcVar4" * identifier) != (char_literal "'\0'" ' escape_sequence '))) ))) )) ;) })) })) (return_statement "return (SHELL_VAR *)0x0;" return (cast_expression "(SHELL_VAR *)0x0" ( (type_descriptor "SHELL_VAR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined * FUN_00054184(undefined *param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined *puVar3;\n  char *pcVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  puVar1 = PTR_data_start_00144568;\n  if (param_1 != (undefined *)0x0) {\n    if ((*(uint *)(param_1 + 0x14) & 0x800) == 0) {\n      return param_1;\n    }\n    pcVar4 = *(char **)(param_1 + 4);\n    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));\n    }\n  }\n  return (undefined *)0x0;\n}\n\n" (function_definition "undefined * FUN_00054184(undefined *param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined *puVar3;\n  char *pcVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  puVar1 = PTR_data_start_00144568;\n  if (param_1 != (undefined *)0x0) {\n    if ((*(uint *)(param_1 + 0x14) & 0x800) == 0) {\n      return param_1;\n    }\n    pcVar4 = *(char **)(param_1 + 4);\n    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));\n    }\n  }\n  return (undefined *)0x0;\n}" type_identifier (pointer_declarator "* FUN_00054184(undefined *param_1,undefined4 *param_2)" * (function_declarator "FUN_00054184(undefined *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined *puVar3;\n  char *pcVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  puVar1 = PTR_data_start_00144568;\n  if (param_1 != (undefined *)0x0) {\n    if ((*(uint *)(param_1 + 0x14) & 0x800) == 0) {\n      return param_1;\n    }\n    pcVar4 = *(char **)(param_1 + 4);\n    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));\n    }\n  }\n  return (undefined *)0x0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_data_start_00144568;" (assignment_expression "puVar1 = PTR_data_start_00144568" identifier = identifier) ;) (if_statement "if (param_1 != (undefined *)0x0) {\n    if ((*(uint *)(param_1 + 0x14) & 0x800) == 0) {\n      return param_1;\n    }\n    pcVar4 = *(char **)(param_1 + 4);\n    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));\n    }\n  }" if (parenthesized_expression "(param_1 != (undefined *)0x0)" ( (binary_expression "param_1 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if ((*(uint *)(param_1 + 0x14) & 0x800) == 0) {\n      return param_1;\n    }\n    pcVar4 = *(char **)(param_1 + 4);\n    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));\n    }\n  }" { (if_statement "if ((*(uint *)(param_1 + 0x14) & 0x800) == 0) {\n      return param_1;\n    }" if (parenthesized_expression "((*(uint *)(param_1 + 0x14) & 0x800) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x14) & 0x800) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x14) & 0x800)" ( (binary_expression "*(uint *)(param_1 + 0x14) & 0x800" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "pcVar4 = *(char **)(param_1 + 4);" (assignment_expression "pcVar4 = *(char **)(param_1 + 4)" identifier = (pointer_expression "*(char **)(param_1 + 4)" * (cast_expression "(char **)(param_1 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));\n    }" if (parenthesized_expression "((pcVar4 != (char *)0x0) && (*pcVar4 != '\0'))" ( (binary_expression "(pcVar4 != (char *)0x0) && (*pcVar4 != '\0')" (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*pcVar4 != '\0')" ( (binary_expression "*pcVar4 != '\0'" (pointer_expression "*pcVar4" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      iVar5 = 7;\n      do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));\n    }" { (expression_statement "iVar5 = 7;" (assignment_expression "iVar5 = 7" identifier = number_literal) ;) (do_statement "do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));" do (compound_statement "{\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      }" { (expression_statement "uVar6 = *param_2;" (assignment_expression "uVar6 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);" (assignment_expression "iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0)" identifier = (call_expression "(*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0)" (parenthesized_expression "(*(code *)PTR_hash_search_00144edc)" ( (pointer_expression "*(code *)PTR_hash_search_00144edc" * (cast_expression "(code *)PTR_hash_search_00144edc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4,uVar6,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n          return param_1;\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          return param_1;\n        }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "puVar3 = *(undefined **)(iVar2 + 8);" (assignment_expression "puVar3 = *(undefined **)(iVar2 + 8)" identifier = (pointer_expression "*(undefined **)(iVar2 + 8)" * (cast_expression "(undefined **)(iVar2 + 8)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x7cf0) = uVar6;" (assignment_expression "*(undefined4 *)(puVar1 + 0x7cf0) = uVar6" (pointer_expression "*(undefined4 *)(puVar1 + 0x7cf0)" * (cast_expression "(undefined4 *)(puVar1 + 0x7cf0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x7cf0)" ( (binary_expression "puVar1 + 0x7cf0" identifier + number_literal) )))) = identifier) ;) (if_statement "if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }" if (parenthesized_expression "(puVar3 == (undefined *)0x0)" ( (binary_expression "puVar3 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return param_1;\n        }" { (return_statement "return param_1;" return identifier ;) })) (if_statement "if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }" if (parenthesized_expression "((*(uint *)(puVar3 + 0x14) & 0x800) == 0)" ( (binary_expression "(*(uint *)(puVar3 + 0x14) & 0x800) == 0" (parenthesized_expression "(*(uint *)(puVar3 + 0x14) & 0x800)" ( (binary_expression "*(uint *)(puVar3 + 0x14) & 0x800" (pointer_expression "*(uint *)(puVar3 + 0x14)" * (cast_expression "(uint *)(puVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x14)" ( (binary_expression "puVar3 + 0x14" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n          return puVar3;\n        }" { (return_statement "return puVar3;" return identifier ;) })) (if_statement "if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n          return PTR_data_start_00144568 + 0x7cf4;\n        }" { (return_statement "return PTR_data_start_00144568 + 0x7cf4;" return (binary_expression "PTR_data_start_00144568 + 0x7cf4" identifier + number_literal) ;) })) (expression_statement "pcVar4 = *(char **)(puVar3 + 4);" (assignment_expression "pcVar4 = *(char **)(puVar3 + 4)" identifier = (pointer_expression "*(char **)(puVar3 + 4)" * (cast_expression "(char **)(puVar3 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'))" ( (binary_expression "(pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0')" (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(param_1 = puVar3, *pcVar4 != '\0')" ( (comma_expression "param_1 = puVar3, *pcVar4 != '\0'" (assignment_expression "param_1 = puVar3" identifier = identifier) , (binary_expression "*pcVar4 != '\0'" (pointer_expression "*pcVar4" * identifier) != (char_literal "'\0'" ' escape_sequence '))) ))) )) ;) })) })) (return_statement "return (undefined *)0x0;" return (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_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 (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (binary_expression IDENT + LIT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence '))) ))) )) ;) })) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "undefined * FUN_00054184(undefined *param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined *puVar3;\n  char *pcVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  puVar1 = PTR_data_start_00144568;\n  if (param_1 != (undefined *)0x0) {\n    if ((*(uint *)(param_1 + 0x14) & 0x800) == 0) {\n      return param_1;\n    }\n    pcVar4 = *(char **)(param_1 + 4);\n    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));\n    }\n  }\n  return (undefined *)0x0;\n}" (type_identifier "undefined") (pointer_declarator "* FUN_00054184(undefined *param_1,undefined4 *param_2)" (* "*") (function_declarator "FUN_00054184(undefined *param_1,undefined4 *param_2)" (identifier "FUN_00054184") (parameter_list "(undefined *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined *param_1" (type_identifier "undefined") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined *puVar3;\n  char *pcVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  puVar1 = PTR_data_start_00144568;\n  if (param_1 != (undefined *)0x0) {\n    if ((*(uint *)(param_1 + 0x14) & 0x800) == 0) {\n      return param_1;\n    }\n    pcVar4 = *(char **)(param_1 + 4);\n    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));\n    }\n  }\n  return (undefined *)0x0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (expression_statement "puVar1 = PTR_data_start_00144568;" (assignment_expression "puVar1 = PTR_data_start_00144568" (identifier "puVar1") (= "=") (identifier "PTR_data_start_00144568")) (; ";")) (if_statement "if (param_1 != (undefined *)0x0) {\n    if ((*(uint *)(param_1 + 0x14) & 0x800) == 0) {\n      return param_1;\n    }\n    pcVar4 = *(char **)(param_1 + 4);\n    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));\n    }\n  }" (if "if") (parenthesized_expression "(param_1 != (undefined *)0x0)" (( "(") (binary_expression "param_1 != (undefined *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if ((*(uint *)(param_1 + 0x14) & 0x800) == 0) {\n      return param_1;\n    }\n    pcVar4 = *(char **)(param_1 + 4);\n    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));\n    }\n  }" ({ "{") (if_statement "if ((*(uint *)(param_1 + 0x14) & 0x800) == 0) {\n      return param_1;\n    }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 0x14) & 0x800) == 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x14) & 0x800) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x14) & 0x800)" (( "(") (binary_expression "*(uint *)(param_1 + 0x14) & 0x800" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (& "&") (number_literal "0x800")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return param_1;\n    }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "pcVar4 = *(char **)(param_1 + 4);" (assignment_expression "pcVar4 = *(char **)(param_1 + 4)" (identifier "pcVar4") (= "=") (pointer_expression "*(char **)(param_1 + 4)" (* "*") (cast_expression "(char **)(param_1 + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n      iVar5 = 7;\n      do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));\n    }" (if "if") (parenthesized_expression "((pcVar4 != (char *)0x0) && (*pcVar4 != '\0'))" (( "(") (binary_expression "(pcVar4 != (char *)0x0) && (*pcVar4 != '\0')" (parenthesized_expression "(pcVar4 != (char *)0x0)" (( "(") (binary_expression "pcVar4 != (char *)0x0" (identifier "pcVar4") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*pcVar4 != '\0')" (( "(") (binary_expression "*pcVar4 != '\0'" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      iVar5 = 7;\n      do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));\n    }" ({ "{") (expression_statement "iVar5 = 7;" (assignment_expression "iVar5 = 7" (identifier "iVar5") (= "=") (number_literal "7")) (; ";")) (do_statement "do {\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));" (do "do") (compound_statement "{\n        uVar6 = *param_2;\n        iVar5 = iVar5 + -1;\n        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);\n        if (iVar2 == 0) {\n          return param_1;\n        }\n        puVar3 = *(undefined **)(iVar2 + 8);\n        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;\n        if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }\n        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }\n        if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }\n        pcVar4 = *(char **)(puVar3 + 4);\n      }" ({ "{") (expression_statement "uVar6 = *param_2;" (assignment_expression "uVar6 = *param_2" (identifier "uVar6") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);" (assignment_expression "iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0)" (parenthesized_expression "(*(code *)PTR_hash_search_00144edc)" (( "(") (pointer_expression "*(code *)PTR_hash_search_00144edc" (* "*") (cast_expression "(code *)PTR_hash_search_00144edc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_hash_search_00144edc"))) () ")")) (argument_list "(pcVar4,uVar6,0)" (( "(") (identifier "pcVar4") (, ",") (identifier "uVar6") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n          return param_1;\n        }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return param_1;\n        }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "puVar3 = *(undefined **)(iVar2 + 8);" (assignment_expression "puVar3 = *(undefined **)(iVar2 + 8)" (identifier "puVar3") (= "=") (pointer_expression "*(undefined **)(iVar2 + 8)" (* "*") (cast_expression "(undefined **)(iVar2 + 8)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(puVar1 + 0x7cf0) = uVar6;" (assignment_expression "*(undefined4 *)(puVar1 + 0x7cf0) = uVar6" (pointer_expression "*(undefined4 *)(puVar1 + 0x7cf0)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 0x7cf0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x7cf0)" (( "(") (binary_expression "puVar1 + 0x7cf0" (identifier "puVar1") (+ "+") (number_literal "0x7cf0")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (if_statement "if (puVar3 == (undefined *)0x0) {\n          return param_1;\n        }" (if "if") (parenthesized_expression "(puVar3 == (undefined *)0x0)" (( "(") (binary_expression "puVar3 == (undefined *)0x0" (identifier "puVar3") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          return param_1;\n        }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (if_statement "if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {\n          return puVar3;\n        }" (if "if") (parenthesized_expression "((*(uint *)(puVar3 + 0x14) & 0x800) == 0)" (( "(") (binary_expression "(*(uint *)(puVar3 + 0x14) & 0x800) == 0" (parenthesized_expression "(*(uint *)(puVar3 + 0x14) & 0x800)" (( "(") (binary_expression "*(uint *)(puVar3 + 0x14) & 0x800" (pointer_expression "*(uint *)(puVar3 + 0x14)" (* "*") (cast_expression "(uint *)(puVar3 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x14)" (( "(") (binary_expression "puVar3 + 0x14" (identifier "puVar3") (+ "+") (number_literal "0x14")) () ")")))) (& "&") (number_literal "0x800")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return puVar3;\n        }" ({ "{") (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}"))) (if_statement "if (iVar5 == 0) {\n          return PTR_data_start_00144568 + 0x7cf4;\n        }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return PTR_data_start_00144568 + 0x7cf4;\n        }" ({ "{") (return_statement "return PTR_data_start_00144568 + 0x7cf4;" (return "return") (binary_expression "PTR_data_start_00144568 + 0x7cf4" (identifier "PTR_data_start_00144568") (+ "+") (number_literal "0x7cf4")) (; ";")) (} "}"))) (expression_statement "pcVar4 = *(char **)(puVar3 + 4);" (assignment_expression "pcVar4 = *(char **)(puVar3 + 4)" (identifier "pcVar4") (= "=") (pointer_expression "*(char **)(puVar3 + 4)" (* "*") (cast_expression "(char **)(puVar3 + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + 4)" (( "(") (binary_expression "puVar3 + 4" (identifier "puVar3") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'))" (( "(") (binary_expression "(pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0')" (parenthesized_expression "(pcVar4 != (char *)0x0)" (( "(") (binary_expression "pcVar4 != (char *)0x0" (identifier "pcVar4") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(param_1 = puVar3, *pcVar4 != '\0')" (( "(") (comma_expression "param_1 = puVar3, *pcVar4 != '\0'" (assignment_expression "param_1 = puVar3" (identifier "param_1") (= "=") (identifier "puVar3")) (, ",") (binary_expression "*pcVar4 != '\0'" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")"))) () ")")) (; ";")) (} "}"))) (} "}"))) (return_statement "return (undefined *)0x0;" (return "return") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (binary_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 declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))))))))) (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))

undefined * MASKED(undefined *param_1,undefined4 *param_2)

{
  undefined *puVar1;
  int iVar2;
  undefined *puVar3;
  char *pcVar4;
  int iVar5;
  undefined4 uVar6;
  
  puVar1 = PTR_data_start_00144568;
  if (param_1 != (undefined *)0x0) {
    if ((*(uint *)(param_1 + 0x14) & 0x800) == 0) {
      return param_1;
    }
    pcVar4 = *(char **)(param_1 + 4);
    if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {
      iVar5 = 7;
      do {
        uVar6 = *param_2;
        iVar5 = iVar5 + -1;
        iVar2 = (*(code *)PTR_hash_search_00144edc)(pcVar4,uVar6,0);
        if (iVar2 == 0) {
          return param_1;
        }
        puVar3 = *(undefined **)(iVar2 + 8);
        *(undefined4 *)(puVar1 + 0x7cf0) = uVar6;
        if (puVar3 == (undefined *)0x0) {
          return param_1;
        }
        if ((*(uint *)(puVar3 + 0x14) & 0x800) == 0) {
          return puVar3;
        }
        if (iVar5 == 0) {
          return PTR_data_start_00144568 + 0x7cf4;
        }
        pcVar4 = *(char **)(puVar3 + 4);
      } while ((pcVar4 != (char *)0x0) && (param_1 = puVar3, *pcVar4 != '\0'));
    }
  }
  return (undefined *)0x0;
}

