
void sha256_update(void *ctx_,uint8_t *data,size_t length)

{
  uint uVar1;
  int iVar2;
  uint8_t *puVar3;
  uint uVar4;
  uint32_t *k;
  
  iVar2 = *(int *)((int)ctx_ + 0x68);
  if (iVar2 != 0) {
    uVar4 = 0x40 - iVar2;
    if (length < uVar4) {
      (*(code *)PTR_memcpy_000412f4)((int)ctx_ + iVar2 + 0x28);
      *(size_t *)((int)ctx_ + 0x68) = *(int *)((int)ctx_ + 0x68) + length;
      return;
    }
    (*(code *)PTR_memcpy_000412f4)((uint8_t *)((int)ctx_ + 0x28) + iVar2,data,uVar4);
    _nettle_sha256_compress
              ((uint32_t *)ctx_,(uint8_t *)((int)ctx_ + 0x28),
               (uint32_t *)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554));
    uVar1 = *(uint *)((int)ctx_ + 0x24) + 1;
    *(uint *)((int)ctx_ + 0x20) =
         (uint)(uVar1 < *(uint *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20);
    *(uint *)((int)ctx_ + 0x24) = uVar1;
    data = data + uVar4;
    length = iVar2 + (length - 0x40);
  }
  if (0x3f < length) {
    puVar3 = data + ((length - 0x40 >> 6) + 1) * 0x40;
    k = (uint32_t *)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);
    do {
      _nettle_sha256_compress((uint32_t *)ctx_,data,k);
      uVar4 = *(uint *)((int)ctx_ + 0x24) + 1;
      *(uint *)((int)ctx_ + 0x20) =
           (uint)(uVar4 < *(uint *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20);
      data = data + 0x40;
      *(uint *)((int)ctx_ + 0x24) = uVar4;
    } while (data != puVar3);
    length = length & 0x3f;
    data = puVar3;
  }
  (*(code *)PTR_memcpy_000412f4)((int)ctx_ + 0x28,data,length);
  *(size_t *)((int)ctx_ + 0x68) = length;
  return;
}



void FUN_0002ba60(int param_1,int param_2,uint param_3)

{
  uint uVar1;
  int iVar2;
  uint uVar3;
  undefined *puVar4;
  
  iVar2 = *(int *)(param_1 + 0x68);
  if (iVar2 != 0) {
    uVar3 = 0x40 - iVar2;
    if (param_3 < uVar3) {
      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);
      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;
      return;
    }
    (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3);
    FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);
    uVar1 = *(uint *)(param_1 + 0x24) + 1;
    *(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)
    ;
    *(uint *)(param_1 + 0x24) = uVar1;
    param_2 = param_2 + uVar3;
    param_3 = iVar2 + (param_3 - 0x40);
  }
  if (0x3f < param_3) {
    iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40;
    puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554;
    do {
      FUN_0002aad0(param_1,param_2,puVar4);
      uVar3 = *(uint *)(param_1 + 0x24) + 1;
      *(uint *)(param_1 + 0x20) =
           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);
      param_2 = param_2 + 0x40;
      *(uint *)(param_1 + 0x24) = uVar3;
    } while (param_2 != iVar2);
    param_3 = param_3 & 0x3f;
    param_2 = iVar2;
  }
  (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28,param_2,param_3);
  *(uint *)(param_1 + 0x68) = param_3;
  return;
}


