
int setDateTimeToCurrent(sqlite3_context *context,DateTime *p)

{
  int iVar1;
  int iVar2;
  Vdbe *pVVar3;
  
  pVVar3 = context->pVdbe;
  if ((*(int *)&pVVar3->iCurrentTime == 0 && (int)pVVar3->iCurrentTime == 0) &&
     (iVar1 = sqlite3OsCurrentTimeInt64(context->pOut->db->pVfs,&pVVar3->iCurrentTime), iVar1 != 0))
  {
    *(undefined4 *)((int)&pVVar3->iCurrentTime + 4) = 0;
    *(undefined4 *)&pVVar3->iCurrentTime = 0;
    *(undefined4 *)((int)&p->iJD + 4) = 0;
    *(undefined4 *)&p->iJD = 0;
    return 1;
  }
  iVar1 = *(int *)&pVVar3->iCurrentTime;
  iVar2 = (int)pVVar3->iCurrentTime;
  *(int *)&p->iJD = iVar1;
  *(int *)((int)&p->iJD + 4) = iVar2;
  if ((iVar1 < 1) && ((iVar1 != 0 || (iVar2 == 0)))) {
    iVar1 = 1;
  }
  else {
    p->validJD = '\x01';
    iVar1 = 0;
  }
  return iVar1;
}



undefined4 FUN_000468a0(int *param_1,int *param_2)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  
  iVar3 = param_1[3];
  if ((*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0) &&
     (iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0)) {
    *(undefined4 *)(iVar3 + 0x3c) = 0;
    *(undefined4 *)(iVar3 + 0x38) = 0;
    param_2[1] = 0;
    *param_2 = 0;
    return 1;
  }
  iVar1 = *(int *)(iVar3 + 0x38);
  iVar3 = *(int *)(iVar3 + 0x3c);
  *param_2 = iVar1;
  param_2[1] = iVar3;
  if ((iVar1 < 1) && ((iVar1 != 0 || (iVar3 == 0)))) {
    uVar2 = 1;
  }
  else {
    *(undefined1 *)(param_2 + 10) = 1;
    uVar2 = 0;
  }
  return uVar2;
}


