
void randread(randread_source *s,void *buf,size_t size)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 uVar3;
  void *pvVar4;
  FILE *pFVar5;
  uint uVar6;
  isaac_word *result;
  isaac_state *s_00;
  _func_void_void_ptr *p_Var7;
  
  pFVar5 = s->source;
  if (pFVar5 != (FILE *)0x0) {
    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();
    while( true ) {
      iVar2 = (*(code *)PTR_fread_unlocked_000312b0)(buf,1,size,pFVar5);
      size = size - iVar2;
      uVar3 = *puVar1;
      buf = (void *)((int)buf + iVar2);
      if (size == 0) break;
      p_Var7 = s->handler;
      pvVar4 = s->handler_arg;
      if ((s->source->_flags & 0x20U) == 0) {
        uVar3 = 0;
      }
      *puVar1 = uVar3;
      (*p_Var7)(pvVar4);
      pFVar5 = s->source;
    }
    return;
  }
  uVar6 = (s->buf).isaac.buffered;
  result = (isaac_word *)((s->buf).c + 0x410);
  s_00 = &(s->buf).isaac.state;
  if (size <= uVar6) {
    result = (isaac_word *)((int)result + (0x400 - uVar6));
    goto LAB_0001940c;
  }
  do {
    (*(code *)PTR_memcpy_000313c0)(buf,(int)result + (0x400 - uVar6),uVar6);
    buf = (void *)((int)buf + uVar6);
    size = size - uVar6;
    if (((uint)buf & 3) == 0) goto joined_r0x00019430;
    uVar6 = 0x400;
    isaac_refill(s_00,result);
  } while (0x400 < size);
  goto LAB_00019408;
joined_r0x00019430:
  while (0x3ff < size) {
    size = size - 0x400;
    isaac_refill(s_00,(isaac_word *)buf);
    buf = (void *)((int)buf + 0x400);
    if (size == 0) {
      (s->buf).isaac.buffered = 0;
      return;
    }
  }
  isaac_refill(s_00,result);
LAB_00019408:
  uVar6 = 0x400;
LAB_0001940c:
  (*(code *)PTR_memcpy_000313c0)(buf,result,size);
  (s->buf).isaac.buffered = uVar6 - size;
  return;
}



void randread(int *param_1,uint param_2,uint param_3)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  int iVar3;
  uint uVar4;
  int *piVar5;
  int *piVar6;
  code *pcVar7;
  
  iVar3 = *param_1;
  if (iVar3 != 0) {
    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();
    while( true ) {
      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);
      param_3 = param_3 - iVar3;
      uVar2 = *puVar1;
      param_2 = param_2 + iVar3;
      if (param_3 == 0) break;
      pcVar7 = (code *)param_1[1];
      iVar3 = param_1[2];
      if ((*(uint *)*param_1 & 0x20) == 0) {
        uVar2 = 0;
      }
      *puVar1 = uVar2;
      (*pcVar7)(iVar3);
      iVar3 = *param_1;
    }
    return;
  }
  uVar4 = param_1[3];
  piVar5 = param_1 + 0x107;
  piVar6 = param_1 + 4;
  if (param_3 <= uVar4) {
    piVar5 = (int *)((int)piVar5 + (0x400 - uVar4));
    goto LAB_0001940c;
  }
  do {
    (*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4);
    param_2 = param_2 + uVar4;
    param_3 = param_3 - uVar4;
    if ((param_2 & 3) == 0) goto joined_r0x00019430;
    uVar4 = 0x400;
    isaac_refill(piVar6,piVar5);
  } while (0x400 < param_3);
  goto LAB_00019408;
joined_r0x00019430:
  while (0x3ff < param_3) {
    param_3 = param_3 - 0x400;
    isaac_refill(piVar6,param_2);
    param_2 = param_2 + 0x400;
    if (param_3 == 0) {
      param_1[3] = 0;
      return;
    }
  }
  isaac_refill(piVar6,piVar5);
LAB_00019408:
  uVar4 = 0x400;
LAB_0001940c:
  (*(code *)PTR_memcpy_000313c0)(param_2,piVar5,param_3);
  param_1[3] = uVar4 - param_3;
  return;
}


