
int blake2b_stream(FILE *stream,void *resstream,size_t outbytes)

{
  undefined *puVar1;
  int iVar2;
  void *pin;
  int iVar3;
  size_t inlen;
  blake2b_state S [1];
  
  puVar1 = PTR___stack_chk_guard_00036344;
  iVar2 = *(int *)PTR___stack_chk_guard_00036344;
  pin = (void *)(*(code *)PTR_malloc_000362f4)(0x8000);
  if (pin == (void *)0x0) {
    iVar3 = -1;
LAB_0001d010:
    if (iVar2 == *(int *)puVar1) {
      return iVar3;
    }
    (*(code *)PTR___stack_chk_fail_00036328)();
                    /* WARNING: Subroutine does not return */
    usage(1);
  }
  blake2b_init(S,outbytes);
  do {
    inlen = 0;
LAB_0001cf88:
    iVar3 = (*(code *)PTR_fread_00036310)((int)pin + inlen,1,0x8000 - inlen,stream);
    inlen = inlen + iVar3;
    if (inlen != 0x8000) {
      if (iVar3 != 0) break;
      iVar3 = (*(code *)PTR_ferror_0003633c)(stream);
      if (iVar3 == 0) goto LAB_0001cfdc;
      iVar3 = -1;
      goto LAB_0001d000;
    }
    blake2b_update(S,pin,0x8000);
  } while( true );
  iVar3 = (*(code *)PTR_feof_000362e0)(stream);
  if (iVar3 != 0) {
LAB_0001cfdc:
    if (inlen != 0) {
      blake2b_update(S,pin,inlen);
    }
    blake2b_final(S,resstream,outbytes);
    iVar3 = 0;
LAB_0001d000:
    (*(code *)PTR_free_0003634c)(pin);
    goto LAB_0001d010;
  }
  goto LAB_0001cf88;
}



undefined4 blake2b_stream(undefined4 param_1,undefined4 param_2,undefined4 param_3)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  undefined1 auStack_120 [244];
  int local_2c;
  
  puVar1 = PTR___stack_chk_guard_00036344;
  local_2c = *(int *)PTR___stack_chk_guard_00036344;
  iVar2 = (*(code *)PTR_malloc_000362f4)(0x8000);
  if (iVar2 == 0) {
    uVar5 = 0xffffffff;
LAB_0001d010:
    if (local_2c == *(int *)puVar1) {
      return uVar5;
    }
    (*(code *)PTR___stack_chk_fail_00036328)();
    uVar5 = usage(1);
    return uVar5;
  }
  blake2b_init(auStack_120,param_3);
  do {
    iVar4 = 0;
LAB_0001cf88:
    iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);
    iVar4 = iVar4 + iVar3;
    if (iVar4 != 0x8000) {
      if (iVar3 != 0) break;
      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);
      if (iVar3 == 0) goto LAB_0001cfdc;
      uVar5 = 0xffffffff;
      goto LAB_0001d000;
    }
    blake2b_update(auStack_120,iVar2,0x8000);
  } while( true );
  iVar3 = (*(code *)PTR_feof_000362e0)(param_1);
  if (iVar3 != 0) {
LAB_0001cfdc:
    if (iVar4 != 0) {
      blake2b_update(auStack_120,iVar2,iVar4);
    }
    blake2b_final(auStack_120,param_2,param_3);
    uVar5 = 0;
LAB_0001d000:
    (*(code *)PTR_free_0003634c)(iVar2);
    goto LAB_0001d010;
  }
  goto LAB_0001cf88;
}


