
sqlite3_vfs * sqlite3_vfs_find(char *zVfs)

{
  int iVar1;
  sqlite3_mutex *p;
  sqlite3_vfs *psVar2;
  
  iVar1 = sqlite3_initialize();
  psVar2 = (sqlite3_vfs *)0x0;
  if (iVar1 == 0) {
    p = sqlite3MutexAlloc(2);
    sqlite3_mutex_enter(p);
    psVar2 = vfsList;
    if (zVfs != (char *)0x0) {
      while ((psVar2 != (sqlite3_vfs *)0x0 && (iVar1 = strcmp(zVfs,psVar2->zName), iVar1 != 0))) {
        psVar2 = psVar2->pNext;
      }
    }
    sqlite3_mutex_leave(p);
  }
  return psVar2;
}



long FUN_0014ac79(char *param_1)

{
  int iVar1;
  undefined8 uVar2;
  long lVar3;
  
  iVar1 = FUN_0014a81a();
  lVar3 = 0;
  if (iVar1 == 0) {
    uVar2 = FUN_0012a894(2);
    FUN_0012a8c7(uVar2);
    lVar3 = DAT_002323e0;
    if (param_1 != (char *)0x0) {
      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {
        lVar3 = *(long *)(lVar3 + 0x10);
      }
    }
    FUN_0012a8f6(uVar2);
  }
  return lVar3;
}


