
void noise_ultralight(ulong data)

{
  int iVar1;
  int *piVar2;
  undefined4 *puVar3;
  int *piVar4;
  undefined4 *in_a2;
  undefined4 *in_a3;
  int *piVar5;
  undefined *puVar6;
  ulong local_res0 [4];
  undefined4 uStack_60;
  undefined4 uStack_5c;
  undefined4 uStack_58;
  timeval tv;
  
  puVar6 = PTR___stack_chk_guard_000b2f04;
  iVar1 = *(int *)PTR___stack_chk_guard_000b2f04;
  local_res0[0] = data;
  (*(code *)PTR_gettimeofday_000b2ee8)(&tv,0);
  random_add_noise(&tv,8);
  puVar3 = (undefined4 *)&DAT_00000004;
  random_add_noise(local_res0,4);
  if (iVar1 == *(int *)puVar6) {
    return;
  }
  puVar6 = PTR___stack_chk_fail_000b2ed8;
  (*(code *)PTR___stack_chk_fail_000b2ed8)();
  piVar5 = *(int **)(puVar6 + 0x2dff4);
  piVar4 = (int *)&DAT_0000ffff;
  piVar2 = (int *)*piVar5;
  iVar1 = (**(code **)(puVar6 + 0x2dfb4))();
  if (iVar1 == 0) {
    *puVar3 = uStack_60;
    *in_a2 = uStack_5c;
    *in_a3 = uStack_58;
  }
  if (piVar2 != (int *)*piVar5) {
    (**(code **)(puVar6 + 0x2dfc8))();
    if (*piVar2 < *piVar4) {
      return;
    }
    return;
  }
  return;
}



uint noise_ultralight(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)

{
  int *piVar1;
  int iVar2;
  undefined4 *puVar3;
  int *piVar4;
  int *piVar5;
  undefined *puVar6;
  undefined4 local_res0 [4];
  undefined4 uStack_60;
  undefined4 uStack_5c;
  undefined4 uStack_58;
  undefined1 auStack_1c [8];
  uint local_14;
  
  puVar6 = PTR___stack_chk_guard_000b2f04;
  local_14 = *(uint *)PTR___stack_chk_guard_000b2f04;
  local_res0[0] = param_1;
  (*(code *)PTR_gettimeofday_000b2ee8)(auStack_1c,0);
  random_add_noise(auStack_1c,8);
  puVar3 = (undefined4 *)&DAT_00000004;
  random_add_noise(local_res0);
  if (local_14 == *(uint *)puVar6) {
    return *(uint *)puVar6;
  }
  puVar6 = PTR___stack_chk_fail_000b2ed8;
  (*(code *)PTR___stack_chk_fail_000b2ed8)();
  piVar5 = *(int **)(puVar6 + 0x2dff4);
  piVar4 = (int *)&DAT_0000ffff;
  piVar1 = (int *)*piVar5;
  iVar2 = (**(code **)(puVar6 + 0x2dfb4))();
  if (iVar2 == 0) {
    *puVar3 = uStack_60;
    *param_3 = uStack_5c;
    *param_4 = uStack_58;
  }
  if (piVar1 != (int *)*piVar5) {
    (**(code **)(puVar6 + 0x2dfc8))();
    if (*piVar1 < *piVar4) {
      return 0xffffffff;
    }
    return (uint)(*piVar4 < *piVar1);
  }
  return (uint)(iVar2 == 0);
}