lui gp,0x2
addiu gp,gp,-0x1ec
addu gp,gp,t9
addiu sp,sp,-0x38
sw s3,0x24(sp)
sw gp,0x10(sp)
sw s2,0x20(sp)
or s2,a0,zero
sw s1,0x1c(sp)
or s1,a1,zero
sw s0,0x18(sp)
sw ra,0x34(sp)
sw s6,0x30(sp)
sw s5,0x2c(sp)
sw s4,0x28(sp)
lw s3,0x0(a0)
beq s3,zero,0x000193a4
_or s0,a2,zero
lw t9,-0x7dcc(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00019354
_or s4,v0,zero
lw v0,0x0(s2)
lw t9,0x4(s2)
lw a0,0x8(s2)
lw v0,0x0(v0)
andi v0,v0,0x20
movz v1,zero,v0
jalr t9
_sw v1,0x0(s4)
lw gp,0x10(sp)
lw s3,0x0(s2)
lw t9,-0x7e30(gp)
li a1,0x1
or a0,s1,zero
or a2,s0,zero
jalr t9
_or a3,s3,zero
subu s0,s0,v0
lw v1,0x0(s4)
bne s0,zero,0x0001932c
_addu s1,s1,v0
lw ra,0x34(sp)
lw s6,0x30(sp)
lw s5,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x38
lw s3,0xc(a0)
addiu s4,a0,0x41c
addiu s5,a0,0x10
sltu v0,s3,a2
beq v0,zero,0x000194ac
_li s6,0x400
subu a1,s6,s3
lw t9,-0x7d20(gp)
or a0,s1,zero
addu a1,s4,a1
jalr t9
_or a2,s3,zero
addu s1,s1,s3
lw gp,0x10(sp)
or a1,s4,zero
andi v0,s1,0x3
or a0,s5,zero
subu s0,s0,s3
beq v0,zero,0x0001942c
_lw t9,-0x7ea4(gp)
bal 0x00019540
_li s3,0x400
sltiu v0,s0,0x401
beq v0,zero,0x000193bc
_lw gp,0x10(sp)
li s3,0x400
lw t9,-0x7d20(gp)
or a2,s0,zero
subu s0,s3,s0
or a1,s4,zero
jalr t9
_or a0,s1,zero
b 0x0001937c
_sw s0,0xc(s2)
sltiu v0,s0,0x400
beq v0,zero,0x00019448
_or a1,s4,zero
b 0x0001949c
_nop
bne v0,zero,0x00019498
_lw t9,-0x7ea4(gp)
lw t9,-0x7ea4(gp)
addiu s0,s0,-0x400
or a1,s1,zero
bal 0x00019540
_or a0,s5,zero
addiu s1,s1,0x400
lw gp,0x10(sp)
bne s0,zero,0x00019440
_sltiu v0,s0,0x400
lw ra,0x34(sp)
lw s6,0x30(sp)
lw s5,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
sw zero,0xc(s2)
lw s2,0x20(sp)
jr ra
_addiu sp,sp,0x38
or a1,s4,zero
bal 0x00019540
_or a0,s5,zero
b 0x00019408
_lw gp,0x10(sp)
subu s4,s4,s3
b 0x0001940c
_addiu s4,s4,0x400
(translation_unit "void randread(int *param_1,uint param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  int *piVar6;\n  code *pcVar7;\n  \n  iVar3 = *param_1;\n  if (iVar3 != 0) {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();\n    while( true ) {\n      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);\n      param_3 = param_3 - iVar3;\n      uVar2 = *puVar1;\n      param_2 = param_2 + iVar3;\n      if (param_3 == 0) break;\n      pcVar7 = (code *)param_1[1];\n      iVar3 = param_1[2];\n      if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }\n      *puVar1 = uVar2;\n      (*pcVar7)(iVar3);\n      iVar3 = *param_1;\n    }\n    return;\n  }\n  uVar4 = param_1[3];\n  piVar5 = param_1 + 0x107;\n  piVar6 = param_1 + 4;\n  if (param_3 <= uVar4) {\n    piVar5 = (int *)((int)piVar5 + (0x400 - uVar4));\n    goto LAB_0001940c;\n  }\n  do {\n    (*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4);\n    param_2 = param_2 + uVar4;\n    param_3 = param_3 - uVar4;\n    if ((param_2 & 3) == 0) goto joined_r0x00019430;\n    uVar4 = 0x400;\n    isaac_refill(piVar6,piVar5);\n  } while (0x400 < param_3);\n  goto LAB_00019408;\njoined_r0x00019430:\n  while (0x3ff < param_3) {\n    param_3 = param_3 - 0x400;\n    isaac_refill(piVar6,param_2);\n    param_2 = param_2 + 0x400;\n    if (param_3 == 0) {\n      param_1[3] = 0;\n      return;\n    }\n  }\n  isaac_refill(piVar6,piVar5);\nLAB_00019408:\n  uVar4 = 0x400;\nLAB_0001940c:\n  (*(code *)PTR_memcpy_000313c0)(param_2,piVar5,param_3);\n  param_1[3] = uVar4 - param_3;\n  return;\n}\n\n" (function_definition "void randread(int *param_1,uint param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  int *piVar6;\n  code *pcVar7;\n  \n  iVar3 = *param_1;\n  if (iVar3 != 0) {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();\n    while( true ) {\n      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);\n      param_3 = param_3 - iVar3;\n      uVar2 = *puVar1;\n      param_2 = param_2 + iVar3;\n      if (param_3 == 0) break;\n      pcVar7 = (code *)param_1[1];\n      iVar3 = param_1[2];\n      if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }\n      *puVar1 = uVar2;\n      (*pcVar7)(iVar3);\n      iVar3 = *param_1;\n    }\n    return;\n  }\n  uVar4 = param_1[3];\n  piVar5 = param_1 + 0x107;\n  piVar6 = param_1 + 4;\n  if (param_3 <= uVar4) {\n    piVar5 = (int *)((int)piVar5 + (0x400 - uVar4));\n    goto LAB_0001940c;\n  }\n  do {\n    (*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4);\n    param_2 = param_2 + uVar4;\n    param_3 = param_3 - uVar4;\n    if ((param_2 & 3) == 0) goto joined_r0x00019430;\n    uVar4 = 0x400;\n    isaac_refill(piVar6,piVar5);\n  } while (0x400 < param_3);\n  goto LAB_00019408;\njoined_r0x00019430:\n  while (0x3ff < param_3) {\n    param_3 = param_3 - 0x400;\n    isaac_refill(piVar6,param_2);\n    param_2 = param_2 + 0x400;\n    if (param_3 == 0) {\n      param_1[3] = 0;\n      return;\n    }\n  }\n  isaac_refill(piVar6,piVar5);\nLAB_00019408:\n  uVar4 = 0x400;\nLAB_0001940c:\n  (*(code *)PTR_memcpy_000313c0)(param_2,piVar5,param_3);\n  param_1[3] = uVar4 - param_3;\n  return;\n}" primitive_type (function_declarator "randread(int *param_1,uint param_2,uint param_3)" identifier (parameter_list "(int *param_1,uint param_2,uint param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  int *piVar6;\n  code *pcVar7;\n  \n  iVar3 = *param_1;\n  if (iVar3 != 0) {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();\n    while( true ) {\n      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);\n      param_3 = param_3 - iVar3;\n      uVar2 = *puVar1;\n      param_2 = param_2 + iVar3;\n      if (param_3 == 0) break;\n      pcVar7 = (code *)param_1[1];\n      iVar3 = param_1[2];\n      if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }\n      *puVar1 = uVar2;\n      (*pcVar7)(iVar3);\n      iVar3 = *param_1;\n    }\n    return;\n  }\n  uVar4 = param_1[3];\n  piVar5 = param_1 + 0x107;\n  piVar6 = param_1 + 4;\n  if (param_3 <= uVar4) {\n    piVar5 = (int *)((int)piVar5 + (0x400 - uVar4));\n    goto LAB_0001940c;\n  }\n  do {\n    (*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4);\n    param_2 = param_2 + uVar4;\n    param_3 = param_3 - uVar4;\n    if ((param_2 & 3) == 0) goto joined_r0x00019430;\n    uVar4 = 0x400;\n    isaac_refill(piVar6,piVar5);\n  } while (0x400 < param_3);\n  goto LAB_00019408;\njoined_r0x00019430:\n  while (0x3ff < param_3) {\n    param_3 = param_3 - 0x400;\n    isaac_refill(piVar6,param_2);\n    param_2 = param_2 + 0x400;\n    if (param_3 == 0) {\n      param_1[3] = 0;\n      return;\n    }\n  }\n  isaac_refill(piVar6,piVar5);\nLAB_00019408:\n  uVar4 = 0x400;\nLAB_0001940c:\n  (*(code *)PTR_memcpy_000313c0)(param_2,piVar5,param_3);\n  param_1[3] = uVar4 - param_3;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar3 != 0) {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();\n    while( true ) {\n      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);\n      param_3 = param_3 - iVar3;\n      uVar2 = *puVar1;\n      param_2 = param_2 + iVar3;\n      if (param_3 == 0) break;\n      pcVar7 = (code *)param_1[1];\n      iVar3 = param_1[2];\n      if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }\n      *puVar1 = uVar2;\n      (*pcVar7)(iVar3);\n      iVar3 = *param_1;\n    }\n    return;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();\n    while( true ) {\n      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);\n      param_3 = param_3 - iVar3;\n      uVar2 = *puVar1;\n      param_2 = param_2 + iVar3;\n      if (param_3 == 0) break;\n      pcVar7 = (code *)param_1[1];\n      iVar3 = param_1[2];\n      if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }\n      *puVar1 = uVar2;\n      (*pcVar7)(iVar3);\n      iVar3 = *param_1;\n    }\n    return;\n  }" { (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00031314)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00031314)()" (parenthesized_expression "(*(code *)PTR___errno_location_00031314)" ( (pointer_expression "*(code *)PTR___errno_location_00031314" * (cast_expression "(code *)PTR___errno_location_00031314" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (while_statement "while( true ) {\n      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);\n      param_3 = param_3 - iVar3;\n      uVar2 = *puVar1;\n      param_2 = param_2 + iVar3;\n      if (param_3 == 0) break;\n      pcVar7 = (code *)param_1[1];\n      iVar3 = param_1[2];\n      if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }\n      *puVar1 = uVar2;\n      (*pcVar7)(iVar3);\n      iVar3 = *param_1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);\n      param_3 = param_3 - iVar3;\n      uVar2 = *puVar1;\n      param_2 = param_2 + iVar3;\n      if (param_3 == 0) break;\n      pcVar7 = (code *)param_1[1];\n      iVar3 = param_1[2];\n      if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }\n      *puVar1 = uVar2;\n      (*pcVar7)(iVar3);\n      iVar3 = *param_1;\n    }" { (expression_statement "iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);" (assignment_expression "iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3)" identifier = (call_expression "(*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3)" (parenthesized_expression "(*(code *)PTR_fread_unlocked_000312b0)" ( (pointer_expression "*(code *)PTR_fread_unlocked_000312b0" * (cast_expression "(code *)PTR_fread_unlocked_000312b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,1,param_3,iVar3)" ( identifier , number_literal , identifier , identifier )))) ;) (expression_statement "param_3 = param_3 - iVar3;" (assignment_expression "param_3 = param_3 - iVar3" identifier = (binary_expression "param_3 - iVar3" identifier - identifier)) ;) (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "param_2 = param_2 + iVar3;" (assignment_expression "param_2 = param_2 + iVar3" identifier = (binary_expression "param_2 + iVar3" identifier + identifier)) ;) (if_statement "if (param_3 == 0) break;" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pcVar7 = (code *)param_1[1];" (assignment_expression "pcVar7 = (code *)param_1[1]" identifier = (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar3 = param_1[2];" (assignment_expression "iVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }" if (parenthesized_expression "((*(uint *)*param_1 & 0x20) == 0)" ( (binary_expression "(*(uint *)*param_1 & 0x20) == 0" (parenthesized_expression "(*(uint *)*param_1 & 0x20)" ( (binary_expression "*(uint *)*param_1 & 0x20" (pointer_expression "*(uint *)*param_1" * (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) & number_literal) )) == number_literal) )) (compound_statement "{\n        uVar2 = 0;\n      }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) })) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "(*pcVar7)(iVar3);" (call_expression "(*pcVar7)(iVar3)" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (return_statement "return;" return ;) })) (expression_statement "uVar4 = param_1[3];" (assignment_expression "uVar4 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "piVar5 = param_1 + 0x107;" (assignment_expression "piVar5 = param_1 + 0x107" identifier = (binary_expression "param_1 + 0x107" identifier + number_literal)) ;) (expression_statement "piVar6 = param_1 + 4;" (assignment_expression "piVar6 = param_1 + 4" identifier = (binary_expression "param_1 + 4" identifier + number_literal)) ;) (if_statement "if (param_3 <= uVar4) {\n    piVar5 = (int *)((int)piVar5 + (0x400 - uVar4));\n    goto LAB_0001940c;\n  }" if (parenthesized_expression "(param_3 <= uVar4)" ( (binary_expression "param_3 <= uVar4" identifier <= identifier) )) (compound_statement "{\n    piVar5 = (int *)((int)piVar5 + (0x400 - uVar4));\n    goto LAB_0001940c;\n  }" { (expression_statement "piVar5 = (int *)((int)piVar5 + (0x400 - uVar4));" (assignment_expression "piVar5 = (int *)((int)piVar5 + (0x400 - uVar4))" identifier = (cast_expression "(int *)((int)piVar5 + (0x400 - uVar4))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar5 + (0x400 - uVar4))" ( (binary_expression "(int)piVar5 + (0x400 - uVar4)" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x400 - uVar4)" ( (binary_expression "0x400 - uVar4" number_literal - identifier) ))) )))) ;) (goto_statement "goto LAB_0001940c;" goto statement_identifier ;) })) (do_statement "do {\n    (*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4);\n    param_2 = param_2 + uVar4;\n    param_3 = param_3 - uVar4;\n    if ((param_2 & 3) == 0) goto joined_r0x00019430;\n    uVar4 = 0x400;\n    isaac_refill(piVar6,piVar5);\n  } while (0x400 < param_3);" do (compound_statement "{\n    (*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4);\n    param_2 = param_2 + uVar4;\n    param_3 = param_3 - uVar4;\n    if ((param_2 & 3) == 0) goto joined_r0x00019430;\n    uVar4 = 0x400;\n    isaac_refill(piVar6,piVar5);\n  }" { (expression_statement "(*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4);" (call_expression "(*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4)" (parenthesized_expression "(*(code *)PTR_memcpy_000313c0)" ( (pointer_expression "*(code *)PTR_memcpy_000313c0" * (cast_expression "(code *)PTR_memcpy_000313c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,(int)piVar5 + (0x400 - uVar4),uVar4)" ( identifier , (binary_expression "(int)piVar5 + (0x400 - uVar4)" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x400 - uVar4)" ( (binary_expression "0x400 - uVar4" number_literal - identifier) ))) , identifier ))) ;) (expression_statement "param_2 = param_2 + uVar4;" (assignment_expression "param_2 = param_2 + uVar4" identifier = (binary_expression "param_2 + uVar4" identifier + identifier)) ;) (expression_statement "param_3 = param_3 - uVar4;" (assignment_expression "param_3 = param_3 - uVar4" identifier = (binary_expression "param_3 - uVar4" identifier - identifier)) ;) (if_statement "if ((param_2 & 3) == 0) goto joined_r0x00019430;" if (parenthesized_expression "((param_2 & 3) == 0)" ( (binary_expression "(param_2 & 3) == 0" (parenthesized_expression "(param_2 & 3)" ( (binary_expression "param_2 & 3" identifier & number_literal) )) == number_literal) )) (goto_statement "goto joined_r0x00019430;" goto statement_identifier ;)) (expression_statement "uVar4 = 0x400;" (assignment_expression "uVar4 = 0x400" identifier = number_literal) ;) (expression_statement "isaac_refill(piVar6,piVar5);" (call_expression "isaac_refill(piVar6,piVar5)" identifier (argument_list "(piVar6,piVar5)" ( identifier , identifier ))) ;) }) while (parenthesized_expression "(0x400 < param_3)" ( (binary_expression "0x400 < param_3" number_literal < identifier) )) ;) (goto_statement "goto LAB_00019408;" goto statement_identifier ;) (labeled_statement "joined_r0x00019430:\n  while (0x3ff < param_3) {\n    param_3 = param_3 - 0x400;\n    isaac_refill(piVar6,param_2);\n    param_2 = param_2 + 0x400;\n    if (param_3 == 0) {\n      param_1[3] = 0;\n      return;\n    }\n  }" statement_identifier : (while_statement "while (0x3ff < param_3) {\n    param_3 = param_3 - 0x400;\n    isaac_refill(piVar6,param_2);\n    param_2 = param_2 + 0x400;\n    if (param_3 == 0) {\n      param_1[3] = 0;\n      return;\n    }\n  }" while (parenthesized_expression "(0x3ff < param_3)" ( (binary_expression "0x3ff < param_3" number_literal < identifier) )) (compound_statement "{\n    param_3 = param_3 - 0x400;\n    isaac_refill(piVar6,param_2);\n    param_2 = param_2 + 0x400;\n    if (param_3 == 0) {\n      param_1[3] = 0;\n      return;\n    }\n  }" { (expression_statement "param_3 = param_3 - 0x400;" (assignment_expression "param_3 = param_3 - 0x400" identifier = (binary_expression "param_3 - 0x400" identifier - number_literal)) ;) (expression_statement "isaac_refill(piVar6,param_2);" (call_expression "isaac_refill(piVar6,param_2)" identifier (argument_list "(piVar6,param_2)" ( identifier , identifier ))) ;) (expression_statement "param_2 = param_2 + 0x400;" (assignment_expression "param_2 = param_2 + 0x400" identifier = (binary_expression "param_2 + 0x400" identifier + number_literal)) ;) (if_statement "if (param_3 == 0) {\n      param_1[3] = 0;\n      return;\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      param_1[3] = 0;\n      return;\n    }" { (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })) }))) (expression_statement "isaac_refill(piVar6,piVar5);" (call_expression "isaac_refill(piVar6,piVar5)" identifier (argument_list "(piVar6,piVar5)" ( identifier , identifier ))) ;) (labeled_statement "LAB_00019408:\n  uVar4 = 0x400;" statement_identifier : (expression_statement "uVar4 = 0x400;" (assignment_expression "uVar4 = 0x400" identifier = number_literal) ;)) (labeled_statement "LAB_0001940c:\n  (*(code *)PTR_memcpy_000313c0)(param_2,piVar5,param_3);" statement_identifier : (expression_statement "(*(code *)PTR_memcpy_000313c0)(param_2,piVar5,param_3);" (call_expression "(*(code *)PTR_memcpy_000313c0)(param_2,piVar5,param_3)" (parenthesized_expression "(*(code *)PTR_memcpy_000313c0)" ( (pointer_expression "*(code *)PTR_memcpy_000313c0" * (cast_expression "(code *)PTR_memcpy_000313c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,piVar5,param_3)" ( identifier , identifier , identifier ))) ;)) (expression_statement "param_1[3] = uVar4 - param_3;" (assignment_expression "param_1[3] = uVar4 - param_3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (binary_expression "uVar4 - param_3" identifier - identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void randread(randread_source *s,void *buf,size_t size)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  void *pvVar4;\n  FILE *pFVar5;\n  uint uVar6;\n  isaac_word *result;\n  isaac_state *s_00;\n  _func_void_void_ptr *p_Var7;\n  \n  pFVar5 = s->source;\n  if (pFVar5 != (FILE *)0x0) {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();\n    while( true ) {\n      iVar2 = (*(code *)PTR_fread_unlocked_000312b0)(buf,1,size,pFVar5);\n      size = size - iVar2;\n      uVar3 = *puVar1;\n      buf = (void *)((int)buf + iVar2);\n      if (size == 0) break;\n      p_Var7 = s->handler;\n      pvVar4 = s->handler_arg;\n      if ((s->source->_flags & 0x20U) == 0) {\n        uVar3 = 0;\n      }\n      *puVar1 = uVar3;\n      (*p_Var7)(pvVar4);\n      pFVar5 = s->source;\n    }\n    return;\n  }\n  uVar6 = (s->buf).isaac.buffered;\n  result = (isaac_word *)((s->buf).c + 0x410);\n  s_00 = &(s->buf).isaac.state;\n  if (size <= uVar6) {\n    result = (isaac_word *)((int)result + (0x400 - uVar6));\n    goto LAB_0001940c;\n  }\n  do {\n    (*(code *)PTR_memcpy_000313c0)(buf,(int)result + (0x400 - uVar6),uVar6);\n    buf = (void *)((int)buf + uVar6);\n    size = size - uVar6;\n    if (((uint)buf & 3) == 0) goto joined_r0x00019430;\n    uVar6 = 0x400;\n    isaac_refill(s_00,result);\n  } while (0x400 < size);\n  goto LAB_00019408;\njoined_r0x00019430:\n  while (0x3ff < size) {\n    size = size - 0x400;\n    isaac_refill(s_00,(isaac_word *)buf);\n    buf = (void *)((int)buf + 0x400);\n    if (size == 0) {\n      (s->buf).isaac.buffered = 0;\n      return;\n    }\n  }\n  isaac_refill(s_00,result);\nLAB_00019408:\n  uVar6 = 0x400;\nLAB_0001940c:\n  (*(code *)PTR_memcpy_000313c0)(buf,result,size);\n  (s->buf).isaac.buffered = uVar6 - size;\n  return;\n}\n\n" (function_definition "void randread(randread_source *s,void *buf,size_t size)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  void *pvVar4;\n  FILE *pFVar5;\n  uint uVar6;\n  isaac_word *result;\n  isaac_state *s_00;\n  _func_void_void_ptr *p_Var7;\n  \n  pFVar5 = s->source;\n  if (pFVar5 != (FILE *)0x0) {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();\n    while( true ) {\n      iVar2 = (*(code *)PTR_fread_unlocked_000312b0)(buf,1,size,pFVar5);\n      size = size - iVar2;\n      uVar3 = *puVar1;\n      buf = (void *)((int)buf + iVar2);\n      if (size == 0) break;\n      p_Var7 = s->handler;\n      pvVar4 = s->handler_arg;\n      if ((s->source->_flags & 0x20U) == 0) {\n        uVar3 = 0;\n      }\n      *puVar1 = uVar3;\n      (*p_Var7)(pvVar4);\n      pFVar5 = s->source;\n    }\n    return;\n  }\n  uVar6 = (s->buf).isaac.buffered;\n  result = (isaac_word *)((s->buf).c + 0x410);\n  s_00 = &(s->buf).isaac.state;\n  if (size <= uVar6) {\n    result = (isaac_word *)((int)result + (0x400 - uVar6));\n    goto LAB_0001940c;\n  }\n  do {\n    (*(code *)PTR_memcpy_000313c0)(buf,(int)result + (0x400 - uVar6),uVar6);\n    buf = (void *)((int)buf + uVar6);\n    size = size - uVar6;\n    if (((uint)buf & 3) == 0) goto joined_r0x00019430;\n    uVar6 = 0x400;\n    isaac_refill(s_00,result);\n  } while (0x400 < size);\n  goto LAB_00019408;\njoined_r0x00019430:\n  while (0x3ff < size) {\n    size = size - 0x400;\n    isaac_refill(s_00,(isaac_word *)buf);\n    buf = (void *)((int)buf + 0x400);\n    if (size == 0) {\n      (s->buf).isaac.buffered = 0;\n      return;\n    }\n  }\n  isaac_refill(s_00,result);\nLAB_00019408:\n  uVar6 = 0x400;\nLAB_0001940c:\n  (*(code *)PTR_memcpy_000313c0)(buf,result,size);\n  (s->buf).isaac.buffered = uVar6 - size;\n  return;\n}" primitive_type (function_declarator "randread(randread_source *s,void *buf,size_t size)" identifier (parameter_list "(randread_source *s,void *buf,size_t size)" ( (parameter_declaration "randread_source *s" type_identifier (pointer_declarator "*s" * identifier)) , (parameter_declaration "void *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "size_t size" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  void *pvVar4;\n  FILE *pFVar5;\n  uint uVar6;\n  isaac_word *result;\n  isaac_state *s_00;\n  _func_void_void_ptr *p_Var7;\n  \n  pFVar5 = s->source;\n  if (pFVar5 != (FILE *)0x0) {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();\n    while( true ) {\n      iVar2 = (*(code *)PTR_fread_unlocked_000312b0)(buf,1,size,pFVar5);\n      size = size - iVar2;\n      uVar3 = *puVar1;\n      buf = (void *)((int)buf + iVar2);\n      if (size == 0) break;\n      p_Var7 = s->handler;\n      pvVar4 = s->handler_arg;\n      if ((s->source->_flags & 0x20U) == 0) {\n        uVar3 = 0;\n      }\n      *puVar1 = uVar3;\n      (*p_Var7)(pvVar4);\n      pFVar5 = s->source;\n    }\n    return;\n  }\n  uVar6 = (s->buf).isaac.buffered;\n  result = (isaac_word *)((s->buf).c + 0x410);\n  s_00 = &(s->buf).isaac.state;\n  if (size <= uVar6) {\n    result = (isaac_word *)((int)result + (0x400 - uVar6));\n    goto LAB_0001940c;\n  }\n  do {\n    (*(code *)PTR_memcpy_000313c0)(buf,(int)result + (0x400 - uVar6),uVar6);\n    buf = (void *)((int)buf + uVar6);\n    size = size - uVar6;\n    if (((uint)buf & 3) == 0) goto joined_r0x00019430;\n    uVar6 = 0x400;\n    isaac_refill(s_00,result);\n  } while (0x400 < size);\n  goto LAB_00019408;\njoined_r0x00019430:\n  while (0x3ff < size) {\n    size = size - 0x400;\n    isaac_refill(s_00,(isaac_word *)buf);\n    buf = (void *)((int)buf + 0x400);\n    if (size == 0) {\n      (s->buf).isaac.buffered = 0;\n      return;\n    }\n  }\n  isaac_refill(s_00,result);\nLAB_00019408:\n  uVar6 = 0x400;\nLAB_0001940c:\n  (*(code *)PTR_memcpy_000313c0)(buf,result,size);\n  (s->buf).isaac.buffered = uVar6 - size;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "FILE *pFVar5;" type_identifier (pointer_declarator "*pFVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "isaac_word *result;" type_identifier (pointer_declarator "*result" * identifier) ;) (declaration "isaac_state *s_00;" type_identifier (pointer_declarator "*s_00" * identifier) ;) (declaration "_func_void_void_ptr *p_Var7;" type_identifier (pointer_declarator "*p_Var7" * identifier) ;) (expression_statement "pFVar5 = s->source;" (assignment_expression "pFVar5 = s->source" identifier = (field_expression "s->source" identifier -> field_identifier)) ;) (if_statement "if (pFVar5 != (FILE *)0x0) {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();\n    while( true ) {\n      iVar2 = (*(code *)PTR_fread_unlocked_000312b0)(buf,1,size,pFVar5);\n      size = size - iVar2;\n      uVar3 = *puVar1;\n      buf = (void *)((int)buf + iVar2);\n      if (size == 0) break;\n      p_Var7 = s->handler;\n      pvVar4 = s->handler_arg;\n      if ((s->source->_flags & 0x20U) == 0) {\n        uVar3 = 0;\n      }\n      *puVar1 = uVar3;\n      (*p_Var7)(pvVar4);\n      pFVar5 = s->source;\n    }\n    return;\n  }" if (parenthesized_expression "(pFVar5 != (FILE *)0x0)" ( (binary_expression "pFVar5 != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();\n    while( true ) {\n      iVar2 = (*(code *)PTR_fread_unlocked_000312b0)(buf,1,size,pFVar5);\n      size = size - iVar2;\n      uVar3 = *puVar1;\n      buf = (void *)((int)buf + iVar2);\n      if (size == 0) break;\n      p_Var7 = s->handler;\n      pvVar4 = s->handler_arg;\n      if ((s->source->_flags & 0x20U) == 0) {\n        uVar3 = 0;\n      }\n      *puVar1 = uVar3;\n      (*p_Var7)(pvVar4);\n      pFVar5 = s->source;\n    }\n    return;\n  }" { (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00031314)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00031314)()" (parenthesized_expression "(*(code *)PTR___errno_location_00031314)" ( (pointer_expression "*(code *)PTR___errno_location_00031314" * (cast_expression "(code *)PTR___errno_location_00031314" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (while_statement "while( true ) {\n      iVar2 = (*(code *)PTR_fread_unlocked_000312b0)(buf,1,size,pFVar5);\n      size = size - iVar2;\n      uVar3 = *puVar1;\n      buf = (void *)((int)buf + iVar2);\n      if (size == 0) break;\n      p_Var7 = s->handler;\n      pvVar4 = s->handler_arg;\n      if ((s->source->_flags & 0x20U) == 0) {\n        uVar3 = 0;\n      }\n      *puVar1 = uVar3;\n      (*p_Var7)(pvVar4);\n      pFVar5 = s->source;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar2 = (*(code *)PTR_fread_unlocked_000312b0)(buf,1,size,pFVar5);\n      size = size - iVar2;\n      uVar3 = *puVar1;\n      buf = (void *)((int)buf + iVar2);\n      if (size == 0) break;\n      p_Var7 = s->handler;\n      pvVar4 = s->handler_arg;\n      if ((s->source->_flags & 0x20U) == 0) {\n        uVar3 = 0;\n      }\n      *puVar1 = uVar3;\n      (*p_Var7)(pvVar4);\n      pFVar5 = s->source;\n    }" { (expression_statement "iVar2 = (*(code *)PTR_fread_unlocked_000312b0)(buf,1,size,pFVar5);" (assignment_expression "iVar2 = (*(code *)PTR_fread_unlocked_000312b0)(buf,1,size,pFVar5)" identifier = (call_expression "(*(code *)PTR_fread_unlocked_000312b0)(buf,1,size,pFVar5)" (parenthesized_expression "(*(code *)PTR_fread_unlocked_000312b0)" ( (pointer_expression "*(code *)PTR_fread_unlocked_000312b0" * (cast_expression "(code *)PTR_fread_unlocked_000312b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buf,1,size,pFVar5)" ( identifier , number_literal , identifier , identifier )))) ;) (expression_statement "size = size - iVar2;" (assignment_expression "size = size - iVar2" identifier = (binary_expression "size - iVar2" identifier - identifier)) ;) (expression_statement "uVar3 = *puVar1;" (assignment_expression "uVar3 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "buf = (void *)((int)buf + iVar2);" (assignment_expression "buf = (void *)((int)buf + iVar2)" identifier = (cast_expression "(void *)((int)buf + iVar2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)buf + iVar2)" ( (binary_expression "(int)buf + iVar2" (cast_expression "(int)buf" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (if_statement "if (size == 0) break;" if (parenthesized_expression "(size == 0)" ( (binary_expression "size == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "p_Var7 = s->handler;" (assignment_expression "p_Var7 = s->handler" identifier = (field_expression "s->handler" identifier -> field_identifier)) ;) (expression_statement "pvVar4 = s->handler_arg;" (assignment_expression "pvVar4 = s->handler_arg" identifier = (field_expression "s->handler_arg" identifier -> field_identifier)) ;) (if_statement "if ((s->source->_flags & 0x20U) == 0) {\n        uVar3 = 0;\n      }" if (parenthesized_expression "((s->source->_flags & 0x20U) == 0)" ( (binary_expression "(s->source->_flags & 0x20U) == 0" (parenthesized_expression "(s->source->_flags & 0x20U)" ( (binary_expression "s->source->_flags & 0x20U" (field_expression "s->source->_flags" (field_expression "s->source" identifier -> field_identifier) -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n        uVar3 = 0;\n      }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) })) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "(*p_Var7)(pvVar4);" (call_expression "(*p_Var7)(pvVar4)" (parenthesized_expression "(*p_Var7)" ( (pointer_expression "*p_Var7" * identifier) )) (argument_list "(pvVar4)" ( identifier ))) ;) (expression_statement "pFVar5 = s->source;" (assignment_expression "pFVar5 = s->source" identifier = (field_expression "s->source" identifier -> field_identifier)) ;) })) (return_statement "return;" return ;) })) (expression_statement "uVar6 = (s->buf).isaac.buffered;" (assignment_expression "uVar6 = (s->buf).isaac.buffered" identifier = (field_expression "(s->buf).isaac.buffered" (field_expression "(s->buf).isaac" (parenthesized_expression "(s->buf)" ( (field_expression "s->buf" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "result = (isaac_word *)((s->buf).c + 0x410);" (assignment_expression "result = (isaac_word *)((s->buf).c + 0x410)" identifier = (cast_expression "(isaac_word *)((s->buf).c + 0x410)" ( (type_descriptor "isaac_word *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((s->buf).c + 0x410)" ( (binary_expression "(s->buf).c + 0x410" (field_expression "(s->buf).c" (parenthesized_expression "(s->buf)" ( (field_expression "s->buf" identifier -> field_identifier) )) . field_identifier) + number_literal) )))) ;) (expression_statement "s_00 = &(s->buf).isaac.state;" (assignment_expression "s_00 = &(s->buf).isaac.state" identifier = (pointer_expression "&(s->buf).isaac.state" & (field_expression "(s->buf).isaac.state" (field_expression "(s->buf).isaac" (parenthesized_expression "(s->buf)" ( (field_expression "s->buf" identifier -> field_identifier) )) . field_identifier) . field_identifier))) ;) (if_statement "if (size <= uVar6) {\n    result = (isaac_word *)((int)result + (0x400 - uVar6));\n    goto LAB_0001940c;\n  }" if (parenthesized_expression "(size <= uVar6)" ( (binary_expression "size <= uVar6" identifier <= identifier) )) (compound_statement "{\n    result = (isaac_word *)((int)result + (0x400 - uVar6));\n    goto LAB_0001940c;\n  }" { (expression_statement "result = (isaac_word *)((int)result + (0x400 - uVar6));" (assignment_expression "result = (isaac_word *)((int)result + (0x400 - uVar6))" identifier = (cast_expression "(isaac_word *)((int)result + (0x400 - uVar6))" ( (type_descriptor "isaac_word *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)result + (0x400 - uVar6))" ( (binary_expression "(int)result + (0x400 - uVar6)" (cast_expression "(int)result" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x400 - uVar6)" ( (binary_expression "0x400 - uVar6" number_literal - identifier) ))) )))) ;) (goto_statement "goto LAB_0001940c;" goto statement_identifier ;) })) (do_statement "do {\n    (*(code *)PTR_memcpy_000313c0)(buf,(int)result + (0x400 - uVar6),uVar6);\n    buf = (void *)((int)buf + uVar6);\n    size = size - uVar6;\n    if (((uint)buf & 3) == 0) goto joined_r0x00019430;\n    uVar6 = 0x400;\n    isaac_refill(s_00,result);\n  } while (0x400 < size);" do (compound_statement "{\n    (*(code *)PTR_memcpy_000313c0)(buf,(int)result + (0x400 - uVar6),uVar6);\n    buf = (void *)((int)buf + uVar6);\n    size = size - uVar6;\n    if (((uint)buf & 3) == 0) goto joined_r0x00019430;\n    uVar6 = 0x400;\n    isaac_refill(s_00,result);\n  }" { (expression_statement "(*(code *)PTR_memcpy_000313c0)(buf,(int)result + (0x400 - uVar6),uVar6);" (call_expression "(*(code *)PTR_memcpy_000313c0)(buf,(int)result + (0x400 - uVar6),uVar6)" (parenthesized_expression "(*(code *)PTR_memcpy_000313c0)" ( (pointer_expression "*(code *)PTR_memcpy_000313c0" * (cast_expression "(code *)PTR_memcpy_000313c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buf,(int)result + (0x400 - uVar6),uVar6)" ( identifier , (binary_expression "(int)result + (0x400 - uVar6)" (cast_expression "(int)result" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x400 - uVar6)" ( (binary_expression "0x400 - uVar6" number_literal - identifier) ))) , identifier ))) ;) (expression_statement "buf = (void *)((int)buf + uVar6);" (assignment_expression "buf = (void *)((int)buf + uVar6)" identifier = (cast_expression "(void *)((int)buf + uVar6)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)buf + uVar6)" ( (binary_expression "(int)buf + uVar6" (cast_expression "(int)buf" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (expression_statement "size = size - uVar6;" (assignment_expression "size = size - uVar6" identifier = (binary_expression "size - uVar6" identifier - identifier)) ;) (if_statement "if (((uint)buf & 3) == 0) goto joined_r0x00019430;" if (parenthesized_expression "(((uint)buf & 3) == 0)" ( (binary_expression "((uint)buf & 3) == 0" (parenthesized_expression "((uint)buf & 3)" ( (binary_expression "(uint)buf & 3" (cast_expression "(uint)buf" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (goto_statement "goto joined_r0x00019430;" goto statement_identifier ;)) (expression_statement "uVar6 = 0x400;" (assignment_expression "uVar6 = 0x400" identifier = number_literal) ;) (expression_statement "isaac_refill(s_00,result);" (call_expression "isaac_refill(s_00,result)" identifier (argument_list "(s_00,result)" ( identifier , identifier ))) ;) }) while (parenthesized_expression "(0x400 < size)" ( (binary_expression "0x400 < size" number_literal < identifier) )) ;) (goto_statement "goto LAB_00019408;" goto statement_identifier ;) (labeled_statement "joined_r0x00019430:\n  while (0x3ff < size) {\n    size = size - 0x400;\n    isaac_refill(s_00,(isaac_word *)buf);\n    buf = (void *)((int)buf + 0x400);\n    if (size == 0) {\n      (s->buf).isaac.buffered = 0;\n      return;\n    }\n  }" statement_identifier : (while_statement "while (0x3ff < size) {\n    size = size - 0x400;\n    isaac_refill(s_00,(isaac_word *)buf);\n    buf = (void *)((int)buf + 0x400);\n    if (size == 0) {\n      (s->buf).isaac.buffered = 0;\n      return;\n    }\n  }" while (parenthesized_expression "(0x3ff < size)" ( (binary_expression "0x3ff < size" number_literal < identifier) )) (compound_statement "{\n    size = size - 0x400;\n    isaac_refill(s_00,(isaac_word *)buf);\n    buf = (void *)((int)buf + 0x400);\n    if (size == 0) {\n      (s->buf).isaac.buffered = 0;\n      return;\n    }\n  }" { (expression_statement "size = size - 0x400;" (assignment_expression "size = size - 0x400" identifier = (binary_expression "size - 0x400" identifier - number_literal)) ;) (expression_statement "isaac_refill(s_00,(isaac_word *)buf);" (call_expression "isaac_refill(s_00,(isaac_word *)buf)" identifier (argument_list "(s_00,(isaac_word *)buf)" ( identifier , (cast_expression "(isaac_word *)buf" ( (type_descriptor "isaac_word *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "buf = (void *)((int)buf + 0x400);" (assignment_expression "buf = (void *)((int)buf + 0x400)" identifier = (cast_expression "(void *)((int)buf + 0x400)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)buf + 0x400)" ( (binary_expression "(int)buf + 0x400" (cast_expression "(int)buf" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (size == 0) {\n      (s->buf).isaac.buffered = 0;\n      return;\n    }" if (parenthesized_expression "(size == 0)" ( (binary_expression "size == 0" identifier == number_literal) )) (compound_statement "{\n      (s->buf).isaac.buffered = 0;\n      return;\n    }" { (expression_statement "(s->buf).isaac.buffered = 0;" (assignment_expression "(s->buf).isaac.buffered = 0" (field_expression "(s->buf).isaac.buffered" (field_expression "(s->buf).isaac" (parenthesized_expression "(s->buf)" ( (field_expression "s->buf" identifier -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) (return_statement "return;" return ;) })) }))) (expression_statement "isaac_refill(s_00,result);" (call_expression "isaac_refill(s_00,result)" identifier (argument_list "(s_00,result)" ( identifier , identifier ))) ;) (labeled_statement "LAB_00019408:\n  uVar6 = 0x400;" statement_identifier : (expression_statement "uVar6 = 0x400;" (assignment_expression "uVar6 = 0x400" identifier = number_literal) ;)) (labeled_statement "LAB_0001940c:\n  (*(code *)PTR_memcpy_000313c0)(buf,result,size);" statement_identifier : (expression_statement "(*(code *)PTR_memcpy_000313c0)(buf,result,size);" (call_expression "(*(code *)PTR_memcpy_000313c0)(buf,result,size)" (parenthesized_expression "(*(code *)PTR_memcpy_000313c0)" ( (pointer_expression "*(code *)PTR_memcpy_000313c0" * (cast_expression "(code *)PTR_memcpy_000313c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buf,result,size)" ( identifier , identifier , identifier ))) ;)) (expression_statement "(s->buf).isaac.buffered = uVar6 - size;" (assignment_expression "(s->buf).isaac.buffered = uVar6 - size" (field_expression "(s->buf).isaac.buffered" (field_expression "(s->buf).isaac" (parenthesized_expression "(s->buf)" ( (field_expression "s->buf" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (binary_expression "uVar6 - size" identifier - identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void randread(int *param_1,uint param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  int *piVar6;\n  code *pcVar7;\n  \n  iVar3 = *param_1;\n  if (iVar3 != 0) {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();\n    while( true ) {\n      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);\n      param_3 = param_3 - iVar3;\n      uVar2 = *puVar1;\n      param_2 = param_2 + iVar3;\n      if (param_3 == 0) break;\n      pcVar7 = (code *)param_1[1];\n      iVar3 = param_1[2];\n      if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }\n      *puVar1 = uVar2;\n      (*pcVar7)(iVar3);\n      iVar3 = *param_1;\n    }\n    return;\n  }\n  uVar4 = param_1[3];\n  piVar5 = param_1 + 0x107;\n  piVar6 = param_1 + 4;\n  if (param_3 <= uVar4) {\n    piVar5 = (int *)((int)piVar5 + (0x400 - uVar4));\n    goto LAB_0001940c;\n  }\n  do {\n    (*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4);\n    param_2 = param_2 + uVar4;\n    param_3 = param_3 - uVar4;\n    if ((param_2 & 3) == 0) goto joined_r0x00019430;\n    uVar4 = 0x400;\n    isaac_refill(piVar6,piVar5);\n  } while (0x400 < param_3);\n  goto LAB_00019408;\njoined_r0x00019430:\n  while (0x3ff < param_3) {\n    param_3 = param_3 - 0x400;\n    isaac_refill(piVar6,param_2);\n    param_2 = param_2 + 0x400;\n    if (param_3 == 0) {\n      param_1[3] = 0;\n      return;\n    }\n  }\n  isaac_refill(piVar6,piVar5);\nLAB_00019408:\n  uVar4 = 0x400;\nLAB_0001940c:\n  (*(code *)PTR_memcpy_000313c0)(param_2,piVar5,param_3);\n  param_1[3] = uVar4 - param_3;\n  return;\n}\n\n" (function_definition "void randread(int *param_1,uint param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  int *piVar6;\n  code *pcVar7;\n  \n  iVar3 = *param_1;\n  if (iVar3 != 0) {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();\n    while( true ) {\n      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);\n      param_3 = param_3 - iVar3;\n      uVar2 = *puVar1;\n      param_2 = param_2 + iVar3;\n      if (param_3 == 0) break;\n      pcVar7 = (code *)param_1[1];\n      iVar3 = param_1[2];\n      if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }\n      *puVar1 = uVar2;\n      (*pcVar7)(iVar3);\n      iVar3 = *param_1;\n    }\n    return;\n  }\n  uVar4 = param_1[3];\n  piVar5 = param_1 + 0x107;\n  piVar6 = param_1 + 4;\n  if (param_3 <= uVar4) {\n    piVar5 = (int *)((int)piVar5 + (0x400 - uVar4));\n    goto LAB_0001940c;\n  }\n  do {\n    (*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4);\n    param_2 = param_2 + uVar4;\n    param_3 = param_3 - uVar4;\n    if ((param_2 & 3) == 0) goto joined_r0x00019430;\n    uVar4 = 0x400;\n    isaac_refill(piVar6,piVar5);\n  } while (0x400 < param_3);\n  goto LAB_00019408;\njoined_r0x00019430:\n  while (0x3ff < param_3) {\n    param_3 = param_3 - 0x400;\n    isaac_refill(piVar6,param_2);\n    param_2 = param_2 + 0x400;\n    if (param_3 == 0) {\n      param_1[3] = 0;\n      return;\n    }\n  }\n  isaac_refill(piVar6,piVar5);\nLAB_00019408:\n  uVar4 = 0x400;\nLAB_0001940c:\n  (*(code *)PTR_memcpy_000313c0)(param_2,piVar5,param_3);\n  param_1[3] = uVar4 - param_3;\n  return;\n}" primitive_type (function_declarator "randread(int *param_1,uint param_2,uint param_3)" identifier (parameter_list "(int *param_1,uint param_2,uint param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  int *piVar6;\n  code *pcVar7;\n  \n  iVar3 = *param_1;\n  if (iVar3 != 0) {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();\n    while( true ) {\n      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);\n      param_3 = param_3 - iVar3;\n      uVar2 = *puVar1;\n      param_2 = param_2 + iVar3;\n      if (param_3 == 0) break;\n      pcVar7 = (code *)param_1[1];\n      iVar3 = param_1[2];\n      if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }\n      *puVar1 = uVar2;\n      (*pcVar7)(iVar3);\n      iVar3 = *param_1;\n    }\n    return;\n  }\n  uVar4 = param_1[3];\n  piVar5 = param_1 + 0x107;\n  piVar6 = param_1 + 4;\n  if (param_3 <= uVar4) {\n    piVar5 = (int *)((int)piVar5 + (0x400 - uVar4));\n    goto LAB_0001940c;\n  }\n  do {\n    (*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4);\n    param_2 = param_2 + uVar4;\n    param_3 = param_3 - uVar4;\n    if ((param_2 & 3) == 0) goto joined_r0x00019430;\n    uVar4 = 0x400;\n    isaac_refill(piVar6,piVar5);\n  } while (0x400 < param_3);\n  goto LAB_00019408;\njoined_r0x00019430:\n  while (0x3ff < param_3) {\n    param_3 = param_3 - 0x400;\n    isaac_refill(piVar6,param_2);\n    param_2 = param_2 + 0x400;\n    if (param_3 == 0) {\n      param_1[3] = 0;\n      return;\n    }\n  }\n  isaac_refill(piVar6,piVar5);\nLAB_00019408:\n  uVar4 = 0x400;\nLAB_0001940c:\n  (*(code *)PTR_memcpy_000313c0)(param_2,piVar5,param_3);\n  param_1[3] = uVar4 - param_3;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar3 != 0) {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();\n    while( true ) {\n      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);\n      param_3 = param_3 - iVar3;\n      uVar2 = *puVar1;\n      param_2 = param_2 + iVar3;\n      if (param_3 == 0) break;\n      pcVar7 = (code *)param_1[1];\n      iVar3 = param_1[2];\n      if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }\n      *puVar1 = uVar2;\n      (*pcVar7)(iVar3);\n      iVar3 = *param_1;\n    }\n    return;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();\n    while( true ) {\n      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);\n      param_3 = param_3 - iVar3;\n      uVar2 = *puVar1;\n      param_2 = param_2 + iVar3;\n      if (param_3 == 0) break;\n      pcVar7 = (code *)param_1[1];\n      iVar3 = param_1[2];\n      if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }\n      *puVar1 = uVar2;\n      (*pcVar7)(iVar3);\n      iVar3 = *param_1;\n    }\n    return;\n  }" { (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00031314)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00031314)()" (parenthesized_expression "(*(code *)PTR___errno_location_00031314)" ( (pointer_expression "*(code *)PTR___errno_location_00031314" * (cast_expression "(code *)PTR___errno_location_00031314" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (while_statement "while( true ) {\n      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);\n      param_3 = param_3 - iVar3;\n      uVar2 = *puVar1;\n      param_2 = param_2 + iVar3;\n      if (param_3 == 0) break;\n      pcVar7 = (code *)param_1[1];\n      iVar3 = param_1[2];\n      if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }\n      *puVar1 = uVar2;\n      (*pcVar7)(iVar3);\n      iVar3 = *param_1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);\n      param_3 = param_3 - iVar3;\n      uVar2 = *puVar1;\n      param_2 = param_2 + iVar3;\n      if (param_3 == 0) break;\n      pcVar7 = (code *)param_1[1];\n      iVar3 = param_1[2];\n      if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }\n      *puVar1 = uVar2;\n      (*pcVar7)(iVar3);\n      iVar3 = *param_1;\n    }" { (expression_statement "iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);" (assignment_expression "iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3)" identifier = (call_expression "(*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3)" (parenthesized_expression "(*(code *)PTR_fread_unlocked_000312b0)" ( (pointer_expression "*(code *)PTR_fread_unlocked_000312b0" * (cast_expression "(code *)PTR_fread_unlocked_000312b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,1,param_3,iVar3)" ( identifier , number_literal , identifier , identifier )))) ;) (expression_statement "param_3 = param_3 - iVar3;" (assignment_expression "param_3 = param_3 - iVar3" identifier = (binary_expression "param_3 - iVar3" identifier - identifier)) ;) (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "param_2 = param_2 + iVar3;" (assignment_expression "param_2 = param_2 + iVar3" identifier = (binary_expression "param_2 + iVar3" identifier + identifier)) ;) (if_statement "if (param_3 == 0) break;" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pcVar7 = (code *)param_1[1];" (assignment_expression "pcVar7 = (code *)param_1[1]" identifier = (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar3 = param_1[2];" (assignment_expression "iVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }" if (parenthesized_expression "((*(uint *)*param_1 & 0x20) == 0)" ( (binary_expression "(*(uint *)*param_1 & 0x20) == 0" (parenthesized_expression "(*(uint *)*param_1 & 0x20)" ( (binary_expression "*(uint *)*param_1 & 0x20" (pointer_expression "*(uint *)*param_1" * (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) & number_literal) )) == number_literal) )) (compound_statement "{\n        uVar2 = 0;\n      }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) })) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "(*pcVar7)(iVar3);" (call_expression "(*pcVar7)(iVar3)" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (return_statement "return;" return ;) })) (expression_statement "uVar4 = param_1[3];" (assignment_expression "uVar4 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "piVar5 = param_1 + 0x107;" (assignment_expression "piVar5 = param_1 + 0x107" identifier = (binary_expression "param_1 + 0x107" identifier + number_literal)) ;) (expression_statement "piVar6 = param_1 + 4;" (assignment_expression "piVar6 = param_1 + 4" identifier = (binary_expression "param_1 + 4" identifier + number_literal)) ;) (if_statement "if (param_3 <= uVar4) {\n    piVar5 = (int *)((int)piVar5 + (0x400 - uVar4));\n    goto LAB_0001940c;\n  }" if (parenthesized_expression "(param_3 <= uVar4)" ( (binary_expression "param_3 <= uVar4" identifier <= identifier) )) (compound_statement "{\n    piVar5 = (int *)((int)piVar5 + (0x400 - uVar4));\n    goto LAB_0001940c;\n  }" { (expression_statement "piVar5 = (int *)((int)piVar5 + (0x400 - uVar4));" (assignment_expression "piVar5 = (int *)((int)piVar5 + (0x400 - uVar4))" identifier = (cast_expression "(int *)((int)piVar5 + (0x400 - uVar4))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar5 + (0x400 - uVar4))" ( (binary_expression "(int)piVar5 + (0x400 - uVar4)" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x400 - uVar4)" ( (binary_expression "0x400 - uVar4" number_literal - identifier) ))) )))) ;) (goto_statement "goto LAB_0001940c;" goto statement_identifier ;) })) (do_statement "do {\n    (*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4);\n    param_2 = param_2 + uVar4;\n    param_3 = param_3 - uVar4;\n    if ((param_2 & 3) == 0) goto joined_r0x00019430;\n    uVar4 = 0x400;\n    isaac_refill(piVar6,piVar5);\n  } while (0x400 < param_3);" do (compound_statement "{\n    (*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4);\n    param_2 = param_2 + uVar4;\n    param_3 = param_3 - uVar4;\n    if ((param_2 & 3) == 0) goto joined_r0x00019430;\n    uVar4 = 0x400;\n    isaac_refill(piVar6,piVar5);\n  }" { (expression_statement "(*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4);" (call_expression "(*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4)" (parenthesized_expression "(*(code *)PTR_memcpy_000313c0)" ( (pointer_expression "*(code *)PTR_memcpy_000313c0" * (cast_expression "(code *)PTR_memcpy_000313c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,(int)piVar5 + (0x400 - uVar4),uVar4)" ( identifier , (binary_expression "(int)piVar5 + (0x400 - uVar4)" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x400 - uVar4)" ( (binary_expression "0x400 - uVar4" number_literal - identifier) ))) , identifier ))) ;) (expression_statement "param_2 = param_2 + uVar4;" (assignment_expression "param_2 = param_2 + uVar4" identifier = (binary_expression "param_2 + uVar4" identifier + identifier)) ;) (expression_statement "param_3 = param_3 - uVar4;" (assignment_expression "param_3 = param_3 - uVar4" identifier = (binary_expression "param_3 - uVar4" identifier - identifier)) ;) (if_statement "if ((param_2 & 3) == 0) goto joined_r0x00019430;" if (parenthesized_expression "((param_2 & 3) == 0)" ( (binary_expression "(param_2 & 3) == 0" (parenthesized_expression "(param_2 & 3)" ( (binary_expression "param_2 & 3" identifier & number_literal) )) == number_literal) )) (goto_statement "goto joined_r0x00019430;" goto statement_identifier ;)) (expression_statement "uVar4 = 0x400;" (assignment_expression "uVar4 = 0x400" identifier = number_literal) ;) (expression_statement "isaac_refill(piVar6,piVar5);" (call_expression "isaac_refill(piVar6,piVar5)" identifier (argument_list "(piVar6,piVar5)" ( identifier , identifier ))) ;) }) while (parenthesized_expression "(0x400 < param_3)" ( (binary_expression "0x400 < param_3" number_literal < identifier) )) ;) (goto_statement "goto LAB_00019408;" goto statement_identifier ;) (labeled_statement "joined_r0x00019430:\n  while (0x3ff < param_3) {\n    param_3 = param_3 - 0x400;\n    isaac_refill(piVar6,param_2);\n    param_2 = param_2 + 0x400;\n    if (param_3 == 0) {\n      param_1[3] = 0;\n      return;\n    }\n  }" statement_identifier : (while_statement "while (0x3ff < param_3) {\n    param_3 = param_3 - 0x400;\n    isaac_refill(piVar6,param_2);\n    param_2 = param_2 + 0x400;\n    if (param_3 == 0) {\n      param_1[3] = 0;\n      return;\n    }\n  }" while (parenthesized_expression "(0x3ff < param_3)" ( (binary_expression "0x3ff < param_3" number_literal < identifier) )) (compound_statement "{\n    param_3 = param_3 - 0x400;\n    isaac_refill(piVar6,param_2);\n    param_2 = param_2 + 0x400;\n    if (param_3 == 0) {\n      param_1[3] = 0;\n      return;\n    }\n  }" { (expression_statement "param_3 = param_3 - 0x400;" (assignment_expression "param_3 = param_3 - 0x400" identifier = (binary_expression "param_3 - 0x400" identifier - number_literal)) ;) (expression_statement "isaac_refill(piVar6,param_2);" (call_expression "isaac_refill(piVar6,param_2)" identifier (argument_list "(piVar6,param_2)" ( identifier , identifier ))) ;) (expression_statement "param_2 = param_2 + 0x400;" (assignment_expression "param_2 = param_2 + 0x400" identifier = (binary_expression "param_2 + 0x400" identifier + number_literal)) ;) (if_statement "if (param_3 == 0) {\n      param_1[3] = 0;\n      return;\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      param_1[3] = 0;\n      return;\n    }" { (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })) }))) (expression_statement "isaac_refill(piVar6,piVar5);" (call_expression "isaac_refill(piVar6,piVar5)" identifier (argument_list "(piVar6,piVar5)" ( identifier , identifier ))) ;) (labeled_statement "LAB_00019408:\n  uVar4 = 0x400;" statement_identifier : (expression_statement "uVar4 = 0x400;" (assignment_expression "uVar4 = 0x400" identifier = number_literal) ;)) (labeled_statement "LAB_0001940c:\n  (*(code *)PTR_memcpy_000313c0)(param_2,piVar5,param_3);" statement_identifier : (expression_statement "(*(code *)PTR_memcpy_000313c0)(param_2,piVar5,param_3);" (call_expression "(*(code *)PTR_memcpy_000313c0)(param_2,piVar5,param_3)" (parenthesized_expression "(*(code *)PTR_memcpy_000313c0)" ( (pointer_expression "*(code *)PTR_memcpy_000313c0" * (cast_expression "(code *)PTR_memcpy_000313c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,piVar5,param_3)" ( identifier , identifier , identifier ))) ;)) (expression_statement "param_1[3] = uVar4 - param_3;" (assignment_expression "param_1[3] = uVar4 - param_3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (binary_expression "uVar4 - param_3" identifier - identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * 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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - IDENT) ))) )))) ;) (goto_statement goto statement_identifier ;) })) (do_statement do (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - IDENT) ))) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) }) while (parenthesized_expression ( (binary_expression LIT < IDENT) )) ;) (goto_statement goto statement_identifier ;) (labeled_statement statement_identifier : (while_statement while (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (labeled_statement statement_identifier : (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 , IDENT , IDENT ))) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT - IDENT)) ;) (return_statement return ;) })))
(function_definition "void randread(int *param_1,uint param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  int *piVar6;\n  code *pcVar7;\n  \n  iVar3 = *param_1;\n  if (iVar3 != 0) {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();\n    while( true ) {\n      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);\n      param_3 = param_3 - iVar3;\n      uVar2 = *puVar1;\n      param_2 = param_2 + iVar3;\n      if (param_3 == 0) break;\n      pcVar7 = (code *)param_1[1];\n      iVar3 = param_1[2];\n      if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }\n      *puVar1 = uVar2;\n      (*pcVar7)(iVar3);\n      iVar3 = *param_1;\n    }\n    return;\n  }\n  uVar4 = param_1[3];\n  piVar5 = param_1 + 0x107;\n  piVar6 = param_1 + 4;\n  if (param_3 <= uVar4) {\n    piVar5 = (int *)((int)piVar5 + (0x400 - uVar4));\n    goto LAB_0001940c;\n  }\n  do {\n    (*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4);\n    param_2 = param_2 + uVar4;\n    param_3 = param_3 - uVar4;\n    if ((param_2 & 3) == 0) goto joined_r0x00019430;\n    uVar4 = 0x400;\n    isaac_refill(piVar6,piVar5);\n  } while (0x400 < param_3);\n  goto LAB_00019408;\njoined_r0x00019430:\n  while (0x3ff < param_3) {\n    param_3 = param_3 - 0x400;\n    isaac_refill(piVar6,param_2);\n    param_2 = param_2 + 0x400;\n    if (param_3 == 0) {\n      param_1[3] = 0;\n      return;\n    }\n  }\n  isaac_refill(piVar6,piVar5);\nLAB_00019408:\n  uVar4 = 0x400;\nLAB_0001940c:\n  (*(code *)PTR_memcpy_000313c0)(param_2,piVar5,param_3);\n  param_1[3] = uVar4 - param_3;\n  return;\n}" (primitive_type "void") (function_declarator "randread(int *param_1,uint param_2,uint param_3)" (identifier "randread") (parameter_list "(int *param_1,uint param_2,uint param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  int *piVar6;\n  code *pcVar7;\n  \n  iVar3 = *param_1;\n  if (iVar3 != 0) {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();\n    while( true ) {\n      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);\n      param_3 = param_3 - iVar3;\n      uVar2 = *puVar1;\n      param_2 = param_2 + iVar3;\n      if (param_3 == 0) break;\n      pcVar7 = (code *)param_1[1];\n      iVar3 = param_1[2];\n      if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }\n      *puVar1 = uVar2;\n      (*pcVar7)(iVar3);\n      iVar3 = *param_1;\n    }\n    return;\n  }\n  uVar4 = param_1[3];\n  piVar5 = param_1 + 0x107;\n  piVar6 = param_1 + 4;\n  if (param_3 <= uVar4) {\n    piVar5 = (int *)((int)piVar5 + (0x400 - uVar4));\n    goto LAB_0001940c;\n  }\n  do {\n    (*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4);\n    param_2 = param_2 + uVar4;\n    param_3 = param_3 - uVar4;\n    if ((param_2 & 3) == 0) goto joined_r0x00019430;\n    uVar4 = 0x400;\n    isaac_refill(piVar6,piVar5);\n  } while (0x400 < param_3);\n  goto LAB_00019408;\njoined_r0x00019430:\n  while (0x3ff < param_3) {\n    param_3 = param_3 - 0x400;\n    isaac_refill(piVar6,param_2);\n    param_2 = param_2 + 0x400;\n    if (param_3 == 0) {\n      param_1[3] = 0;\n      return;\n    }\n  }\n  isaac_refill(piVar6,piVar5);\nLAB_00019408:\n  uVar4 = 0x400;\nLAB_0001940c:\n  (*(code *)PTR_memcpy_000313c0)(param_2,piVar5,param_3);\n  param_1[3] = uVar4 - param_3;\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "code *pcVar7;" (type_identifier "code") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" (identifier "iVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (iVar3 != 0) {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();\n    while( true ) {\n      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);\n      param_3 = param_3 - iVar3;\n      uVar2 = *puVar1;\n      param_2 = param_2 + iVar3;\n      if (param_3 == 0) break;\n      pcVar7 = (code *)param_1[1];\n      iVar3 = param_1[2];\n      if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }\n      *puVar1 = uVar2;\n      (*pcVar7)(iVar3);\n      iVar3 = *param_1;\n    }\n    return;\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();\n    while( true ) {\n      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);\n      param_3 = param_3 - iVar3;\n      uVar2 = *puVar1;\n      param_2 = param_2 + iVar3;\n      if (param_3 == 0) break;\n      pcVar7 = (code *)param_1[1];\n      iVar3 = param_1[2];\n      if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }\n      *puVar1 = uVar2;\n      (*pcVar7)(iVar3);\n      iVar3 = *param_1;\n    }\n    return;\n  }" ({ "{") (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)()" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00031314)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00031314)()" (parenthesized_expression "(*(code *)PTR___errno_location_00031314)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00031314" (* "*") (cast_expression "(code *)PTR___errno_location_00031314" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00031314"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (while_statement "while( true ) {\n      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);\n      param_3 = param_3 - iVar3;\n      uVar2 = *puVar1;\n      param_2 = param_2 + iVar3;\n      if (param_3 == 0) break;\n      pcVar7 = (code *)param_1[1];\n      iVar3 = param_1[2];\n      if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }\n      *puVar1 = uVar2;\n      (*pcVar7)(iVar3);\n      iVar3 = *param_1;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);\n      param_3 = param_3 - iVar3;\n      uVar2 = *puVar1;\n      param_2 = param_2 + iVar3;\n      if (param_3 == 0) break;\n      pcVar7 = (code *)param_1[1];\n      iVar3 = param_1[2];\n      if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }\n      *puVar1 = uVar2;\n      (*pcVar7)(iVar3);\n      iVar3 = *param_1;\n    }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);" (assignment_expression "iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3)" (parenthesized_expression "(*(code *)PTR_fread_unlocked_000312b0)" (( "(") (pointer_expression "*(code *)PTR_fread_unlocked_000312b0" (* "*") (cast_expression "(code *)PTR_fread_unlocked_000312b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fread_unlocked_000312b0"))) () ")")) (argument_list "(param_2,1,param_3,iVar3)" (( "(") (identifier "param_2") (, ",") (number_literal "1") (, ",") (identifier "param_3") (, ",") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "param_3 = param_3 - iVar3;" (assignment_expression "param_3 = param_3 - iVar3" (identifier "param_3") (= "=") (binary_expression "param_3 - iVar3" (identifier "param_3") (- "-") (identifier "iVar3"))) (; ";")) (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" (identifier "uVar2") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "param_2 = param_2 + iVar3;" (assignment_expression "param_2 = param_2 + iVar3" (identifier "param_2") (= "=") (binary_expression "param_2 + iVar3" (identifier "param_2") (+ "+") (identifier "iVar3"))) (; ";")) (if_statement "if (param_3 == 0) break;" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pcVar7 = (code *)param_1[1];" (assignment_expression "pcVar7 = (code *)param_1[1]" (identifier "pcVar7") (= "=") (cast_expression "(code *)param_1[1]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "iVar3 = param_1[2];" (assignment_expression "iVar3 = param_1[2]" (identifier "iVar3") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if ((*(uint *)*param_1 & 0x20) == 0) {\n        uVar2 = 0;\n      }" (if "if") (parenthesized_expression "((*(uint *)*param_1 & 0x20) == 0)" (( "(") (binary_expression "(*(uint *)*param_1 & 0x20) == 0" (parenthesized_expression "(*(uint *)*param_1 & 0x20)" (( "(") (binary_expression "*(uint *)*param_1 & 0x20" (pointer_expression "*(uint *)*param_1" (* "*") (cast_expression "(uint *)*param_1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar2 = 0;\n      }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "(*pcVar7)(iVar3);" (call_expression "(*pcVar7)(iVar3)" (parenthesized_expression "(*pcVar7)" (( "(") (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" (identifier "iVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar4 = param_1[3];" (assignment_expression "uVar4 = param_1[3]" (identifier "uVar4") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "piVar5 = param_1 + 0x107;" (assignment_expression "piVar5 = param_1 + 0x107" (identifier "piVar5") (= "=") (binary_expression "param_1 + 0x107" (identifier "param_1") (+ "+") (number_literal "0x107"))) (; ";")) (expression_statement "piVar6 = param_1 + 4;" (assignment_expression "piVar6 = param_1 + 4" (identifier "piVar6") (= "=") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4"))) (; ";")) (if_statement "if (param_3 <= uVar4) {\n    piVar5 = (int *)((int)piVar5 + (0x400 - uVar4));\n    goto LAB_0001940c;\n  }" (if "if") (parenthesized_expression "(param_3 <= uVar4)" (( "(") (binary_expression "param_3 <= uVar4" (identifier "param_3") (<= "<=") (identifier "uVar4")) () ")")) (compound_statement "{\n    piVar5 = (int *)((int)piVar5 + (0x400 - uVar4));\n    goto LAB_0001940c;\n  }" ({ "{") (expression_statement "piVar5 = (int *)((int)piVar5 + (0x400 - uVar4));" (assignment_expression "piVar5 = (int *)((int)piVar5 + (0x400 - uVar4))" (identifier "piVar5") (= "=") (cast_expression "(int *)((int)piVar5 + (0x400 - uVar4))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar5 + (0x400 - uVar4))" (( "(") (binary_expression "(int)piVar5 + (0x400 - uVar4)" (cast_expression "(int)piVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar5")) (+ "+") (parenthesized_expression "(0x400 - uVar4)" (( "(") (binary_expression "0x400 - uVar4" (number_literal "0x400") (- "-") (identifier "uVar4")) () ")"))) () ")")))) (; ";")) (goto_statement "goto LAB_0001940c;" (goto "goto") (statement_identifier "LAB_0001940c") (; ";")) (} "}"))) (do_statement "do {\n    (*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4);\n    param_2 = param_2 + uVar4;\n    param_3 = param_3 - uVar4;\n    if ((param_2 & 3) == 0) goto joined_r0x00019430;\n    uVar4 = 0x400;\n    isaac_refill(piVar6,piVar5);\n  } while (0x400 < param_3);" (do "do") (compound_statement "{\n    (*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4);\n    param_2 = param_2 + uVar4;\n    param_3 = param_3 - uVar4;\n    if ((param_2 & 3) == 0) goto joined_r0x00019430;\n    uVar4 = 0x400;\n    isaac_refill(piVar6,piVar5);\n  }" ({ "{") (expression_statement "(*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4);" (call_expression "(*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4)" (parenthesized_expression "(*(code *)PTR_memcpy_000313c0)" (( "(") (pointer_expression "*(code *)PTR_memcpy_000313c0" (* "*") (cast_expression "(code *)PTR_memcpy_000313c0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_000313c0"))) () ")")) (argument_list "(param_2,(int)piVar5 + (0x400 - uVar4),uVar4)" (( "(") (identifier "param_2") (, ",") (binary_expression "(int)piVar5 + (0x400 - uVar4)" (cast_expression "(int)piVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar5")) (+ "+") (parenthesized_expression "(0x400 - uVar4)" (( "(") (binary_expression "0x400 - uVar4" (number_literal "0x400") (- "-") (identifier "uVar4")) () ")"))) (, ",") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "param_2 = param_2 + uVar4;" (assignment_expression "param_2 = param_2 + uVar4" (identifier "param_2") (= "=") (binary_expression "param_2 + uVar4" (identifier "param_2") (+ "+") (identifier "uVar4"))) (; ";")) (expression_statement "param_3 = param_3 - uVar4;" (assignment_expression "param_3 = param_3 - uVar4" (identifier "param_3") (= "=") (binary_expression "param_3 - uVar4" (identifier "param_3") (- "-") (identifier "uVar4"))) (; ";")) (if_statement "if ((param_2 & 3) == 0) goto joined_r0x00019430;" (if "if") (parenthesized_expression "((param_2 & 3) == 0)" (( "(") (binary_expression "(param_2 & 3) == 0" (parenthesized_expression "(param_2 & 3)" (( "(") (binary_expression "param_2 & 3" (identifier "param_2") (& "&") (number_literal "3")) () ")")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto joined_r0x00019430;" (goto "goto") (statement_identifier "joined_r0x00019430") (; ";"))) (expression_statement "uVar4 = 0x400;" (assignment_expression "uVar4 = 0x400" (identifier "uVar4") (= "=") (number_literal "0x400")) (; ";")) (expression_statement "isaac_refill(piVar6,piVar5);" (call_expression "isaac_refill(piVar6,piVar5)" (identifier "isaac_refill") (argument_list "(piVar6,piVar5)" (( "(") (identifier "piVar6") (, ",") (identifier "piVar5") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(0x400 < param_3)" (( "(") (binary_expression "0x400 < param_3" (number_literal "0x400") (< "<") (identifier "param_3")) () ")")) (; ";")) (goto_statement "goto LAB_00019408;" (goto "goto") (statement_identifier "LAB_00019408") (; ";")) (labeled_statement "joined_r0x00019430:\n  while (0x3ff < param_3) {\n    param_3 = param_3 - 0x400;\n    isaac_refill(piVar6,param_2);\n    param_2 = param_2 + 0x400;\n    if (param_3 == 0) {\n      param_1[3] = 0;\n      return;\n    }\n  }" (statement_identifier "joined_r0x00019430") (: ":") (while_statement "while (0x3ff < param_3) {\n    param_3 = param_3 - 0x400;\n    isaac_refill(piVar6,param_2);\n    param_2 = param_2 + 0x400;\n    if (param_3 == 0) {\n      param_1[3] = 0;\n      return;\n    }\n  }" (while "while") (parenthesized_expression "(0x3ff < param_3)" (( "(") (binary_expression "0x3ff < param_3" (number_literal "0x3ff") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n    param_3 = param_3 - 0x400;\n    isaac_refill(piVar6,param_2);\n    param_2 = param_2 + 0x400;\n    if (param_3 == 0) {\n      param_1[3] = 0;\n      return;\n    }\n  }" ({ "{") (expression_statement "param_3 = param_3 - 0x400;" (assignment_expression "param_3 = param_3 - 0x400" (identifier "param_3") (= "=") (binary_expression "param_3 - 0x400" (identifier "param_3") (- "-") (number_literal "0x400"))) (; ";")) (expression_statement "isaac_refill(piVar6,param_2);" (call_expression "isaac_refill(piVar6,param_2)" (identifier "isaac_refill") (argument_list "(piVar6,param_2)" (( "(") (identifier "piVar6") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "param_2 = param_2 + 0x400;" (assignment_expression "param_2 = param_2 + 0x400" (identifier "param_2") (= "=") (binary_expression "param_2 + 0x400" (identifier "param_2") (+ "+") (number_literal "0x400"))) (; ";")) (if_statement "if (param_3 == 0) {\n      param_1[3] = 0;\n      return;\n    }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      param_1[3] = 0;\n      return;\n    }" ({ "{") (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")))) (expression_statement "isaac_refill(piVar6,piVar5);" (call_expression "isaac_refill(piVar6,piVar5)" (identifier "isaac_refill") (argument_list "(piVar6,piVar5)" (( "(") (identifier "piVar6") (, ",") (identifier "piVar5") () ")"))) (; ";")) (labeled_statement "LAB_00019408:\n  uVar4 = 0x400;" (statement_identifier "LAB_00019408") (: ":") (expression_statement "uVar4 = 0x400;" (assignment_expression "uVar4 = 0x400" (identifier "uVar4") (= "=") (number_literal "0x400")) (; ";"))) (labeled_statement "LAB_0001940c:\n  (*(code *)PTR_memcpy_000313c0)(param_2,piVar5,param_3);" (statement_identifier "LAB_0001940c") (: ":") (expression_statement "(*(code *)PTR_memcpy_000313c0)(param_2,piVar5,param_3);" (call_expression "(*(code *)PTR_memcpy_000313c0)(param_2,piVar5,param_3)" (parenthesized_expression "(*(code *)PTR_memcpy_000313c0)" (( "(") (pointer_expression "*(code *)PTR_memcpy_000313c0" (* "*") (cast_expression "(code *)PTR_memcpy_000313c0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_000313c0"))) () ")")) (argument_list "(param_2,piVar5,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "piVar5") (, ",") (identifier "param_3") () ")"))) (; ";"))) (expression_statement "param_1[3] = uVar4 - param_3;" (assignment_expression "param_1[3] = uVar4 - param_3" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "uVar4 - param_3" (identifier "uVar4") (- "-") (identifier "param_3"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (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: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) 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))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_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) (number_literal) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier)))))))) (goto_statement label: (statement_identifier)))) (do_statement body: (compound_statement (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) (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier)))) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier)))) (goto_statement label: (statement_identifier)) (labeled_statement label: (statement_identifier) (while_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (labeled_statement label: (statement_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) (identifier) (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (identifier)))) (return_statement))))

void MASKED(int *param_1,uint param_2,uint param_3)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  int iVar3;
  uint uVar4;
  int *piVar5;
  int *piVar6;
  code *pcVar7;
  
  iVar3 = *param_1;
  if (iVar3 != 0) {
    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031314)();
    while( true ) {
      iVar3 = (*(code *)PTR_fread_unlocked_000312b0)(param_2,1,param_3,iVar3);
      param_3 = param_3 - iVar3;
      uVar2 = *puVar1;
      param_2 = param_2 + iVar3;
      if (param_3 == 0) break;
      pcVar7 = (code *)param_1[1];
      iVar3 = param_1[2];
      if ((*(uint *)*param_1 & 0x20) == 0) {
        uVar2 = 0;
      }
      *puVar1 = uVar2;
      (*pcVar7)(iVar3);
      iVar3 = *param_1;
    }
    return;
  }
  uVar4 = param_1[3];
  piVar5 = param_1 + 0x107;
  piVar6 = param_1 + 4;
  if (param_3 <= uVar4) {
    piVar5 = (int *)((int)piVar5 + (0x400 - uVar4));
    goto LAB_0001940c;
  }
  do {
    (*(code *)PTR_memcpy_000313c0)(param_2,(int)piVar5 + (0x400 - uVar4),uVar4);
    param_2 = param_2 + uVar4;
    param_3 = param_3 - uVar4;
    if ((param_2 & 3) == 0) goto joined_r0x00019430;
    uVar4 = 0x400;
    isaac_refill(piVar6,piVar5);
  } while (0x400 < param_3);
  goto LAB_00019408;
joined_r0x00019430:
  while (0x3ff < param_3) {
    param_3 = param_3 - 0x400;
    isaac_refill(piVar6,param_2);
    param_2 = param_2 + 0x400;
    if (param_3 == 0) {
      param_1[3] = 0;
      return;
    }
  }
  isaac_refill(piVar6,piVar5);
LAB_00019408:
  uVar4 = 0x400;
LAB_0001940c:
  (*(code *)PTR_memcpy_000313c0)(param_2,piVar5,param_3);
  param_1[3] = uVar4 - param_3;
  return;
}

