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

int sqlite3_vfs_unregister(sqlite3_vfs *pVfs)

{
  sqlite3_vfs *psVar1;
  int iVar2;
  sqlite3_mutex *psVar3;
  sqlite3_vfs *psVar4;
  
  iVar2 = sqlite3_initialize();
  if (iVar2 != 0) {
    return iVar2;
  }
  if ((sqlite3Config.bCoreMutex == 0) ||
     (psVar3 = (*sqlite3Config.mutex.xMutexAlloc)(2), psVar3 == (sqlite3_mutex *)0x0)) {
    psVar3 = (sqlite3_mutex *)0x0;
    if (pVfs == (sqlite3_vfs *)0x0) {
      return 0;
    }
    if (pVfs == vfsList) goto LAB_000692f0;
LAB_000692aa:
    psVar1 = vfsList;
    if (vfsList != (sqlite3_vfs *)0x0) {
      do {
        psVar4 = psVar1;
        psVar1 = psVar4->pNext;
        if (psVar1 == (sqlite3_vfs *)0x0) goto LAB_000692bd;
      } while (pVfs != psVar1);
      psVar4->pNext = pVfs->pNext;
    }
  }
  else {
    (*sqlite3Config.mutex.xMutexEnter)(psVar3);
    if (pVfs == (sqlite3_vfs *)0x0) goto LAB_000692c1;
    if (pVfs != vfsList) goto LAB_000692aa;
LAB_000692f0:
    vfsList = pVfs->pNext;
  }
LAB_000692bd:
  if (psVar3 == (sqlite3_mutex *)0x0) {
    return 0;
  }
LAB_000692c1:
  (*sqlite3Config.mutex.xMutexLeave)(psVar3);
  return 0;
}



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

int FUN_00069250(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = FUN_00067fc0();
  if (iVar2 != 0) {
    return iVar2;
  }
  if ((DAT_001bb3e4 == 0) || (iVar2 = (*DAT_001bb434)(2), iVar2 == 0)) {
    iVar2 = 0;
    if (param_1 == 0) {
      return 0;
    }
    if (param_1 == DAT_001bcddc) goto LAB_000692f0;
LAB_000692aa:
    iVar1 = DAT_001bcddc;
    if (DAT_001bcddc != 0) {
      do {
        iVar3 = iVar1;
        iVar1 = *(int *)(iVar3 + 0xc);
        if (iVar1 == 0) goto LAB_000692bd;
      } while (param_1 != iVar1);
      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);
    }
  }
  else {
    (*DAT_001bb43c)(iVar2);
    if (param_1 == 0) goto LAB_000692c1;
    if (param_1 != DAT_001bcddc) goto LAB_000692aa;
LAB_000692f0:
    DAT_001bcddc = *(int *)(param_1 + 0xc);
  }
LAB_000692bd:
  if (iVar2 == 0) {
    return 0;
  }