lui gp,0x3
addiu gp,gp,0x5508
addu gp,gp,t9
addiu sp,sp,-0x38
lw t9,-0x7488(gp)
or a1,zero,zero
sw s1,0x30(sp)
lw s1,-0x746c(gp)
sw s0,0x2c(sp)
addiu s0,sp,0x1c
sw ra,0x34(sp)
sw gp,0x10(sp)
sw a0,0x38(sp)
or a0,s0,zero
lw v0,0x0(s1)
sw v0,0x24(sp)
jalr t9
_nop
li a1,0x8
lw gp,0x10(sp)
lw t9,-0x77bc(gp)
bal 0x0006f750
_or a0,s0,zero
li a1,0x4
lw gp,0x10(sp)
lw t9,-0x77bc(gp)
bal 0x0006f750
_addiu a0,sp,0x38
lw v1,0x24(sp)
lw v0,0x0(s1)
bne v1,v0,0x00084efc
_lw gp,0x10(sp)
lw ra,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x38
lw t9,-0x7498(gp)
jalr t9
_nop
nop
nop
(translation_unit "uint noise_ultralight(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  int *piVar5;\n  undefined *puVar6;\n  undefined4 local_res0 [4];\n  undefined4 uStack_60;\n  undefined4 uStack_5c;\n  undefined4 uStack_58;\n  undefined1 auStack_1c [8];\n  uint local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  local_14 = *(uint *)PTR___stack_chk_guard_000b2f04;\n  local_res0[0] = param_1;\n  (*(code *)PTR_gettimeofday_000b2ee8)(auStack_1c,0);\n  random_add_noise(auStack_1c,8);\n  puVar3 = (undefined4 *)&DAT_00000004;\n  random_add_noise(local_res0);\n  if (local_14 == *(uint *)puVar6) {\n    return *(uint *)puVar6;\n  }\n  puVar6 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  piVar5 = *(int **)(puVar6 + 0x2dff4);\n  piVar4 = (int *)&DAT_0000ffff;\n  piVar1 = (int *)*piVar5;\n  iVar2 = (**(code **)(puVar6 + 0x2dfb4))();\n  if (iVar2 == 0) {\n    *puVar3 = uStack_60;\n    *param_3 = uStack_5c;\n    *param_4 = uStack_58;\n  }\n  if (piVar1 != (int *)*piVar5) {\n    (**(code **)(puVar6 + 0x2dfc8))();\n    if (*piVar1 < *piVar4) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar4 < *piVar1);\n  }\n  return (uint)(iVar2 == 0);\n}\n\n" (function_definition "uint noise_ultralight(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  int *piVar5;\n  undefined *puVar6;\n  undefined4 local_res0 [4];\n  undefined4 uStack_60;\n  undefined4 uStack_5c;\n  undefined4 uStack_58;\n  undefined1 auStack_1c [8];\n  uint local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  local_14 = *(uint *)PTR___stack_chk_guard_000b2f04;\n  local_res0[0] = param_1;\n  (*(code *)PTR_gettimeofday_000b2ee8)(auStack_1c,0);\n  random_add_noise(auStack_1c,8);\n  puVar3 = (undefined4 *)&DAT_00000004;\n  random_add_noise(local_res0);\n  if (local_14 == *(uint *)puVar6) {\n    return *(uint *)puVar6;\n  }\n  puVar6 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  piVar5 = *(int **)(puVar6 + 0x2dff4);\n  piVar4 = (int *)&DAT_0000ffff;\n  piVar1 = (int *)*piVar5;\n  iVar2 = (**(code **)(puVar6 + 0x2dfb4))();\n  if (iVar2 == 0) {\n    *puVar3 = uStack_60;\n    *param_3 = uStack_5c;\n    *param_4 = uStack_58;\n  }\n  if (piVar1 != (int *)*piVar5) {\n    (**(code **)(puVar6 + 0x2dfc8))();\n    if (*piVar1 < *piVar4) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar4 < *piVar1);\n  }\n  return (uint)(iVar2 == 0);\n}" type_identifier (function_declarator "noise_ultralight(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  int *piVar5;\n  undefined *puVar6;\n  undefined4 local_res0 [4];\n  undefined4 uStack_60;\n  undefined4 uStack_5c;\n  undefined4 uStack_58;\n  undefined1 auStack_1c [8];\n  uint local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  local_14 = *(uint *)PTR___stack_chk_guard_000b2f04;\n  local_res0[0] = param_1;\n  (*(code *)PTR_gettimeofday_000b2ee8)(auStack_1c,0);\n  random_add_noise(auStack_1c,8);\n  puVar3 = (undefined4 *)&DAT_00000004;\n  random_add_noise(local_res0);\n  if (local_14 == *(uint *)puVar6) {\n    return *(uint *)puVar6;\n  }\n  puVar6 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  piVar5 = *(int **)(puVar6 + 0x2dff4);\n  piVar4 = (int *)&DAT_0000ffff;\n  piVar1 = (int *)*piVar5;\n  iVar2 = (**(code **)(puVar6 + 0x2dfb4))();\n  if (iVar2 == 0) {\n    *puVar3 = uStack_60;\n    *param_3 = uStack_5c;\n    *param_4 = uStack_58;\n  }\n  if (piVar1 != (int *)*piVar5) {\n    (**(code **)(puVar6 + 0x2dfc8))();\n    if (*piVar1 < *piVar4) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar4 < *piVar1);\n  }\n  return (uint)(iVar2 == 0);\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 local_res0 [4];" type_identifier (array_declarator "local_res0 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_60;" type_identifier identifier ;) (declaration "undefined4 uStack_5c;" type_identifier identifier ;) (declaration "undefined4 uStack_58;" type_identifier identifier ;) (declaration "undefined1 auStack_1c [8];" type_identifier (array_declarator "auStack_1c [8]" identifier [ number_literal ]) ;) (declaration "uint local_14;" type_identifier identifier ;) (expression_statement "puVar6 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar6 = PTR___stack_chk_guard_000b2f04" identifier = identifier) ;) (expression_statement "local_14 = *(uint *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "local_14 = *(uint *)PTR___stack_chk_guard_000b2f04" identifier = (pointer_expression "*(uint *)PTR___stack_chk_guard_000b2f04" * (cast_expression "(uint *)PTR___stack_chk_guard_000b2f04" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_res0[0] = param_1;" (assignment_expression "local_res0[0] = param_1" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)PTR_gettimeofday_000b2ee8)(auStack_1c,0);" (call_expression "(*(code *)PTR_gettimeofday_000b2ee8)(auStack_1c,0)" (parenthesized_expression "(*(code *)PTR_gettimeofday_000b2ee8)" ( (pointer_expression "*(code *)PTR_gettimeofday_000b2ee8" * (cast_expression "(code *)PTR_gettimeofday_000b2ee8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_1c,0)" ( identifier , number_literal ))) ;) (expression_statement "random_add_noise(auStack_1c,8);" (call_expression "random_add_noise(auStack_1c,8)" identifier (argument_list "(auStack_1c,8)" ( identifier , number_literal ))) ;) (expression_statement "puVar3 = (undefined4 *)&DAT_00000004;" (assignment_expression "puVar3 = (undefined4 *)&DAT_00000004" identifier = (cast_expression "(undefined4 *)&DAT_00000004" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00000004" & identifier))) ;) (expression_statement "random_add_noise(local_res0);" (call_expression "random_add_noise(local_res0)" identifier (argument_list "(local_res0)" ( identifier ))) ;) (if_statement "if (local_14 == *(uint *)puVar6) {\n    return *(uint *)puVar6;\n  }" if (parenthesized_expression "(local_14 == *(uint *)puVar6)" ( (binary_expression "local_14 == *(uint *)puVar6" identifier == (pointer_expression "*(uint *)puVar6" * (cast_expression "(uint *)puVar6" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return *(uint *)puVar6;\n  }" { (return_statement "return *(uint *)puVar6;" return (pointer_expression "*(uint *)puVar6" * (cast_expression "(uint *)puVar6" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "puVar6 = PTR___stack_chk_fail_000b2ed8;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000b2ed8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b2ed8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b2ed8" * (cast_expression "(code *)PTR___stack_chk_fail_000b2ed8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar5 = *(int **)(puVar6 + 0x2dff4);" (assignment_expression "piVar5 = *(int **)(puVar6 + 0x2dff4)" identifier = (pointer_expression "*(int **)(puVar6 + 0x2dff4)" * (cast_expression "(int **)(puVar6 + 0x2dff4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x2dff4)" ( (binary_expression "puVar6 + 0x2dff4" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = (int *)&DAT_0000ffff;" (assignment_expression "piVar4 = (int *)&DAT_0000ffff" identifier = (cast_expression "(int *)&DAT_0000ffff" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0000ffff" & identifier))) ;) (expression_statement "piVar1 = (int *)*piVar5;" (assignment_expression "piVar1 = (int *)*piVar5" identifier = (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) ;) (expression_statement "iVar2 = (**(code **)(puVar6 + 0x2dfb4))();" (assignment_expression "iVar2 = (**(code **)(puVar6 + 0x2dfb4))()" identifier = (call_expression "(**(code **)(puVar6 + 0x2dfb4))()" (parenthesized_expression "(**(code **)(puVar6 + 0x2dfb4))" ( (pointer_expression "**(code **)(puVar6 + 0x2dfb4)" * (pointer_expression "*(code **)(puVar6 + 0x2dfb4)" * (cast_expression "(code **)(puVar6 + 0x2dfb4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x2dfb4)" ( (binary_expression "puVar6 + 0x2dfb4" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n    *puVar3 = uStack_60;\n    *param_3 = uStack_5c;\n    *param_4 = uStack_58;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    *puVar3 = uStack_60;\n    *param_3 = uStack_5c;\n    *param_4 = uStack_58;\n  }" { (expression_statement "*puVar3 = uStack_60;" (assignment_expression "*puVar3 = uStack_60" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "*param_3 = uStack_5c;" (assignment_expression "*param_3 = uStack_5c" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "*param_4 = uStack_58;" (assignment_expression "*param_4 = uStack_58" (pointer_expression "*param_4" * identifier) = identifier) ;) })) (if_statement "if (piVar1 != (int *)*piVar5) {\n    (**(code **)(puVar6 + 0x2dfc8))();\n    if (*piVar1 < *piVar4) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar4 < *piVar1);\n  }" if (parenthesized_expression "(piVar1 != (int *)*piVar5)" ( (binary_expression "piVar1 != (int *)*piVar5" identifier != (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) )) (compound_statement "{\n    (**(code **)(puVar6 + 0x2dfc8))();\n    if (*piVar1 < *piVar4) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar4 < *piVar1);\n  }" { (expression_statement "(**(code **)(puVar6 + 0x2dfc8))();" (call_expression "(**(code **)(puVar6 + 0x2dfc8))()" (parenthesized_expression "(**(code **)(puVar6 + 0x2dfc8))" ( (pointer_expression "**(code **)(puVar6 + 0x2dfc8)" * (pointer_expression "*(code **)(puVar6 + 0x2dfc8)" * (cast_expression "(code **)(puVar6 + 0x2dfc8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x2dfc8)" ( (binary_expression "puVar6 + 0x2dfc8" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (if_statement "if (*piVar1 < *piVar4) {\n      return 0xffffffff;\n    }" if (parenthesized_expression "(*piVar1 < *piVar4)" ( (binary_expression "*piVar1 < *piVar4" (pointer_expression "*piVar1" * identifier) < (pointer_expression "*piVar4" * identifier)) )) (compound_statement "{\n      return 0xffffffff;\n    }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (return_statement "return (uint)(*piVar4 < *piVar1);" return (call_expression "(uint)(*piVar4 < *piVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*piVar4 < *piVar1)" ( (binary_expression "*piVar4 < *piVar1" (pointer_expression "*piVar4" * identifier) < (pointer_expression "*piVar1" * identifier)) ))) ;) })) (return_statement "return (uint)(iVar2 == 0);" return (call_expression "(uint)(iVar2 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) ))) ;) })))
(translation_unit "void noise_ultralight(ulong data)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  undefined4 *in_a2;\n  undefined4 *in_a3;\n  int *piVar5;\n  undefined *puVar6;\n  ulong local_res0 [4];\n  undefined4 uStack_60;\n  undefined4 uStack_5c;\n  undefined4 uStack_58;\n  timeval tv;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  iVar1 = *(int *)PTR___stack_chk_guard_000b2f04;\n  local_res0[0] = data;\n  (*(code *)PTR_gettimeofday_000b2ee8)(&tv,0);\n  random_add_noise(&tv,8);\n  puVar3 = (undefined4 *)&DAT_00000004;\n  random_add_noise(local_res0,4);\n  if (iVar1 == *(int *)puVar6) {\n    return;\n  }\n  puVar6 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  piVar5 = *(int **)(puVar6 + 0x2dff4);\n  piVar4 = (int *)&DAT_0000ffff;\n  piVar2 = (int *)*piVar5;\n  iVar1 = (**(code **)(puVar6 + 0x2dfb4))();\n  if (iVar1 == 0) {\n    *puVar3 = uStack_60;\n    *in_a2 = uStack_5c;\n    *in_a3 = uStack_58;\n  }\n  if (piVar2 != (int *)*piVar5) {\n    (**(code **)(puVar6 + 0x2dfc8))();\n    if (*piVar2 < *piVar4) {\n      return;\n    }\n    return;\n  }\n  return;\n}\n\n" (function_definition "void noise_ultralight(ulong data)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  undefined4 *in_a2;\n  undefined4 *in_a3;\n  int *piVar5;\n  undefined *puVar6;\n  ulong local_res0 [4];\n  undefined4 uStack_60;\n  undefined4 uStack_5c;\n  undefined4 uStack_58;\n  timeval tv;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  iVar1 = *(int *)PTR___stack_chk_guard_000b2f04;\n  local_res0[0] = data;\n  (*(code *)PTR_gettimeofday_000b2ee8)(&tv,0);\n  random_add_noise(&tv,8);\n  puVar3 = (undefined4 *)&DAT_00000004;\n  random_add_noise(local_res0,4);\n  if (iVar1 == *(int *)puVar6) {\n    return;\n  }\n  puVar6 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  piVar5 = *(int **)(puVar6 + 0x2dff4);\n  piVar4 = (int *)&DAT_0000ffff;\n  piVar2 = (int *)*piVar5;\n  iVar1 = (**(code **)(puVar6 + 0x2dfb4))();\n  if (iVar1 == 0) {\n    *puVar3 = uStack_60;\n    *in_a2 = uStack_5c;\n    *in_a3 = uStack_58;\n  }\n  if (piVar2 != (int *)*piVar5) {\n    (**(code **)(puVar6 + 0x2dfc8))();\n    if (*piVar2 < *piVar4) {\n      return;\n    }\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "noise_ultralight(ulong data)" identifier (parameter_list "(ulong data)" ( (parameter_declaration "ulong data" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  undefined4 *in_a2;\n  undefined4 *in_a3;\n  int *piVar5;\n  undefined *puVar6;\n  ulong local_res0 [4];\n  undefined4 uStack_60;\n  undefined4 uStack_5c;\n  undefined4 uStack_58;\n  timeval tv;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  iVar1 = *(int *)PTR___stack_chk_guard_000b2f04;\n  local_res0[0] = data;\n  (*(code *)PTR_gettimeofday_000b2ee8)(&tv,0);\n  random_add_noise(&tv,8);\n  puVar3 = (undefined4 *)&DAT_00000004;\n  random_add_noise(local_res0,4);\n  if (iVar1 == *(int *)puVar6) {\n    return;\n  }\n  puVar6 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  piVar5 = *(int **)(puVar6 + 0x2dff4);\n  piVar4 = (int *)&DAT_0000ffff;\n  piVar2 = (int *)*piVar5;\n  iVar1 = (**(code **)(puVar6 + 0x2dfb4))();\n  if (iVar1 == 0) {\n    *puVar3 = uStack_60;\n    *in_a2 = uStack_5c;\n    *in_a3 = uStack_58;\n  }\n  if (piVar2 != (int *)*piVar5) {\n    (**(code **)(puVar6 + 0x2dfc8))();\n    if (*piVar2 < *piVar4) {\n      return;\n    }\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 *in_a2;" type_identifier (pointer_declarator "*in_a2" * identifier) ;) (declaration "undefined4 *in_a3;" type_identifier (pointer_declarator "*in_a3" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "ulong local_res0 [4];" type_identifier (array_declarator "local_res0 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_60;" type_identifier identifier ;) (declaration "undefined4 uStack_5c;" type_identifier identifier ;) (declaration "undefined4 uStack_58;" type_identifier identifier ;) (declaration "timeval tv;" type_identifier identifier ;) (expression_statement "puVar6 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar6 = PTR___stack_chk_guard_000b2f04" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_000b2f04" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b2f04" * (cast_expression "(int *)PTR___stack_chk_guard_000b2f04" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_res0[0] = data;" (assignment_expression "local_res0[0] = data" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)PTR_gettimeofday_000b2ee8)(&tv,0);" (call_expression "(*(code *)PTR_gettimeofday_000b2ee8)(&tv,0)" (parenthesized_expression "(*(code *)PTR_gettimeofday_000b2ee8)" ( (pointer_expression "*(code *)PTR_gettimeofday_000b2ee8" * (cast_expression "(code *)PTR_gettimeofday_000b2ee8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&tv,0)" ( (pointer_expression "&tv" & identifier) , number_literal ))) ;) (expression_statement "random_add_noise(&tv,8);" (call_expression "random_add_noise(&tv,8)" identifier (argument_list "(&tv,8)" ( (pointer_expression "&tv" & identifier) , number_literal ))) ;) (expression_statement "puVar3 = (undefined4 *)&DAT_00000004;" (assignment_expression "puVar3 = (undefined4 *)&DAT_00000004" identifier = (cast_expression "(undefined4 *)&DAT_00000004" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00000004" & identifier))) ;) (expression_statement "random_add_noise(local_res0,4);" (call_expression "random_add_noise(local_res0,4)" identifier (argument_list "(local_res0,4)" ( identifier , number_literal ))) ;) (if_statement "if (iVar1 == *(int *)puVar6) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)puVar6)" ( (binary_expression "iVar1 == *(int *)puVar6" identifier == (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar6 = PTR___stack_chk_fail_000b2ed8;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000b2ed8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b2ed8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b2ed8" * (cast_expression "(code *)PTR___stack_chk_fail_000b2ed8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar5 = *(int **)(puVar6 + 0x2dff4);" (assignment_expression "piVar5 = *(int **)(puVar6 + 0x2dff4)" identifier = (pointer_expression "*(int **)(puVar6 + 0x2dff4)" * (cast_expression "(int **)(puVar6 + 0x2dff4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x2dff4)" ( (binary_expression "puVar6 + 0x2dff4" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = (int *)&DAT_0000ffff;" (assignment_expression "piVar4 = (int *)&DAT_0000ffff" identifier = (cast_expression "(int *)&DAT_0000ffff" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0000ffff" & identifier))) ;) (expression_statement "piVar2 = (int *)*piVar5;" (assignment_expression "piVar2 = (int *)*piVar5" identifier = (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) ;) (expression_statement "iVar1 = (**(code **)(puVar6 + 0x2dfb4))();" (assignment_expression "iVar1 = (**(code **)(puVar6 + 0x2dfb4))()" identifier = (call_expression "(**(code **)(puVar6 + 0x2dfb4))()" (parenthesized_expression "(**(code **)(puVar6 + 0x2dfb4))" ( (pointer_expression "**(code **)(puVar6 + 0x2dfb4)" * (pointer_expression "*(code **)(puVar6 + 0x2dfb4)" * (cast_expression "(code **)(puVar6 + 0x2dfb4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x2dfb4)" ( (binary_expression "puVar6 + 0x2dfb4" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    *puVar3 = uStack_60;\n    *in_a2 = uStack_5c;\n    *in_a3 = uStack_58;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    *puVar3 = uStack_60;\n    *in_a2 = uStack_5c;\n    *in_a3 = uStack_58;\n  }" { (expression_statement "*puVar3 = uStack_60;" (assignment_expression "*puVar3 = uStack_60" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "*in_a2 = uStack_5c;" (assignment_expression "*in_a2 = uStack_5c" (pointer_expression "*in_a2" * identifier) = identifier) ;) (expression_statement "*in_a3 = uStack_58;" (assignment_expression "*in_a3 = uStack_58" (pointer_expression "*in_a3" * identifier) = identifier) ;) })) (if_statement "if (piVar2 != (int *)*piVar5) {\n    (**(code **)(puVar6 + 0x2dfc8))();\n    if (*piVar2 < *piVar4) {\n      return;\n    }\n    return;\n  }" if (parenthesized_expression "(piVar2 != (int *)*piVar5)" ( (binary_expression "piVar2 != (int *)*piVar5" identifier != (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) )) (compound_statement "{\n    (**(code **)(puVar6 + 0x2dfc8))();\n    if (*piVar2 < *piVar4) {\n      return;\n    }\n    return;\n  }" { (expression_statement "(**(code **)(puVar6 + 0x2dfc8))();" (call_expression "(**(code **)(puVar6 + 0x2dfc8))()" (parenthesized_expression "(**(code **)(puVar6 + 0x2dfc8))" ( (pointer_expression "**(code **)(puVar6 + 0x2dfc8)" * (pointer_expression "*(code **)(puVar6 + 0x2dfc8)" * (cast_expression "(code **)(puVar6 + 0x2dfc8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x2dfc8)" ( (binary_expression "puVar6 + 0x2dfc8" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (if_statement "if (*piVar2 < *piVar4) {\n      return;\n    }" if (parenthesized_expression "(*piVar2 < *piVar4)" ( (binary_expression "*piVar2 < *piVar4" (pointer_expression "*piVar2" * identifier) < (pointer_expression "*piVar4" * identifier)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "uint noise_ultralight(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  int *piVar5;\n  undefined *puVar6;\n  undefined4 local_res0 [4];\n  undefined4 uStack_60;\n  undefined4 uStack_5c;\n  undefined4 uStack_58;\n  undefined1 auStack_1c [8];\n  uint local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  local_14 = *(uint *)PTR___stack_chk_guard_000b2f04;\n  local_res0[0] = param_1;\n  (*(code *)PTR_gettimeofday_000b2ee8)(auStack_1c,0);\n  random_add_noise(auStack_1c,8);\n  puVar3 = (undefined4 *)&DAT_00000004;\n  random_add_noise(local_res0);\n  if (local_14 == *(uint *)puVar6) {\n    return *(uint *)puVar6;\n  }\n  puVar6 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  piVar5 = *(int **)(puVar6 + 0x2dff4);\n  piVar4 = (int *)&DAT_0000ffff;\n  piVar1 = (int *)*piVar5;\n  iVar2 = (**(code **)(puVar6 + 0x2dfb4))();\n  if (iVar2 == 0) {\n    *puVar3 = uStack_60;\n    *param_3 = uStack_5c;\n    *param_4 = uStack_58;\n  }\n  if (piVar1 != (int *)*piVar5) {\n    (**(code **)(puVar6 + 0x2dfc8))();\n    if (*piVar1 < *piVar4) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar4 < *piVar1);\n  }\n  return (uint)(iVar2 == 0);\n}\n\n" (function_definition "uint noise_ultralight(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  int *piVar5;\n  undefined *puVar6;\n  undefined4 local_res0 [4];\n  undefined4 uStack_60;\n  undefined4 uStack_5c;\n  undefined4 uStack_58;\n  undefined1 auStack_1c [8];\n  uint local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  local_14 = *(uint *)PTR___stack_chk_guard_000b2f04;\n  local_res0[0] = param_1;\n  (*(code *)PTR_gettimeofday_000b2ee8)(auStack_1c,0);\n  random_add_noise(auStack_1c,8);\n  puVar3 = (undefined4 *)&DAT_00000004;\n  random_add_noise(local_res0);\n  if (local_14 == *(uint *)puVar6) {\n    return *(uint *)puVar6;\n  }\n  puVar6 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  piVar5 = *(int **)(puVar6 + 0x2dff4);\n  piVar4 = (int *)&DAT_0000ffff;\n  piVar1 = (int *)*piVar5;\n  iVar2 = (**(code **)(puVar6 + 0x2dfb4))();\n  if (iVar2 == 0) {\n    *puVar3 = uStack_60;\n    *param_3 = uStack_5c;\n    *param_4 = uStack_58;\n  }\n  if (piVar1 != (int *)*piVar5) {\n    (**(code **)(puVar6 + 0x2dfc8))();\n    if (*piVar1 < *piVar4) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar4 < *piVar1);\n  }\n  return (uint)(iVar2 == 0);\n}" type_identifier (function_declarator "noise_ultralight(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  int *piVar5;\n  undefined *puVar6;\n  undefined4 local_res0 [4];\n  undefined4 uStack_60;\n  undefined4 uStack_5c;\n  undefined4 uStack_58;\n  undefined1 auStack_1c [8];\n  uint local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  local_14 = *(uint *)PTR___stack_chk_guard_000b2f04;\n  local_res0[0] = param_1;\n  (*(code *)PTR_gettimeofday_000b2ee8)(auStack_1c,0);\n  random_add_noise(auStack_1c,8);\n  puVar3 = (undefined4 *)&DAT_00000004;\n  random_add_noise(local_res0);\n  if (local_14 == *(uint *)puVar6) {\n    return *(uint *)puVar6;\n  }\n  puVar6 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  piVar5 = *(int **)(puVar6 + 0x2dff4);\n  piVar4 = (int *)&DAT_0000ffff;\n  piVar1 = (int *)*piVar5;\n  iVar2 = (**(code **)(puVar6 + 0x2dfb4))();\n  if (iVar2 == 0) {\n    *puVar3 = uStack_60;\n    *param_3 = uStack_5c;\n    *param_4 = uStack_58;\n  }\n  if (piVar1 != (int *)*piVar5) {\n    (**(code **)(puVar6 + 0x2dfc8))();\n    if (*piVar1 < *piVar4) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar4 < *piVar1);\n  }\n  return (uint)(iVar2 == 0);\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 local_res0 [4];" type_identifier (array_declarator "local_res0 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_60;" type_identifier identifier ;) (declaration "undefined4 uStack_5c;" type_identifier identifier ;) (declaration "undefined4 uStack_58;" type_identifier identifier ;) (declaration "undefined1 auStack_1c [8];" type_identifier (array_declarator "auStack_1c [8]" identifier [ number_literal ]) ;) (declaration "uint local_14;" type_identifier identifier ;) (expression_statement "puVar6 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar6 = PTR___stack_chk_guard_000b2f04" identifier = identifier) ;) (expression_statement "local_14 = *(uint *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "local_14 = *(uint *)PTR___stack_chk_guard_000b2f04" identifier = (pointer_expression "*(uint *)PTR___stack_chk_guard_000b2f04" * (cast_expression "(uint *)PTR___stack_chk_guard_000b2f04" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_res0[0] = param_1;" (assignment_expression "local_res0[0] = param_1" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)PTR_gettimeofday_000b2ee8)(auStack_1c,0);" (call_expression "(*(code *)PTR_gettimeofday_000b2ee8)(auStack_1c,0)" (parenthesized_expression "(*(code *)PTR_gettimeofday_000b2ee8)" ( (pointer_expression "*(code *)PTR_gettimeofday_000b2ee8" * (cast_expression "(code *)PTR_gettimeofday_000b2ee8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_1c,0)" ( identifier , number_literal ))) ;) (expression_statement "random_add_noise(auStack_1c,8);" (call_expression "random_add_noise(auStack_1c,8)" identifier (argument_list "(auStack_1c,8)" ( identifier , number_literal ))) ;) (expression_statement "puVar3 = (undefined4 *)&DAT_00000004;" (assignment_expression "puVar3 = (undefined4 *)&DAT_00000004" identifier = (cast_expression "(undefined4 *)&DAT_00000004" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00000004" & identifier))) ;) (expression_statement "random_add_noise(local_res0);" (call_expression "random_add_noise(local_res0)" identifier (argument_list "(local_res0)" ( identifier ))) ;) (if_statement "if (local_14 == *(uint *)puVar6) {\n    return *(uint *)puVar6;\n  }" if (parenthesized_expression "(local_14 == *(uint *)puVar6)" ( (binary_expression "local_14 == *(uint *)puVar6" identifier == (pointer_expression "*(uint *)puVar6" * (cast_expression "(uint *)puVar6" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return *(uint *)puVar6;\n  }" { (return_statement "return *(uint *)puVar6;" return (pointer_expression "*(uint *)puVar6" * (cast_expression "(uint *)puVar6" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "puVar6 = PTR___stack_chk_fail_000b2ed8;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000b2ed8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b2ed8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b2ed8" * (cast_expression "(code *)PTR___stack_chk_fail_000b2ed8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar5 = *(int **)(puVar6 + 0x2dff4);" (assignment_expression "piVar5 = *(int **)(puVar6 + 0x2dff4)" identifier = (pointer_expression "*(int **)(puVar6 + 0x2dff4)" * (cast_expression "(int **)(puVar6 + 0x2dff4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x2dff4)" ( (binary_expression "puVar6 + 0x2dff4" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = (int *)&DAT_0000ffff;" (assignment_expression "piVar4 = (int *)&DAT_0000ffff" identifier = (cast_expression "(int *)&DAT_0000ffff" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0000ffff" & identifier))) ;) (expression_statement "piVar1 = (int *)*piVar5;" (assignment_expression "piVar1 = (int *)*piVar5" identifier = (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) ;) (expression_statement "iVar2 = (**(code **)(puVar6 + 0x2dfb4))();" (assignment_expression "iVar2 = (**(code **)(puVar6 + 0x2dfb4))()" identifier = (call_expression "(**(code **)(puVar6 + 0x2dfb4))()" (parenthesized_expression "(**(code **)(puVar6 + 0x2dfb4))" ( (pointer_expression "**(code **)(puVar6 + 0x2dfb4)" * (pointer_expression "*(code **)(puVar6 + 0x2dfb4)" * (cast_expression "(code **)(puVar6 + 0x2dfb4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x2dfb4)" ( (binary_expression "puVar6 + 0x2dfb4" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n    *puVar3 = uStack_60;\n    *param_3 = uStack_5c;\n    *param_4 = uStack_58;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    *puVar3 = uStack_60;\n    *param_3 = uStack_5c;\n    *param_4 = uStack_58;\n  }" { (expression_statement "*puVar3 = uStack_60;" (assignment_expression "*puVar3 = uStack_60" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "*param_3 = uStack_5c;" (assignment_expression "*param_3 = uStack_5c" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "*param_4 = uStack_58;" (assignment_expression "*param_4 = uStack_58" (pointer_expression "*param_4" * identifier) = identifier) ;) })) (if_statement "if (piVar1 != (int *)*piVar5) {\n    (**(code **)(puVar6 + 0x2dfc8))();\n    if (*piVar1 < *piVar4) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar4 < *piVar1);\n  }" if (parenthesized_expression "(piVar1 != (int *)*piVar5)" ( (binary_expression "piVar1 != (int *)*piVar5" identifier != (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) )) (compound_statement "{\n    (**(code **)(puVar6 + 0x2dfc8))();\n    if (*piVar1 < *piVar4) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar4 < *piVar1);\n  }" { (expression_statement "(**(code **)(puVar6 + 0x2dfc8))();" (call_expression "(**(code **)(puVar6 + 0x2dfc8))()" (parenthesized_expression "(**(code **)(puVar6 + 0x2dfc8))" ( (pointer_expression "**(code **)(puVar6 + 0x2dfc8)" * (pointer_expression "*(code **)(puVar6 + 0x2dfc8)" * (cast_expression "(code **)(puVar6 + 0x2dfc8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x2dfc8)" ( (binary_expression "puVar6 + 0x2dfc8" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (if_statement "if (*piVar1 < *piVar4) {\n      return 0xffffffff;\n    }" if (parenthesized_expression "(*piVar1 < *piVar4)" ( (binary_expression "*piVar1 < *piVar4" (pointer_expression "*piVar1" * identifier) < (pointer_expression "*piVar4" * identifier)) )) (compound_statement "{\n      return 0xffffffff;\n    }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (return_statement "return (uint)(*piVar4 < *piVar1);" return (call_expression "(uint)(*piVar4 < *piVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*piVar4 < *piVar1)" ( (binary_expression "*piVar4 < *piVar1" (pointer_expression "*piVar4" * identifier) < (pointer_expression "*piVar1" * identifier)) ))) ;) })) (return_statement "return (uint)(iVar2 == 0);" return (call_expression "(uint)(iVar2 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT)) )) (compound_statement { (return_statement return LIT ;) })) (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT)) ))) ;) })) (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) ))) ;) })))
(function_definition "uint noise_ultralight(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  int *piVar5;\n  undefined *puVar6;\n  undefined4 local_res0 [4];\n  undefined4 uStack_60;\n  undefined4 uStack_5c;\n  undefined4 uStack_58;\n  undefined1 auStack_1c [8];\n  uint local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  local_14 = *(uint *)PTR___stack_chk_guard_000b2f04;\n  local_res0[0] = param_1;\n  (*(code *)PTR_gettimeofday_000b2ee8)(auStack_1c,0);\n  random_add_noise(auStack_1c,8);\n  puVar3 = (undefined4 *)&DAT_00000004;\n  random_add_noise(local_res0);\n  if (local_14 == *(uint *)puVar6) {\n    return *(uint *)puVar6;\n  }\n  puVar6 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  piVar5 = *(int **)(puVar6 + 0x2dff4);\n  piVar4 = (int *)&DAT_0000ffff;\n  piVar1 = (int *)*piVar5;\n  iVar2 = (**(code **)(puVar6 + 0x2dfb4))();\n  if (iVar2 == 0) {\n    *puVar3 = uStack_60;\n    *param_3 = uStack_5c;\n    *param_4 = uStack_58;\n  }\n  if (piVar1 != (int *)*piVar5) {\n    (**(code **)(puVar6 + 0x2dfc8))();\n    if (*piVar1 < *piVar4) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar4 < *piVar1);\n  }\n  return (uint)(iVar2 == 0);\n}" (type_identifier "uint") (function_declarator "noise_ultralight(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)" (identifier "noise_ultralight") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  int *piVar5;\n  undefined *puVar6;\n  undefined4 local_res0 [4];\n  undefined4 uStack_60;\n  undefined4 uStack_5c;\n  undefined4 uStack_58;\n  undefined1 auStack_1c [8];\n  uint local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  local_14 = *(uint *)PTR___stack_chk_guard_000b2f04;\n  local_res0[0] = param_1;\n  (*(code *)PTR_gettimeofday_000b2ee8)(auStack_1c,0);\n  random_add_noise(auStack_1c,8);\n  puVar3 = (undefined4 *)&DAT_00000004;\n  random_add_noise(local_res0);\n  if (local_14 == *(uint *)puVar6) {\n    return *(uint *)puVar6;\n  }\n  puVar6 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  piVar5 = *(int **)(puVar6 + 0x2dff4);\n  piVar4 = (int *)&DAT_0000ffff;\n  piVar1 = (int *)*piVar5;\n  iVar2 = (**(code **)(puVar6 + 0x2dfb4))();\n  if (iVar2 == 0) {\n    *puVar3 = uStack_60;\n    *param_3 = uStack_5c;\n    *param_4 = uStack_58;\n  }\n  if (piVar1 != (int *)*piVar5) {\n    (**(code **)(puVar6 + 0x2dfc8))();\n    if (*piVar1 < *piVar4) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar4 < *piVar1);\n  }\n  return (uint)(iVar2 == 0);\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 local_res0 [4];" (type_identifier "undefined4") (array_declarator "local_res0 [4]" (identifier "local_res0") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined4 uStack_60;" (type_identifier "undefined4") (identifier "uStack_60") (; ";")) (declaration "undefined4 uStack_5c;" (type_identifier "undefined4") (identifier "uStack_5c") (; ";")) (declaration "undefined4 uStack_58;" (type_identifier "undefined4") (identifier "uStack_58") (; ";")) (declaration "undefined1 auStack_1c [8];" (type_identifier "undefined1") (array_declarator "auStack_1c [8]" (identifier "auStack_1c") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "uint local_14;" (type_identifier "uint") (identifier "local_14") (; ";")) (expression_statement "puVar6 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar6 = PTR___stack_chk_guard_000b2f04" (identifier "puVar6") (= "=") (identifier "PTR___stack_chk_guard_000b2f04")) (; ";")) (expression_statement "local_14 = *(uint *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "local_14 = *(uint *)PTR___stack_chk_guard_000b2f04" (identifier "local_14") (= "=") (pointer_expression "*(uint *)PTR___stack_chk_guard_000b2f04" (* "*") (cast_expression "(uint *)PTR___stack_chk_guard_000b2f04" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000b2f04")))) (; ";")) (expression_statement "local_res0[0] = param_1;" (assignment_expression "local_res0[0] = param_1" (subscript_expression "local_res0[0]" (identifier "local_res0") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "(*(code *)PTR_gettimeofday_000b2ee8)(auStack_1c,0);" (call_expression "(*(code *)PTR_gettimeofday_000b2ee8)(auStack_1c,0)" (parenthesized_expression "(*(code *)PTR_gettimeofday_000b2ee8)" (( "(") (pointer_expression "*(code *)PTR_gettimeofday_000b2ee8" (* "*") (cast_expression "(code *)PTR_gettimeofday_000b2ee8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_gettimeofday_000b2ee8"))) () ")")) (argument_list "(auStack_1c,0)" (( "(") (identifier "auStack_1c") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "random_add_noise(auStack_1c,8);" (call_expression "random_add_noise(auStack_1c,8)" (identifier "random_add_noise") (argument_list "(auStack_1c,8)" (( "(") (identifier "auStack_1c") (, ",") (number_literal "8") () ")"))) (; ";")) (expression_statement "puVar3 = (undefined4 *)&DAT_00000004;" (assignment_expression "puVar3 = (undefined4 *)&DAT_00000004" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)&DAT_00000004" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_00000004" (& "&") (identifier "DAT_00000004")))) (; ";")) (expression_statement "random_add_noise(local_res0);" (call_expression "random_add_noise(local_res0)" (identifier "random_add_noise") (argument_list "(local_res0)" (( "(") (identifier "local_res0") () ")"))) (; ";")) (if_statement "if (local_14 == *(uint *)puVar6) {\n    return *(uint *)puVar6;\n  }" (if "if") (parenthesized_expression "(local_14 == *(uint *)puVar6)" (( "(") (binary_expression "local_14 == *(uint *)puVar6" (identifier "local_14") (== "==") (pointer_expression "*(uint *)puVar6" (* "*") (cast_expression "(uint *)puVar6" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar6")))) () ")")) (compound_statement "{\n    return *(uint *)puVar6;\n  }" ({ "{") (return_statement "return *(uint *)puVar6;" (return "return") (pointer_expression "*(uint *)puVar6" (* "*") (cast_expression "(uint *)puVar6" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar6"))) (; ";")) (} "}"))) (expression_statement "puVar6 = PTR___stack_chk_fail_000b2ed8;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000b2ed8" (identifier "puVar6") (= "=") (identifier "PTR___stack_chk_fail_000b2ed8")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000b2ed8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000b2ed8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000b2ed8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000b2ed8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar5 = *(int **)(puVar6 + 0x2dff4);" (assignment_expression "piVar5 = *(int **)(puVar6 + 0x2dff4)" (identifier "piVar5") (= "=") (pointer_expression "*(int **)(puVar6 + 0x2dff4)" (* "*") (cast_expression "(int **)(puVar6 + 0x2dff4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x2dff4)" (( "(") (binary_expression "puVar6 + 0x2dff4" (identifier "puVar6") (+ "+") (number_literal "0x2dff4")) () ")"))))) (; ";")) (expression_statement "piVar4 = (int *)&DAT_0000ffff;" (assignment_expression "piVar4 = (int *)&DAT_0000ffff" (identifier "piVar4") (= "=") (cast_expression "(int *)&DAT_0000ffff" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0000ffff" (& "&") (identifier "DAT_0000ffff")))) (; ";")) (expression_statement "piVar1 = (int *)*piVar5;" (assignment_expression "piVar1 = (int *)*piVar5" (identifier "piVar1") (= "=") (cast_expression "(int *)*piVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar5" (* "*") (identifier "piVar5")))) (; ";")) (expression_statement "iVar2 = (**(code **)(puVar6 + 0x2dfb4))();" (assignment_expression "iVar2 = (**(code **)(puVar6 + 0x2dfb4))()" (identifier "iVar2") (= "=") (call_expression "(**(code **)(puVar6 + 0x2dfb4))()" (parenthesized_expression "(**(code **)(puVar6 + 0x2dfb4))" (( "(") (pointer_expression "**(code **)(puVar6 + 0x2dfb4)" (* "*") (pointer_expression "*(code **)(puVar6 + 0x2dfb4)" (* "*") (cast_expression "(code **)(puVar6 + 0x2dfb4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x2dfb4)" (( "(") (binary_expression "puVar6 + 0x2dfb4" (identifier "puVar6") (+ "+") (number_literal "0x2dfb4")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    *puVar3 = uStack_60;\n    *param_3 = uStack_5c;\n    *param_4 = uStack_58;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *puVar3 = uStack_60;\n    *param_3 = uStack_5c;\n    *param_4 = uStack_58;\n  }" ({ "{") (expression_statement "*puVar3 = uStack_60;" (assignment_expression "*puVar3 = uStack_60" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "uStack_60")) (; ";")) (expression_statement "*param_3 = uStack_5c;" (assignment_expression "*param_3 = uStack_5c" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "uStack_5c")) (; ";")) (expression_statement "*param_4 = uStack_58;" (assignment_expression "*param_4 = uStack_58" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "uStack_58")) (; ";")) (} "}"))) (if_statement "if (piVar1 != (int *)*piVar5) {\n    (**(code **)(puVar6 + 0x2dfc8))();\n    if (*piVar1 < *piVar4) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar4 < *piVar1);\n  }" (if "if") (parenthesized_expression "(piVar1 != (int *)*piVar5)" (( "(") (binary_expression "piVar1 != (int *)*piVar5" (identifier "piVar1") (!= "!=") (cast_expression "(int *)*piVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar5" (* "*") (identifier "piVar5")))) () ")")) (compound_statement "{\n    (**(code **)(puVar6 + 0x2dfc8))();\n    if (*piVar1 < *piVar4) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar4 < *piVar1);\n  }" ({ "{") (expression_statement "(**(code **)(puVar6 + 0x2dfc8))();" (call_expression "(**(code **)(puVar6 + 0x2dfc8))()" (parenthesized_expression "(**(code **)(puVar6 + 0x2dfc8))" (( "(") (pointer_expression "**(code **)(puVar6 + 0x2dfc8)" (* "*") (pointer_expression "*(code **)(puVar6 + 0x2dfc8)" (* "*") (cast_expression "(code **)(puVar6 + 0x2dfc8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x2dfc8)" (( "(") (binary_expression "puVar6 + 0x2dfc8" (identifier "puVar6") (+ "+") (number_literal "0x2dfc8")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*piVar1 < *piVar4) {\n      return 0xffffffff;\n    }" (if "if") (parenthesized_expression "(*piVar1 < *piVar4)" (( "(") (binary_expression "*piVar1 < *piVar4" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (< "<") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) () ")")) (compound_statement "{\n      return 0xffffffff;\n    }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (return_statement "return (uint)(*piVar4 < *piVar1);" (return "return") (call_expression "(uint)(*piVar4 < *piVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*piVar4 < *piVar1)" (( "(") (binary_expression "*piVar4 < *piVar1" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (< "<") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) () ")"))) (; ";")) (} "}"))) (return_statement "return (uint)(iVar2 == 0);" (return "return") (call_expression "(uint)(iVar2 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")"))) (; ";")) (} "}")))

void function_1(type_1 data)

{
  int var_2;
  int *var_4;
  type_2 *puVar3;
  int *piVar4;
  type_2 *in_a2;
  type_2 *in_a3;
  int *piVar5;
  type_3 *var_3;
  type_1 local_res0 [4];
  type_2 uStack_60;
  type_2 uStack_5c;
  type_2 uStack_58;
  type_4 tv;
  
  var_3 = PTR___stack_chk_guard_000b2f04;
  var_2 = *(int *)PTR___stack_chk_guard_000b2f04;
  local_res0[0] = data;
  (*(type_5 *)PTR_gettimeofday_000b2ee8)(&tv,0);
  var_1(&tv,8);
  puVar3 = (type_2 *)&DAT_00000004;
  var_1(local_res0,4);
  if (var_2 == *(int *)var_3) {
    return;
  }
  var_3 = PTR___stack_chk_fail_000b2ed8;
  (*(type_5 *)PTR___stack_chk_fail_000b2ed8)();
  piVar5 = *(int **)(var_3 + 0x2dff4);
  piVar4 = (int *)&DAT_0000ffff;
  var_4 = (int *)*piVar5;
  var_2 = (**(type_5 **)(var_3 + 0x2dfb4))();
  if (var_2 == 0) {
    *puVar3 = uStack_60;
    *in_a2 = uStack_5c;
    *in_a3 = uStack_58;
  }
  if (var_4 != (int *)*piVar5) {
    (**(type_5 **)(var_3 + 0x2dfc8))();
    if (*var_4 < *piVar4) {
      return;
    }
    return;
  }
  return;
}


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

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

{
  int *piVar1;
  int iVar2;
  undefined4 *puVar3;
  int *piVar4;
  int *piVar5;
  undefined *puVar6;
  undefined4 local_res0 [4];
  undefined4 uStack_60;
  undefined4 uStack_5c;
  undefined4 uStack_58;
  undefined1 auStack_1c [8];
  uint local_14;
  
  puVar6 = PTR___stack_chk_guard_000b2f04;
  local_14 = *(uint *)PTR___stack_chk_guard_000b2f04;
  local_res0[0] = param_1;
  (*(code *)PTR_gettimeofday_000b2ee8)(auStack_1c,0);
  random_add_noise(auStack_1c,8);
  puVar3 = (undefined4 *)&DAT_00000004;
  random_add_noise(local_res0);
  if (local_14 == *(uint *)puVar6) {
    return *(uint *)puVar6;
  }
  puVar6 = PTR___stack_chk_fail_000b2ed8;
  (*(code *)PTR___stack_chk_fail_000b2ed8)();
  piVar5 = *(int **)(puVar6 + 0x2dff4);
  piVar4 = (int *)&DAT_0000ffff;
  piVar1 = (int *)*piVar5;
  iVar2 = (**(code **)(puVar6 + 0x2dfb4))();
  if (iVar2 == 0) {
    *puVar3 = uStack_60;
    *param_3 = uStack_5c;
    *param_4 = uStack_58;
  }
  if (piVar1 != (int *)*piVar5) {
    (**(code **)(puVar6 + 0x2dfc8))();
    if (*piVar1 < *piVar4) {
      return 0xffffffff;
    }
    return (uint)(*piVar4 < *piVar1);
  }
  return (uint)(iVar2 == 0);
}

