
int sqlite3_auto_extension(_func_void *xInit)

{
  int iVar1;
  _func_void **aNew;
  sqlite3_mutex *p;
  _func_void **pp_Var2;
  u32 uVar3;
  
  iVar1 = sqlite3_initialize();
  if (iVar1 == 0) {
    p = sqlite3MutexAlloc(2);
    sqlite3_mutex_enter(p);
    if (sqlite3Autoext.nExt == 0) {
      uVar3 = 0;
LAB_0018d579:
      pp_Var2 = (_func_void **)sqlite3_realloc64(sqlite3Autoext.aExt,(ulong)(uVar3 + 1) << 3);
      if (pp_Var2 == (_func_void **)0x0) {
        iVar1 = 7;
      }
      else {
        sqlite3Autoext.aExt = pp_Var2;
        pp_Var2[sqlite3Autoext.nExt] = xInit;
        sqlite3Autoext.nExt = sqlite3Autoext.nExt + 1;
      }
    }
    else if (xInit != *sqlite3Autoext.aExt) {
      uVar3 = 0;
      pp_Var2 = sqlite3Autoext.aExt;
      do {
        pp_Var2 = pp_Var2 + 1;
        uVar3 = uVar3 + 1;
        if (uVar3 == sqlite3Autoext.nExt) goto LAB_0018d579;
      } while (*pp_Var2 != xInit);
    }
    sqlite3_mutex_leave(p);
  }
  return iVar1;
}



int sqlite3_auto_extension(long param_1)

{
  int iVar1;
  undefined8 uVar2;
  long *plVar3;
  uint uVar4;
  
  iVar1 = sqlite3_initialize();
  if (iVar1 == 0) {
    uVar2 = FUN_0010cbe3(2);
    sqlite3_mutex_enter(uVar2);
    if (DAT_003b28e0 == 0) {
      uVar4 = 0;
LAB_0018d579:
      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);
      if (plVar3 == (long *)0x0) {
        iVar1 = 7;
      }
      else {
        DAT_003b28e8 = plVar3;
        plVar3[DAT_003b28e0] = param_1;
        DAT_003b28e0 = DAT_003b28e0 + 1;
      }
    }
    else if (param_1 != *DAT_003b28e8) {
      uVar4 = 0;
      plVar3 = DAT_003b28e8;
      do {
        plVar3 = plVar3 + 1;
        uVar4 = uVar4 + 1;
        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;
      } while (*plVar3 != param_1);
    }
    sqlite3_mutex_leave(uVar2);
  }
  return iVar1;
}


PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
CALL 0x0010bf30
MOV EBP,EAX
TEST EAX,EAX
JZ 0x0018d528
MOV EAX,EBP
POP RBX
POP RBP
POP R12
RET
MOV EDI,0x2
CALL 0x0010cbe3
MOV R12,RAX
MOV RDI,RAX
CALL 0x0010c480
MOV ECX,dword ptr [0x003b28e0]
TEST ECX,ECX
JZ 0x0018d577
MOV RAX,qword ptr [0x003b28e8]
CMP RBX,qword ptr [RAX]
JZ 0x0018d56d
ADD RAX,0x8
MOV EDX,0x0
ADD EDX,0x1
CMP EDX,ECX
JZ 0x0018d579
ADD RAX,0x8
CMP qword ptr [RAX + -0x8],RBX
JNZ 0x0018d55c
MOV RDI,R12
CALL 0x0010c3f0
JMP 0x0018d521
MOV EDX,ECX
LEA ESI,[RDX + 0x1]
SHL RSI,0x3
MOV RDI,qword ptr [0x003b28e8]
CALL 0x0010c850
TEST RAX,RAX
JZ 0x0018d5af
MOV qword ptr [0x003b28e8],RAX
MOV EDX,dword ptr [0x003b28e0]
MOV ECX,EDX
MOV qword ptr [RAX + RCX*0x8],RBX
ADD EDX,0x1
MOV dword ptr [0x003b28e0],EDX
JMP 0x0018d56d
MOV EBP,0x7
JMP 0x0018d56d
(translation_unit "int sqlite3_auto_extension(long param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  long *plVar3;\n  uint uVar4;\n  \n  iVar1 = sqlite3_initialize();\n  if (iVar1 == 0) {\n    uVar2 = FUN_0010cbe3(2);\n    sqlite3_mutex_enter(uVar2);\n    if (DAT_003b28e0 == 0) {\n      uVar4 = 0;\nLAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);\n      if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }\n    }\n    else if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }\n    sqlite3_mutex_leave(uVar2);\n  }\n  return iVar1;\n}\n\n" (function_definition "int sqlite3_auto_extension(long param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  long *plVar3;\n  uint uVar4;\n  \n  iVar1 = sqlite3_initialize();\n  if (iVar1 == 0) {\n    uVar2 = FUN_0010cbe3(2);\n    sqlite3_mutex_enter(uVar2);\n    if (DAT_003b28e0 == 0) {\n      uVar4 = 0;\nLAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);\n      if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }\n    }\n    else if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }\n    sqlite3_mutex_leave(uVar2);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "sqlite3_auto_extension(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  long *plVar3;\n  uint uVar4;\n  \n  iVar1 = sqlite3_initialize();\n  if (iVar1 == 0) {\n    uVar2 = FUN_0010cbe3(2);\n    sqlite3_mutex_enter(uVar2);\n    if (DAT_003b28e0 == 0) {\n      uVar4 = 0;\nLAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);\n      if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }\n    }\n    else if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }\n    sqlite3_mutex_leave(uVar2);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "iVar1 = sqlite3_initialize();" (assignment_expression "iVar1 = sqlite3_initialize()" identifier = (call_expression "sqlite3_initialize()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    uVar2 = FUN_0010cbe3(2);\n    sqlite3_mutex_enter(uVar2);\n    if (DAT_003b28e0 == 0) {\n      uVar4 = 0;\nLAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);\n      if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }\n    }\n    else if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }\n    sqlite3_mutex_leave(uVar2);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = FUN_0010cbe3(2);\n    sqlite3_mutex_enter(uVar2);\n    if (DAT_003b28e0 == 0) {\n      uVar4 = 0;\nLAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);\n      if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }\n    }\n    else if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }\n    sqlite3_mutex_leave(uVar2);\n  }" { (expression_statement "uVar2 = FUN_0010cbe3(2);" (assignment_expression "uVar2 = FUN_0010cbe3(2)" identifier = (call_expression "FUN_0010cbe3(2)" identifier (argument_list "(2)" ( number_literal )))) ;) (expression_statement "sqlite3_mutex_enter(uVar2);" (call_expression "sqlite3_mutex_enter(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (if_statement "if (DAT_003b28e0 == 0) {\n      uVar4 = 0;\nLAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);\n      if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }\n    }\n    else if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }" if (parenthesized_expression "(DAT_003b28e0 == 0)" ( (binary_expression "DAT_003b28e0 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = 0;\nLAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);\n      if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);" statement_identifier : (expression_statement "plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);" (assignment_expression "plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3)" identifier = (cast_expression "(long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3)" identifier (argument_list "(DAT_003b28e8,(ulong)(uVar4 + 1) << 3)" ( identifier , (binary_expression "(ulong)(uVar4 + 1) << 3" (call_expression "(ulong)(uVar4 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar4 + 1)" ( (binary_expression "uVar4 + 1" identifier + number_literal) ))) << number_literal) ))))) ;)) (if_statement "if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }" if (parenthesized_expression "(plVar3 == (long *)0x0)" ( (binary_expression "plVar3 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar1 = 7;\n      }" { (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" identifier = number_literal) ;) }) (else_clause "else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }" else (compound_statement "{\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }" { (expression_statement "DAT_003b28e8 = plVar3;" (assignment_expression "DAT_003b28e8 = plVar3" identifier = identifier) ;) (expression_statement "plVar3[DAT_003b28e0] = param_1;" (assignment_expression "plVar3[DAT_003b28e0] = param_1" (subscript_expression "plVar3[DAT_003b28e0]" identifier [ identifier ]) = identifier) ;) (expression_statement "DAT_003b28e0 = DAT_003b28e0 + 1;" (assignment_expression "DAT_003b28e0 = DAT_003b28e0 + 1" identifier = (binary_expression "DAT_003b28e0 + 1" identifier + number_literal)) ;) }))) }) (else_clause "else if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }" else (if_statement "if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }" if (parenthesized_expression "(param_1 != *DAT_003b28e8)" ( (binary_expression "param_1 != *DAT_003b28e8" identifier != (pointer_expression "*DAT_003b28e8" * identifier)) )) (compound_statement "{\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "plVar3 = DAT_003b28e8;" (assignment_expression "plVar3 = DAT_003b28e8" identifier = identifier) ;) (do_statement "do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);" do (compound_statement "{\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      }" { (expression_statement "plVar3 = plVar3 + 1;" (assignment_expression "plVar3 = plVar3 + 1" identifier = (binary_expression "plVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (if_statement "if (uVar4 == DAT_003b28e0) goto LAB_0018d579;" if (parenthesized_expression "(uVar4 == DAT_003b28e0)" ( (binary_expression "uVar4 == DAT_003b28e0" identifier == identifier) )) (goto_statement "goto LAB_0018d579;" goto statement_identifier ;)) }) while (parenthesized_expression "(*plVar3 != param_1)" ( (binary_expression "*plVar3 != param_1" (pointer_expression "*plVar3" * identifier) != identifier) )) ;) })))) (expression_statement "sqlite3_mutex_leave(uVar2);" (call_expression "sqlite3_mutex_leave(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int sqlite3_auto_extension(_func_void *xInit)\n\n{\n  int iVar1;\n  _func_void **aNew;\n  sqlite3_mutex *p;\n  _func_void **pp_Var2;\n  u32 uVar3;\n  \n  iVar1 = sqlite3_initialize();\n  if (iVar1 == 0) {\n    p = sqlite3MutexAlloc(2);\n    sqlite3_mutex_enter(p);\n    if (sqlite3Autoext.nExt == 0) {\n      uVar3 = 0;\nLAB_0018d579:\n      pp_Var2 = (_func_void **)sqlite3_realloc64(sqlite3Autoext.aExt,(ulong)(uVar3 + 1) << 3);\n      if (pp_Var2 == (_func_void **)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        sqlite3Autoext.aExt = pp_Var2;\n        pp_Var2[sqlite3Autoext.nExt] = xInit;\n        sqlite3Autoext.nExt = sqlite3Autoext.nExt + 1;\n      }\n    }\n    else if (xInit != *sqlite3Autoext.aExt) {\n      uVar3 = 0;\n      pp_Var2 = sqlite3Autoext.aExt;\n      do {\n        pp_Var2 = pp_Var2 + 1;\n        uVar3 = uVar3 + 1;\n        if (uVar3 == sqlite3Autoext.nExt) goto LAB_0018d579;\n      } while (*pp_Var2 != xInit);\n    }\n    sqlite3_mutex_leave(p);\n  }\n  return iVar1;\n}\n\n" (function_definition "int sqlite3_auto_extension(_func_void *xInit)\n\n{\n  int iVar1;\n  _func_void **aNew;\n  sqlite3_mutex *p;\n  _func_void **pp_Var2;\n  u32 uVar3;\n  \n  iVar1 = sqlite3_initialize();\n  if (iVar1 == 0) {\n    p = sqlite3MutexAlloc(2);\n    sqlite3_mutex_enter(p);\n    if (sqlite3Autoext.nExt == 0) {\n      uVar3 = 0;\nLAB_0018d579:\n      pp_Var2 = (_func_void **)sqlite3_realloc64(sqlite3Autoext.aExt,(ulong)(uVar3 + 1) << 3);\n      if (pp_Var2 == (_func_void **)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        sqlite3Autoext.aExt = pp_Var2;\n        pp_Var2[sqlite3Autoext.nExt] = xInit;\n        sqlite3Autoext.nExt = sqlite3Autoext.nExt + 1;\n      }\n    }\n    else if (xInit != *sqlite3Autoext.aExt) {\n      uVar3 = 0;\n      pp_Var2 = sqlite3Autoext.aExt;\n      do {\n        pp_Var2 = pp_Var2 + 1;\n        uVar3 = uVar3 + 1;\n        if (uVar3 == sqlite3Autoext.nExt) goto LAB_0018d579;\n      } while (*pp_Var2 != xInit);\n    }\n    sqlite3_mutex_leave(p);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "sqlite3_auto_extension(_func_void *xInit)" identifier (parameter_list "(_func_void *xInit)" ( (parameter_declaration "_func_void *xInit" type_identifier (pointer_declarator "*xInit" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  _func_void **aNew;\n  sqlite3_mutex *p;\n  _func_void **pp_Var2;\n  u32 uVar3;\n  \n  iVar1 = sqlite3_initialize();\n  if (iVar1 == 0) {\n    p = sqlite3MutexAlloc(2);\n    sqlite3_mutex_enter(p);\n    if (sqlite3Autoext.nExt == 0) {\n      uVar3 = 0;\nLAB_0018d579:\n      pp_Var2 = (_func_void **)sqlite3_realloc64(sqlite3Autoext.aExt,(ulong)(uVar3 + 1) << 3);\n      if (pp_Var2 == (_func_void **)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        sqlite3Autoext.aExt = pp_Var2;\n        pp_Var2[sqlite3Autoext.nExt] = xInit;\n        sqlite3Autoext.nExt = sqlite3Autoext.nExt + 1;\n      }\n    }\n    else if (xInit != *sqlite3Autoext.aExt) {\n      uVar3 = 0;\n      pp_Var2 = sqlite3Autoext.aExt;\n      do {\n        pp_Var2 = pp_Var2 + 1;\n        uVar3 = uVar3 + 1;\n        if (uVar3 == sqlite3Autoext.nExt) goto LAB_0018d579;\n      } while (*pp_Var2 != xInit);\n    }\n    sqlite3_mutex_leave(p);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "_func_void **aNew;" type_identifier (pointer_declarator "**aNew" * (pointer_declarator "*aNew" * identifier)) ;) (declaration "sqlite3_mutex *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "_func_void **pp_Var2;" type_identifier (pointer_declarator "**pp_Var2" * (pointer_declarator "*pp_Var2" * identifier)) ;) (declaration "u32 uVar3;" type_identifier identifier ;) (expression_statement "iVar1 = sqlite3_initialize();" (assignment_expression "iVar1 = sqlite3_initialize()" identifier = (call_expression "sqlite3_initialize()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    p = sqlite3MutexAlloc(2);\n    sqlite3_mutex_enter(p);\n    if (sqlite3Autoext.nExt == 0) {\n      uVar3 = 0;\nLAB_0018d579:\n      pp_Var2 = (_func_void **)sqlite3_realloc64(sqlite3Autoext.aExt,(ulong)(uVar3 + 1) << 3);\n      if (pp_Var2 == (_func_void **)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        sqlite3Autoext.aExt = pp_Var2;\n        pp_Var2[sqlite3Autoext.nExt] = xInit;\n        sqlite3Autoext.nExt = sqlite3Autoext.nExt + 1;\n      }\n    }\n    else if (xInit != *sqlite3Autoext.aExt) {\n      uVar3 = 0;\n      pp_Var2 = sqlite3Autoext.aExt;\n      do {\n        pp_Var2 = pp_Var2 + 1;\n        uVar3 = uVar3 + 1;\n        if (uVar3 == sqlite3Autoext.nExt) goto LAB_0018d579;\n      } while (*pp_Var2 != xInit);\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    if (sqlite3Autoext.nExt == 0) {\n      uVar3 = 0;\nLAB_0018d579:\n      pp_Var2 = (_func_void **)sqlite3_realloc64(sqlite3Autoext.aExt,(ulong)(uVar3 + 1) << 3);\n      if (pp_Var2 == (_func_void **)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        sqlite3Autoext.aExt = pp_Var2;\n        pp_Var2[sqlite3Autoext.nExt] = xInit;\n        sqlite3Autoext.nExt = sqlite3Autoext.nExt + 1;\n      }\n    }\n    else if (xInit != *sqlite3Autoext.aExt) {\n      uVar3 = 0;\n      pp_Var2 = sqlite3Autoext.aExt;\n      do {\n        pp_Var2 = pp_Var2 + 1;\n        uVar3 = uVar3 + 1;\n        if (uVar3 == sqlite3Autoext.nExt) goto LAB_0018d579;\n      } while (*pp_Var2 != xInit);\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 ))) ;) (if_statement "if (sqlite3Autoext.nExt == 0) {\n      uVar3 = 0;\nLAB_0018d579:\n      pp_Var2 = (_func_void **)sqlite3_realloc64(sqlite3Autoext.aExt,(ulong)(uVar3 + 1) << 3);\n      if (pp_Var2 == (_func_void **)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        sqlite3Autoext.aExt = pp_Var2;\n        pp_Var2[sqlite3Autoext.nExt] = xInit;\n        sqlite3Autoext.nExt = sqlite3Autoext.nExt + 1;\n      }\n    }\n    else if (xInit != *sqlite3Autoext.aExt) {\n      uVar3 = 0;\n      pp_Var2 = sqlite3Autoext.aExt;\n      do {\n        pp_Var2 = pp_Var2 + 1;\n        uVar3 = uVar3 + 1;\n        if (uVar3 == sqlite3Autoext.nExt) goto LAB_0018d579;\n      } while (*pp_Var2 != xInit);\n    }" if (parenthesized_expression "(sqlite3Autoext.nExt == 0)" ( (binary_expression "sqlite3Autoext.nExt == 0" (field_expression "sqlite3Autoext.nExt" identifier . field_identifier) == number_literal) )) (compound_statement "{\n      uVar3 = 0;\nLAB_0018d579:\n      pp_Var2 = (_func_void **)sqlite3_realloc64(sqlite3Autoext.aExt,(ulong)(uVar3 + 1) << 3);\n      if (pp_Var2 == (_func_void **)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        sqlite3Autoext.aExt = pp_Var2;\n        pp_Var2[sqlite3Autoext.nExt] = xInit;\n        sqlite3Autoext.nExt = sqlite3Autoext.nExt + 1;\n      }\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0018d579:\n      pp_Var2 = (_func_void **)sqlite3_realloc64(sqlite3Autoext.aExt,(ulong)(uVar3 + 1) << 3);" statement_identifier : (expression_statement "pp_Var2 = (_func_void **)sqlite3_realloc64(sqlite3Autoext.aExt,(ulong)(uVar3 + 1) << 3);" (assignment_expression "pp_Var2 = (_func_void **)sqlite3_realloc64(sqlite3Autoext.aExt,(ulong)(uVar3 + 1) << 3)" identifier = (cast_expression "(_func_void **)sqlite3_realloc64(sqlite3Autoext.aExt,(ulong)(uVar3 + 1) << 3)" ( (type_descriptor "_func_void **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "sqlite3_realloc64(sqlite3Autoext.aExt,(ulong)(uVar3 + 1) << 3)" identifier (argument_list "(sqlite3Autoext.aExt,(ulong)(uVar3 + 1) << 3)" ( (field_expression "sqlite3Autoext.aExt" identifier . field_identifier) , (binary_expression "(ulong)(uVar3 + 1) << 3" (call_expression "(ulong)(uVar3 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar3 + 1)" ( (binary_expression "uVar3 + 1" identifier + number_literal) ))) << number_literal) ))))) ;)) (if_statement "if (pp_Var2 == (_func_void **)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        sqlite3Autoext.aExt = pp_Var2;\n        pp_Var2[sqlite3Autoext.nExt] = xInit;\n        sqlite3Autoext.nExt = sqlite3Autoext.nExt + 1;\n      }" if (parenthesized_expression "(pp_Var2 == (_func_void **)0x0)" ( (binary_expression "pp_Var2 == (_func_void **)0x0" identifier == (cast_expression "(_func_void **)0x0" ( (type_descriptor "_func_void **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n        iVar1 = 7;\n      }" { (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" identifier = number_literal) ;) }) (else_clause "else {\n        sqlite3Autoext.aExt = pp_Var2;\n        pp_Var2[sqlite3Autoext.nExt] = xInit;\n        sqlite3Autoext.nExt = sqlite3Autoext.nExt + 1;\n      }" else (compound_statement "{\n        sqlite3Autoext.aExt = pp_Var2;\n        pp_Var2[sqlite3Autoext.nExt] = xInit;\n        sqlite3Autoext.nExt = sqlite3Autoext.nExt + 1;\n      }" { (expression_statement "sqlite3Autoext.aExt = pp_Var2;" (assignment_expression "sqlite3Autoext.aExt = pp_Var2" (field_expression "sqlite3Autoext.aExt" identifier . field_identifier) = identifier) ;) (expression_statement "pp_Var2[sqlite3Autoext.nExt] = xInit;" (assignment_expression "pp_Var2[sqlite3Autoext.nExt] = xInit" (subscript_expression "pp_Var2[sqlite3Autoext.nExt]" identifier [ (field_expression "sqlite3Autoext.nExt" identifier . field_identifier) ]) = identifier) ;) (expression_statement "sqlite3Autoext.nExt = sqlite3Autoext.nExt + 1;" (assignment_expression "sqlite3Autoext.nExt = sqlite3Autoext.nExt + 1" (field_expression "sqlite3Autoext.nExt" identifier . field_identifier) = (binary_expression "sqlite3Autoext.nExt + 1" (field_expression "sqlite3Autoext.nExt" identifier . field_identifier) + number_literal)) ;) }))) }) (else_clause "else if (xInit != *sqlite3Autoext.aExt) {\n      uVar3 = 0;\n      pp_Var2 = sqlite3Autoext.aExt;\n      do {\n        pp_Var2 = pp_Var2 + 1;\n        uVar3 = uVar3 + 1;\n        if (uVar3 == sqlite3Autoext.nExt) goto LAB_0018d579;\n      } while (*pp_Var2 != xInit);\n    }" else (if_statement "if (xInit != *sqlite3Autoext.aExt) {\n      uVar3 = 0;\n      pp_Var2 = sqlite3Autoext.aExt;\n      do {\n        pp_Var2 = pp_Var2 + 1;\n        uVar3 = uVar3 + 1;\n        if (uVar3 == sqlite3Autoext.nExt) goto LAB_0018d579;\n      } while (*pp_Var2 != xInit);\n    }" if (parenthesized_expression "(xInit != *sqlite3Autoext.aExt)" ( (binary_expression "xInit != *sqlite3Autoext.aExt" identifier != (pointer_expression "*sqlite3Autoext.aExt" * (field_expression "sqlite3Autoext.aExt" identifier . field_identifier))) )) (compound_statement "{\n      uVar3 = 0;\n      pp_Var2 = sqlite3Autoext.aExt;\n      do {\n        pp_Var2 = pp_Var2 + 1;\n        uVar3 = uVar3 + 1;\n        if (uVar3 == sqlite3Autoext.nExt) goto LAB_0018d579;\n      } while (*pp_Var2 != xInit);\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "pp_Var2 = sqlite3Autoext.aExt;" (assignment_expression "pp_Var2 = sqlite3Autoext.aExt" identifier = (field_expression "sqlite3Autoext.aExt" identifier . field_identifier)) ;) (do_statement "do {\n        pp_Var2 = pp_Var2 + 1;\n        uVar3 = uVar3 + 1;\n        if (uVar3 == sqlite3Autoext.nExt) goto LAB_0018d579;\n      } while (*pp_Var2 != xInit);" do (compound_statement "{\n        pp_Var2 = pp_Var2 + 1;\n        uVar3 = uVar3 + 1;\n        if (uVar3 == sqlite3Autoext.nExt) goto LAB_0018d579;\n      }" { (expression_statement "pp_Var2 = pp_Var2 + 1;" (assignment_expression "pp_Var2 = pp_Var2 + 1" identifier = (binary_expression "pp_Var2 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (if_statement "if (uVar3 == sqlite3Autoext.nExt) goto LAB_0018d579;" if (parenthesized_expression "(uVar3 == sqlite3Autoext.nExt)" ( (binary_expression "uVar3 == sqlite3Autoext.nExt" identifier == (field_expression "sqlite3Autoext.nExt" identifier . field_identifier)) )) (goto_statement "goto LAB_0018d579;" goto statement_identifier ;)) }) while (parenthesized_expression "(*pp_Var2 != xInit)" ( (binary_expression "*pp_Var2 != xInit" (pointer_expression "*pp_Var2" * identifier) != identifier) )) ;) })))) (expression_statement "sqlite3_mutex_leave(p);" (call_expression "sqlite3_mutex_leave(p)" identifier (argument_list "(p)" ( identifier ))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int sqlite3_auto_extension(long param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  long *plVar3;\n  uint uVar4;\n  \n  iVar1 = sqlite3_initialize();\n  if (iVar1 == 0) {\n    uVar2 = FUN_0010cbe3(2);\n    sqlite3_mutex_enter(uVar2);\n    if (DAT_003b28e0 == 0) {\n      uVar4 = 0;\nLAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);\n      if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }\n    }\n    else if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }\n    sqlite3_mutex_leave(uVar2);\n  }\n  return iVar1;\n}\n\n" (function_definition "int sqlite3_auto_extension(long param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  long *plVar3;\n  uint uVar4;\n  \n  iVar1 = sqlite3_initialize();\n  if (iVar1 == 0) {\n    uVar2 = FUN_0010cbe3(2);\n    sqlite3_mutex_enter(uVar2);\n    if (DAT_003b28e0 == 0) {\n      uVar4 = 0;\nLAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);\n      if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }\n    }\n    else if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }\n    sqlite3_mutex_leave(uVar2);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "sqlite3_auto_extension(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  long *plVar3;\n  uint uVar4;\n  \n  iVar1 = sqlite3_initialize();\n  if (iVar1 == 0) {\n    uVar2 = FUN_0010cbe3(2);\n    sqlite3_mutex_enter(uVar2);\n    if (DAT_003b28e0 == 0) {\n      uVar4 = 0;\nLAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);\n      if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }\n    }\n    else if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }\n    sqlite3_mutex_leave(uVar2);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "iVar1 = sqlite3_initialize();" (assignment_expression "iVar1 = sqlite3_initialize()" identifier = (call_expression "sqlite3_initialize()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    uVar2 = FUN_0010cbe3(2);\n    sqlite3_mutex_enter(uVar2);\n    if (DAT_003b28e0 == 0) {\n      uVar4 = 0;\nLAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);\n      if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }\n    }\n    else if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }\n    sqlite3_mutex_leave(uVar2);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = FUN_0010cbe3(2);\n    sqlite3_mutex_enter(uVar2);\n    if (DAT_003b28e0 == 0) {\n      uVar4 = 0;\nLAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);\n      if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }\n    }\n    else if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }\n    sqlite3_mutex_leave(uVar2);\n  }" { (expression_statement "uVar2 = FUN_0010cbe3(2);" (assignment_expression "uVar2 = FUN_0010cbe3(2)" identifier = (call_expression "FUN_0010cbe3(2)" identifier (argument_list "(2)" ( number_literal )))) ;) (expression_statement "sqlite3_mutex_enter(uVar2);" (call_expression "sqlite3_mutex_enter(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (if_statement "if (DAT_003b28e0 == 0) {\n      uVar4 = 0;\nLAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);\n      if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }\n    }\n    else if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }" if (parenthesized_expression "(DAT_003b28e0 == 0)" ( (binary_expression "DAT_003b28e0 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = 0;\nLAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);\n      if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);" statement_identifier : (expression_statement "plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);" (assignment_expression "plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3)" identifier = (cast_expression "(long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3)" identifier (argument_list "(DAT_003b28e8,(ulong)(uVar4 + 1) << 3)" ( identifier , (binary_expression "(ulong)(uVar4 + 1) << 3" (call_expression "(ulong)(uVar4 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar4 + 1)" ( (binary_expression "uVar4 + 1" identifier + number_literal) ))) << number_literal) ))))) ;)) (if_statement "if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }" if (parenthesized_expression "(plVar3 == (long *)0x0)" ( (binary_expression "plVar3 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar1 = 7;\n      }" { (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" identifier = number_literal) ;) }) (else_clause "else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }" else (compound_statement "{\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }" { (expression_statement "DAT_003b28e8 = plVar3;" (assignment_expression "DAT_003b28e8 = plVar3" identifier = identifier) ;) (expression_statement "plVar3[DAT_003b28e0] = param_1;" (assignment_expression "plVar3[DAT_003b28e0] = param_1" (subscript_expression "plVar3[DAT_003b28e0]" identifier [ identifier ]) = identifier) ;) (expression_statement "DAT_003b28e0 = DAT_003b28e0 + 1;" (assignment_expression "DAT_003b28e0 = DAT_003b28e0 + 1" identifier = (binary_expression "DAT_003b28e0 + 1" identifier + number_literal)) ;) }))) }) (else_clause "else if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }" else (if_statement "if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }" if (parenthesized_expression "(param_1 != *DAT_003b28e8)" ( (binary_expression "param_1 != *DAT_003b28e8" identifier != (pointer_expression "*DAT_003b28e8" * identifier)) )) (compound_statement "{\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "plVar3 = DAT_003b28e8;" (assignment_expression "plVar3 = DAT_003b28e8" identifier = identifier) ;) (do_statement "do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);" do (compound_statement "{\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      }" { (expression_statement "plVar3 = plVar3 + 1;" (assignment_expression "plVar3 = plVar3 + 1" identifier = (binary_expression "plVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (if_statement "if (uVar4 == DAT_003b28e0) goto LAB_0018d579;" if (parenthesized_expression "(uVar4 == DAT_003b28e0)" ( (binary_expression "uVar4 == DAT_003b28e0" identifier == identifier) )) (goto_statement "goto LAB_0018d579;" goto statement_identifier ;)) }) while (parenthesized_expression "(*plVar3 != param_1)" ( (binary_expression "*plVar3 != param_1" (pointer_expression "*plVar3" * identifier) != identifier) )) ;) })))) (expression_statement "sqlite3_mutex_leave(uVar2);" (call_expression "sqlite3_mutex_leave(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * 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 { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) << LIT) ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != IDENT) )) ;) })))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int sqlite3_auto_extension(long param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  long *plVar3;\n  uint uVar4;\n  \n  iVar1 = sqlite3_initialize();\n  if (iVar1 == 0) {\n    uVar2 = FUN_0010cbe3(2);\n    sqlite3_mutex_enter(uVar2);\n    if (DAT_003b28e0 == 0) {\n      uVar4 = 0;\nLAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);\n      if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }\n    }\n    else if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }\n    sqlite3_mutex_leave(uVar2);\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "sqlite3_auto_extension(long param_1)" (identifier "sqlite3_auto_extension") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  long *plVar3;\n  uint uVar4;\n  \n  iVar1 = sqlite3_initialize();\n  if (iVar1 == 0) {\n    uVar2 = FUN_0010cbe3(2);\n    sqlite3_mutex_enter(uVar2);\n    if (DAT_003b28e0 == 0) {\n      uVar4 = 0;\nLAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);\n      if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }\n    }\n    else if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }\n    sqlite3_mutex_leave(uVar2);\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "long *plVar3;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar3" (* "*") (identifier "plVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (expression_statement "iVar1 = sqlite3_initialize();" (assignment_expression "iVar1 = sqlite3_initialize()" (identifier "iVar1") (= "=") (call_expression "sqlite3_initialize()" (identifier "sqlite3_initialize") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    uVar2 = FUN_0010cbe3(2);\n    sqlite3_mutex_enter(uVar2);\n    if (DAT_003b28e0 == 0) {\n      uVar4 = 0;\nLAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);\n      if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }\n    }\n    else if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }\n    sqlite3_mutex_leave(uVar2);\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = FUN_0010cbe3(2);\n    sqlite3_mutex_enter(uVar2);\n    if (DAT_003b28e0 == 0) {\n      uVar4 = 0;\nLAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);\n      if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }\n    }\n    else if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }\n    sqlite3_mutex_leave(uVar2);\n  }" ({ "{") (expression_statement "uVar2 = FUN_0010cbe3(2);" (assignment_expression "uVar2 = FUN_0010cbe3(2)" (identifier "uVar2") (= "=") (call_expression "FUN_0010cbe3(2)" (identifier "FUN_0010cbe3") (argument_list "(2)" (( "(") (number_literal "2") () ")")))) (; ";")) (expression_statement "sqlite3_mutex_enter(uVar2);" (call_expression "sqlite3_mutex_enter(uVar2)" (identifier "sqlite3_mutex_enter") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (if_statement "if (DAT_003b28e0 == 0) {\n      uVar4 = 0;\nLAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);\n      if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }\n    }\n    else if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }" (if "if") (parenthesized_expression "(DAT_003b28e0 == 0)" (( "(") (binary_expression "DAT_003b28e0 == 0" (identifier "DAT_003b28e0") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar4 = 0;\nLAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);\n      if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }\n    }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0018d579:\n      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);" (statement_identifier "LAB_0018d579") (: ":") (expression_statement "plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);" (assignment_expression "plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3)" (identifier "plVar3") (= "=") (cast_expression "(long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3)" (identifier "sqlite3_realloc64") (argument_list "(DAT_003b28e8,(ulong)(uVar4 + 1) << 3)" (( "(") (identifier "DAT_003b28e8") (, ",") (binary_expression "(ulong)(uVar4 + 1) << 3" (call_expression "(ulong)(uVar4 + 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(uVar4 + 1)" (( "(") (binary_expression "uVar4 + 1" (identifier "uVar4") (+ "+") (number_literal "1")) () ")"))) (<< "<<") (number_literal "3")) () ")"))))) (; ";"))) (if_statement "if (plVar3 == (long *)0x0) {\n        iVar1 = 7;\n      }\n      else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }" (if "if") (parenthesized_expression "(plVar3 == (long *)0x0)" (( "(") (binary_expression "plVar3 == (long *)0x0" (identifier "plVar3") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        iVar1 = 7;\n      }" ({ "{") (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" (identifier "iVar1") (= "=") (number_literal "7")) (; ";")) (} "}")) (else_clause "else {\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }" (else "else") (compound_statement "{\n        DAT_003b28e8 = plVar3;\n        plVar3[DAT_003b28e0] = param_1;\n        DAT_003b28e0 = DAT_003b28e0 + 1;\n      }" ({ "{") (expression_statement "DAT_003b28e8 = plVar3;" (assignment_expression "DAT_003b28e8 = plVar3" (identifier "DAT_003b28e8") (= "=") (identifier "plVar3")) (; ";")) (expression_statement "plVar3[DAT_003b28e0] = param_1;" (assignment_expression "plVar3[DAT_003b28e0] = param_1" (subscript_expression "plVar3[DAT_003b28e0]" (identifier "plVar3") ([ "[") (identifier "DAT_003b28e0") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "DAT_003b28e0 = DAT_003b28e0 + 1;" (assignment_expression "DAT_003b28e0 = DAT_003b28e0 + 1" (identifier "DAT_003b28e0") (= "=") (binary_expression "DAT_003b28e0 + 1" (identifier "DAT_003b28e0") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (} "}")) (else_clause "else if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }" (else "else") (if_statement "if (param_1 != *DAT_003b28e8) {\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }" (if "if") (parenthesized_expression "(param_1 != *DAT_003b28e8)" (( "(") (binary_expression "param_1 != *DAT_003b28e8" (identifier "param_1") (!= "!=") (pointer_expression "*DAT_003b28e8" (* "*") (identifier "DAT_003b28e8"))) () ")")) (compound_statement "{\n      uVar4 = 0;\n      plVar3 = DAT_003b28e8;\n      do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);\n    }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "plVar3 = DAT_003b28e8;" (assignment_expression "plVar3 = DAT_003b28e8" (identifier "plVar3") (= "=") (identifier "DAT_003b28e8")) (; ";")) (do_statement "do {\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      } while (*plVar3 != param_1);" (do "do") (compound_statement "{\n        plVar3 = plVar3 + 1;\n        uVar4 = uVar4 + 1;\n        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;\n      }" ({ "{") (expression_statement "plVar3 = plVar3 + 1;" (assignment_expression "plVar3 = plVar3 + 1" (identifier "plVar3") (= "=") (binary_expression "plVar3 + 1" (identifier "plVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 + 1" (identifier "uVar4") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar4 == DAT_003b28e0) goto LAB_0018d579;" (if "if") (parenthesized_expression "(uVar4 == DAT_003b28e0)" (( "(") (binary_expression "uVar4 == DAT_003b28e0" (identifier "uVar4") (== "==") (identifier "DAT_003b28e0")) () ")")) (goto_statement "goto LAB_0018d579;" (goto "goto") (statement_identifier "LAB_0018d579") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(*plVar3 != param_1)" (( "(") (binary_expression "*plVar3 != param_1" (pointer_expression "*plVar3" (* "*") (identifier "plVar3")) (!= "!=") (identifier "param_1")) () ")")) (; ";")) (} "}"))))) (expression_statement "sqlite3_mutex_leave(uVar2);" (call_expression "sqlite3_mutex_leave(uVar2)" (identifier "sqlite3_mutex_leave") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

int function_1(type_1 *var_8)

{
  int var_2;
  type_1 **aNew;
  type_2 *p;
  type_1 **var_7;
  type_3 var_6;
  
  var_2 = var_1();
  if (var_2 == 0) {
    p = var_3(2);
    var_4(p);
    if (sqlite3Autoext.nExt == 0) {
      var_6 = 0;
LAB_0018d579:
      var_7 = (type_1 **)var_5(sqlite3Autoext.aExt,(ulong)(var_6 + 1) << 3);
      if (var_7 == (type_1 **)0x0) {
        var_2 = 7;
      }
      else {
        sqlite3Autoext.aExt = var_7;
        var_7[sqlite3Autoext.nExt] = var_8;
        sqlite3Autoext.nExt = sqlite3Autoext.nExt + 1;
      }
    }
    else if (var_8 != *sqlite3Autoext.aExt) {
      var_6 = 0;
      var_7 = sqlite3Autoext.aExt;
      do {
        var_7 = var_7 + 1;
        var_6 = var_6 + 1;
        if (var_6 == sqlite3Autoext.nExt) goto LAB_0018d579;
      } while (*var_7 != var_8);
    }
    var_9(p);
  }
  return var_2;
}


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

int MASKED(long param_1)

{
  int iVar1;
  undefined8 uVar2;
  long *plVar3;
  uint uVar4;
  
  iVar1 = sqlite3_initialize();
  if (iVar1 == 0) {
    uVar2 = FUN_0010cbe3(2);
    sqlite3_mutex_enter(uVar2);
    if (DAT_003b28e0 == 0) {
      uVar4 = 0;
LAB_0018d579:
      plVar3 = (long *)sqlite3_realloc64(DAT_003b28e8,(ulong)(uVar4 + 1) << 3);
      if (plVar3 == (long *)0x0) {
        iVar1 = 7;
      }
      else {
        DAT_003b28e8 = plVar3;
        plVar3[DAT_003b28e0] = param_1;
        DAT_003b28e0 = DAT_003b28e0 + 1;
      }
    }
    else if (param_1 != *DAT_003b28e8) {
      uVar4 = 0;
      plVar3 = DAT_003b28e8;
      do {
        plVar3 = plVar3 + 1;
        uVar4 = uVar4 + 1;
        if (uVar4 == DAT_003b28e0) goto LAB_0018d579;
      } while (*plVar3 != param_1);
    }
    sqlite3_mutex_leave(uVar2);
  }
  return iVar1;
}

