
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

size_t readmoredata(char *buffer,size_t size,size_t nitems,void *userp)

{
  int iVar1;
  undefined4 uVar2;
  uint uVar3;
  int iVar4;
  connectdata *conn;
  uint uVar5;
  int iVar6;
  uint uVar7;
  size_t sVar8;
  
                    /* WARNING: Load size is inaccurate */
  iVar6 = *(int *)(*userp + 0x154);
  iVar1 = *(int *)(iVar6 + 8);
  uVar5 = *(uint *)(iVar6 + 0xc);
  uVar7 = size * nitems;
  if (iVar1 == 0 && uVar5 == 0) {
    return 0;
  }
  uVar2 = *(undefined4 *)(iVar6 + 0x10);
  *(bool *)(*userp + 0x153) = *(int *)(iVar6 + 0x1b0) == 1;
  if ((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))) {
    (*(code *)PTR_memcpy_000a6eec)(buffer,uVar2,uVar5);
    sVar8 = *(size_t *)(iVar6 + 0xc);
    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {
      iVar1 = *(int *)(iVar6 + 0x1b0);
                    /* WARNING: Load size is inaccurate */
      iVar4 = *userp;
      uVar2 = *(undefined4 *)(iVar6 + 0x19c);
      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);
      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);
      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);
      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);
      *(undefined4 *)(iVar4 + 0xf14) = uVar2;
      *(undefined4 *)(iVar6 + 0x1a8) = 0;
      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;
      *(undefined4 *)(iVar6 + 0x1ac) = 0;
      return sVar8;
    }
    *(undefined4 *)(iVar6 + 0xc) = 0;
    *(undefined4 *)(iVar6 + 8) = 0;
    return sVar8;
  }
  (*(code *)PTR_memcpy_000a6eec)(buffer,uVar2,uVar7);
  uVar5 = *(uint *)(iVar6 + 0xc);
  uVar3 = uVar5 - uVar7;
  *(uint *)(iVar6 + 0xc) = uVar3;
  *(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7;
  *(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3);
  return uVar7;
}



uint FUN_0001f844(undefined4 param_1,int param_2,int param_3,int *param_4)

{
  int iVar1;
  undefined4 uVar2;
  uint uVar3;
  int iVar4;
  uint uVar5;
  int iVar6;
  uint uVar7;
  
  iVar6 = *(int *)(*param_4 + 0x154);
  iVar1 = *(int *)(iVar6 + 8);
  uVar5 = *(uint *)(iVar6 + 0xc);
  uVar7 = param_2 * param_3;
  if (iVar1 == 0 && uVar5 == 0) {
    return 0;
  }
  uVar2 = *(undefined4 *)(iVar6 + 0x10);
  *(bool *)(*param_4 + 0x153) = *(int *)(iVar6 + 0x1b0) == 1;
  if ((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))) {
    (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5);
    uVar5 = *(uint *)(iVar6 + 0xc);
    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {
      iVar1 = *(int *)(iVar6 + 0x1b0);
      iVar4 = *param_4;
      uVar2 = *(undefined4 *)(iVar6 + 0x19c);
      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);
      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);
      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);
      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);
      *(undefined4 *)(iVar4 + 0xf14) = uVar2;
      *(undefined4 *)(iVar6 + 0x1a8) = 0;
      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;
      *(undefined4 *)(iVar6 + 0x1ac) = 0;
      return uVar5;
    }
    *(undefined4 *)(iVar6 + 0xc) = 0;
    *(undefined4 *)(iVar6 + 8) = 0;
    return uVar5;
  }
  (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar7);
  uVar5 = *(uint *)(iVar6 + 0xc);
  uVar3 = uVar5 - uVar7;
  *(uint *)(iVar6 + 0xc) = uVar3;
  *(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7;
  *(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3);
  return uVar7;
}


