
void d_growable_string_callback_adapter(undefined4 param_1,int param_2,int *param_3)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  uint uVar4;
  
  iVar3 = param_3[3];
  uVar4 = param_3[2];
  uVar1 = param_2 + 1 + param_3[1];
  if (uVar4 < uVar1) {
    if (iVar3 != 0) {
      return;
    }
    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {
      do {
        uVar4 = uVar4 << 1;
      } while (uVar4 < uVar1);
    }
    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);
    if (iVar2 == 0) {
      (*(code *)PTR_free_00436800)(*param_3);
      *param_3 = 0;
      param_3[1] = 0;
      param_3[2] = 0;
      param_3[3] = 1;
      return;
    }
    iVar3 = param_3[3];
    *param_3 = iVar2;
    param_3[2] = uVar4;
  }
  if (iVar3 == 0) {
    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);
    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;
    param_3[1] = param_3[1] + param_2;
  }
  return;
}



void FUN_003600dc(undefined4 param_1,int param_2,int *param_3)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  uint uVar4;
  
  iVar3 = param_3[3];
  uVar4 = param_3[2];
  uVar1 = param_2 + 1 + param_3[1];
  if (uVar4 < uVar1) {
    if (iVar3 != 0) {
      return;
    }
    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {
      do {
        uVar4 = uVar4 << 1;
      } while (uVar4 < uVar1);
    }
    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);
    if (iVar2 == 0) {
      (*(code *)PTR_free_00436800)(*param_3);
      *param_3 = 0;
      param_3[1] = 0;
      param_3[2] = 0;
      param_3[3] = 1;
      return;
    }
    iVar3 = param_3[3];
    *param_3 = iVar2;
    param_3[2] = uVar4;
  }
  if (iVar3 == 0) {
    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);
    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;
    param_3[1] = param_3[1] + param_2;
  }
  return;
}