lui gp,0x15
addiu gp,gp,0x1080
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
lw s0,0xc(a0)
lw v0,0x38(s0)
lw v1,0x3c(s0)
or v0,v0,v1
beq v0,zero,0x0004690c
_or s1,a1,zero
lw v0,0x38(s0)
lw v1,0x3c(s0)
sw v0,0x0(s1)
blez v0,0x00046954
_sw v1,0x4(s1)
li v0,0x1
sb v0,0x28(s1)
or v0,zero,zero
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw v0,0x0(a0)
lw v0,0x20(v0)
addiu a1,s0,0x38
lw a0,0x0(v0)
lw t9,-0x7dc8(gp)
addiu t9,t9,0xc20
bal 0x00040c20
_nop
lw gp,0x10(sp)
beq v0,zero,0x000468d8
_or v1,zero,zero
or v0,zero,zero
sw v1,0x3c(s0)
sw v0,0x38(s0)
sw v1,0x4(s1)
sw v0,0x0(s1)
b 0x000468f8
_li v0,0x1
bne v0,zero,0x00046964
_nop
bne v1,zero,0x000468ec
_nop
b 0x000468f8
_li v0,0x1
(translation_unit "undefined4 FUN_000468a0(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = param_1[3];\n  if ((*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0) &&\n     (iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0)) {\n    *(undefined4 *)(iVar3 + 0x3c) = 0;\n    *(undefined4 *)(iVar3 + 0x38) = 0;\n    param_2[1] = 0;\n    *param_2 = 0;\n    return 1;\n  }\n  iVar1 = *(int *)(iVar3 + 0x38);\n  iVar3 = *(int *)(iVar3 + 0x3c);\n  *param_2 = iVar1;\n  param_2[1] = iVar3;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (iVar3 == 0)))) {\n    uVar2 = 1;\n  }\n  else {\n    *(undefined1 *)(param_2 + 10) = 1;\n    uVar2 = 0;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_000468a0(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = param_1[3];\n  if ((*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0) &&\n     (iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0)) {\n    *(undefined4 *)(iVar3 + 0x3c) = 0;\n    *(undefined4 *)(iVar3 + 0x38) = 0;\n    param_2[1] = 0;\n    *param_2 = 0;\n    return 1;\n  }\n  iVar1 = *(int *)(iVar3 + 0x38);\n  iVar3 = *(int *)(iVar3 + 0x3c);\n  *param_2 = iVar1;\n  param_2[1] = iVar3;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (iVar3 == 0)))) {\n    uVar2 = 1;\n  }\n  else {\n    *(undefined1 *)(param_2 + 10) = 1;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_000468a0(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = param_1[3];\n  if ((*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0) &&\n     (iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0)) {\n    *(undefined4 *)(iVar3 + 0x3c) = 0;\n    *(undefined4 *)(iVar3 + 0x38) = 0;\n    param_2[1] = 0;\n    *param_2 = 0;\n    return 1;\n  }\n  iVar1 = *(int *)(iVar3 + 0x38);\n  iVar3 = *(int *)(iVar3 + 0x3c);\n  *param_2 = iVar1;\n  param_2[1] = iVar3;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (iVar3 == 0)))) {\n    uVar2 = 1;\n  }\n  else {\n    *(undefined1 *)(param_2 + 10) = 1;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = param_1[3];" (assignment_expression "iVar3 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (if_statement "if ((*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0) &&\n     (iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0)) {\n    *(undefined4 *)(iVar3 + 0x3c) = 0;\n    *(undefined4 *)(iVar3 + 0x38) = 0;\n    param_2[1] = 0;\n    *param_2 = 0;\n    return 1;\n  }" if (parenthesized_expression "((*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0) &&\n     (iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0))" ( (binary_expression "(*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0) &&\n     (iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0)" (parenthesized_expression "(*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0)" ( (binary_expression "*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0" (binary_expression "*(int *)(iVar3 + 0x38) == 0" (pointer_expression "*(int *)(iVar3 + 0x38)" * (cast_expression "(int *)(iVar3 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x38)" ( (binary_expression "iVar3 + 0x38" identifier + number_literal) )))) == number_literal) && (binary_expression "*(int *)(iVar3 + 0x3c) == 0" (pointer_expression "*(int *)(iVar3 + 0x3c)" * (cast_expression "(int *)(iVar3 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x3c)" ( (binary_expression "iVar3 + 0x3c" identifier + number_literal) )))) == number_literal)) )) && (parenthesized_expression "(iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0" (assignment_expression "iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38)" identifier = (call_expression "FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38)" identifier (argument_list "(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38)" ( (pointer_expression "**(undefined4 **)(*param_1 + 0x20)" * (pointer_expression "*(undefined4 **)(*param_1 + 0x20)" * (cast_expression "(undefined4 **)(*param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x20)" ( (binary_expression "*param_1 + 0x20" (pointer_expression "*param_1" * identifier) + number_literal) ))))) , (binary_expression "iVar3 + 0x38" identifier + number_literal) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    *(undefined4 *)(iVar3 + 0x3c) = 0;\n    *(undefined4 *)(iVar3 + 0x38) = 0;\n    param_2[1] = 0;\n    *param_2 = 0;\n    return 1;\n  }" { (expression_statement "*(undefined4 *)(iVar3 + 0x3c) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x3c) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x3c)" * (cast_expression "(undefined4 *)(iVar3 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x3c)" ( (binary_expression "iVar3 + 0x3c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x38) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x38) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x38)" * (cast_expression "(undefined4 *)(iVar3 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x38)" ( (binary_expression "iVar3 + 0x38" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar1 = *(int *)(iVar3 + 0x38);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x38)" identifier = (pointer_expression "*(int *)(iVar3 + 0x38)" * (cast_expression "(int *)(iVar3 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x38)" ( (binary_expression "iVar3 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(iVar3 + 0x3c);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0x3c)" identifier = (pointer_expression "*(int *)(iVar3 + 0x3c)" * (cast_expression "(int *)(iVar3 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x3c)" ( (binary_expression "iVar3 + 0x3c" identifier + number_literal) ))))) ;) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = iVar3;" (assignment_expression "param_2[1] = iVar3" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((iVar1 < 1) && ((iVar1 != 0 || (iVar3 == 0)))) {\n    uVar2 = 1;\n  }\n  else {\n    *(undefined1 *)(param_2 + 10) = 1;\n    uVar2 = 0;\n  }" if (parenthesized_expression "((iVar1 < 1) && ((iVar1 != 0 || (iVar3 == 0))))" ( (binary_expression "(iVar1 < 1) && ((iVar1 != 0 || (iVar3 == 0)))" (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) && (parenthesized_expression "((iVar1 != 0 || (iVar3 == 0)))" ( (parenthesized_expression "(iVar1 != 0 || (iVar3 == 0))" ( (binary_expression "iVar1 != 0 || (iVar3 == 0)" (binary_expression "iVar1 != 0" identifier != number_literal) || (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) ))) )) ))) )) (compound_statement "{\n    uVar2 = 1;\n  }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    *(undefined1 *)(param_2 + 10) = 1;\n    uVar2 = 0;\n  }" else (compound_statement "{\n    *(undefined1 *)(param_2 + 10) = 1;\n    uVar2 = 0;\n  }" { (expression_statement "*(undefined1 *)(param_2 + 10) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 10) = 1" (pointer_expression "*(undefined1 *)(param_2 + 10)" * (cast_expression "(undefined1 *)(param_2 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 10)" ( (binary_expression "param_2 + 10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "int setDateTimeToCurrent(sqlite3_context *context,DateTime *p)\n\n{\n  int iVar1;\n  int iVar2;\n  Vdbe *pVVar3;\n  \n  pVVar3 = context->pVdbe;\n  if ((*(int *)&pVVar3->iCurrentTime == 0 && (int)pVVar3->iCurrentTime == 0) &&\n     (iVar1 = sqlite3OsCurrentTimeInt64(context->pOut->db->pVfs,&pVVar3->iCurrentTime), iVar1 != 0))\n  {\n    *(undefined4 *)((int)&pVVar3->iCurrentTime + 4) = 0;\n    *(undefined4 *)&pVVar3->iCurrentTime = 0;\n    *(undefined4 *)((int)&p->iJD + 4) = 0;\n    *(undefined4 *)&p->iJD = 0;\n    return 1;\n  }\n  iVar1 = *(int *)&pVVar3->iCurrentTime;\n  iVar2 = (int)pVVar3->iCurrentTime;\n  *(int *)&p->iJD = iVar1;\n  *(int *)((int)&p->iJD + 4) = iVar2;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (iVar2 == 0)))) {\n    iVar1 = 1;\n  }\n  else {\n    p->validJD = '\x01';\n    iVar1 = 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int setDateTimeToCurrent(sqlite3_context *context,DateTime *p)\n\n{\n  int iVar1;\n  int iVar2;\n  Vdbe *pVVar3;\n  \n  pVVar3 = context->pVdbe;\n  if ((*(int *)&pVVar3->iCurrentTime == 0 && (int)pVVar3->iCurrentTime == 0) &&\n     (iVar1 = sqlite3OsCurrentTimeInt64(context->pOut->db->pVfs,&pVVar3->iCurrentTime), iVar1 != 0))\n  {\n    *(undefined4 *)((int)&pVVar3->iCurrentTime + 4) = 0;\n    *(undefined4 *)&pVVar3->iCurrentTime = 0;\n    *(undefined4 *)((int)&p->iJD + 4) = 0;\n    *(undefined4 *)&p->iJD = 0;\n    return 1;\n  }\n  iVar1 = *(int *)&pVVar3->iCurrentTime;\n  iVar2 = (int)pVVar3->iCurrentTime;\n  *(int *)&p->iJD = iVar1;\n  *(int *)((int)&p->iJD + 4) = iVar2;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (iVar2 == 0)))) {\n    iVar1 = 1;\n  }\n  else {\n    p->validJD = '\x01';\n    iVar1 = 0;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "setDateTimeToCurrent(sqlite3_context *context,DateTime *p)" identifier (parameter_list "(sqlite3_context *context,DateTime *p)" ( (parameter_declaration "sqlite3_context *context" type_identifier (pointer_declarator "*context" * identifier)) , (parameter_declaration "DateTime *p" type_identifier (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  Vdbe *pVVar3;\n  \n  pVVar3 = context->pVdbe;\n  if ((*(int *)&pVVar3->iCurrentTime == 0 && (int)pVVar3->iCurrentTime == 0) &&\n     (iVar1 = sqlite3OsCurrentTimeInt64(context->pOut->db->pVfs,&pVVar3->iCurrentTime), iVar1 != 0))\n  {\n    *(undefined4 *)((int)&pVVar3->iCurrentTime + 4) = 0;\n    *(undefined4 *)&pVVar3->iCurrentTime = 0;\n    *(undefined4 *)((int)&p->iJD + 4) = 0;\n    *(undefined4 *)&p->iJD = 0;\n    return 1;\n  }\n  iVar1 = *(int *)&pVVar3->iCurrentTime;\n  iVar2 = (int)pVVar3->iCurrentTime;\n  *(int *)&p->iJD = iVar1;\n  *(int *)((int)&p->iJD + 4) = iVar2;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (iVar2 == 0)))) {\n    iVar1 = 1;\n  }\n  else {\n    p->validJD = '\x01';\n    iVar1 = 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "Vdbe *pVVar3;" type_identifier (pointer_declarator "*pVVar3" * identifier) ;) (expression_statement "pVVar3 = context->pVdbe;" (assignment_expression "pVVar3 = context->pVdbe" identifier = (field_expression "context->pVdbe" identifier -> field_identifier)) ;) (if_statement "if ((*(int *)&pVVar3->iCurrentTime == 0 && (int)pVVar3->iCurrentTime == 0) &&\n     (iVar1 = sqlite3OsCurrentTimeInt64(context->pOut->db->pVfs,&pVVar3->iCurrentTime), iVar1 != 0))\n  {\n    *(undefined4 *)((int)&pVVar3->iCurrentTime + 4) = 0;\n    *(undefined4 *)&pVVar3->iCurrentTime = 0;\n    *(undefined4 *)((int)&p->iJD + 4) = 0;\n    *(undefined4 *)&p->iJD = 0;\n    return 1;\n  }" if (parenthesized_expression "((*(int *)&pVVar3->iCurrentTime == 0 && (int)pVVar3->iCurrentTime == 0) &&\n     (iVar1 = sqlite3OsCurrentTimeInt64(context->pOut->db->pVfs,&pVVar3->iCurrentTime), iVar1 != 0))" ( (binary_expression "(*(int *)&pVVar3->iCurrentTime == 0 && (int)pVVar3->iCurrentTime == 0) &&\n     (iVar1 = sqlite3OsCurrentTimeInt64(context->pOut->db->pVfs,&pVVar3->iCurrentTime), iVar1 != 0)" (parenthesized_expression "(*(int *)&pVVar3->iCurrentTime == 0 && (int)pVVar3->iCurrentTime == 0)" ( (binary_expression "*(int *)&pVVar3->iCurrentTime == 0 && (int)pVVar3->iCurrentTime == 0" (binary_expression "*(int *)&pVVar3->iCurrentTime == 0" (pointer_expression "*(int *)&pVVar3->iCurrentTime" * (cast_expression "(int *)&pVVar3->iCurrentTime" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pVVar3->iCurrentTime" & (field_expression "pVVar3->iCurrentTime" identifier -> field_identifier)))) == number_literal) && (binary_expression "(int)pVVar3->iCurrentTime == 0" (cast_expression "(int)pVVar3->iCurrentTime" ( (type_descriptor "int" primitive_type) ) (field_expression "pVVar3->iCurrentTime" identifier -> field_identifier)) == number_literal)) )) && (parenthesized_expression "(iVar1 = sqlite3OsCurrentTimeInt64(context->pOut->db->pVfs,&pVVar3->iCurrentTime), iVar1 != 0)" ( (comma_expression "iVar1 = sqlite3OsCurrentTimeInt64(context->pOut->db->pVfs,&pVVar3->iCurrentTime), iVar1 != 0" (assignment_expression "iVar1 = sqlite3OsCurrentTimeInt64(context->pOut->db->pVfs,&pVVar3->iCurrentTime)" identifier = (call_expression "sqlite3OsCurrentTimeInt64(context->pOut->db->pVfs,&pVVar3->iCurrentTime)" identifier (argument_list "(context->pOut->db->pVfs,&pVVar3->iCurrentTime)" ( (field_expression "context->pOut->db->pVfs" (field_expression "context->pOut->db" (field_expression "context->pOut" identifier -> field_identifier) -> field_identifier) -> field_identifier) , (pointer_expression "&pVVar3->iCurrentTime" & (field_expression "pVVar3->iCurrentTime" identifier -> field_identifier)) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    *(undefined4 *)((int)&pVVar3->iCurrentTime + 4) = 0;\n    *(undefined4 *)&pVVar3->iCurrentTime = 0;\n    *(undefined4 *)((int)&p->iJD + 4) = 0;\n    *(undefined4 *)&p->iJD = 0;\n    return 1;\n  }" { (expression_statement "*(undefined4 *)((int)&pVVar3->iCurrentTime + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&pVVar3->iCurrentTime + 4) = 0" (pointer_expression "*(undefined4 *)((int)&pVVar3->iCurrentTime + 4)" * (cast_expression "(undefined4 *)((int)&pVVar3->iCurrentTime + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pVVar3->iCurrentTime + 4)" ( (binary_expression "(int)&pVVar3->iCurrentTime + 4" (cast_expression "(int)&pVVar3->iCurrentTime" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pVVar3->iCurrentTime" & (field_expression "pVVar3->iCurrentTime" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)&pVVar3->iCurrentTime = 0;" (assignment_expression "*(undefined4 *)&pVVar3->iCurrentTime = 0" (pointer_expression "*(undefined4 *)&pVVar3->iCurrentTime" * (cast_expression "(undefined4 *)&pVVar3->iCurrentTime" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pVVar3->iCurrentTime" & (field_expression "pVVar3->iCurrentTime" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&p->iJD + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&p->iJD + 4) = 0" (pointer_expression "*(undefined4 *)((int)&p->iJD + 4)" * (cast_expression "(undefined4 *)((int)&p->iJD + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p->iJD + 4)" ( (binary_expression "(int)&p->iJD + 4" (cast_expression "(int)&p->iJD" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p->iJD" & (field_expression "p->iJD" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)&p->iJD = 0;" (assignment_expression "*(undefined4 *)&p->iJD = 0" (pointer_expression "*(undefined4 *)&p->iJD" * (cast_expression "(undefined4 *)&p->iJD" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->iJD" & (field_expression "p->iJD" identifier -> field_identifier)))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar1 = *(int *)&pVVar3->iCurrentTime;" (assignment_expression "iVar1 = *(int *)&pVVar3->iCurrentTime" identifier = (pointer_expression "*(int *)&pVVar3->iCurrentTime" * (cast_expression "(int *)&pVVar3->iCurrentTime" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pVVar3->iCurrentTime" & (field_expression "pVVar3->iCurrentTime" identifier -> field_identifier))))) ;) (expression_statement "iVar2 = (int)pVVar3->iCurrentTime;" (assignment_expression "iVar2 = (int)pVVar3->iCurrentTime" identifier = (cast_expression "(int)pVVar3->iCurrentTime" ( (type_descriptor "int" primitive_type) ) (field_expression "pVVar3->iCurrentTime" identifier -> field_identifier))) ;) (expression_statement "*(int *)&p->iJD = iVar1;" (assignment_expression "*(int *)&p->iJD = iVar1" (pointer_expression "*(int *)&p->iJD" * (cast_expression "(int *)&p->iJD" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->iJD" & (field_expression "p->iJD" identifier -> field_identifier)))) = identifier) ;) (expression_statement "*(int *)((int)&p->iJD + 4) = iVar2;" (assignment_expression "*(int *)((int)&p->iJD + 4) = iVar2" (pointer_expression "*(int *)((int)&p->iJD + 4)" * (cast_expression "(int *)((int)&p->iJD + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p->iJD + 4)" ( (binary_expression "(int)&p->iJD + 4" (cast_expression "(int)&p->iJD" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p->iJD" & (field_expression "p->iJD" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (if_statement "if ((iVar1 < 1) && ((iVar1 != 0 || (iVar2 == 0)))) {\n    iVar1 = 1;\n  }\n  else {\n    p->validJD = '\x01';\n    iVar1 = 0;\n  }" if (parenthesized_expression "((iVar1 < 1) && ((iVar1 != 0 || (iVar2 == 0))))" ( (binary_expression "(iVar1 < 1) && ((iVar1 != 0 || (iVar2 == 0)))" (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) && (parenthesized_expression "((iVar1 != 0 || (iVar2 == 0)))" ( (parenthesized_expression "(iVar1 != 0 || (iVar2 == 0))" ( (binary_expression "iVar1 != 0 || (iVar2 == 0)" (binary_expression "iVar1 != 0" identifier != number_literal) || (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) ))) )) ))) )) (compound_statement "{\n    iVar1 = 1;\n  }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    p->validJD = '\x01';\n    iVar1 = 0;\n  }" else (compound_statement "{\n    p->validJD = '\x01';\n    iVar1 = 0;\n  }" { (expression_statement "p->validJD = '\x01';" (assignment_expression "p->validJD = '\x01'" (field_expression "p->validJD" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 FUN_000468a0(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = param_1[3];\n  if ((*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0) &&\n     (iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0)) {\n    *(undefined4 *)(iVar3 + 0x3c) = 0;\n    *(undefined4 *)(iVar3 + 0x38) = 0;\n    param_2[1] = 0;\n    *param_2 = 0;\n    return 1;\n  }\n  iVar1 = *(int *)(iVar3 + 0x38);\n  iVar3 = *(int *)(iVar3 + 0x3c);\n  *param_2 = iVar1;\n  param_2[1] = iVar3;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (iVar3 == 0)))) {\n    uVar2 = 1;\n  }\n  else {\n    *(undefined1 *)(param_2 + 10) = 1;\n    uVar2 = 0;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_000468a0(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = param_1[3];\n  if ((*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0) &&\n     (iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0)) {\n    *(undefined4 *)(iVar3 + 0x3c) = 0;\n    *(undefined4 *)(iVar3 + 0x38) = 0;\n    param_2[1] = 0;\n    *param_2 = 0;\n    return 1;\n  }\n  iVar1 = *(int *)(iVar3 + 0x38);\n  iVar3 = *(int *)(iVar3 + 0x3c);\n  *param_2 = iVar1;\n  param_2[1] = iVar3;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (iVar3 == 0)))) {\n    uVar2 = 1;\n  }\n  else {\n    *(undefined1 *)(param_2 + 10) = 1;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_000468a0(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = param_1[3];\n  if ((*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0) &&\n     (iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0)) {\n    *(undefined4 *)(iVar3 + 0x3c) = 0;\n    *(undefined4 *)(iVar3 + 0x38) = 0;\n    param_2[1] = 0;\n    *param_2 = 0;\n    return 1;\n  }\n  iVar1 = *(int *)(iVar3 + 0x38);\n  iVar3 = *(int *)(iVar3 + 0x3c);\n  *param_2 = iVar1;\n  param_2[1] = iVar3;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (iVar3 == 0)))) {\n    uVar2 = 1;\n  }\n  else {\n    *(undefined1 *)(param_2 + 10) = 1;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = param_1[3];" (assignment_expression "iVar3 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (if_statement "if ((*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0) &&\n     (iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0)) {\n    *(undefined4 *)(iVar3 + 0x3c) = 0;\n    *(undefined4 *)(iVar3 + 0x38) = 0;\n    param_2[1] = 0;\n    *param_2 = 0;\n    return 1;\n  }" if (parenthesized_expression "((*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0) &&\n     (iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0))" ( (binary_expression "(*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0) &&\n     (iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0)" (parenthesized_expression "(*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0)" ( (binary_expression "*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0" (binary_expression "*(int *)(iVar3 + 0x38) == 0" (pointer_expression "*(int *)(iVar3 + 0x38)" * (cast_expression "(int *)(iVar3 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x38)" ( (binary_expression "iVar3 + 0x38" identifier + number_literal) )))) == number_literal) && (binary_expression "*(int *)(iVar3 + 0x3c) == 0" (pointer_expression "*(int *)(iVar3 + 0x3c)" * (cast_expression "(int *)(iVar3 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x3c)" ( (binary_expression "iVar3 + 0x3c" identifier + number_literal) )))) == number_literal)) )) && (parenthesized_expression "(iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0" (assignment_expression "iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38)" identifier = (call_expression "FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38)" identifier (argument_list "(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38)" ( (pointer_expression "**(undefined4 **)(*param_1 + 0x20)" * (pointer_expression "*(undefined4 **)(*param_1 + 0x20)" * (cast_expression "(undefined4 **)(*param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x20)" ( (binary_expression "*param_1 + 0x20" (pointer_expression "*param_1" * identifier) + number_literal) ))))) , (binary_expression "iVar3 + 0x38" identifier + number_literal) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    *(undefined4 *)(iVar3 + 0x3c) = 0;\n    *(undefined4 *)(iVar3 + 0x38) = 0;\n    param_2[1] = 0;\n    *param_2 = 0;\n    return 1;\n  }" { (expression_statement "*(undefined4 *)(iVar3 + 0x3c) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x3c) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x3c)" * (cast_expression "(undefined4 *)(iVar3 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x3c)" ( (binary_expression "iVar3 + 0x3c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x38) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x38) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x38)" * (cast_expression "(undefined4 *)(iVar3 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x38)" ( (binary_expression "iVar3 + 0x38" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar1 = *(int *)(iVar3 + 0x38);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x38)" identifier = (pointer_expression "*(int *)(iVar3 + 0x38)" * (cast_expression "(int *)(iVar3 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x38)" ( (binary_expression "iVar3 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(iVar3 + 0x3c);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0x3c)" identifier = (pointer_expression "*(int *)(iVar3 + 0x3c)" * (cast_expression "(int *)(iVar3 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x3c)" ( (binary_expression "iVar3 + 0x3c" identifier + number_literal) ))))) ;) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = iVar3;" (assignment_expression "param_2[1] = iVar3" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((iVar1 < 1) && ((iVar1 != 0 || (iVar3 == 0)))) {\n    uVar2 = 1;\n  }\n  else {\n    *(undefined1 *)(param_2 + 10) = 1;\n    uVar2 = 0;\n  }" if (parenthesized_expression "((iVar1 < 1) && ((iVar1 != 0 || (iVar3 == 0))))" ( (binary_expression "(iVar1 < 1) && ((iVar1 != 0 || (iVar3 == 0)))" (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) && (parenthesized_expression "((iVar1 != 0 || (iVar3 == 0)))" ( (parenthesized_expression "(iVar1 != 0 || (iVar3 == 0))" ( (binary_expression "iVar1 != 0 || (iVar3 == 0)" (binary_expression "iVar1 != 0" identifier != number_literal) || (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) ))) )) ))) )) (compound_statement "{\n    uVar2 = 1;\n  }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    *(undefined1 *)(param_2 + 10) = 1;\n    uVar2 = 0;\n  }" else (compound_statement "{\n    *(undefined1 *)(param_2 + 10) = 1;\n    uVar2 = 0;\n  }" { (expression_statement "*(undefined1 *)(param_2 + 10) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 10) = 1" (pointer_expression "*(undefined1 *)(param_2 + 10)" * (cast_expression "(undefined1 *)(param_2 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 10)" ( (binary_expression "param_2 + 10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) && (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) , (binary_expression IDENT + LIT) )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_000468a0(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = param_1[3];\n  if ((*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0) &&\n     (iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0)) {\n    *(undefined4 *)(iVar3 + 0x3c) = 0;\n    *(undefined4 *)(iVar3 + 0x38) = 0;\n    param_2[1] = 0;\n    *param_2 = 0;\n    return 1;\n  }\n  iVar1 = *(int *)(iVar3 + 0x38);\n  iVar3 = *(int *)(iVar3 + 0x3c);\n  *param_2 = iVar1;\n  param_2[1] = iVar3;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (iVar3 == 0)))) {\n    uVar2 = 1;\n  }\n  else {\n    *(undefined1 *)(param_2 + 10) = 1;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_000468a0(int *param_1,int *param_2)" (identifier "FUN_000468a0") (parameter_list "(int *param_1,int *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = param_1[3];\n  if ((*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0) &&\n     (iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0)) {\n    *(undefined4 *)(iVar3 + 0x3c) = 0;\n    *(undefined4 *)(iVar3 + 0x38) = 0;\n    param_2[1] = 0;\n    *param_2 = 0;\n    return 1;\n  }\n  iVar1 = *(int *)(iVar3 + 0x38);\n  iVar3 = *(int *)(iVar3 + 0x3c);\n  *param_2 = iVar1;\n  param_2[1] = iVar3;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (iVar3 == 0)))) {\n    uVar2 = 1;\n  }\n  else {\n    *(undefined1 *)(param_2 + 10) = 1;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar3 = param_1[3];" (assignment_expression "iVar3 = param_1[3]" (identifier "iVar3") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (if_statement "if ((*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0) &&\n     (iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0)) {\n    *(undefined4 *)(iVar3 + 0x3c) = 0;\n    *(undefined4 *)(iVar3 + 0x38) = 0;\n    param_2[1] = 0;\n    *param_2 = 0;\n    return 1;\n  }" (if "if") (parenthesized_expression "((*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0) &&\n     (iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0))" (( "(") (binary_expression "(*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0) &&\n     (iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0)" (parenthesized_expression "(*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0)" (( "(") (binary_expression "*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0" (binary_expression "*(int *)(iVar3 + 0x38) == 0" (pointer_expression "*(int *)(iVar3 + 0x38)" (* "*") (cast_expression "(int *)(iVar3 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x38)" (( "(") (binary_expression "iVar3 + 0x38" (identifier "iVar3") (+ "+") (number_literal "0x38")) () ")")))) (== "==") (number_literal "0")) (&& "&&") (binary_expression "*(int *)(iVar3 + 0x3c) == 0" (pointer_expression "*(int *)(iVar3 + 0x3c)" (* "*") (cast_expression "(int *)(iVar3 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x3c)" (( "(") (binary_expression "iVar3 + 0x3c" (identifier "iVar3") (+ "+") (number_literal "0x3c")) () ")")))) (== "==") (number_literal "0"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0" (assignment_expression "iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38)" (identifier "iVar1") (= "=") (call_expression "FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38)" (identifier "FUN_00040c20") (argument_list "(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38)" (( "(") (pointer_expression "**(undefined4 **)(*param_1 + 0x20)" (* "*") (pointer_expression "*(undefined4 **)(*param_1 + 0x20)" (* "*") (cast_expression "(undefined4 **)(*param_1 + 0x20)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x20)" (( "(") (binary_expression "*param_1 + 0x20" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x20")) () ")"))))) (, ",") (binary_expression "iVar3 + 0x38" (identifier "iVar3") (+ "+") (number_literal "0x38")) () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    *(undefined4 *)(iVar3 + 0x3c) = 0;\n    *(undefined4 *)(iVar3 + 0x38) = 0;\n    param_2[1] = 0;\n    *param_2 = 0;\n    return 1;\n  }" ({ "{") (expression_statement "*(undefined4 *)(iVar3 + 0x3c) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x3c) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x3c)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x3c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x3c)" (( "(") (binary_expression "iVar3 + 0x3c" (identifier "iVar3") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0x38) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x38) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x38)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x38)" (( "(") (binary_expression "iVar3 + 0x38" (identifier "iVar3") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (number_literal "0")) (; ";")) (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 "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)(iVar3 + 0x38);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x38)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar3 + 0x38)" (* "*") (cast_expression "(int *)(iVar3 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x38)" (( "(") (binary_expression "iVar3 + 0x38" (identifier "iVar3") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar3 + 0x3c);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0x3c)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar3 + 0x3c)" (* "*") (cast_expression "(int *)(iVar3 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x3c)" (( "(") (binary_expression "iVar3 + 0x3c" (identifier "iVar3") (+ "+") (number_literal "0x3c")) () ")"))))) (; ";")) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "param_2[1] = iVar3;" (assignment_expression "param_2[1] = iVar3" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if ((iVar1 < 1) && ((iVar1 != 0 || (iVar3 == 0)))) {\n    uVar2 = 1;\n  }\n  else {\n    *(undefined1 *)(param_2 + 10) = 1;\n    uVar2 = 0;\n  }" (if "if") (parenthesized_expression "((iVar1 < 1) && ((iVar1 != 0 || (iVar3 == 0))))" (( "(") (binary_expression "(iVar1 < 1) && ((iVar1 != 0 || (iVar3 == 0)))" (parenthesized_expression "(iVar1 < 1)" (( "(") (binary_expression "iVar1 < 1" (identifier "iVar1") (< "<") (number_literal "1")) () ")")) (&& "&&") (parenthesized_expression "((iVar1 != 0 || (iVar3 == 0)))" (( "(") (parenthesized_expression "(iVar1 != 0 || (iVar3 == 0))" (( "(") (binary_expression "iVar1 != 0 || (iVar3 == 0)" (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) (|| "||") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    uVar2 = 1;\n  }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n    *(undefined1 *)(param_2 + 10) = 1;\n    uVar2 = 0;\n  }" (else "else") (compound_statement "{\n    *(undefined1 *)(param_2 + 10) = 1;\n    uVar2 = 0;\n  }" ({ "{") (expression_statement "*(undefined1 *)(param_2 + 10) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 10) = 1" (pointer_expression "*(undefined1 *)(param_2 + 10)" (* "*") (cast_expression "(undefined1 *)(param_2 + 10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 10)" (( "(") (binary_expression "param_2 + 10" (identifier "param_2") (+ "+") (number_literal "10")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

int function_1(type_1 *context,type_2 *p)

{
  int var_2;
  int var_3;
  type_3 *pVVar3;
  
  pVVar3 = context->pVdbe;
  if ((*(int *)&pVVar3->iCurrentTime == 0 && (int)pVVar3->iCurrentTime == 0) &&
     (var_2 = var_1(context->pOut->db->pVfs,&pVVar3->iCurrentTime), var_2 != 0))
  {
    *(type_4 *)((int)&pVVar3->iCurrentTime + 4) = 0;
    *(type_4 *)&pVVar3->iCurrentTime = 0;
    *(type_4 *)((int)&p->iJD + 4) = 0;
    *(type_4 *)&p->iJD = 0;
    return 1;
  }
  var_2 = *(int *)&pVVar3->iCurrentTime;
  var_3 = (int)pVVar3->iCurrentTime;
  *(int *)&p->iJD = var_2;
  *(int *)((int)&p->iJD + 4) = var_3;
  if ((var_2 < 1) && ((var_2 != 0 || (var_3 == 0)))) {
    var_2 = 1;
  }
  else {
    p->validJD = '\x01';
    var_2 = 0;
  }
  return var_2;
}


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

undefined4 MASKED(int *param_1,int *param_2)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  
  iVar3 = param_1[3];
  if ((*(int *)(iVar3 + 0x38) == 0 && *(int *)(iVar3 + 0x3c) == 0) &&
     (iVar1 = FUN_00040c20(**(undefined4 **)(*param_1 + 0x20),iVar3 + 0x38), iVar1 != 0)) {
    *(undefined4 *)(iVar3 + 0x3c) = 0;
    *(undefined4 *)(iVar3 + 0x38) = 0;
    param_2[1] = 0;
    *param_2 = 0;
    return 1;
  }
  iVar1 = *(int *)(iVar3 + 0x38);
  iVar3 = *(int *)(iVar3 + 0x3c);
  *param_2 = iVar1;
  param_2[1] = iVar3;
  if ((iVar1 < 1) && ((iVar1 != 0 || (iVar3 == 0)))) {
    uVar2 = 1;
  }
  else {
    *(undefined1 *)(param_2 + 10) = 1;
    uVar2 = 0;
  }
  return uVar2;
}