LAB_000692c1:
  (*DAT_001bb444)(iVar2);
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000172e0
ADD EBX,0x151bcf
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
CALL 0x00067fc0
MOV EDI,EAX
TEST EAX,EAX
JNZ 0x000692ce
MOV EAX,dword ptr [EBX + 0x5bc]
TEST EAX,EAX
JZ 0x000692e0
SUB ESP,0xc
PUSH 0x2
CALL dword ptr [EBX + 0x60c]
MOV EBP,EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000692e0
SUB ESP,0xc
PUSH EAX
CALL dword ptr [EBX + 0x614]
ADD ESP,0x10
TEST ESI,ESI
JZ 0x000692c1
MOV ECX,dword ptr [EBX + 0x1fb4]
CMP ESI,ECX
JZ 0x000692f0
TEST ECX,ECX
JNZ 0x000692b6
JMP 0x000692bd
CMP ESI,EDX
JZ 0x00069300
MOV ECX,EDX
MOV EDX,dword ptr [ECX + 0xc]
TEST EDX,EDX
JNZ 0x000692b0
TEST EBP,EBP
JZ 0x000692ce
SUB ESP,0xc
PUSH EBP
CALL dword ptr [EBX + 0x61c]
ADD ESP,0x10
ADD ESP,0xc
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
XOR EBP,EBP
TEST ESI,ESI
JZ 0x000692ce
MOV ECX,dword ptr [EBX + 0x1fb4]
CMP ESI,ECX
JNZ 0x000692aa
MOV EAX,dword ptr [ESI + 0xc]
MOV dword ptr [EBX + 0x1fb4],EAX
JMP 0x000692bd
MOV EAX,dword ptr [ESI + 0xc]
MOV dword ptr [ECX + 0xc],EAX
JMP 0x000692bd
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00069250(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = FUN_00067fc0();\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  if ((DAT_001bb3e4 == 0) || (iVar2 = (*DAT_001bb434)(2), iVar2 == 0)) {\n    iVar2 = 0;\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == DAT_001bcddc) goto LAB_000692f0;\nLAB_000692aa:\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    }\n  }\n  else {\n    (*DAT_001bb43c)(iVar2);\n    if (param_1 == 0) goto LAB_000692c1;\n    if (param_1 != DAT_001bcddc) goto LAB_000692aa;\nLAB_000692f0:\n    DAT_001bcddc = *(int *)(param_1 + 0xc);\n  }\nLAB_000692bd:\n  if (iVar2 == 0) {\n    return 0;\n  }\nLAB_000692c1:\n  (*DAT_001bb444)(iVar2);\n  return 0;\n}\n\n" comment (function_definition "int FUN_00069250(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = FUN_00067fc0();\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  if ((DAT_001bb3e4 == 0) || (iVar2 = (*DAT_001bb434)(2), iVar2 == 0)) {\n    iVar2 = 0;\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == DAT_001bcddc) goto LAB_000692f0;\nLAB_000692aa:\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    }\n  }\n  else {\n    (*DAT_001bb43c)(iVar2);\n    if (param_1 == 0) goto LAB_000692c1;\n    if (param_1 != DAT_001bcddc) goto LAB_000692aa;\nLAB_000692f0:\n    DAT_001bcddc = *(int *)(param_1 + 0xc);\n  }\nLAB_000692bd:\n  if (iVar2 == 0) {\n    return 0;\n  }\nLAB_000692c1:\n  (*DAT_001bb444)(iVar2);\n  return 0;\n}" primitive_type (function_declarator "FUN_00069250(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = FUN_00067fc0();\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  if ((DAT_001bb3e4 == 0) || (iVar2 = (*DAT_001bb434)(2), iVar2 == 0)) {\n    iVar2 = 0;\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == DAT_001bcddc) goto LAB_000692f0;\nLAB_000692aa:\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    }\n  }\n  else {\n    (*DAT_001bb43c)(iVar2);\n    if (param_1 == 0) goto LAB_000692c1;\n    if (param_1 != DAT_001bcddc) goto LAB_000692aa;\nLAB_000692f0:\n    DAT_001bcddc = *(int *)(param_1 + 0xc);\n  }\nLAB_000692bd:\n  if (iVar2 == 0) {\n    return 0;\n  }\nLAB_000692c1:\n  (*DAT_001bb444)(iVar2);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar2 = FUN_00067fc0();" (assignment_expression "iVar2 = FUN_00067fc0()" identifier = (call_expression "FUN_00067fc0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) {\n    return iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) (if_statement "if ((DAT_001bb3e4 == 0) || (iVar2 = (*DAT_001bb434)(2), iVar2 == 0)) {\n    iVar2 = 0;\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == DAT_001bcddc) goto LAB_000692f0;\nLAB_000692aa:\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    }\n  }\n  else {\n    (*DAT_001bb43c)(iVar2);\n    if (param_1 == 0) goto LAB_000692c1;\n    if (param_1 != DAT_001bcddc) goto LAB_000692aa;\nLAB_000692f0:\n    DAT_001bcddc = *(int *)(param_1 + 0xc);\n  }" if (parenthesized_expression "((DAT_001bb3e4 == 0) || (iVar2 = (*DAT_001bb434)(2), iVar2 == 0))" ( (binary_expression "(DAT_001bb3e4 == 0) || (iVar2 = (*DAT_001bb434)(2), iVar2 == 0)" (parenthesized_expression "(DAT_001bb3e4 == 0)" ( (binary_expression "DAT_001bb3e4 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar2 = (*DAT_001bb434)(2), iVar2 == 0)" ( (comma_expression "iVar2 = (*DAT_001bb434)(2), iVar2 == 0" (assignment_expression "iVar2 = (*DAT_001bb434)(2)" identifier = (call_expression "(*DAT_001bb434)(2)" (parenthesized_expression "(*DAT_001bb434)" ( (pointer_expression "*DAT_001bb434" * identifier) )) (argument_list "(2)" ( number_literal )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    iVar2 = 0;\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == DAT_001bcddc) goto LAB_000692f0;\nLAB_000692aa:\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    }\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (param_1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_1 == DAT_001bcddc) goto LAB_000692f0;" if (parenthesized_expression "(param_1 == DAT_001bcddc)" ( (binary_expression "param_1 == DAT_001bcddc" identifier == identifier) )) (goto_statement "goto LAB_000692f0;" goto statement_identifier ;)) (labeled_statement "LAB_000692aa:\n    iVar1 = DAT_001bcddc;" statement_identifier : (expression_statement "iVar1 = DAT_001bcddc;" (assignment_expression "iVar1 = DAT_001bcddc" identifier = identifier) ;)) (if_statement "if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    }" if (parenthesized_expression "(DAT_001bcddc != 0)" ( (binary_expression "DAT_001bcddc != 0" identifier != number_literal) )) (compound_statement "{\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    }" { (do_statement "do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);" do (compound_statement "{\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      }" { (expression_statement "iVar3 = iVar1;" (assignment_expression "iVar3 = iVar1" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)(iVar3 + 0xc);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0xc)" identifier = (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 0) goto LAB_000692bd;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000692bd;" goto statement_identifier ;)) }) while (parenthesized_expression "(param_1 != iVar1)" ( (binary_expression "param_1 != iVar1" identifier != identifier) )) ;) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc)" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" * (cast_expression "(undefined4 *)(iVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) })) }) (else_clause "else {\n    (*DAT_001bb43c)(iVar2);\n    if (param_1 == 0) goto LAB_000692c1;\n    if (param_1 != DAT_001bcddc) goto LAB_000692aa;\nLAB_000692f0:\n    DAT_001bcddc = *(int *)(param_1 + 0xc);\n  }" else (compound_statement "{\n    (*DAT_001bb43c)(iVar2);\n    if (param_1 == 0) goto LAB_000692c1;\n    if (param_1 != DAT_001bcddc) goto LAB_000692aa;\nLAB_000692f0:\n    DAT_001bcddc = *(int *)(param_1 + 0xc);\n  }" { (expression_statement "(*DAT_001bb43c)(iVar2);" (call_expression "(*DAT_001bb43c)(iVar2)" (parenthesized_expression "(*DAT_001bb43c)" ( (pointer_expression "*DAT_001bb43c" * identifier) )) (argument_list "(iVar2)" ( identifier ))) ;) (if_statement "if (param_1 == 0) goto LAB_000692c1;" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000692c1;" goto statement_identifier ;)) (if_statement "if (param_1 != DAT_001bcddc) goto LAB_000692aa;" if (parenthesized_expression "(param_1 != DAT_001bcddc)" ( (binary_expression "param_1 != DAT_001bcddc" identifier != identifier) )) (goto_statement "goto LAB_000692aa;" goto statement_identifier ;)) (labeled_statement "LAB_000692f0:\n    DAT_001bcddc = *(int *)(param_1 + 0xc);" statement_identifier : (expression_statement "DAT_001bcddc = *(int *)(param_1 + 0xc);" (assignment_expression "DAT_001bcddc = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;)) }))) (labeled_statement "LAB_000692bd:\n  if (iVar2 == 0) {\n    return 0;\n  }" statement_identifier : (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) }))) (labeled_statement "LAB_000692c1:\n  (*DAT_001bb444)(iVar2);" statement_identifier : (expression_statement "(*DAT_001bb444)(iVar2);" (call_expression "(*DAT_001bb444)(iVar2)" (parenthesized_expression "(*DAT_001bb444)" ( (pointer_expression "*DAT_001bb444" * identifier) )) (argument_list "(iVar2)" ( identifier ))) ;)) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint sqlite3_vfs_unregister(sqlite3_vfs *pVfs)\n\n{\n  sqlite3_vfs *psVar1;\n  int iVar2;\n  sqlite3_mutex *psVar3;\n  sqlite3_vfs *psVar4;\n  \n  iVar2 = sqlite3_initialize();\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  if ((sqlite3Config.bCoreMutex == 0) ||\n     (psVar3 = (*sqlite3Config.mutex.xMutexAlloc)(2), psVar3 == (sqlite3_mutex *)0x0)) {\n    psVar3 = (sqlite3_mutex *)0x0;\n    if (pVfs == (sqlite3_vfs *)0x0) {\n      return 0;\n    }\n    if (pVfs == vfsList) goto LAB_000692f0;\nLAB_000692aa:\n    psVar1 = vfsList;\n    if (vfsList != (sqlite3_vfs *)0x0) {\n      do {\n        psVar4 = psVar1;\n        psVar1 = psVar4->pNext;\n        if (psVar1 == (sqlite3_vfs *)0x0) goto LAB_000692bd;\n      } while (pVfs != psVar1);\n      psVar4->pNext = pVfs->pNext;\n    }\n  }\n  else {\n    (*sqlite3Config.mutex.xMutexEnter)(psVar3);\n    if (pVfs == (sqlite3_vfs *)0x0) goto LAB_000692c1;\n    if (pVfs != vfsList) goto LAB_000692aa;\nLAB_000692f0:\n    vfsList = pVfs->pNext;\n  }\nLAB_000692bd:\n  if (psVar3 == (sqlite3_mutex *)0x0) {\n    return 0;\n  }\nLAB_000692c1:\n  (*sqlite3Config.mutex.xMutexLeave)(psVar3);\n  return 0;\n}\n\n" comment comment (function_definition "int sqlite3_vfs_unregister(sqlite3_vfs *pVfs)\n\n{\n  sqlite3_vfs *psVar1;\n  int iVar2;\n  sqlite3_mutex *psVar3;\n  sqlite3_vfs *psVar4;\n  \n  iVar2 = sqlite3_initialize();\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  if ((sqlite3Config.bCoreMutex == 0) ||\n     (psVar3 = (*sqlite3Config.mutex.xMutexAlloc)(2), psVar3 == (sqlite3_mutex *)0x0)) {\n    psVar3 = (sqlite3_mutex *)0x0;\n    if (pVfs == (sqlite3_vfs *)0x0) {\n      return 0;\n    }\n    if (pVfs == vfsList) goto LAB_000692f0;\nLAB_000692aa:\n    psVar1 = vfsList;\n    if (vfsList != (sqlite3_vfs *)0x0) {\n      do {\n        psVar4 = psVar1;\n        psVar1 = psVar4->pNext;\n        if (psVar1 == (sqlite3_vfs *)0x0) goto LAB_000692bd;\n      } while (pVfs != psVar1);\n      psVar4->pNext = pVfs->pNext;\n    }\n  }\n  else {\n    (*sqlite3Config.mutex.xMutexEnter)(psVar3);\n    if (pVfs == (sqlite3_vfs *)0x0) goto LAB_000692c1;\n    if (pVfs != vfsList) goto LAB_000692aa;\nLAB_000692f0:\n    vfsList = pVfs->pNext;\n  }\nLAB_000692bd:\n  if (psVar3 == (sqlite3_mutex *)0x0) {\n    return 0;\n  }\nLAB_000692c1:\n  (*sqlite3Config.mutex.xMutexLeave)(psVar3);\n  return 0;\n}" primitive_type (function_declarator "sqlite3_vfs_unregister(sqlite3_vfs *pVfs)" identifier (parameter_list "(sqlite3_vfs *pVfs)" ( (parameter_declaration "sqlite3_vfs *pVfs" type_identifier (pointer_declarator "*pVfs" * identifier)) ))) (compound_statement "{\n  sqlite3_vfs *psVar1;\n  int iVar2;\n  sqlite3_mutex *psVar3;\n  sqlite3_vfs *psVar4;\n  \n  iVar2 = sqlite3_initialize();\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  if ((sqlite3Config.bCoreMutex == 0) ||\n     (psVar3 = (*sqlite3Config.mutex.xMutexAlloc)(2), psVar3 == (sqlite3_mutex *)0x0)) {\n    psVar3 = (sqlite3_mutex *)0x0;\n    if (pVfs == (sqlite3_vfs *)0x0) {\n      return 0;\n    }\n    if (pVfs == vfsList) goto LAB_000692f0;\nLAB_000692aa:\n    psVar1 = vfsList;\n    if (vfsList != (sqlite3_vfs *)0x0) {\n      do {\n        psVar4 = psVar1;\n        psVar1 = psVar4->pNext;\n        if (psVar1 == (sqlite3_vfs *)0x0) goto LAB_000692bd;\n      } while (pVfs != psVar1);\n      psVar4->pNext = pVfs->pNext;\n    }\n  }\n  else {\n    (*sqlite3Config.mutex.xMutexEnter)(psVar3);\n    if (pVfs == (sqlite3_vfs *)0x0) goto LAB_000692c1;\n    if (pVfs != vfsList) goto LAB_000692aa;\nLAB_000692f0:\n    vfsList = pVfs->pNext;\n  }\nLAB_000692bd:\n  if (psVar3 == (sqlite3_mutex *)0x0) {\n    return 0;\n  }\nLAB_000692c1:\n  (*sqlite3Config.mutex.xMutexLeave)(psVar3);\n  return 0;\n}" { (declaration "sqlite3_vfs *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "sqlite3_mutex *psVar3;" type_identifier (pointer_declarator "*psVar3" * identifier) ;) (declaration "sqlite3_vfs *psVar4;" type_identifier (pointer_declarator "*psVar4" * identifier) ;) (expression_statement "iVar2 = sqlite3_initialize();" (assignment_expression "iVar2 = sqlite3_initialize()" identifier = (call_expression "sqlite3_initialize()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) {\n    return iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) (if_statement "if ((sqlite3Config.bCoreMutex == 0) ||\n     (psVar3 = (*sqlite3Config.mutex.xMutexAlloc)(2), psVar3 == (sqlite3_mutex *)0x0)) {\n    psVar3 = (sqlite3_mutex *)0x0;\n    if (pVfs == (sqlite3_vfs *)0x0) {\n      return 0;\n    }\n    if (pVfs == vfsList) goto LAB_000692f0;\nLAB_000692aa:\n    psVar1 = vfsList;\n    if (vfsList != (sqlite3_vfs *)0x0) {\n      do {\n        psVar4 = psVar1;\n        psVar1 = psVar4->pNext;\n        if (psVar1 == (sqlite3_vfs *)0x0) goto LAB_000692bd;\n      } while (pVfs != psVar1);\n      psVar4->pNext = pVfs->pNext;\n    }\n  }\n  else {\n    (*sqlite3Config.mutex.xMutexEnter)(psVar3);\n    if (pVfs == (sqlite3_vfs *)0x0) goto LAB_000692c1;\n    if (pVfs != vfsList) goto LAB_000692aa;\nLAB_000692f0:\n    vfsList = pVfs->pNext;\n  }" if (parenthesized_expression "((sqlite3Config.bCoreMutex == 0) ||\n     (psVar3 = (*sqlite3Config.mutex.xMutexAlloc)(2), psVar3 == (sqlite3_mutex *)0x0))" ( (binary_expression "(sqlite3Config.bCoreMutex == 0) ||\n     (psVar3 = (*sqlite3Config.mutex.xMutexAlloc)(2), psVar3 == (sqlite3_mutex *)0x0)" (parenthesized_expression "(sqlite3Config.bCoreMutex == 0)" ( (binary_expression "sqlite3Config.bCoreMutex == 0" (field_expression "sqlite3Config.bCoreMutex" identifier . field_identifier) == number_literal) )) || (parenthesized_expression "(psVar3 = (*sqlite3Config.mutex.xMutexAlloc)(2), psVar3 == (sqlite3_mutex *)0x0)" ( (comma_expression "psVar3 = (*sqlite3Config.mutex.xMutexAlloc)(2), psVar3 == (sqlite3_mutex *)0x0" (assignment_expression "psVar3 = (*sqlite3Config.mutex.xMutexAlloc)(2)" identifier = (call_expression "(*sqlite3Config.mutex.xMutexAlloc)(2)" (parenthesized_expression "(*sqlite3Config.mutex.xMutexAlloc)" ( (pointer_expression "*sqlite3Config.mutex.xMutexAlloc" * (field_expression "sqlite3Config.mutex.xMutexAlloc" (field_expression "sqlite3Config.mutex" identifier . field_identifier) . field_identifier)) )) (argument_list "(2)" ( number_literal )))) , (binary_expression "psVar3 == (sqlite3_mutex *)0x0" identifier == (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    psVar3 = (sqlite3_mutex *)0x0;\n    if (pVfs == (sqlite3_vfs *)0x0) {\n      return 0;\n    }\n    if (pVfs == vfsList) goto LAB_000692f0;\nLAB_000692aa:\n    psVar1 = vfsList;\n    if (vfsList != (sqlite3_vfs *)0x0) {\n      do {\n        psVar4 = psVar1;\n        psVar1 = psVar4->pNext;\n        if (psVar1 == (sqlite3_vfs *)0x0) goto LAB_000692bd;\n      } while (pVfs != psVar1);\n      psVar4->pNext = pVfs->pNext;\n    }\n  }" { (expression_statement "psVar3 = (sqlite3_mutex *)0x0;" (assignment_expression "psVar3 = (sqlite3_mutex *)0x0" identifier = (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (pVfs == (sqlite3_vfs *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(pVfs == (sqlite3_vfs *)0x0)" ( (binary_expression "pVfs == (sqlite3_vfs *)0x0" identifier == (cast_expression "(sqlite3_vfs *)0x0" ( (type_descriptor "sqlite3_vfs *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (pVfs == vfsList) goto LAB_000692f0;" if (parenthesized_expression "(pVfs == vfsList)" ( (binary_expression "pVfs == vfsList" identifier == identifier) )) (goto_statement "goto LAB_000692f0;" goto statement_identifier ;)) (labeled_statement "LAB_000692aa:\n    psVar1 = vfsList;" statement_identifier : (expression_statement "psVar1 = vfsList;" (assignment_expression "psVar1 = vfsList" identifier = identifier) ;)) (if_statement "if (vfsList != (sqlite3_vfs *)0x0) {\n      do {\n        psVar4 = psVar1;\n        psVar1 = psVar4->pNext;\n        if (psVar1 == (sqlite3_vfs *)0x0) goto LAB_000692bd;\n      } while (pVfs != psVar1);\n      psVar4->pNext = pVfs->pNext;\n    }" if (parenthesized_expression "(vfsList != (sqlite3_vfs *)0x0)" ( (binary_expression "vfsList != (sqlite3_vfs *)0x0" identifier != (cast_expression "(sqlite3_vfs *)0x0" ( (type_descriptor "sqlite3_vfs *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      do {\n        psVar4 = psVar1;\n        psVar1 = psVar4->pNext;\n        if (psVar1 == (sqlite3_vfs *)0x0) goto LAB_000692bd;\n      } while (pVfs != psVar1);\n      psVar4->pNext = pVfs->pNext;\n    }" { (do_statement "do {\n        psVar4 = psVar1;\n        psVar1 = psVar4->pNext;\n        if (psVar1 == (sqlite3_vfs *)0x0) goto LAB_000692bd;\n      } while (pVfs != psVar1);" do (compound_statement "{\n        psVar4 = psVar1;\n        psVar1 = psVar4->pNext;\n        if (psVar1 == (sqlite3_vfs *)0x0) goto LAB_000692bd;\n      }" { (expression_statement "psVar4 = psVar1;" (assignment_expression "psVar4 = psVar1" identifier = identifier) ;) (expression_statement "psVar1 = psVar4->pNext;" (assignment_expression "psVar1 = psVar4->pNext" identifier = (field_expression "psVar4->pNext" identifier -> field_identifier)) ;) (if_statement "if (psVar1 == (sqlite3_vfs *)0x0) goto LAB_000692bd;" if (parenthesized_expression "(psVar1 == (sqlite3_vfs *)0x0)" ( (binary_expression "psVar1 == (sqlite3_vfs *)0x0" identifier == (cast_expression "(sqlite3_vfs *)0x0" ( (type_descriptor "sqlite3_vfs *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000692bd;" goto statement_identifier ;)) }) while (parenthesized_expression "(pVfs != psVar1)" ( (binary_expression "pVfs != psVar1" identifier != identifier) )) ;) (expression_statement "psVar4->pNext = pVfs->pNext;" (assignment_expression "psVar4->pNext = pVfs->pNext" (field_expression "psVar4->pNext" identifier -> field_identifier) = (field_expression "pVfs->pNext" identifier -> field_identifier)) ;) })) }) (else_clause "else {\n    (*sqlite3Config.mutex.xMutexEnter)(psVar3);\n    if (pVfs == (sqlite3_vfs *)0x0) goto LAB_000692c1;\n    if (pVfs != vfsList) goto LAB_000692aa;\nLAB_000692f0:\n    vfsList = pVfs->pNext;\n  }" else (compound_statement "{\n    (*sqlite3Config.mutex.xMutexEnter)(psVar3);\n    if (pVfs == (sqlite3_vfs *)0x0) goto LAB_000692c1;\n    if (pVfs != vfsList) goto LAB_000692aa;\nLAB_000692f0:\n    vfsList = pVfs->pNext;\n  }" { (expression_statement "(*sqlite3Config.mutex.xMutexEnter)(psVar3);" (call_expression "(*sqlite3Config.mutex.xMutexEnter)(psVar3)" (parenthesized_expression "(*sqlite3Config.mutex.xMutexEnter)" ( (pointer_expression "*sqlite3Config.mutex.xMutexEnter" * (field_expression "sqlite3Config.mutex.xMutexEnter" (field_expression "sqlite3Config.mutex" identifier . field_identifier) . field_identifier)) )) (argument_list "(psVar3)" ( identifier ))) ;) (if_statement "if (pVfs == (sqlite3_vfs *)0x0) goto LAB_000692c1;" if (parenthesized_expression "(pVfs == (sqlite3_vfs *)0x0)" ( (binary_expression "pVfs == (sqlite3_vfs *)0x0" identifier == (cast_expression "(sqlite3_vfs *)0x0" ( (type_descriptor "sqlite3_vfs *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000692c1;" goto statement_identifier ;)) (if_statement "if (pVfs != vfsList) goto LAB_000692aa;" if (parenthesized_expression "(pVfs != vfsList)" ( (binary_expression "pVfs != vfsList" identifier != identifier) )) (goto_statement "goto LAB_000692aa;" goto statement_identifier ;)) (labeled_statement "LAB_000692f0:\n    vfsList = pVfs->pNext;" statement_identifier : (expression_statement "vfsList = pVfs->pNext;" (assignment_expression "vfsList = pVfs->pNext" identifier = (field_expression "pVfs->pNext" identifier -> field_identifier)) ;)) }))) (labeled_statement "LAB_000692bd:\n  if (psVar3 == (sqlite3_mutex *)0x0) {\n    return 0;\n  }" statement_identifier : (if_statement "if (psVar3 == (sqlite3_mutex *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(psVar3 == (sqlite3_mutex *)0x0)" ( (binary_expression "psVar3 == (sqlite3_mutex *)0x0" identifier == (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) }))) (labeled_statement "LAB_000692c1:\n  (*sqlite3Config.mutex.xMutexLeave)(psVar3);" statement_identifier : (expression_statement "(*sqlite3Config.mutex.xMutexLeave)(psVar3);" (call_expression "(*sqlite3Config.mutex.xMutexLeave)(psVar3)" (parenthesized_expression "(*sqlite3Config.mutex.xMutexLeave)" ( (pointer_expression "*sqlite3Config.mutex.xMutexLeave" * (field_expression "sqlite3Config.mutex.xMutexLeave" (field_expression "sqlite3Config.mutex" identifier . field_identifier) . field_identifier)) )) (argument_list "(psVar3)" ( identifier ))) ;)) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int FUN_00069250(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = FUN_00067fc0();\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  if ((DAT_001bb3e4 == 0) || (iVar2 = (*DAT_001bb434)(2), iVar2 == 0)) {\n    iVar2 = 0;\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == DAT_001bcddc) goto LAB_000692f0;\nLAB_000692aa:\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    }\n  }\n  else {\n    (*DAT_001bb43c)(iVar2);\n    if (param_1 == 0) goto LAB_000692c1;\n    if (param_1 != DAT_001bcddc) goto LAB_000692aa;\nLAB_000692f0:\n    DAT_001bcddc = *(int *)(param_1 + 0xc);\n  }\nLAB_000692bd:\n  if (iVar2 == 0) {\n    return 0;\n  }\nLAB_000692c1:\n  (*DAT_001bb444)(iVar2);\n  return 0;\n}\n\n" (function_definition "int FUN_00069250(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = FUN_00067fc0();\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  if ((DAT_001bb3e4 == 0) || (iVar2 = (*DAT_001bb434)(2), iVar2 == 0)) {\n    iVar2 = 0;\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == DAT_001bcddc) goto LAB_000692f0;\nLAB_000692aa:\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    }\n  }\n  else {\n    (*DAT_001bb43c)(iVar2);\n    if (param_1 == 0) goto LAB_000692c1;\n    if (param_1 != DAT_001bcddc) goto LAB_000692aa;\nLAB_000692f0:\n    DAT_001bcddc = *(int *)(param_1 + 0xc);\n  }\nLAB_000692bd:\n  if (iVar2 == 0) {\n    return 0;\n  }\nLAB_000692c1:\n  (*DAT_001bb444)(iVar2);\n  return 0;\n}" primitive_type (function_declarator "FUN_00069250(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = FUN_00067fc0();\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  if ((DAT_001bb3e4 == 0) || (iVar2 = (*DAT_001bb434)(2), iVar2 == 0)) {\n    iVar2 = 0;\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == DAT_001bcddc) goto LAB_000692f0;\nLAB_000692aa:\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    }\n  }\n  else {\n    (*DAT_001bb43c)(iVar2);\n    if (param_1 == 0) goto LAB_000692c1;\n    if (param_1 != DAT_001bcddc) goto LAB_000692aa;\nLAB_000692f0:\n    DAT_001bcddc = *(int *)(param_1 + 0xc);\n  }\nLAB_000692bd:\n  if (iVar2 == 0) {\n    return 0;\n  }\nLAB_000692c1:\n  (*DAT_001bb444)(iVar2);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar2 = FUN_00067fc0();" (assignment_expression "iVar2 = FUN_00067fc0()" identifier = (call_expression "FUN_00067fc0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) {\n    return iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) (if_statement "if ((DAT_001bb3e4 == 0) || (iVar2 = (*DAT_001bb434)(2), iVar2 == 0)) {\n    iVar2 = 0;\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == DAT_001bcddc) goto LAB_000692f0;\nLAB_000692aa:\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    }\n  }\n  else {\n    (*DAT_001bb43c)(iVar2);\n    if (param_1 == 0) goto LAB_000692c1;\n    if (param_1 != DAT_001bcddc) goto LAB_000692aa;\nLAB_000692f0:\n    DAT_001bcddc = *(int *)(param_1 + 0xc);\n  }" if (parenthesized_expression "((DAT_001bb3e4 == 0) || (iVar2 = (*DAT_001bb434)(2), iVar2 == 0))" ( (binary_expression "(DAT_001bb3e4 == 0) || (iVar2 = (*DAT_001bb434)(2), iVar2 == 0)" (parenthesized_expression "(DAT_001bb3e4 == 0)" ( (binary_expression "DAT_001bb3e4 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar2 = (*DAT_001bb434)(2), iVar2 == 0)" ( (comma_expression "iVar2 = (*DAT_001bb434)(2), iVar2 == 0" (assignment_expression "iVar2 = (*DAT_001bb434)(2)" identifier = (call_expression "(*DAT_001bb434)(2)" (parenthesized_expression "(*DAT_001bb434)" ( (pointer_expression "*DAT_001bb434" * identifier) )) (argument_list "(2)" ( number_literal )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    iVar2 = 0;\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == DAT_001bcddc) goto LAB_000692f0;\nLAB_000692aa:\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    }\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (param_1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_1 == DAT_001bcddc) goto LAB_000692f0;" if (parenthesized_expression "(param_1 == DAT_001bcddc)" ( (binary_expression "param_1 == DAT_001bcddc" identifier == identifier) )) (goto_statement "goto LAB_000692f0;" goto statement_identifier ;)) (labeled_statement "LAB_000692aa:\n    iVar1 = DAT_001bcddc;" statement_identifier : (expression_statement "iVar1 = DAT_001bcddc;" (assignment_expression "iVar1 = DAT_001bcddc" identifier = identifier) ;)) (if_statement "if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    }" if (parenthesized_expression "(DAT_001bcddc != 0)" ( (binary_expression "DAT_001bcddc != 0" identifier != number_literal) )) (compound_statement "{\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    }" { (do_statement "do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);" do (compound_statement "{\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      }" { (expression_statement "iVar3 = iVar1;" (assignment_expression "iVar3 = iVar1" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)(iVar3 + 0xc);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0xc)" identifier = (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 0) goto LAB_000692bd;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000692bd;" goto statement_identifier ;)) }) while (parenthesized_expression "(param_1 != iVar1)" ( (binary_expression "param_1 != iVar1" identifier != identifier) )) ;) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc)" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" * (cast_expression "(undefined4 *)(iVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) })) }) (else_clause "else {\n    (*DAT_001bb43c)(iVar2);\n    if (param_1 == 0) goto LAB_000692c1;\n    if (param_1 != DAT_001bcddc) goto LAB_000692aa;\nLAB_000692f0:\n    DAT_001bcddc = *(int *)(param_1 + 0xc);\n  }" else (compound_statement "{\n    (*DAT_001bb43c)(iVar2);\n    if (param_1 == 0) goto LAB_000692c1;\n    if (param_1 != DAT_001bcddc) goto LAB_000692aa;\nLAB_000692f0:\n    DAT_001bcddc = *(int *)(param_1 + 0xc);\n  }" { (expression_statement "(*DAT_001bb43c)(iVar2);" (call_expression "(*DAT_001bb43c)(iVar2)" (parenthesized_expression "(*DAT_001bb43c)" ( (pointer_expression "*DAT_001bb43c" * identifier) )) (argument_list "(iVar2)" ( identifier ))) ;) (if_statement "if (param_1 == 0) goto LAB_000692c1;" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000692c1;" goto statement_identifier ;)) (if_statement "if (param_1 != DAT_001bcddc) goto LAB_000692aa;" if (parenthesized_expression "(param_1 != DAT_001bcddc)" ( (binary_expression "param_1 != DAT_001bcddc" identifier != identifier) )) (goto_statement "goto LAB_000692aa;" goto statement_identifier ;)) (labeled_statement "LAB_000692f0:\n    DAT_001bcddc = *(int *)(param_1 + 0xc);" statement_identifier : (expression_statement "DAT_001bcddc = *(int *)(param_1 + 0xc);" (assignment_expression "DAT_001bcddc = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;)) }))) (labeled_statement "LAB_000692bd:\n  if (iVar2 == 0) {\n    return 0;\n  }" statement_identifier : (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) }))) (labeled_statement "LAB_000692c1:\n  (*DAT_001bb444)(iVar2);" statement_identifier : (expression_statement "(*DAT_001bb444)(iVar2);" (call_expression "(*DAT_001bb444)(iVar2)" (parenthesized_expression "(*DAT_001bb444)" ( (pointer_expression "*DAT_001bb444" * identifier) )) (argument_list "(iVar2)" ( identifier ))) ;)) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( LIT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) }))) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;)) (return_statement return LIT ;) })))
(function_definition "int FUN_00069250(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = FUN_00067fc0();\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  if ((DAT_001bb3e4 == 0) || (iVar2 = (*DAT_001bb434)(2), iVar2 == 0)) {\n    iVar2 = 0;\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == DAT_001bcddc) goto LAB_000692f0;\nLAB_000692aa:\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    }\n  }\n  else {\n    (*DAT_001bb43c)(iVar2);\n    if (param_1 == 0) goto LAB_000692c1;\n    if (param_1 != DAT_001bcddc) goto LAB_000692aa;\nLAB_000692f0:\n    DAT_001bcddc = *(int *)(param_1 + 0xc);\n  }\nLAB_000692bd:\n  if (iVar2 == 0) {\n    return 0;\n  }\nLAB_000692c1:\n  (*DAT_001bb444)(iVar2);\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_00069250(int param_1)" (identifier "FUN_00069250") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = FUN_00067fc0();\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  if ((DAT_001bb3e4 == 0) || (iVar2 = (*DAT_001bb434)(2), iVar2 == 0)) {\n    iVar2 = 0;\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == DAT_001bcddc) goto LAB_000692f0;\nLAB_000692aa:\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    }\n  }\n  else {\n    (*DAT_001bb43c)(iVar2);\n    if (param_1 == 0) goto LAB_000692c1;\n    if (param_1 != DAT_001bcddc) goto LAB_000692aa;\nLAB_000692f0:\n    DAT_001bcddc = *(int *)(param_1 + 0xc);\n  }\nLAB_000692bd:\n  if (iVar2 == 0) {\n    return 0;\n  }\nLAB_000692c1:\n  (*DAT_001bb444)(iVar2);\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar2 = FUN_00067fc0();" (assignment_expression "iVar2 = FUN_00067fc0()" (identifier "iVar2") (= "=") (call_expression "FUN_00067fc0()" (identifier "FUN_00067fc0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return iVar2;\n  }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (if_statement "if ((DAT_001bb3e4 == 0) || (iVar2 = (*DAT_001bb434)(2), iVar2 == 0)) {\n    iVar2 = 0;\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == DAT_001bcddc) goto LAB_000692f0;\nLAB_000692aa:\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    }\n  }\n  else {\n    (*DAT_001bb43c)(iVar2);\n    if (param_1 == 0) goto LAB_000692c1;\n    if (param_1 != DAT_001bcddc) goto LAB_000692aa;\nLAB_000692f0:\n    DAT_001bcddc = *(int *)(param_1 + 0xc);\n  }" (if "if") (parenthesized_expression "((DAT_001bb3e4 == 0) || (iVar2 = (*DAT_001bb434)(2), iVar2 == 0))" (( "(") (binary_expression "(DAT_001bb3e4 == 0) || (iVar2 = (*DAT_001bb434)(2), iVar2 == 0)" (parenthesized_expression "(DAT_001bb3e4 == 0)" (( "(") (binary_expression "DAT_001bb3e4 == 0" (identifier "DAT_001bb3e4") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar2 = (*DAT_001bb434)(2), iVar2 == 0)" (( "(") (comma_expression "iVar2 = (*DAT_001bb434)(2), iVar2 == 0" (assignment_expression "iVar2 = (*DAT_001bb434)(2)" (identifier "iVar2") (= "=") (call_expression "(*DAT_001bb434)(2)" (parenthesized_expression "(*DAT_001bb434)" (( "(") (pointer_expression "*DAT_001bb434" (* "*") (identifier "DAT_001bb434")) () ")")) (argument_list "(2)" (( "(") (number_literal "2") () ")")))) (, ",") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    iVar2 = 0;\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == DAT_001bcddc) goto LAB_000692f0;\nLAB_000692aa:\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    }\n  }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_1 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_1 == DAT_001bcddc) goto LAB_000692f0;" (if "if") (parenthesized_expression "(param_1 == DAT_001bcddc)" (( "(") (binary_expression "param_1 == DAT_001bcddc" (identifier "param_1") (== "==") (identifier "DAT_001bcddc")) () ")")) (goto_statement "goto LAB_000692f0;" (goto "goto") (statement_identifier "LAB_000692f0") (; ";"))) (labeled_statement "LAB_000692aa:\n    iVar1 = DAT_001bcddc;" (statement_identifier "LAB_000692aa") (: ":") (expression_statement "iVar1 = DAT_001bcddc;" (assignment_expression "iVar1 = DAT_001bcddc" (identifier "iVar1") (= "=") (identifier "DAT_001bcddc")) (; ";"))) (if_statement "if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    }" (if "if") (parenthesized_expression "(DAT_001bcddc != 0)" (( "(") (binary_expression "DAT_001bcddc != 0" (identifier "DAT_001bcddc") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    }" ({ "{") (do_statement "do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      } while (param_1 != iVar1);" (do "do") (compound_statement "{\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) goto LAB_000692bd;\n      }" ({ "{") (expression_statement "iVar3 = iVar1;" (assignment_expression "iVar3 = iVar1" (identifier "iVar3") (= "=") (identifier "iVar1")) (; ";")) (expression_statement "iVar1 = *(int *)(iVar3 + 0xc);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0xc)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar3 + 0xc)" (* "*") (cast_expression "(int *)(iVar3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (iVar1 == 0) goto LAB_000692bd;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000692bd;" (goto "goto") (statement_identifier "LAB_000692bd") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(param_1 != iVar1)" (( "(") (binary_expression "param_1 != iVar1" (identifier "param_1") (!= "!=") (identifier "iVar1")) () ")")) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc)" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    (*DAT_001bb43c)(iVar2);\n    if (param_1 == 0) goto LAB_000692c1;\n    if (param_1 != DAT_001bcddc) goto LAB_000692aa;\nLAB_000692f0:\n    DAT_001bcddc = *(int *)(param_1 + 0xc);\n  }" (else "else") (compound_statement "{\n    (*DAT_001bb43c)(iVar2);\n    if (param_1 == 0) goto LAB_000692c1;\n    if (param_1 != DAT_001bcddc) goto LAB_000692aa;\nLAB_000692f0:\n    DAT_001bcddc = *(int *)(param_1 + 0xc);\n  }" ({ "{") (expression_statement "(*DAT_001bb43c)(iVar2);" (call_expression "(*DAT_001bb43c)(iVar2)" (parenthesized_expression "(*DAT_001bb43c)" (( "(") (pointer_expression "*DAT_001bb43c" (* "*") (identifier "DAT_001bb43c")) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (if_statement "if (param_1 == 0) goto LAB_000692c1;" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000692c1;" (goto "goto") (statement_identifier "LAB_000692c1") (; ";"))) (if_statement "if (param_1 != DAT_001bcddc) goto LAB_000692aa;" (if "if") (parenthesized_expression "(param_1 != DAT_001bcddc)" (( "(") (binary_expression "param_1 != DAT_001bcddc" (identifier "param_1") (!= "!=") (identifier "DAT_001bcddc")) () ")")) (goto_statement "goto LAB_000692aa;" (goto "goto") (statement_identifier "LAB_000692aa") (; ";"))) (labeled_statement "LAB_000692f0:\n    DAT_001bcddc = *(int *)(param_1 + 0xc);" (statement_identifier "LAB_000692f0") (: ":") (expression_statement "DAT_001bcddc = *(int *)(param_1 + 0xc);" (assignment_expression "DAT_001bcddc = *(int *)(param_1 + 0xc)" (identifier "DAT_001bcddc") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";"))) (} "}")))) (labeled_statement "LAB_000692bd:\n  if (iVar2 == 0) {\n    return 0;\n  }" (statement_identifier "LAB_000692bd") (: ":") (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))) (labeled_statement "LAB_000692c1:\n  (*DAT_001bb444)(iVar2);" (statement_identifier "LAB_000692c1") (: ":") (expression_statement "(*DAT_001bb444)(iVar2);" (call_expression "(*DAT_001bb444)(iVar2)" (parenthesized_expression "(*DAT_001bb444)" (( "(") (pointer_expression "*DAT_001bb444" (* "*") (identifier "DAT_001bb444")) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

int function_1(type_1 *var_4)

{
  type_1 *var_6;
  int var_2;
  type_2 *var_3;
  type_1 *psVar4;
  
  var_2 = var_1();
  if (var_2 != 0) {
    return var_2;
  }
  if ((sqlite3Config.bCoreMutex == 0) ||
     (var_3 = (*sqlite3Config.mutex.xMutexAlloc)(2), var_3 == (type_2 *)0x0)) {
    var_3 = (type_2 *)0x0;
    if (var_4 == (type_1 *)0x0) {
      return 0;
    }
    if (var_4 == var_5) goto LAB_000692f0;
LAB_000692aa:
    var_6 = var_5;
    if (var_5 != (type_1 *)0x0) {
      do {
        psVar4 = var_6;
        var_6 = psVar4->pNext;
        if (var_6 == (type_1 *)0x0) goto LAB_000692bd;
      } while (var_4 != var_6);
      psVar4->pNext = var_4->pNext;
    }
  }
  else {
    (*sqlite3Config.mutex.xMutexEnter)(var_3);
    if (var_4 == (type_1 *)0x0) goto LAB_000692c1;
    if (var_4 != var_5) goto LAB_000692aa;
LAB_000692f0:
    var_5 = var_4->pNext;
  }
LAB_000692bd:
  if (var_3 == (type_2 *)0x0) {
    return 0;
  }
LAB_000692c1:
  (*sqlite3Config.mutex.xMutexLeave)(var_3);
  return 0;
}


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

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

int MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = FUN_00067fc0();
  if (iVar2 != 0) {
    return iVar2;
  }
  if ((DAT_001bb3e4 == 0) || (iVar2 = (*DAT_001bb434)(2), iVar2 == 0)) {
    iVar2 = 0;
    if (param_1 == 0) {
      return 0;
    }
    if (param_1 == DAT_001bcddc) goto LAB_000692f0;
LAB_000692aa:
    iVar1 = DAT_001bcddc;
    if (DAT_001bcddc != 0) {
      do {
        iVar3 = iVar1;
        iVar1 = *(int *)(iVar3 + 0xc);
        if (iVar1 == 0) goto LAB_000692bd;
      } while (param_1 != iVar1);
      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);
    }
  }
  else {
    (*DAT_001bb43c)(iVar2);
    if (param_1 == 0) goto LAB_000692c1;
    if (param_1 != DAT_001bcddc) goto LAB_000692aa;
LAB_000692f0:
    DAT_001bcddc = *(int *)(param_1 + 0xc);
  }
LAB_000692bd:
  if (iVar2 == 0) {
    return 0;
  }
LAB_000692c1:
  (*DAT_001bb444)(iVar2);
  return 0;
}