lui gp,0x9
addiu gp,gp,-0x1734
addu gp,gp,t9
lw t0,0x0(a3)
addiu sp,sp,-0x28
sw s0,0x18(sp)
lw s0,0x154(t0)
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
lw v1,0x8(s0)
lw t1,0xc(s0)
or v0,v1,t1
beq v0,zero,0x0001f94c
_mul s1,a1,a2
lw v0,0x1b0(s0)
or s2,a3,zero
lw a1,0x10(s0)
xori v0,v0,0x1
sltiu v0,v0,0x1
blez v1,0x0001f8f0
_sb v0,0x153(t0)
lw t9,-0x7224(gp)
jalr t9
_or a2,s1,zero
lw v0,0xc(s0)
lw a0,0x10(s0)
lw v1,0x8(s0)
subu a1,v0,s1
lw ra,0x24(sp)
addu a0,a0,s1
lw s2,0x20(sp)
sltu v0,v0,a1
sw a1,0xc(s0)
subu v0,v1,v0
sw a0,0x10(s0)
sw v0,0x8(s0)
or v0,s1,zero
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
bne v1,zero,0x0001f900
_sltu v0,s1,t1
bne v0,zero,0x0001f8a4
_lw t9,-0x7224(gp)
lw t9,-0x7224(gp)
jalr t9
_or a2,t1,zero
lw v1,0x1a8(s0)
lw v0,0x1ac(s0)
or a0,v1,v0
bne a0,zero,0x0001f96c
_lw s1,0xc(s0)
lw ra,0x24(sp)
or v1,zero,zero
or v0,zero,zero
lw s2,0x20(sp)
sw v1,0xc(s0)
sw v0,0x8(s0)
or v0,s1,zero
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw ra,0x24(sp)
or s1,zero,zero
lw s2,0x20(sp)
or v0,s1,zero
lw s0,0x18(sp)
lw s1,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw a0,0x1b0(s0)
lw a1,0x0(s2)
lw t0,0x1a0(s0)
lw a3,0x198(s0)
addiu a0,a0,0x1
lw a2,0x19c(s0)
lw ra,0x24(sp)
lw s2,0x20(sp)
sw v1,0x8(s0)
or v1,zero,zero
sw v0,0xc(s0)
or v0,zero,zero
sw t0,0x10(s0)
sw a3,0xf10(a1)
sw a2,0xf14(a1)
sw v0,0x1a8(s0)
or v0,s1,zero
sw a0,0x1b0(s0)
sw v1,0x1ac(s0)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "uint FUN_0001f844(undefined4 param_1,int param_2,int param_3,int *param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  \n  iVar6 = *(int *)(*param_4 + 0x154);\n  iVar1 = *(int *)(iVar6 + 8);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar7 = param_2 * param_3;\n  if (iVar1 == 0 && uVar5 == 0) {\n    return 0;\n  }\n  uVar2 = *(undefined4 *)(iVar6 + 0x10);\n  *(bool *)(*param_4 + 0x153) = *(int *)(iVar6 + 0x1b0) == 1;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))) {\n    (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5);\n    uVar5 = *(uint *)(iVar6 + 0xc);\n    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n      iVar4 = *param_4;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return uVar5;\n    }\n    *(undefined4 *)(iVar6 + 0xc) = 0;\n    *(undefined4 *)(iVar6 + 8) = 0;\n    return uVar5;\n  }\n  (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar7);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar3 = uVar5 - uVar7;\n  *(uint *)(iVar6 + 0xc) = uVar3;\n  *(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7;\n  *(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3);\n  return uVar7;\n}\n\n" (function_definition "uint FUN_0001f844(undefined4 param_1,int param_2,int param_3,int *param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  \n  iVar6 = *(int *)(*param_4 + 0x154);\n  iVar1 = *(int *)(iVar6 + 8);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar7 = param_2 * param_3;\n  if (iVar1 == 0 && uVar5 == 0) {\n    return 0;\n  }\n  uVar2 = *(undefined4 *)(iVar6 + 0x10);\n  *(bool *)(*param_4 + 0x153) = *(int *)(iVar6 + 0x1b0) == 1;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))) {\n    (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5);\n    uVar5 = *(uint *)(iVar6 + 0xc);\n    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n      iVar4 = *param_4;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return uVar5;\n    }\n    *(undefined4 *)(iVar6 + 0xc) = 0;\n    *(undefined4 *)(iVar6 + 8) = 0;\n    return uVar5;\n  }\n  (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar7);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar3 = uVar5 - uVar7;\n  *(uint *)(iVar6 + 0xc) = uVar3;\n  *(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7;\n  *(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3);\n  return uVar7;\n}" type_identifier (function_declarator "FUN_0001f844(undefined4 param_1,int param_2,int param_3,int *param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,int *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  \n  iVar6 = *(int *)(*param_4 + 0x154);\n  iVar1 = *(int *)(iVar6 + 8);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar7 = param_2 * param_3;\n  if (iVar1 == 0 && uVar5 == 0) {\n    return 0;\n  }\n  uVar2 = *(undefined4 *)(iVar6 + 0x10);\n  *(bool *)(*param_4 + 0x153) = *(int *)(iVar6 + 0x1b0) == 1;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))) {\n    (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5);\n    uVar5 = *(uint *)(iVar6 + 0xc);\n    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n      iVar4 = *param_4;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return uVar5;\n    }\n    *(undefined4 *)(iVar6 + 0xc) = 0;\n    *(undefined4 *)(iVar6 + 8) = 0;\n    return uVar5;\n  }\n  (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar7);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar3 = uVar5 - uVar7;\n  *(uint *)(iVar6 + 0xc) = uVar3;\n  *(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7;\n  *(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3);\n  return uVar7;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (expression_statement "iVar6 = *(int *)(*param_4 + 0x154);" (assignment_expression "iVar6 = *(int *)(*param_4 + 0x154)" identifier = (pointer_expression "*(int *)(*param_4 + 0x154)" * (cast_expression "(int *)(*param_4 + 0x154)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_4 + 0x154)" ( (binary_expression "*param_4 + 0x154" (pointer_expression "*param_4" * identifier) + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)(iVar6 + 8);" (assignment_expression "iVar1 = *(int *)(iVar6 + 8)" identifier = (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(uint *)(iVar6 + 0xc);" (assignment_expression "uVar5 = *(uint *)(iVar6 + 0xc)" identifier = (pointer_expression "*(uint *)(iVar6 + 0xc)" * (cast_expression "(uint *)(iVar6 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = param_2 * param_3;" (assignment_expression "uVar7 = param_2 * param_3" identifier = (binary_expression "param_2 * param_3" identifier * identifier)) ;) (if_statement "if (iVar1 == 0 && uVar5 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0 && uVar5 == 0)" ( (binary_expression "iVar1 == 0 && uVar5 == 0" (binary_expression "iVar1 == 0" identifier == number_literal) && (binary_expression "uVar5 == 0" identifier == number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = *(undefined4 *)(iVar6 + 0x10);" (assignment_expression "uVar2 = *(undefined4 *)(iVar6 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0x10)" * (cast_expression "(undefined4 *)(iVar6 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(bool *)(*param_4 + 0x153) = *(int *)(iVar6 + 0x1b0) == 1;" (assignment_expression "*(bool *)(*param_4 + 0x153) = *(int *)(iVar6 + 0x1b0) == 1" (pointer_expression "*(bool *)(*param_4 + 0x153)" * (cast_expression "(bool *)(*param_4 + 0x153)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_4 + 0x153)" ( (binary_expression "*param_4 + 0x153" (pointer_expression "*param_4" * identifier) + number_literal) )))) = (binary_expression "*(int *)(iVar6 + 0x1b0) == 1" (pointer_expression "*(int *)(iVar6 + 0x1b0)" * (cast_expression "(int *)(iVar6 + 0x1b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1b0)" ( (binary_expression "iVar6 + 0x1b0" identifier + number_literal) )))) == number_literal)) ;) (if_statement "if ((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))) {\n    (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5);\n    uVar5 = *(uint *)(iVar6 + 0xc);\n    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n      iVar4 = *param_4;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return uVar5;\n    }\n    *(undefined4 *)(iVar6 + 0xc) = 0;\n    *(undefined4 *)(iVar6 + 8) = 0;\n    return uVar5;\n  }" if (parenthesized_expression "((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7))))" ( (binary_expression "(iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))" (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) && (parenthesized_expression "((iVar1 != 0 || (uVar5 <= uVar7)))" ( (parenthesized_expression "(iVar1 != 0 || (uVar5 <= uVar7))" ( (binary_expression "iVar1 != 0 || (uVar5 <= uVar7)" (binary_expression "iVar1 != 0" identifier != number_literal) || (parenthesized_expression "(uVar5 <= uVar7)" ( (binary_expression "uVar5 <= uVar7" identifier <= identifier) ))) )) ))) )) (compound_statement "{\n    (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5);\n    uVar5 = *(uint *)(iVar6 + 0xc);\n    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n      iVar4 = *param_4;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return uVar5;\n    }\n    *(undefined4 *)(iVar6 + 0xc) = 0;\n    *(undefined4 *)(iVar6 + 8) = 0;\n    return uVar5;\n  }" { (expression_statement "(*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5);" (call_expression "(*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_000a6eec)" ( (pointer_expression "*(code *)PTR_memcpy_000a6eec" * (cast_expression "(code *)PTR_memcpy_000a6eec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,uVar2,uVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar5 = *(uint *)(iVar6 + 0xc);" (assignment_expression "uVar5 = *(uint *)(iVar6 + 0xc)" identifier = (pointer_expression "*(uint *)(iVar6 + 0xc)" * (cast_expression "(uint *)(iVar6 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n      iVar4 = *param_4;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return uVar5;\n    }" if (parenthesized_expression "(*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0)" ( (binary_expression "*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0" (binary_expression "*(int *)(iVar6 + 0x1a8) != 0" (pointer_expression "*(int *)(iVar6 + 0x1a8)" * (cast_expression "(int *)(iVar6 + 0x1a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1a8)" ( (binary_expression "iVar6 + 0x1a8" identifier + number_literal) )))) != number_literal) || (binary_expression "*(int *)(iVar6 + 0x1ac) != 0" (pointer_expression "*(int *)(iVar6 + 0x1ac)" * (cast_expression "(int *)(iVar6 + 0x1ac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1ac)" ( (binary_expression "iVar6 + 0x1ac" identifier + number_literal) )))) != number_literal)) )) (compound_statement "{\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n      iVar4 = *param_4;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return uVar5;\n    }" { (expression_statement "iVar1 = *(int *)(iVar6 + 0x1b0);" (assignment_expression "iVar1 = *(int *)(iVar6 + 0x1b0)" identifier = (pointer_expression "*(int *)(iVar6 + 0x1b0)" * (cast_expression "(int *)(iVar6 + 0x1b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1b0)" ( (binary_expression "iVar6 + 0x1b0" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *param_4;" (assignment_expression "iVar4 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "uVar2 = *(undefined4 *)(iVar6 + 0x19c);" (assignment_expression "uVar2 = *(undefined4 *)(iVar6 + 0x19c)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0x19c)" * (cast_expression "(undefined4 *)(iVar6 + 0x19c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x19c)" ( (binary_expression "iVar6 + 0x19c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);" (assignment_expression "*(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8)" (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = (pointer_expression "*(int *)(iVar6 + 0x1a8)" * (cast_expression "(int *)(iVar6 + 0x1a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1a8)" ( (binary_expression "iVar6 + 0x1a8" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);" (assignment_expression "*(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac)" (pointer_expression "*(int *)(iVar6 + 0xc)" * (cast_expression "(int *)(iVar6 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) )))) = (pointer_expression "*(int *)(iVar6 + 0x1ac)" * (cast_expression "(int *)(iVar6 + 0x1ac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1ac)" ( (binary_expression "iVar6 + 0x1ac" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);" (assignment_expression "*(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0)" (pointer_expression "*(undefined4 *)(iVar6 + 0x10)" * (cast_expression "(undefined4 *)(iVar6 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar6 + 0x1a0)" * (cast_expression "(undefined4 *)(iVar6 + 0x1a0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1a0)" ( (binary_expression "iVar6 + 0x1a0" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);" (assignment_expression "*(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198)" (pointer_expression "*(undefined4 *)(iVar4 + 0xf10)" * (cast_expression "(undefined4 *)(iVar4 + 0xf10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xf10)" ( (binary_expression "iVar4 + 0xf10" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar6 + 0x198)" * (cast_expression "(undefined4 *)(iVar6 + 0x198)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x198)" ( (binary_expression "iVar6 + 0x198" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar4 + 0xf14) = uVar2;" (assignment_expression "*(undefined4 *)(iVar4 + 0xf14) = uVar2" (pointer_expression "*(undefined4 *)(iVar4 + 0xf14)" * (cast_expression "(undefined4 *)(iVar4 + 0xf14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xf14)" ( (binary_expression "iVar4 + 0xf14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x1a8) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x1a8) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x1a8)" * (cast_expression "(undefined4 *)(iVar6 + 0x1a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1a8)" ( (binary_expression "iVar6 + 0x1a8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(iVar6 + 0x1b0) = iVar1 + 1;" (assignment_expression "*(int *)(iVar6 + 0x1b0) = iVar1 + 1" (pointer_expression "*(int *)(iVar6 + 0x1b0)" * (cast_expression "(int *)(iVar6 + 0x1b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1b0)" ( (binary_expression "iVar6 + 0x1b0" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x1ac) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x1ac) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x1ac)" * (cast_expression "(undefined4 *)(iVar6 + 0x1ac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1ac)" ( (binary_expression "iVar6 + 0x1ac" identifier + number_literal) )))) = number_literal) ;) (return_statement "return uVar5;" return identifier ;) })) (expression_statement "*(undefined4 *)(iVar6 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0xc)" * (cast_expression "(undefined4 *)(iVar6 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar6 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 8)" * (cast_expression "(undefined4 *)(iVar6 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return uVar5;" return identifier ;) })) (expression_statement "(*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar7);" (call_expression "(*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar7)" (parenthesized_expression "(*(code *)PTR_memcpy_000a6eec)" ( (pointer_expression "*(code *)PTR_memcpy_000a6eec" * (cast_expression "(code *)PTR_memcpy_000a6eec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,uVar2,uVar7)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar5 = *(uint *)(iVar6 + 0xc);" (assignment_expression "uVar5 = *(uint *)(iVar6 + 0xc)" identifier = (pointer_expression "*(uint *)(iVar6 + 0xc)" * (cast_expression "(uint *)(iVar6 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = uVar5 - uVar7;" (assignment_expression "uVar3 = uVar5 - uVar7" identifier = (binary_expression "uVar5 - uVar7" identifier - identifier)) ;) (expression_statement "*(uint *)(iVar6 + 0xc) = uVar3;" (assignment_expression "*(uint *)(iVar6 + 0xc) = uVar3" (pointer_expression "*(uint *)(iVar6 + 0xc)" * (cast_expression "(uint *)(iVar6 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7;" (assignment_expression "*(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7" (pointer_expression "*(uint *)(iVar6 + 0x10)" * (cast_expression "(uint *)(iVar6 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar6 + 0x10) + uVar7" (pointer_expression "*(int *)(iVar6 + 0x10)" * (cast_expression "(int *)(iVar6 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) + identifier)) ;) (expression_statement "*(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3);" (assignment_expression "*(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3)" (pointer_expression "*(uint *)(iVar6 + 8)" * (cast_expression "(uint *)(iVar6 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3)" (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) - (call_expression "(uint)(uVar5 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar5 < uVar3)" ( (binary_expression "uVar5 < uVar3" identifier < identifier) ))))) ;) (return_statement "return uVar7;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nsize_t readmoredata(char *buffer,size_t size,size_t nitems,void *userp)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  connectdata *conn;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  size_t sVar8;\n  \n                    /* WARNING: Load size is inaccurate */\n  iVar6 = *(int *)(*userp + 0x154);\n  iVar1 = *(int *)(iVar6 + 8);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar7 = size * nitems;\n  if (iVar1 == 0 && uVar5 == 0) {\n    return 0;\n  }\n  uVar2 = *(undefined4 *)(iVar6 + 0x10);\n  *(bool *)(*userp + 0x153) = *(int *)(iVar6 + 0x1b0) == 1;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))) {\n    (*(code *)PTR_memcpy_000a6eec)(buffer,uVar2,uVar5);\n    sVar8 = *(size_t *)(iVar6 + 0xc);\n    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n                    /* WARNING: Load size is inaccurate */\n      iVar4 = *userp;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return sVar8;\n    }\n    *(undefined4 *)(iVar6 + 0xc) = 0;\n    *(undefined4 *)(iVar6 + 8) = 0;\n    return sVar8;\n  }\n  (*(code *)PTR_memcpy_000a6eec)(buffer,uVar2,uVar7);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar3 = uVar5 - uVar7;\n  *(uint *)(iVar6 + 0xc) = uVar3;\n  *(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7;\n  *(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3);\n  return uVar7;\n}\n\n" comment (function_definition "size_t readmoredata(char *buffer,size_t size,size_t nitems,void *userp)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  connectdata *conn;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  size_t sVar8;\n  \n                    /* WARNING: Load size is inaccurate */\n  iVar6 = *(int *)(*userp + 0x154);\n  iVar1 = *(int *)(iVar6 + 8);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar7 = size * nitems;\n  if (iVar1 == 0 && uVar5 == 0) {\n    return 0;\n  }\n  uVar2 = *(undefined4 *)(iVar6 + 0x10);\n  *(bool *)(*userp + 0x153) = *(int *)(iVar6 + 0x1b0) == 1;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))) {\n    (*(code *)PTR_memcpy_000a6eec)(buffer,uVar2,uVar5);\n    sVar8 = *(size_t *)(iVar6 + 0xc);\n    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n                    /* WARNING: Load size is inaccurate */\n      iVar4 = *userp;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return sVar8;\n    }\n    *(undefined4 *)(iVar6 + 0xc) = 0;\n    *(undefined4 *)(iVar6 + 8) = 0;\n    return sVar8;\n  }\n  (*(code *)PTR_memcpy_000a6eec)(buffer,uVar2,uVar7);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar3 = uVar5 - uVar7;\n  *(uint *)(iVar6 + 0xc) = uVar3;\n  *(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7;\n  *(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3);\n  return uVar7;\n}" primitive_type (function_declarator "readmoredata(char *buffer,size_t size,size_t nitems,void *userp)" identifier (parameter_list "(char *buffer,size_t size,size_t nitems,void *userp)" ( (parameter_declaration "char *buffer" primitive_type (pointer_declarator "*buffer" * identifier)) , (parameter_declaration "size_t size" primitive_type identifier) , (parameter_declaration "size_t nitems" primitive_type identifier) , (parameter_declaration "void *userp" primitive_type (pointer_declarator "*userp" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  connectdata *conn;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  size_t sVar8;\n  \n                    /* WARNING: Load size is inaccurate */\n  iVar6 = *(int *)(*userp + 0x154);\n  iVar1 = *(int *)(iVar6 + 8);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar7 = size * nitems;\n  if (iVar1 == 0 && uVar5 == 0) {\n    return 0;\n  }\n  uVar2 = *(undefined4 *)(iVar6 + 0x10);\n  *(bool *)(*userp + 0x153) = *(int *)(iVar6 + 0x1b0) == 1;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))) {\n    (*(code *)PTR_memcpy_000a6eec)(buffer,uVar2,uVar5);\n    sVar8 = *(size_t *)(iVar6 + 0xc);\n    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n                    /* WARNING: Load size is inaccurate */\n      iVar4 = *userp;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return sVar8;\n    }\n    *(undefined4 *)(iVar6 + 0xc) = 0;\n    *(undefined4 *)(iVar6 + 8) = 0;\n    return sVar8;\n  }\n  (*(code *)PTR_memcpy_000a6eec)(buffer,uVar2,uVar7);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar3 = uVar5 - uVar7;\n  *(uint *)(iVar6 + 0xc) = uVar3;\n  *(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7;\n  *(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3);\n  return uVar7;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "connectdata *conn;" type_identifier (pointer_declarator "*conn" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "size_t sVar8;" primitive_type identifier ;) comment (expression_statement "iVar6 = *(int *)(*userp + 0x154);" (assignment_expression "iVar6 = *(int *)(*userp + 0x154)" identifier = (pointer_expression "*(int *)(*userp + 0x154)" * (cast_expression "(int *)(*userp + 0x154)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*userp + 0x154)" ( (binary_expression "*userp + 0x154" (pointer_expression "*userp" * identifier) + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)(iVar6 + 8);" (assignment_expression "iVar1 = *(int *)(iVar6 + 8)" identifier = (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(uint *)(iVar6 + 0xc);" (assignment_expression "uVar5 = *(uint *)(iVar6 + 0xc)" identifier = (pointer_expression "*(uint *)(iVar6 + 0xc)" * (cast_expression "(uint *)(iVar6 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = size * nitems;" (assignment_expression "uVar7 = size * nitems" identifier = (binary_expression "size * nitems" identifier * identifier)) ;) (if_statement "if (iVar1 == 0 && uVar5 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0 && uVar5 == 0)" ( (binary_expression "iVar1 == 0 && uVar5 == 0" (binary_expression "iVar1 == 0" identifier == number_literal) && (binary_expression "uVar5 == 0" identifier == number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = *(undefined4 *)(iVar6 + 0x10);" (assignment_expression "uVar2 = *(undefined4 *)(iVar6 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0x10)" * (cast_expression "(undefined4 *)(iVar6 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(bool *)(*userp + 0x153) = *(int *)(iVar6 + 0x1b0) == 1;" (assignment_expression "*(bool *)(*userp + 0x153) = *(int *)(iVar6 + 0x1b0) == 1" (pointer_expression "*(bool *)(*userp + 0x153)" * (cast_expression "(bool *)(*userp + 0x153)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*userp + 0x153)" ( (binary_expression "*userp + 0x153" (pointer_expression "*userp" * identifier) + number_literal) )))) = (binary_expression "*(int *)(iVar6 + 0x1b0) == 1" (pointer_expression "*(int *)(iVar6 + 0x1b0)" * (cast_expression "(int *)(iVar6 + 0x1b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1b0)" ( (binary_expression "iVar6 + 0x1b0" identifier + number_literal) )))) == number_literal)) ;) (if_statement "if ((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))) {\n    (*(code *)PTR_memcpy_000a6eec)(buffer,uVar2,uVar5);\n    sVar8 = *(size_t *)(iVar6 + 0xc);\n    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n                    /* WARNING: Load size is inaccurate */\n      iVar4 = *userp;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return sVar8;\n    }\n    *(undefined4 *)(iVar6 + 0xc) = 0;\n    *(undefined4 *)(iVar6 + 8) = 0;\n    return sVar8;\n  }" if (parenthesized_expression "((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7))))" ( (binary_expression "(iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))" (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) && (parenthesized_expression "((iVar1 != 0 || (uVar5 <= uVar7)))" ( (parenthesized_expression "(iVar1 != 0 || (uVar5 <= uVar7))" ( (binary_expression "iVar1 != 0 || (uVar5 <= uVar7)" (binary_expression "iVar1 != 0" identifier != number_literal) || (parenthesized_expression "(uVar5 <= uVar7)" ( (binary_expression "uVar5 <= uVar7" identifier <= identifier) ))) )) ))) )) (compound_statement "{\n    (*(code *)PTR_memcpy_000a6eec)(buffer,uVar2,uVar5);\n    sVar8 = *(size_t *)(iVar6 + 0xc);\n    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n                    /* WARNING: Load size is inaccurate */\n      iVar4 = *userp;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return sVar8;\n    }\n    *(undefined4 *)(iVar6 + 0xc) = 0;\n    *(undefined4 *)(iVar6 + 8) = 0;\n    return sVar8;\n  }" { (expression_statement "(*(code *)PTR_memcpy_000a6eec)(buffer,uVar2,uVar5);" (call_expression "(*(code *)PTR_memcpy_000a6eec)(buffer,uVar2,uVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_000a6eec)" ( (pointer_expression "*(code *)PTR_memcpy_000a6eec" * (cast_expression "(code *)PTR_memcpy_000a6eec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buffer,uVar2,uVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "sVar8 = *(size_t *)(iVar6 + 0xc);" (assignment_expression "sVar8 = *(size_t *)(iVar6 + 0xc)" identifier = (pointer_expression "*(size_t *)(iVar6 + 0xc)" * (cast_expression "(size_t *)(iVar6 + 0xc)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n                    /* WARNING: Load size is inaccurate */\n      iVar4 = *userp;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return sVar8;\n    }" if (parenthesized_expression "(*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0)" ( (binary_expression "*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0" (binary_expression "*(int *)(iVar6 + 0x1a8) != 0" (pointer_expression "*(int *)(iVar6 + 0x1a8)" * (cast_expression "(int *)(iVar6 + 0x1a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1a8)" ( (binary_expression "iVar6 + 0x1a8" identifier + number_literal) )))) != number_literal) || (binary_expression "*(int *)(iVar6 + 0x1ac) != 0" (pointer_expression "*(int *)(iVar6 + 0x1ac)" * (cast_expression "(int *)(iVar6 + 0x1ac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1ac)" ( (binary_expression "iVar6 + 0x1ac" identifier + number_literal) )))) != number_literal)) )) (compound_statement "{\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n                    /* WARNING: Load size is inaccurate */\n      iVar4 = *userp;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return sVar8;\n    }" { (expression_statement "iVar1 = *(int *)(iVar6 + 0x1b0);" (assignment_expression "iVar1 = *(int *)(iVar6 + 0x1b0)" identifier = (pointer_expression "*(int *)(iVar6 + 0x1b0)" * (cast_expression "(int *)(iVar6 + 0x1b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1b0)" ( (binary_expression "iVar6 + 0x1b0" identifier + number_literal) ))))) ;) comment (expression_statement "iVar4 = *userp;" (assignment_expression "iVar4 = *userp" identifier = (pointer_expression "*userp" * identifier)) ;) (expression_statement "uVar2 = *(undefined4 *)(iVar6 + 0x19c);" (assignment_expression "uVar2 = *(undefined4 *)(iVar6 + 0x19c)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0x19c)" * (cast_expression "(undefined4 *)(iVar6 + 0x19c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x19c)" ( (binary_expression "iVar6 + 0x19c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);" (assignment_expression "*(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8)" (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = (pointer_expression "*(int *)(iVar6 + 0x1a8)" * (cast_expression "(int *)(iVar6 + 0x1a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1a8)" ( (binary_expression "iVar6 + 0x1a8" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);" (assignment_expression "*(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac)" (pointer_expression "*(int *)(iVar6 + 0xc)" * (cast_expression "(int *)(iVar6 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) )))) = (pointer_expression "*(int *)(iVar6 + 0x1ac)" * (cast_expression "(int *)(iVar6 + 0x1ac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1ac)" ( (binary_expression "iVar6 + 0x1ac" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);" (assignment_expression "*(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0)" (pointer_expression "*(undefined4 *)(iVar6 + 0x10)" * (cast_expression "(undefined4 *)(iVar6 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar6 + 0x1a0)" * (cast_expression "(undefined4 *)(iVar6 + 0x1a0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1a0)" ( (binary_expression "iVar6 + 0x1a0" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);" (assignment_expression "*(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198)" (pointer_expression "*(undefined4 *)(iVar4 + 0xf10)" * (cast_expression "(undefined4 *)(iVar4 + 0xf10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xf10)" ( (binary_expression "iVar4 + 0xf10" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar6 + 0x198)" * (cast_expression "(undefined4 *)(iVar6 + 0x198)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x198)" ( (binary_expression "iVar6 + 0x198" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar4 + 0xf14) = uVar2;" (assignment_expression "*(undefined4 *)(iVar4 + 0xf14) = uVar2" (pointer_expression "*(undefined4 *)(iVar4 + 0xf14)" * (cast_expression "(undefined4 *)(iVar4 + 0xf14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xf14)" ( (binary_expression "iVar4 + 0xf14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x1a8) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x1a8) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x1a8)" * (cast_expression "(undefined4 *)(iVar6 + 0x1a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1a8)" ( (binary_expression "iVar6 + 0x1a8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(iVar6 + 0x1b0) = iVar1 + 1;" (assignment_expression "*(int *)(iVar6 + 0x1b0) = iVar1 + 1" (pointer_expression "*(int *)(iVar6 + 0x1b0)" * (cast_expression "(int *)(iVar6 + 0x1b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1b0)" ( (binary_expression "iVar6 + 0x1b0" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x1ac) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x1ac) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x1ac)" * (cast_expression "(undefined4 *)(iVar6 + 0x1ac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1ac)" ( (binary_expression "iVar6 + 0x1ac" identifier + number_literal) )))) = number_literal) ;) (return_statement "return sVar8;" return identifier ;) })) (expression_statement "*(undefined4 *)(iVar6 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0xc)" * (cast_expression "(undefined4 *)(iVar6 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar6 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 8)" * (cast_expression "(undefined4 *)(iVar6 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return sVar8;" return identifier ;) })) (expression_statement "(*(code *)PTR_memcpy_000a6eec)(buffer,uVar2,uVar7);" (call_expression "(*(code *)PTR_memcpy_000a6eec)(buffer,uVar2,uVar7)" (parenthesized_expression "(*(code *)PTR_memcpy_000a6eec)" ( (pointer_expression "*(code *)PTR_memcpy_000a6eec" * (cast_expression "(code *)PTR_memcpy_000a6eec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buffer,uVar2,uVar7)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar5 = *(uint *)(iVar6 + 0xc);" (assignment_expression "uVar5 = *(uint *)(iVar6 + 0xc)" identifier = (pointer_expression "*(uint *)(iVar6 + 0xc)" * (cast_expression "(uint *)(iVar6 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = uVar5 - uVar7;" (assignment_expression "uVar3 = uVar5 - uVar7" identifier = (binary_expression "uVar5 - uVar7" identifier - identifier)) ;) (expression_statement "*(uint *)(iVar6 + 0xc) = uVar3;" (assignment_expression "*(uint *)(iVar6 + 0xc) = uVar3" (pointer_expression "*(uint *)(iVar6 + 0xc)" * (cast_expression "(uint *)(iVar6 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7;" (assignment_expression "*(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7" (pointer_expression "*(uint *)(iVar6 + 0x10)" * (cast_expression "(uint *)(iVar6 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar6 + 0x10) + uVar7" (pointer_expression "*(int *)(iVar6 + 0x10)" * (cast_expression "(int *)(iVar6 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) + identifier)) ;) (expression_statement "*(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3);" (assignment_expression "*(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3)" (pointer_expression "*(uint *)(iVar6 + 8)" * (cast_expression "(uint *)(iVar6 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3)" (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) - (call_expression "(uint)(uVar5 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar5 < uVar3)" ( (binary_expression "uVar5 < uVar3" identifier < identifier) ))))) ;) (return_statement "return uVar7;" return identifier ;) })))
(translation_unit "uint FUN_0001f844(undefined4 param_1,int param_2,int param_3,int *param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  \n  iVar6 = *(int *)(*param_4 + 0x154);\n  iVar1 = *(int *)(iVar6 + 8);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar7 = param_2 * param_3;\n  if (iVar1 == 0 && uVar5 == 0) {\n    return 0;\n  }\n  uVar2 = *(undefined4 *)(iVar6 + 0x10);\n  *(bool *)(*param_4 + 0x153) = *(int *)(iVar6 + 0x1b0) == 1;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))) {\n    (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5);\n    uVar5 = *(uint *)(iVar6 + 0xc);\n    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n      iVar4 = *param_4;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return uVar5;\n    }\n    *(undefined4 *)(iVar6 + 0xc) = 0;\n    *(undefined4 *)(iVar6 + 8) = 0;\n    return uVar5;\n  }\n  (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar7);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar3 = uVar5 - uVar7;\n  *(uint *)(iVar6 + 0xc) = uVar3;\n  *(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7;\n  *(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3);\n  return uVar7;\n}\n\n" (function_definition "uint FUN_0001f844(undefined4 param_1,int param_2,int param_3,int *param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  \n  iVar6 = *(int *)(*param_4 + 0x154);\n  iVar1 = *(int *)(iVar6 + 8);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar7 = param_2 * param_3;\n  if (iVar1 == 0 && uVar5 == 0) {\n    return 0;\n  }\n  uVar2 = *(undefined4 *)(iVar6 + 0x10);\n  *(bool *)(*param_4 + 0x153) = *(int *)(iVar6 + 0x1b0) == 1;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))) {\n    (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5);\n    uVar5 = *(uint *)(iVar6 + 0xc);\n    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n      iVar4 = *param_4;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return uVar5;\n    }\n    *(undefined4 *)(iVar6 + 0xc) = 0;\n    *(undefined4 *)(iVar6 + 8) = 0;\n    return uVar5;\n  }\n  (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar7);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar3 = uVar5 - uVar7;\n  *(uint *)(iVar6 + 0xc) = uVar3;\n  *(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7;\n  *(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3);\n  return uVar7;\n}" type_identifier (function_declarator "FUN_0001f844(undefined4 param_1,int param_2,int param_3,int *param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,int *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  \n  iVar6 = *(int *)(*param_4 + 0x154);\n  iVar1 = *(int *)(iVar6 + 8);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar7 = param_2 * param_3;\n  if (iVar1 == 0 && uVar5 == 0) {\n    return 0;\n  }\n  uVar2 = *(undefined4 *)(iVar6 + 0x10);\n  *(bool *)(*param_4 + 0x153) = *(int *)(iVar6 + 0x1b0) == 1;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))) {\n    (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5);\n    uVar5 = *(uint *)(iVar6 + 0xc);\n    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n      iVar4 = *param_4;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return uVar5;\n    }\n    *(undefined4 *)(iVar6 + 0xc) = 0;\n    *(undefined4 *)(iVar6 + 8) = 0;\n    return uVar5;\n  }\n  (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar7);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar3 = uVar5 - uVar7;\n  *(uint *)(iVar6 + 0xc) = uVar3;\n  *(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7;\n  *(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3);\n  return uVar7;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (expression_statement "iVar6 = *(int *)(*param_4 + 0x154);" (assignment_expression "iVar6 = *(int *)(*param_4 + 0x154)" identifier = (pointer_expression "*(int *)(*param_4 + 0x154)" * (cast_expression "(int *)(*param_4 + 0x154)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_4 + 0x154)" ( (binary_expression "*param_4 + 0x154" (pointer_expression "*param_4" * identifier) + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)(iVar6 + 8);" (assignment_expression "iVar1 = *(int *)(iVar6 + 8)" identifier = (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(uint *)(iVar6 + 0xc);" (assignment_expression "uVar5 = *(uint *)(iVar6 + 0xc)" identifier = (pointer_expression "*(uint *)(iVar6 + 0xc)" * (cast_expression "(uint *)(iVar6 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = param_2 * param_3;" (assignment_expression "uVar7 = param_2 * param_3" identifier = (binary_expression "param_2 * param_3" identifier * identifier)) ;) (if_statement "if (iVar1 == 0 && uVar5 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0 && uVar5 == 0)" ( (binary_expression "iVar1 == 0 && uVar5 == 0" (binary_expression "iVar1 == 0" identifier == number_literal) && (binary_expression "uVar5 == 0" identifier == number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = *(undefined4 *)(iVar6 + 0x10);" (assignment_expression "uVar2 = *(undefined4 *)(iVar6 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0x10)" * (cast_expression "(undefined4 *)(iVar6 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(bool *)(*param_4 + 0x153) = *(int *)(iVar6 + 0x1b0) == 1;" (assignment_expression "*(bool *)(*param_4 + 0x153) = *(int *)(iVar6 + 0x1b0) == 1" (pointer_expression "*(bool *)(*param_4 + 0x153)" * (cast_expression "(bool *)(*param_4 + 0x153)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_4 + 0x153)" ( (binary_expression "*param_4 + 0x153" (pointer_expression "*param_4" * identifier) + number_literal) )))) = (binary_expression "*(int *)(iVar6 + 0x1b0) == 1" (pointer_expression "*(int *)(iVar6 + 0x1b0)" * (cast_expression "(int *)(iVar6 + 0x1b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1b0)" ( (binary_expression "iVar6 + 0x1b0" identifier + number_literal) )))) == number_literal)) ;) (if_statement "if ((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))) {\n    (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5);\n    uVar5 = *(uint *)(iVar6 + 0xc);\n    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n      iVar4 = *param_4;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return uVar5;\n    }\n    *(undefined4 *)(iVar6 + 0xc) = 0;\n    *(undefined4 *)(iVar6 + 8) = 0;\n    return uVar5;\n  }" if (parenthesized_expression "((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7))))" ( (binary_expression "(iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))" (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) && (parenthesized_expression "((iVar1 != 0 || (uVar5 <= uVar7)))" ( (parenthesized_expression "(iVar1 != 0 || (uVar5 <= uVar7))" ( (binary_expression "iVar1 != 0 || (uVar5 <= uVar7)" (binary_expression "iVar1 != 0" identifier != number_literal) || (parenthesized_expression "(uVar5 <= uVar7)" ( (binary_expression "uVar5 <= uVar7" identifier <= identifier) ))) )) ))) )) (compound_statement "{\n    (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5);\n    uVar5 = *(uint *)(iVar6 + 0xc);\n    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n      iVar4 = *param_4;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return uVar5;\n    }\n    *(undefined4 *)(iVar6 + 0xc) = 0;\n    *(undefined4 *)(iVar6 + 8) = 0;\n    return uVar5;\n  }" { (expression_statement "(*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5);" (call_expression "(*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_000a6eec)" ( (pointer_expression "*(code *)PTR_memcpy_000a6eec" * (cast_expression "(code *)PTR_memcpy_000a6eec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,uVar2,uVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar5 = *(uint *)(iVar6 + 0xc);" (assignment_expression "uVar5 = *(uint *)(iVar6 + 0xc)" identifier = (pointer_expression "*(uint *)(iVar6 + 0xc)" * (cast_expression "(uint *)(iVar6 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n      iVar4 = *param_4;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return uVar5;\n    }" if (parenthesized_expression "(*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0)" ( (binary_expression "*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0" (binary_expression "*(int *)(iVar6 + 0x1a8) != 0" (pointer_expression "*(int *)(iVar6 + 0x1a8)" * (cast_expression "(int *)(iVar6 + 0x1a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1a8)" ( (binary_expression "iVar6 + 0x1a8" identifier + number_literal) )))) != number_literal) || (binary_expression "*(int *)(iVar6 + 0x1ac) != 0" (pointer_expression "*(int *)(iVar6 + 0x1ac)" * (cast_expression "(int *)(iVar6 + 0x1ac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1ac)" ( (binary_expression "iVar6 + 0x1ac" identifier + number_literal) )))) != number_literal)) )) (compound_statement "{\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n      iVar4 = *param_4;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return uVar5;\n    }" { (expression_statement "iVar1 = *(int *)(iVar6 + 0x1b0);" (assignment_expression "iVar1 = *(int *)(iVar6 + 0x1b0)" identifier = (pointer_expression "*(int *)(iVar6 + 0x1b0)" * (cast_expression "(int *)(iVar6 + 0x1b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1b0)" ( (binary_expression "iVar6 + 0x1b0" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *param_4;" (assignment_expression "iVar4 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "uVar2 = *(undefined4 *)(iVar6 + 0x19c);" (assignment_expression "uVar2 = *(undefined4 *)(iVar6 + 0x19c)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0x19c)" * (cast_expression "(undefined4 *)(iVar6 + 0x19c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x19c)" ( (binary_expression "iVar6 + 0x19c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);" (assignment_expression "*(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8)" (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = (pointer_expression "*(int *)(iVar6 + 0x1a8)" * (cast_expression "(int *)(iVar6 + 0x1a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1a8)" ( (binary_expression "iVar6 + 0x1a8" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);" (assignment_expression "*(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac)" (pointer_expression "*(int *)(iVar6 + 0xc)" * (cast_expression "(int *)(iVar6 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) )))) = (pointer_expression "*(int *)(iVar6 + 0x1ac)" * (cast_expression "(int *)(iVar6 + 0x1ac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1ac)" ( (binary_expression "iVar6 + 0x1ac" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);" (assignment_expression "*(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0)" (pointer_expression "*(undefined4 *)(iVar6 + 0x10)" * (cast_expression "(undefined4 *)(iVar6 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar6 + 0x1a0)" * (cast_expression "(undefined4 *)(iVar6 + 0x1a0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1a0)" ( (binary_expression "iVar6 + 0x1a0" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);" (assignment_expression "*(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198)" (pointer_expression "*(undefined4 *)(iVar4 + 0xf10)" * (cast_expression "(undefined4 *)(iVar4 + 0xf10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xf10)" ( (binary_expression "iVar4 + 0xf10" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar6 + 0x198)" * (cast_expression "(undefined4 *)(iVar6 + 0x198)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x198)" ( (binary_expression "iVar6 + 0x198" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar4 + 0xf14) = uVar2;" (assignment_expression "*(undefined4 *)(iVar4 + 0xf14) = uVar2" (pointer_expression "*(undefined4 *)(iVar4 + 0xf14)" * (cast_expression "(undefined4 *)(iVar4 + 0xf14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xf14)" ( (binary_expression "iVar4 + 0xf14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x1a8) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x1a8) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x1a8)" * (cast_expression "(undefined4 *)(iVar6 + 0x1a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1a8)" ( (binary_expression "iVar6 + 0x1a8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(iVar6 + 0x1b0) = iVar1 + 1;" (assignment_expression "*(int *)(iVar6 + 0x1b0) = iVar1 + 1" (pointer_expression "*(int *)(iVar6 + 0x1b0)" * (cast_expression "(int *)(iVar6 + 0x1b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1b0)" ( (binary_expression "iVar6 + 0x1b0" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x1ac) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x1ac) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x1ac)" * (cast_expression "(undefined4 *)(iVar6 + 0x1ac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1ac)" ( (binary_expression "iVar6 + 0x1ac" identifier + number_literal) )))) = number_literal) ;) (return_statement "return uVar5;" return identifier ;) })) (expression_statement "*(undefined4 *)(iVar6 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0xc)" * (cast_expression "(undefined4 *)(iVar6 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar6 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 8)" * (cast_expression "(undefined4 *)(iVar6 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return uVar5;" return identifier ;) })) (expression_statement "(*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar7);" (call_expression "(*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar7)" (parenthesized_expression "(*(code *)PTR_memcpy_000a6eec)" ( (pointer_expression "*(code *)PTR_memcpy_000a6eec" * (cast_expression "(code *)PTR_memcpy_000a6eec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,uVar2,uVar7)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar5 = *(uint *)(iVar6 + 0xc);" (assignment_expression "uVar5 = *(uint *)(iVar6 + 0xc)" identifier = (pointer_expression "*(uint *)(iVar6 + 0xc)" * (cast_expression "(uint *)(iVar6 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = uVar5 - uVar7;" (assignment_expression "uVar3 = uVar5 - uVar7" identifier = (binary_expression "uVar5 - uVar7" identifier - identifier)) ;) (expression_statement "*(uint *)(iVar6 + 0xc) = uVar3;" (assignment_expression "*(uint *)(iVar6 + 0xc) = uVar3" (pointer_expression "*(uint *)(iVar6 + 0xc)" * (cast_expression "(uint *)(iVar6 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7;" (assignment_expression "*(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7" (pointer_expression "*(uint *)(iVar6 + 0x10)" * (cast_expression "(uint *)(iVar6 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar6 + 0x10) + uVar7" (pointer_expression "*(int *)(iVar6 + 0x10)" * (cast_expression "(int *)(iVar6 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) + identifier)) ;) (expression_statement "*(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3);" (assignment_expression "*(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3)" (pointer_expression "*(uint *)(iVar6 + 8)" * (cast_expression "(uint *)(iVar6 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3)" (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) - (call_expression "(uint)(uVar5 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar5 < uVar3)" ( (binary_expression "uVar5 < uVar3" identifier < identifier) ))))) ;) (return_statement "return uVar7;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression IDENT == LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (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 (pointer_expression * IDENT) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (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 ( IDENT , IDENT , 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 (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) || (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (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) )))) = (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) )))) = (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) )))) = (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) )))) = (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 (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 IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_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) )))) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (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 (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)) ;) (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) )))) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))))) ;) (return_statement return IDENT ;) })))
(function_definition "uint FUN_0001f844(undefined4 param_1,int param_2,int param_3,int *param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  \n  iVar6 = *(int *)(*param_4 + 0x154);\n  iVar1 = *(int *)(iVar6 + 8);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar7 = param_2 * param_3;\n  if (iVar1 == 0 && uVar5 == 0) {\n    return 0;\n  }\n  uVar2 = *(undefined4 *)(iVar6 + 0x10);\n  *(bool *)(*param_4 + 0x153) = *(int *)(iVar6 + 0x1b0) == 1;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))) {\n    (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5);\n    uVar5 = *(uint *)(iVar6 + 0xc);\n    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n      iVar4 = *param_4;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return uVar5;\n    }\n    *(undefined4 *)(iVar6 + 0xc) = 0;\n    *(undefined4 *)(iVar6 + 8) = 0;\n    return uVar5;\n  }\n  (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar7);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar3 = uVar5 - uVar7;\n  *(uint *)(iVar6 + 0xc) = uVar3;\n  *(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7;\n  *(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3);\n  return uVar7;\n}" (type_identifier "uint") (function_declarator "FUN_0001f844(undefined4 param_1,int param_2,int param_3,int *param_4)" (identifier "FUN_0001f844") (parameter_list "(undefined4 param_1,int param_2,int param_3,int *param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  \n  iVar6 = *(int *)(*param_4 + 0x154);\n  iVar1 = *(int *)(iVar6 + 8);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar7 = param_2 * param_3;\n  if (iVar1 == 0 && uVar5 == 0) {\n    return 0;\n  }\n  uVar2 = *(undefined4 *)(iVar6 + 0x10);\n  *(bool *)(*param_4 + 0x153) = *(int *)(iVar6 + 0x1b0) == 1;\n  if ((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))) {\n    (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5);\n    uVar5 = *(uint *)(iVar6 + 0xc);\n    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n      iVar4 = *param_4;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return uVar5;\n    }\n    *(undefined4 *)(iVar6 + 0xc) = 0;\n    *(undefined4 *)(iVar6 + 8) = 0;\n    return uVar5;\n  }\n  (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar7);\n  uVar5 = *(uint *)(iVar6 + 0xc);\n  uVar3 = uVar5 - uVar7;\n  *(uint *)(iVar6 + 0xc) = uVar3;\n  *(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7;\n  *(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3);\n  return uVar7;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (expression_statement "iVar6 = *(int *)(*param_4 + 0x154);" (assignment_expression "iVar6 = *(int *)(*param_4 + 0x154)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(*param_4 + 0x154)" (* "*") (cast_expression "(int *)(*param_4 + 0x154)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_4 + 0x154)" (( "(") (binary_expression "*param_4 + 0x154" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (number_literal "0x154")) () ")"))))) (; ";")) (expression_statement "iVar1 = *(int *)(iVar6 + 8);" (assignment_expression "iVar1 = *(int *)(iVar6 + 8)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar6 + 8)" (* "*") (cast_expression "(int *)(iVar6 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "uVar5 = *(uint *)(iVar6 + 0xc);" (assignment_expression "uVar5 = *(uint *)(iVar6 + 0xc)" (identifier "uVar5") (= "=") (pointer_expression "*(uint *)(iVar6 + 0xc)" (* "*") (cast_expression "(uint *)(iVar6 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0xc)" (( "(") (binary_expression "iVar6 + 0xc" (identifier "iVar6") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "uVar7 = param_2 * param_3;" (assignment_expression "uVar7 = param_2 * param_3" (identifier "uVar7") (= "=") (binary_expression "param_2 * param_3" (identifier "param_2") (* "*") (identifier "param_3"))) (; ";")) (if_statement "if (iVar1 == 0 && uVar5 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0 && uVar5 == 0)" (( "(") (binary_expression "iVar1 == 0 && uVar5 == 0" (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) (&& "&&") (binary_expression "uVar5 == 0" (identifier "uVar5") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar2 = *(undefined4 *)(iVar6 + 0x10);" (assignment_expression "uVar2 = *(undefined4 *)(iVar6 + 0x10)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(iVar6 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x10)" (( "(") (binary_expression "iVar6 + 0x10" (identifier "iVar6") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "*(bool *)(*param_4 + 0x153) = *(int *)(iVar6 + 0x1b0) == 1;" (assignment_expression "*(bool *)(*param_4 + 0x153) = *(int *)(iVar6 + 0x1b0) == 1" (pointer_expression "*(bool *)(*param_4 + 0x153)" (* "*") (cast_expression "(bool *)(*param_4 + 0x153)" (( "(") (type_descriptor "bool *" (primitive_type "bool") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_4 + 0x153)" (( "(") (binary_expression "*param_4 + 0x153" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (number_literal "0x153")) () ")")))) (= "=") (binary_expression "*(int *)(iVar6 + 0x1b0) == 1" (pointer_expression "*(int *)(iVar6 + 0x1b0)" (* "*") (cast_expression "(int *)(iVar6 + 0x1b0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x1b0)" (( "(") (binary_expression "iVar6 + 0x1b0" (identifier "iVar6") (+ "+") (number_literal "0x1b0")) () ")")))) (== "==") (number_literal "1"))) (; ";")) (if_statement "if ((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))) {\n    (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5);\n    uVar5 = *(uint *)(iVar6 + 0xc);\n    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n      iVar4 = *param_4;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return uVar5;\n    }\n    *(undefined4 *)(iVar6 + 0xc) = 0;\n    *(undefined4 *)(iVar6 + 8) = 0;\n    return uVar5;\n  }" (if "if") (parenthesized_expression "((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7))))" (( "(") (binary_expression "(iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))" (parenthesized_expression "(iVar1 < 1)" (( "(") (binary_expression "iVar1 < 1" (identifier "iVar1") (< "<") (number_literal "1")) () ")")) (&& "&&") (parenthesized_expression "((iVar1 != 0 || (uVar5 <= uVar7)))" (( "(") (parenthesized_expression "(iVar1 != 0 || (uVar5 <= uVar7))" (( "(") (binary_expression "iVar1 != 0 || (uVar5 <= uVar7)" (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) (|| "||") (parenthesized_expression "(uVar5 <= uVar7)" (( "(") (binary_expression "uVar5 <= uVar7" (identifier "uVar5") (<= "<=") (identifier "uVar7")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5);\n    uVar5 = *(uint *)(iVar6 + 0xc);\n    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n      iVar4 = *param_4;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return uVar5;\n    }\n    *(undefined4 *)(iVar6 + 0xc) = 0;\n    *(undefined4 *)(iVar6 + 8) = 0;\n    return uVar5;\n  }" ({ "{") (expression_statement "(*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5);" (call_expression "(*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_000a6eec)" (( "(") (pointer_expression "*(code *)PTR_memcpy_000a6eec" (* "*") (cast_expression "(code *)PTR_memcpy_000a6eec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_000a6eec"))) () ")")) (argument_list "(param_1,uVar2,uVar5)" (( "(") (identifier "param_1") (, ",") (identifier "uVar2") (, ",") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "uVar5 = *(uint *)(iVar6 + 0xc);" (assignment_expression "uVar5 = *(uint *)(iVar6 + 0xc)" (identifier "uVar5") (= "=") (pointer_expression "*(uint *)(iVar6 + 0xc)" (* "*") (cast_expression "(uint *)(iVar6 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0xc)" (( "(") (binary_expression "iVar6 + 0xc" (identifier "iVar6") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n      iVar4 = *param_4;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return uVar5;\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0)" (( "(") (binary_expression "*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0" (binary_expression "*(int *)(iVar6 + 0x1a8) != 0" (pointer_expression "*(int *)(iVar6 + 0x1a8)" (* "*") (cast_expression "(int *)(iVar6 + 0x1a8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x1a8)" (( "(") (binary_expression "iVar6 + 0x1a8" (identifier "iVar6") (+ "+") (number_literal "0x1a8")) () ")")))) (!= "!=") (number_literal "0")) (|| "||") (binary_expression "*(int *)(iVar6 + 0x1ac) != 0" (pointer_expression "*(int *)(iVar6 + 0x1ac)" (* "*") (cast_expression "(int *)(iVar6 + 0x1ac)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x1ac)" (( "(") (binary_expression "iVar6 + 0x1ac" (identifier "iVar6") (+ "+") (number_literal "0x1ac")) () ")")))) (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n      iVar1 = *(int *)(iVar6 + 0x1b0);\n      iVar4 = *param_4;\n      uVar2 = *(undefined4 *)(iVar6 + 0x19c);\n      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);\n      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);\n      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);\n      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);\n      *(undefined4 *)(iVar4 + 0xf14) = uVar2;\n      *(undefined4 *)(iVar6 + 0x1a8) = 0;\n      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;\n      *(undefined4 *)(iVar6 + 0x1ac) = 0;\n      return uVar5;\n    }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar6 + 0x1b0);" (assignment_expression "iVar1 = *(int *)(iVar6 + 0x1b0)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar6 + 0x1b0)" (* "*") (cast_expression "(int *)(iVar6 + 0x1b0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x1b0)" (( "(") (binary_expression "iVar6 + 0x1b0" (identifier "iVar6") (+ "+") (number_literal "0x1b0")) () ")"))))) (; ";")) (expression_statement "iVar4 = *param_4;" (assignment_expression "iVar4 = *param_4" (identifier "iVar4") (= "=") (pointer_expression "*param_4" (* "*") (identifier "param_4"))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(iVar6 + 0x19c);" (assignment_expression "uVar2 = *(undefined4 *)(iVar6 + 0x19c)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(iVar6 + 0x19c)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x19c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x19c)" (( "(") (binary_expression "iVar6 + 0x19c" (identifier "iVar6") (+ "+") (number_literal "0x19c")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);" (assignment_expression "*(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8)" (pointer_expression "*(int *)(iVar6 + 8)" (* "*") (cast_expression "(int *)(iVar6 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")")))) (= "=") (pointer_expression "*(int *)(iVar6 + 0x1a8)" (* "*") (cast_expression "(int *)(iVar6 + 0x1a8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x1a8)" (( "(") (binary_expression "iVar6 + 0x1a8" (identifier "iVar6") (+ "+") (number_literal "0x1a8")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);" (assignment_expression "*(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac)" (pointer_expression "*(int *)(iVar6 + 0xc)" (* "*") (cast_expression "(int *)(iVar6 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0xc)" (( "(") (binary_expression "iVar6 + 0xc" (identifier "iVar6") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (pointer_expression "*(int *)(iVar6 + 0x1ac)" (* "*") (cast_expression "(int *)(iVar6 + 0x1ac)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x1ac)" (( "(") (binary_expression "iVar6 + 0x1ac" (identifier "iVar6") (+ "+") (number_literal "0x1ac")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);" (assignment_expression "*(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0)" (pointer_expression "*(undefined4 *)(iVar6 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x10)" (( "(") (binary_expression "iVar6 + 0x10" (identifier "iVar6") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(iVar6 + 0x1a0)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x1a0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x1a0)" (( "(") (binary_expression "iVar6 + 0x1a0" (identifier "iVar6") (+ "+") (number_literal "0x1a0")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);" (assignment_expression "*(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198)" (pointer_expression "*(undefined4 *)(iVar4 + 0xf10)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0xf10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0xf10)" (( "(") (binary_expression "iVar4 + 0xf10" (identifier "iVar4") (+ "+") (number_literal "0xf10")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(iVar6 + 0x198)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x198)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x198)" (( "(") (binary_expression "iVar6 + 0x198" (identifier "iVar6") (+ "+") (number_literal "0x198")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 0xf14) = uVar2;" (assignment_expression "*(undefined4 *)(iVar4 + 0xf14) = uVar2" (pointer_expression "*(undefined4 *)(iVar4 + 0xf14)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0xf14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0xf14)" (( "(") (binary_expression "iVar4 + 0xf14" (identifier "iVar4") (+ "+") (number_literal "0xf14")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(undefined4 *)(iVar6 + 0x1a8) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x1a8) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x1a8)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x1a8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x1a8)" (( "(") (binary_expression "iVar6 + 0x1a8" (identifier "iVar6") (+ "+") (number_literal "0x1a8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(iVar6 + 0x1b0) = iVar1 + 1;" (assignment_expression "*(int *)(iVar6 + 0x1b0) = iVar1 + 1" (pointer_expression "*(int *)(iVar6 + 0x1b0)" (* "*") (cast_expression "(int *)(iVar6 + 0x1b0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x1b0)" (( "(") (binary_expression "iVar6 + 0x1b0" (identifier "iVar6") (+ "+") (number_literal "0x1b0")) () ")")))) (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined4 *)(iVar6 + 0x1ac) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x1ac) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x1ac)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x1ac)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x1ac)" (( "(") (binary_expression "iVar6 + 0x1ac" (identifier "iVar6") (+ "+") (number_literal "0x1ac")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(iVar6 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0xc)" (( "(") (binary_expression "iVar6 + 0xc" (identifier "iVar6") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar6 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar7);" (call_expression "(*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar7)" (parenthesized_expression "(*(code *)PTR_memcpy_000a6eec)" (( "(") (pointer_expression "*(code *)PTR_memcpy_000a6eec" (* "*") (cast_expression "(code *)PTR_memcpy_000a6eec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_000a6eec"))) () ")")) (argument_list "(param_1,uVar2,uVar7)" (( "(") (identifier "param_1") (, ",") (identifier "uVar2") (, ",") (identifier "uVar7") () ")"))) (; ";")) (expression_statement "uVar5 = *(uint *)(iVar6 + 0xc);" (assignment_expression "uVar5 = *(uint *)(iVar6 + 0xc)" (identifier "uVar5") (= "=") (pointer_expression "*(uint *)(iVar6 + 0xc)" (* "*") (cast_expression "(uint *)(iVar6 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0xc)" (( "(") (binary_expression "iVar6 + 0xc" (identifier "iVar6") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "uVar3 = uVar5 - uVar7;" (assignment_expression "uVar3 = uVar5 - uVar7" (identifier "uVar3") (= "=") (binary_expression "uVar5 - uVar7" (identifier "uVar5") (- "-") (identifier "uVar7"))) (; ";")) (expression_statement "*(uint *)(iVar6 + 0xc) = uVar3;" (assignment_expression "*(uint *)(iVar6 + 0xc) = uVar3" (pointer_expression "*(uint *)(iVar6 + 0xc)" (* "*") (cast_expression "(uint *)(iVar6 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0xc)" (( "(") (binary_expression "iVar6 + 0xc" (identifier "iVar6") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7;" (assignment_expression "*(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7" (pointer_expression "*(uint *)(iVar6 + 0x10)" (* "*") (cast_expression "(uint *)(iVar6 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x10)" (( "(") (binary_expression "iVar6 + 0x10" (identifier "iVar6") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (binary_expression "*(int *)(iVar6 + 0x10) + uVar7" (pointer_expression "*(int *)(iVar6 + 0x10)" (* "*") (cast_expression "(int *)(iVar6 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x10)" (( "(") (binary_expression "iVar6 + 0x10" (identifier "iVar6") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (identifier "uVar7"))) (; ";")) (expression_statement "*(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3);" (assignment_expression "*(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3)" (pointer_expression "*(uint *)(iVar6 + 8)" (* "*") (cast_expression "(uint *)(iVar6 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "*(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3)" (pointer_expression "*(int *)(iVar6 + 8)" (* "*") (cast_expression "(int *)(iVar6 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")")))) (- "-") (call_expression "(uint)(uVar5 < uVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar5 < uVar3)" (( "(") (binary_expression "uVar5 < uVar3" (identifier "uVar5") (< "<") (identifier "uVar3")) () ")"))))) (; ";")) (return_statement "return uVar7;" (return "return") (identifier "uVar7") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) 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: (pointer_expression argument: (identifier)) right: (number_literal))))))) (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))))))) (expression_statement (assignment_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))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_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))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (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: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (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 (identifier) (identifier) (identifier)))) (expression_statement (assignment_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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (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: (number_literal)))) consequence: (compound_statement (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))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_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))))))) (expression_statement (assignment_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: (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: (primitive_type) 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: (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))))))) (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: (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))))))) (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: (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) 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: (number_literal))) (return_statement (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: (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: (number_literal))) (return_statement (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_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))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) 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: (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)))) (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: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))))) (return_statement (identifier)))))

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

{
  int iVar1;
  undefined4 uVar2;
  uint uVar3;
  int iVar4;
  uint uVar5;
  int iVar6;
  uint uVar7;
  
  iVar6 = *(int *)(*param_4 + 0x154);
  iVar1 = *(int *)(iVar6 + 8);
  uVar5 = *(uint *)(iVar6 + 0xc);
  uVar7 = param_2 * param_3;
  if (iVar1 == 0 && uVar5 == 0) {
    return 0;
  }
  uVar2 = *(undefined4 *)(iVar6 + 0x10);
  *(bool *)(*param_4 + 0x153) = *(int *)(iVar6 + 0x1b0) == 1;
  if ((iVar1 < 1) && ((iVar1 != 0 || (uVar5 <= uVar7)))) {
    (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar5);
    uVar5 = *(uint *)(iVar6 + 0xc);
    if (*(int *)(iVar6 + 0x1a8) != 0 || *(int *)(iVar6 + 0x1ac) != 0) {
      iVar1 = *(int *)(iVar6 + 0x1b0);
      iVar4 = *param_4;
      uVar2 = *(undefined4 *)(iVar6 + 0x19c);
      *(int *)(iVar6 + 8) = *(int *)(iVar6 + 0x1a8);
      *(int *)(iVar6 + 0xc) = *(int *)(iVar6 + 0x1ac);
      *(undefined4 *)(iVar6 + 0x10) = *(undefined4 *)(iVar6 + 0x1a0);
      *(undefined4 *)(iVar4 + 0xf10) = *(undefined4 *)(iVar6 + 0x198);
      *(undefined4 *)(iVar4 + 0xf14) = uVar2;
      *(undefined4 *)(iVar6 + 0x1a8) = 0;
      *(int *)(iVar6 + 0x1b0) = iVar1 + 1;
      *(undefined4 *)(iVar6 + 0x1ac) = 0;
      return uVar5;
    }
    *(undefined4 *)(iVar6 + 0xc) = 0;
    *(undefined4 *)(iVar6 + 8) = 0;
    return uVar5;
  }
  (*(code *)PTR_memcpy_000a6eec)(param_1,uVar2,uVar7);
  uVar5 = *(uint *)(iVar6 + 0xc);
  uVar3 = uVar5 - uVar7;
  *(uint *)(iVar6 + 0xc) = uVar3;
  *(uint *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x10) + uVar7;
  *(uint *)(iVar6 + 8) = *(int *)(iVar6 + 8) - (uint)(uVar5 < uVar3);
  return uVar7;
}

