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

int sqlite3_status64(int op,sqlite3_int64 *pCurrent,sqlite3_int64 *pHighwater,int resetFlag)

{
  sqlite3StatValueType sVar1;
  sqlite3StatValueType sVar2;
  sqlite3_mutex *psVar3;
  bool bVar4;
  
  if (9 < (uint)op) {
    sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x5093,
                "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");
    return 0x15;
  }
  if (""[op] == '\0') {
    bVar4 = mem0.mutex == (sqlite3_mutex *)0x0;
    psVar3 = mem0.mutex;
  }
  else {
    bVar4 = pcache1_g.mutex == (sqlite3_mutex *)0x0;
    psVar3 = pcache1_g.mutex;
  }
  if (!bVar4) {
    (*sqlite3Config.mutex.xMutexEnter)(psVar3);
    sVar1 = sqlite3Stat.nowValue[op];
    *(sqlite3StatValueType *)pCurrent = sVar1;
    *(undefined4 *)((int)pCurrent + 4) = 0;
    sVar2 = sqlite3Stat.mxValue[op];
    *(undefined4 *)((int)pHighwater + 4) = 0;
    *(sqlite3StatValueType *)pHighwater = sVar2;
    if (resetFlag != 0) {
      sqlite3Stat.mxValue[op] = sVar1;
    }
    (*sqlite3Config.mutex.xMutexLeave)(psVar3);
    return 0;
  }
  sVar1 = sqlite3Stat.nowValue[op];
  *(sqlite3StatValueType *)pCurrent = sVar1;
  *(undefined4 *)((int)pCurrent + 4) = 0;
  sVar2 = sqlite3Stat.mxValue[op];
  *(undefined4 *)((int)pHighwater + 4) = 0;
  *(sqlite3StatValueType *)pHighwater = sVar2;
  if (resetFlag != 0) {
    sqlite3Stat.mxValue[op] = sVar1;
  }
  return 0;
}



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

undefined4 FUN_000771d0(uint param_1,undefined4 *param_2,undefined4 *param_3,int param_4)

