
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

int __regparm3 sqlite3_vfs_register(sqlite3_vfs *pVfs,int makeDflt)

{
  sqlite3_vfs *psVar1;
  sqlite3_mutex *psVar2;
  sqlite3_vfs *psVar3;
  sqlite3_vfs *psVar4;
  
  if (sqlite3Config.bCoreMutex == 0) {
    psVar2 = (sqlite3_mutex *)0x0;
  }
  else {
    psVar2 = (*sqlite3Config.mutex.xMutexAlloc)(2);
    if (psVar2 != (sqlite3_mutex *)0x0) {
      (*sqlite3Config.mutex.xMutexEnter)(psVar2);
    }
  }
  psVar4 = vfsList;
  if (pVfs == (sqlite3_vfs *)0x0) {
LAB_000493a9:
    psVar4 = vfsList;
    if ((makeDflt == 0) && (vfsList != (sqlite3_vfs *)0x0)) {
LAB_000493b1:
      pVfs->pNext = psVar4->pNext;
      psVar4->pNext = pVfs;
      goto LAB_00049381;
    }
  }
  else {
    if (pVfs == vfsList) {
      vfsList = pVfs->pNext;
      goto LAB_000493a9;
    }
    psVar1 = vfsList;
    if (vfsList != (sqlite3_vfs *)0x0) {
      do {
        psVar3 = psVar1;
        psVar1 = psVar3->pNext;
        if (psVar1 == (sqlite3_vfs *)0x0) {
          if (makeDflt == 0) goto LAB_000493b1;
          goto LAB_00049378;
        }
      } while (pVfs != psVar1);
      psVar3->pNext = pVfs->pNext;
      if (makeDflt != 0) goto LAB_00049378;
      goto LAB_000493b1;
    }
  }
LAB_00049378:
  pVfs->pNext = psVar4;
  vfsList = pVfs;
LAB_00049381:
  if (psVar2 != (sqlite3_mutex *)0x0) {
    (*sqlite3Config.mutex.xMutexLeave)(psVar2);
  }
  return 0;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

undefined4 __regparm3 FUN_00049300(int param_1,int param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  if (DAT_001bb3e4 == 0) {
    iVar2 = 0;
  }
  else {
    iVar2 = (*DAT_001bb434)(2);
    if (iVar2 != 0) {
      (*DAT_001bb43c)(iVar2);
    }
  }
  iVar4 = DAT_001bcddc;
  if (param_1 == 0) {
LAB_000493a9:
    iVar4 = DAT_001bcddc;
    if ((param_2 == 0) && (DAT_001bcddc != 0)) {
LAB_000493b1:
      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);
      *(int *)(iVar4 + 0xc) = param_1;
      goto LAB_00049381;
    }
  }
  else {
    if (param_1 == DAT_001bcddc) {
      DAT_001bcddc = *(int *)(param_1 + 0xc);
      goto LAB_000493a9;
    }
    iVar1 = DAT_001bcddc;
    if (DAT_001bcddc != 0) {
      do {
        iVar3 = iVar1;
        iVar1 = *(int *)(iVar3 + 0xc);
        if (iVar1 == 0) {
          if (param_2 == 0) goto LAB_000493b1;
          goto LAB_00049378;
        }
      } while (param_1 != iVar1);
      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);
      if (param_2 != 0) goto LAB_00049378;
      goto LAB_000493b1;
    }
  }
LAB_00049378:
  *(int *)(param_1 + 0xc) = iVar4;
  DAT_001bcddc = param_1;
LAB_00049381:
  if (iVar2 != 0) {
    (*DAT_001bb444)(iVar2);
  }
  return 0;
}


