
void d_append_buffer(undefined1 *param_1,undefined1 *param_2,int param_3)

{
  undefined1 uVar1;
  int iVar2;
  undefined1 *puVar3;
  undefined1 *puVar4;
  
  if (param_3 == 0) {
    return;
  }
  iVar2 = *(int *)(param_1 + 0x100);
  puVar4 = param_2 + param_3;
  do {
    while (uVar1 = *param_2, iVar2 == 0xff) {
      param_1[0xff] = 0;
      param_2 = param_2 + 1;
      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));
      iVar2 = 1;
      *(undefined4 *)(param_1 + 0x100) = 1;
      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;
      *param_1 = uVar1;
      param_1[0x104] = uVar1;
      if (param_2 == puVar4) {
        return;
      }
    }
    puVar3 = param_1 + iVar2;
    iVar2 = iVar2 + 1;
    param_2 = param_2 + 1;
    *(int *)(param_1 + 0x100) = iVar2;
    *puVar3 = uVar1;
    param_1[0x104] = uVar1;
  } while (param_2 != puVar4);
  return;
}



void FUN_003da554(undefined1 *param_1,undefined1 *param_2,int param_3)

{
  undefined1 uVar1;
  int iVar2;
  undefined1 *puVar3;
  undefined1 *puVar4;
  
  if (param_3 == 0) {
    return;
  }
  iVar2 = *(int *)(param_1 + 0x100);
  puVar4 = param_2 + param_3;
  do {
    while (uVar1 = *param_2, iVar2 == 0xff) {
      param_1[0xff] = 0;
      param_2 = param_2 + 1;
      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));
      iVar2 = 1;
      *(undefined4 *)(param_1 + 0x100) = 1;
      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;
      *param_1 = uVar1;
      param_1[0x104] = uVar1;
      if (param_2 == puVar4) {
        return;
      }
    }
    puVar3 = param_1 + iVar2;
    iVar2 = iVar2 + 1;
    param_2 = param_2 + 1;
    *(int *)(param_1 + 0x100) = iVar2;
    *puVar3 = uVar1;
    param_1[0x104] = uVar1;
  } while (param_2 != puVar4);
  return;
}