lui gp,0xe
addiu gp,gp,-0x5f0c
addu gp,gp,t9
addiu sp,sp,-0x30
lw v1,0xc(a2)
sw s2,0x24(sp)
or s2,a1,zero
sw s1,0x20(sp)
addiu v0,s2,0x1
lw a1,0x4(a2)
lw s1,0x8(a2)
sw s3,0x28(sp)
or s3,a0,zero
addu v0,v0,a1
sw gp,0x10(sp)
sw s0,0x1c(sp)
or s0,a2,zero
sltu a0,s1,v0
bne a0,zero,0x00360188
_sw ra,0x2c(sp)
bne v1,zero,0x0036016c
_or a2,s2,zero
lw a0,0x0(s0)
lw v0,0x4(s0)
or a1,s3,zero
lw t9,-0x3a48(gp)
jalr t9
_addu a0,a0,v0
lw v0,0x0(s0)
lw v1,0x4(s0)
addu v0,v0,s2
addu v0,v0,v1
sb zero,0x0(v0)
lw v0,0x4(s0)
addu s2,v0,s2
sw s2,0x4(s0)
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
bne v1,zero,0x00360170
_lw ra,0x2c(sp)
beq s1,zero,0x003601cc
_sltiu v1,v0,0x3
sll s1,s1,0x1
sltu v1,s1,v0
bne v1,zero,0x00360198
_lw t9,-0x391c(gp)
or a1,s1,zero
jalr t9
_lw a0,0x0(s0)
beq v0,zero,0x003601dc
_lw gp,0x10(sp)
lw v1,0xc(s0)
sw v0,0x0(s0)
b 0x0036012c
_sw s1,0x8(s0)
beq v1,zero,0x00360198
_li s1,0x2
b 0x003601a8
_lw t9,-0x391c(gp)
lw t9,-0x39d0(gp)
jalr t9
_lw a0,0x0(s0)
li v0,0x1
sw zero,0x0(s0)
sw zero,0x4(s0)
sw zero,0x8(s0)
b 0x0036016c
_sw v0,0xc(s0)
(translation_unit "void FUN_003600dc(undefined4 param_1,int param_2,int *param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  \n  iVar3 = param_3[3];\n  uVar4 = param_3[2];\n  uVar1 = param_2 + 1 + param_3[1];\n  if (uVar4 < uVar1) {\n    if (iVar3 != 0) {\n      return;\n    }\n    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }\n    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);\n    if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }\n    iVar3 = param_3[3];\n    *param_3 = iVar2;\n    param_3[2] = uVar4;\n  }\n  if (iVar3 == 0) {\n    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);\n    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;\n    param_3[1] = param_3[1] + param_2;\n  }\n  return;\n}\n\n" (function_definition "void FUN_003600dc(undefined4 param_1,int param_2,int *param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  \n  iVar3 = param_3[3];\n  uVar4 = param_3[2];\n  uVar1 = param_2 + 1 + param_3[1];\n  if (uVar4 < uVar1) {\n    if (iVar3 != 0) {\n      return;\n    }\n    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }\n    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);\n    if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }\n    iVar3 = param_3[3];\n    *param_3 = iVar2;\n    param_3[2] = uVar4;\n  }\n  if (iVar3 == 0) {\n    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);\n    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;\n    param_3[1] = param_3[1] + param_2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_003600dc(undefined4 param_1,int param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  \n  iVar3 = param_3[3];\n  uVar4 = param_3[2];\n  uVar1 = param_2 + 1 + param_3[1];\n  if (uVar4 < uVar1) {\n    if (iVar3 != 0) {\n      return;\n    }\n    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }\n    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);\n    if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }\n    iVar3 = param_3[3];\n    *param_3 = iVar2;\n    param_3[2] = uVar4;\n  }\n  if (iVar3 == 0) {\n    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);\n    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;\n    param_3[1] = param_3[1] + param_2;\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "iVar3 = param_3[3];" (assignment_expression "iVar3 = param_3[3]" identifier = (subscript_expression "param_3[3]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = param_3[2];" (assignment_expression "uVar4 = param_3[2]" identifier = (subscript_expression "param_3[2]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = param_2 + 1 + param_3[1];" (assignment_expression "uVar1 = param_2 + 1 + param_3[1]" identifier = (binary_expression "param_2 + 1 + param_3[1]" (binary_expression "param_2 + 1" identifier + number_literal) + (subscript_expression "param_3[1]" identifier [ number_literal ]))) ;) (if_statement "if (uVar4 < uVar1) {\n    if (iVar3 != 0) {\n      return;\n    }\n    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }\n    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);\n    if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }\n    iVar3 = param_3[3];\n    *param_3 = iVar2;\n    param_3[2] = uVar4;\n  }" if (parenthesized_expression "(uVar4 < uVar1)" ( (binary_expression "uVar4 < uVar1" identifier < identifier) )) (compound_statement "{\n    if (iVar3 != 0) {\n      return;\n    }\n    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }\n    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);\n    if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }\n    iVar3 = param_3[3];\n    *param_3 = iVar2;\n    param_3[2] = uVar4;\n  }" { (if_statement "if (iVar3 != 0) {\n      return;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (if_statement "if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }" if (parenthesized_expression "((uVar4 != 0) || (uVar4 = 2, 2 < uVar1))" ( (binary_expression "(uVar4 != 0) || (uVar4 = 2, 2 < uVar1)" (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) || (parenthesized_expression "(uVar4 = 2, 2 < uVar1)" ( (comma_expression "uVar4 = 2, 2 < uVar1" (assignment_expression "uVar4 = 2" identifier = number_literal) , (binary_expression "2 < uVar1" number_literal < identifier)) ))) )) (compound_statement "{\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }" { (do_statement "do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);" do (compound_statement "{\n        uVar4 = uVar4 << 1;\n      }" { (expression_statement "uVar4 = uVar4 << 1;" (assignment_expression "uVar4 = uVar4 << 1" identifier = (binary_expression "uVar4 << 1" identifier << number_literal)) ;) }) while (parenthesized_expression "(uVar4 < uVar1)" ( (binary_expression "uVar4 < uVar1" identifier < identifier) )) ;) })) (expression_statement "iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);" (assignment_expression "iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4)" identifier = (call_expression "(*(code *)PTR_realloc_004368b4)(*param_3,uVar4)" (parenthesized_expression "(*(code *)PTR_realloc_004368b4)" ( (pointer_expression "*(code *)PTR_realloc_004368b4" * (cast_expression "(code *)PTR_realloc_004368b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_3,uVar4)" ( (pointer_expression "*param_3" * identifier) , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }" { (expression_statement "(*(code *)PTR_free_00436800)(*param_3);" (call_expression "(*(code *)PTR_free_00436800)(*param_3)" (parenthesized_expression "(*(code *)PTR_free_00436800)" ( (pointer_expression "*(code *)PTR_free_00436800" * (cast_expression "(code *)PTR_free_00436800" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[2] = 0;" (assignment_expression "param_3[2] = 0" (subscript_expression "param_3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[3] = 1;" (assignment_expression "param_3[3] = 1" (subscript_expression "param_3[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "iVar3 = param_3[3];" (assignment_expression "iVar3 = param_3[3]" identifier = (subscript_expression "param_3[3]" identifier [ number_literal ])) ;) (expression_statement "*param_3 = iVar2;" (assignment_expression "*param_3 = iVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "param_3[2] = uVar4;" (assignment_expression "param_3[2] = uVar4" (subscript_expression "param_3[2]" identifier [ number_literal ]) = identifier) ;) })) (if_statement "if (iVar3 == 0) {\n    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);\n    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;\n    param_3[1] = param_3[1] + param_2;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);\n    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;\n    param_3[1] = param_3[1] + param_2;\n  }" { (expression_statement "(*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);" (call_expression "(*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" ( (pointer_expression "*(code *)PTR_memcpy_00436788" * (cast_expression "(code *)PTR_memcpy_00436788" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_3 + param_3[1],param_1,param_2)" ( (binary_expression "*param_3 + param_3[1]" (pointer_expression "*param_3" * identifier) + (subscript_expression "param_3[1]" identifier [ number_literal ])) , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;" (assignment_expression "*(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0" (pointer_expression "*(undefined1 *)(*param_3 + param_2 + param_3[1])" * (cast_expression "(undefined1 *)(*param_3 + param_2 + param_3[1])" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_3 + param_2 + param_3[1])" ( (binary_expression "*param_3 + param_2 + param_3[1]" (binary_expression "*param_3 + param_2" (pointer_expression "*param_3" * identifier) + identifier) + (subscript_expression "param_3[1]" identifier [ number_literal ])) )))) = number_literal) ;) (expression_statement "param_3[1] = param_3[1] + param_2;" (assignment_expression "param_3[1] = param_3[1] + param_2" (subscript_expression "param_3[1]" identifier [ number_literal ]) = (binary_expression "param_3[1] + param_2" (subscript_expression "param_3[1]" identifier [ number_literal ]) + identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void d_growable_string_callback_adapter(undefined4 param_1,int param_2,int *param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  \n  iVar3 = param_3[3];\n  uVar4 = param_3[2];\n  uVar1 = param_2 + 1 + param_3[1];\n  if (uVar4 < uVar1) {\n    if (iVar3 != 0) {\n      return;\n    }\n    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }\n    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);\n    if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }\n    iVar3 = param_3[3];\n    *param_3 = iVar2;\n    param_3[2] = uVar4;\n  }\n  if (iVar3 == 0) {\n    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);\n    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;\n    param_3[1] = param_3[1] + param_2;\n  }\n  return;\n}\n\n" (function_definition "void d_growable_string_callback_adapter(undefined4 param_1,int param_2,int *param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  \n  iVar3 = param_3[3];\n  uVar4 = param_3[2];\n  uVar1 = param_2 + 1 + param_3[1];\n  if (uVar4 < uVar1) {\n    if (iVar3 != 0) {\n      return;\n    }\n    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }\n    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);\n    if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }\n    iVar3 = param_3[3];\n    *param_3 = iVar2;\n    param_3[2] = uVar4;\n  }\n  if (iVar3 == 0) {\n    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);\n    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;\n    param_3[1] = param_3[1] + param_2;\n  }\n  return;\n}" primitive_type (function_declarator "d_growable_string_callback_adapter(undefined4 param_1,int param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  \n  iVar3 = param_3[3];\n  uVar4 = param_3[2];\n  uVar1 = param_2 + 1 + param_3[1];\n  if (uVar4 < uVar1) {\n    if (iVar3 != 0) {\n      return;\n    }\n    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }\n    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);\n    if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }\n    iVar3 = param_3[3];\n    *param_3 = iVar2;\n    param_3[2] = uVar4;\n  }\n  if (iVar3 == 0) {\n    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);\n    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;\n    param_3[1] = param_3[1] + param_2;\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "iVar3 = param_3[3];" (assignment_expression "iVar3 = param_3[3]" identifier = (subscript_expression "param_3[3]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = param_3[2];" (assignment_expression "uVar4 = param_3[2]" identifier = (subscript_expression "param_3[2]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = param_2 + 1 + param_3[1];" (assignment_expression "uVar1 = param_2 + 1 + param_3[1]" identifier = (binary_expression "param_2 + 1 + param_3[1]" (binary_expression "param_2 + 1" identifier + number_literal) + (subscript_expression "param_3[1]" identifier [ number_literal ]))) ;) (if_statement "if (uVar4 < uVar1) {\n    if (iVar3 != 0) {\n      return;\n    }\n    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }\n    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);\n    if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }\n    iVar3 = param_3[3];\n    *param_3 = iVar2;\n    param_3[2] = uVar4;\n  }" if (parenthesized_expression "(uVar4 < uVar1)" ( (binary_expression "uVar4 < uVar1" identifier < identifier) )) (compound_statement "{\n    if (iVar3 != 0) {\n      return;\n    }\n    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }\n    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);\n    if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }\n    iVar3 = param_3[3];\n    *param_3 = iVar2;\n    param_3[2] = uVar4;\n  }" { (if_statement "if (iVar3 != 0) {\n      return;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (if_statement "if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }" if (parenthesized_expression "((uVar4 != 0) || (uVar4 = 2, 2 < uVar1))" ( (binary_expression "(uVar4 != 0) || (uVar4 = 2, 2 < uVar1)" (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) || (parenthesized_expression "(uVar4 = 2, 2 < uVar1)" ( (comma_expression "uVar4 = 2, 2 < uVar1" (assignment_expression "uVar4 = 2" identifier = number_literal) , (binary_expression "2 < uVar1" number_literal < identifier)) ))) )) (compound_statement "{\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }" { (do_statement "do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);" do (compound_statement "{\n        uVar4 = uVar4 << 1;\n      }" { (expression_statement "uVar4 = uVar4 << 1;" (assignment_expression "uVar4 = uVar4 << 1" identifier = (binary_expression "uVar4 << 1" identifier << number_literal)) ;) }) while (parenthesized_expression "(uVar4 < uVar1)" ( (binary_expression "uVar4 < uVar1" identifier < identifier) )) ;) })) (expression_statement "iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);" (assignment_expression "iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4)" identifier = (call_expression "(*(code *)PTR_realloc_004368b4)(*param_3,uVar4)" (parenthesized_expression "(*(code *)PTR_realloc_004368b4)" ( (pointer_expression "*(code *)PTR_realloc_004368b4" * (cast_expression "(code *)PTR_realloc_004368b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_3,uVar4)" ( (pointer_expression "*param_3" * identifier) , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }" { (expression_statement "(*(code *)PTR_free_00436800)(*param_3);" (call_expression "(*(code *)PTR_free_00436800)(*param_3)" (parenthesized_expression "(*(code *)PTR_free_00436800)" ( (pointer_expression "*(code *)PTR_free_00436800" * (cast_expression "(code *)PTR_free_00436800" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[2] = 0;" (assignment_expression "param_3[2] = 0" (subscript_expression "param_3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[3] = 1;" (assignment_expression "param_3[3] = 1" (subscript_expression "param_3[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "iVar3 = param_3[3];" (assignment_expression "iVar3 = param_3[3]" identifier = (subscript_expression "param_3[3]" identifier [ number_literal ])) ;) (expression_statement "*param_3 = iVar2;" (assignment_expression "*param_3 = iVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "param_3[2] = uVar4;" (assignment_expression "param_3[2] = uVar4" (subscript_expression "param_3[2]" identifier [ number_literal ]) = identifier) ;) })) (if_statement "if (iVar3 == 0) {\n    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);\n    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;\n    param_3[1] = param_3[1] + param_2;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);\n    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;\n    param_3[1] = param_3[1] + param_2;\n  }" { (expression_statement "(*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);" (call_expression "(*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" ( (pointer_expression "*(code *)PTR_memcpy_00436788" * (cast_expression "(code *)PTR_memcpy_00436788" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_3 + param_3[1],param_1,param_2)" ( (binary_expression "*param_3 + param_3[1]" (pointer_expression "*param_3" * identifier) + (subscript_expression "param_3[1]" identifier [ number_literal ])) , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;" (assignment_expression "*(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0" (pointer_expression "*(undefined1 *)(*param_3 + param_2 + param_3[1])" * (cast_expression "(undefined1 *)(*param_3 + param_2 + param_3[1])" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_3 + param_2 + param_3[1])" ( (binary_expression "*param_3 + param_2 + param_3[1]" (binary_expression "*param_3 + param_2" (pointer_expression "*param_3" * identifier) + identifier) + (subscript_expression "param_3[1]" identifier [ number_literal ])) )))) = number_literal) ;) (expression_statement "param_3[1] = param_3[1] + param_2;" (assignment_expression "param_3[1] = param_3[1] + param_2" (subscript_expression "param_3[1]" identifier [ number_literal ]) = (binary_expression "param_3[1] + param_2" (subscript_expression "param_3[1]" identifier [ number_literal ]) + identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_003600dc(undefined4 param_1,int param_2,int *param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  \n  iVar3 = param_3[3];\n  uVar4 = param_3[2];\n  uVar1 = param_2 + 1 + param_3[1];\n  if (uVar4 < uVar1) {\n    if (iVar3 != 0) {\n      return;\n    }\n    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }\n    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);\n    if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }\n    iVar3 = param_3[3];\n    *param_3 = iVar2;\n    param_3[2] = uVar4;\n  }\n  if (iVar3 == 0) {\n    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);\n    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;\n    param_3[1] = param_3[1] + param_2;\n  }\n  return;\n}\n\n" (function_definition "void FUN_003600dc(undefined4 param_1,int param_2,int *param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  \n  iVar3 = param_3[3];\n  uVar4 = param_3[2];\n  uVar1 = param_2 + 1 + param_3[1];\n  if (uVar4 < uVar1) {\n    if (iVar3 != 0) {\n      return;\n    }\n    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }\n    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);\n    if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }\n    iVar3 = param_3[3];\n    *param_3 = iVar2;\n    param_3[2] = uVar4;\n  }\n  if (iVar3 == 0) {\n    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);\n    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;\n    param_3[1] = param_3[1] + param_2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_003600dc(undefined4 param_1,int param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  \n  iVar3 = param_3[3];\n  uVar4 = param_3[2];\n  uVar1 = param_2 + 1 + param_3[1];\n  if (uVar4 < uVar1) {\n    if (iVar3 != 0) {\n      return;\n    }\n    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }\n    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);\n    if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }\n    iVar3 = param_3[3];\n    *param_3 = iVar2;\n    param_3[2] = uVar4;\n  }\n  if (iVar3 == 0) {\n    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);\n    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;\n    param_3[1] = param_3[1] + param_2;\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "iVar3 = param_3[3];" (assignment_expression "iVar3 = param_3[3]" identifier = (subscript_expression "param_3[3]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = param_3[2];" (assignment_expression "uVar4 = param_3[2]" identifier = (subscript_expression "param_3[2]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = param_2 + 1 + param_3[1];" (assignment_expression "uVar1 = param_2 + 1 + param_3[1]" identifier = (binary_expression "param_2 + 1 + param_3[1]" (binary_expression "param_2 + 1" identifier + number_literal) + (subscript_expression "param_3[1]" identifier [ number_literal ]))) ;) (if_statement "if (uVar4 < uVar1) {\n    if (iVar3 != 0) {\n      return;\n    }\n    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }\n    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);\n    if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }\n    iVar3 = param_3[3];\n    *param_3 = iVar2;\n    param_3[2] = uVar4;\n  }" if (parenthesized_expression "(uVar4 < uVar1)" ( (binary_expression "uVar4 < uVar1" identifier < identifier) )) (compound_statement "{\n    if (iVar3 != 0) {\n      return;\n    }\n    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }\n    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);\n    if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }\n    iVar3 = param_3[3];\n    *param_3 = iVar2;\n    param_3[2] = uVar4;\n  }" { (if_statement "if (iVar3 != 0) {\n      return;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (if_statement "if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }" if (parenthesized_expression "((uVar4 != 0) || (uVar4 = 2, 2 < uVar1))" ( (binary_expression "(uVar4 != 0) || (uVar4 = 2, 2 < uVar1)" (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) || (parenthesized_expression "(uVar4 = 2, 2 < uVar1)" ( (comma_expression "uVar4 = 2, 2 < uVar1" (assignment_expression "uVar4 = 2" identifier = number_literal) , (binary_expression "2 < uVar1" number_literal < identifier)) ))) )) (compound_statement "{\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }" { (do_statement "do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);" do (compound_statement "{\n        uVar4 = uVar4 << 1;\n      }" { (expression_statement "uVar4 = uVar4 << 1;" (assignment_expression "uVar4 = uVar4 << 1" identifier = (binary_expression "uVar4 << 1" identifier << number_literal)) ;) }) while (parenthesized_expression "(uVar4 < uVar1)" ( (binary_expression "uVar4 < uVar1" identifier < identifier) )) ;) })) (expression_statement "iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);" (assignment_expression "iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4)" identifier = (call_expression "(*(code *)PTR_realloc_004368b4)(*param_3,uVar4)" (parenthesized_expression "(*(code *)PTR_realloc_004368b4)" ( (pointer_expression "*(code *)PTR_realloc_004368b4" * (cast_expression "(code *)PTR_realloc_004368b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_3,uVar4)" ( (pointer_expression "*param_3" * identifier) , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }" { (expression_statement "(*(code *)PTR_free_00436800)(*param_3);" (call_expression "(*(code *)PTR_free_00436800)(*param_3)" (parenthesized_expression "(*(code *)PTR_free_00436800)" ( (pointer_expression "*(code *)PTR_free_00436800" * (cast_expression "(code *)PTR_free_00436800" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[2] = 0;" (assignment_expression "param_3[2] = 0" (subscript_expression "param_3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[3] = 1;" (assignment_expression "param_3[3] = 1" (subscript_expression "param_3[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "iVar3 = param_3[3];" (assignment_expression "iVar3 = param_3[3]" identifier = (subscript_expression "param_3[3]" identifier [ number_literal ])) ;) (expression_statement "*param_3 = iVar2;" (assignment_expression "*param_3 = iVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "param_3[2] = uVar4;" (assignment_expression "param_3[2] = uVar4" (subscript_expression "param_3[2]" identifier [ number_literal ]) = identifier) ;) })) (if_statement "if (iVar3 == 0) {\n    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);\n    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;\n    param_3[1] = param_3[1] + param_2;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);\n    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;\n    param_3[1] = param_3[1] + param_2;\n  }" { (expression_statement "(*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);" (call_expression "(*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" ( (pointer_expression "*(code *)PTR_memcpy_00436788" * (cast_expression "(code *)PTR_memcpy_00436788" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_3 + param_3[1],param_1,param_2)" ( (binary_expression "*param_3 + param_3[1]" (pointer_expression "*param_3" * identifier) + (subscript_expression "param_3[1]" identifier [ number_literal ])) , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;" (assignment_expression "*(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0" (pointer_expression "*(undefined1 *)(*param_3 + param_2 + param_3[1])" * (cast_expression "(undefined1 *)(*param_3 + param_2 + param_3[1])" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_3 + param_2 + param_3[1])" ( (binary_expression "*param_3 + param_2 + param_3[1]" (binary_expression "*param_3 + param_2" (pointer_expression "*param_3" * identifier) + identifier) + (subscript_expression "param_3[1]" identifier [ number_literal ])) )))) = number_literal) ;) (expression_statement "param_3[1] = param_3[1] + param_2;" (assignment_expression "param_3[1] = param_3[1] + param_2" (subscript_expression "param_3[1]" identifier [ number_literal ]) = (binary_expression "param_3[1] + param_2" (subscript_expression "param_3[1]" identifier [ number_literal ]) + identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression LIT < IDENT)) ))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (pointer_expression * IDENT) + (subscript_expression IDENT [ LIT ])) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) + IDENT) + (subscript_expression IDENT [ LIT ])) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT)) ;) })) (return_statement return ;) })))
(function_definition "void FUN_003600dc(undefined4 param_1,int param_2,int *param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  \n  iVar3 = param_3[3];\n  uVar4 = param_3[2];\n  uVar1 = param_2 + 1 + param_3[1];\n  if (uVar4 < uVar1) {\n    if (iVar3 != 0) {\n      return;\n    }\n    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }\n    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);\n    if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }\n    iVar3 = param_3[3];\n    *param_3 = iVar2;\n    param_3[2] = uVar4;\n  }\n  if (iVar3 == 0) {\n    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);\n    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;\n    param_3[1] = param_3[1] + param_2;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_003600dc(undefined4 param_1,int param_2,int *param_3)" (identifier "FUN_003600dc") (parameter_list "(undefined4 param_1,int param_2,int *param_3)" (( "(") (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") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  \n  iVar3 = param_3[3];\n  uVar4 = param_3[2];\n  uVar1 = param_2 + 1 + param_3[1];\n  if (uVar4 < uVar1) {\n    if (iVar3 != 0) {\n      return;\n    }\n    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }\n    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);\n    if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }\n    iVar3 = param_3[3];\n    *param_3 = iVar2;\n    param_3[2] = uVar4;\n  }\n  if (iVar3 == 0) {\n    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);\n    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;\n    param_3[1] = param_3[1] + param_2;\n  }\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (expression_statement "iVar3 = param_3[3];" (assignment_expression "iVar3 = param_3[3]" (identifier "iVar3") (= "=") (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "uVar4 = param_3[2];" (assignment_expression "uVar4 = param_3[2]" (identifier "uVar4") (= "=") (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar1 = param_2 + 1 + param_3[1];" (assignment_expression "uVar1 = param_2 + 1 + param_3[1]" (identifier "uVar1") (= "=") (binary_expression "param_2 + 1 + param_3[1]" (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) (+ "+") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (uVar4 < uVar1) {\n    if (iVar3 != 0) {\n      return;\n    }\n    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }\n    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);\n    if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }\n    iVar3 = param_3[3];\n    *param_3 = iVar2;\n    param_3[2] = uVar4;\n  }" (if "if") (parenthesized_expression "(uVar4 < uVar1)" (( "(") (binary_expression "uVar4 < uVar1" (identifier "uVar4") (< "<") (identifier "uVar1")) () ")")) (compound_statement "{\n    if (iVar3 != 0) {\n      return;\n    }\n    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }\n    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);\n    if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }\n    iVar3 = param_3[3];\n    *param_3 = iVar2;\n    param_3[2] = uVar4;\n  }" ({ "{") (if_statement "if (iVar3 != 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }" (if "if") (parenthesized_expression "((uVar4 != 0) || (uVar4 = 2, 2 < uVar1))" (( "(") (binary_expression "(uVar4 != 0) || (uVar4 = 2, 2 < uVar1)" (parenthesized_expression "(uVar4 != 0)" (( "(") (binary_expression "uVar4 != 0" (identifier "uVar4") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(uVar4 = 2, 2 < uVar1)" (( "(") (comma_expression "uVar4 = 2, 2 < uVar1" (assignment_expression "uVar4 = 2" (identifier "uVar4") (= "=") (number_literal "2")) (, ",") (binary_expression "2 < uVar1" (number_literal "2") (< "<") (identifier "uVar1"))) () ")"))) () ")")) (compound_statement "{\n      do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);\n    }" ({ "{") (do_statement "do {\n        uVar4 = uVar4 << 1;\n      } while (uVar4 < uVar1);" (do "do") (compound_statement "{\n        uVar4 = uVar4 << 1;\n      }" ({ "{") (expression_statement "uVar4 = uVar4 << 1;" (assignment_expression "uVar4 = uVar4 << 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 << 1" (identifier "uVar4") (<< "<<") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar4 < uVar1)" (( "(") (binary_expression "uVar4 < uVar1" (identifier "uVar4") (< "<") (identifier "uVar1")) () ")")) (; ";")) (} "}"))) (expression_statement "iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);" (assignment_expression "iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_realloc_004368b4)(*param_3,uVar4)" (parenthesized_expression "(*(code *)PTR_realloc_004368b4)" (( "(") (pointer_expression "*(code *)PTR_realloc_004368b4" (* "*") (cast_expression "(code *)PTR_realloc_004368b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_realloc_004368b4"))) () ")")) (argument_list "(*param_3,uVar4)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) (, ",") (identifier "uVar4") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_free_00436800)(*param_3);\n      *param_3 = 0;\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 1;\n      return;\n    }" ({ "{") (expression_statement "(*(code *)PTR_free_00436800)(*param_3);" (call_expression "(*(code *)PTR_free_00436800)(*param_3)" (parenthesized_expression "(*(code *)PTR_free_00436800)" (( "(") (pointer_expression "*(code *)PTR_free_00436800" (* "*") (cast_expression "(code *)PTR_free_00436800" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_00436800"))) () ")")) (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")"))) (; ";")) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3[2] = 0;" (assignment_expression "param_3[2] = 0" (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3[3] = 1;" (assignment_expression "param_3[3] = 1" (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar3 = param_3[3];" (assignment_expression "iVar3 = param_3[3]" (identifier "iVar3") (= "=") (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "*param_3 = iVar2;" (assignment_expression "*param_3 = iVar2" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "param_3[2] = uVar4;" (assignment_expression "param_3[2] = uVar4" (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (if_statement "if (iVar3 == 0) {\n    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);\n    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;\n    param_3[1] = param_3[1] + param_2;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);\n    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;\n    param_3[1] = param_3[1] + param_2;\n  }" ({ "{") (expression_statement "(*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);" (call_expression "(*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" (( "(") (pointer_expression "*(code *)PTR_memcpy_00436788" (* "*") (cast_expression "(code *)PTR_memcpy_00436788" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_00436788"))) () ")")) (argument_list "(*param_3 + param_3[1],param_1,param_2)" (( "(") (binary_expression "*param_3 + param_3[1]" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "*(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;" (assignment_expression "*(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0" (pointer_expression "*(undefined1 *)(*param_3 + param_2 + param_3[1])" (* "*") (cast_expression "(undefined1 *)(*param_3 + param_2 + param_3[1])" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_3 + param_2 + param_3[1])" (( "(") (binary_expression "*param_3 + param_2 + param_3[1]" (binary_expression "*param_3 + param_2" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (identifier "param_2")) (+ "+") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3[1] = param_3[1] + param_2;" (assignment_expression "param_3[1] = param_3[1] + param_2" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_3[1] + param_2" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (+ "+") (identifier "param_2"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 param_1,int var_1,int *param_3)

{
  type_2 var_3;
  int var_5;
  int var_4;
  type_2 var_2;
  
  var_4 = param_3[3];
  var_2 = param_3[2];
  var_3 = var_1 + 1 + param_3[1];
  if (var_2 < var_3) {
    if (var_4 != 0) {
      return;
    }
    if ((var_2 != 0) || (var_2 = 2, 2 < var_3)) {
      do {
        var_2 = var_2 << 1;
      } while (var_2 < var_3);
    }
    var_5 = (*(type_3 *)PTR_realloc_004368b4)(*param_3,var_2);
    if (var_5 == 0) {
      (*(type_3 *)PTR_free_00436800)(*param_3);
      *param_3 = 0;
      param_3[1] = 0;
      param_3[2] = 0;
      param_3[3] = 1;
      return;
    }
    var_4 = param_3[3];
    *param_3 = var_5;
    param_3[2] = var_2;
  }
  if (var_4 == 0) {
    (*(type_3 *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,var_1);
    *(type_4 *)(*param_3 + var_1 + param_3[1]) = 0;
    param_3[1] = param_3[1] + var_1;
  }
  return;
}


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

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

{
  uint uVar1;
  int iVar2;
  int iVar3;
  uint uVar4;
  
  iVar3 = param_3[3];
  uVar4 = param_3[2];
  uVar1 = param_2 + 1 + param_3[1];
  if (uVar4 < uVar1) {
    if (iVar3 != 0) {
      return;
    }
    if ((uVar4 != 0) || (uVar4 = 2, 2 < uVar1)) {
      do {
        uVar4 = uVar4 << 1;
      } while (uVar4 < uVar1);
    }
    iVar2 = (*(code *)PTR_realloc_004368b4)(*param_3,uVar4);
    if (iVar2 == 0) {
      (*(code *)PTR_free_00436800)(*param_3);
      *param_3 = 0;
      param_3[1] = 0;
      param_3[2] = 0;
      param_3[3] = 1;
      return;
    }
    iVar3 = param_3[3];
    *param_3 = iVar2;
    param_3[2] = uVar4;
  }
  if (iVar3 == 0) {
    (*(code *)PTR_memcpy_00436788)(*param_3 + param_3[1],param_1,param_2);
    *(undefined1 *)(*param_3 + param_2 + param_3[1]) = 0;
    param_3[1] = param_3[1] + param_2;
  }
  return;
}