lui gp,0x2
addiu gp,gp,0x1210
addu gp,gp,t9
addiu sp,sp,-0x138
lw t9,-0x7dfc(gp)
sw s5,0x128(sp)
lw s5,-0x7dac(gp)
sw s2,0x11c(sp)
or s2,a0,zero
ori a0,zero,0x8000
sw gp,0x10(sp)
sw s7,0x130(sp)
or s7,a1,zero
sw s6,0x12c(sp)
or s6,a2,zero
sw ra,0x134(sp)
sw s4,0x124(sp)
sw s3,0x120(sp)
sw s1,0x118(sp)
sw s0,0x114(sp)
lw v0,0x0(s5)
sw v0,0x10c(sp)
jalr t9
_nop
beq v0,zero,0x0001d06c
_lw gp,0x10(sp)
lw t9,-0x7f64(gp)
addiu s4,sp,0x18
or a1,s6,zero
or a0,s4,zero
bal 0x0001c6fc
_or s3,v0,zero
lw gp,0x10(sp)
ori s1,zero,0x8000
b 0x0001cf88
_or s0,zero,zero
beq v0,zero,0x0001cfc8
_lw t9,-0x7e10(gp)
jalr t9
_or a0,s2,zero
bne v0,zero,0x0001cfdc
_lw gp,0x10(sp)
lw t9,-0x7de0(gp)
subu a2,s1,s0
addu a0,s3,s0
li a1,0x1
jalr t9
_or a3,s2,zero
addu s0,s0,v0
bne s0,s1,0x0001cf70
_lw gp,0x10(sp)
lw t9,-0x7f70(gp)
ori a2,zero,0x8000
or a1,s3,zero
bal 0x0001c7cc
_or a0,s4,zero
b 0x0001cf68
_lw gp,0x10(sp)
lw t9,-0x7db4(gp)
jalr t9
_or a0,s2,zero
bne v0,zero,0x0001d04c
_lw gp,0x10(sp)
bne s0,zero,0x0001d054
_lw t9,-0x7f70(gp)
lw t9,-0x7f68(gp)
or a2,s6,zero
or a1,s7,zero
bal 0x0001cb4c
_or a0,s4,zero
or s0,zero,zero
lw gp,0x10(sp)
lw t9,-0x7da4(gp)
jalr t9
_or a0,s3,zero
lw gp,0x10(sp)
lw a0,0x10c(sp)
or v0,s0,zero
lw v1,0x0(s5)
bne a0,v1,0x0001d074
_lw ra,0x134(sp)
lw s7,0x130(sp)
lw s6,0x12c(sp)
lw s5,0x128(sp)
lw s4,0x124(sp)
lw s3,0x120(sp)
lw s2,0x11c(sp)
lw s1,0x118(sp)
lw s0,0x114(sp)
jr ra
_addiu sp,sp,0x138
b 0x0001d000
_li s0,-0x1
or a2,s0,zero
or a1,s3,zero
bal 0x0001c7cc
_or a0,s4,zero
b 0x0001cfe4
_lw gp,0x10(sp)
b 0x0001d010
_li s0,-0x1
lw t9,-0x7dc8(gp)
jalr t9
_nop
lui gp,0x2
addiu gp,gp,0x1070
addu gp,gp,t9
lw t9,-0x7f9c(gp)
b 0x00013ca4
_li a0,0x1
(translation_unit "undefined4 blake2b_stream(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined1 auStack_120 [244];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00036344;\n  local_2c = *(int *)PTR___stack_chk_guard_00036344;\n  iVar2 = (*(code *)PTR_malloc_000362f4)(0x8000);\n  if (iVar2 == 0) {\n    uVar5 = 0xffffffff;\nLAB_0001d010:\n    if (local_2c == *(int *)puVar1) {\n      return uVar5;\n    }\n    (*(code *)PTR___stack_chk_fail_00036328)();\n    uVar5 = usage(1);\n    return uVar5;\n  }\n  blake2b_init(auStack_120,param_3);\n  do {\n    iVar4 = 0;\nLAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);\n    iVar4 = iVar4 + iVar3;\n    if (iVar4 != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      uVar5 = 0xffffffff;\n      goto LAB_0001d000;\n    }\n    blake2b_update(auStack_120,iVar2,0x8000);\n  } while( true );\n  iVar3 = (*(code *)PTR_feof_000362e0)(param_1);\n  if (iVar3 != 0) {\nLAB_0001cfdc:\n    if (iVar4 != 0) {\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }\n    blake2b_final(auStack_120,param_2,param_3);\n    uVar5 = 0;\nLAB_0001d000:\n    (*(code *)PTR_free_0003634c)(iVar2);\n    goto LAB_0001d010;\n  }\n  goto LAB_0001cf88;\n}\n\n" (function_definition "undefined4 blake2b_stream(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined1 auStack_120 [244];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00036344;\n  local_2c = *(int *)PTR___stack_chk_guard_00036344;\n  iVar2 = (*(code *)PTR_malloc_000362f4)(0x8000);\n  if (iVar2 == 0) {\n    uVar5 = 0xffffffff;\nLAB_0001d010:\n    if (local_2c == *(int *)puVar1) {\n      return uVar5;\n    }\n    (*(code *)PTR___stack_chk_fail_00036328)();\n    uVar5 = usage(1);\n    return uVar5;\n  }\n  blake2b_init(auStack_120,param_3);\n  do {\n    iVar4 = 0;\nLAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);\n    iVar4 = iVar4 + iVar3;\n    if (iVar4 != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      uVar5 = 0xffffffff;\n      goto LAB_0001d000;\n    }\n    blake2b_update(auStack_120,iVar2,0x8000);\n  } while( true );\n  iVar3 = (*(code *)PTR_feof_000362e0)(param_1);\n  if (iVar3 != 0) {\nLAB_0001cfdc:\n    if (iVar4 != 0) {\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }\n    blake2b_final(auStack_120,param_2,param_3);\n    uVar5 = 0;\nLAB_0001d000:\n    (*(code *)PTR_free_0003634c)(iVar2);\n    goto LAB_0001d010;\n  }\n  goto LAB_0001cf88;\n}" type_identifier (function_declarator "blake2b_stream(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined1 auStack_120 [244];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00036344;\n  local_2c = *(int *)PTR___stack_chk_guard_00036344;\n  iVar2 = (*(code *)PTR_malloc_000362f4)(0x8000);\n  if (iVar2 == 0) {\n    uVar5 = 0xffffffff;\nLAB_0001d010:\n    if (local_2c == *(int *)puVar1) {\n      return uVar5;\n    }\n    (*(code *)PTR___stack_chk_fail_00036328)();\n    uVar5 = usage(1);\n    return uVar5;\n  }\n  blake2b_init(auStack_120,param_3);\n  do {\n    iVar4 = 0;\nLAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);\n    iVar4 = iVar4 + iVar3;\n    if (iVar4 != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      uVar5 = 0xffffffff;\n      goto LAB_0001d000;\n    }\n    blake2b_update(auStack_120,iVar2,0x8000);\n  } while( true );\n  iVar3 = (*(code *)PTR_feof_000362e0)(param_1);\n  if (iVar3 != 0) {\nLAB_0001cfdc:\n    if (iVar4 != 0) {\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }\n    blake2b_final(auStack_120,param_2,param_3);\n    uVar5 = 0;\nLAB_0001d000:\n    (*(code *)PTR_free_0003634c)(iVar2);\n    goto LAB_0001d010;\n  }\n  goto LAB_0001cf88;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined1 auStack_120 [244];" type_identifier (array_declarator "auStack_120 [244]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00036344;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00036344" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_00036344;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_00036344" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00036344" * (cast_expression "(int *)PTR___stack_chk_guard_00036344" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR_malloc_000362f4)(0x8000);" (assignment_expression "iVar2 = (*(code *)PTR_malloc_000362f4)(0x8000)" identifier = (call_expression "(*(code *)PTR_malloc_000362f4)(0x8000)" (parenthesized_expression "(*(code *)PTR_malloc_000362f4)" ( (pointer_expression "*(code *)PTR_malloc_000362f4" * (cast_expression "(code *)PTR_malloc_000362f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x8000)" ( number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n    uVar5 = 0xffffffff;\nLAB_0001d010:\n    if (local_2c == *(int *)puVar1) {\n      return uVar5;\n    }\n    (*(code *)PTR___stack_chk_fail_00036328)();\n    uVar5 = usage(1);\n    return uVar5;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar5 = 0xffffffff;\nLAB_0001d010:\n    if (local_2c == *(int *)puVar1) {\n      return uVar5;\n    }\n    (*(code *)PTR___stack_chk_fail_00036328)();\n    uVar5 = usage(1);\n    return uVar5;\n  }" { (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) (labeled_statement "LAB_0001d010:\n    if (local_2c == *(int *)puVar1) {\n      return uVar5;\n    }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar1) {\n      return uVar5;\n    }" if (parenthesized_expression "(local_2c == *(int *)puVar1)" ( (binary_expression "local_2c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n      return uVar5;\n    }" { (return_statement "return uVar5;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_00036328)();" (call_expression "(*(code *)PTR___stack_chk_fail_00036328)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00036328)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00036328" * (cast_expression "(code *)PTR___stack_chk_fail_00036328" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar5 = usage(1);" (assignment_expression "uVar5 = usage(1)" identifier = (call_expression "usage(1)" identifier (argument_list "(1)" ( number_literal )))) ;) (return_statement "return uVar5;" return identifier ;) })) (expression_statement "blake2b_init(auStack_120,param_3);" (call_expression "blake2b_init(auStack_120,param_3)" identifier (argument_list "(auStack_120,param_3)" ( identifier , identifier ))) ;) (do_statement "do {\n    iVar4 = 0;\nLAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);\n    iVar4 = iVar4 + iVar3;\n    if (iVar4 != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      uVar5 = 0xffffffff;\n      goto LAB_0001d000;\n    }\n    blake2b_update(auStack_120,iVar2,0x8000);\n  } while( true );" do (compound_statement "{\n    iVar4 = 0;\nLAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);\n    iVar4 = iVar4 + iVar3;\n    if (iVar4 != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      uVar5 = 0xffffffff;\n      goto LAB_0001d000;\n    }\n    blake2b_update(auStack_120,iVar2,0x8000);\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);" statement_identifier : (expression_statement "iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);" (assignment_expression "iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1)" identifier = (call_expression "(*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1)" (parenthesized_expression "(*(code *)PTR_fread_00036310)" ( (pointer_expression "*(code *)PTR_fread_00036310" * (cast_expression "(code *)PTR_fread_00036310" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2 + iVar4,1,0x8000 - iVar4,param_1)" ( (binary_expression "iVar2 + iVar4" identifier + identifier) , number_literal , (binary_expression "0x8000 - iVar4" number_literal - identifier) , identifier )))) ;)) (expression_statement "iVar4 = iVar4 + iVar3;" (assignment_expression "iVar4 = iVar4 + iVar3" identifier = (binary_expression "iVar4 + iVar3" identifier + identifier)) ;) (if_statement "if (iVar4 != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      uVar5 = 0xffffffff;\n      goto LAB_0001d000;\n    }" if (parenthesized_expression "(iVar4 != 0x8000)" ( (binary_expression "iVar4 != 0x8000" identifier != number_literal) )) (compound_statement "{\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      uVar5 = 0xffffffff;\n      goto LAB_0001d000;\n    }" { (if_statement "if (iVar3 != 0) break;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_ferror_0003633c)(param_1)" identifier = (call_expression "(*(code *)PTR_ferror_0003633c)(param_1)" (parenthesized_expression "(*(code *)PTR_ferror_0003633c)" ( (pointer_expression "*(code *)PTR_ferror_0003633c" * (cast_expression "(code *)PTR_ferror_0003633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) goto LAB_0001cfdc;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001cfdc;" goto statement_identifier ;)) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_0001d000;" goto statement_identifier ;) })) (expression_statement "blake2b_update(auStack_120,iVar2,0x8000);" (call_expression "blake2b_update(auStack_120,iVar2,0x8000)" identifier (argument_list "(auStack_120,iVar2,0x8000)" ( identifier , identifier , number_literal ))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) (expression_statement "iVar3 = (*(code *)PTR_feof_000362e0)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_feof_000362e0)(param_1)" identifier = (call_expression "(*(code *)PTR_feof_000362e0)(param_1)" (parenthesized_expression "(*(code *)PTR_feof_000362e0)" ( (pointer_expression "*(code *)PTR_feof_000362e0" * (cast_expression "(code *)PTR_feof_000362e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar3 != 0) {\nLAB_0001cfdc:\n    if (iVar4 != 0) {\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }\n    blake2b_final(auStack_120,param_2,param_3);\n    uVar5 = 0;\nLAB_0001d000:\n    (*(code *)PTR_free_0003634c)(iVar2);\n    goto LAB_0001d010;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0001cfdc:\n    if (iVar4 != 0) {\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }\n    blake2b_final(auStack_120,param_2,param_3);\n    uVar5 = 0;\nLAB_0001d000:\n    (*(code *)PTR_free_0003634c)(iVar2);\n    goto LAB_0001d010;\n  }" { (labeled_statement "LAB_0001cfdc:\n    if (iVar4 != 0) {\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }" statement_identifier : (if_statement "if (iVar4 != 0) {\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }" { (expression_statement "blake2b_update(auStack_120,iVar2,iVar4);" (call_expression "blake2b_update(auStack_120,iVar2,iVar4)" identifier (argument_list "(auStack_120,iVar2,iVar4)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "blake2b_final(auStack_120,param_2,param_3);" (call_expression "blake2b_final(auStack_120,param_2,param_3)" identifier (argument_list "(auStack_120,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0001d000:\n    (*(code *)PTR_free_0003634c)(iVar2);" statement_identifier : (expression_statement "(*(code *)PTR_free_0003634c)(iVar2);" (call_expression "(*(code *)PTR_free_0003634c)(iVar2)" (parenthesized_expression "(*(code *)PTR_free_0003634c)" ( (pointer_expression "*(code *)PTR_free_0003634c" * (cast_expression "(code *)PTR_free_0003634c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;)) (goto_statement "goto LAB_0001d010;" goto statement_identifier ;) })) (goto_statement "goto LAB_0001cf88;" goto statement_identifier ;) })))
(translation_unit "int blake2b_stream(FILE *stream,void *resstream,size_t outbytes)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  void *pin;\n  int iVar3;\n  size_t inlen;\n  blake2b_state S [1];\n  \n  puVar1 = PTR___stack_chk_guard_00036344;\n  iVar2 = *(int *)PTR___stack_chk_guard_00036344;\n  pin = (void *)(*(code *)PTR_malloc_000362f4)(0x8000);\n  if (pin == (void *)0x0) {\n    iVar3 = -1;\nLAB_0001d010:\n    if (iVar2 == *(int *)puVar1) {\n      return iVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_00036328)();\n                    /* WARNING: Subroutine does not return */\n    usage(1);\n  }\n  blake2b_init(S,outbytes);\n  do {\n    inlen = 0;\nLAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)((int)pin + inlen,1,0x8000 - inlen,stream);\n    inlen = inlen + iVar3;\n    if (inlen != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(stream);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      iVar3 = -1;\n      goto LAB_0001d000;\n    }\n    blake2b_update(S,pin,0x8000);\n  } while( true );\n  iVar3 = (*(code *)PTR_feof_000362e0)(stream);\n  if (iVar3 != 0) {\nLAB_0001cfdc:\n    if (inlen != 0) {\n      blake2b_update(S,pin,inlen);\n    }\n    blake2b_final(S,resstream,outbytes);\n    iVar3 = 0;\nLAB_0001d000:\n    (*(code *)PTR_free_0003634c)(pin);\n    goto LAB_0001d010;\n  }\n  goto LAB_0001cf88;\n}\n\n" (function_definition "int blake2b_stream(FILE *stream,void *resstream,size_t outbytes)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  void *pin;\n  int iVar3;\n  size_t inlen;\n  blake2b_state S [1];\n  \n  puVar1 = PTR___stack_chk_guard_00036344;\n  iVar2 = *(int *)PTR___stack_chk_guard_00036344;\n  pin = (void *)(*(code *)PTR_malloc_000362f4)(0x8000);\n  if (pin == (void *)0x0) {\n    iVar3 = -1;\nLAB_0001d010:\n    if (iVar2 == *(int *)puVar1) {\n      return iVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_00036328)();\n                    /* WARNING: Subroutine does not return */\n    usage(1);\n  }\n  blake2b_init(S,outbytes);\n  do {\n    inlen = 0;\nLAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)((int)pin + inlen,1,0x8000 - inlen,stream);\n    inlen = inlen + iVar3;\n    if (inlen != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(stream);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      iVar3 = -1;\n      goto LAB_0001d000;\n    }\n    blake2b_update(S,pin,0x8000);\n  } while( true );\n  iVar3 = (*(code *)PTR_feof_000362e0)(stream);\n  if (iVar3 != 0) {\nLAB_0001cfdc:\n    if (inlen != 0) {\n      blake2b_update(S,pin,inlen);\n    }\n    blake2b_final(S,resstream,outbytes);\n    iVar3 = 0;\nLAB_0001d000:\n    (*(code *)PTR_free_0003634c)(pin);\n    goto LAB_0001d010;\n  }\n  goto LAB_0001cf88;\n}" primitive_type (function_declarator "blake2b_stream(FILE *stream,void *resstream,size_t outbytes)" identifier (parameter_list "(FILE *stream,void *resstream,size_t outbytes)" ( (parameter_declaration "FILE *stream" type_identifier (pointer_declarator "*stream" * identifier)) , (parameter_declaration "void *resstream" primitive_type (pointer_declarator "*resstream" * identifier)) , (parameter_declaration "size_t outbytes" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  void *pin;\n  int iVar3;\n  size_t inlen;\n  blake2b_state S [1];\n  \n  puVar1 = PTR___stack_chk_guard_00036344;\n  iVar2 = *(int *)PTR___stack_chk_guard_00036344;\n  pin = (void *)(*(code *)PTR_malloc_000362f4)(0x8000);\n  if (pin == (void *)0x0) {\n    iVar3 = -1;\nLAB_0001d010:\n    if (iVar2 == *(int *)puVar1) {\n      return iVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_00036328)();\n                    /* WARNING: Subroutine does not return */\n    usage(1);\n  }\n  blake2b_init(S,outbytes);\n  do {\n    inlen = 0;\nLAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)((int)pin + inlen,1,0x8000 - inlen,stream);\n    inlen = inlen + iVar3;\n    if (inlen != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(stream);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      iVar3 = -1;\n      goto LAB_0001d000;\n    }\n    blake2b_update(S,pin,0x8000);\n  } while( true );\n  iVar3 = (*(code *)PTR_feof_000362e0)(stream);\n  if (iVar3 != 0) {\nLAB_0001cfdc:\n    if (inlen != 0) {\n      blake2b_update(S,pin,inlen);\n    }\n    blake2b_final(S,resstream,outbytes);\n    iVar3 = 0;\nLAB_0001d000:\n    (*(code *)PTR_free_0003634c)(pin);\n    goto LAB_0001d010;\n  }\n  goto LAB_0001cf88;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "void *pin;" primitive_type (pointer_declarator "*pin" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "size_t inlen;" primitive_type identifier ;) (declaration "blake2b_state S [1];" type_identifier (array_declarator "S [1]" identifier [ number_literal ]) ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00036344;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00036344" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_00036344;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_00036344" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00036344" * (cast_expression "(int *)PTR___stack_chk_guard_00036344" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pin = (void *)(*(code *)PTR_malloc_000362f4)(0x8000);" (assignment_expression "pin = (void *)(*(code *)PTR_malloc_000362f4)(0x8000)" identifier = (cast_expression "(void *)(*(code *)PTR_malloc_000362f4)(0x8000)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_000362f4)(0x8000)" (parenthesized_expression "(*(code *)PTR_malloc_000362f4)" ( (pointer_expression "*(code *)PTR_malloc_000362f4" * (cast_expression "(code *)PTR_malloc_000362f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x8000)" ( number_literal ))))) ;) (if_statement "if (pin == (void *)0x0) {\n    iVar3 = -1;\nLAB_0001d010:\n    if (iVar2 == *(int *)puVar1) {\n      return iVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_00036328)();\n                    /* WARNING: Subroutine does not return */\n    usage(1);\n  }" if (parenthesized_expression "(pin == (void *)0x0)" ( (binary_expression "pin == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = -1;\nLAB_0001d010:\n    if (iVar2 == *(int *)puVar1) {\n      return iVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_00036328)();\n                    /* WARNING: Subroutine does not return */\n    usage(1);\n  }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (labeled_statement "LAB_0001d010:\n    if (iVar2 == *(int *)puVar1) {\n      return iVar3;\n    }" statement_identifier : (if_statement "if (iVar2 == *(int *)puVar1) {\n      return iVar3;\n    }" if (parenthesized_expression "(iVar2 == *(int *)puVar1)" ( (binary_expression "iVar2 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n      return iVar3;\n    }" { (return_statement "return iVar3;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_00036328)();" (call_expression "(*(code *)PTR___stack_chk_fail_00036328)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00036328)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00036328" * (cast_expression "(code *)PTR___stack_chk_fail_00036328" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) comment (expression_statement "usage(1);" (call_expression "usage(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (expression_statement "blake2b_init(S,outbytes);" (call_expression "blake2b_init(S,outbytes)" identifier (argument_list "(S,outbytes)" ( identifier , identifier ))) ;) (do_statement "do {\n    inlen = 0;\nLAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)((int)pin + inlen,1,0x8000 - inlen,stream);\n    inlen = inlen + iVar3;\n    if (inlen != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(stream);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      iVar3 = -1;\n      goto LAB_0001d000;\n    }\n    blake2b_update(S,pin,0x8000);\n  } while( true );" do (compound_statement "{\n    inlen = 0;\nLAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)((int)pin + inlen,1,0x8000 - inlen,stream);\n    inlen = inlen + iVar3;\n    if (inlen != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(stream);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      iVar3 = -1;\n      goto LAB_0001d000;\n    }\n    blake2b_update(S,pin,0x8000);\n  }" { (expression_statement "inlen = 0;" (assignment_expression "inlen = 0" identifier = number_literal) ;) (labeled_statement "LAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)((int)pin + inlen,1,0x8000 - inlen,stream);" statement_identifier : (expression_statement "iVar3 = (*(code *)PTR_fread_00036310)((int)pin + inlen,1,0x8000 - inlen,stream);" (assignment_expression "iVar3 = (*(code *)PTR_fread_00036310)((int)pin + inlen,1,0x8000 - inlen,stream)" identifier = (call_expression "(*(code *)PTR_fread_00036310)((int)pin + inlen,1,0x8000 - inlen,stream)" (parenthesized_expression "(*(code *)PTR_fread_00036310)" ( (pointer_expression "*(code *)PTR_fread_00036310" * (cast_expression "(code *)PTR_fread_00036310" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((int)pin + inlen,1,0x8000 - inlen,stream)" ( (binary_expression "(int)pin + inlen" (cast_expression "(int)pin" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) , number_literal , (binary_expression "0x8000 - inlen" number_literal - identifier) , identifier )))) ;)) (expression_statement "inlen = inlen + iVar3;" (assignment_expression "inlen = inlen + iVar3" identifier = (binary_expression "inlen + iVar3" identifier + identifier)) ;) (if_statement "if (inlen != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(stream);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      iVar3 = -1;\n      goto LAB_0001d000;\n    }" if (parenthesized_expression "(inlen != 0x8000)" ( (binary_expression "inlen != 0x8000" identifier != number_literal) )) (compound_statement "{\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(stream);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      iVar3 = -1;\n      goto LAB_0001d000;\n    }" { (if_statement "if (iVar3 != 0) break;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = (*(code *)PTR_ferror_0003633c)(stream);" (assignment_expression "iVar3 = (*(code *)PTR_ferror_0003633c)(stream)" identifier = (call_expression "(*(code *)PTR_ferror_0003633c)(stream)" (parenthesized_expression "(*(code *)PTR_ferror_0003633c)" ( (pointer_expression "*(code *)PTR_ferror_0003633c" * (cast_expression "(code *)PTR_ferror_0003633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(stream)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) goto LAB_0001cfdc;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001cfdc;" goto statement_identifier ;)) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_0001d000;" goto statement_identifier ;) })) (expression_statement "blake2b_update(S,pin,0x8000);" (call_expression "blake2b_update(S,pin,0x8000)" identifier (argument_list "(S,pin,0x8000)" ( identifier , identifier , number_literal ))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) (expression_statement "iVar3 = (*(code *)PTR_feof_000362e0)(stream);" (assignment_expression "iVar3 = (*(code *)PTR_feof_000362e0)(stream)" identifier = (call_expression "(*(code *)PTR_feof_000362e0)(stream)" (parenthesized_expression "(*(code *)PTR_feof_000362e0)" ( (pointer_expression "*(code *)PTR_feof_000362e0" * (cast_expression "(code *)PTR_feof_000362e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(stream)" ( identifier )))) ;) (if_statement "if (iVar3 != 0) {\nLAB_0001cfdc:\n    if (inlen != 0) {\n      blake2b_update(S,pin,inlen);\n    }\n    blake2b_final(S,resstream,outbytes);\n    iVar3 = 0;\nLAB_0001d000:\n    (*(code *)PTR_free_0003634c)(pin);\n    goto LAB_0001d010;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0001cfdc:\n    if (inlen != 0) {\n      blake2b_update(S,pin,inlen);\n    }\n    blake2b_final(S,resstream,outbytes);\n    iVar3 = 0;\nLAB_0001d000:\n    (*(code *)PTR_free_0003634c)(pin);\n    goto LAB_0001d010;\n  }" { (labeled_statement "LAB_0001cfdc:\n    if (inlen != 0) {\n      blake2b_update(S,pin,inlen);\n    }" statement_identifier : (if_statement "if (inlen != 0) {\n      blake2b_update(S,pin,inlen);\n    }" if (parenthesized_expression "(inlen != 0)" ( (binary_expression "inlen != 0" identifier != number_literal) )) (compound_statement "{\n      blake2b_update(S,pin,inlen);\n    }" { (expression_statement "blake2b_update(S,pin,inlen);" (call_expression "blake2b_update(S,pin,inlen)" identifier (argument_list "(S,pin,inlen)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "blake2b_final(S,resstream,outbytes);" (call_expression "blake2b_final(S,resstream,outbytes)" identifier (argument_list "(S,resstream,outbytes)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0001d000:\n    (*(code *)PTR_free_0003634c)(pin);" statement_identifier : (expression_statement "(*(code *)PTR_free_0003634c)(pin);" (call_expression "(*(code *)PTR_free_0003634c)(pin)" (parenthesized_expression "(*(code *)PTR_free_0003634c)" ( (pointer_expression "*(code *)PTR_free_0003634c" * (cast_expression "(code *)PTR_free_0003634c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pin)" ( identifier ))) ;)) (goto_statement "goto LAB_0001d010;" goto statement_identifier ;) })) (goto_statement "goto LAB_0001cf88;" goto statement_identifier ;) })))
(translation_unit "undefined4 blake2b_stream(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined1 auStack_120 [244];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00036344;\n  local_2c = *(int *)PTR___stack_chk_guard_00036344;\n  iVar2 = (*(code *)PTR_malloc_000362f4)(0x8000);\n  if (iVar2 == 0) {\n    uVar5 = 0xffffffff;\nLAB_0001d010:\n    if (local_2c == *(int *)puVar1) {\n      return uVar5;\n    }\n    (*(code *)PTR___stack_chk_fail_00036328)();\n    uVar5 = usage(1);\n    return uVar5;\n  }\n  blake2b_init(auStack_120,param_3);\n  do {\n    iVar4 = 0;\nLAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);\n    iVar4 = iVar4 + iVar3;\n    if (iVar4 != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      uVar5 = 0xffffffff;\n      goto LAB_0001d000;\n    }\n    blake2b_update(auStack_120,iVar2,0x8000);\n  } while( true );\n  iVar3 = (*(code *)PTR_feof_000362e0)(param_1);\n  if (iVar3 != 0) {\nLAB_0001cfdc:\n    if (iVar4 != 0) {\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }\n    blake2b_final(auStack_120,param_2,param_3);\n    uVar5 = 0;\nLAB_0001d000:\n    (*(code *)PTR_free_0003634c)(iVar2);\n    goto LAB_0001d010;\n  }\n  goto LAB_0001cf88;\n}\n\n" (function_definition "undefined4 blake2b_stream(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined1 auStack_120 [244];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00036344;\n  local_2c = *(int *)PTR___stack_chk_guard_00036344;\n  iVar2 = (*(code *)PTR_malloc_000362f4)(0x8000);\n  if (iVar2 == 0) {\n    uVar5 = 0xffffffff;\nLAB_0001d010:\n    if (local_2c == *(int *)puVar1) {\n      return uVar5;\n    }\n    (*(code *)PTR___stack_chk_fail_00036328)();\n    uVar5 = usage(1);\n    return uVar5;\n  }\n  blake2b_init(auStack_120,param_3);\n  do {\n    iVar4 = 0;\nLAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);\n    iVar4 = iVar4 + iVar3;\n    if (iVar4 != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      uVar5 = 0xffffffff;\n      goto LAB_0001d000;\n    }\n    blake2b_update(auStack_120,iVar2,0x8000);\n  } while( true );\n  iVar3 = (*(code *)PTR_feof_000362e0)(param_1);\n  if (iVar3 != 0) {\nLAB_0001cfdc:\n    if (iVar4 != 0) {\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }\n    blake2b_final(auStack_120,param_2,param_3);\n    uVar5 = 0;\nLAB_0001d000:\n    (*(code *)PTR_free_0003634c)(iVar2);\n    goto LAB_0001d010;\n  }\n  goto LAB_0001cf88;\n}" type_identifier (function_declarator "blake2b_stream(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined1 auStack_120 [244];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00036344;\n  local_2c = *(int *)PTR___stack_chk_guard_00036344;\n  iVar2 = (*(code *)PTR_malloc_000362f4)(0x8000);\n  if (iVar2 == 0) {\n    uVar5 = 0xffffffff;\nLAB_0001d010:\n    if (local_2c == *(int *)puVar1) {\n      return uVar5;\n    }\n    (*(code *)PTR___stack_chk_fail_00036328)();\n    uVar5 = usage(1);\n    return uVar5;\n  }\n  blake2b_init(auStack_120,param_3);\n  do {\n    iVar4 = 0;\nLAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);\n    iVar4 = iVar4 + iVar3;\n    if (iVar4 != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      uVar5 = 0xffffffff;\n      goto LAB_0001d000;\n    }\n    blake2b_update(auStack_120,iVar2,0x8000);\n  } while( true );\n  iVar3 = (*(code *)PTR_feof_000362e0)(param_1);\n  if (iVar3 != 0) {\nLAB_0001cfdc:\n    if (iVar4 != 0) {\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }\n    blake2b_final(auStack_120,param_2,param_3);\n    uVar5 = 0;\nLAB_0001d000:\n    (*(code *)PTR_free_0003634c)(iVar2);\n    goto LAB_0001d010;\n  }\n  goto LAB_0001cf88;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined1 auStack_120 [244];" type_identifier (array_declarator "auStack_120 [244]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00036344;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00036344" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_00036344;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_00036344" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00036344" * (cast_expression "(int *)PTR___stack_chk_guard_00036344" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR_malloc_000362f4)(0x8000);" (assignment_expression "iVar2 = (*(code *)PTR_malloc_000362f4)(0x8000)" identifier = (call_expression "(*(code *)PTR_malloc_000362f4)(0x8000)" (parenthesized_expression "(*(code *)PTR_malloc_000362f4)" ( (pointer_expression "*(code *)PTR_malloc_000362f4" * (cast_expression "(code *)PTR_malloc_000362f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x8000)" ( number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n    uVar5 = 0xffffffff;\nLAB_0001d010:\n    if (local_2c == *(int *)puVar1) {\n      return uVar5;\n    }\n    (*(code *)PTR___stack_chk_fail_00036328)();\n    uVar5 = usage(1);\n    return uVar5;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar5 = 0xffffffff;\nLAB_0001d010:\n    if (local_2c == *(int *)puVar1) {\n      return uVar5;\n    }\n    (*(code *)PTR___stack_chk_fail_00036328)();\n    uVar5 = usage(1);\n    return uVar5;\n  }" { (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) (labeled_statement "LAB_0001d010:\n    if (local_2c == *(int *)puVar1) {\n      return uVar5;\n    }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar1) {\n      return uVar5;\n    }" if (parenthesized_expression "(local_2c == *(int *)puVar1)" ( (binary_expression "local_2c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n      return uVar5;\n    }" { (return_statement "return uVar5;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_00036328)();" (call_expression "(*(code *)PTR___stack_chk_fail_00036328)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00036328)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00036328" * (cast_expression "(code *)PTR___stack_chk_fail_00036328" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar5 = usage(1);" (assignment_expression "uVar5 = usage(1)" identifier = (call_expression "usage(1)" identifier (argument_list "(1)" ( number_literal )))) ;) (return_statement "return uVar5;" return identifier ;) })) (expression_statement "blake2b_init(auStack_120,param_3);" (call_expression "blake2b_init(auStack_120,param_3)" identifier (argument_list "(auStack_120,param_3)" ( identifier , identifier ))) ;) (do_statement "do {\n    iVar4 = 0;\nLAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);\n    iVar4 = iVar4 + iVar3;\n    if (iVar4 != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      uVar5 = 0xffffffff;\n      goto LAB_0001d000;\n    }\n    blake2b_update(auStack_120,iVar2,0x8000);\n  } while( true );" do (compound_statement "{\n    iVar4 = 0;\nLAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);\n    iVar4 = iVar4 + iVar3;\n    if (iVar4 != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      uVar5 = 0xffffffff;\n      goto LAB_0001d000;\n    }\n    blake2b_update(auStack_120,iVar2,0x8000);\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);" statement_identifier : (expression_statement "iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);" (assignment_expression "iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1)" identifier = (call_expression "(*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1)" (parenthesized_expression "(*(code *)PTR_fread_00036310)" ( (pointer_expression "*(code *)PTR_fread_00036310" * (cast_expression "(code *)PTR_fread_00036310" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2 + iVar4,1,0x8000 - iVar4,param_1)" ( (binary_expression "iVar2 + iVar4" identifier + identifier) , number_literal , (binary_expression "0x8000 - iVar4" number_literal - identifier) , identifier )))) ;)) (expression_statement "iVar4 = iVar4 + iVar3;" (assignment_expression "iVar4 = iVar4 + iVar3" identifier = (binary_expression "iVar4 + iVar3" identifier + identifier)) ;) (if_statement "if (iVar4 != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      uVar5 = 0xffffffff;\n      goto LAB_0001d000;\n    }" if (parenthesized_expression "(iVar4 != 0x8000)" ( (binary_expression "iVar4 != 0x8000" identifier != number_literal) )) (compound_statement "{\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      uVar5 = 0xffffffff;\n      goto LAB_0001d000;\n    }" { (if_statement "if (iVar3 != 0) break;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_ferror_0003633c)(param_1)" identifier = (call_expression "(*(code *)PTR_ferror_0003633c)(param_1)" (parenthesized_expression "(*(code *)PTR_ferror_0003633c)" ( (pointer_expression "*(code *)PTR_ferror_0003633c" * (cast_expression "(code *)PTR_ferror_0003633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) goto LAB_0001cfdc;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001cfdc;" goto statement_identifier ;)) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_0001d000;" goto statement_identifier ;) })) (expression_statement "blake2b_update(auStack_120,iVar2,0x8000);" (call_expression "blake2b_update(auStack_120,iVar2,0x8000)" identifier (argument_list "(auStack_120,iVar2,0x8000)" ( identifier , identifier , number_literal ))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) (expression_statement "iVar3 = (*(code *)PTR_feof_000362e0)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_feof_000362e0)(param_1)" identifier = (call_expression "(*(code *)PTR_feof_000362e0)(param_1)" (parenthesized_expression "(*(code *)PTR_feof_000362e0)" ( (pointer_expression "*(code *)PTR_feof_000362e0" * (cast_expression "(code *)PTR_feof_000362e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar3 != 0) {\nLAB_0001cfdc:\n    if (iVar4 != 0) {\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }\n    blake2b_final(auStack_120,param_2,param_3);\n    uVar5 = 0;\nLAB_0001d000:\n    (*(code *)PTR_free_0003634c)(iVar2);\n    goto LAB_0001d010;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0001cfdc:\n    if (iVar4 != 0) {\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }\n    blake2b_final(auStack_120,param_2,param_3);\n    uVar5 = 0;\nLAB_0001d000:\n    (*(code *)PTR_free_0003634c)(iVar2);\n    goto LAB_0001d010;\n  }" { (labeled_statement "LAB_0001cfdc:\n    if (iVar4 != 0) {\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }" statement_identifier : (if_statement "if (iVar4 != 0) {\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }" { (expression_statement "blake2b_update(auStack_120,iVar2,iVar4);" (call_expression "blake2b_update(auStack_120,iVar2,iVar4)" identifier (argument_list "(auStack_120,iVar2,iVar4)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "blake2b_final(auStack_120,param_2,param_3);" (call_expression "blake2b_final(auStack_120,param_2,param_3)" identifier (argument_list "(auStack_120,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0001d000:\n    (*(code *)PTR_free_0003634c)(iVar2);" statement_identifier : (expression_statement "(*(code *)PTR_free_0003634c)(iVar2);" (call_expression "(*(code *)PTR_free_0003634c)(iVar2)" (parenthesized_expression "(*(code *)PTR_free_0003634c)" ( (pointer_expression "*(code *)PTR_free_0003634c" * (cast_expression "(code *)PTR_free_0003634c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;)) (goto_statement "goto LAB_0001d010;" goto statement_identifier ;) })) (goto_statement "goto LAB_0001cf88;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (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 IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return 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 = (call_expression IDENT (argument_list ( LIT )))) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + IDENT) , LIT , (binary_expression LIT - IDENT) , IDENT )))) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) }) while (parenthesized_expression ( BOOL )) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;)) (goto_statement goto statement_identifier ;) })) (goto_statement goto statement_identifier ;) })))
(function_definition "undefined4 blake2b_stream(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined1 auStack_120 [244];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00036344;\n  local_2c = *(int *)PTR___stack_chk_guard_00036344;\n  iVar2 = (*(code *)PTR_malloc_000362f4)(0x8000);\n  if (iVar2 == 0) {\n    uVar5 = 0xffffffff;\nLAB_0001d010:\n    if (local_2c == *(int *)puVar1) {\n      return uVar5;\n    }\n    (*(code *)PTR___stack_chk_fail_00036328)();\n    uVar5 = usage(1);\n    return uVar5;\n  }\n  blake2b_init(auStack_120,param_3);\n  do {\n    iVar4 = 0;\nLAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);\n    iVar4 = iVar4 + iVar3;\n    if (iVar4 != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      uVar5 = 0xffffffff;\n      goto LAB_0001d000;\n    }\n    blake2b_update(auStack_120,iVar2,0x8000);\n  } while( true );\n  iVar3 = (*(code *)PTR_feof_000362e0)(param_1);\n  if (iVar3 != 0) {\nLAB_0001cfdc:\n    if (iVar4 != 0) {\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }\n    blake2b_final(auStack_120,param_2,param_3);\n    uVar5 = 0;\nLAB_0001d000:\n    (*(code *)PTR_free_0003634c)(iVar2);\n    goto LAB_0001d010;\n  }\n  goto LAB_0001cf88;\n}" (type_identifier "undefined4") (function_declarator "blake2b_stream(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (identifier "blake2b_stream") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (( "(") (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") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined1 auStack_120 [244];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00036344;\n  local_2c = *(int *)PTR___stack_chk_guard_00036344;\n  iVar2 = (*(code *)PTR_malloc_000362f4)(0x8000);\n  if (iVar2 == 0) {\n    uVar5 = 0xffffffff;\nLAB_0001d010:\n    if (local_2c == *(int *)puVar1) {\n      return uVar5;\n    }\n    (*(code *)PTR___stack_chk_fail_00036328)();\n    uVar5 = usage(1);\n    return uVar5;\n  }\n  blake2b_init(auStack_120,param_3);\n  do {\n    iVar4 = 0;\nLAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);\n    iVar4 = iVar4 + iVar3;\n    if (iVar4 != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      uVar5 = 0xffffffff;\n      goto LAB_0001d000;\n    }\n    blake2b_update(auStack_120,iVar2,0x8000);\n  } while( true );\n  iVar3 = (*(code *)PTR_feof_000362e0)(param_1);\n  if (iVar3 != 0) {\nLAB_0001cfdc:\n    if (iVar4 != 0) {\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }\n    blake2b_final(auStack_120,param_2,param_3);\n    uVar5 = 0;\nLAB_0001d000:\n    (*(code *)PTR_free_0003634c)(iVar2);\n    goto LAB_0001d010;\n  }\n  goto LAB_0001cf88;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined1 auStack_120 [244];" (type_identifier "undefined1") (array_declarator "auStack_120 [244]" (identifier "auStack_120") ([ "[") (number_literal "244") (] "]")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_00036344;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00036344" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_00036344")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_00036344;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_00036344" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00036344" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00036344" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00036344")))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_malloc_000362f4)(0x8000);" (assignment_expression "iVar2 = (*(code *)PTR_malloc_000362f4)(0x8000)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_malloc_000362f4)(0x8000)" (parenthesized_expression "(*(code *)PTR_malloc_000362f4)" (( "(") (pointer_expression "*(code *)PTR_malloc_000362f4" (* "*") (cast_expression "(code *)PTR_malloc_000362f4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_000362f4"))) () ")")) (argument_list "(0x8000)" (( "(") (number_literal "0x8000") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    uVar5 = 0xffffffff;\nLAB_0001d010:\n    if (local_2c == *(int *)puVar1) {\n      return uVar5;\n    }\n    (*(code *)PTR___stack_chk_fail_00036328)();\n    uVar5 = usage(1);\n    return uVar5;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar5 = 0xffffffff;\nLAB_0001d010:\n    if (local_2c == *(int *)puVar1) {\n      return uVar5;\n    }\n    (*(code *)PTR___stack_chk_fail_00036328)();\n    uVar5 = usage(1);\n    return uVar5;\n  }" ({ "{") (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" (identifier "uVar5") (= "=") (number_literal "0xffffffff")) (; ";")) (labeled_statement "LAB_0001d010:\n    if (local_2c == *(int *)puVar1) {\n      return uVar5;\n    }" (statement_identifier "LAB_0001d010") (: ":") (if_statement "if (local_2c == *(int *)puVar1) {\n      return uVar5;\n    }" (if "if") (parenthesized_expression "(local_2c == *(int *)puVar1)" (( "(") (binary_expression "local_2c == *(int *)puVar1" (identifier "local_2c") (== "==") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n      return uVar5;\n    }" ({ "{") (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}")))) (expression_statement "(*(code *)PTR___stack_chk_fail_00036328)();" (call_expression "(*(code *)PTR___stack_chk_fail_00036328)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00036328)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00036328" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00036328" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00036328"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar5 = usage(1);" (assignment_expression "uVar5 = usage(1)" (identifier "uVar5") (= "=") (call_expression "usage(1)" (identifier "usage") (argument_list "(1)" (( "(") (number_literal "1") () ")")))) (; ";")) (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}"))) (expression_statement "blake2b_init(auStack_120,param_3);" (call_expression "blake2b_init(auStack_120,param_3)" (identifier "blake2b_init") (argument_list "(auStack_120,param_3)" (( "(") (identifier "auStack_120") (, ",") (identifier "param_3") () ")"))) (; ";")) (do_statement "do {\n    iVar4 = 0;\nLAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);\n    iVar4 = iVar4 + iVar3;\n    if (iVar4 != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      uVar5 = 0xffffffff;\n      goto LAB_0001d000;\n    }\n    blake2b_update(auStack_120,iVar2,0x8000);\n  } while( true );" (do "do") (compound_statement "{\n    iVar4 = 0;\nLAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);\n    iVar4 = iVar4 + iVar3;\n    if (iVar4 != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      uVar5 = 0xffffffff;\n      goto LAB_0001d000;\n    }\n    blake2b_update(auStack_120,iVar2,0x8000);\n  }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0001cf88:\n    iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);" (statement_identifier "LAB_0001cf88") (: ":") (expression_statement "iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);" (assignment_expression "iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1)" (parenthesized_expression "(*(code *)PTR_fread_00036310)" (( "(") (pointer_expression "*(code *)PTR_fread_00036310" (* "*") (cast_expression "(code *)PTR_fread_00036310" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fread_00036310"))) () ")")) (argument_list "(iVar2 + iVar4,1,0x8000 - iVar4,param_1)" (( "(") (binary_expression "iVar2 + iVar4" (identifier "iVar2") (+ "+") (identifier "iVar4")) (, ",") (number_literal "1") (, ",") (binary_expression "0x8000 - iVar4" (number_literal "0x8000") (- "-") (identifier "iVar4")) (, ",") (identifier "param_1") () ")")))) (; ";"))) (expression_statement "iVar4 = iVar4 + iVar3;" (assignment_expression "iVar4 = iVar4 + iVar3" (identifier "iVar4") (= "=") (binary_expression "iVar4 + iVar3" (identifier "iVar4") (+ "+") (identifier "iVar3"))) (; ";")) (if_statement "if (iVar4 != 0x8000) {\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      uVar5 = 0xffffffff;\n      goto LAB_0001d000;\n    }" (if "if") (parenthesized_expression "(iVar4 != 0x8000)" (( "(") (binary_expression "iVar4 != 0x8000" (identifier "iVar4") (!= "!=") (number_literal "0x8000")) () ")")) (compound_statement "{\n      if (iVar3 != 0) break;\n      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);\n      if (iVar3 == 0) goto LAB_0001cfdc;\n      uVar5 = 0xffffffff;\n      goto LAB_0001d000;\n    }" ({ "{") (if_statement "if (iVar3 != 0) break;" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_ferror_0003633c)(param_1)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_ferror_0003633c)(param_1)" (parenthesized_expression "(*(code *)PTR_ferror_0003633c)" (( "(") (pointer_expression "*(code *)PTR_ferror_0003633c" (* "*") (cast_expression "(code *)PTR_ferror_0003633c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ferror_0003633c"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) goto LAB_0001cfdc;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001cfdc;" (goto "goto") (statement_identifier "LAB_0001cfdc") (; ";"))) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" (identifier "uVar5") (= "=") (number_literal "0xffffffff")) (; ";")) (goto_statement "goto LAB_0001d000;" (goto "goto") (statement_identifier "LAB_0001d000") (; ";")) (} "}"))) (expression_statement "blake2b_update(auStack_120,iVar2,0x8000);" (call_expression "blake2b_update(auStack_120,iVar2,0x8000)" (identifier "blake2b_update") (argument_list "(auStack_120,iVar2,0x8000)" (( "(") (identifier "auStack_120") (, ",") (identifier "iVar2") (, ",") (number_literal "0x8000") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_feof_000362e0)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_feof_000362e0)(param_1)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_feof_000362e0)(param_1)" (parenthesized_expression "(*(code *)PTR_feof_000362e0)" (( "(") (pointer_expression "*(code *)PTR_feof_000362e0" (* "*") (cast_expression "(code *)PTR_feof_000362e0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_feof_000362e0"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\nLAB_0001cfdc:\n    if (iVar4 != 0) {\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }\n    blake2b_final(auStack_120,param_2,param_3);\n    uVar5 = 0;\nLAB_0001d000:\n    (*(code *)PTR_free_0003634c)(iVar2);\n    goto LAB_0001d010;\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0001cfdc:\n    if (iVar4 != 0) {\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }\n    blake2b_final(auStack_120,param_2,param_3);\n    uVar5 = 0;\nLAB_0001d000:\n    (*(code *)PTR_free_0003634c)(iVar2);\n    goto LAB_0001d010;\n  }" ({ "{") (labeled_statement "LAB_0001cfdc:\n    if (iVar4 != 0) {\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }" (statement_identifier "LAB_0001cfdc") (: ":") (if_statement "if (iVar4 != 0) {\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      blake2b_update(auStack_120,iVar2,iVar4);\n    }" ({ "{") (expression_statement "blake2b_update(auStack_120,iVar2,iVar4);" (call_expression "blake2b_update(auStack_120,iVar2,iVar4)" (identifier "blake2b_update") (argument_list "(auStack_120,iVar2,iVar4)" (( "(") (identifier "auStack_120") (, ",") (identifier "iVar2") (, ",") (identifier "iVar4") () ")"))) (; ";")) (} "}")))) (expression_statement "blake2b_final(auStack_120,param_2,param_3);" (call_expression "blake2b_final(auStack_120,param_2,param_3)" (identifier "blake2b_final") (argument_list "(auStack_120,param_2,param_3)" (( "(") (identifier "auStack_120") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0001d000:\n    (*(code *)PTR_free_0003634c)(iVar2);" (statement_identifier "LAB_0001d000") (: ":") (expression_statement "(*(code *)PTR_free_0003634c)(iVar2);" (call_expression "(*(code *)PTR_free_0003634c)(iVar2)" (parenthesized_expression "(*(code *)PTR_free_0003634c)" (( "(") (pointer_expression "*(code *)PTR_free_0003634c" (* "*") (cast_expression "(code *)PTR_free_0003634c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0003634c"))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";"))) (goto_statement "goto LAB_0001d010;" (goto "goto") (statement_identifier "LAB_0001d010") (; ";")) (} "}"))) (goto_statement "goto LAB_0001cf88;" (goto "goto") (statement_identifier "LAB_0001cf88") (; ";")) (} "}")))
(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: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) 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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (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 (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (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: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (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 (binary_expression left: (identifier) right: (identifier)) (number_literal) (binary_expression left: (number_literal) right: (identifier)) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal))))) condition: (parenthesized_expression (true))) (expression_statement (assignment_expression left: (identifier) right: (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (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) (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_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))))) (goto_statement label: (statement_identifier)))) (goto_statement label: (statement_identifier)))))

undefined4 MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  undefined1 auStack_120 [244];
  int local_2c;
  
  puVar1 = PTR___stack_chk_guard_00036344;
  local_2c = *(int *)PTR___stack_chk_guard_00036344;
  iVar2 = (*(code *)PTR_malloc_000362f4)(0x8000);
  if (iVar2 == 0) {
    uVar5 = 0xffffffff;
LAB_0001d010:
    if (local_2c == *(int *)puVar1) {
      return uVar5;
    }
    (*(code *)PTR___stack_chk_fail_00036328)();
    uVar5 = usage(1);
    return uVar5;
  }
  blake2b_init(auStack_120,param_3);
  do {
    iVar4 = 0;
LAB_0001cf88:
    iVar3 = (*(code *)PTR_fread_00036310)(iVar2 + iVar4,1,0x8000 - iVar4,param_1);
    iVar4 = iVar4 + iVar3;
    if (iVar4 != 0x8000) {
      if (iVar3 != 0) break;
      iVar3 = (*(code *)PTR_ferror_0003633c)(param_1);
      if (iVar3 == 0) goto LAB_0001cfdc;
      uVar5 = 0xffffffff;
      goto LAB_0001d000;
    }
    blake2b_update(auStack_120,iVar2,0x8000);
  } while( true );
  iVar3 = (*(code *)PTR_feof_000362e0)(param_1);
  if (iVar3 != 0) {
LAB_0001cfdc:
    if (iVar4 != 0) {
      blake2b_update(auStack_120,iVar2,iVar4);
    }
    blake2b_final(auStack_120,param_2,param_3);
    uVar5 = 0;
LAB_0001d000:
    (*(code *)PTR_free_0003634c)(iVar2);
    goto LAB_0001d010;
  }
  goto LAB_0001cf88;
}