beq a2,zero,0x003da61c
_nop
addiu sp,sp,-0x30
lw v0,0x100(a0)
sw s4,0x28(sp)
li s4,0xff
sw s3,0x24(sp)
addu s3,a1,a2
sw s1,0x1c(sp)
or s1,a1,zero
sw s0,0x18(sp)
or s0,a0,zero
sw ra,0x2c(sp)
b 0x003da5ac
_sw s2,0x20(sp)
addu v1,s0,v1
addiu v0,v0,0x1
addiu s1,s1,0x1
sw v0,0x100(s0)
sb s2,0x0(v1)
beq s1,s3,0x003da5fc
_sb s2,0x104(s0)
lb s2,0x0(s1)
bne v0,s4,0x003da590
_or v1,v0,zero
lw t9,0x108(s0)
li a1,0xff
lw a2,0x10c(s0)
or a0,s0,zero
sb zero,0xff(s0)
jalr t9
_addiu s1,s1,0x1
or v1,zero,zero
lw a0,0x128(s0)
li v0,0x1
addu v1,s0,v1
sw v0,0x100(s0)
addiu a0,a0,0x1
sw a0,0x128(s0)
sb s2,0x0(v1)
bne s1,s3,0x003da5ac
_sb s2,0x104(s0)
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
jr ra
_nop
(translation_unit "void FUN_003da554(undefined1 *param_1,undefined1 *param_2,int param_3)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0x100);\n  puVar4 = param_2 + param_3;\n  do {\n    while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }\n    puVar3 = param_1 + iVar2;\n    iVar2 = iVar2 + 1;\n    param_2 = param_2 + 1;\n    *(int *)(param_1 + 0x100) = iVar2;\n    *puVar3 = uVar1;\n    param_1[0x104] = uVar1;\n  } while (param_2 != puVar4);\n  return;\n}\n\n" (function_definition "void FUN_003da554(undefined1 *param_1,undefined1 *param_2,int param_3)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0x100);\n  puVar4 = param_2 + param_3;\n  do {\n    while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }\n    puVar3 = param_1 + iVar2;\n    iVar2 = iVar2 + 1;\n    param_2 = param_2 + 1;\n    *(int *)(param_1 + 0x100) = iVar2;\n    *puVar3 = uVar1;\n    param_1[0x104] = uVar1;\n  } while (param_2 != puVar4);\n  return;\n}" primitive_type (function_declarator "FUN_003da554(undefined1 *param_1,undefined1 *param_2,int param_3)" identifier (parameter_list "(undefined1 *param_1,undefined1 *param_2,int param_3)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined1 uVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0x100);\n  puVar4 = param_2 + param_3;\n  do {\n    while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }\n    puVar3 = param_1 + iVar2;\n    iVar2 = iVar2 + 1;\n    param_2 = param_2 + 1;\n    *(int *)(param_1 + 0x100) = iVar2;\n    *puVar3 = uVar1;\n    param_1[0x104] = uVar1;\n  } while (param_2 != puVar4);\n  return;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (if_statement "if (param_3 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar2 = *(int *)(param_1 + 0x100);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x100)" identifier = (pointer_expression "*(int *)(param_1 + 0x100)" * (cast_expression "(int *)(param_1 + 0x100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100)" ( (binary_expression "param_1 + 0x100" identifier + number_literal) ))))) ;) (expression_statement "puVar4 = param_2 + param_3;" (assignment_expression "puVar4 = param_2 + param_3" identifier = (binary_expression "param_2 + param_3" identifier + identifier)) ;) (do_statement "do {\n    while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }\n    puVar3 = param_1 + iVar2;\n    iVar2 = iVar2 + 1;\n    param_2 = param_2 + 1;\n    *(int *)(param_1 + 0x100) = iVar2;\n    *puVar3 = uVar1;\n    param_1[0x104] = uVar1;\n  } while (param_2 != puVar4);" do (compound_statement "{\n    while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }\n    puVar3 = param_1 + iVar2;\n    iVar2 = iVar2 + 1;\n    param_2 = param_2 + 1;\n    *(int *)(param_1 + 0x100) = iVar2;\n    *puVar3 = uVar1;\n    param_1[0x104] = uVar1;\n  }" { (while_statement "while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }" while (parenthesized_expression "(uVar1 = *param_2, iVar2 == 0xff)" ( (comma_expression "uVar1 = *param_2, iVar2 == 0xff" (assignment_expression "uVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) , (binary_expression "iVar2 == 0xff" identifier == number_literal)) )) (compound_statement "{\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }" { (expression_statement "param_1[0xff] = 0;" (assignment_expression "param_1[0xff] = 0" (subscript_expression "param_1[0xff]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "(**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));" (call_expression "(**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c))" (parenthesized_expression "(**(code **)(param_1 + 0x108))" ( (pointer_expression "**(code **)(param_1 + 0x108)" * (pointer_expression "*(code **)(param_1 + 0x108)" * (cast_expression "(code **)(param_1 + 0x108)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) ))))) )) (argument_list "(param_1,0xff,*(undefined4 *)(param_1 + 0x10c))" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(param_1 + 0x10c)" * (cast_expression "(undefined4 *)(param_1 + 0x10c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) )))) ))) ;) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x100) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x100) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x100)" * (cast_expression "(undefined4 *)(param_1 + 0x100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100)" ( (binary_expression "param_1 + 0x100" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;" (assignment_expression "*(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x128) + 1" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*param_1 = uVar1;" (assignment_expression "*param_1 = uVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[0x104] = uVar1;" (assignment_expression "param_1[0x104] = uVar1" (subscript_expression "param_1[0x104]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_2 == puVar4) {\n        return;\n      }" if (parenthesized_expression "(param_2 == puVar4)" ( (binary_expression "param_2 == puVar4" identifier == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "puVar3 = param_1 + iVar2;" (assignment_expression "puVar3 = param_1 + iVar2" identifier = (binary_expression "param_1 + iVar2" identifier + identifier)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x100) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x100) = iVar2" (pointer_expression "*(int *)(param_1 + 0x100)" * (cast_expression "(int *)(param_1 + 0x100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100)" ( (binary_expression "param_1 + 0x100" identifier + number_literal) )))) = identifier) ;) (expression_statement "*puVar3 = uVar1;" (assignment_expression "*puVar3 = uVar1" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "param_1[0x104] = uVar1;" (assignment_expression "param_1[0x104] = uVar1" (subscript_expression "param_1[0x104]" identifier [ number_literal ]) = identifier) ;) }) while (parenthesized_expression "(param_2 != puVar4)" ( (binary_expression "param_2 != puVar4" identifier != identifier) )) ;) (return_statement "return;" return ;) })))
(translation_unit "void d_append_buffer(undefined1 *param_1,undefined1 *param_2,int param_3)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0x100);\n  puVar4 = param_2 + param_3;\n  do {\n    while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }\n    puVar3 = param_1 + iVar2;\n    iVar2 = iVar2 + 1;\n    param_2 = param_2 + 1;\n    *(int *)(param_1 + 0x100) = iVar2;\n    *puVar3 = uVar1;\n    param_1[0x104] = uVar1;\n  } while (param_2 != puVar4);\n  return;\n}\n\n" (function_definition "void d_append_buffer(undefined1 *param_1,undefined1 *param_2,int param_3)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0x100);\n  puVar4 = param_2 + param_3;\n  do {\n    while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }\n    puVar3 = param_1 + iVar2;\n    iVar2 = iVar2 + 1;\n    param_2 = param_2 + 1;\n    *(int *)(param_1 + 0x100) = iVar2;\n    *puVar3 = uVar1;\n    param_1[0x104] = uVar1;\n  } while (param_2 != puVar4);\n  return;\n}" primitive_type (function_declarator "d_append_buffer(undefined1 *param_1,undefined1 *param_2,int param_3)" identifier (parameter_list "(undefined1 *param_1,undefined1 *param_2,int param_3)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined1 uVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0x100);\n  puVar4 = param_2 + param_3;\n  do {\n    while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }\n    puVar3 = param_1 + iVar2;\n    iVar2 = iVar2 + 1;\n    param_2 = param_2 + 1;\n    *(int *)(param_1 + 0x100) = iVar2;\n    *puVar3 = uVar1;\n    param_1[0x104] = uVar1;\n  } while (param_2 != puVar4);\n  return;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (if_statement "if (param_3 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar2 = *(int *)(param_1 + 0x100);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x100)" identifier = (pointer_expression "*(int *)(param_1 + 0x100)" * (cast_expression "(int *)(param_1 + 0x100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100)" ( (binary_expression "param_1 + 0x100" identifier + number_literal) ))))) ;) (expression_statement "puVar4 = param_2 + param_3;" (assignment_expression "puVar4 = param_2 + param_3" identifier = (binary_expression "param_2 + param_3" identifier + identifier)) ;) (do_statement "do {\n    while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }\n    puVar3 = param_1 + iVar2;\n    iVar2 = iVar2 + 1;\n    param_2 = param_2 + 1;\n    *(int *)(param_1 + 0x100) = iVar2;\n    *puVar3 = uVar1;\n    param_1[0x104] = uVar1;\n  } while (param_2 != puVar4);" do (compound_statement "{\n    while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }\n    puVar3 = param_1 + iVar2;\n    iVar2 = iVar2 + 1;\n    param_2 = param_2 + 1;\n    *(int *)(param_1 + 0x100) = iVar2;\n    *puVar3 = uVar1;\n    param_1[0x104] = uVar1;\n  }" { (while_statement "while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }" while (parenthesized_expression "(uVar1 = *param_2, iVar2 == 0xff)" ( (comma_expression "uVar1 = *param_2, iVar2 == 0xff" (assignment_expression "uVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) , (binary_expression "iVar2 == 0xff" identifier == number_literal)) )) (compound_statement "{\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }" { (expression_statement "param_1[0xff] = 0;" (assignment_expression "param_1[0xff] = 0" (subscript_expression "param_1[0xff]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "(**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));" (call_expression "(**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c))" (parenthesized_expression "(**(code **)(param_1 + 0x108))" ( (pointer_expression "**(code **)(param_1 + 0x108)" * (pointer_expression "*(code **)(param_1 + 0x108)" * (cast_expression "(code **)(param_1 + 0x108)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) ))))) )) (argument_list "(param_1,0xff,*(undefined4 *)(param_1 + 0x10c))" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(param_1 + 0x10c)" * (cast_expression "(undefined4 *)(param_1 + 0x10c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) )))) ))) ;) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x100) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x100) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x100)" * (cast_expression "(undefined4 *)(param_1 + 0x100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100)" ( (binary_expression "param_1 + 0x100" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;" (assignment_expression "*(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x128) + 1" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*param_1 = uVar1;" (assignment_expression "*param_1 = uVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[0x104] = uVar1;" (assignment_expression "param_1[0x104] = uVar1" (subscript_expression "param_1[0x104]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_2 == puVar4) {\n        return;\n      }" if (parenthesized_expression "(param_2 == puVar4)" ( (binary_expression "param_2 == puVar4" identifier == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "puVar3 = param_1 + iVar2;" (assignment_expression "puVar3 = param_1 + iVar2" identifier = (binary_expression "param_1 + iVar2" identifier + identifier)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x100) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x100) = iVar2" (pointer_expression "*(int *)(param_1 + 0x100)" * (cast_expression "(int *)(param_1 + 0x100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100)" ( (binary_expression "param_1 + 0x100" identifier + number_literal) )))) = identifier) ;) (expression_statement "*puVar3 = uVar1;" (assignment_expression "*puVar3 = uVar1" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "param_1[0x104] = uVar1;" (assignment_expression "param_1[0x104] = uVar1" (subscript_expression "param_1[0x104]" identifier [ number_literal ]) = identifier) ;) }) while (parenthesized_expression "(param_2 != puVar4)" ( (binary_expression "param_2 != puVar4" identifier != identifier) )) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_003da554(undefined1 *param_1,undefined1 *param_2,int param_3)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0x100);\n  puVar4 = param_2 + param_3;\n  do {\n    while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }\n    puVar3 = param_1 + iVar2;\n    iVar2 = iVar2 + 1;\n    param_2 = param_2 + 1;\n    *(int *)(param_1 + 0x100) = iVar2;\n    *puVar3 = uVar1;\n    param_1[0x104] = uVar1;\n  } while (param_2 != puVar4);\n  return;\n}\n\n" (function_definition "void FUN_003da554(undefined1 *param_1,undefined1 *param_2,int param_3)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0x100);\n  puVar4 = param_2 + param_3;\n  do {\n    while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }\n    puVar3 = param_1 + iVar2;\n    iVar2 = iVar2 + 1;\n    param_2 = param_2 + 1;\n    *(int *)(param_1 + 0x100) = iVar2;\n    *puVar3 = uVar1;\n    param_1[0x104] = uVar1;\n  } while (param_2 != puVar4);\n  return;\n}" primitive_type (function_declarator "FUN_003da554(undefined1 *param_1,undefined1 *param_2,int param_3)" identifier (parameter_list "(undefined1 *param_1,undefined1 *param_2,int param_3)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined1 uVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0x100);\n  puVar4 = param_2 + param_3;\n  do {\n    while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }\n    puVar3 = param_1 + iVar2;\n    iVar2 = iVar2 + 1;\n    param_2 = param_2 + 1;\n    *(int *)(param_1 + 0x100) = iVar2;\n    *puVar3 = uVar1;\n    param_1[0x104] = uVar1;\n  } while (param_2 != puVar4);\n  return;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (if_statement "if (param_3 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar2 = *(int *)(param_1 + 0x100);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x100)" identifier = (pointer_expression "*(int *)(param_1 + 0x100)" * (cast_expression "(int *)(param_1 + 0x100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100)" ( (binary_expression "param_1 + 0x100" identifier + number_literal) ))))) ;) (expression_statement "puVar4 = param_2 + param_3;" (assignment_expression "puVar4 = param_2 + param_3" identifier = (binary_expression "param_2 + param_3" identifier + identifier)) ;) (do_statement "do {\n    while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }\n    puVar3 = param_1 + iVar2;\n    iVar2 = iVar2 + 1;\n    param_2 = param_2 + 1;\n    *(int *)(param_1 + 0x100) = iVar2;\n    *puVar3 = uVar1;\n    param_1[0x104] = uVar1;\n  } while (param_2 != puVar4);" do (compound_statement "{\n    while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }\n    puVar3 = param_1 + iVar2;\n    iVar2 = iVar2 + 1;\n    param_2 = param_2 + 1;\n    *(int *)(param_1 + 0x100) = iVar2;\n    *puVar3 = uVar1;\n    param_1[0x104] = uVar1;\n  }" { (while_statement "while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }" while (parenthesized_expression "(uVar1 = *param_2, iVar2 == 0xff)" ( (comma_expression "uVar1 = *param_2, iVar2 == 0xff" (assignment_expression "uVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) , (binary_expression "iVar2 == 0xff" identifier == number_literal)) )) (compound_statement "{\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }" { (expression_statement "param_1[0xff] = 0;" (assignment_expression "param_1[0xff] = 0" (subscript_expression "param_1[0xff]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "(**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));" (call_expression "(**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c))" (parenthesized_expression "(**(code **)(param_1 + 0x108))" ( (pointer_expression "**(code **)(param_1 + 0x108)" * (pointer_expression "*(code **)(param_1 + 0x108)" * (cast_expression "(code **)(param_1 + 0x108)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) ))))) )) (argument_list "(param_1,0xff,*(undefined4 *)(param_1 + 0x10c))" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(param_1 + 0x10c)" * (cast_expression "(undefined4 *)(param_1 + 0x10c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) )))) ))) ;) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x100) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x100) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x100)" * (cast_expression "(undefined4 *)(param_1 + 0x100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100)" ( (binary_expression "param_1 + 0x100" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;" (assignment_expression "*(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x128) + 1" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*param_1 = uVar1;" (assignment_expression "*param_1 = uVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[0x104] = uVar1;" (assignment_expression "param_1[0x104] = uVar1" (subscript_expression "param_1[0x104]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_2 == puVar4) {\n        return;\n      }" if (parenthesized_expression "(param_2 == puVar4)" ( (binary_expression "param_2 == puVar4" identifier == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "puVar3 = param_1 + iVar2;" (assignment_expression "puVar3 = param_1 + iVar2" identifier = (binary_expression "param_1 + iVar2" identifier + identifier)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x100) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x100) = iVar2" (pointer_expression "*(int *)(param_1 + 0x100)" * (cast_expression "(int *)(param_1 + 0x100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100)" ( (binary_expression "param_1 + 0x100" identifier + number_literal) )))) = identifier) ;) (expression_statement "*puVar3 = uVar1;" (assignment_expression "*puVar3 = uVar1" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "param_1[0x104] = uVar1;" (assignment_expression "param_1[0x104] = uVar1" (subscript_expression "param_1[0x104]" identifier [ number_literal ]) = identifier) ;) }) while (parenthesized_expression "(param_2 != puVar4)" ( (binary_expression "param_2 != puVar4" identifier != identifier) )) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (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)) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (binary_expression IDENT == LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + 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 == IDENT) )) (compound_statement { (return_statement return ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (return_statement return ;) })))
(function_definition "void FUN_003da554(undefined1 *param_1,undefined1 *param_2,int param_3)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0x100);\n  puVar4 = param_2 + param_3;\n  do {\n    while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }\n    puVar3 = param_1 + iVar2;\n    iVar2 = iVar2 + 1;\n    param_2 = param_2 + 1;\n    *(int *)(param_1 + 0x100) = iVar2;\n    *puVar3 = uVar1;\n    param_1[0x104] = uVar1;\n  } while (param_2 != puVar4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_003da554(undefined1 *param_1,undefined1 *param_2,int param_3)" (identifier "FUN_003da554") (parameter_list "(undefined1 *param_1,undefined1 *param_2,int param_3)" (( "(") (parameter_declaration "undefined1 *param_1" (type_identifier "undefined1") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined1 uVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0x100);\n  puVar4 = param_2 + param_3;\n  do {\n    while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }\n    puVar3 = param_1 + iVar2;\n    iVar2 = iVar2 + 1;\n    param_2 = param_2 + 1;\n    *(int *)(param_1 + 0x100) = iVar2;\n    *puVar3 = uVar1;\n    param_1[0x104] = uVar1;\n  } while (param_2 != puVar4);\n  return;\n}" ({ "{") (declaration "undefined1 uVar1;" (type_identifier "undefined1") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (if_statement "if (param_3 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(param_1 + 0x100);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x100)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x100)" (* "*") (cast_expression "(int *)(param_1 + 0x100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x100)" (( "(") (binary_expression "param_1 + 0x100" (identifier "param_1") (+ "+") (number_literal "0x100")) () ")"))))) (; ";")) (expression_statement "puVar4 = param_2 + param_3;" (assignment_expression "puVar4 = param_2 + param_3" (identifier "puVar4") (= "=") (binary_expression "param_2 + param_3" (identifier "param_2") (+ "+") (identifier "param_3"))) (; ";")) (do_statement "do {\n    while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }\n    puVar3 = param_1 + iVar2;\n    iVar2 = iVar2 + 1;\n    param_2 = param_2 + 1;\n    *(int *)(param_1 + 0x100) = iVar2;\n    *puVar3 = uVar1;\n    param_1[0x104] = uVar1;\n  } while (param_2 != puVar4);" (do "do") (compound_statement "{\n    while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }\n    puVar3 = param_1 + iVar2;\n    iVar2 = iVar2 + 1;\n    param_2 = param_2 + 1;\n    *(int *)(param_1 + 0x100) = iVar2;\n    *puVar3 = uVar1;\n    param_1[0x104] = uVar1;\n  }" ({ "{") (while_statement "while (uVar1 = *param_2, iVar2 == 0xff) {\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }" (while "while") (parenthesized_expression "(uVar1 = *param_2, iVar2 == 0xff)" (( "(") (comma_expression "uVar1 = *param_2, iVar2 == 0xff" (assignment_expression "uVar1 = *param_2" (identifier "uVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (, ",") (binary_expression "iVar2 == 0xff" (identifier "iVar2") (== "==") (number_literal "0xff"))) () ")")) (compound_statement "{\n      param_1[0xff] = 0;\n      param_2 = param_2 + 1;\n      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));\n      iVar2 = 1;\n      *(undefined4 *)(param_1 + 0x100) = 1;\n      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;\n      *param_1 = uVar1;\n      param_1[0x104] = uVar1;\n      if (param_2 == puVar4) {\n        return;\n      }\n    }" ({ "{") (expression_statement "param_1[0xff] = 0;" (assignment_expression "param_1[0xff] = 0" (subscript_expression "param_1[0xff]" (identifier "param_1") ([ "[") (number_literal "0xff") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "(**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));" (call_expression "(**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c))" (parenthesized_expression "(**(code **)(param_1 + 0x108))" (( "(") (pointer_expression "**(code **)(param_1 + 0x108)" (* "*") (pointer_expression "*(code **)(param_1 + 0x108)" (* "*") (cast_expression "(code **)(param_1 + 0x108)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x108)" (( "(") (binary_expression "param_1 + 0x108" (identifier "param_1") (+ "+") (number_literal "0x108")) () ")"))))) () ")")) (argument_list "(param_1,0xff,*(undefined4 *)(param_1 + 0x10c))" (( "(") (identifier "param_1") (, ",") (number_literal "0xff") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x10c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10c)" (( "(") (binary_expression "param_1 + 0x10c" (identifier "param_1") (+ "+") (number_literal "0x10c")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" (identifier "iVar2") (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x100) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x100) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x100)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x100)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x100)" (( "(") (binary_expression "param_1 + 0x100" (identifier "param_1") (+ "+") (number_literal "0x100")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;" (assignment_expression "*(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1" (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x128) + 1" (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_1 = uVar1;" (assignment_expression "*param_1 = uVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "param_1[0x104] = uVar1;" (assignment_expression "param_1[0x104] = uVar1" (subscript_expression "param_1[0x104]" (identifier "param_1") ([ "[") (number_literal "0x104") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (if_statement "if (param_2 == puVar4) {\n        return;\n      }" (if "if") (parenthesized_expression "(param_2 == puVar4)" (( "(") (binary_expression "param_2 == puVar4" (identifier "param_2") (== "==") (identifier "puVar4")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar3 = param_1 + iVar2;" (assignment_expression "puVar3 = param_1 + iVar2" (identifier "puVar3") (= "=") (binary_expression "param_1 + iVar2" (identifier "param_1") (+ "+") (identifier "iVar2"))) (; ";")) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x100) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x100) = iVar2" (pointer_expression "*(int *)(param_1 + 0x100)" (* "*") (cast_expression "(int *)(param_1 + 0x100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x100)" (( "(") (binary_expression "param_1 + 0x100" (identifier "param_1") (+ "+") (number_literal "0x100")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*puVar3 = uVar1;" (assignment_expression "*puVar3 = uVar1" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "param_1[0x104] = uVar1;" (assignment_expression "param_1[0x104] = uVar1" (subscript_expression "param_1[0x104]" (identifier "param_1") ([ "[") (number_literal "0x104") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != puVar4)" (( "(") (binary_expression "param_2 != puVar4" (identifier "param_2") (!= "!=") (identifier "puVar4")) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_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: (binary_expression left: (identifier) right: (identifier)))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier) (number_literal) (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: (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))) (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: (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)))) (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: (identifier))) consequence: (compound_statement (return_statement))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (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: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (return_statement))))

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

{
  undefined1 uVar1;
  int iVar2;
  undefined1 *puVar3;
  undefined1 *puVar4;
  
  if (param_3 == 0) {
    return;
  }
  iVar2 = *(int *)(param_1 + 0x100);
  puVar4 = param_2 + param_3;
  do {
    while (uVar1 = *param_2, iVar2 == 0xff) {
      param_1[0xff] = 0;
      param_2 = param_2 + 1;
      (**(code **)(param_1 + 0x108))(param_1,0xff,*(undefined4 *)(param_1 + 0x10c));
      iVar2 = 1;
      *(undefined4 *)(param_1 + 0x100) = 1;
      *(int *)(param_1 + 0x128) = *(int *)(param_1 + 0x128) + 1;
      *param_1 = uVar1;
      param_1[0x104] = uVar1;
      if (param_2 == puVar4) {
        return;
      }
    }
    puVar3 = param_1 + iVar2;
    iVar2 = iVar2 + 1;
    param_2 = param_2 + 1;
    *(int *)(param_1 + 0x100) = iVar2;
    *puVar3 = uVar1;
    param_1[0x104] = uVar1;
  } while (param_2 != puVar4);
  return;
}

