
ulong sprng_read(uchar *out,ulong outlen,prng_state *prng)

{
  ulong uVar1;
  
  if (out != (uchar *)0x0) {
    uVar1 = rng_get_bytes(out,outlen,(_func_void *)0x0);
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("out != NULL","src/prngs/sprng.c",0x52);
}



void sprng_read(long param_1,undefined8 param_2)

{
  if (param_1 != 0) {
    rng_get_bytes(param_1,param_2,0);
    return;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("out != NULL","src/prngs/sprng.c",0x52);
}


TEST RDI,RDI
JZ 0x00197c2c
XOR EDX,EDX
JMP 0x00114580
PUSH RAX
MOV EDX,0x52
LEA RSI,[0x1d67b2]
LEA RDI,[0x1b77e1]
CALL 0x00114270
(translation_unit "void sprng_read(long param_1,undefined8 param_2)\n\n{\n  if (param_1 != 0) {\n    rng_get_bytes(param_1,param_2,0);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("out != NULL","src/prngs/sprng.c",0x52);\n}\n\n" (function_definition "void sprng_read(long param_1,undefined8 param_2)\n\n{\n  if (param_1 != 0) {\n    rng_get_bytes(param_1,param_2,0);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("out != NULL","src/prngs/sprng.c",0x52);\n}" primitive_type (function_declarator "sprng_read(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  if (param_1 != 0) {\n    rng_get_bytes(param_1,param_2,0);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("out != NULL","src/prngs/sprng.c",0x52);\n}" { (if_statement "if (param_1 != 0) {\n    rng_get_bytes(param_1,param_2,0);\n    return;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    rng_get_bytes(param_1,param_2,0);\n    return;\n  }" { (expression_statement "rng_get_bytes(param_1,param_2,0);" (call_expression "rng_get_bytes(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "crypt_argchk("out != NULL","src/prngs/sprng.c",0x52);" (call_expression "crypt_argchk("out != NULL","src/prngs/sprng.c",0x52)" identifier (argument_list "("out != NULL","src/prngs/sprng.c",0x52)" ( (string_literal ""out != NULL"" " string_content ") , (string_literal ""src/prngs/sprng.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit "ulong sprng_read(uchar *out,ulong outlen,prng_state *prng)\n\n{\n  ulong uVar1;\n  \n  if (out != (uchar *)0x0) {\n    uVar1 = rng_get_bytes(out,outlen,(_func_void *)0x0);\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("out != NULL","src/prngs/sprng.c",0x52);\n}\n\n" (function_definition "ulong sprng_read(uchar *out,ulong outlen,prng_state *prng)\n\n{\n  ulong uVar1;\n  \n  if (out != (uchar *)0x0) {\n    uVar1 = rng_get_bytes(out,outlen,(_func_void *)0x0);\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("out != NULL","src/prngs/sprng.c",0x52);\n}" type_identifier (function_declarator "sprng_read(uchar *out,ulong outlen,prng_state *prng)" identifier (parameter_list "(uchar *out,ulong outlen,prng_state *prng)" ( (parameter_declaration "uchar *out" type_identifier (pointer_declarator "*out" * identifier)) , (parameter_declaration "ulong outlen" type_identifier identifier) , (parameter_declaration "prng_state *prng" type_identifier (pointer_declarator "*prng" * identifier)) ))) (compound_statement "{\n  ulong uVar1;\n  \n  if (out != (uchar *)0x0) {\n    uVar1 = rng_get_bytes(out,outlen,(_func_void *)0x0);\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("out != NULL","src/prngs/sprng.c",0x52);\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (if_statement "if (out != (uchar *)0x0) {\n    uVar1 = rng_get_bytes(out,outlen,(_func_void *)0x0);\n    return uVar1;\n  }" if (parenthesized_expression "(out != (uchar *)0x0)" ( (binary_expression "out != (uchar *)0x0" identifier != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar1 = rng_get_bytes(out,outlen,(_func_void *)0x0);\n    return uVar1;\n  }" { (expression_statement "uVar1 = rng_get_bytes(out,outlen,(_func_void *)0x0);" (assignment_expression "uVar1 = rng_get_bytes(out,outlen,(_func_void *)0x0)" identifier = (call_expression "rng_get_bytes(out,outlen,(_func_void *)0x0)" identifier (argument_list "(out,outlen,(_func_void *)0x0)" ( identifier , identifier , (cast_expression "(_func_void *)0x0" ( (type_descriptor "_func_void *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (return_statement "return uVar1;" return identifier ;) })) comment (expression_statement "crypt_argchk("out != NULL","src/prngs/sprng.c",0x52);" (call_expression "crypt_argchk("out != NULL","src/prngs/sprng.c",0x52)" identifier (argument_list "("out != NULL","src/prngs/sprng.c",0x52)" ( (string_literal ""out != NULL"" " string_content ") , (string_literal ""src/prngs/sprng.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit "void sprng_read(long param_1,undefined8 param_2)\n\n{\n  if (param_1 != 0) {\n    rng_get_bytes(param_1,param_2,0);\n    return;\n  }\n                    \n  crypt_argchk("out != NULL","src/prngs/sprng.c",0x52);\n}\n\n" (function_definition "void sprng_read(long param_1,undefined8 param_2)\n\n{\n  if (param_1 != 0) {\n    rng_get_bytes(param_1,param_2,0);\n    return;\n  }\n                    \n  crypt_argchk("out != NULL","src/prngs/sprng.c",0x52);\n}" primitive_type (function_declarator "sprng_read(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  if (param_1 != 0) {\n    rng_get_bytes(param_1,param_2,0);\n    return;\n  }\n                    \n  crypt_argchk("out != NULL","src/prngs/sprng.c",0x52);\n}" { (if_statement "if (param_1 != 0) {\n    rng_get_bytes(param_1,param_2,0);\n    return;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    rng_get_bytes(param_1,param_2,0);\n    return;\n  }" { (expression_statement "rng_get_bytes(param_1,param_2,0);" (call_expression "rng_get_bytes(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "crypt_argchk("out != NULL","src/prngs/sprng.c",0x52);" (call_expression "crypt_argchk("out != NULL","src/prngs/sprng.c",0x52)" identifier (argument_list "("out != NULL","src/prngs/sprng.c",0x52)" ( (string_literal ""out != NULL"" " string_content ") , (string_literal ""src/prngs/sprng.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })))
(function_definition "void sprng_read(long param_1,undefined8 param_2)\n\n{\n  if (param_1 != 0) {\n    rng_get_bytes(param_1,param_2,0);\n    return;\n  }\n                    \n  crypt_argchk("out != NULL","src/prngs/sprng.c",0x52);\n}" (primitive_type "void") (function_declarator "sprng_read(long param_1,undefined8 param_2)" (identifier "sprng_read") (parameter_list "(long param_1,undefined8 param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  if (param_1 != 0) {\n    rng_get_bytes(param_1,param_2,0);\n    return;\n  }\n                    \n  crypt_argchk("out != NULL","src/prngs/sprng.c",0x52);\n}" ({ "{") (if_statement "if (param_1 != 0) {\n    rng_get_bytes(param_1,param_2,0);\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    rng_get_bytes(param_1,param_2,0);\n    return;\n  }" ({ "{") (expression_statement "rng_get_bytes(param_1,param_2,0);" (call_expression "rng_get_bytes(param_1,param_2,0)" (identifier "rng_get_bytes") (argument_list "(param_1,param_2,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "crypt_argchk("out != NULL","src/prngs/sprng.c",0x52);" (call_expression "crypt_argchk("out != NULL","src/prngs/sprng.c",0x52)" (identifier "crypt_argchk") (argument_list "("out != NULL","src/prngs/sprng.c",0x52)" (( "(") (string_literal ""out != NULL"" (" """) (string_content "out != NULL") (" """)) (, ",") (string_literal ""src/prngs/sprng.c"" (" """) (string_content "src/prngs/sprng.c") (" """)) (, ",") (number_literal "0x52") () ")"))) (; ";")) (} "}")))

type_1 function_1(type_2 *var_1,type_1 outlen,type_3 *prng)

{
  type_1 uVar1;
  
  if (var_1 != (type_2 *)0x0) {
    uVar1 = var_2(var_1,outlen,(type_4 *)0x0);
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  var_3("out != NULL","src/prngs/sprng.c",0x52);
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal)))))))

void MASKED(long param_1,undefined8 param_2)

{
  if (param_1 != 0) {
    rng_get_bytes(param_1,param_2,0);
    return;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("out != NULL","src/prngs/sprng.c",0x52);
}