PUSH EBP
PUSH EDI
MOV EDI,EDX
PUSH ESI
CALL 0x00152e6c
ADD ESI,0x171b1e
PUSH EBX
MOV EBX,EAX
SUB ESP,0xc
MOV EAX,dword ptr [ESI + 0x5bc]
TEST EAX,EAX
JZ 0x000493c0
SUB ESP,0xc
PUSH 0x2
CALL dword ptr [ESI + 0x60c]
MOV EBP,EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00049345
SUB ESP,0xc
PUSH EAX
CALL dword ptr [ESI + 0x614]
ADD ESP,0x10
MOV EDX,dword ptr [ESI + 0x1fb4]
TEST EBX,EBX
JZ 0x000493a9
CMP EBX,EDX
JZ 0x000493a0
MOV ECX,EDX
TEST EDX,EDX
JNZ 0x00049366
JMP 0x00049378
CMP EBX,EAX
JZ 0x000493d0
MOV ECX,EAX
MOV EAX,dword ptr [ECX + 0xc]
TEST EAX,EAX
JNZ 0x00049360
TEST EDI,EDI
JZ 0x000493b1
LEA ESI,[ESI]
MOV dword ptr [EBX + 0xc],EDX
MOV dword ptr [ESI + 0x1fb4],EBX
TEST EBP,EBP
JZ 0x00049392
SUB ESP,0xc
PUSH EBP
CALL dword ptr [ESI + 0x61c]
ADD ESP,0x10
ADD ESP,0xc
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [EBX + 0xc]
MOV dword ptr [ESI + 0x1fb4],EDX
TEST EDI,EDI
JNZ 0x00049378
TEST EDX,EDX
JZ 0x00049378
MOV EAX,dword ptr [EDX + 0xc]
MOV dword ptr [EBX + 0xc],EAX
MOV dword ptr [EDX + 0xc],EBX
JMP 0x00049381
XOR EBP,EBP
JMP 0x00049345
MOV EAX,dword ptr [EBX + 0xc]
MOV dword ptr [ECX + 0xc],EAX
TEST EDI,EDI
JNZ 0x00049378
JMP 0x000493b1
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nundefined4 __regparm3 FUN_00049300(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (DAT_001bb3e4 == 0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = (*DAT_001bb434)(2);\n    if (iVar2 != 0) {\n      (*DAT_001bb43c)(iVar2);\n    }\n  }\n  iVar4 = DAT_001bcddc;\n  if (param_1 == 0) {\nLAB_000493a9:\n    iVar4 = DAT_001bcddc;\n    if ((param_2 == 0) && (DAT_001bcddc != 0)) {\nLAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);\n      *(int *)(iVar4 + 0xc) = param_1;\n      goto LAB_00049381;\n    }\n  }\n  else {\n    if (param_1 == DAT_001bcddc) {\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }\nLAB_00049378:\n  *(int *)(param_1 + 0xc) = iVar4;\n  DAT_001bcddc = param_1;\nLAB_00049381:\n  if (iVar2 != 0) {\n    (*DAT_001bb444)(iVar2);\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_00049300(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (DAT_001bb3e4 == 0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = (*DAT_001bb434)(2);\n    if (iVar2 != 0) {\n      (*DAT_001bb43c)(iVar2);\n    }\n  }\n  iVar4 = DAT_001bcddc;\n  if (param_1 == 0) {\nLAB_000493a9:\n    iVar4 = DAT_001bcddc;\n    if ((param_2 == 0) && (DAT_001bcddc != 0)) {\nLAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);\n      *(int *)(iVar4 + 0xc) = param_1;\n      goto LAB_00049381;\n    }\n  }\n  else {\n    if (param_1 == DAT_001bcddc) {\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }\nLAB_00049378:\n  *(int *)(param_1 + 0xc) = iVar4;\n  DAT_001bcddc = param_1;\nLAB_00049381:\n  if (iVar2 != 0) {\n    (*DAT_001bb444)(iVar2);\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00049300(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (DAT_001bb3e4 == 0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = (*DAT_001bb434)(2);\n    if (iVar2 != 0) {\n      (*DAT_001bb43c)(iVar2);\n    }\n  }\n  iVar4 = DAT_001bcddc;\n  if (param_1 == 0) {\nLAB_000493a9:\n    iVar4 = DAT_001bcddc;\n    if ((param_2 == 0) && (DAT_001bcddc != 0)) {\nLAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);\n      *(int *)(iVar4 + 0xc) = param_1;\n      goto LAB_00049381;\n    }\n  }\n  else {\n    if (param_1 == DAT_001bcddc) {\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }\nLAB_00049378:\n  *(int *)(param_1 + 0xc) = iVar4;\n  DAT_001bcddc = param_1;\nLAB_00049381:\n  if (iVar2 != 0) {\n    (*DAT_001bb444)(iVar2);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if (DAT_001bb3e4 == 0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = (*DAT_001bb434)(2);\n    if (iVar2 != 0) {\n      (*DAT_001bb43c)(iVar2);\n    }\n  }" if (parenthesized_expression "(DAT_001bb3e4 == 0)" ( (binary_expression "DAT_001bb3e4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = 0;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar2 = (*DAT_001bb434)(2);\n    if (iVar2 != 0) {\n      (*DAT_001bb43c)(iVar2);\n    }\n  }" else (compound_statement "{\n    iVar2 = (*DAT_001bb434)(2);\n    if (iVar2 != 0) {\n      (*DAT_001bb43c)(iVar2);\n    }\n  }" { (expression_statement "iVar2 = (*DAT_001bb434)(2);" (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 )))) ;) (if_statement "if (iVar2 != 0) {\n      (*DAT_001bb43c)(iVar2);\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      (*DAT_001bb43c)(iVar2);\n    }" { (expression_statement "(*DAT_001bb43c)(iVar2);" (call_expression "(*DAT_001bb43c)(iVar2)" (parenthesized_expression "(*DAT_001bb43c)" ( (pointer_expression "*DAT_001bb43c" * identifier) )) (argument_list "(iVar2)" ( identifier ))) ;) })) }))) (expression_statement "iVar4 = DAT_001bcddc;" (assignment_expression "iVar4 = DAT_001bcddc" identifier = identifier) ;) (if_statement "if (param_1 == 0) {\nLAB_000493a9:\n    iVar4 = DAT_001bcddc;\n    if ((param_2 == 0) && (DAT_001bcddc != 0)) {\nLAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);\n      *(int *)(iVar4 + 0xc) = param_1;\n      goto LAB_00049381;\n    }\n  }\n  else {\n    if (param_1 == DAT_001bcddc) {\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000493a9:\n    iVar4 = DAT_001bcddc;\n    if ((param_2 == 0) && (DAT_001bcddc != 0)) {\nLAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);\n      *(int *)(iVar4 + 0xc) = param_1;\n      goto LAB_00049381;\n    }\n  }" { (labeled_statement "LAB_000493a9:\n    iVar4 = DAT_001bcddc;" statement_identifier : (expression_statement "iVar4 = DAT_001bcddc;" (assignment_expression "iVar4 = DAT_001bcddc" identifier = identifier) ;)) (if_statement "if ((param_2 == 0) && (DAT_001bcddc != 0)) {\nLAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);\n      *(int *)(iVar4 + 0xc) = param_1;\n      goto LAB_00049381;\n    }" if (parenthesized_expression "((param_2 == 0) && (DAT_001bcddc != 0))" ( (binary_expression "(param_2 == 0) && (DAT_001bcddc != 0)" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) && (parenthesized_expression "(DAT_001bcddc != 0)" ( (binary_expression "DAT_001bcddc != 0" identifier != number_literal) ))) )) (compound_statement "{\nLAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);\n      *(int *)(iVar4 + 0xc) = param_1;\n      goto LAB_00049381;\n    }" { (labeled_statement "LAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);" statement_identifier : (expression_statement "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc)" (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) )))) = (pointer_expression "*(undefined4 *)(iVar4 + 0xc)" * (cast_expression "(undefined4 *)(iVar4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) ))))) ;)) (expression_statement "*(int *)(iVar4 + 0xc) = param_1;" (assignment_expression "*(int *)(iVar4 + 0xc) = param_1" (pointer_expression "*(int *)(iVar4 + 0xc)" * (cast_expression "(int *)(iVar4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) )))) = identifier) ;) (goto_statement "goto LAB_00049381;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (param_1 == DAT_001bcddc) {\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }" else (compound_statement "{\n    if (param_1 == DAT_001bcddc) {\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }" { (if_statement "if (param_1 == DAT_001bcddc) {\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }" if (parenthesized_expression "(param_1 == DAT_001bcddc)" ( (binary_expression "param_1 == DAT_001bcddc" identifier == identifier) )) (compound_statement "{\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }" { (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) ))))) ;) (goto_statement "goto LAB_000493a9;" goto 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) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\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) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }" { (do_statement "do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);" do (compound_statement "{\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\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) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }" { (if_statement "if (param_2 == 0) goto LAB_000493b1;" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000493b1;" goto statement_identifier ;)) (goto_statement "goto LAB_00049378;" 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) ))))) ;) (if_statement "if (param_2 != 0) goto LAB_00049378;" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00049378;" goto statement_identifier ;)) (goto_statement "goto LAB_000493b1;" goto statement_identifier ;) })) }))) (labeled_statement "LAB_00049378:\n  *(int *)(param_1 + 0xc) = iVar4;" statement_identifier : (expression_statement "*(int *)(param_1 + 0xc) = iVar4;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar4" (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) )))) = identifier) ;)) (expression_statement "DAT_001bcddc = param_1;" (assignment_expression "DAT_001bcddc = param_1" identifier = identifier) ;) (labeled_statement "LAB_00049381:\n  if (iVar2 != 0) {\n    (*DAT_001bb444)(iVar2);\n  }" statement_identifier : (if_statement "if (iVar2 != 0) {\n    (*DAT_001bb444)(iVar2);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    (*DAT_001bb444)(iVar2);\n  }" { (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.si replaced with injection: get_pc_thunk_si */\n\nint __regparm3 sqlite3_vfs_register(sqlite3_vfs *pVfs,int makeDflt)\n\n{\n  sqlite3_vfs *psVar1;\n  sqlite3_mutex *psVar2;\n  sqlite3_vfs *psVar3;\n  sqlite3_vfs *psVar4;\n  \n  if (sqlite3Config.bCoreMutex == 0) {\n    psVar2 = (sqlite3_mutex *)0x0;\n  }\n  else {\n    psVar2 = (*sqlite3Config.mutex.xMutexAlloc)(2);\n    if (psVar2 != (sqlite3_mutex *)0x0) {\n      (*sqlite3Config.mutex.xMutexEnter)(psVar2);\n    }\n  }\n  psVar4 = vfsList;\n  if (pVfs == (sqlite3_vfs *)0x0) {\nLAB_000493a9:\n    psVar4 = vfsList;\n    if ((makeDflt == 0) && (vfsList != (sqlite3_vfs *)0x0)) {\nLAB_000493b1:\n      pVfs->pNext = psVar4->pNext;\n      psVar4->pNext = pVfs;\n      goto LAB_00049381;\n    }\n  }\n  else {\n    if (pVfs == vfsList) {\n      vfsList = pVfs->pNext;\n      goto LAB_000493a9;\n    }\n    psVar1 = vfsList;\n    if (vfsList != (sqlite3_vfs *)0x0) {\n      do {\n        psVar3 = psVar1;\n        psVar1 = psVar3->pNext;\n        if (psVar1 == (sqlite3_vfs *)0x0) {\n          if (makeDflt == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (pVfs != psVar1);\n      psVar3->pNext = pVfs->pNext;\n      if (makeDflt != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }\nLAB_00049378:\n  pVfs->pNext = psVar4;\n  vfsList = pVfs;\nLAB_00049381:\n  if (psVar2 != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexLeave)(psVar2);\n  }\n  return 0;\n}\n\n" comment (function_definition "int __regparm3 sqlite3_vfs_register(sqlite3_vfs *pVfs,int makeDflt)\n\n{\n  sqlite3_vfs *psVar1;\n  sqlite3_mutex *psVar2;\n  sqlite3_vfs *psVar3;\n  sqlite3_vfs *psVar4;\n  \n  if (sqlite3Config.bCoreMutex == 0) {\n    psVar2 = (sqlite3_mutex *)0x0;\n  }\n  else {\n    psVar2 = (*sqlite3Config.mutex.xMutexAlloc)(2);\n    if (psVar2 != (sqlite3_mutex *)0x0) {\n      (*sqlite3Config.mutex.xMutexEnter)(psVar2);\n    }\n  }\n  psVar4 = vfsList;\n  if (pVfs == (sqlite3_vfs *)0x0) {\nLAB_000493a9:\n    psVar4 = vfsList;\n    if ((makeDflt == 0) && (vfsList != (sqlite3_vfs *)0x0)) {\nLAB_000493b1:\n      pVfs->pNext = psVar4->pNext;\n      psVar4->pNext = pVfs;\n      goto LAB_00049381;\n    }\n  }\n  else {\n    if (pVfs == vfsList) {\n      vfsList = pVfs->pNext;\n      goto LAB_000493a9;\n    }\n    psVar1 = vfsList;\n    if (vfsList != (sqlite3_vfs *)0x0) {\n      do {\n        psVar3 = psVar1;\n        psVar1 = psVar3->pNext;\n        if (psVar1 == (sqlite3_vfs *)0x0) {\n          if (makeDflt == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (pVfs != psVar1);\n      psVar3->pNext = pVfs->pNext;\n      if (makeDflt != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }\nLAB_00049378:\n  pVfs->pNext = psVar4;\n  vfsList = pVfs;\nLAB_00049381:\n  if (psVar2 != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexLeave)(psVar2);\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3_vfs_register(sqlite3_vfs *pVfs,int makeDflt)" identifier (parameter_list "(sqlite3_vfs *pVfs,int makeDflt)" ( (parameter_declaration "sqlite3_vfs *pVfs" type_identifier (pointer_declarator "*pVfs" * identifier)) , (parameter_declaration "int makeDflt" primitive_type identifier) ))) (compound_statement "{\n  sqlite3_vfs *psVar1;\n  sqlite3_mutex *psVar2;\n  sqlite3_vfs *psVar3;\n  sqlite3_vfs *psVar4;\n  \n  if (sqlite3Config.bCoreMutex == 0) {\n    psVar2 = (sqlite3_mutex *)0x0;\n  }\n  else {\n    psVar2 = (*sqlite3Config.mutex.xMutexAlloc)(2);\n    if (psVar2 != (sqlite3_mutex *)0x0) {\n      (*sqlite3Config.mutex.xMutexEnter)(psVar2);\n    }\n  }\n  psVar4 = vfsList;\n  if (pVfs == (sqlite3_vfs *)0x0) {\nLAB_000493a9:\n    psVar4 = vfsList;\n    if ((makeDflt == 0) && (vfsList != (sqlite3_vfs *)0x0)) {\nLAB_000493b1:\n      pVfs->pNext = psVar4->pNext;\n      psVar4->pNext = pVfs;\n      goto LAB_00049381;\n    }\n  }\n  else {\n    if (pVfs == vfsList) {\n      vfsList = pVfs->pNext;\n      goto LAB_000493a9;\n    }\n    psVar1 = vfsList;\n    if (vfsList != (sqlite3_vfs *)0x0) {\n      do {\n        psVar3 = psVar1;\n        psVar1 = psVar3->pNext;\n        if (psVar1 == (sqlite3_vfs *)0x0) {\n          if (makeDflt == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (pVfs != psVar1);\n      psVar3->pNext = pVfs->pNext;\n      if (makeDflt != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }\nLAB_00049378:\n  pVfs->pNext = psVar4;\n  vfsList = pVfs;\nLAB_00049381:\n  if (psVar2 != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexLeave)(psVar2);\n  }\n  return 0;\n}" { (declaration "sqlite3_vfs *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "sqlite3_mutex *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "sqlite3_vfs *psVar3;" type_identifier (pointer_declarator "*psVar3" * identifier) ;) (declaration "sqlite3_vfs *psVar4;" type_identifier (pointer_declarator "*psVar4" * identifier) ;) (if_statement "if (sqlite3Config.bCoreMutex == 0) {\n    psVar2 = (sqlite3_mutex *)0x0;\n  }\n  else {\n    psVar2 = (*sqlite3Config.mutex.xMutexAlloc)(2);\n    if (psVar2 != (sqlite3_mutex *)0x0) {\n      (*sqlite3Config.mutex.xMutexEnter)(psVar2);\n    }\n  }" if (parenthesized_expression "(sqlite3Config.bCoreMutex == 0)" ( (binary_expression "sqlite3Config.bCoreMutex == 0" (field_expression "sqlite3Config.bCoreMutex" identifier . field_identifier) == number_literal) )) (compound_statement "{\n    psVar2 = (sqlite3_mutex *)0x0;\n  }" { (expression_statement "psVar2 = (sqlite3_mutex *)0x0;" (assignment_expression "psVar2 = (sqlite3_mutex *)0x0" identifier = (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    psVar2 = (*sqlite3Config.mutex.xMutexAlloc)(2);\n    if (psVar2 != (sqlite3_mutex *)0x0) {\n      (*sqlite3Config.mutex.xMutexEnter)(psVar2);\n    }\n  }" else (compound_statement "{\n    psVar2 = (*sqlite3Config.mutex.xMutexAlloc)(2);\n    if (psVar2 != (sqlite3_mutex *)0x0) {\n      (*sqlite3Config.mutex.xMutexEnter)(psVar2);\n    }\n  }" { (expression_statement "psVar2 = (*sqlite3Config.mutex.xMutexAlloc)(2);" (assignment_expression "psVar2 = (*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 )))) ;) (if_statement "if (psVar2 != (sqlite3_mutex *)0x0) {\n      (*sqlite3Config.mutex.xMutexEnter)(psVar2);\n    }" if (parenthesized_expression "(psVar2 != (sqlite3_mutex *)0x0)" ( (binary_expression "psVar2 != (sqlite3_mutex *)0x0" identifier != (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*sqlite3Config.mutex.xMutexEnter)(psVar2);\n    }" { (expression_statement "(*sqlite3Config.mutex.xMutexEnter)(psVar2);" (call_expression "(*sqlite3Config.mutex.xMutexEnter)(psVar2)" (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 "(psVar2)" ( identifier ))) ;) })) }))) (expression_statement "psVar4 = vfsList;" (assignment_expression "psVar4 = vfsList" identifier = identifier) ;) (if_statement "if (pVfs == (sqlite3_vfs *)0x0) {\nLAB_000493a9:\n    psVar4 = vfsList;\n    if ((makeDflt == 0) && (vfsList != (sqlite3_vfs *)0x0)) {\nLAB_000493b1:\n      pVfs->pNext = psVar4->pNext;\n      psVar4->pNext = pVfs;\n      goto LAB_00049381;\n    }\n  }\n  else {\n    if (pVfs == vfsList) {\n      vfsList = pVfs->pNext;\n      goto LAB_000493a9;\n    }\n    psVar1 = vfsList;\n    if (vfsList != (sqlite3_vfs *)0x0) {\n      do {\n        psVar3 = psVar1;\n        psVar1 = psVar3->pNext;\n        if (psVar1 == (sqlite3_vfs *)0x0) {\n          if (makeDflt == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (pVfs != psVar1);\n      psVar3->pNext = pVfs->pNext;\n      if (makeDflt != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\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 "{\nLAB_000493a9:\n    psVar4 = vfsList;\n    if ((makeDflt == 0) && (vfsList != (sqlite3_vfs *)0x0)) {\nLAB_000493b1:\n      pVfs->pNext = psVar4->pNext;\n      psVar4->pNext = pVfs;\n      goto LAB_00049381;\n    }\n  }" { (labeled_statement "LAB_000493a9:\n    psVar4 = vfsList;" statement_identifier : (expression_statement "psVar4 = vfsList;" (assignment_expression "psVar4 = vfsList" identifier = identifier) ;)) (if_statement "if ((makeDflt == 0) && (vfsList != (sqlite3_vfs *)0x0)) {\nLAB_000493b1:\n      pVfs->pNext = psVar4->pNext;\n      psVar4->pNext = pVfs;\n      goto LAB_00049381;\n    }" if (parenthesized_expression "((makeDflt == 0) && (vfsList != (sqlite3_vfs *)0x0))" ( (binary_expression "(makeDflt == 0) && (vfsList != (sqlite3_vfs *)0x0)" (parenthesized_expression "(makeDflt == 0)" ( (binary_expression "makeDflt == 0" identifier == number_literal) )) && (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 "{\nLAB_000493b1:\n      pVfs->pNext = psVar4->pNext;\n      psVar4->pNext = pVfs;\n      goto LAB_00049381;\n    }" { (labeled_statement "LAB_000493b1:\n      pVfs->pNext = psVar4->pNext;" statement_identifier : (expression_statement "pVfs->pNext = psVar4->pNext;" (assignment_expression "pVfs->pNext = psVar4->pNext" (field_expression "pVfs->pNext" identifier -> field_identifier) = (field_expression "psVar4->pNext" identifier -> field_identifier)) ;)) (expression_statement "psVar4->pNext = pVfs;" (assignment_expression "psVar4->pNext = pVfs" (field_expression "psVar4->pNext" identifier -> field_identifier) = identifier) ;) (goto_statement "goto LAB_00049381;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (pVfs == vfsList) {\n      vfsList = pVfs->pNext;\n      goto LAB_000493a9;\n    }\n    psVar1 = vfsList;\n    if (vfsList != (sqlite3_vfs *)0x0) {\n      do {\n        psVar3 = psVar1;\n        psVar1 = psVar3->pNext;\n        if (psVar1 == (sqlite3_vfs *)0x0) {\n          if (makeDflt == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (pVfs != psVar1);\n      psVar3->pNext = pVfs->pNext;\n      if (makeDflt != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }" else (compound_statement "{\n    if (pVfs == vfsList) {\n      vfsList = pVfs->pNext;\n      goto LAB_000493a9;\n    }\n    psVar1 = vfsList;\n    if (vfsList != (sqlite3_vfs *)0x0) {\n      do {\n        psVar3 = psVar1;\n        psVar1 = psVar3->pNext;\n        if (psVar1 == (sqlite3_vfs *)0x0) {\n          if (makeDflt == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (pVfs != psVar1);\n      psVar3->pNext = pVfs->pNext;\n      if (makeDflt != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }" { (if_statement "if (pVfs == vfsList) {\n      vfsList = pVfs->pNext;\n      goto LAB_000493a9;\n    }" if (parenthesized_expression "(pVfs == vfsList)" ( (binary_expression "pVfs == vfsList" identifier == identifier) )) (compound_statement "{\n      vfsList = pVfs->pNext;\n      goto LAB_000493a9;\n    }" { (expression_statement "vfsList = pVfs->pNext;" (assignment_expression "vfsList = pVfs->pNext" identifier = (field_expression "pVfs->pNext" identifier -> field_identifier)) ;) (goto_statement "goto LAB_000493a9;" goto statement_identifier ;) })) (expression_statement "psVar1 = vfsList;" (assignment_expression "psVar1 = vfsList" identifier = identifier) ;) (if_statement "if (vfsList != (sqlite3_vfs *)0x0) {\n      do {\n        psVar3 = psVar1;\n        psVar1 = psVar3->pNext;\n        if (psVar1 == (sqlite3_vfs *)0x0) {\n          if (makeDflt == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (pVfs != psVar1);\n      psVar3->pNext = pVfs->pNext;\n      if (makeDflt != 0) goto LAB_00049378;\n      goto LAB_000493b1;\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        psVar3 = psVar1;\n        psVar1 = psVar3->pNext;\n        if (psVar1 == (sqlite3_vfs *)0x0) {\n          if (makeDflt == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (pVfs != psVar1);\n      psVar3->pNext = pVfs->pNext;\n      if (makeDflt != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }" { (do_statement "do {\n        psVar3 = psVar1;\n        psVar1 = psVar3->pNext;\n        if (psVar1 == (sqlite3_vfs *)0x0) {\n          if (makeDflt == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (pVfs != psVar1);" do (compound_statement "{\n        psVar3 = psVar1;\n        psVar1 = psVar3->pNext;\n        if (psVar1 == (sqlite3_vfs *)0x0) {\n          if (makeDflt == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      }" { (expression_statement "psVar3 = psVar1;" (assignment_expression "psVar3 = psVar1" identifier = identifier) ;) (expression_statement "psVar1 = psVar3->pNext;" (assignment_expression "psVar1 = psVar3->pNext" identifier = (field_expression "psVar3->pNext" identifier -> field_identifier)) ;) (if_statement "if (psVar1 == (sqlite3_vfs *)0x0) {\n          if (makeDflt == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }" 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)) )) (compound_statement "{\n          if (makeDflt == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }" { (if_statement "if (makeDflt == 0) goto LAB_000493b1;" if (parenthesized_expression "(makeDflt == 0)" ( (binary_expression "makeDflt == 0" identifier == number_literal) )) (goto_statement "goto LAB_000493b1;" goto statement_identifier ;)) (goto_statement "goto LAB_00049378;" goto statement_identifier ;) })) }) while (parenthesized_expression "(pVfs != psVar1)" ( (binary_expression "pVfs != psVar1" identifier != identifier) )) ;) (expression_statement "psVar3->pNext = pVfs->pNext;" (assignment_expression "psVar3->pNext = pVfs->pNext" (field_expression "psVar3->pNext" identifier -> field_identifier) = (field_expression "pVfs->pNext" identifier -> field_identifier)) ;) (if_statement "if (makeDflt != 0) goto LAB_00049378;" if (parenthesized_expression "(makeDflt != 0)" ( (binary_expression "makeDflt != 0" identifier != number_literal) )) (goto_statement "goto LAB_00049378;" goto statement_identifier ;)) (goto_statement "goto LAB_000493b1;" goto statement_identifier ;) })) }))) (labeled_statement "LAB_00049378:\n  pVfs->pNext = psVar4;" statement_identifier : (expression_statement "pVfs->pNext = psVar4;" (assignment_expression "pVfs->pNext = psVar4" (field_expression "pVfs->pNext" identifier -> field_identifier) = identifier) ;)) (expression_statement "vfsList = pVfs;" (assignment_expression "vfsList = pVfs" identifier = identifier) ;) (labeled_statement "LAB_00049381:\n  if (psVar2 != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexLeave)(psVar2);\n  }" statement_identifier : (if_statement "if (psVar2 != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexLeave)(psVar2);\n  }" if (parenthesized_expression "(psVar2 != (sqlite3_mutex *)0x0)" ( (binary_expression "psVar2 != (sqlite3_mutex *)0x0" identifier != (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*sqlite3Config.mutex.xMutexLeave)(psVar2);\n  }" { (expression_statement "(*sqlite3Config.mutex.xMutexLeave)(psVar2);" (call_expression "(*sqlite3Config.mutex.xMutexLeave)(psVar2)" (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 "(psVar2)" ( identifier ))) ;) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3 FUN_00049300(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (DAT_001bb3e4 == 0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = (*DAT_001bb434)(2);\n    if (iVar2 != 0) {\n      (*DAT_001bb43c)(iVar2);\n    }\n  }\n  iVar4 = DAT_001bcddc;\n  if (param_1 == 0) {\nLAB_000493a9:\n    iVar4 = DAT_001bcddc;\n    if ((param_2 == 0) && (DAT_001bcddc != 0)) {\nLAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);\n      *(int *)(iVar4 + 0xc) = param_1;\n      goto LAB_00049381;\n    }\n  }\n  else {\n    if (param_1 == DAT_001bcddc) {\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }\nLAB_00049378:\n  *(int *)(param_1 + 0xc) = iVar4;\n  DAT_001bcddc = param_1;\nLAB_00049381:\n  if (iVar2 != 0) {\n    (*DAT_001bb444)(iVar2);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00049300(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (DAT_001bb3e4 == 0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = (*DAT_001bb434)(2);\n    if (iVar2 != 0) {\n      (*DAT_001bb43c)(iVar2);\n    }\n  }\n  iVar4 = DAT_001bcddc;\n  if (param_1 == 0) {\nLAB_000493a9:\n    iVar4 = DAT_001bcddc;\n    if ((param_2 == 0) && (DAT_001bcddc != 0)) {\nLAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);\n      *(int *)(iVar4 + 0xc) = param_1;\n      goto LAB_00049381;\n    }\n  }\n  else {\n    if (param_1 == DAT_001bcddc) {\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }\nLAB_00049378:\n  *(int *)(param_1 + 0xc) = iVar4;\n  DAT_001bcddc = param_1;\nLAB_00049381:\n  if (iVar2 != 0) {\n    (*DAT_001bb444)(iVar2);\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00049300(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (DAT_001bb3e4 == 0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = (*DAT_001bb434)(2);\n    if (iVar2 != 0) {\n      (*DAT_001bb43c)(iVar2);\n    }\n  }\n  iVar4 = DAT_001bcddc;\n  if (param_1 == 0) {\nLAB_000493a9:\n    iVar4 = DAT_001bcddc;\n    if ((param_2 == 0) && (DAT_001bcddc != 0)) {\nLAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);\n      *(int *)(iVar4 + 0xc) = param_1;\n      goto LAB_00049381;\n    }\n  }\n  else {\n    if (param_1 == DAT_001bcddc) {\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }\nLAB_00049378:\n  *(int *)(param_1 + 0xc) = iVar4;\n  DAT_001bcddc = param_1;\nLAB_00049381:\n  if (iVar2 != 0) {\n    (*DAT_001bb444)(iVar2);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if (DAT_001bb3e4 == 0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = (*DAT_001bb434)(2);\n    if (iVar2 != 0) {\n      (*DAT_001bb43c)(iVar2);\n    }\n  }" if (parenthesized_expression "(DAT_001bb3e4 == 0)" ( (binary_expression "DAT_001bb3e4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = 0;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar2 = (*DAT_001bb434)(2);\n    if (iVar2 != 0) {\n      (*DAT_001bb43c)(iVar2);\n    }\n  }" else (compound_statement "{\n    iVar2 = (*DAT_001bb434)(2);\n    if (iVar2 != 0) {\n      (*DAT_001bb43c)(iVar2);\n    }\n  }" { (expression_statement "iVar2 = (*DAT_001bb434)(2);" (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 )))) ;) (if_statement "if (iVar2 != 0) {\n      (*DAT_001bb43c)(iVar2);\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      (*DAT_001bb43c)(iVar2);\n    }" { (expression_statement "(*DAT_001bb43c)(iVar2);" (call_expression "(*DAT_001bb43c)(iVar2)" (parenthesized_expression "(*DAT_001bb43c)" ( (pointer_expression "*DAT_001bb43c" * identifier) )) (argument_list "(iVar2)" ( identifier ))) ;) })) }))) (expression_statement "iVar4 = DAT_001bcddc;" (assignment_expression "iVar4 = DAT_001bcddc" identifier = identifier) ;) (if_statement "if (param_1 == 0) {\nLAB_000493a9:\n    iVar4 = DAT_001bcddc;\n    if ((param_2 == 0) && (DAT_001bcddc != 0)) {\nLAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);\n      *(int *)(iVar4 + 0xc) = param_1;\n      goto LAB_00049381;\n    }\n  }\n  else {\n    if (param_1 == DAT_001bcddc) {\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000493a9:\n    iVar4 = DAT_001bcddc;\n    if ((param_2 == 0) && (DAT_001bcddc != 0)) {\nLAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);\n      *(int *)(iVar4 + 0xc) = param_1;\n      goto LAB_00049381;\n    }\n  }" { (labeled_statement "LAB_000493a9:\n    iVar4 = DAT_001bcddc;" statement_identifier : (expression_statement "iVar4 = DAT_001bcddc;" (assignment_expression "iVar4 = DAT_001bcddc" identifier = identifier) ;)) (if_statement "if ((param_2 == 0) && (DAT_001bcddc != 0)) {\nLAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);\n      *(int *)(iVar4 + 0xc) = param_1;\n      goto LAB_00049381;\n    }" if (parenthesized_expression "((param_2 == 0) && (DAT_001bcddc != 0))" ( (binary_expression "(param_2 == 0) && (DAT_001bcddc != 0)" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) && (parenthesized_expression "(DAT_001bcddc != 0)" ( (binary_expression "DAT_001bcddc != 0" identifier != number_literal) ))) )) (compound_statement "{\nLAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);\n      *(int *)(iVar4 + 0xc) = param_1;\n      goto LAB_00049381;\n    }" { (labeled_statement "LAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);" statement_identifier : (expression_statement "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc)" (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) )))) = (pointer_expression "*(undefined4 *)(iVar4 + 0xc)" * (cast_expression "(undefined4 *)(iVar4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) ))))) ;)) (expression_statement "*(int *)(iVar4 + 0xc) = param_1;" (assignment_expression "*(int *)(iVar4 + 0xc) = param_1" (pointer_expression "*(int *)(iVar4 + 0xc)" * (cast_expression "(int *)(iVar4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) )))) = identifier) ;) (goto_statement "goto LAB_00049381;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (param_1 == DAT_001bcddc) {\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }" else (compound_statement "{\n    if (param_1 == DAT_001bcddc) {\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }" { (if_statement "if (param_1 == DAT_001bcddc) {\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }" if (parenthesized_expression "(param_1 == DAT_001bcddc)" ( (binary_expression "param_1 == DAT_001bcddc" identifier == identifier) )) (compound_statement "{\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }" { (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) ))))) ;) (goto_statement "goto LAB_000493a9;" goto 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) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\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) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }" { (do_statement "do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);" do (compound_statement "{\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\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) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }" { (if_statement "if (param_2 == 0) goto LAB_000493b1;" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000493b1;" goto statement_identifier ;)) (goto_statement "goto LAB_00049378;" 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) ))))) ;) (if_statement "if (param_2 != 0) goto LAB_00049378;" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00049378;" goto statement_identifier ;)) (goto_statement "goto LAB_000493b1;" goto statement_identifier ;) })) }))) (labeled_statement "LAB_00049378:\n  *(int *)(param_1 + 0xc) = iVar4;" statement_identifier : (expression_statement "*(int *)(param_1 + 0xc) = iVar4;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar4" (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) )))) = identifier) ;)) (expression_statement "DAT_001bcddc = param_1;" (assignment_expression "DAT_001bcddc = param_1" identifier = identifier) ;) (labeled_statement "LAB_00049381:\n  if (iVar2 != 0) {\n    (*DAT_001bb444)(iVar2);\n  }" statement_identifier : (if_statement "if (iVar2 != 0) {\n    (*DAT_001bb444)(iVar2);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    (*DAT_001bb444)(iVar2);\n  }" { (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 (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;) })) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (labeled_statement statement_identifier : (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) ))))) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto 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) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;) }))) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_00049300(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (DAT_001bb3e4 == 0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = (*DAT_001bb434)(2);\n    if (iVar2 != 0) {\n      (*DAT_001bb43c)(iVar2);\n    }\n  }\n  iVar4 = DAT_001bcddc;\n  if (param_1 == 0) {\nLAB_000493a9:\n    iVar4 = DAT_001bcddc;\n    if ((param_2 == 0) && (DAT_001bcddc != 0)) {\nLAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);\n      *(int *)(iVar4 + 0xc) = param_1;\n      goto LAB_00049381;\n    }\n  }\n  else {\n    if (param_1 == DAT_001bcddc) {\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }\nLAB_00049378:\n  *(int *)(param_1 + 0xc) = iVar4;\n  DAT_001bcddc = param_1;\nLAB_00049381:\n  if (iVar2 != 0) {\n    (*DAT_001bb444)(iVar2);\n  }\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00049300(int param_1,int param_2)" (identifier "FUN_00049300") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (DAT_001bb3e4 == 0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = (*DAT_001bb434)(2);\n    if (iVar2 != 0) {\n      (*DAT_001bb43c)(iVar2);\n    }\n  }\n  iVar4 = DAT_001bcddc;\n  if (param_1 == 0) {\nLAB_000493a9:\n    iVar4 = DAT_001bcddc;\n    if ((param_2 == 0) && (DAT_001bcddc != 0)) {\nLAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);\n      *(int *)(iVar4 + 0xc) = param_1;\n      goto LAB_00049381;\n    }\n  }\n  else {\n    if (param_1 == DAT_001bcddc) {\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }\nLAB_00049378:\n  *(int *)(param_1 + 0xc) = iVar4;\n  DAT_001bcddc = param_1;\nLAB_00049381:\n  if (iVar2 != 0) {\n    (*DAT_001bb444)(iVar2);\n  }\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") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (if_statement "if (DAT_001bb3e4 == 0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = (*DAT_001bb434)(2);\n    if (iVar2 != 0) {\n      (*DAT_001bb43c)(iVar2);\n    }\n  }" (if "if") (parenthesized_expression "(DAT_001bb3e4 == 0)" (( "(") (binary_expression "DAT_001bb3e4 == 0" (identifier "DAT_001bb3e4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = 0;\n  }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = (*DAT_001bb434)(2);\n    if (iVar2 != 0) {\n      (*DAT_001bb43c)(iVar2);\n    }\n  }" (else "else") (compound_statement "{\n    iVar2 = (*DAT_001bb434)(2);\n    if (iVar2 != 0) {\n      (*DAT_001bb43c)(iVar2);\n    }\n  }" ({ "{") (expression_statement "iVar2 = (*DAT_001bb434)(2);" (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") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      (*DAT_001bb43c)(iVar2);\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      (*DAT_001bb43c)(iVar2);\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") () ")"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar4 = DAT_001bcddc;" (assignment_expression "iVar4 = DAT_001bcddc" (identifier "iVar4") (= "=") (identifier "DAT_001bcddc")) (; ";")) (if_statement "if (param_1 == 0) {\nLAB_000493a9:\n    iVar4 = DAT_001bcddc;\n    if ((param_2 == 0) && (DAT_001bcddc != 0)) {\nLAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);\n      *(int *)(iVar4 + 0xc) = param_1;\n      goto LAB_00049381;\n    }\n  }\n  else {\n    if (param_1 == DAT_001bcddc) {\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000493a9:\n    iVar4 = DAT_001bcddc;\n    if ((param_2 == 0) && (DAT_001bcddc != 0)) {\nLAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);\n      *(int *)(iVar4 + 0xc) = param_1;\n      goto LAB_00049381;\n    }\n  }" ({ "{") (labeled_statement "LAB_000493a9:\n    iVar4 = DAT_001bcddc;" (statement_identifier "LAB_000493a9") (: ":") (expression_statement "iVar4 = DAT_001bcddc;" (assignment_expression "iVar4 = DAT_001bcddc" (identifier "iVar4") (= "=") (identifier "DAT_001bcddc")) (; ";"))) (if_statement "if ((param_2 == 0) && (DAT_001bcddc != 0)) {\nLAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);\n      *(int *)(iVar4 + 0xc) = param_1;\n      goto LAB_00049381;\n    }" (if "if") (parenthesized_expression "((param_2 == 0) && (DAT_001bcddc != 0))" (( "(") (binary_expression "(param_2 == 0) && (DAT_001bcddc != 0)" (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(DAT_001bcddc != 0)" (( "(") (binary_expression "DAT_001bcddc != 0" (identifier "DAT_001bcddc") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\nLAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);\n      *(int *)(iVar4 + 0xc) = param_1;\n      goto LAB_00049381;\n    }" ({ "{") (labeled_statement "LAB_000493b1:\n      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);" (statement_identifier "LAB_000493b1") (: ":") (expression_statement "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 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")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(iVar4 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0xc)" (( "(") (binary_expression "iVar4 + 0xc" (identifier "iVar4") (+ "+") (number_literal "0xc")) () ")"))))) (; ";"))) (expression_statement "*(int *)(iVar4 + 0xc) = param_1;" (assignment_expression "*(int *)(iVar4 + 0xc) = param_1" (pointer_expression "*(int *)(iVar4 + 0xc)" (* "*") (cast_expression "(int *)(iVar4 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0xc)" (( "(") (binary_expression "iVar4 + 0xc" (identifier "iVar4") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (goto_statement "goto LAB_00049381;" (goto "goto") (statement_identifier "LAB_00049381") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (param_1 == DAT_001bcddc) {\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }" (else "else") (compound_statement "{\n    if (param_1 == DAT_001bcddc) {\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }\n    iVar1 = DAT_001bcddc;\n    if (DAT_001bcddc != 0) {\n      do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }\n  }" ({ "{") (if_statement "if (param_1 == DAT_001bcddc) {\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }" (if "if") (parenthesized_expression "(param_1 == DAT_001bcddc)" (( "(") (binary_expression "param_1 == DAT_001bcddc" (identifier "param_1") (== "==") (identifier "DAT_001bcddc")) () ")")) (compound_statement "{\n      DAT_001bcddc = *(int *)(param_1 + 0xc);\n      goto LAB_000493a9;\n    }" ({ "{") (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")) () ")"))))) (; ";")) (goto_statement "goto LAB_000493a9;" (goto "goto") (statement_identifier "LAB_000493a9") (; ";")) (} "}"))) (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) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\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) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);\n      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);\n      if (param_2 != 0) goto LAB_00049378;\n      goto LAB_000493b1;\n    }" ({ "{") (do_statement "do {\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\n      } while (param_1 != iVar1);" (do "do") (compound_statement "{\n        iVar3 = iVar1;\n        iVar1 = *(int *)(iVar3 + 0xc);\n        if (iVar1 == 0) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }\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) {\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          if (param_2 == 0) goto LAB_000493b1;\n          goto LAB_00049378;\n        }" ({ "{") (if_statement "if (param_2 == 0) goto LAB_000493b1;" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000493b1;" (goto "goto") (statement_identifier "LAB_000493b1") (; ";"))) (goto_statement "goto LAB_00049378;" (goto "goto") (statement_identifier "LAB_00049378") (; ";")) (} "}"))) (} "}")) (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")) () ")"))))) (; ";")) (if_statement "if (param_2 != 0) goto LAB_00049378;" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00049378;" (goto "goto") (statement_identifier "LAB_00049378") (; ";"))) (goto_statement "goto LAB_000493b1;" (goto "goto") (statement_identifier "LAB_000493b1") (; ";")) (} "}"))) (} "}")))) (labeled_statement "LAB_00049378:\n  *(int *)(param_1 + 0xc) = iVar4;" (statement_identifier "LAB_00049378") (: ":") (expression_statement "*(int *)(param_1 + 0xc) = iVar4;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar4" (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")) () ")")))) (= "=") (identifier "iVar4")) (; ";"))) (expression_statement "DAT_001bcddc = param_1;" (assignment_expression "DAT_001bcddc = param_1" (identifier "DAT_001bcddc") (= "=") (identifier "param_1")) (; ";")) (labeled_statement "LAB_00049381:\n  if (iVar2 != 0) {\n    (*DAT_001bb444)(iVar2);\n  }" (statement_identifier "LAB_00049381") (: ":") (if_statement "if (iVar2 != 0) {\n    (*DAT_001bb444)(iVar2);\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*DAT_001bb444)(iVar2);\n  }" ({ "{") (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.si replaced with injection: get_pc_thunk_si */

int __regparm3 function_1(type_1 *var_2,int var_3)

{
  type_1 *var_5;
  type_2 *var_1;
  type_1 *psVar3;
  type_1 *psVar4;
  
  if (sqlite3Config.bCoreMutex == 0) {
    var_1 = (type_2 *)0x0;
  }
  else {
    var_1 = (*sqlite3Config.mutex.xMutexAlloc)(2);
    if (var_1 != (type_2 *)0x0) {
      (*sqlite3Config.mutex.xMutexEnter)(var_1);
    }
  }
  psVar4 = var_4;
  if (var_2 == (type_1 *)0x0) {
LAB_000493a9:
    psVar4 = var_4;
    if ((var_3 == 0) && (var_4 != (type_1 *)0x0)) {
LAB_000493b1:
      var_2->pNext = psVar4->pNext;
      psVar4->pNext = var_2;
      goto LAB_00049381;
    }
  }
  else {
    if (var_2 == var_4) {
      var_4 = var_2->pNext;
      goto LAB_000493a9;
    }
    var_5 = var_4;
    if (var_4 != (type_1 *)0x0) {
      do {
        psVar3 = var_5;
        var_5 = psVar3->pNext;
        if (var_5 == (type_1 *)0x0) {
          if (var_3 == 0) goto LAB_000493b1;
          goto LAB_00049378;
        }
      } while (var_2 != var_5);
      psVar3->pNext = var_2->pNext;
      if (var_3 != 0) goto LAB_00049378;
      goto LAB_000493b1;
    }
  }
LAB_00049378:
  var_2->pNext = psVar4;
  var_4 = var_2;
LAB_00049381:
  if (var_1 != (type_2 *)0x0) {
    (*sqlite3Config.mutex.xMutexLeave)(var_1);
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (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)) (declaration type: (primitive_type) declarator: (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)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier))))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (labeled_statement label: (statement_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)))))))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (goto_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: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (goto_statement label: (statement_identifier))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (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))))) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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.si replaced with injection: get_pc_thunk_si */