PUSH R12
PUSH RBP
PUSH RBX
MOV RBP,RDI
CALL 0x0014a81a
MOV EBX,0x0
TEST EAX,EAX
JNZ 0x0014acd5
MOV EDI,0x2
CALL 0x0012a894
MOV R12,RAX
MOV RDI,RAX
CALL 0x0012a8c7
MOV RBX,qword ptr [0x002323e0]
TEST RBP,RBP
JZ 0x0014accd
TEST RBX,RBX
JZ 0x0014accd
MOV RSI,qword ptr [RBX + 0x18]
MOV RDI,RBP
CALL 0x0010e4e0
TEST EAX,EAX
JZ 0x0014accd
MOV RBX,qword ptr [RBX + 0x10]
TEST RBX,RBX
JNZ 0x0014acb4
MOV RDI,R12
CALL 0x0012a8f6
MOV RAX,RBX
POP RBX
POP RBP
POP R12
RET
(translation_unit "long FUN_0014ac79(char *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  long lVar3;\n  \n  iVar1 = FUN_0014a81a();\n  lVar3 = 0;\n  if (iVar1 == 0) {\n    uVar2 = FUN_0012a894(2);\n    FUN_0012a8c7(uVar2);\n    lVar3 = DAT_002323e0;\n    if (param_1 != (char *)0x0) {\n      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }\n    }\n    FUN_0012a8f6(uVar2);\n  }\n  return lVar3;\n}\n\n" (function_definition "long FUN_0014ac79(char *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  long lVar3;\n  \n  iVar1 = FUN_0014a81a();\n  lVar3 = 0;\n  if (iVar1 == 0) {\n    uVar2 = FUN_0012a894(2);\n    FUN_0012a8c7(uVar2);\n    lVar3 = DAT_002323e0;\n    if (param_1 != (char *)0x0) {\n      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }\n    }\n    FUN_0012a8f6(uVar2);\n  }\n  return lVar3;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0014ac79(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  long lVar3;\n  \n  iVar1 = FUN_0014a81a();\n  lVar3 = 0;\n  if (iVar1 == 0) {\n    uVar2 = FUN_0012a894(2);\n    FUN_0012a8c7(uVar2);\n    lVar3 = DAT_002323e0;\n    if (param_1 != (char *)0x0) {\n      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }\n    }\n    FUN_0012a8f6(uVar2);\n  }\n  return lVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "iVar1 = FUN_0014a81a();" (assignment_expression "iVar1 = FUN_0014a81a()" identifier = (call_expression "FUN_0014a81a()" identifier (argument_list "()" ( )))) ;) (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 == 0) {\n    uVar2 = FUN_0012a894(2);\n    FUN_0012a8c7(uVar2);\n    lVar3 = DAT_002323e0;\n    if (param_1 != (char *)0x0) {\n      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }\n    }\n    FUN_0012a8f6(uVar2);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = FUN_0012a894(2);\n    FUN_0012a8c7(uVar2);\n    lVar3 = DAT_002323e0;\n    if (param_1 != (char *)0x0) {\n      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }\n    }\n    FUN_0012a8f6(uVar2);\n  }" { (expression_statement "uVar2 = FUN_0012a894(2);" (assignment_expression "uVar2 = FUN_0012a894(2)" identifier = (call_expression "FUN_0012a894(2)" identifier (argument_list "(2)" ( number_literal )))) ;) (expression_statement "FUN_0012a8c7(uVar2);" (call_expression "FUN_0012a8c7(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "lVar3 = DAT_002323e0;" (assignment_expression "lVar3 = DAT_002323e0" identifier = identifier) ;) (if_statement "if (param_1 != (char *)0x0) {\n      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }\n    }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }\n    }" { (while_statement "while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }" while (parenthesized_expression "((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0)))" ( (parenthesized_expression "(lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))" ( (binary_expression "lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0)" (binary_expression "lVar3 != 0" identifier != number_literal) && (parenthesized_expression "(iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0)" ( (comma_expression "iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0" (assignment_expression "iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18))" identifier = (call_expression "strcmp(param_1,*(char **)(lVar3 + 0x18))" identifier (argument_list "(param_1,*(char **)(lVar3 + 0x18))" ( identifier , (pointer_expression "*(char **)(lVar3 + 0x18)" * (cast_expression "(char **)(lVar3 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar3 + 0x18)" ( (binary_expression "lVar3 + 0x18" identifier + number_literal) )))) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) )) (compound_statement "{\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }" { (expression_statement "lVar3 = *(long *)(lVar3 + 0x10);" (assignment_expression "lVar3 = *(long *)(lVar3 + 0x10)" identifier = (pointer_expression "*(long *)(lVar3 + 0x10)" * (cast_expression "(long *)(lVar3 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x10)" ( (binary_expression "lVar3 + 0x10" identifier + number_literal) ))))) ;) })) })) (expression_statement "FUN_0012a8f6(uVar2);" (call_expression "FUN_0012a8f6(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) })) (return_statement "return lVar3;" return identifier ;) })))
(translation_unit "sqlite3_vfs * sqlite3_vfs_find(char *zVfs)\n\n{\n  int iVar1;\n  sqlite3_mutex *p;\n  sqlite3_vfs *psVar2;\n  \n  iVar1 = sqlite3_initialize();\n  psVar2 = (sqlite3_vfs *)0x0;\n  if (iVar1 == 0) {\n    p = sqlite3MutexAlloc(2);\n    sqlite3_mutex_enter(p);\n    psVar2 = vfsList;\n    if (zVfs != (char *)0x0) {\n      while ((psVar2 != (sqlite3_vfs *)0x0 && (iVar1 = strcmp(zVfs,psVar2->zName), iVar1 != 0))) {\n        psVar2 = psVar2->pNext;\n      }\n    }\n    sqlite3_mutex_leave(p);\n  }\n  return psVar2;\n}\n\n" (function_definition "sqlite3_vfs * sqlite3_vfs_find(char *zVfs)\n\n{\n  int iVar1;\n  sqlite3_mutex *p;\n  sqlite3_vfs *psVar2;\n  \n  iVar1 = sqlite3_initialize();\n  psVar2 = (sqlite3_vfs *)0x0;\n  if (iVar1 == 0) {\n    p = sqlite3MutexAlloc(2);\n    sqlite3_mutex_enter(p);\n    psVar2 = vfsList;\n    if (zVfs != (char *)0x0) {\n      while ((psVar2 != (sqlite3_vfs *)0x0 && (iVar1 = strcmp(zVfs,psVar2->zName), iVar1 != 0))) {\n        psVar2 = psVar2->pNext;\n      }\n    }\n    sqlite3_mutex_leave(p);\n  }\n  return psVar2;\n}" type_identifier (pointer_declarator "* sqlite3_vfs_find(char *zVfs)" * (function_declarator "sqlite3_vfs_find(char *zVfs)" identifier (parameter_list "(char *zVfs)" ( (parameter_declaration "char *zVfs" primitive_type (pointer_declarator "*zVfs" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  sqlite3_mutex *p;\n  sqlite3_vfs *psVar2;\n  \n  iVar1 = sqlite3_initialize();\n  psVar2 = (sqlite3_vfs *)0x0;\n  if (iVar1 == 0) {\n    p = sqlite3MutexAlloc(2);\n    sqlite3_mutex_enter(p);\n    psVar2 = vfsList;\n    if (zVfs != (char *)0x0) {\n      while ((psVar2 != (sqlite3_vfs *)0x0 && (iVar1 = strcmp(zVfs,psVar2->zName), iVar1 != 0))) {\n        psVar2 = psVar2->pNext;\n      }\n    }\n    sqlite3_mutex_leave(p);\n  }\n  return psVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "sqlite3_mutex *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "sqlite3_vfs *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (expression_statement "iVar1 = sqlite3_initialize();" (assignment_expression "iVar1 = sqlite3_initialize()" identifier = (call_expression "sqlite3_initialize()" identifier (argument_list "()" ( )))) ;) (expression_statement "psVar2 = (sqlite3_vfs *)0x0;" (assignment_expression "psVar2 = (sqlite3_vfs *)0x0" identifier = (cast_expression "(sqlite3_vfs *)0x0" ( (type_descriptor "sqlite3_vfs *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar1 == 0) {\n    p = sqlite3MutexAlloc(2);\n    sqlite3_mutex_enter(p);\n    psVar2 = vfsList;\n    if (zVfs != (char *)0x0) {\n      while ((psVar2 != (sqlite3_vfs *)0x0 && (iVar1 = strcmp(zVfs,psVar2->zName), iVar1 != 0))) {\n        psVar2 = psVar2->pNext;\n      }\n    }\n    sqlite3_mutex_leave(p);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    p = sqlite3MutexAlloc(2);\n    sqlite3_mutex_enter(p);\n    psVar2 = vfsList;\n    if (zVfs != (char *)0x0) {\n      while ((psVar2 != (sqlite3_vfs *)0x0 && (iVar1 = strcmp(zVfs,psVar2->zName), iVar1 != 0))) {\n        psVar2 = psVar2->pNext;\n      }\n    }\n    sqlite3_mutex_leave(p);\n  }" { (expression_statement "p = sqlite3MutexAlloc(2);" (assignment_expression "p = sqlite3MutexAlloc(2)" identifier = (call_expression "sqlite3MutexAlloc(2)" identifier (argument_list "(2)" ( number_literal )))) ;) (expression_statement "sqlite3_mutex_enter(p);" (call_expression "sqlite3_mutex_enter(p)" identifier (argument_list "(p)" ( identifier ))) ;) (expression_statement "psVar2 = vfsList;" (assignment_expression "psVar2 = vfsList" identifier = identifier) ;) (if_statement "if (zVfs != (char *)0x0) {\n      while ((psVar2 != (sqlite3_vfs *)0x0 && (iVar1 = strcmp(zVfs,psVar2->zName), iVar1 != 0))) {\n        psVar2 = psVar2->pNext;\n      }\n    }" if (parenthesized_expression "(zVfs != (char *)0x0)" ( (binary_expression "zVfs != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      while ((psVar2 != (sqlite3_vfs *)0x0 && (iVar1 = strcmp(zVfs,psVar2->zName), iVar1 != 0))) {\n        psVar2 = psVar2->pNext;\n      }\n    }" { (while_statement "while ((psVar2 != (sqlite3_vfs *)0x0 && (iVar1 = strcmp(zVfs,psVar2->zName), iVar1 != 0))) {\n        psVar2 = psVar2->pNext;\n      }" while (parenthesized_expression "((psVar2 != (sqlite3_vfs *)0x0 && (iVar1 = strcmp(zVfs,psVar2->zName), iVar1 != 0)))" ( (parenthesized_expression "(psVar2 != (sqlite3_vfs *)0x0 && (iVar1 = strcmp(zVfs,psVar2->zName), iVar1 != 0))" ( (binary_expression "psVar2 != (sqlite3_vfs *)0x0 && (iVar1 = strcmp(zVfs,psVar2->zName), iVar1 != 0)" (binary_expression "psVar2 != (sqlite3_vfs *)0x0" identifier != (cast_expression "(sqlite3_vfs *)0x0" ( (type_descriptor "sqlite3_vfs *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) && (parenthesized_expression "(iVar1 = strcmp(zVfs,psVar2->zName), iVar1 != 0)" ( (comma_expression "iVar1 = strcmp(zVfs,psVar2->zName), iVar1 != 0" (assignment_expression "iVar1 = strcmp(zVfs,psVar2->zName)" identifier = (call_expression "strcmp(zVfs,psVar2->zName)" identifier (argument_list "(zVfs,psVar2->zName)" ( identifier , (field_expression "psVar2->zName" identifier -> field_identifier) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) )) (compound_statement "{\n        psVar2 = psVar2->pNext;\n      }" { (expression_statement "psVar2 = psVar2->pNext;" (assignment_expression "psVar2 = psVar2->pNext" identifier = (field_expression "psVar2->pNext" identifier -> field_identifier)) ;) })) })) (expression_statement "sqlite3_mutex_leave(p);" (call_expression "sqlite3_mutex_leave(p)" identifier (argument_list "(p)" ( identifier ))) ;) })) (return_statement "return psVar2;" return identifier ;) })))
(translation_unit "long FUN_0014ac79(char *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  long lVar3;\n  \n  iVar1 = FUN_0014a81a();\n  lVar3 = 0;\n  if (iVar1 == 0) {\n    uVar2 = FUN_0012a894(2);\n    FUN_0012a8c7(uVar2);\n    lVar3 = DAT_002323e0;\n    if (param_1 != (char *)0x0) {\n      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }\n    }\n    FUN_0012a8f6(uVar2);\n  }\n  return lVar3;\n}\n\n" (function_definition "long FUN_0014ac79(char *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  long lVar3;\n  \n  iVar1 = FUN_0014a81a();\n  lVar3 = 0;\n  if (iVar1 == 0) {\n    uVar2 = FUN_0012a894(2);\n    FUN_0012a8c7(uVar2);\n    lVar3 = DAT_002323e0;\n    if (param_1 != (char *)0x0) {\n      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }\n    }\n    FUN_0012a8f6(uVar2);\n  }\n  return lVar3;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0014ac79(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  long lVar3;\n  \n  iVar1 = FUN_0014a81a();\n  lVar3 = 0;\n  if (iVar1 == 0) {\n    uVar2 = FUN_0012a894(2);\n    FUN_0012a8c7(uVar2);\n    lVar3 = DAT_002323e0;\n    if (param_1 != (char *)0x0) {\n      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }\n    }\n    FUN_0012a8f6(uVar2);\n  }\n  return lVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "iVar1 = FUN_0014a81a();" (assignment_expression "iVar1 = FUN_0014a81a()" identifier = (call_expression "FUN_0014a81a()" identifier (argument_list "()" ( )))) ;) (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 == 0) {\n    uVar2 = FUN_0012a894(2);\n    FUN_0012a8c7(uVar2);\n    lVar3 = DAT_002323e0;\n    if (param_1 != (char *)0x0) {\n      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }\n    }\n    FUN_0012a8f6(uVar2);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = FUN_0012a894(2);\n    FUN_0012a8c7(uVar2);\n    lVar3 = DAT_002323e0;\n    if (param_1 != (char *)0x0) {\n      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }\n    }\n    FUN_0012a8f6(uVar2);\n  }" { (expression_statement "uVar2 = FUN_0012a894(2);" (assignment_expression "uVar2 = FUN_0012a894(2)" identifier = (call_expression "FUN_0012a894(2)" identifier (argument_list "(2)" ( number_literal )))) ;) (expression_statement "FUN_0012a8c7(uVar2);" (call_expression "FUN_0012a8c7(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "lVar3 = DAT_002323e0;" (assignment_expression "lVar3 = DAT_002323e0" identifier = identifier) ;) (if_statement "if (param_1 != (char *)0x0) {\n      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }\n    }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }\n    }" { (while_statement "while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }" while (parenthesized_expression "((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0)))" ( (parenthesized_expression "(lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))" ( (binary_expression "lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0)" (binary_expression "lVar3 != 0" identifier != number_literal) && (parenthesized_expression "(iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0)" ( (comma_expression "iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0" (assignment_expression "iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18))" identifier = (call_expression "strcmp(param_1,*(char **)(lVar3 + 0x18))" identifier (argument_list "(param_1,*(char **)(lVar3 + 0x18))" ( identifier , (pointer_expression "*(char **)(lVar3 + 0x18)" * (cast_expression "(char **)(lVar3 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar3 + 0x18)" ( (binary_expression "lVar3 + 0x18" identifier + number_literal) )))) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) )) (compound_statement "{\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }" { (expression_statement "lVar3 = *(long *)(lVar3 + 0x10);" (assignment_expression "lVar3 = *(long *)(lVar3 + 0x10)" identifier = (pointer_expression "*(long *)(lVar3 + 0x10)" * (cast_expression "(long *)(lVar3 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x10)" ( (binary_expression "lVar3 + 0x10" identifier + number_literal) ))))) ;) })) })) (expression_statement "FUN_0012a8f6(uVar2);" (call_expression "FUN_0012a8f6(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) })) (return_statement "return lVar3;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( 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 { (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) , (binary_expression IDENT != LIT)) ))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "long FUN_0014ac79(char *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  long lVar3;\n  \n  iVar1 = FUN_0014a81a();\n  lVar3 = 0;\n  if (iVar1 == 0) {\n    uVar2 = FUN_0012a894(2);\n    FUN_0012a8c7(uVar2);\n    lVar3 = DAT_002323e0;\n    if (param_1 != (char *)0x0) {\n      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }\n    }\n    FUN_0012a8f6(uVar2);\n  }\n  return lVar3;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_0014ac79(char *param_1)" (identifier "FUN_0014ac79") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  long lVar3;\n  \n  iVar1 = FUN_0014a81a();\n  lVar3 = 0;\n  if (iVar1 == 0) {\n    uVar2 = FUN_0012a894(2);\n    FUN_0012a8c7(uVar2);\n    lVar3 = DAT_002323e0;\n    if (param_1 != (char *)0x0) {\n      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }\n    }\n    FUN_0012a8f6(uVar2);\n  }\n  return lVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (expression_statement "iVar1 = FUN_0014a81a();" (assignment_expression "iVar1 = FUN_0014a81a()" (identifier "iVar1") (= "=") (call_expression "FUN_0014a81a()" (identifier "FUN_0014a81a") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" (identifier "lVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar1 == 0) {\n    uVar2 = FUN_0012a894(2);\n    FUN_0012a8c7(uVar2);\n    lVar3 = DAT_002323e0;\n    if (param_1 != (char *)0x0) {\n      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }\n    }\n    FUN_0012a8f6(uVar2);\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = FUN_0012a894(2);\n    FUN_0012a8c7(uVar2);\n    lVar3 = DAT_002323e0;\n    if (param_1 != (char *)0x0) {\n      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }\n    }\n    FUN_0012a8f6(uVar2);\n  }" ({ "{") (expression_statement "uVar2 = FUN_0012a894(2);" (assignment_expression "uVar2 = FUN_0012a894(2)" (identifier "uVar2") (= "=") (call_expression "FUN_0012a894(2)" (identifier "FUN_0012a894") (argument_list "(2)" (( "(") (number_literal "2") () ")")))) (; ";")) (expression_statement "FUN_0012a8c7(uVar2);" (call_expression "FUN_0012a8c7(uVar2)" (identifier "FUN_0012a8c7") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "lVar3 = DAT_002323e0;" (assignment_expression "lVar3 = DAT_002323e0" (identifier "lVar3") (= "=") (identifier "DAT_002323e0")) (; ";")) (if_statement "if (param_1 != (char *)0x0) {\n      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }\n    }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }\n    }" ({ "{") (while_statement "while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }" (while "while") (parenthesized_expression "((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0)))" (( "(") (parenthesized_expression "(lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))" (( "(") (binary_expression "lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0)" (binary_expression "lVar3 != 0" (identifier "lVar3") (!= "!=") (number_literal "0")) (&& "&&") (parenthesized_expression "(iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0)" (( "(") (comma_expression "iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0" (assignment_expression "iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18))" (identifier "iVar1") (= "=") (call_expression "strcmp(param_1,*(char **)(lVar3 + 0x18))" (identifier "strcmp") (argument_list "(param_1,*(char **)(lVar3 + 0x18))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(char **)(lVar3 + 0x18)" (* "*") (cast_expression "(char **)(lVar3 + 0x18)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar3 + 0x18)" (( "(") (binary_expression "lVar3 + 0x18" (identifier "lVar3") (+ "+") (number_literal "0x18")) () ")")))) () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) () ")")) (compound_statement "{\n        lVar3 = *(long *)(lVar3 + 0x10);\n      }" ({ "{") (expression_statement "lVar3 = *(long *)(lVar3 + 0x10);" (assignment_expression "lVar3 = *(long *)(lVar3 + 0x10)" (identifier "lVar3") (= "=") (pointer_expression "*(long *)(lVar3 + 0x10)" (* "*") (cast_expression "(long *)(lVar3 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x10)" (( "(") (binary_expression "lVar3 + 0x10" (identifier "lVar3") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_0012a8f6(uVar2);" (call_expression "FUN_0012a8f6(uVar2)" (identifier "FUN_0012a8f6") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (} "}"))) (return_statement "return lVar3;" (return "return") (identifier "lVar3") (; ";")) (} "}")))

type_1 * function_1(char *var_5)

{
  int var_2;
  type_2 *p;
  type_1 *var_6;
  
  var_2 = var_1();
  var_6 = (type_1 *)0x0;
  if (var_2 == 0) {
    p = var_3(2);
    var_4(p);
    var_6 = vfsList;
    if (var_5 != (char *)0x0) {
      while ((var_6 != (type_1 *)0x0 && (var_2 = var_7(var_5,var_6->zName), var_2 != 0))) {
        var_6 = var_6->pNext;
      }
    }
    var_8(p);
  }
  return var_6;
}


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

long MASKED(char *param_1)

{
  int iVar1;
  undefined8 uVar2;
  long lVar3;
  
  iVar1 = FUN_0014a81a();
  lVar3 = 0;
  if (iVar1 == 0) {
    uVar2 = FUN_0012a894(2);
    FUN_0012a8c7(uVar2);
    lVar3 = DAT_002323e0;
    if (param_1 != (char *)0x0) {
      while ((lVar3 != 0 && (iVar1 = strcmp(param_1,*(char **)(lVar3 + 0x18)), iVar1 != 0))) {
        lVar3 = *(long *)(lVar3 + 0x10);
      }
    }
    FUN_0012a8f6(uVar2);
  }
  return lVar3;
}