{
  undefined4 uVar1;
  undefined4 uVar2;
  int iVar3;
  bool bVar4;
  
  if (9 < param_1) {
    FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,
                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");
    return 0x15;
  }
  if ((&DAT_00169604)[param_1] == '\0') {
    bVar4 = DAT_001bcdc4 == 0;
    iVar3 = DAT_001bcdc4;
  }
  else {
    bVar4 = DAT_001bcb74 == 0;
    iVar3 = DAT_001bcb74;
  }
  if (!bVar4) {
    (*DAT_001bb43c)(iVar3);
    uVar1 = (&DAT_001bcde0)[param_1];
    *param_2 = uVar1;
    param_2[1] = 0;
    uVar2 = (&DAT_001bce08)[param_1];
    param_3[1] = 0;
    *param_3 = uVar2;
    if (param_4 != 0) {
      (&DAT_001bce08)[param_1] = uVar1;
    }
    (*DAT_001bb444)(iVar3);
    return 0;
  }
  uVar1 = (&DAT_001bcde0)[param_1];
  *param_2 = uVar1;
  param_2[1] = 0;
  uVar2 = (&DAT_001bce08)[param_1];
  param_3[1] = 0;
  *param_3 = uVar2;
  if (param_4 != 0) {
    (&DAT_001bce08)[param_1] = uVar1;
  }
  return 0;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x000172e0
ADD EBX,0x143c4c
CMP ESI,0x9
JA 0x000772a0
CMP byte ptr [EBX + ESI*0x1 + 0xfffae7dc],0x0
JNZ 0x00077258
MOV EDI,dword ptr [EBX + 0x1f9c]
TEST EDI,EDI
JZ 0x00077262
SUB ESP,0xc
PUSH EDI
CALL dword ptr [EBX + 0x614]
MOV EAX,dword ptr [ESP + 0x24]
MOV EDX,dword ptr [EBX + ESI*0x4 + 0x1fb8]
MOV ECX,dword ptr [ESP + 0x28]
MOV dword ptr [EAX],EDX
ADD ESP,0x10
MOV dword ptr [EAX + 0x4],0x0
LEA EAX,[EBX + ESI*0x4 + 0x1fd8]
MOV ESI,dword ptr [EAX + 0x8]
MOV dword ptr [ECX + 0x4],0x0
MOV dword ptr [ECX],ESI
MOV ESI,dword ptr [ESP + 0x1c]
TEST ESI,ESI
JZ 0x00077242
MOV dword ptr [EAX + 0x8],EDX
SUB ESP,0xc
PUSH EDI
CALL dword ptr [EBX + 0x61c]
XOR EAX,EAX
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
MOV EDI,dword ptr [EBX + 0x1d4c]
TEST EDI,EDI
JNZ 0x000771ff
MOV EAX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [EBX + ESI*0x4 + 0x1fb8]
MOV ECX,dword ptr [ESP + 0x18]
MOV dword ptr [EAX],EDX
MOV dword ptr [EAX + 0x4],0x0
LEA EAX,[EBX + ESI*0x4 + 0x1fd8]
MOV EDI,dword ptr [EAX + 0x8]
MOV dword ptr [ECX + 0x4],0x0
MOV dword ptr [ECX],EDI
MOV ECX,dword ptr [ESP + 0x1c]
TEST ECX,ECX
JZ 0x00077298
MOV dword ptr [EAX + 0x8],EDX
POP EBX
XOR EAX,EAX
POP ESI
POP EDI
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xfff9c6d0]
PUSH EAX
LEA EAX,[EBX + 0xfffa1a10]
PUSH 0x5093
PUSH EAX
LEA EAX,[EBX + 0xfffa1a17]
PUSH EAX
PUSH 0x15
CALL 0x000770e0
ADD ESP,0x20
MOV EAX,0x15
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000771d0(uint param_1,undefined4 *param_2,undefined4 *param_3,int param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  bool bVar4;\n  \n  if (9 < param_1) {\n    FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");\n    return 0x15;\n  }\n  if ((&DAT_00169604)[param_1] == '\0') {\n    bVar4 = DAT_001bcdc4 == 0;\n    iVar3 = DAT_001bcdc4;\n  }\n  else {\n    bVar4 = DAT_001bcb74 == 0;\n    iVar3 = DAT_001bcb74;\n  }\n  if (!bVar4) {\n    (*DAT_001bb43c)(iVar3);\n    uVar1 = (&DAT_001bcde0)[param_1];\n    *param_2 = uVar1;\n    param_2[1] = 0;\n    uVar2 = (&DAT_001bce08)[param_1];\n    param_3[1] = 0;\n    *param_3 = uVar2;\n    if (param_4 != 0) {\n      (&DAT_001bce08)[param_1] = uVar1;\n    }\n    (*DAT_001bb444)(iVar3);\n    return 0;\n  }\n  uVar1 = (&DAT_001bcde0)[param_1];\n  *param_2 = uVar1;\n  param_2[1] = 0;\n  uVar2 = (&DAT_001bce08)[param_1];\n  param_3[1] = 0;\n  *param_3 = uVar2;\n  if (param_4 != 0) {\n    (&DAT_001bce08)[param_1] = uVar1;\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_000771d0(uint param_1,undefined4 *param_2,undefined4 *param_3,int param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  bool bVar4;\n  \n  if (9 < param_1) {\n    FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");\n    return 0x15;\n  }\n  if ((&DAT_00169604)[param_1] == '\0') {\n    bVar4 = DAT_001bcdc4 == 0;\n    iVar3 = DAT_001bcdc4;\n  }\n  else {\n    bVar4 = DAT_001bcb74 == 0;\n    iVar3 = DAT_001bcb74;\n  }\n  if (!bVar4) {\n    (*DAT_001bb43c)(iVar3);\n    uVar1 = (&DAT_001bcde0)[param_1];\n    *param_2 = uVar1;\n    param_2[1] = 0;\n    uVar2 = (&DAT_001bce08)[param_1];\n    param_3[1] = 0;\n    *param_3 = uVar2;\n    if (param_4 != 0) {\n      (&DAT_001bce08)[param_1] = uVar1;\n    }\n    (*DAT_001bb444)(iVar3);\n    return 0;\n  }\n  uVar1 = (&DAT_001bcde0)[param_1];\n  *param_2 = uVar1;\n  param_2[1] = 0;\n  uVar2 = (&DAT_001bce08)[param_1];\n  param_3[1] = 0;\n  *param_3 = uVar2;\n  if (param_4 != 0) {\n    (&DAT_001bce08)[param_1] = uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_000771d0(uint param_1,undefined4 *param_2,undefined4 *param_3,int param_4)" identifier (parameter_list "(uint param_1,undefined4 *param_2,undefined4 *param_3,int param_4)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  bool bVar4;\n  \n  if (9 < param_1) {\n    FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");\n    return 0x15;\n  }\n  if ((&DAT_00169604)[param_1] == '\0') {\n    bVar4 = DAT_001bcdc4 == 0;\n    iVar3 = DAT_001bcdc4;\n  }\n  else {\n    bVar4 = DAT_001bcb74 == 0;\n    iVar3 = DAT_001bcb74;\n  }\n  if (!bVar4) {\n    (*DAT_001bb43c)(iVar3);\n    uVar1 = (&DAT_001bcde0)[param_1];\n    *param_2 = uVar1;\n    param_2[1] = 0;\n    uVar2 = (&DAT_001bce08)[param_1];\n    param_3[1] = 0;\n    *param_3 = uVar2;\n    if (param_4 != 0) {\n      (&DAT_001bce08)[param_1] = uVar1;\n    }\n    (*DAT_001bb444)(iVar3);\n    return 0;\n  }\n  uVar1 = (&DAT_001bcde0)[param_1];\n  *param_2 = uVar1;\n  param_2[1] = 0;\n  uVar2 = (&DAT_001bce08)[param_1];\n  param_3[1] = 0;\n  *param_3 = uVar2;\n  if (param_4 != 0) {\n    (&DAT_001bce08)[param_1] = uVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (if_statement "if (9 < param_1) {\n    FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");\n    return 0x15;\n  }" if (parenthesized_expression "(9 < param_1)" ( (binary_expression "9 < param_1" number_literal < identifier) )) (compound_statement "{\n    FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");\n    return 0x15;\n  }" { (expression_statement "FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");" (call_expression "FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1")" identifier (argument_list "(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1")" ( number_literal , (string_literal ""%s at line %d of [%.10s]"" " string_content ") , (string_literal ""misuse"" " string_content ") , number_literal , (string_literal ""bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1"" " string_content ") ))) ;) (return_statement "return 0x15;" return number_literal ;) })) (if_statement "if ((&DAT_00169604)[param_1] == '\0') {\n    bVar4 = DAT_001bcdc4 == 0;\n    iVar3 = DAT_001bcdc4;\n  }\n  else {\n    bVar4 = DAT_001bcb74 == 0;\n    iVar3 = DAT_001bcb74;\n  }" if (parenthesized_expression "((&DAT_00169604)[param_1] == '\0')" ( (binary_expression "(&DAT_00169604)[param_1] == '\0'" (subscript_expression "(&DAT_00169604)[param_1]" (parenthesized_expression "(&DAT_00169604)" ( (pointer_expression "&DAT_00169604" & identifier) )) [ identifier ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    bVar4 = DAT_001bcdc4 == 0;\n    iVar3 = DAT_001bcdc4;\n  }" { (expression_statement "bVar4 = DAT_001bcdc4 == 0;" (assignment_expression "bVar4 = DAT_001bcdc4 == 0" identifier = (binary_expression "DAT_001bcdc4 == 0" identifier == number_literal)) ;) (expression_statement "iVar3 = DAT_001bcdc4;" (assignment_expression "iVar3 = DAT_001bcdc4" identifier = identifier) ;) }) (else_clause "else {\n    bVar4 = DAT_001bcb74 == 0;\n    iVar3 = DAT_001bcb74;\n  }" else (compound_statement "{\n    bVar4 = DAT_001bcb74 == 0;\n    iVar3 = DAT_001bcb74;\n  }" { (expression_statement "bVar4 = DAT_001bcb74 == 0;" (assignment_expression "bVar4 = DAT_001bcb74 == 0" identifier = (binary_expression "DAT_001bcb74 == 0" identifier == number_literal)) ;) (expression_statement "iVar3 = DAT_001bcb74;" (assignment_expression "iVar3 = DAT_001bcb74" identifier = identifier) ;) }))) (if_statement "if (!bVar4) {\n    (*DAT_001bb43c)(iVar3);\n    uVar1 = (&DAT_001bcde0)[param_1];\n    *param_2 = uVar1;\n    param_2[1] = 0;\n    uVar2 = (&DAT_001bce08)[param_1];\n    param_3[1] = 0;\n    *param_3 = uVar2;\n    if (param_4 != 0) {\n      (&DAT_001bce08)[param_1] = uVar1;\n    }\n    (*DAT_001bb444)(iVar3);\n    return 0;\n  }" if (parenthesized_expression "(!bVar4)" ( (unary_expression "!bVar4" ! identifier) )) (compound_statement "{\n    (*DAT_001bb43c)(iVar3);\n    uVar1 = (&DAT_001bcde0)[param_1];\n    *param_2 = uVar1;\n    param_2[1] = 0;\n    uVar2 = (&DAT_001bce08)[param_1];\n    param_3[1] = 0;\n    *param_3 = uVar2;\n    if (param_4 != 0) {\n      (&DAT_001bce08)[param_1] = uVar1;\n    }\n    (*DAT_001bb444)(iVar3);\n    return 0;\n  }" { (expression_statement "(*DAT_001bb43c)(iVar3);" (call_expression "(*DAT_001bb43c)(iVar3)" (parenthesized_expression "(*DAT_001bb43c)" ( (pointer_expression "*DAT_001bb43c" * identifier) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "uVar1 = (&DAT_001bcde0)[param_1];" (assignment_expression "uVar1 = (&DAT_001bcde0)[param_1]" identifier = (subscript_expression "(&DAT_001bcde0)[param_1]" (parenthesized_expression "(&DAT_001bcde0)" ( (pointer_expression "&DAT_001bcde0" & identifier) )) [ identifier ])) ;) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar2 = (&DAT_001bce08)[param_1];" (assignment_expression "uVar2 = (&DAT_001bce08)[param_1]" identifier = (subscript_expression "(&DAT_001bce08)[param_1]" (parenthesized_expression "(&DAT_001bce08)" ( (pointer_expression "&DAT_001bce08" & identifier) )) [ identifier ])) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_3 = uVar2;" (assignment_expression "*param_3 = uVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) (if_statement "if (param_4 != 0) {\n      (&DAT_001bce08)[param_1] = uVar1;\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      (&DAT_001bce08)[param_1] = uVar1;\n    }" { (expression_statement "(&DAT_001bce08)[param_1] = uVar1;" (assignment_expression "(&DAT_001bce08)[param_1] = uVar1" (subscript_expression "(&DAT_001bce08)[param_1]" (parenthesized_expression "(&DAT_001bce08)" ( (pointer_expression "&DAT_001bce08" & identifier) )) [ identifier ]) = identifier) ;) })) (expression_statement "(*DAT_001bb444)(iVar3);" (call_expression "(*DAT_001bb444)(iVar3)" (parenthesized_expression "(*DAT_001bb444)" ( (pointer_expression "*DAT_001bb444" * identifier) )) (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = (&DAT_001bcde0)[param_1];" (assignment_expression "uVar1 = (&DAT_001bcde0)[param_1]" identifier = (subscript_expression "(&DAT_001bcde0)[param_1]" (parenthesized_expression "(&DAT_001bcde0)" ( (pointer_expression "&DAT_001bcde0" & identifier) )) [ identifier ])) ;) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar2 = (&DAT_001bce08)[param_1];" (assignment_expression "uVar2 = (&DAT_001bce08)[param_1]" identifier = (subscript_expression "(&DAT_001bce08)[param_1]" (parenthesized_expression "(&DAT_001bce08)" ( (pointer_expression "&DAT_001bce08" & identifier) )) [ identifier ])) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_3 = uVar2;" (assignment_expression "*param_3 = uVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) (if_statement "if (param_4 != 0) {\n    (&DAT_001bce08)[param_1] = uVar1;\n  }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n    (&DAT_001bce08)[param_1] = uVar1;\n  }" { (expression_statement "(&DAT_001bce08)[param_1] = uVar1;" (assignment_expression "(&DAT_001bce08)[param_1] = uVar1" (subscript_expression "(&DAT_001bce08)[param_1]" (parenthesized_expression "(&DAT_001bce08)" ( (pointer_expression "&DAT_001bce08" & identifier) )) [ identifier ]) = identifier) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint sqlite3_status64(int op,sqlite3_int64 *pCurrent,sqlite3_int64 *pHighwater,int resetFlag)\n\n{\n  sqlite3StatValueType sVar1;\n  sqlite3StatValueType sVar2;\n  sqlite3_mutex *psVar3;\n  bool bVar4;\n  \n  if (9 < (uint)op) {\n    sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");\n    return 0x15;\n  }\n  if (""[op] == '\0') {\n    bVar4 = mem0.mutex == (sqlite3_mutex *)0x0;\n    psVar3 = mem0.mutex;\n  }\n  else {\n    bVar4 = pcache1_g.mutex == (sqlite3_mutex *)0x0;\n    psVar3 = pcache1_g.mutex;\n  }\n  if (!bVar4) {\n    (*sqlite3Config.mutex.xMutexEnter)(psVar3);\n    sVar1 = sqlite3Stat.nowValue[op];\n    *(sqlite3StatValueType *)pCurrent = sVar1;\n    *(undefined4 *)((int)pCurrent + 4) = 0;\n    sVar2 = sqlite3Stat.mxValue[op];\n    *(undefined4 *)((int)pHighwater + 4) = 0;\n    *(sqlite3StatValueType *)pHighwater = sVar2;\n    if (resetFlag != 0) {\n      sqlite3Stat.mxValue[op] = sVar1;\n    }\n    (*sqlite3Config.mutex.xMutexLeave)(psVar3);\n    return 0;\n  }\n  sVar1 = sqlite3Stat.nowValue[op];\n  *(sqlite3StatValueType *)pCurrent = sVar1;\n  *(undefined4 *)((int)pCurrent + 4) = 0;\n  sVar2 = sqlite3Stat.mxValue[op];\n  *(undefined4 *)((int)pHighwater + 4) = 0;\n  *(sqlite3StatValueType *)pHighwater = sVar2;\n  if (resetFlag != 0) {\n    sqlite3Stat.mxValue[op] = sVar1;\n  }\n  return 0;\n}\n\n" comment (function_definition "int sqlite3_status64(int op,sqlite3_int64 *pCurrent,sqlite3_int64 *pHighwater,int resetFlag)\n\n{\n  sqlite3StatValueType sVar1;\n  sqlite3StatValueType sVar2;\n  sqlite3_mutex *psVar3;\n  bool bVar4;\n  \n  if (9 < (uint)op) {\n    sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");\n    return 0x15;\n  }\n  if (""[op] == '\0') {\n    bVar4 = mem0.mutex == (sqlite3_mutex *)0x0;\n    psVar3 = mem0.mutex;\n  }\n  else {\n    bVar4 = pcache1_g.mutex == (sqlite3_mutex *)0x0;\n    psVar3 = pcache1_g.mutex;\n  }\n  if (!bVar4) {\n    (*sqlite3Config.mutex.xMutexEnter)(psVar3);\n    sVar1 = sqlite3Stat.nowValue[op];\n    *(sqlite3StatValueType *)pCurrent = sVar1;\n    *(undefined4 *)((int)pCurrent + 4) = 0;\n    sVar2 = sqlite3Stat.mxValue[op];\n    *(undefined4 *)((int)pHighwater + 4) = 0;\n    *(sqlite3StatValueType *)pHighwater = sVar2;\n    if (resetFlag != 0) {\n      sqlite3Stat.mxValue[op] = sVar1;\n    }\n    (*sqlite3Config.mutex.xMutexLeave)(psVar3);\n    return 0;\n  }\n  sVar1 = sqlite3Stat.nowValue[op];\n  *(sqlite3StatValueType *)pCurrent = sVar1;\n  *(undefined4 *)((int)pCurrent + 4) = 0;\n  sVar2 = sqlite3Stat.mxValue[op];\n  *(undefined4 *)((int)pHighwater + 4) = 0;\n  *(sqlite3StatValueType *)pHighwater = sVar2;\n  if (resetFlag != 0) {\n    sqlite3Stat.mxValue[op] = sVar1;\n  }\n  return 0;\n}" primitive_type (function_declarator "sqlite3_status64(int op,sqlite3_int64 *pCurrent,sqlite3_int64 *pHighwater,int resetFlag)" identifier (parameter_list "(int op,sqlite3_int64 *pCurrent,sqlite3_int64 *pHighwater,int resetFlag)" ( (parameter_declaration "int op" primitive_type identifier) , (parameter_declaration "sqlite3_int64 *pCurrent" type_identifier (pointer_declarator "*pCurrent" * identifier)) , (parameter_declaration "sqlite3_int64 *pHighwater" type_identifier (pointer_declarator "*pHighwater" * identifier)) , (parameter_declaration "int resetFlag" primitive_type identifier) ))) (compound_statement "{\n  sqlite3StatValueType sVar1;\n  sqlite3StatValueType sVar2;\n  sqlite3_mutex *psVar3;\n  bool bVar4;\n  \n  if (9 < (uint)op) {\n    sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");\n    return 0x15;\n  }\n  if (""[op] == '\0') {\n    bVar4 = mem0.mutex == (sqlite3_mutex *)0x0;\n    psVar3 = mem0.mutex;\n  }\n  else {\n    bVar4 = pcache1_g.mutex == (sqlite3_mutex *)0x0;\n    psVar3 = pcache1_g.mutex;\n  }\n  if (!bVar4) {\n    (*sqlite3Config.mutex.xMutexEnter)(psVar3);\n    sVar1 = sqlite3Stat.nowValue[op];\n    *(sqlite3StatValueType *)pCurrent = sVar1;\n    *(undefined4 *)((int)pCurrent + 4) = 0;\n    sVar2 = sqlite3Stat.mxValue[op];\n    *(undefined4 *)((int)pHighwater + 4) = 0;\n    *(sqlite3StatValueType *)pHighwater = sVar2;\n    if (resetFlag != 0) {\n      sqlite3Stat.mxValue[op] = sVar1;\n    }\n    (*sqlite3Config.mutex.xMutexLeave)(psVar3);\n    return 0;\n  }\n  sVar1 = sqlite3Stat.nowValue[op];\n  *(sqlite3StatValueType *)pCurrent = sVar1;\n  *(undefined4 *)((int)pCurrent + 4) = 0;\n  sVar2 = sqlite3Stat.mxValue[op];\n  *(undefined4 *)((int)pHighwater + 4) = 0;\n  *(sqlite3StatValueType *)pHighwater = sVar2;\n  if (resetFlag != 0) {\n    sqlite3Stat.mxValue[op] = sVar1;\n  }\n  return 0;\n}" { (declaration "sqlite3StatValueType sVar1;" type_identifier identifier ;) (declaration "sqlite3StatValueType sVar2;" type_identifier identifier ;) (declaration "sqlite3_mutex *psVar3;" type_identifier (pointer_declarator "*psVar3" * identifier) ;) (declaration "bool bVar4;" primitive_type identifier ;) (if_statement "if (9 < (uint)op) {\n    sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");\n    return 0x15;\n  }" if (parenthesized_expression "(9 < (uint)op)" ( (binary_expression "9 < (uint)op" number_literal < (cast_expression "(uint)op" ( (type_descriptor "uint" type_identifier) ) identifier)) )) (compound_statement "{\n    sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");\n    return 0x15;\n  }" { (expression_statement "sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");" (call_expression "sqlite3_log(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1")" identifier (argument_list "(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1")" ( number_literal , (string_literal ""%s at line %d of [%.10s]"" " string_content ") , (string_literal ""misuse"" " string_content ") , number_literal , (string_literal ""bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1"" " string_content ") ))) ;) (return_statement "return 0x15;" return number_literal ;) })) (if_statement "if (""[op] == '\0') {\n    bVar4 = mem0.mutex == (sqlite3_mutex *)0x0;\n    psVar3 = mem0.mutex;\n  }\n  else {\n    bVar4 = pcache1_g.mutex == (sqlite3_mutex *)0x0;\n    psVar3 = pcache1_g.mutex;\n  }" if (parenthesized_expression "(""[op] == '\0')" ( (binary_expression """[op] == '\0'" (subscript_expression """[op]" (string_literal """" " ") [ identifier ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    bVar4 = mem0.mutex == (sqlite3_mutex *)0x0;\n    psVar3 = mem0.mutex;\n  }" { (expression_statement "bVar4 = mem0.mutex == (sqlite3_mutex *)0x0;" (assignment_expression "bVar4 = mem0.mutex == (sqlite3_mutex *)0x0" identifier = (binary_expression "mem0.mutex == (sqlite3_mutex *)0x0" (field_expression "mem0.mutex" identifier . field_identifier) == (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "psVar3 = mem0.mutex;" (assignment_expression "psVar3 = mem0.mutex" identifier = (field_expression "mem0.mutex" identifier . field_identifier)) ;) }) (else_clause "else {\n    bVar4 = pcache1_g.mutex == (sqlite3_mutex *)0x0;\n    psVar3 = pcache1_g.mutex;\n  }" else (compound_statement "{\n    bVar4 = pcache1_g.mutex == (sqlite3_mutex *)0x0;\n    psVar3 = pcache1_g.mutex;\n  }" { (expression_statement "bVar4 = pcache1_g.mutex == (sqlite3_mutex *)0x0;" (assignment_expression "bVar4 = pcache1_g.mutex == (sqlite3_mutex *)0x0" identifier = (binary_expression "pcache1_g.mutex == (sqlite3_mutex *)0x0" (field_expression "pcache1_g.mutex" identifier . field_identifier) == (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "psVar3 = pcache1_g.mutex;" (assignment_expression "psVar3 = pcache1_g.mutex" identifier = (field_expression "pcache1_g.mutex" identifier . field_identifier)) ;) }))) (if_statement "if (!bVar4) {\n    (*sqlite3Config.mutex.xMutexEnter)(psVar3);\n    sVar1 = sqlite3Stat.nowValue[op];\n    *(sqlite3StatValueType *)pCurrent = sVar1;\n    *(undefined4 *)((int)pCurrent + 4) = 0;\n    sVar2 = sqlite3Stat.mxValue[op];\n    *(undefined4 *)((int)pHighwater + 4) = 0;\n    *(sqlite3StatValueType *)pHighwater = sVar2;\n    if (resetFlag != 0) {\n      sqlite3Stat.mxValue[op] = sVar1;\n    }\n    (*sqlite3Config.mutex.xMutexLeave)(psVar3);\n    return 0;\n  }" if (parenthesized_expression "(!bVar4)" ( (unary_expression "!bVar4" ! identifier) )) (compound_statement "{\n    (*sqlite3Config.mutex.xMutexEnter)(psVar3);\n    sVar1 = sqlite3Stat.nowValue[op];\n    *(sqlite3StatValueType *)pCurrent = sVar1;\n    *(undefined4 *)((int)pCurrent + 4) = 0;\n    sVar2 = sqlite3Stat.mxValue[op];\n    *(undefined4 *)((int)pHighwater + 4) = 0;\n    *(sqlite3StatValueType *)pHighwater = sVar2;\n    if (resetFlag != 0) {\n      sqlite3Stat.mxValue[op] = sVar1;\n    }\n    (*sqlite3Config.mutex.xMutexLeave)(psVar3);\n    return 0;\n  }" { (expression_statement "(*sqlite3Config.mutex.xMutexEnter)(psVar3);" (call_expression "(*sqlite3Config.mutex.xMutexEnter)(psVar3)" (parenthesized_expression "(*sqlite3Config.mutex.xMutexEnter)" ( (pointer_expression "*sqlite3Config.mutex.xMutexEnter" * (field_expression "sqlite3Config.mutex.xMutexEnter" (field_expression "sqlite3Config.mutex" identifier . field_identifier) . field_identifier)) )) (argument_list "(psVar3)" ( identifier ))) ;) (expression_statement "sVar1 = sqlite3Stat.nowValue[op];" (assignment_expression "sVar1 = sqlite3Stat.nowValue[op]" identifier = (subscript_expression "sqlite3Stat.nowValue[op]" (field_expression "sqlite3Stat.nowValue" identifier . field_identifier) [ identifier ])) ;) (expression_statement "*(sqlite3StatValueType *)pCurrent = sVar1;" (assignment_expression "*(sqlite3StatValueType *)pCurrent = sVar1" (pointer_expression "*(sqlite3StatValueType *)pCurrent" * (cast_expression "(sqlite3StatValueType *)pCurrent" ( (type_descriptor "sqlite3StatValueType *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)((int)pCurrent + 4) = 0;" (assignment_expression "*(undefined4 *)((int)pCurrent + 4) = 0" (pointer_expression "*(undefined4 *)((int)pCurrent + 4)" * (cast_expression "(undefined4 *)((int)pCurrent + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pCurrent + 4)" ( (binary_expression "(int)pCurrent + 4" (cast_expression "(int)pCurrent" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "sVar2 = sqlite3Stat.mxValue[op];" (assignment_expression "sVar2 = sqlite3Stat.mxValue[op]" identifier = (subscript_expression "sqlite3Stat.mxValue[op]" (field_expression "sqlite3Stat.mxValue" identifier . field_identifier) [ identifier ])) ;) (expression_statement "*(undefined4 *)((int)pHighwater + 4) = 0;" (assignment_expression "*(undefined4 *)((int)pHighwater + 4) = 0" (pointer_expression "*(undefined4 *)((int)pHighwater + 4)" * (cast_expression "(undefined4 *)((int)pHighwater + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pHighwater + 4)" ( (binary_expression "(int)pHighwater + 4" (cast_expression "(int)pHighwater" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(sqlite3StatValueType *)pHighwater = sVar2;" (assignment_expression "*(sqlite3StatValueType *)pHighwater = sVar2" (pointer_expression "*(sqlite3StatValueType *)pHighwater" * (cast_expression "(sqlite3StatValueType *)pHighwater" ( (type_descriptor "sqlite3StatValueType *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if (resetFlag != 0) {\n      sqlite3Stat.mxValue[op] = sVar1;\n    }" if (parenthesized_expression "(resetFlag != 0)" ( (binary_expression "resetFlag != 0" identifier != number_literal) )) (compound_statement "{\n      sqlite3Stat.mxValue[op] = sVar1;\n    }" { (expression_statement "sqlite3Stat.mxValue[op] = sVar1;" (assignment_expression "sqlite3Stat.mxValue[op] = sVar1" (subscript_expression "sqlite3Stat.mxValue[op]" (field_expression "sqlite3Stat.mxValue" identifier . field_identifier) [ identifier ]) = identifier) ;) })) (expression_statement "(*sqlite3Config.mutex.xMutexLeave)(psVar3);" (call_expression "(*sqlite3Config.mutex.xMutexLeave)(psVar3)" (parenthesized_expression "(*sqlite3Config.mutex.xMutexLeave)" ( (pointer_expression "*sqlite3Config.mutex.xMutexLeave" * (field_expression "sqlite3Config.mutex.xMutexLeave" (field_expression "sqlite3Config.mutex" identifier . field_identifier) . field_identifier)) )) (argument_list "(psVar3)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "sVar1 = sqlite3Stat.nowValue[op];" (assignment_expression "sVar1 = sqlite3Stat.nowValue[op]" identifier = (subscript_expression "sqlite3Stat.nowValue[op]" (field_expression "sqlite3Stat.nowValue" identifier . field_identifier) [ identifier ])) ;) (expression_statement "*(sqlite3StatValueType *)pCurrent = sVar1;" (assignment_expression "*(sqlite3StatValueType *)pCurrent = sVar1" (pointer_expression "*(sqlite3StatValueType *)pCurrent" * (cast_expression "(sqlite3StatValueType *)pCurrent" ( (type_descriptor "sqlite3StatValueType *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)((int)pCurrent + 4) = 0;" (assignment_expression "*(undefined4 *)((int)pCurrent + 4) = 0" (pointer_expression "*(undefined4 *)((int)pCurrent + 4)" * (cast_expression "(undefined4 *)((int)pCurrent + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pCurrent + 4)" ( (binary_expression "(int)pCurrent + 4" (cast_expression "(int)pCurrent" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "sVar2 = sqlite3Stat.mxValue[op];" (assignment_expression "sVar2 = sqlite3Stat.mxValue[op]" identifier = (subscript_expression "sqlite3Stat.mxValue[op]" (field_expression "sqlite3Stat.mxValue" identifier . field_identifier) [ identifier ])) ;) (expression_statement "*(undefined4 *)((int)pHighwater + 4) = 0;" (assignment_expression "*(undefined4 *)((int)pHighwater + 4) = 0" (pointer_expression "*(undefined4 *)((int)pHighwater + 4)" * (cast_expression "(undefined4 *)((int)pHighwater + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pHighwater + 4)" ( (binary_expression "(int)pHighwater + 4" (cast_expression "(int)pHighwater" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(sqlite3StatValueType *)pHighwater = sVar2;" (assignment_expression "*(sqlite3StatValueType *)pHighwater = sVar2" (pointer_expression "*(sqlite3StatValueType *)pHighwater" * (cast_expression "(sqlite3StatValueType *)pHighwater" ( (type_descriptor "sqlite3StatValueType *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if (resetFlag != 0) {\n    sqlite3Stat.mxValue[op] = sVar1;\n  }" if (parenthesized_expression "(resetFlag != 0)" ( (binary_expression "resetFlag != 0" identifier != number_literal) )) (compound_statement "{\n    sqlite3Stat.mxValue[op] = sVar1;\n  }" { (expression_statement "sqlite3Stat.mxValue[op] = sVar1;" (assignment_expression "sqlite3Stat.mxValue[op] = sVar1" (subscript_expression "sqlite3Stat.mxValue[op]" (field_expression "sqlite3Stat.mxValue" identifier . field_identifier) [ identifier ]) = identifier) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_000771d0(uint param_1,undefined4 *param_2,undefined4 *param_3,int param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  bool bVar4;\n  \n  if (9 < param_1) {\n    FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");\n    return 0x15;\n  }\n  if ((&DAT_00169604)[param_1] == '\0') {\n    bVar4 = DAT_001bcdc4 == 0;\n    iVar3 = DAT_001bcdc4;\n  }\n  else {\n    bVar4 = DAT_001bcb74 == 0;\n    iVar3 = DAT_001bcb74;\n  }\n  if (!bVar4) {\n    (*DAT_001bb43c)(iVar3);\n    uVar1 = (&DAT_001bcde0)[param_1];\n    *param_2 = uVar1;\n    param_2[1] = 0;\n    uVar2 = (&DAT_001bce08)[param_1];\n    param_3[1] = 0;\n    *param_3 = uVar2;\n    if (param_4 != 0) {\n      (&DAT_001bce08)[param_1] = uVar1;\n    }\n    (*DAT_001bb444)(iVar3);\n    return 0;\n  }\n  uVar1 = (&DAT_001bcde0)[param_1];\n  *param_2 = uVar1;\n  param_2[1] = 0;\n  uVar2 = (&DAT_001bce08)[param_1];\n  param_3[1] = 0;\n  *param_3 = uVar2;\n  if (param_4 != 0) {\n    (&DAT_001bce08)[param_1] = uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000771d0(uint param_1,undefined4 *param_2,undefined4 *param_3,int param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  bool bVar4;\n  \n  if (9 < param_1) {\n    FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");\n    return 0x15;\n  }\n  if ((&DAT_00169604)[param_1] == '\0') {\n    bVar4 = DAT_001bcdc4 == 0;\n    iVar3 = DAT_001bcdc4;\n  }\n  else {\n    bVar4 = DAT_001bcb74 == 0;\n    iVar3 = DAT_001bcb74;\n  }\n  if (!bVar4) {\n    (*DAT_001bb43c)(iVar3);\n    uVar1 = (&DAT_001bcde0)[param_1];\n    *param_2 = uVar1;\n    param_2[1] = 0;\n    uVar2 = (&DAT_001bce08)[param_1];\n    param_3[1] = 0;\n    *param_3 = uVar2;\n    if (param_4 != 0) {\n      (&DAT_001bce08)[param_1] = uVar1;\n    }\n    (*DAT_001bb444)(iVar3);\n    return 0;\n  }\n  uVar1 = (&DAT_001bcde0)[param_1];\n  *param_2 = uVar1;\n  param_2[1] = 0;\n  uVar2 = (&DAT_001bce08)[param_1];\n  param_3[1] = 0;\n  *param_3 = uVar2;\n  if (param_4 != 0) {\n    (&DAT_001bce08)[param_1] = uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_000771d0(uint param_1,undefined4 *param_2,undefined4 *param_3,int param_4)" identifier (parameter_list "(uint param_1,undefined4 *param_2,undefined4 *param_3,int param_4)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  bool bVar4;\n  \n  if (9 < param_1) {\n    FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");\n    return 0x15;\n  }\n  if ((&DAT_00169604)[param_1] == '\0') {\n    bVar4 = DAT_001bcdc4 == 0;\n    iVar3 = DAT_001bcdc4;\n  }\n  else {\n    bVar4 = DAT_001bcb74 == 0;\n    iVar3 = DAT_001bcb74;\n  }\n  if (!bVar4) {\n    (*DAT_001bb43c)(iVar3);\n    uVar1 = (&DAT_001bcde0)[param_1];\n    *param_2 = uVar1;\n    param_2[1] = 0;\n    uVar2 = (&DAT_001bce08)[param_1];\n    param_3[1] = 0;\n    *param_3 = uVar2;\n    if (param_4 != 0) {\n      (&DAT_001bce08)[param_1] = uVar1;\n    }\n    (*DAT_001bb444)(iVar3);\n    return 0;\n  }\n  uVar1 = (&DAT_001bcde0)[param_1];\n  *param_2 = uVar1;\n  param_2[1] = 0;\n  uVar2 = (&DAT_001bce08)[param_1];\n  param_3[1] = 0;\n  *param_3 = uVar2;\n  if (param_4 != 0) {\n    (&DAT_001bce08)[param_1] = uVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (if_statement "if (9 < param_1) {\n    FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");\n    return 0x15;\n  }" if (parenthesized_expression "(9 < param_1)" ( (binary_expression "9 < param_1" number_literal < identifier) )) (compound_statement "{\n    FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");\n    return 0x15;\n  }" { (expression_statement "FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");" (call_expression "FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1")" identifier (argument_list "(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1")" ( number_literal , (string_literal ""%s at line %d of [%.10s]"" " string_content ") , (string_literal ""misuse"" " string_content ") , number_literal , (string_literal ""bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1"" " string_content ") ))) ;) (return_statement "return 0x15;" return number_literal ;) })) (if_statement "if ((&DAT_00169604)[param_1] == '\0') {\n    bVar4 = DAT_001bcdc4 == 0;\n    iVar3 = DAT_001bcdc4;\n  }\n  else {\n    bVar4 = DAT_001bcb74 == 0;\n    iVar3 = DAT_001bcb74;\n  }" if (parenthesized_expression "((&DAT_00169604)[param_1] == '\0')" ( (binary_expression "(&DAT_00169604)[param_1] == '\0'" (subscript_expression "(&DAT_00169604)[param_1]" (parenthesized_expression "(&DAT_00169604)" ( (pointer_expression "&DAT_00169604" & identifier) )) [ identifier ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    bVar4 = DAT_001bcdc4 == 0;\n    iVar3 = DAT_001bcdc4;\n  }" { (expression_statement "bVar4 = DAT_001bcdc4 == 0;" (assignment_expression "bVar4 = DAT_001bcdc4 == 0" identifier = (binary_expression "DAT_001bcdc4 == 0" identifier == number_literal)) ;) (expression_statement "iVar3 = DAT_001bcdc4;" (assignment_expression "iVar3 = DAT_001bcdc4" identifier = identifier) ;) }) (else_clause "else {\n    bVar4 = DAT_001bcb74 == 0;\n    iVar3 = DAT_001bcb74;\n  }" else (compound_statement "{\n    bVar4 = DAT_001bcb74 == 0;\n    iVar3 = DAT_001bcb74;\n  }" { (expression_statement "bVar4 = DAT_001bcb74 == 0;" (assignment_expression "bVar4 = DAT_001bcb74 == 0" identifier = (binary_expression "DAT_001bcb74 == 0" identifier == number_literal)) ;) (expression_statement "iVar3 = DAT_001bcb74;" (assignment_expression "iVar3 = DAT_001bcb74" identifier = identifier) ;) }))) (if_statement "if (!bVar4) {\n    (*DAT_001bb43c)(iVar3);\n    uVar1 = (&DAT_001bcde0)[param_1];\n    *param_2 = uVar1;\n    param_2[1] = 0;\n    uVar2 = (&DAT_001bce08)[param_1];\n    param_3[1] = 0;\n    *param_3 = uVar2;\n    if (param_4 != 0) {\n      (&DAT_001bce08)[param_1] = uVar1;\n    }\n    (*DAT_001bb444)(iVar3);\n    return 0;\n  }" if (parenthesized_expression "(!bVar4)" ( (unary_expression "!bVar4" ! identifier) )) (compound_statement "{\n    (*DAT_001bb43c)(iVar3);\n    uVar1 = (&DAT_001bcde0)[param_1];\n    *param_2 = uVar1;\n    param_2[1] = 0;\n    uVar2 = (&DAT_001bce08)[param_1];\n    param_3[1] = 0;\n    *param_3 = uVar2;\n    if (param_4 != 0) {\n      (&DAT_001bce08)[param_1] = uVar1;\n    }\n    (*DAT_001bb444)(iVar3);\n    return 0;\n  }" { (expression_statement "(*DAT_001bb43c)(iVar3);" (call_expression "(*DAT_001bb43c)(iVar3)" (parenthesized_expression "(*DAT_001bb43c)" ( (pointer_expression "*DAT_001bb43c" * identifier) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "uVar1 = (&DAT_001bcde0)[param_1];" (assignment_expression "uVar1 = (&DAT_001bcde0)[param_1]" identifier = (subscript_expression "(&DAT_001bcde0)[param_1]" (parenthesized_expression "(&DAT_001bcde0)" ( (pointer_expression "&DAT_001bcde0" & identifier) )) [ identifier ])) ;) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar2 = (&DAT_001bce08)[param_1];" (assignment_expression "uVar2 = (&DAT_001bce08)[param_1]" identifier = (subscript_expression "(&DAT_001bce08)[param_1]" (parenthesized_expression "(&DAT_001bce08)" ( (pointer_expression "&DAT_001bce08" & identifier) )) [ identifier ])) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_3 = uVar2;" (assignment_expression "*param_3 = uVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) (if_statement "if (param_4 != 0) {\n      (&DAT_001bce08)[param_1] = uVar1;\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      (&DAT_001bce08)[param_1] = uVar1;\n    }" { (expression_statement "(&DAT_001bce08)[param_1] = uVar1;" (assignment_expression "(&DAT_001bce08)[param_1] = uVar1" (subscript_expression "(&DAT_001bce08)[param_1]" (parenthesized_expression "(&DAT_001bce08)" ( (pointer_expression "&DAT_001bce08" & identifier) )) [ identifier ]) = identifier) ;) })) (expression_statement "(*DAT_001bb444)(iVar3);" (call_expression "(*DAT_001bb444)(iVar3)" (parenthesized_expression "(*DAT_001bb444)" ( (pointer_expression "*DAT_001bb444" * identifier) )) (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = (&DAT_001bcde0)[param_1];" (assignment_expression "uVar1 = (&DAT_001bcde0)[param_1]" identifier = (subscript_expression "(&DAT_001bcde0)[param_1]" (parenthesized_expression "(&DAT_001bcde0)" ( (pointer_expression "&DAT_001bcde0" & identifier) )) [ identifier ])) ;) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar2 = (&DAT_001bce08)[param_1];" (assignment_expression "uVar2 = (&DAT_001bce08)[param_1]" identifier = (subscript_expression "(&DAT_001bce08)[param_1]" (parenthesized_expression "(&DAT_001bce08)" ( (pointer_expression "&DAT_001bce08" & identifier) )) [ identifier ])) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_3 = uVar2;" (assignment_expression "*param_3 = uVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) (if_statement "if (param_4 != 0) {\n    (&DAT_001bce08)[param_1] = uVar1;\n  }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n    (&DAT_001bce08)[param_1] = uVar1;\n  }" { (expression_statement "(&DAT_001bce08)[param_1] = uVar1;" (assignment_expression "(&DAT_001bce08)[param_1] = uVar1" (subscript_expression "(&DAT_001bce08)[param_1]" (parenthesized_expression "(&DAT_001bce08)" ( (pointer_expression "&DAT_001bce08" & identifier) )) [ identifier ]) = identifier) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * 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 LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) = IDENT) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) = IDENT) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_000771d0(uint param_1,undefined4 *param_2,undefined4 *param_3,int param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  bool bVar4;\n  \n  if (9 < param_1) {\n    FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");\n    return 0x15;\n  }\n  if ((&DAT_00169604)[param_1] == '\0') {\n    bVar4 = DAT_001bcdc4 == 0;\n    iVar3 = DAT_001bcdc4;\n  }\n  else {\n    bVar4 = DAT_001bcb74 == 0;\n    iVar3 = DAT_001bcb74;\n  }\n  if (!bVar4) {\n    (*DAT_001bb43c)(iVar3);\n    uVar1 = (&DAT_001bcde0)[param_1];\n    *param_2 = uVar1;\n    param_2[1] = 0;\n    uVar2 = (&DAT_001bce08)[param_1];\n    param_3[1] = 0;\n    *param_3 = uVar2;\n    if (param_4 != 0) {\n      (&DAT_001bce08)[param_1] = uVar1;\n    }\n    (*DAT_001bb444)(iVar3);\n    return 0;\n  }\n  uVar1 = (&DAT_001bcde0)[param_1];\n  *param_2 = uVar1;\n  param_2[1] = 0;\n  uVar2 = (&DAT_001bce08)[param_1];\n  param_3[1] = 0;\n  *param_3 = uVar2;\n  if (param_4 != 0) {\n    (&DAT_001bce08)[param_1] = uVar1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_000771d0(uint param_1,undefined4 *param_2,undefined4 *param_3,int param_4)" (identifier "FUN_000771d0") (parameter_list "(uint param_1,undefined4 *param_2,undefined4 *param_3,int param_4)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  bool bVar4;\n  \n  if (9 < param_1) {\n    FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");\n    return 0x15;\n  }\n  if ((&DAT_00169604)[param_1] == '\0') {\n    bVar4 = DAT_001bcdc4 == 0;\n    iVar3 = DAT_001bcdc4;\n  }\n  else {\n    bVar4 = DAT_001bcb74 == 0;\n    iVar3 = DAT_001bcb74;\n  }\n  if (!bVar4) {\n    (*DAT_001bb43c)(iVar3);\n    uVar1 = (&DAT_001bcde0)[param_1];\n    *param_2 = uVar1;\n    param_2[1] = 0;\n    uVar2 = (&DAT_001bce08)[param_1];\n    param_3[1] = 0;\n    *param_3 = uVar2;\n    if (param_4 != 0) {\n      (&DAT_001bce08)[param_1] = uVar1;\n    }\n    (*DAT_001bb444)(iVar3);\n    return 0;\n  }\n  uVar1 = (&DAT_001bcde0)[param_1];\n  *param_2 = uVar1;\n  param_2[1] = 0;\n  uVar2 = (&DAT_001bce08)[param_1];\n  param_3[1] = 0;\n  *param_3 = uVar2;\n  if (param_4 != 0) {\n    (&DAT_001bce08)[param_1] = uVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "bool bVar4;" (primitive_type "bool") (identifier "bVar4") (; ";")) (if_statement "if (9 < param_1) {\n    FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");\n    return 0x15;\n  }" (if "if") (parenthesized_expression "(9 < param_1)" (( "(") (binary_expression "9 < param_1" (number_literal "9") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n    FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");\n    return 0x15;\n  }" ({ "{") (expression_statement "FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");" (call_expression "FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1")" (identifier "FUN_000770e0") (argument_list "(0x15,"%s at line %d of [%.10s]","misuse",0x5093,\n                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1")" (( "(") (number_literal "0x15") (, ",") (string_literal ""%s at line %d of [%.10s]"" (" """) (string_content "%s at line %d of [%.10s]") (" """)) (, ",") (string_literal ""misuse"" (" """) (string_content "misuse") (" """)) (, ",") (number_literal "0x5093") (, ",") (string_literal ""bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1"" (" """) (string_content "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1") (" """)) () ")"))) (; ";")) (return_statement "return 0x15;" (return "return") (number_literal "0x15") (; ";")) (} "}"))) (if_statement "if ((&DAT_00169604)[param_1] == '\0') {\n    bVar4 = DAT_001bcdc4 == 0;\n    iVar3 = DAT_001bcdc4;\n  }\n  else {\n    bVar4 = DAT_001bcb74 == 0;\n    iVar3 = DAT_001bcb74;\n  }" (if "if") (parenthesized_expression "((&DAT_00169604)[param_1] == '\0')" (( "(") (binary_expression "(&DAT_00169604)[param_1] == '\0'" (subscript_expression "(&DAT_00169604)[param_1]" (parenthesized_expression "(&DAT_00169604)" (( "(") (pointer_expression "&DAT_00169604" (& "&") (identifier "DAT_00169604")) () ")")) ([ "[") (identifier "param_1") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    bVar4 = DAT_001bcdc4 == 0;\n    iVar3 = DAT_001bcdc4;\n  }" ({ "{") (expression_statement "bVar4 = DAT_001bcdc4 == 0;" (assignment_expression "bVar4 = DAT_001bcdc4 == 0" (identifier "bVar4") (= "=") (binary_expression "DAT_001bcdc4 == 0" (identifier "DAT_001bcdc4") (== "==") (number_literal "0"))) (; ";")) (expression_statement "iVar3 = DAT_001bcdc4;" (assignment_expression "iVar3 = DAT_001bcdc4" (identifier "iVar3") (= "=") (identifier "DAT_001bcdc4")) (; ";")) (} "}")) (else_clause "else {\n    bVar4 = DAT_001bcb74 == 0;\n    iVar3 = DAT_001bcb74;\n  }" (else "else") (compound_statement "{\n    bVar4 = DAT_001bcb74 == 0;\n    iVar3 = DAT_001bcb74;\n  }" ({ "{") (expression_statement "bVar4 = DAT_001bcb74 == 0;" (assignment_expression "bVar4 = DAT_001bcb74 == 0" (identifier "bVar4") (= "=") (binary_expression "DAT_001bcb74 == 0" (identifier "DAT_001bcb74") (== "==") (number_literal "0"))) (; ";")) (expression_statement "iVar3 = DAT_001bcb74;" (assignment_expression "iVar3 = DAT_001bcb74" (identifier "iVar3") (= "=") (identifier "DAT_001bcb74")) (; ";")) (} "}")))) (if_statement "if (!bVar4) {\n    (*DAT_001bb43c)(iVar3);\n    uVar1 = (&DAT_001bcde0)[param_1];\n    *param_2 = uVar1;\n    param_2[1] = 0;\n    uVar2 = (&DAT_001bce08)[param_1];\n    param_3[1] = 0;\n    *param_3 = uVar2;\n    if (param_4 != 0) {\n      (&DAT_001bce08)[param_1] = uVar1;\n    }\n    (*DAT_001bb444)(iVar3);\n    return 0;\n  }" (if "if") (parenthesized_expression "(!bVar4)" (( "(") (unary_expression "!bVar4" (! "!") (identifier "bVar4")) () ")")) (compound_statement "{\n    (*DAT_001bb43c)(iVar3);\n    uVar1 = (&DAT_001bcde0)[param_1];\n    *param_2 = uVar1;\n    param_2[1] = 0;\n    uVar2 = (&DAT_001bce08)[param_1];\n    param_3[1] = 0;\n    *param_3 = uVar2;\n    if (param_4 != 0) {\n      (&DAT_001bce08)[param_1] = uVar1;\n    }\n    (*DAT_001bb444)(iVar3);\n    return 0;\n  }" ({ "{") (expression_statement "(*DAT_001bb43c)(iVar3);" (call_expression "(*DAT_001bb43c)(iVar3)" (parenthesized_expression "(*DAT_001bb43c)" (( "(") (pointer_expression "*DAT_001bb43c" (* "*") (identifier "DAT_001bb43c")) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "uVar1 = (&DAT_001bcde0)[param_1];" (assignment_expression "uVar1 = (&DAT_001bcde0)[param_1]" (identifier "uVar1") (= "=") (subscript_expression "(&DAT_001bcde0)[param_1]" (parenthesized_expression "(&DAT_001bcde0)" (( "(") (pointer_expression "&DAT_001bcde0" (& "&") (identifier "DAT_001bcde0")) () ")")) ([ "[") (identifier "param_1") (] "]"))) (; ";")) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = (&DAT_001bce08)[param_1];" (assignment_expression "uVar2 = (&DAT_001bce08)[param_1]" (identifier "uVar2") (= "=") (subscript_expression "(&DAT_001bce08)[param_1]" (parenthesized_expression "(&DAT_001bce08)" (( "(") (pointer_expression "&DAT_001bce08" (& "&") (identifier "DAT_001bce08")) () ")")) ([ "[") (identifier "param_1") (] "]"))) (; ";")) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_3 = uVar2;" (assignment_expression "*param_3 = uVar2" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (param_4 != 0) {\n      (&DAT_001bce08)[param_1] = uVar1;\n    }" (if "if") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      (&DAT_001bce08)[param_1] = uVar1;\n    }" ({ "{") (expression_statement "(&DAT_001bce08)[param_1] = uVar1;" (assignment_expression "(&DAT_001bce08)[param_1] = uVar1" (subscript_expression "(&DAT_001bce08)[param_1]" (parenthesized_expression "(&DAT_001bce08)" (( "(") (pointer_expression "&DAT_001bce08" (& "&") (identifier "DAT_001bce08")) () ")")) ([ "[") (identifier "param_1") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (} "}"))) (expression_statement "(*DAT_001bb444)(iVar3);" (call_expression "(*DAT_001bb444)(iVar3)" (parenthesized_expression "(*DAT_001bb444)" (( "(") (pointer_expression "*DAT_001bb444" (* "*") (identifier "DAT_001bb444")) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar1 = (&DAT_001bcde0)[param_1];" (assignment_expression "uVar1 = (&DAT_001bcde0)[param_1]" (identifier "uVar1") (= "=") (subscript_expression "(&DAT_001bcde0)[param_1]" (parenthesized_expression "(&DAT_001bcde0)" (( "(") (pointer_expression "&DAT_001bcde0" (& "&") (identifier "DAT_001bcde0")) () ")")) ([ "[") (identifier "param_1") (] "]"))) (; ";")) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = (&DAT_001bce08)[param_1];" (assignment_expression "uVar2 = (&DAT_001bce08)[param_1]" (identifier "uVar2") (= "=") (subscript_expression "(&DAT_001bce08)[param_1]" (parenthesized_expression "(&DAT_001bce08)" (( "(") (pointer_expression "&DAT_001bce08" (& "&") (identifier "DAT_001bce08")) () ")")) ([ "[") (identifier "param_1") (] "]"))) (; ";")) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_3 = uVar2;" (assignment_expression "*param_3 = uVar2" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (param_4 != 0) {\n    (&DAT_001bce08)[param_1] = uVar1;\n  }" (if "if") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (&DAT_001bce08)[param_1] = uVar1;\n  }" ({ "{") (expression_statement "(&DAT_001bce08)[param_1] = uVar1;" (assignment_expression "(&DAT_001bce08)[param_1] = uVar1" (subscript_expression "(&DAT_001bce08)[param_1]" (parenthesized_expression "(&DAT_001bce08)" (( "(") (pointer_expression "&DAT_001bce08" (& "&") (identifier "DAT_001bce08")) () ")")) ([ "[") (identifier "param_1") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

int function_1(int op,type_1 *pCurrent,type_1 *pHighwater,int var_2)

{
  type_2 sVar1;
  type_2 sVar2;
  type_3 *psVar3;
  bool bVar4;
  
  if (9 < (type_4)op) {
    var_1(0x15,"%s at line %d of [%.10s]","misuse",0x5093,
                "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");
    return 0x15;
  }
  if (""[op] == '\0') {
    bVar4 = mem0.mutex == (type_3 *)0x0;
    psVar3 = mem0.mutex;
  }
  else {
    bVar4 = pcache1_g.mutex == (type_3 *)0x0;
    psVar3 = pcache1_g.mutex;
  }
  if (!bVar4) {
    (*sqlite3Config.mutex.xMutexEnter)(psVar3);
    sVar1 = sqlite3Stat.nowValue[op];
    *(type_2 *)pCurrent = sVar1;
    *(type_5 *)((int)pCurrent + 4) = 0;
    sVar2 = sqlite3Stat.mxValue[op];
    *(type_5 *)((int)pHighwater + 4) = 0;
    *(type_2 *)pHighwater = sVar2;
    if (var_2 != 0) {
      sqlite3Stat.mxValue[op] = sVar1;
    }
    (*sqlite3Config.mutex.xMutexLeave)(psVar3);
    return 0;
  }
  sVar1 = sqlite3Stat.nowValue[op];
  *(type_2 *)pCurrent = sVar1;
  *(type_5 *)((int)pCurrent + 4) = 0;
  sVar2 = sqlite3Stat.mxValue[op];
  *(type_5 *)((int)pHighwater + 4) = 0;
  *(type_2 *)pHighwater = sVar2;
  if (var_2 != 0) {
    sqlite3Stat.mxValue[op] = sVar1;
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (unary_expression argument: (identifier))) 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: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)) right: (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier)))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)) right: (identifier))))) (return_statement (number_literal)))))

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

undefined4 MASKED(uint param_1,undefined4 *param_2,undefined4 *param_3,int param_4)

{
  undefined4 uVar1;
  undefined4 uVar2;
  int iVar3;
  bool bVar4;
  
  if (9 < param_1) {
    FUN_000770e0(0x15,"%s at line %d of [%.10s]","misuse",0x5093,
                 "bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0alt1");
    return 0x15;
  }
  if ((&DAT_00169604)[param_1] == '\0') {
    bVar4 = DAT_001bcdc4 == 0;
    iVar3 = DAT_001bcdc4;
  }
  else {
    bVar4 = DAT_001bcb74 == 0;
    iVar3 = DAT_001bcb74;
  }
  if (!bVar4) {
    (*DAT_001bb43c)(iVar3);
    uVar1 = (&DAT_001bcde0)[param_1];
    *param_2 = uVar1;
    param_2[1] = 0;
    uVar2 = (&DAT_001bce08)[param_1];
    param_3[1] = 0;
    *param_3 = uVar2;
    if (param_4 != 0) {
      (&DAT_001bce08)[param_1] = uVar1;
    }
    (*DAT_001bb444)(iVar3);
    return 0;
  }
  uVar1 = (&DAT_001bcde0)[param_1];
  *param_2 = uVar1;
  param_2[1] = 0;
  uVar2 = (&DAT_001bce08)[param_1];
  param_3[1] = 0;
  *param_3 = uVar2;
  if (param_4 != 0) {
    (&DAT_001bce08)[param_1] = uVar1;
  }
  return 0;
}