undefined4 __regparm3 MASKED(int param_1,int param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  if (DAT_001bb3e4 == 0) {
    iVar2 = 0;
  }
  else {
    iVar2 = (*DAT_001bb434)(2);
    if (iVar2 != 0) {
      (*DAT_001bb43c)(iVar2);
    }
  }
  iVar4 = DAT_001bcddc;
  if (param_1 == 0) {
LAB_000493a9:
    iVar4 = DAT_001bcddc;
    if ((param_2 == 0) && (DAT_001bcddc != 0)) {
LAB_000493b1:
      *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(iVar4 + 0xc);
      *(int *)(iVar4 + 0xc) = param_1;
      goto LAB_00049381;
    }
  }
  else {
    if (param_1 == DAT_001bcddc) {
      DAT_001bcddc = *(int *)(param_1 + 0xc);
      goto LAB_000493a9;
    }
    iVar1 = DAT_001bcddc;
    if (DAT_001bcddc != 0) {
      do {
        iVar3 = iVar1;
        iVar1 = *(int *)(iVar3 + 0xc);
        if (iVar1 == 0) {
          if (param_2 == 0) goto LAB_000493b1;
          goto LAB_00049378;
        }
      } while (param_1 != iVar1);
      *(undefined4 *)(iVar3 + 0xc) = *(undefined4 *)(param_1 + 0xc);
      if (param_2 != 0) goto LAB_00049378;
      goto LAB_000493b1;
    }
  }
LAB_00049378:
  *(int *)(param_1 + 0xc) = iVar4;
  DAT_001bcddc = param_1;
LAB_00049381:
  if (iVar2 != 0) {
    (*DAT_001bb444)(iVar2);
  }
  return 0;
}