lui gp,0x2
addiu gp,gp,-0x2a30
addu gp,gp,t9
addiu sp,sp,-0x38
sw ra,0x34(sp)
sw s5,0x30(sp)
sw s4,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
or s0,a0,zero
or s1,a1,zero
lw s2,0x68(a0)
beq s2,zero,0x0002bb1c
_or s5,a2,zero
li s3,0x40
subu s3,s3,s2
sltu v0,a2,s3
bne v0,zero,0x0002bbd0
_addiu s4,a0,0x28
or a2,s3,zero
addu a0,s4,s2
lw t9,-0x7d3c(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw a2,-0x7fd4(gp)
addiu a2,a2,0x554
or a1,s4,zero
or a0,s0,zero
lw t9,-0x7fd4(gp)
addiu t9,t9,-0x5530
bal 0x0002aad0
_nop
lw gp,0x10(sp)
lw a0,0x20(s0)
lw v0,0x24(s0)
addiu v1,v0,0x1
sltu v0,v1,v0
addu v0,v0,a0
sw v0,0x20(s0)
sw v1,0x24(s0)
addu s1,s1,s3
addiu s5,s5,-0x40
addu s5,s2,s5
sltiu v0,s5,0x40
bne v0,zero,0x0002bbf8
_lw s4,-0x7fd4(gp)
addiu s2,s5,-0x40
srl s2,s2,0x6
addiu s2,s2,0x1
sll s2,s2,0x6
addu s2,s1,s2
addiu s4,s4,0x554
lw s3,-0x7fd4(gp)
addiu s3,s3,-0x5530
or a2,s4,zero
or a1,s1,zero
or a0,s0,zero
or t9,s3,zero
bal 0x0002aad0
_nop
lw gp,0x10(sp)
lw a0,0x20(s0)
lw v0,0x24(s0)
addiu v1,v0,0x1
sltu v0,v1,v0
addu v0,v0,a0
sw v0,0x20(s0)
addiu s1,s1,0x40
bne s1,s2,0x0002bb48
_sw v1,0x24(s0)
andi s5,s5,0x3f
or a2,s5,zero
or a1,s2,zero
addiu a0,s0,0x28
lw t9,-0x7d3c(gp)
jalr t9
_nop
lw gp,0x10(sp)
sw s5,0x68(s0)
lw ra,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
addiu a0,a0,0x28
addu a0,a0,s2
lw t9,-0x7d3c(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw v0,0x68(s0)
addu s5,v0,s5
b 0x0002bbac
_sw s5,0x68(s0)
b 0x0002bb8c
_or s2,s1,zero
(translation_unit "void FUN_0002ba60(int param_1,int param_2,uint param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined *puVar4;\n  \n  iVar2 = *(int *)(param_1 + 0x68);\n  if (iVar2 != 0) {\n    uVar3 = 0x40 - iVar2;\n    if (param_3 < uVar3) {\n      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);\n      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;\n      return;\n    }\n    (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3);\n    FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);\n    uVar1 = *(uint *)(param_1 + 0x24) + 1;\n    *(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)\n    ;\n    *(uint *)(param_1 + 0x24) = uVar1;\n    param_2 = param_2 + uVar3;\n    param_3 = iVar2 + (param_3 - 0x40);\n  }\n  if (0x3f < param_3) {\n    iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40;\n    puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554;\n    do {\n      FUN_0002aad0(param_1,param_2,puVar4);\n      uVar3 = *(uint *)(param_1 + 0x24) + 1;\n      *(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);\n      param_2 = param_2 + 0x40;\n      *(uint *)(param_1 + 0x24) = uVar3;\n    } while (param_2 != iVar2);\n    param_3 = param_3 & 0x3f;\n    param_2 = iVar2;\n  }\n  (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28,param_2,param_3);\n  *(uint *)(param_1 + 0x68) = param_3;\n  return;\n}\n\n" (function_definition "void FUN_0002ba60(int param_1,int param_2,uint param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined *puVar4;\n  \n  iVar2 = *(int *)(param_1 + 0x68);\n  if (iVar2 != 0) {\n    uVar3 = 0x40 - iVar2;\n    if (param_3 < uVar3) {\n      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);\n      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;\n      return;\n    }\n    (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3);\n    FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);\n    uVar1 = *(uint *)(param_1 + 0x24) + 1;\n    *(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)\n    ;\n    *(uint *)(param_1 + 0x24) = uVar1;\n    param_2 = param_2 + uVar3;\n    param_3 = iVar2 + (param_3 - 0x40);\n  }\n  if (0x3f < param_3) {\n    iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40;\n    puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554;\n    do {\n      FUN_0002aad0(param_1,param_2,puVar4);\n      uVar3 = *(uint *)(param_1 + 0x24) + 1;\n      *(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);\n      param_2 = param_2 + 0x40;\n      *(uint *)(param_1 + 0x24) = uVar3;\n    } while (param_2 != iVar2);\n    param_3 = param_3 & 0x3f;\n    param_2 = iVar2;\n  }\n  (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28,param_2,param_3);\n  *(uint *)(param_1 + 0x68) = param_3;\n  return;\n}" primitive_type (function_declarator "FUN_0002ba60(int param_1,int param_2,uint param_3)" identifier (parameter_list "(int param_1,int param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined *puVar4;\n  \n  iVar2 = *(int *)(param_1 + 0x68);\n  if (iVar2 != 0) {\n    uVar3 = 0x40 - iVar2;\n    if (param_3 < uVar3) {\n      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);\n      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;\n      return;\n    }\n    (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3);\n    FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);\n    uVar1 = *(uint *)(param_1 + 0x24) + 1;\n    *(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)\n    ;\n    *(uint *)(param_1 + 0x24) = uVar1;\n    param_2 = param_2 + uVar3;\n    param_3 = iVar2 + (param_3 - 0x40);\n  }\n  if (0x3f < param_3) {\n    iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40;\n    puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554;\n    do {\n      FUN_0002aad0(param_1,param_2,puVar4);\n      uVar3 = *(uint *)(param_1 + 0x24) + 1;\n      *(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);\n      param_2 = param_2 + 0x40;\n      *(uint *)(param_1 + 0x24) = uVar3;\n    } while (param_2 != iVar2);\n    param_3 = param_3 & 0x3f;\n    param_2 = iVar2;\n  }\n  (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28,param_2,param_3);\n  *(uint *)(param_1 + 0x68) = param_3;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x68);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x68)" identifier = (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n    uVar3 = 0x40 - iVar2;\n    if (param_3 < uVar3) {\n      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);\n      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;\n      return;\n    }\n    (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3);\n    FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);\n    uVar1 = *(uint *)(param_1 + 0x24) + 1;\n    *(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)\n    ;\n    *(uint *)(param_1 + 0x24) = uVar1;\n    param_2 = param_2 + uVar3;\n    param_3 = iVar2 + (param_3 - 0x40);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = 0x40 - iVar2;\n    if (param_3 < uVar3) {\n      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);\n      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;\n      return;\n    }\n    (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3);\n    FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);\n    uVar1 = *(uint *)(param_1 + 0x24) + 1;\n    *(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)\n    ;\n    *(uint *)(param_1 + 0x24) = uVar1;\n    param_2 = param_2 + uVar3;\n    param_3 = iVar2 + (param_3 - 0x40);\n  }" { (expression_statement "uVar3 = 0x40 - iVar2;" (assignment_expression "uVar3 = 0x40 - iVar2" identifier = (binary_expression "0x40 - iVar2" number_literal - identifier)) ;) (if_statement "if (param_3 < uVar3) {\n      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);\n      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;\n      return;\n    }" if (parenthesized_expression "(param_3 < uVar3)" ( (binary_expression "param_3 < uVar3" identifier < identifier) )) (compound_statement "{\n      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);\n      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;\n      return;\n    }" { (expression_statement "(*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);" (call_expression "(*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2)" (parenthesized_expression "(*(code *)PTR_memcpy_000412f4)" ( (pointer_expression "*(code *)PTR_memcpy_000412f4" * (cast_expression "(code *)PTR_memcpy_000412f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0x28 + iVar2)" ( (binary_expression "param_1 + 0x28 + iVar2" (binary_expression "param_1 + 0x28" identifier + number_literal) + identifier) ))) ;) (expression_statement "*(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;" (assignment_expression "*(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3" (pointer_expression "*(uint *)(param_1 + 0x68)" * (cast_expression "(uint *)(param_1 + 0x68)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x68) + param_3" (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) + identifier)) ;) (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3);" (call_expression "(*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3)" (parenthesized_expression "(*(code *)PTR_memcpy_000412f4)" ( (pointer_expression "*(code *)PTR_memcpy_000412f4" * (cast_expression "(code *)PTR_memcpy_000412f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0x28 + iVar2,param_2,uVar3)" ( (binary_expression "param_1 + 0x28 + iVar2" (binary_expression "param_1 + 0x28" identifier + number_literal) + identifier) , identifier , identifier ))) ;) (expression_statement "FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);" (call_expression "FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554)" identifier (argument_list "(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554)" ( identifier , (binary_expression "param_1 + 0x28" identifier + number_literal) , (binary_expression "PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554" identifier > (binary_expression "__d_0004105c + 0x554" identifier + number_literal)) ))) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0x24) + 1;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x24) + 1" identifier = (binary_expression "*(uint *)(param_1 + 0x24) + 1" (pointer_expression "*(uint *)(param_1 + 0x24)" * (cast_expression "(uint *)(param_1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)\n    ;" (assignment_expression "*(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)" (pointer_expression "*(uint *)(param_1 + 0x20)" * (cast_expression "(uint *)(param_1 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = (binary_expression "(uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)" (call_expression "(uint)(uVar1 < *(uint *)(param_1 + 0x24))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < *(uint *)(param_1 + 0x24))" ( (binary_expression "uVar1 < *(uint *)(param_1 + 0x24)" identifier < (pointer_expression "*(uint *)(param_1 + 0x24)" * (cast_expression "(uint *)(param_1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ))) + (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))))) ;) (expression_statement "*(uint *)(param_1 + 0x24) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x24) = uVar1" (pointer_expression "*(uint *)(param_1 + 0x24)" * (cast_expression "(uint *)(param_1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = identifier) ;) (expression_statement "param_2 = param_2 + uVar3;" (assignment_expression "param_2 = param_2 + uVar3" identifier = (binary_expression "param_2 + uVar3" identifier + identifier)) ;) (expression_statement "param_3 = iVar2 + (param_3 - 0x40);" (assignment_expression "param_3 = iVar2 + (param_3 - 0x40)" identifier = (binary_expression "iVar2 + (param_3 - 0x40)" identifier + (parenthesized_expression "(param_3 - 0x40)" ( (binary_expression "param_3 - 0x40" identifier - number_literal) )))) ;) })) (if_statement "if (0x3f < param_3) {\n    iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40;\n    puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554;\n    do {\n      FUN_0002aad0(param_1,param_2,puVar4);\n      uVar3 = *(uint *)(param_1 + 0x24) + 1;\n      *(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);\n      param_2 = param_2 + 0x40;\n      *(uint *)(param_1 + 0x24) = uVar3;\n    } while (param_2 != iVar2);\n    param_3 = param_3 & 0x3f;\n    param_2 = iVar2;\n  }" if (parenthesized_expression "(0x3f < param_3)" ( (binary_expression "0x3f < param_3" number_literal < identifier) )) (compound_statement "{\n    iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40;\n    puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554;\n    do {\n      FUN_0002aad0(param_1,param_2,puVar4);\n      uVar3 = *(uint *)(param_1 + 0x24) + 1;\n      *(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);\n      param_2 = param_2 + 0x40;\n      *(uint *)(param_1 + 0x24) = uVar3;\n    } while (param_2 != iVar2);\n    param_3 = param_3 & 0x3f;\n    param_2 = iVar2;\n  }" { (expression_statement "iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40;" (assignment_expression "iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40" identifier = (binary_expression "param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40" identifier + (binary_expression "((param_3 - 0x40 >> 6) + 1) * 0x40" (parenthesized_expression "((param_3 - 0x40 >> 6) + 1)" ( (binary_expression "(param_3 - 0x40 >> 6) + 1" (parenthesized_expression "(param_3 - 0x40 >> 6)" ( (binary_expression "param_3 - 0x40 >> 6" (binary_expression "param_3 - 0x40" identifier - number_literal) >> number_literal) )) + number_literal) )) * number_literal))) ;) (expression_statement "puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554;" (assignment_expression "puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554" identifier = (binary_expression "PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554" identifier > (binary_expression "__d_0004105c + 0x554" identifier + number_literal))) ;) (do_statement "do {\n      FUN_0002aad0(param_1,param_2,puVar4);\n      uVar3 = *(uint *)(param_1 + 0x24) + 1;\n      *(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);\n      param_2 = param_2 + 0x40;\n      *(uint *)(param_1 + 0x24) = uVar3;\n    } while (param_2 != iVar2);" do (compound_statement "{\n      FUN_0002aad0(param_1,param_2,puVar4);\n      uVar3 = *(uint *)(param_1 + 0x24) + 1;\n      *(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);\n      param_2 = param_2 + 0x40;\n      *(uint *)(param_1 + 0x24) = uVar3;\n    }" { (expression_statement "FUN_0002aad0(param_1,param_2,puVar4);" (call_expression "FUN_0002aad0(param_1,param_2,puVar4)" identifier (argument_list "(param_1,param_2,puVar4)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar3 = *(uint *)(param_1 + 0x24) + 1;" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x24) + 1" identifier = (binary_expression "*(uint *)(param_1 + 0x24) + 1" (pointer_expression "*(uint *)(param_1 + 0x24)" * (cast_expression "(uint *)(param_1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);" (assignment_expression "*(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)" (pointer_expression "*(uint *)(param_1 + 0x20)" * (cast_expression "(uint *)(param_1 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = (binary_expression "(uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)" (call_expression "(uint)(uVar3 < *(uint *)(param_1 + 0x24))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < *(uint *)(param_1 + 0x24))" ( (binary_expression "uVar3 < *(uint *)(param_1 + 0x24)" identifier < (pointer_expression "*(uint *)(param_1 + 0x24)" * (cast_expression "(uint *)(param_1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ))) + (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))))) ;) (expression_statement "param_2 = param_2 + 0x40;" (assignment_expression "param_2 = param_2 + 0x40" identifier = (binary_expression "param_2 + 0x40" identifier + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x24) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x24) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x24)" * (cast_expression "(uint *)(param_1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = identifier) ;) }) while (parenthesized_expression "(param_2 != iVar2)" ( (binary_expression "param_2 != iVar2" identifier != identifier) )) ;) (expression_statement "param_3 = param_3 & 0x3f;" (assignment_expression "param_3 = param_3 & 0x3f" identifier = (binary_expression "param_3 & 0x3f" identifier & number_literal)) ;) (expression_statement "param_2 = iVar2;" (assignment_expression "param_2 = iVar2" identifier = identifier) ;) })) (expression_statement "(*(code *)PTR_memcpy_000412f4)(param_1 + 0x28,param_2,param_3);" (call_expression "(*(code *)PTR_memcpy_000412f4)(param_1 + 0x28,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_memcpy_000412f4)" ( (pointer_expression "*(code *)PTR_memcpy_000412f4" * (cast_expression "(code *)PTR_memcpy_000412f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0x28,param_2,param_3)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "*(uint *)(param_1 + 0x68) = param_3;" (assignment_expression "*(uint *)(param_1 + 0x68) = param_3" (pointer_expression "*(uint *)(param_1 + 0x68)" * (cast_expression "(uint *)(param_1 + 0x68)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void sha256_update(void *ctx_,uint8_t *data,size_t length)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint8_t *puVar3;\n  uint uVar4;\n  uint32_t *k;\n  \n  iVar2 = *(int *)((int)ctx_ + 0x68);\n  if (iVar2 != 0) {\n    uVar4 = 0x40 - iVar2;\n    if (length < uVar4) {\n      (*(code *)PTR_memcpy_000412f4)((int)ctx_ + iVar2 + 0x28);\n      *(size_t *)((int)ctx_ + 0x68) = *(int *)((int)ctx_ + 0x68) + length;\n      return;\n    }\n    (*(code *)PTR_memcpy_000412f4)((uint8_t *)((int)ctx_ + 0x28) + iVar2,data,uVar4);\n    _nettle_sha256_compress\n              ((uint32_t *)ctx_,(uint8_t *)((int)ctx_ + 0x28),\n               (uint32_t *)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554));\n    uVar1 = *(uint *)((int)ctx_ + 0x24) + 1;\n    *(uint *)((int)ctx_ + 0x20) =\n         (uint)(uVar1 < *(uint *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20);\n    *(uint *)((int)ctx_ + 0x24) = uVar1;\n    data = data + uVar4;\n    length = iVar2 + (length - 0x40);\n  }\n  if (0x3f < length) {\n    puVar3 = data + ((length - 0x40 >> 6) + 1) * 0x40;\n    k = (uint32_t *)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);\n    do {\n      _nettle_sha256_compress((uint32_t *)ctx_,data,k);\n      uVar4 = *(uint *)((int)ctx_ + 0x24) + 1;\n      *(uint *)((int)ctx_ + 0x20) =\n           (uint)(uVar4 < *(uint *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20);\n      data = data + 0x40;\n      *(uint *)((int)ctx_ + 0x24) = uVar4;\n    } while (data != puVar3);\n    length = length & 0x3f;\n    data = puVar3;\n  }\n  (*(code *)PTR_memcpy_000412f4)((int)ctx_ + 0x28,data,length);\n  *(size_t *)((int)ctx_ + 0x68) = length;\n  return;\n}\n\n" (function_definition "void sha256_update(void *ctx_,uint8_t *data,size_t length)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint8_t *puVar3;\n  uint uVar4;\n  uint32_t *k;\n  \n  iVar2 = *(int *)((int)ctx_ + 0x68);\n  if (iVar2 != 0) {\n    uVar4 = 0x40 - iVar2;\n    if (length < uVar4) {\n      (*(code *)PTR_memcpy_000412f4)((int)ctx_ + iVar2 + 0x28);\n      *(size_t *)((int)ctx_ + 0x68) = *(int *)((int)ctx_ + 0x68) + length;\n      return;\n    }\n    (*(code *)PTR_memcpy_000412f4)((uint8_t *)((int)ctx_ + 0x28) + iVar2,data,uVar4);\n    _nettle_sha256_compress\n              ((uint32_t *)ctx_,(uint8_t *)((int)ctx_ + 0x28),\n               (uint32_t *)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554));\n    uVar1 = *(uint *)((int)ctx_ + 0x24) + 1;\n    *(uint *)((int)ctx_ + 0x20) =\n         (uint)(uVar1 < *(uint *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20);\n    *(uint *)((int)ctx_ + 0x24) = uVar1;\n    data = data + uVar4;\n    length = iVar2 + (length - 0x40);\n  }\n  if (0x3f < length) {\n    puVar3 = data + ((length - 0x40 >> 6) + 1) * 0x40;\n    k = (uint32_t *)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);\n    do {\n      _nettle_sha256_compress((uint32_t *)ctx_,data,k);\n      uVar4 = *(uint *)((int)ctx_ + 0x24) + 1;\n      *(uint *)((int)ctx_ + 0x20) =\n           (uint)(uVar4 < *(uint *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20);\n      data = data + 0x40;\n      *(uint *)((int)ctx_ + 0x24) = uVar4;\n    } while (data != puVar3);\n    length = length & 0x3f;\n    data = puVar3;\n  }\n  (*(code *)PTR_memcpy_000412f4)((int)ctx_ + 0x28,data,length);\n  *(size_t *)((int)ctx_ + 0x68) = length;\n  return;\n}" primitive_type (function_declarator "sha256_update(void *ctx_,uint8_t *data,size_t length)" identifier (parameter_list "(void *ctx_,uint8_t *data,size_t length)" ( (parameter_declaration "void *ctx_" primitive_type (pointer_declarator "*ctx_" * identifier)) , (parameter_declaration "uint8_t *data" primitive_type (pointer_declarator "*data" * identifier)) , (parameter_declaration "size_t length" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint8_t *puVar3;\n  uint uVar4;\n  uint32_t *k;\n  \n  iVar2 = *(int *)((int)ctx_ + 0x68);\n  if (iVar2 != 0) {\n    uVar4 = 0x40 - iVar2;\n    if (length < uVar4) {\n      (*(code *)PTR_memcpy_000412f4)((int)ctx_ + iVar2 + 0x28);\n      *(size_t *)((int)ctx_ + 0x68) = *(int *)((int)ctx_ + 0x68) + length;\n      return;\n    }\n    (*(code *)PTR_memcpy_000412f4)((uint8_t *)((int)ctx_ + 0x28) + iVar2,data,uVar4);\n    _nettle_sha256_compress\n              ((uint32_t *)ctx_,(uint8_t *)((int)ctx_ + 0x28),\n               (uint32_t *)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554));\n    uVar1 = *(uint *)((int)ctx_ + 0x24) + 1;\n    *(uint *)((int)ctx_ + 0x20) =\n         (uint)(uVar1 < *(uint *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20);\n    *(uint *)((int)ctx_ + 0x24) = uVar1;\n    data = data + uVar4;\n    length = iVar2 + (length - 0x40);\n  }\n  if (0x3f < length) {\n    puVar3 = data + ((length - 0x40 >> 6) + 1) * 0x40;\n    k = (uint32_t *)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);\n    do {\n      _nettle_sha256_compress((uint32_t *)ctx_,data,k);\n      uVar4 = *(uint *)((int)ctx_ + 0x24) + 1;\n      *(uint *)((int)ctx_ + 0x20) =\n           (uint)(uVar4 < *(uint *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20);\n      data = data + 0x40;\n      *(uint *)((int)ctx_ + 0x24) = uVar4;\n    } while (data != puVar3);\n    length = length & 0x3f;\n    data = puVar3;\n  }\n  (*(code *)PTR_memcpy_000412f4)((int)ctx_ + 0x28,data,length);\n  *(size_t *)((int)ctx_ + 0x68) = length;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint8_t *puVar3;" primitive_type (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint32_t *k;" primitive_type (pointer_declarator "*k" * identifier) ;) (expression_statement "iVar2 = *(int *)((int)ctx_ + 0x68);" (assignment_expression "iVar2 = *(int *)((int)ctx_ + 0x68)" identifier = (pointer_expression "*(int *)((int)ctx_ + 0x68)" * (cast_expression "(int *)((int)ctx_ + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + 0x68)" ( (binary_expression "(int)ctx_ + 0x68" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n    uVar4 = 0x40 - iVar2;\n    if (length < uVar4) {\n      (*(code *)PTR_memcpy_000412f4)((int)ctx_ + iVar2 + 0x28);\n      *(size_t *)((int)ctx_ + 0x68) = *(int *)((int)ctx_ + 0x68) + length;\n      return;\n    }\n    (*(code *)PTR_memcpy_000412f4)((uint8_t *)((int)ctx_ + 0x28) + iVar2,data,uVar4);\n    _nettle_sha256_compress\n              ((uint32_t *)ctx_,(uint8_t *)((int)ctx_ + 0x28),\n               (uint32_t *)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554));\n    uVar1 = *(uint *)((int)ctx_ + 0x24) + 1;\n    *(uint *)((int)ctx_ + 0x20) =\n         (uint)(uVar1 < *(uint *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20);\n    *(uint *)((int)ctx_ + 0x24) = uVar1;\n    data = data + uVar4;\n    length = iVar2 + (length - 0x40);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = 0x40 - iVar2;\n    if (length < uVar4) {\n      (*(code *)PTR_memcpy_000412f4)((int)ctx_ + iVar2 + 0x28);\n      *(size_t *)((int)ctx_ + 0x68) = *(int *)((int)ctx_ + 0x68) + length;\n      return;\n    }\n    (*(code *)PTR_memcpy_000412f4)((uint8_t *)((int)ctx_ + 0x28) + iVar2,data,uVar4);\n    _nettle_sha256_compress\n              ((uint32_t *)ctx_,(uint8_t *)((int)ctx_ + 0x28),\n               (uint32_t *)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554));\n    uVar1 = *(uint *)((int)ctx_ + 0x24) + 1;\n    *(uint *)((int)ctx_ + 0x20) =\n         (uint)(uVar1 < *(uint *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20);\n    *(uint *)((int)ctx_ + 0x24) = uVar1;\n    data = data + uVar4;\n    length = iVar2 + (length - 0x40);\n  }" { (expression_statement "uVar4 = 0x40 - iVar2;" (assignment_expression "uVar4 = 0x40 - iVar2" identifier = (binary_expression "0x40 - iVar2" number_literal - identifier)) ;) (if_statement "if (length < uVar4) {\n      (*(code *)PTR_memcpy_000412f4)((int)ctx_ + iVar2 + 0x28);\n      *(size_t *)((int)ctx_ + 0x68) = *(int *)((int)ctx_ + 0x68) + length;\n      return;\n    }" if (parenthesized_expression "(length < uVar4)" ( (binary_expression "length < uVar4" identifier < identifier) )) (compound_statement "{\n      (*(code *)PTR_memcpy_000412f4)((int)ctx_ + iVar2 + 0x28);\n      *(size_t *)((int)ctx_ + 0x68) = *(int *)((int)ctx_ + 0x68) + length;\n      return;\n    }" { (expression_statement "(*(code *)PTR_memcpy_000412f4)((int)ctx_ + iVar2 + 0x28);" (call_expression "(*(code *)PTR_memcpy_000412f4)((int)ctx_ + iVar2 + 0x28)" (parenthesized_expression "(*(code *)PTR_memcpy_000412f4)" ( (pointer_expression "*(code *)PTR_memcpy_000412f4" * (cast_expression "(code *)PTR_memcpy_000412f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((int)ctx_ + iVar2 + 0x28)" ( (binary_expression "(int)ctx_ + iVar2 + 0x28" (binary_expression "(int)ctx_ + iVar2" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) ))) ;) (expression_statement "*(size_t *)((int)ctx_ + 0x68) = *(int *)((int)ctx_ + 0x68) + length;" (assignment_expression "*(size_t *)((int)ctx_ + 0x68) = *(int *)((int)ctx_ + 0x68) + length" (pointer_expression "*(size_t *)((int)ctx_ + 0x68)" * (cast_expression "(size_t *)((int)ctx_ + 0x68)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + 0x68)" ( (binary_expression "(int)ctx_ + 0x68" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(int *)((int)ctx_ + 0x68) + length" (pointer_expression "*(int *)((int)ctx_ + 0x68)" * (cast_expression "(int *)((int)ctx_ + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + 0x68)" ( (binary_expression "(int)ctx_ + 0x68" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + identifier)) ;) (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR_memcpy_000412f4)((uint8_t *)((int)ctx_ + 0x28) + iVar2,data,uVar4);" (call_expression "(*(code *)PTR_memcpy_000412f4)((uint8_t *)((int)ctx_ + 0x28) + iVar2,data,uVar4)" (parenthesized_expression "(*(code *)PTR_memcpy_000412f4)" ( (pointer_expression "*(code *)PTR_memcpy_000412f4" * (cast_expression "(code *)PTR_memcpy_000412f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((uint8_t *)((int)ctx_ + 0x28) + iVar2,data,uVar4)" ( (binary_expression "(uint8_t *)((int)ctx_ + 0x28) + iVar2" (cast_expression "(uint8_t *)((int)ctx_ + 0x28)" ( (type_descriptor "uint8_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + 0x28)" ( (binary_expression "(int)ctx_ + 0x28" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) + identifier) , identifier , identifier ))) ;) (expression_statement "_nettle_sha256_compress\n              ((uint32_t *)ctx_,(uint8_t *)((int)ctx_ + 0x28),\n               (uint32_t *)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554));" (call_expression "_nettle_sha256_compress\n              ((uint32_t *)ctx_,(uint8_t *)((int)ctx_ + 0x28),\n               (uint32_t *)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554))" identifier (argument_list "((uint32_t *)ctx_,(uint8_t *)((int)ctx_ + 0x28),\n               (uint32_t *)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554))" ( (cast_expression "(uint32_t *)ctx_" ( (type_descriptor "uint32_t *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(uint8_t *)((int)ctx_ + 0x28)" ( (type_descriptor "uint8_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + 0x28)" ( (binary_expression "(int)ctx_ + 0x28" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , (cast_expression "(uint32_t *)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554)" ( (type_descriptor "uint32_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554)" ( (binary_expression "PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554" identifier > (binary_expression "__d_0004105c + 0x554" identifier + number_literal)) ))) ))) ;) (expression_statement "uVar1 = *(uint *)((int)ctx_ + 0x24) + 1;" (assignment_expression "uVar1 = *(uint *)((int)ctx_ + 0x24) + 1" identifier = (binary_expression "*(uint *)((int)ctx_ + 0x24) + 1" (pointer_expression "*(uint *)((int)ctx_ + 0x24)" * (cast_expression "(uint *)((int)ctx_ + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + 0x24)" ( (binary_expression "(int)ctx_ + 0x24" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)((int)ctx_ + 0x20) =\n         (uint)(uVar1 < *(uint *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20);" (assignment_expression "*(uint *)((int)ctx_ + 0x20) =\n         (uint)(uVar1 < *(uint *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20)" (pointer_expression "*(uint *)((int)ctx_ + 0x20)" * (cast_expression "(uint *)((int)ctx_ + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + 0x20)" ( (binary_expression "(int)ctx_ + 0x20" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "(uint)(uVar1 < *(uint *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20)" (call_expression "(uint)(uVar1 < *(uint *)((int)ctx_ + 0x24))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < *(uint *)((int)ctx_ + 0x24))" ( (binary_expression "uVar1 < *(uint *)((int)ctx_ + 0x24)" identifier < (pointer_expression "*(uint *)((int)ctx_ + 0x24)" * (cast_expression "(uint *)((int)ctx_ + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + 0x24)" ( (binary_expression "(int)ctx_ + 0x24" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ))) + (pointer_expression "*(int *)((int)ctx_ + 0x20)" * (cast_expression "(int *)((int)ctx_ + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + 0x20)" ( (binary_expression "(int)ctx_ + 0x20" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) ;) (expression_statement "*(uint *)((int)ctx_ + 0x24) = uVar1;" (assignment_expression "*(uint *)((int)ctx_ + 0x24) = uVar1" (pointer_expression "*(uint *)((int)ctx_ + 0x24)" * (cast_expression "(uint *)((int)ctx_ + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + 0x24)" ( (binary_expression "(int)ctx_ + 0x24" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "data = data + uVar4;" (assignment_expression "data = data + uVar4" identifier = (binary_expression "data + uVar4" identifier + identifier)) ;) (expression_statement "length = iVar2 + (length - 0x40);" (assignment_expression "length = iVar2 + (length - 0x40)" identifier = (binary_expression "iVar2 + (length - 0x40)" identifier + (parenthesized_expression "(length - 0x40)" ( (binary_expression "length - 0x40" identifier - number_literal) )))) ;) })) (if_statement "if (0x3f < length) {\n    puVar3 = data + ((length - 0x40 >> 6) + 1) * 0x40;\n    k = (uint32_t *)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);\n    do {\n      _nettle_sha256_compress((uint32_t *)ctx_,data,k);\n      uVar4 = *(uint *)((int)ctx_ + 0x24) + 1;\n      *(uint *)((int)ctx_ + 0x20) =\n           (uint)(uVar4 < *(uint *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20);\n      data = data + 0x40;\n      *(uint *)((int)ctx_ + 0x24) = uVar4;\n    } while (data != puVar3);\n    length = length & 0x3f;\n    data = puVar3;\n  }" if (parenthesized_expression "(0x3f < length)" ( (binary_expression "0x3f < length" number_literal < identifier) )) (compound_statement "{\n    puVar3 = data + ((length - 0x40 >> 6) + 1) * 0x40;\n    k = (uint32_t *)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);\n    do {\n      _nettle_sha256_compress((uint32_t *)ctx_,data,k);\n      uVar4 = *(uint *)((int)ctx_ + 0x24) + 1;\n      *(uint *)((int)ctx_ + 0x20) =\n           (uint)(uVar4 < *(uint *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20);\n      data = data + 0x40;\n      *(uint *)((int)ctx_ + 0x24) = uVar4;\n    } while (data != puVar3);\n    length = length & 0x3f;\n    data = puVar3;\n  }" { (expression_statement "puVar3 = data + ((length - 0x40 >> 6) + 1) * 0x40;" (assignment_expression "puVar3 = data + ((length - 0x40 >> 6) + 1) * 0x40" identifier = (binary_expression "data + ((length - 0x40 >> 6) + 1) * 0x40" identifier + (binary_expression "((length - 0x40 >> 6) + 1) * 0x40" (parenthesized_expression "((length - 0x40 >> 6) + 1)" ( (binary_expression "(length - 0x40 >> 6) + 1" (parenthesized_expression "(length - 0x40 >> 6)" ( (binary_expression "length - 0x40 >> 6" (binary_expression "length - 0x40" identifier - number_literal) >> number_literal) )) + number_literal) )) * number_literal))) ;) (expression_statement "k = (uint32_t *)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);" (assignment_expression "k = (uint32_t *)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554)" identifier = (cast_expression "(uint32_t *)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554)" ( (type_descriptor "uint32_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554)" ( (binary_expression "PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554" identifier > (binary_expression "__d_0004105c + 0x554" identifier + number_literal)) )))) ;) (do_statement "do {\n      _nettle_sha256_compress((uint32_t *)ctx_,data,k);\n      uVar4 = *(uint *)((int)ctx_ + 0x24) + 1;\n      *(uint *)((int)ctx_ + 0x20) =\n           (uint)(uVar4 < *(uint *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20);\n      data = data + 0x40;\n      *(uint *)((int)ctx_ + 0x24) = uVar4;\n    } while (data != puVar3);" do (compound_statement "{\n      _nettle_sha256_compress((uint32_t *)ctx_,data,k);\n      uVar4 = *(uint *)((int)ctx_ + 0x24) + 1;\n      *(uint *)((int)ctx_ + 0x20) =\n           (uint)(uVar4 < *(uint *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20);\n      data = data + 0x40;\n      *(uint *)((int)ctx_ + 0x24) = uVar4;\n    }" { (expression_statement "_nettle_sha256_compress((uint32_t *)ctx_,data,k);" (call_expression "_nettle_sha256_compress((uint32_t *)ctx_,data,k)" identifier (argument_list "((uint32_t *)ctx_,data,k)" ( (cast_expression "(uint32_t *)ctx_" ( (type_descriptor "uint32_t *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;) (expression_statement "uVar4 = *(uint *)((int)ctx_ + 0x24) + 1;" (assignment_expression "uVar4 = *(uint *)((int)ctx_ + 0x24) + 1" identifier = (binary_expression "*(uint *)((int)ctx_ + 0x24) + 1" (pointer_expression "*(uint *)((int)ctx_ + 0x24)" * (cast_expression "(uint *)((int)ctx_ + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + 0x24)" ( (binary_expression "(int)ctx_ + 0x24" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)((int)ctx_ + 0x20) =\n           (uint)(uVar4 < *(uint *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20);" (assignment_expression "*(uint *)((int)ctx_ + 0x20) =\n           (uint)(uVar4 < *(uint *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20)" (pointer_expression "*(uint *)((int)ctx_ + 0x20)" * (cast_expression "(uint *)((int)ctx_ + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + 0x20)" ( (binary_expression "(int)ctx_ + 0x20" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "(uint)(uVar4 < *(uint *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20)" (call_expression "(uint)(uVar4 < *(uint *)((int)ctx_ + 0x24))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar4 < *(uint *)((int)ctx_ + 0x24))" ( (binary_expression "uVar4 < *(uint *)((int)ctx_ + 0x24)" identifier < (pointer_expression "*(uint *)((int)ctx_ + 0x24)" * (cast_expression "(uint *)((int)ctx_ + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + 0x24)" ( (binary_expression "(int)ctx_ + 0x24" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ))) + (pointer_expression "*(int *)((int)ctx_ + 0x20)" * (cast_expression "(int *)((int)ctx_ + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + 0x20)" ( (binary_expression "(int)ctx_ + 0x20" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) ;) (expression_statement "data = data + 0x40;" (assignment_expression "data = data + 0x40" identifier = (binary_expression "data + 0x40" identifier + number_literal)) ;) (expression_statement "*(uint *)((int)ctx_ + 0x24) = uVar4;" (assignment_expression "*(uint *)((int)ctx_ + 0x24) = uVar4" (pointer_expression "*(uint *)((int)ctx_ + 0x24)" * (cast_expression "(uint *)((int)ctx_ + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + 0x24)" ( (binary_expression "(int)ctx_ + 0x24" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) }) while (parenthesized_expression "(data != puVar3)" ( (binary_expression "data != puVar3" identifier != identifier) )) ;) (expression_statement "length = length & 0x3f;" (assignment_expression "length = length & 0x3f" identifier = (binary_expression "length & 0x3f" identifier & number_literal)) ;) (expression_statement "data = puVar3;" (assignment_expression "data = puVar3" identifier = identifier) ;) })) (expression_statement "(*(code *)PTR_memcpy_000412f4)((int)ctx_ + 0x28,data,length);" (call_expression "(*(code *)PTR_memcpy_000412f4)((int)ctx_ + 0x28,data,length)" (parenthesized_expression "(*(code *)PTR_memcpy_000412f4)" ( (pointer_expression "*(code *)PTR_memcpy_000412f4" * (cast_expression "(code *)PTR_memcpy_000412f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((int)ctx_ + 0x28,data,length)" ( (binary_expression "(int)ctx_ + 0x28" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) , identifier , identifier ))) ;) (expression_statement "*(size_t *)((int)ctx_ + 0x68) = length;" (assignment_expression "*(size_t *)((int)ctx_ + 0x68) = length" (pointer_expression "*(size_t *)((int)ctx_ + 0x68)" * (cast_expression "(size_t *)((int)ctx_ + 0x68)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + 0x68)" ( (binary_expression "(int)ctx_ + 0x68" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002ba60(int param_1,int param_2,uint param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined *puVar4;\n  \n  iVar2 = *(int *)(param_1 + 0x68);\n  if (iVar2 != 0) {\n    uVar3 = 0x40 - iVar2;\n    if (param_3 < uVar3) {\n      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);\n      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;\n      return;\n    }\n    (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3);\n    FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);\n    uVar1 = *(uint *)(param_1 + 0x24) + 1;\n    *(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)\n    ;\n    *(uint *)(param_1 + 0x24) = uVar1;\n    param_2 = param_2 + uVar3;\n    param_3 = iVar2 + (param_3 - 0x40);\n  }\n  if (0x3f < param_3) {\n    iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40;\n    puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554;\n    do {\n      FUN_0002aad0(param_1,param_2,puVar4);\n      uVar3 = *(uint *)(param_1 + 0x24) + 1;\n      *(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);\n      param_2 = param_2 + 0x40;\n      *(uint *)(param_1 + 0x24) = uVar3;\n    } while (param_2 != iVar2);\n    param_3 = param_3 & 0x3f;\n    param_2 = iVar2;\n  }\n  (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28,param_2,param_3);\n  *(uint *)(param_1 + 0x68) = param_3;\n  return;\n}\n\n" (function_definition "void FUN_0002ba60(int param_1,int param_2,uint param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined *puVar4;\n  \n  iVar2 = *(int *)(param_1 + 0x68);\n  if (iVar2 != 0) {\n    uVar3 = 0x40 - iVar2;\n    if (param_3 < uVar3) {\n      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);\n      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;\n      return;\n    }\n    (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3);\n    FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);\n    uVar1 = *(uint *)(param_1 + 0x24) + 1;\n    *(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)\n    ;\n    *(uint *)(param_1 + 0x24) = uVar1;\n    param_2 = param_2 + uVar3;\n    param_3 = iVar2 + (param_3 - 0x40);\n  }\n  if (0x3f < param_3) {\n    iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40;\n    puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554;\n    do {\n      FUN_0002aad0(param_1,param_2,puVar4);\n      uVar3 = *(uint *)(param_1 + 0x24) + 1;\n      *(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);\n      param_2 = param_2 + 0x40;\n      *(uint *)(param_1 + 0x24) = uVar3;\n    } while (param_2 != iVar2);\n    param_3 = param_3 & 0x3f;\n    param_2 = iVar2;\n  }\n  (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28,param_2,param_3);\n  *(uint *)(param_1 + 0x68) = param_3;\n  return;\n}" primitive_type (function_declarator "FUN_0002ba60(int param_1,int param_2,uint param_3)" identifier (parameter_list "(int param_1,int param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined *puVar4;\n  \n  iVar2 = *(int *)(param_1 + 0x68);\n  if (iVar2 != 0) {\n    uVar3 = 0x40 - iVar2;\n    if (param_3 < uVar3) {\n      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);\n      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;\n      return;\n    }\n    (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3);\n    FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);\n    uVar1 = *(uint *)(param_1 + 0x24) + 1;\n    *(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)\n    ;\n    *(uint *)(param_1 + 0x24) = uVar1;\n    param_2 = param_2 + uVar3;\n    param_3 = iVar2 + (param_3 - 0x40);\n  }\n  if (0x3f < param_3) {\n    iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40;\n    puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554;\n    do {\n      FUN_0002aad0(param_1,param_2,puVar4);\n      uVar3 = *(uint *)(param_1 + 0x24) + 1;\n      *(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);\n      param_2 = param_2 + 0x40;\n      *(uint *)(param_1 + 0x24) = uVar3;\n    } while (param_2 != iVar2);\n    param_3 = param_3 & 0x3f;\n    param_2 = iVar2;\n  }\n  (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28,param_2,param_3);\n  *(uint *)(param_1 + 0x68) = param_3;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x68);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x68)" identifier = (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n    uVar3 = 0x40 - iVar2;\n    if (param_3 < uVar3) {\n      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);\n      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;\n      return;\n    }\n    (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3);\n    FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);\n    uVar1 = *(uint *)(param_1 + 0x24) + 1;\n    *(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)\n    ;\n    *(uint *)(param_1 + 0x24) = uVar1;\n    param_2 = param_2 + uVar3;\n    param_3 = iVar2 + (param_3 - 0x40);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = 0x40 - iVar2;\n    if (param_3 < uVar3) {\n      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);\n      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;\n      return;\n    }\n    (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3);\n    FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);\n    uVar1 = *(uint *)(param_1 + 0x24) + 1;\n    *(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)\n    ;\n    *(uint *)(param_1 + 0x24) = uVar1;\n    param_2 = param_2 + uVar3;\n    param_3 = iVar2 + (param_3 - 0x40);\n  }" { (expression_statement "uVar3 = 0x40 - iVar2;" (assignment_expression "uVar3 = 0x40 - iVar2" identifier = (binary_expression "0x40 - iVar2" number_literal - identifier)) ;) (if_statement "if (param_3 < uVar3) {\n      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);\n      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;\n      return;\n    }" if (parenthesized_expression "(param_3 < uVar3)" ( (binary_expression "param_3 < uVar3" identifier < identifier) )) (compound_statement "{\n      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);\n      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;\n      return;\n    }" { (expression_statement "(*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);" (call_expression "(*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2)" (parenthesized_expression "(*(code *)PTR_memcpy_000412f4)" ( (pointer_expression "*(code *)PTR_memcpy_000412f4" * (cast_expression "(code *)PTR_memcpy_000412f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0x28 + iVar2)" ( (binary_expression "param_1 + 0x28 + iVar2" (binary_expression "param_1 + 0x28" identifier + number_literal) + identifier) ))) ;) (expression_statement "*(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;" (assignment_expression "*(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3" (pointer_expression "*(uint *)(param_1 + 0x68)" * (cast_expression "(uint *)(param_1 + 0x68)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x68) + param_3" (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) + identifier)) ;) (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3);" (call_expression "(*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3)" (parenthesized_expression "(*(code *)PTR_memcpy_000412f4)" ( (pointer_expression "*(code *)PTR_memcpy_000412f4" * (cast_expression "(code *)PTR_memcpy_000412f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0x28 + iVar2,param_2,uVar3)" ( (binary_expression "param_1 + 0x28 + iVar2" (binary_expression "param_1 + 0x28" identifier + number_literal) + identifier) , identifier , identifier ))) ;) (expression_statement "FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);" (call_expression "FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554)" identifier (argument_list "(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554)" ( identifier , (binary_expression "param_1 + 0x28" identifier + number_literal) , (binary_expression "PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554" identifier > (binary_expression "__d_0004105c + 0x554" identifier + number_literal)) ))) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0x24) + 1;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x24) + 1" identifier = (binary_expression "*(uint *)(param_1 + 0x24) + 1" (pointer_expression "*(uint *)(param_1 + 0x24)" * (cast_expression "(uint *)(param_1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)\n    ;" (assignment_expression "*(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)" (pointer_expression "*(uint *)(param_1 + 0x20)" * (cast_expression "(uint *)(param_1 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = (binary_expression "(uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)" (call_expression "(uint)(uVar1 < *(uint *)(param_1 + 0x24))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < *(uint *)(param_1 + 0x24))" ( (binary_expression "uVar1 < *(uint *)(param_1 + 0x24)" identifier < (pointer_expression "*(uint *)(param_1 + 0x24)" * (cast_expression "(uint *)(param_1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ))) + (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))))) ;) (expression_statement "*(uint *)(param_1 + 0x24) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x24) = uVar1" (pointer_expression "*(uint *)(param_1 + 0x24)" * (cast_expression "(uint *)(param_1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = identifier) ;) (expression_statement "param_2 = param_2 + uVar3;" (assignment_expression "param_2 = param_2 + uVar3" identifier = (binary_expression "param_2 + uVar3" identifier + identifier)) ;) (expression_statement "param_3 = iVar2 + (param_3 - 0x40);" (assignment_expression "param_3 = iVar2 + (param_3 - 0x40)" identifier = (binary_expression "iVar2 + (param_3 - 0x40)" identifier + (parenthesized_expression "(param_3 - 0x40)" ( (binary_expression "param_3 - 0x40" identifier - number_literal) )))) ;) })) (if_statement "if (0x3f < param_3) {\n    iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40;\n    puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554;\n    do {\n      FUN_0002aad0(param_1,param_2,puVar4);\n      uVar3 = *(uint *)(param_1 + 0x24) + 1;\n      *(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);\n      param_2 = param_2 + 0x40;\n      *(uint *)(param_1 + 0x24) = uVar3;\n    } while (param_2 != iVar2);\n    param_3 = param_3 & 0x3f;\n    param_2 = iVar2;\n  }" if (parenthesized_expression "(0x3f < param_3)" ( (binary_expression "0x3f < param_3" number_literal < identifier) )) (compound_statement "{\n    iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40;\n    puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554;\n    do {\n      FUN_0002aad0(param_1,param_2,puVar4);\n      uVar3 = *(uint *)(param_1 + 0x24) + 1;\n      *(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);\n      param_2 = param_2 + 0x40;\n      *(uint *)(param_1 + 0x24) = uVar3;\n    } while (param_2 != iVar2);\n    param_3 = param_3 & 0x3f;\n    param_2 = iVar2;\n  }" { (expression_statement "iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40;" (assignment_expression "iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40" identifier = (binary_expression "param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40" identifier + (binary_expression "((param_3 - 0x40 >> 6) + 1) * 0x40" (parenthesized_expression "((param_3 - 0x40 >> 6) + 1)" ( (binary_expression "(param_3 - 0x40 >> 6) + 1" (parenthesized_expression "(param_3 - 0x40 >> 6)" ( (binary_expression "param_3 - 0x40 >> 6" (binary_expression "param_3 - 0x40" identifier - number_literal) >> number_literal) )) + number_literal) )) * number_literal))) ;) (expression_statement "puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554;" (assignment_expression "puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554" identifier = (binary_expression "PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554" identifier > (binary_expression "__d_0004105c + 0x554" identifier + number_literal))) ;) (do_statement "do {\n      FUN_0002aad0(param_1,param_2,puVar4);\n      uVar3 = *(uint *)(param_1 + 0x24) + 1;\n      *(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);\n      param_2 = param_2 + 0x40;\n      *(uint *)(param_1 + 0x24) = uVar3;\n    } while (param_2 != iVar2);" do (compound_statement "{\n      FUN_0002aad0(param_1,param_2,puVar4);\n      uVar3 = *(uint *)(param_1 + 0x24) + 1;\n      *(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);\n      param_2 = param_2 + 0x40;\n      *(uint *)(param_1 + 0x24) = uVar3;\n    }" { (expression_statement "FUN_0002aad0(param_1,param_2,puVar4);" (call_expression "FUN_0002aad0(param_1,param_2,puVar4)" identifier (argument_list "(param_1,param_2,puVar4)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar3 = *(uint *)(param_1 + 0x24) + 1;" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x24) + 1" identifier = (binary_expression "*(uint *)(param_1 + 0x24) + 1" (pointer_expression "*(uint *)(param_1 + 0x24)" * (cast_expression "(uint *)(param_1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);" (assignment_expression "*(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)" (pointer_expression "*(uint *)(param_1 + 0x20)" * (cast_expression "(uint *)(param_1 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = (binary_expression "(uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)" (call_expression "(uint)(uVar3 < *(uint *)(param_1 + 0x24))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < *(uint *)(param_1 + 0x24))" ( (binary_expression "uVar3 < *(uint *)(param_1 + 0x24)" identifier < (pointer_expression "*(uint *)(param_1 + 0x24)" * (cast_expression "(uint *)(param_1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ))) + (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))))) ;) (expression_statement "param_2 = param_2 + 0x40;" (assignment_expression "param_2 = param_2 + 0x40" identifier = (binary_expression "param_2 + 0x40" identifier + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x24) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x24) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x24)" * (cast_expression "(uint *)(param_1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = identifier) ;) }) while (parenthesized_expression "(param_2 != iVar2)" ( (binary_expression "param_2 != iVar2" identifier != identifier) )) ;) (expression_statement "param_3 = param_3 & 0x3f;" (assignment_expression "param_3 = param_3 & 0x3f" identifier = (binary_expression "param_3 & 0x3f" identifier & number_literal)) ;) (expression_statement "param_2 = iVar2;" (assignment_expression "param_2 = iVar2" identifier = identifier) ;) })) (expression_statement "(*(code *)PTR_memcpy_000412f4)(param_1 + 0x28,param_2,param_3);" (call_expression "(*(code *)PTR_memcpy_000412f4)(param_1 + 0x28,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_memcpy_000412f4)" ( (pointer_expression "*(code *)PTR_memcpy_000412f4" * (cast_expression "(code *)PTR_memcpy_000412f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0x28,param_2,param_3)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "*(uint *)(param_1 + 0x68) = param_3;" (assignment_expression "*(uint *)(param_1 + 0x68) = param_3" (pointer_expression "*(uint *)(param_1 + 0x68)" * (cast_expression "(uint *)(param_1 + 0x68)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT)) ;) (return_statement return ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression IDENT + LIT) + IDENT) , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , (binary_expression IDENT > (binary_expression IDENT + LIT)) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - LIT) )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) >> LIT) )) + LIT) )) * LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT > (binary_expression IDENT + LIT))) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_0002ba60(int param_1,int param_2,uint param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined *puVar4;\n  \n  iVar2 = *(int *)(param_1 + 0x68);\n  if (iVar2 != 0) {\n    uVar3 = 0x40 - iVar2;\n    if (param_3 < uVar3) {\n      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);\n      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;\n      return;\n    }\n    (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3);\n    FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);\n    uVar1 = *(uint *)(param_1 + 0x24) + 1;\n    *(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)\n    ;\n    *(uint *)(param_1 + 0x24) = uVar1;\n    param_2 = param_2 + uVar3;\n    param_3 = iVar2 + (param_3 - 0x40);\n  }\n  if (0x3f < param_3) {\n    iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40;\n    puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554;\n    do {\n      FUN_0002aad0(param_1,param_2,puVar4);\n      uVar3 = *(uint *)(param_1 + 0x24) + 1;\n      *(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);\n      param_2 = param_2 + 0x40;\n      *(uint *)(param_1 + 0x24) = uVar3;\n    } while (param_2 != iVar2);\n    param_3 = param_3 & 0x3f;\n    param_2 = iVar2;\n  }\n  (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28,param_2,param_3);\n  *(uint *)(param_1 + 0x68) = param_3;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002ba60(int param_1,int param_2,uint param_3)" (identifier "FUN_0002ba60") (parameter_list "(int param_1,int param_2,uint param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined *puVar4;\n  \n  iVar2 = *(int *)(param_1 + 0x68);\n  if (iVar2 != 0) {\n    uVar3 = 0x40 - iVar2;\n    if (param_3 < uVar3) {\n      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);\n      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;\n      return;\n    }\n    (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3);\n    FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);\n    uVar1 = *(uint *)(param_1 + 0x24) + 1;\n    *(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)\n    ;\n    *(uint *)(param_1 + 0x24) = uVar1;\n    param_2 = param_2 + uVar3;\n    param_3 = iVar2 + (param_3 - 0x40);\n  }\n  if (0x3f < param_3) {\n    iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40;\n    puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554;\n    do {\n      FUN_0002aad0(param_1,param_2,puVar4);\n      uVar3 = *(uint *)(param_1 + 0x24) + 1;\n      *(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);\n      param_2 = param_2 + 0x40;\n      *(uint *)(param_1 + 0x24) = uVar3;\n    } while (param_2 != iVar2);\n    param_3 = param_3 & 0x3f;\n    param_2 = iVar2;\n  }\n  (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28,param_2,param_3);\n  *(uint *)(param_1 + 0x68) = param_3;\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x68);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x68)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x68)" (* "*") (cast_expression "(int *)(param_1 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")"))))) (; ";")) (if_statement "if (iVar2 != 0) {\n    uVar3 = 0x40 - iVar2;\n    if (param_3 < uVar3) {\n      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);\n      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;\n      return;\n    }\n    (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3);\n    FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);\n    uVar1 = *(uint *)(param_1 + 0x24) + 1;\n    *(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)\n    ;\n    *(uint *)(param_1 + 0x24) = uVar1;\n    param_2 = param_2 + uVar3;\n    param_3 = iVar2 + (param_3 - 0x40);\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = 0x40 - iVar2;\n    if (param_3 < uVar3) {\n      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);\n      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;\n      return;\n    }\n    (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3);\n    FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);\n    uVar1 = *(uint *)(param_1 + 0x24) + 1;\n    *(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)\n    ;\n    *(uint *)(param_1 + 0x24) = uVar1;\n    param_2 = param_2 + uVar3;\n    param_3 = iVar2 + (param_3 - 0x40);\n  }" ({ "{") (expression_statement "uVar3 = 0x40 - iVar2;" (assignment_expression "uVar3 = 0x40 - iVar2" (identifier "uVar3") (= "=") (binary_expression "0x40 - iVar2" (number_literal "0x40") (- "-") (identifier "iVar2"))) (; ";")) (if_statement "if (param_3 < uVar3) {\n      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);\n      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;\n      return;\n    }" (if "if") (parenthesized_expression "(param_3 < uVar3)" (( "(") (binary_expression "param_3 < uVar3" (identifier "param_3") (< "<") (identifier "uVar3")) () ")")) (compound_statement "{\n      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);\n      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;\n      return;\n    }" ({ "{") (expression_statement "(*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);" (call_expression "(*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2)" (parenthesized_expression "(*(code *)PTR_memcpy_000412f4)" (( "(") (pointer_expression "*(code *)PTR_memcpy_000412f4" (* "*") (cast_expression "(code *)PTR_memcpy_000412f4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_000412f4"))) () ")")) (argument_list "(param_1 + 0x28 + iVar2)" (( "(") (binary_expression "param_1 + 0x28 + iVar2" (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) (+ "+") (identifier "iVar2")) () ")"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;" (assignment_expression "*(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3" (pointer_expression "*(uint *)(param_1 + 0x68)" (* "*") (cast_expression "(uint *)(param_1 + 0x68)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x68) + param_3" (pointer_expression "*(int *)(param_1 + 0x68)" (* "*") (cast_expression "(int *)(param_1 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (+ "+") (identifier "param_3"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3);" (call_expression "(*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3)" (parenthesized_expression "(*(code *)PTR_memcpy_000412f4)" (( "(") (pointer_expression "*(code *)PTR_memcpy_000412f4" (* "*") (cast_expression "(code *)PTR_memcpy_000412f4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_000412f4"))) () ")")) (argument_list "(param_1 + 0x28 + iVar2,param_2,uVar3)" (( "(") (binary_expression "param_1 + 0x28 + iVar2" (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) (+ "+") (identifier "iVar2")) (, ",") (identifier "param_2") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);" (call_expression "FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554)" (identifier "FUN_0002aad0") (argument_list "(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554)" (( "(") (identifier "param_1") (, ",") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) (, ",") (binary_expression "PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554" (identifier "PTR_s_than_FD_SETSIZE___d_") (> ">") (binary_expression "__d_0004105c + 0x554" (identifier "__d_0004105c") (+ "+") (number_literal "0x554"))) () ")"))) (; ";")) (expression_statement "uVar1 = *(uint *)(param_1 + 0x24) + 1;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x24) + 1" (identifier "uVar1") (= "=") (binary_expression "*(uint *)(param_1 + 0x24) + 1" (pointer_expression "*(uint *)(param_1 + 0x24)" (* "*") (cast_expression "(uint *)(param_1 + 0x24)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)\n    ;" (assignment_expression "*(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)" (pointer_expression "*(uint *)(param_1 + 0x20)" (* "*") (cast_expression "(uint *)(param_1 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (binary_expression "(uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)" (call_expression "(uint)(uVar1 < *(uint *)(param_1 + 0x24))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar1 < *(uint *)(param_1 + 0x24))" (( "(") (binary_expression "uVar1 < *(uint *)(param_1 + 0x24)" (identifier "uVar1") (< "<") (pointer_expression "*(uint *)(param_1 + 0x24)" (* "*") (cast_expression "(uint *)(param_1 + 0x24)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) () ")"))) (+ "+") (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x24) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x24) = uVar1" (pointer_expression "*(uint *)(param_1 + 0x24)" (* "*") (cast_expression "(uint *)(param_1 + 0x24)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "param_2 = param_2 + uVar3;" (assignment_expression "param_2 = param_2 + uVar3" (identifier "param_2") (= "=") (binary_expression "param_2 + uVar3" (identifier "param_2") (+ "+") (identifier "uVar3"))) (; ";")) (expression_statement "param_3 = iVar2 + (param_3 - 0x40);" (assignment_expression "param_3 = iVar2 + (param_3 - 0x40)" (identifier "param_3") (= "=") (binary_expression "iVar2 + (param_3 - 0x40)" (identifier "iVar2") (+ "+") (parenthesized_expression "(param_3 - 0x40)" (( "(") (binary_expression "param_3 - 0x40" (identifier "param_3") (- "-") (number_literal "0x40")) () ")")))) (; ";")) (} "}"))) (if_statement "if (0x3f < param_3) {\n    iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40;\n    puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554;\n    do {\n      FUN_0002aad0(param_1,param_2,puVar4);\n      uVar3 = *(uint *)(param_1 + 0x24) + 1;\n      *(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);\n      param_2 = param_2 + 0x40;\n      *(uint *)(param_1 + 0x24) = uVar3;\n    } while (param_2 != iVar2);\n    param_3 = param_3 & 0x3f;\n    param_2 = iVar2;\n  }" (if "if") (parenthesized_expression "(0x3f < param_3)" (( "(") (binary_expression "0x3f < param_3" (number_literal "0x3f") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n    iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40;\n    puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554;\n    do {\n      FUN_0002aad0(param_1,param_2,puVar4);\n      uVar3 = *(uint *)(param_1 + 0x24) + 1;\n      *(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);\n      param_2 = param_2 + 0x40;\n      *(uint *)(param_1 + 0x24) = uVar3;\n    } while (param_2 != iVar2);\n    param_3 = param_3 & 0x3f;\n    param_2 = iVar2;\n  }" ({ "{") (expression_statement "iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40;" (assignment_expression "iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40" (identifier "iVar2") (= "=") (binary_expression "param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40" (identifier "param_2") (+ "+") (binary_expression "((param_3 - 0x40 >> 6) + 1) * 0x40" (parenthesized_expression "((param_3 - 0x40 >> 6) + 1)" (( "(") (binary_expression "(param_3 - 0x40 >> 6) + 1" (parenthesized_expression "(param_3 - 0x40 >> 6)" (( "(") (binary_expression "param_3 - 0x40 >> 6" (binary_expression "param_3 - 0x40" (identifier "param_3") (- "-") (number_literal "0x40")) (>> ">>") (number_literal "6")) () ")")) (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "0x40")))) (; ";")) (expression_statement "puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554;" (assignment_expression "puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554" (identifier "puVar4") (= "=") (binary_expression "PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554" (identifier "PTR_s_than_FD_SETSIZE___d_") (> ">") (binary_expression "__d_0004105c + 0x554" (identifier "__d_0004105c") (+ "+") (number_literal "0x554")))) (; ";")) (do_statement "do {\n      FUN_0002aad0(param_1,param_2,puVar4);\n      uVar3 = *(uint *)(param_1 + 0x24) + 1;\n      *(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);\n      param_2 = param_2 + 0x40;\n      *(uint *)(param_1 + 0x24) = uVar3;\n    } while (param_2 != iVar2);" (do "do") (compound_statement "{\n      FUN_0002aad0(param_1,param_2,puVar4);\n      uVar3 = *(uint *)(param_1 + 0x24) + 1;\n      *(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);\n      param_2 = param_2 + 0x40;\n      *(uint *)(param_1 + 0x24) = uVar3;\n    }" ({ "{") (expression_statement "FUN_0002aad0(param_1,param_2,puVar4);" (call_expression "FUN_0002aad0(param_1,param_2,puVar4)" (identifier "FUN_0002aad0") (argument_list "(param_1,param_2,puVar4)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "puVar4") () ")"))) (; ";")) (expression_statement "uVar3 = *(uint *)(param_1 + 0x24) + 1;" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x24) + 1" (identifier "uVar3") (= "=") (binary_expression "*(uint *)(param_1 + 0x24) + 1" (pointer_expression "*(uint *)(param_1 + 0x24)" (* "*") (cast_expression "(uint *)(param_1 + 0x24)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);" (assignment_expression "*(uint *)(param_1 + 0x20) =\n           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)" (pointer_expression "*(uint *)(param_1 + 0x20)" (* "*") (cast_expression "(uint *)(param_1 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (binary_expression "(uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)" (call_expression "(uint)(uVar3 < *(uint *)(param_1 + 0x24))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar3 < *(uint *)(param_1 + 0x24))" (( "(") (binary_expression "uVar3 < *(uint *)(param_1 + 0x24)" (identifier "uVar3") (< "<") (pointer_expression "*(uint *)(param_1 + 0x24)" (* "*") (cast_expression "(uint *)(param_1 + 0x24)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) () ")"))) (+ "+") (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))))) (; ";")) (expression_statement "param_2 = param_2 + 0x40;" (assignment_expression "param_2 = param_2 + 0x40" (identifier "param_2") (= "=") (binary_expression "param_2 + 0x40" (identifier "param_2") (+ "+") (number_literal "0x40"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x24) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x24) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x24)" (* "*") (cast_expression "(uint *)(param_1 + 0x24)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != iVar2)" (( "(") (binary_expression "param_2 != iVar2" (identifier "param_2") (!= "!=") (identifier "iVar2")) () ")")) (; ";")) (expression_statement "param_3 = param_3 & 0x3f;" (assignment_expression "param_3 = param_3 & 0x3f" (identifier "param_3") (= "=") (binary_expression "param_3 & 0x3f" (identifier "param_3") (& "&") (number_literal "0x3f"))) (; ";")) (expression_statement "param_2 = iVar2;" (assignment_expression "param_2 = iVar2" (identifier "param_2") (= "=") (identifier "iVar2")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_memcpy_000412f4)(param_1 + 0x28,param_2,param_3);" (call_expression "(*(code *)PTR_memcpy_000412f4)(param_1 + 0x28,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_memcpy_000412f4)" (( "(") (pointer_expression "*(code *)PTR_memcpy_000412f4" (* "*") (cast_expression "(code *)PTR_memcpy_000412f4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_000412f4"))) () ")")) (argument_list "(param_1 + 0x28,param_2,param_3)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x68) = param_3;" (assignment_expression "*(uint *)(param_1 + 0x68) = param_3" (pointer_expression "*(uint *)(param_1 + 0x68)" (* "*") (cast_expression "(uint *)(param_1 + 0x68)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(void *ctx_,uint8_t *var_8,size_t var_2)

{
  type_1 var_7;
  int var_1;
  uint8_t *var_9;
  type_1 var_3;
  uint32_t *k;
  
  var_1 = *(int *)((int)ctx_ + 0x68);
  if (var_1 != 0) {
    var_3 = 0x40 - var_1;
    if (var_2 < var_3) {
      (*(type_2 *)PTR_memcpy_000412f4)((int)ctx_ + var_1 + 0x28);
      *(size_t *)((int)ctx_ + 0x68) = *(int *)((int)ctx_ + 0x68) + var_2;
      return;
    }
    (*(type_2 *)PTR_memcpy_000412f4)((uint8_t *)((int)ctx_ + 0x28) + var_1,var_8,var_3);
    var_4
              ((uint32_t *)ctx_,(uint8_t *)((int)ctx_ + 0x28),
               (uint32_t *)(var_5>var_6 + 0x554));
    var_7 = *(type_1 *)((int)ctx_ + 0x24) + 1;
    *(type_1 *)((int)ctx_ + 0x20) =
         (type_1)(var_7 < *(type_1 *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20);
    *(type_1 *)((int)ctx_ + 0x24) = var_7;
    var_8 = var_8 + var_3;
    var_2 = var_1 + (var_2 - 0x40);
  }
  if (0x3f < var_2) {
    var_9 = var_8 + ((var_2 - 0x40 >> 6) + 1) * 0x40;
    k = (uint32_t *)(var_5>var_6 + 0x554);
    do {
      var_4((uint32_t *)ctx_,var_8,k);
      var_3 = *(type_1 *)((int)ctx_ + 0x24) + 1;
      *(type_1 *)((int)ctx_ + 0x20) =
           (type_1)(var_3 < *(type_1 *)((int)ctx_ + 0x24)) + *(int *)((int)ctx_ + 0x20);
      var_8 = var_8 + 0x40;
      *(type_1 *)((int)ctx_ + 0x24) = var_3;
    } while (var_8 != var_9);
    var_2 = var_2 & 0x3f;
    var_8 = var_9;
  }
  (*(type_2 *)PTR_memcpy_000412f4)((int)ctx_ + 0x28,var_8,var_2);
  *(size_t *)((int)ctx_ + 0x68) = var_2;
  return;
}


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

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

{
  uint uVar1;
  int iVar2;
  uint uVar3;
  undefined *puVar4;
  
  iVar2 = *(int *)(param_1 + 0x68);
  if (iVar2 != 0) {
    uVar3 = 0x40 - iVar2;
    if (param_3 < uVar3) {
      (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2);
      *(uint *)(param_1 + 0x68) = *(int *)(param_1 + 0x68) + param_3;
      return;
    }
    (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28 + iVar2,param_2,uVar3);
    FUN_0002aad0(param_1,param_1 + 0x28,PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554);
    uVar1 = *(uint *)(param_1 + 0x24) + 1;
    *(uint *)(param_1 + 0x20) = (uint)(uVar1 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20)
    ;
    *(uint *)(param_1 + 0x24) = uVar1;
    param_2 = param_2 + uVar3;
    param_3 = iVar2 + (param_3 - 0x40);
  }
  if (0x3f < param_3) {
    iVar2 = param_2 + ((param_3 - 0x40 >> 6) + 1) * 0x40;
    puVar4 = PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x554;
    do {
      FUN_0002aad0(param_1,param_2,puVar4);
      uVar3 = *(uint *)(param_1 + 0x24) + 1;
      *(uint *)(param_1 + 0x20) =
           (uint)(uVar3 < *(uint *)(param_1 + 0x24)) + *(int *)(param_1 + 0x20);
      param_2 = param_2 + 0x40;
      *(uint *)(param_1 + 0x24) = uVar3;
    } while (param_2 != iVar2);
    param_3 = param_3 & 0x3f;
    param_2 = iVar2;
  }
  (*(code *)PTR_memcpy_000412f4)(param_1 + 0x28,param_2,param_3);
  *(uint *)(param_1 + 0x68) = param_3;
  return;
}

