
void pinger_schedule(Pinger pinger)

{
  ulong uVar1;
  
  if (pinger->interval == 0) {
    pinger->pending = 0;
    return;
  }
  uVar1 = schedule_timer(pinger->interval * 1000,(timer_fn_t)(PTR_LAB_000b54a8 + 0x6a8c),pinger);
  if ((pinger->pending == 0) || (uVar1 - pinger->when_set < pinger->next - pinger->when_set)) {
    pinger->next = uVar1;
    uVar1 = timing_last_clock();
    pinger->when_set = uVar1;
    pinger->pending = 1;
  }
  return;
}



void FUN_000369f0(int *param_1)

{
  int iVar1;
  
  if (*param_1 == 0) {
    param_1[1] = 0;
    return;
  }
  iVar1 = schedule_timer(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1);
  if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {
    param_1[3] = iVar1;
    iVar1 = timing_last_clock();
    param_1[2] = iVar1;
    param_1[1] = 1;
  }
  return;
}


lui gp,0x8
addiu gp,gp,0x67e0
addu gp,gp,t9
lw v0,0x0(a0)
bne v0,zero,0x00036a10
_lw a1,-0x7d28(gp)
jr ra
_sw zero,0x4(a0)
addiu sp,sp,-0x20
or a2,a0,zero
lw t9,-0x7c94(gp)
sw s0,0x18(sp)
or s0,a0,zero
li a0,0x3e8
sw gp,0x10(sp)
addiu a1,a1,0x6a8c
sw ra,0x1c(sp)
bal 0x00052d0c
_mul a0,v0,a0
lw v1,0x4(s0)
beq v1,zero,0x00036a64
_lw gp,0x10(sp)
lw a1,0x8(s0)
lw a0,0xc(s0)
subu v1,v0,a1
subu a0,a0,a1
sltu v1,v1,a0
beq v1,zero,0x00036a80
_lw ra,0x1c(sp)
lw t9,-0x7c90(gp)
bal 0x00052e7c
_sw v0,0xc(s0)
sw v0,0x8(s0)
li v0,0x1
sw v0,0x4(s0)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void FUN_000369f0(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    param_1[1] = 0;\n    return;\n  }\n  iVar1 = schedule_timer(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1);\n  if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n    param_1[3] = iVar1;\n    iVar1 = timing_last_clock();\n    param_1[2] = iVar1;\n    param_1[1] = 1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_000369f0(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    param_1[1] = 0;\n    return;\n  }\n  iVar1 = schedule_timer(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1);\n  if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n    param_1[3] = iVar1;\n    iVar1 = timing_last_clock();\n    param_1[2] = iVar1;\n    param_1[1] = 1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000369f0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    param_1[1] = 0;\n    return;\n  }\n  iVar1 = schedule_timer(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1);\n  if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n    param_1[3] = iVar1;\n    iVar1 = timing_last_clock();\n    param_1[2] = iVar1;\n    param_1[1] = 1;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*param_1 == 0) {\n    param_1[1] = 0;\n    return;\n  }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    param_1[1] = 0;\n    return;\n  }" { (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = schedule_timer(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1);" (assignment_expression "iVar1 = schedule_timer(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1)" identifier = (call_expression "schedule_timer(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1)" identifier (argument_list "(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1)" ( (binary_expression "*param_1 * 1000" (pointer_expression "*param_1" * identifier) * number_literal) , (binary_expression "PTR_LAB_000b54a8 + 0x6a8c" identifier + number_literal) , identifier )))) ;) (if_statement "if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n    param_1[3] = iVar1;\n    iVar1 = timing_last_clock();\n    param_1[2] = iVar1;\n    param_1[1] = 1;\n  }" if (parenthesized_expression "((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2])))" ( (binary_expression "(param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))" (parenthesized_expression "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )) || (parenthesized_expression "((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))" ( (binary_expression "(uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2])" (call_expression "(uint)(iVar1 - param_1[2])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 - param_1[2])" ( (binary_expression "iVar1 - param_1[2]" identifier - (subscript_expression "param_1[2]" identifier [ number_literal ])) ))) < (call_expression "(uint)(param_1[3] - param_1[2])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[3] - param_1[2])" ( (binary_expression "param_1[3] - param_1[2]" (subscript_expression "param_1[3]" identifier [ number_literal ]) - (subscript_expression "param_1[2]" identifier [ number_literal ])) )))) ))) )) (compound_statement "{\n    param_1[3] = iVar1;\n    iVar1 = timing_last_clock();\n    param_1[2] = iVar1;\n    param_1[1] = 1;\n  }" { (expression_statement "param_1[3] = iVar1;" (assignment_expression "param_1[3] = iVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = timing_last_clock();" (assignment_expression "iVar1 = timing_last_clock()" identifier = (call_expression "timing_last_clock()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1[2] = iVar1;" (assignment_expression "param_1[2] = iVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[1] = 1;" (assignment_expression "param_1[1] = 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void pinger_schedule(Pinger pinger)\n\n{\n  ulong uVar1;\n  \n  if (pinger->interval == 0) {\n    pinger->pending = 0;\n    return;\n  }\n  uVar1 = schedule_timer(pinger->interval * 1000,(timer_fn_t)(PTR_LAB_000b54a8 + 0x6a8c),pinger);\n  if ((pinger->pending == 0) || (uVar1 - pinger->when_set < pinger->next - pinger->when_set)) {\n    pinger->next = uVar1;\n    uVar1 = timing_last_clock();\n    pinger->when_set = uVar1;\n    pinger->pending = 1;\n  }\n  return;\n}\n\n" (function_definition "void pinger_schedule(Pinger pinger)\n\n{\n  ulong uVar1;\n  \n  if (pinger->interval == 0) {\n    pinger->pending = 0;\n    return;\n  }\n  uVar1 = schedule_timer(pinger->interval * 1000,(timer_fn_t)(PTR_LAB_000b54a8 + 0x6a8c),pinger);\n  if ((pinger->pending == 0) || (uVar1 - pinger->when_set < pinger->next - pinger->when_set)) {\n    pinger->next = uVar1;\n    uVar1 = timing_last_clock();\n    pinger->when_set = uVar1;\n    pinger->pending = 1;\n  }\n  return;\n}" primitive_type (function_declarator "pinger_schedule(Pinger pinger)" identifier (parameter_list "(Pinger pinger)" ( (parameter_declaration "Pinger pinger" type_identifier identifier) ))) (compound_statement "{\n  ulong uVar1;\n  \n  if (pinger->interval == 0) {\n    pinger->pending = 0;\n    return;\n  }\n  uVar1 = schedule_timer(pinger->interval * 1000,(timer_fn_t)(PTR_LAB_000b54a8 + 0x6a8c),pinger);\n  if ((pinger->pending == 0) || (uVar1 - pinger->when_set < pinger->next - pinger->when_set)) {\n    pinger->next = uVar1;\n    uVar1 = timing_last_clock();\n    pinger->when_set = uVar1;\n    pinger->pending = 1;\n  }\n  return;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (if_statement "if (pinger->interval == 0) {\n    pinger->pending = 0;\n    return;\n  }" if (parenthesized_expression "(pinger->interval == 0)" ( (binary_expression "pinger->interval == 0" (field_expression "pinger->interval" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    pinger->pending = 0;\n    return;\n  }" { (expression_statement "pinger->pending = 0;" (assignment_expression "pinger->pending = 0" (field_expression "pinger->pending" identifier -> field_identifier) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "uVar1 = schedule_timer(pinger->interval * 1000,(timer_fn_t)(PTR_LAB_000b54a8 + 0x6a8c),pinger);" (assignment_expression "uVar1 = schedule_timer(pinger->interval * 1000,(timer_fn_t)(PTR_LAB_000b54a8 + 0x6a8c),pinger)" identifier = (call_expression "schedule_timer(pinger->interval * 1000,(timer_fn_t)(PTR_LAB_000b54a8 + 0x6a8c),pinger)" identifier (argument_list "(pinger->interval * 1000,(timer_fn_t)(PTR_LAB_000b54a8 + 0x6a8c),pinger)" ( (binary_expression "pinger->interval * 1000" (field_expression "pinger->interval" identifier -> field_identifier) * number_literal) , (call_expression "(timer_fn_t)(PTR_LAB_000b54a8 + 0x6a8c)" (parenthesized_expression "(timer_fn_t)" ( identifier )) (argument_list "(PTR_LAB_000b54a8 + 0x6a8c)" ( (binary_expression "PTR_LAB_000b54a8 + 0x6a8c" identifier + number_literal) ))) , identifier )))) ;) (if_statement "if ((pinger->pending == 0) || (uVar1 - pinger->when_set < pinger->next - pinger->when_set)) {\n    pinger->next = uVar1;\n    uVar1 = timing_last_clock();\n    pinger->when_set = uVar1;\n    pinger->pending = 1;\n  }" if (parenthesized_expression "((pinger->pending == 0) || (uVar1 - pinger->when_set < pinger->next - pinger->when_set))" ( (binary_expression "(pinger->pending == 0) || (uVar1 - pinger->when_set < pinger->next - pinger->when_set)" (parenthesized_expression "(pinger->pending == 0)" ( (binary_expression "pinger->pending == 0" (field_expression "pinger->pending" identifier -> field_identifier) == number_literal) )) || (parenthesized_expression "(uVar1 - pinger->when_set < pinger->next - pinger->when_set)" ( (binary_expression "uVar1 - pinger->when_set < pinger->next - pinger->when_set" (binary_expression "uVar1 - pinger->when_set" identifier - (field_expression "pinger->when_set" identifier -> field_identifier)) < (binary_expression "pinger->next - pinger->when_set" (field_expression "pinger->next" identifier -> field_identifier) - (field_expression "pinger->when_set" identifier -> field_identifier))) ))) )) (compound_statement "{\n    pinger->next = uVar1;\n    uVar1 = timing_last_clock();\n    pinger->when_set = uVar1;\n    pinger->pending = 1;\n  }" { (expression_statement "pinger->next = uVar1;" (assignment_expression "pinger->next = uVar1" (field_expression "pinger->next" identifier -> field_identifier) = identifier) ;) (expression_statement "uVar1 = timing_last_clock();" (assignment_expression "uVar1 = timing_last_clock()" identifier = (call_expression "timing_last_clock()" identifier (argument_list "()" ( )))) ;) (expression_statement "pinger->when_set = uVar1;" (assignment_expression "pinger->when_set = uVar1" (field_expression "pinger->when_set" identifier -> field_identifier) = identifier) ;) (expression_statement "pinger->pending = 1;" (assignment_expression "pinger->pending = 1" (field_expression "pinger->pending" identifier -> field_identifier) = number_literal) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000369f0(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    param_1[1] = 0;\n    return;\n  }\n  iVar1 = schedule_timer(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1);\n  if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n    param_1[3] = iVar1;\n    iVar1 = timing_last_clock();\n    param_1[2] = iVar1;\n    param_1[1] = 1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_000369f0(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    param_1[1] = 0;\n    return;\n  }\n  iVar1 = schedule_timer(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1);\n  if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n    param_1[3] = iVar1;\n    iVar1 = timing_last_clock();\n    param_1[2] = iVar1;\n    param_1[1] = 1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000369f0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    param_1[1] = 0;\n    return;\n  }\n  iVar1 = schedule_timer(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1);\n  if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n    param_1[3] = iVar1;\n    iVar1 = timing_last_clock();\n    param_1[2] = iVar1;\n    param_1[1] = 1;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*param_1 == 0) {\n    param_1[1] = 0;\n    return;\n  }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    param_1[1] = 0;\n    return;\n  }" { (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = schedule_timer(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1);" (assignment_expression "iVar1 = schedule_timer(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1)" identifier = (call_expression "schedule_timer(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1)" identifier (argument_list "(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1)" ( (binary_expression "*param_1 * 1000" (pointer_expression "*param_1" * identifier) * number_literal) , (binary_expression "PTR_LAB_000b54a8 + 0x6a8c" identifier + number_literal) , identifier )))) ;) (if_statement "if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n    param_1[3] = iVar1;\n    iVar1 = timing_last_clock();\n    param_1[2] = iVar1;\n    param_1[1] = 1;\n  }" if (parenthesized_expression "((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2])))" ( (binary_expression "(param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))" (parenthesized_expression "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )) || (parenthesized_expression "((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))" ( (binary_expression "(uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2])" (call_expression "(uint)(iVar1 - param_1[2])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 - param_1[2])" ( (binary_expression "iVar1 - param_1[2]" identifier - (subscript_expression "param_1[2]" identifier [ number_literal ])) ))) < (call_expression "(uint)(param_1[3] - param_1[2])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[3] - param_1[2])" ( (binary_expression "param_1[3] - param_1[2]" (subscript_expression "param_1[3]" identifier [ number_literal ]) - (subscript_expression "param_1[2]" identifier [ number_literal ])) )))) ))) )) (compound_statement "{\n    param_1[3] = iVar1;\n    iVar1 = timing_last_clock();\n    param_1[2] = iVar1;\n    param_1[1] = 1;\n  }" { (expression_statement "param_1[3] = iVar1;" (assignment_expression "param_1[3] = iVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = timing_last_clock();" (assignment_expression "iVar1 = timing_last_clock()" identifier = (call_expression "timing_last_clock()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1[2] = iVar1;" (assignment_expression "param_1[2] = iVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[1] = 1;" (assignment_expression "param_1[1] = 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * IDENT) * LIT) , (binary_expression IDENT + LIT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) || (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - (subscript_expression IDENT [ LIT ])) ))) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ LIT ])) )))) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (return_statement return ;) })))
(function_definition "void FUN_000369f0(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    param_1[1] = 0;\n    return;\n  }\n  iVar1 = schedule_timer(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1);\n  if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n    param_1[3] = iVar1;\n    iVar1 = timing_last_clock();\n    param_1[2] = iVar1;\n    param_1[1] = 1;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000369f0(int *param_1)" (identifier "FUN_000369f0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    param_1[1] = 0;\n    return;\n  }\n  iVar1 = schedule_timer(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1);\n  if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n    param_1[3] = iVar1;\n    iVar1 = timing_last_clock();\n    param_1[2] = iVar1;\n    param_1[1] = 1;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (*param_1 == 0) {\n    param_1[1] = 0;\n    return;\n  }" (if "if") (parenthesized_expression "(*param_1 == 0)" (( "(") (binary_expression "*param_1 == 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_1[1] = 0;\n    return;\n  }" ({ "{") (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = schedule_timer(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1);" (assignment_expression "iVar1 = schedule_timer(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1)" (identifier "iVar1") (= "=") (call_expression "schedule_timer(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1)" (identifier "schedule_timer") (argument_list "(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1)" (( "(") (binary_expression "*param_1 * 1000" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (* "*") (number_literal "1000")) (, ",") (binary_expression "PTR_LAB_000b54a8 + 0x6a8c" (identifier "PTR_LAB_000b54a8") (+ "+") (number_literal "0x6a8c")) (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n    param_1[3] = iVar1;\n    iVar1 = timing_last_clock();\n    param_1[2] = iVar1;\n    param_1[1] = 1;\n  }" (if "if") (parenthesized_expression "((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2])))" (( "(") (binary_expression "(param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))" (parenthesized_expression "(param_1[1] == 0)" (( "(") (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))" (( "(") (binary_expression "(uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2])" (call_expression "(uint)(iVar1 - param_1[2])" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar1 - param_1[2])" (( "(") (binary_expression "iVar1 - param_1[2]" (identifier "iVar1") (- "-") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) () ")"))) (< "<") (call_expression "(uint)(param_1[3] - param_1[2])" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1[3] - param_1[2])" (( "(") (binary_expression "param_1[3] - param_1[2]" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (- "-") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) () ")")))) () ")"))) () ")")) (compound_statement "{\n    param_1[3] = iVar1;\n    iVar1 = timing_last_clock();\n    param_1[2] = iVar1;\n    param_1[1] = 1;\n  }" ({ "{") (expression_statement "param_1[3] = iVar1;" (assignment_expression "param_1[3] = iVar1" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "iVar1 = timing_last_clock();" (assignment_expression "iVar1 = timing_last_clock()" (identifier "iVar1") (= "=") (call_expression "timing_last_clock()" (identifier "timing_last_clock") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "param_1[2] = iVar1;" (assignment_expression "param_1[2] = iVar1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "param_1[1] = 1;" (assignment_expression "param_1[1] = 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "1")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 pinger)

{
  type_2 var_3;
  
  if (pinger->interval == 0) {
    pinger->pending = 0;
    return;
  }
  var_3 = var_1(pinger->interval * 1000,(timer_fn_t)(var_2 + 0x6a8c),pinger);
  if ((pinger->pending == 0) || (var_3 - pinger->when_set < pinger->next - pinger->when_set)) {
    pinger->next = var_3;
    var_3 = var_4();
    pinger->when_set = var_3;
    pinger->pending = 1;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) (return_statement))))

void MASKED(int *param_1)

{
  int iVar1;
  
  if (*param_1 == 0) {
    param_1[1] = 0;
    return;
  }
  iVar1 = schedule_timer(*param_1 * 1000,PTR_LAB_000b54a8 + 0x6a8c,param_1);
  if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {
    param_1[3] = iVar1;
    iVar1 = timing_last_clock();
    param_1[2] = iVar1;
    param_1[1] = 1;
  }
  return;
}

