
int vdbePmaReaderIncrInit(PmaReader *pReadr,int eMode)

{
  IncrMerger *pIVar1;
  int iVar2;
  
  pIVar1 = pReadr->pIncr;
  if (pIVar1 != (IncrMerger *)0x0) {
    if (pIVar1->bUseThread == 0) {
      iVar2 = vdbePmaReaderIncrMergeInit(pReadr,eMode);
    }
    else {
      iVar2 = sqlite3ThreadCreate(&pIVar1->pTask->pThread,vdbePmaReaderBgIncrInit,pReadr);
    }
    return iVar2;
  }
  return 0;
}



undefined8 FUN_00149821(long param_1)

{
  undefined8 *puVar1;
  undefined8 uVar2;
  
  puVar1 = *(undefined8 **)(param_1 + 0x48);
  if (puVar1 != (undefined8 *)0x0) {
    if (*(int *)(puVar1 + 4) == 0) {
      uVar2 = FUN_00149742();
    }
    else {
      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);
    }
    return uVar2;
  }
  return 0;
}


MOV RCX,qword ptr [RDI + 0x48]
MOV EAX,0x0
TEST RCX,RCX
JZ 0x00149857
SUB RSP,0x8
CMP dword ptr [RCX + 0x20],0x0
JZ 0x00149850
MOV RDX,RDI
LEA RSI,[0x1499d3]
MOV RDI,qword ptr [RCX]
CALL 0x0013d5e3
ADD RSP,0x8
RET
CALL 0x00149742
JMP 0x0014984b
RET
(translation_unit "undefined8 FUN_00149821(long param_1)\n\n{\n  undefined8 *puVar1;\n  undefined8 uVar2;\n  \n  puVar1 = *(undefined8 **)(param_1 + 0x48);\n  if (puVar1 != (undefined8 *)0x0) {\n    if (*(int *)(puVar1 + 4) == 0) {\n      uVar2 = FUN_00149742();\n    }\n    else {\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }\n    return uVar2;\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_00149821(long param_1)\n\n{\n  undefined8 *puVar1;\n  undefined8 uVar2;\n  \n  puVar1 = *(undefined8 **)(param_1 + 0x48);\n  if (puVar1 != (undefined8 *)0x0) {\n    if (*(int *)(puVar1 + 4) == 0) {\n      uVar2 = FUN_00149742();\n    }\n    else {\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }\n    return uVar2;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00149821(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 uVar2;\n  \n  puVar1 = *(undefined8 **)(param_1 + 0x48);\n  if (puVar1 != (undefined8 *)0x0) {\n    if (*(int *)(puVar1 + 4) == 0) {\n      uVar2 = FUN_00149742();\n    }\n    else {\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }\n    return uVar2;\n  }\n  return 0;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = *(undefined8 **)(param_1 + 0x48);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 0x48)" identifier = (pointer_expression "*(undefined8 **)(param_1 + 0x48)" * (cast_expression "(undefined8 **)(param_1 + 0x48)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 != (undefined8 *)0x0) {\n    if (*(int *)(puVar1 + 4) == 0) {\n      uVar2 = FUN_00149742();\n    }\n    else {\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(puVar1 != (undefined8 *)0x0)" ( (binary_expression "puVar1 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*(int *)(puVar1 + 4) == 0) {\n      uVar2 = FUN_00149742();\n    }\n    else {\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }\n    return uVar2;\n  }" { (if_statement "if (*(int *)(puVar1 + 4) == 0) {\n      uVar2 = FUN_00149742();\n    }\n    else {\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }" if (parenthesized_expression "(*(int *)(puVar1 + 4) == 0)" ( (binary_expression "*(int *)(puVar1 + 4) == 0" (pointer_expression "*(int *)(puVar1 + 4)" * (cast_expression "(int *)(puVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 4)" ( (binary_expression "puVar1 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      uVar2 = FUN_00149742();\n    }" { (expression_statement "uVar2 = FUN_00149742();" (assignment_expression "uVar2 = FUN_00149742()" identifier = (call_expression "FUN_00149742()" identifier (argument_list "()" ( )))) ;) }) (else_clause "else {\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }" else (compound_statement "{\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }" { (expression_statement "uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);" (assignment_expression "uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1)" identifier = (call_expression "FUN_0013d5e3(*puVar1,FUN_001499d3,param_1)" identifier (argument_list "(*puVar1,FUN_001499d3,param_1)" ( (pointer_expression "*puVar1" * identifier) , identifier , identifier )))) ;) }))) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int vdbePmaReaderIncrInit(PmaReader *pReadr,int eMode)\n\n{\n  IncrMerger *pIVar1;\n  int iVar2;\n  \n  pIVar1 = pReadr->pIncr;\n  if (pIVar1 != (IncrMerger *)0x0) {\n    if (pIVar1->bUseThread == 0) {\n      iVar2 = vdbePmaReaderIncrMergeInit(pReadr,eMode);\n    }\n    else {\n      iVar2 = sqlite3ThreadCreate(&pIVar1->pTask->pThread,vdbePmaReaderBgIncrInit,pReadr);\n    }\n    return iVar2;\n  }\n  return 0;\n}\n\n" (function_definition "int vdbePmaReaderIncrInit(PmaReader *pReadr,int eMode)\n\n{\n  IncrMerger *pIVar1;\n  int iVar2;\n  \n  pIVar1 = pReadr->pIncr;\n  if (pIVar1 != (IncrMerger *)0x0) {\n    if (pIVar1->bUseThread == 0) {\n      iVar2 = vdbePmaReaderIncrMergeInit(pReadr,eMode);\n    }\n    else {\n      iVar2 = sqlite3ThreadCreate(&pIVar1->pTask->pThread,vdbePmaReaderBgIncrInit,pReadr);\n    }\n    return iVar2;\n  }\n  return 0;\n}" primitive_type (function_declarator "vdbePmaReaderIncrInit(PmaReader *pReadr,int eMode)" identifier (parameter_list "(PmaReader *pReadr,int eMode)" ( (parameter_declaration "PmaReader *pReadr" type_identifier (pointer_declarator "*pReadr" * identifier)) , (parameter_declaration "int eMode" primitive_type identifier) ))) (compound_statement "{\n  IncrMerger *pIVar1;\n  int iVar2;\n  \n  pIVar1 = pReadr->pIncr;\n  if (pIVar1 != (IncrMerger *)0x0) {\n    if (pIVar1->bUseThread == 0) {\n      iVar2 = vdbePmaReaderIncrMergeInit(pReadr,eMode);\n    }\n    else {\n      iVar2 = sqlite3ThreadCreate(&pIVar1->pTask->pThread,vdbePmaReaderBgIncrInit,pReadr);\n    }\n    return iVar2;\n  }\n  return 0;\n}" { (declaration "IncrMerger *pIVar1;" type_identifier (pointer_declarator "*pIVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "pIVar1 = pReadr->pIncr;" (assignment_expression "pIVar1 = pReadr->pIncr" identifier = (field_expression "pReadr->pIncr" identifier -> field_identifier)) ;) (if_statement "if (pIVar1 != (IncrMerger *)0x0) {\n    if (pIVar1->bUseThread == 0) {\n      iVar2 = vdbePmaReaderIncrMergeInit(pReadr,eMode);\n    }\n    else {\n      iVar2 = sqlite3ThreadCreate(&pIVar1->pTask->pThread,vdbePmaReaderBgIncrInit,pReadr);\n    }\n    return iVar2;\n  }" if (parenthesized_expression "(pIVar1 != (IncrMerger *)0x0)" ( (binary_expression "pIVar1 != (IncrMerger *)0x0" identifier != (cast_expression "(IncrMerger *)0x0" ( (type_descriptor "IncrMerger *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (pIVar1->bUseThread == 0) {\n      iVar2 = vdbePmaReaderIncrMergeInit(pReadr,eMode);\n    }\n    else {\n      iVar2 = sqlite3ThreadCreate(&pIVar1->pTask->pThread,vdbePmaReaderBgIncrInit,pReadr);\n    }\n    return iVar2;\n  }" { (if_statement "if (pIVar1->bUseThread == 0) {\n      iVar2 = vdbePmaReaderIncrMergeInit(pReadr,eMode);\n    }\n    else {\n      iVar2 = sqlite3ThreadCreate(&pIVar1->pTask->pThread,vdbePmaReaderBgIncrInit,pReadr);\n    }" if (parenthesized_expression "(pIVar1->bUseThread == 0)" ( (binary_expression "pIVar1->bUseThread == 0" (field_expression "pIVar1->bUseThread" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      iVar2 = vdbePmaReaderIncrMergeInit(pReadr,eMode);\n    }" { (expression_statement "iVar2 = vdbePmaReaderIncrMergeInit(pReadr,eMode);" (assignment_expression "iVar2 = vdbePmaReaderIncrMergeInit(pReadr,eMode)" identifier = (call_expression "vdbePmaReaderIncrMergeInit(pReadr,eMode)" identifier (argument_list "(pReadr,eMode)" ( identifier , identifier )))) ;) }) (else_clause "else {\n      iVar2 = sqlite3ThreadCreate(&pIVar1->pTask->pThread,vdbePmaReaderBgIncrInit,pReadr);\n    }" else (compound_statement "{\n      iVar2 = sqlite3ThreadCreate(&pIVar1->pTask->pThread,vdbePmaReaderBgIncrInit,pReadr);\n    }" { (expression_statement "iVar2 = sqlite3ThreadCreate(&pIVar1->pTask->pThread,vdbePmaReaderBgIncrInit,pReadr);" (assignment_expression "iVar2 = sqlite3ThreadCreate(&pIVar1->pTask->pThread,vdbePmaReaderBgIncrInit,pReadr)" identifier = (call_expression "sqlite3ThreadCreate(&pIVar1->pTask->pThread,vdbePmaReaderBgIncrInit,pReadr)" identifier (argument_list "(&pIVar1->pTask->pThread,vdbePmaReaderBgIncrInit,pReadr)" ( (pointer_expression "&pIVar1->pTask->pThread" & (field_expression "pIVar1->pTask->pThread" (field_expression "pIVar1->pTask" identifier -> field_identifier) -> field_identifier)) , identifier , identifier )))) ;) }))) (return_statement "return iVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined8 FUN_00149821(long param_1)\n\n{\n  undefined8 *puVar1;\n  undefined8 uVar2;\n  \n  puVar1 = *(undefined8 **)(param_1 + 0x48);\n  if (puVar1 != (undefined8 *)0x0) {\n    if (*(int *)(puVar1 + 4) == 0) {\n      uVar2 = FUN_00149742();\n    }\n    else {\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }\n    return uVar2;\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_00149821(long param_1)\n\n{\n  undefined8 *puVar1;\n  undefined8 uVar2;\n  \n  puVar1 = *(undefined8 **)(param_1 + 0x48);\n  if (puVar1 != (undefined8 *)0x0) {\n    if (*(int *)(puVar1 + 4) == 0) {\n      uVar2 = FUN_00149742();\n    }\n    else {\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }\n    return uVar2;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00149821(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 uVar2;\n  \n  puVar1 = *(undefined8 **)(param_1 + 0x48);\n  if (puVar1 != (undefined8 *)0x0) {\n    if (*(int *)(puVar1 + 4) == 0) {\n      uVar2 = FUN_00149742();\n    }\n    else {\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }\n    return uVar2;\n  }\n  return 0;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = *(undefined8 **)(param_1 + 0x48);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 0x48)" identifier = (pointer_expression "*(undefined8 **)(param_1 + 0x48)" * (cast_expression "(undefined8 **)(param_1 + 0x48)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 != (undefined8 *)0x0) {\n    if (*(int *)(puVar1 + 4) == 0) {\n      uVar2 = FUN_00149742();\n    }\n    else {\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(puVar1 != (undefined8 *)0x0)" ( (binary_expression "puVar1 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*(int *)(puVar1 + 4) == 0) {\n      uVar2 = FUN_00149742();\n    }\n    else {\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }\n    return uVar2;\n  }" { (if_statement "if (*(int *)(puVar1 + 4) == 0) {\n      uVar2 = FUN_00149742();\n    }\n    else {\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }" if (parenthesized_expression "(*(int *)(puVar1 + 4) == 0)" ( (binary_expression "*(int *)(puVar1 + 4) == 0" (pointer_expression "*(int *)(puVar1 + 4)" * (cast_expression "(int *)(puVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 4)" ( (binary_expression "puVar1 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      uVar2 = FUN_00149742();\n    }" { (expression_statement "uVar2 = FUN_00149742();" (assignment_expression "uVar2 = FUN_00149742()" identifier = (call_expression "FUN_00149742()" identifier (argument_list "()" ( )))) ;) }) (else_clause "else {\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }" else (compound_statement "{\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }" { (expression_statement "uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);" (assignment_expression "uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1)" identifier = (call_expression "FUN_0013d5e3(*puVar1,FUN_001499d3,param_1)" identifier (argument_list "(*puVar1,FUN_001499d3,param_1)" ( (pointer_expression "*puVar1" * identifier) , identifier , identifier )))) ;) }))) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , IDENT )))) ;) }))) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_00149821(long param_1)\n\n{\n  undefined8 *puVar1;\n  undefined8 uVar2;\n  \n  puVar1 = *(undefined8 **)(param_1 + 0x48);\n  if (puVar1 != (undefined8 *)0x0) {\n    if (*(int *)(puVar1 + 4) == 0) {\n      uVar2 = FUN_00149742();\n    }\n    else {\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }\n    return uVar2;\n  }\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_00149821(long param_1)" (identifier "FUN_00149821") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 uVar2;\n  \n  puVar1 = *(undefined8 **)(param_1 + 0x48);\n  if (puVar1 != (undefined8 *)0x0) {\n    if (*(int *)(puVar1 + 4) == 0) {\n      uVar2 = FUN_00149742();\n    }\n    else {\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }\n    return uVar2;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (expression_statement "puVar1 = *(undefined8 **)(param_1 + 0x48);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 0x48)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined8 **)(param_1 + 0x48)" (* "*") (cast_expression "(undefined8 **)(param_1 + 0x48)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")"))))) (; ";")) (if_statement "if (puVar1 != (undefined8 *)0x0) {\n    if (*(int *)(puVar1 + 4) == 0) {\n      uVar2 = FUN_00149742();\n    }\n    else {\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(puVar1 != (undefined8 *)0x0)" (( "(") (binary_expression "puVar1 != (undefined8 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (*(int *)(puVar1 + 4) == 0) {\n      uVar2 = FUN_00149742();\n    }\n    else {\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }\n    return uVar2;\n  }" ({ "{") (if_statement "if (*(int *)(puVar1 + 4) == 0) {\n      uVar2 = FUN_00149742();\n    }\n    else {\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }" (if "if") (parenthesized_expression "(*(int *)(puVar1 + 4) == 0)" (( "(") (binary_expression "*(int *)(puVar1 + 4) == 0" (pointer_expression "*(int *)(puVar1 + 4)" (* "*") (cast_expression "(int *)(puVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 4)" (( "(") (binary_expression "puVar1 + 4" (identifier "puVar1") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = FUN_00149742();\n    }" ({ "{") (expression_statement "uVar2 = FUN_00149742();" (assignment_expression "uVar2 = FUN_00149742()" (identifier "uVar2") (= "=") (call_expression "FUN_00149742()" (identifier "FUN_00149742") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }" (else "else") (compound_statement "{\n      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);\n    }" ({ "{") (expression_statement "uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);" (assignment_expression "uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1)" (identifier "uVar2") (= "=") (call_expression "FUN_0013d5e3(*puVar1,FUN_001499d3,param_1)" (identifier "FUN_0013d5e3") (argument_list "(*puVar1,FUN_001499d3,param_1)" (( "(") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (, ",") (identifier "FUN_001499d3") (, ",") (identifier "param_1") () ")")))) (; ";")) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 *pReadr,int eMode)

{
  type_2 *var_1;
  int iVar2;
  
  var_1 = pReadr->pIncr;
  if (var_1 != (type_2 *)0x0) {
    if (var_1->bUseThread == 0) {
      iVar2 = var_2(pReadr,eMode);
    }
    else {
      iVar2 = var_3(&var_1->pTask->pThread,vdbePmaReaderBgIncrInit,pReadr);
    }
    return iVar2;
  }
  return 0;
}


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

undefined8 MASKED(long param_1)

{
  undefined8 *puVar1;
  undefined8 uVar2;
  
  puVar1 = *(undefined8 **)(param_1 + 0x48);
  if (puVar1 != (undefined8 *)0x0) {
    if (*(int *)(puVar1 + 4) == 0) {
      uVar2 = FUN_00149742();
    }
    else {
      uVar2 = FUN_0013d5e3(*puVar1,FUN_001499d3,param_1);
    }
    return uVar2;
  }
  return 0;
}

