
void png_push_fill_buffer(png_structp png_ptr,png_bytep buffer,size_t length)

{
  ulong uVar1;
  
  if (png_ptr != (png_structp)0x0) {
    uVar1 = png_ptr->save_buffer_size;
    if (uVar1 != 0) {
      if (length < uVar1) {
        uVar1 = length;
      }
      memcpy(buffer,png_ptr->save_buffer_ptr,uVar1);
      length = length - uVar1;
      buffer = buffer + uVar1;
      png_ptr->buffer_size = png_ptr->buffer_size - uVar1;
      png_ptr->save_buffer_size = png_ptr->save_buffer_size - uVar1;
      png_ptr->save_buffer_ptr = png_ptr->save_buffer_ptr + uVar1;
    }
    if ((length != 0) && (uVar1 = png_ptr->current_buffer_size, uVar1 != 0)) {
      if (uVar1 <= length) {
        length = uVar1;
      }
      memcpy(buffer,png_ptr->current_buffer_ptr,length);
      png_ptr->buffer_size = png_ptr->buffer_size - length;
      png_ptr->current_buffer_size = png_ptr->current_buffer_size - length;
      png_ptr->current_buffer_ptr = png_ptr->current_buffer_ptr + length;
    }
    return;
  }
  return;
}



void FUN_0010cd98(long param_1,void *param_2,ulong param_3)

{
  ulong uVar1;
  
  if (param_1 != 0) {
    uVar1 = *(ulong *)(param_1 + 0x350);
    if (uVar1 != 0) {
      if (param_3 < uVar1) {
        uVar1 = param_3;
      }
      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);
      param_3 = param_3 - uVar1;
      param_2 = (void *)((long)param_2 + uVar1);
      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;
      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;
      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;
    }
    if ((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)) {
      if (uVar1 <= param_3) {
        param_3 = uVar1;
      }
      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);
      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;
      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;
      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;
    }
    return;
  }
  return;
}


TEST RDI,RDI
JZ 0x0010ce3e
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBX,RDI
MOV R13,RSI
MOV R12,RDX
MOV RBP,qword ptr [RDI + 0x350]
TEST RBP,RBP
JZ 0x0010cdf4
CMP RBP,RDX
CMOVA RBP,RDX
MOV RSI,qword ptr [RDI + 0x328]
MOV RDX,RBP
MOV RDI,R13
CALL 0x001064e0
SUB R12,RBP
ADD R13,RBP
SUB qword ptr [RBX + 0x360],RBP
SUB qword ptr [RBX + 0x350],RBP
ADD qword ptr [RBX + 0x328],RBP
TEST R12,R12
JZ 0x0010ce33
MOV RDX,qword ptr [RBX + 0x368]
TEST RDX,RDX
JZ 0x0010ce33
CMP RDX,R12
CMOVBE R12,RDX
MOV RSI,qword ptr [RBX + 0x338]
MOV RDX,R12
MOV RDI,R13
CALL 0x001064e0
SUB qword ptr [RBX + 0x360],R12
SUB qword ptr [RBX + 0x368],R12
ADD qword ptr [RBX + 0x338],R12
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
RET
RET
(translation_unit "void FUN_0010cd98(long param_1,void *param_2,ulong param_3)\n\n{\n  ulong uVar1;\n  \n  if (param_1 != 0) {\n    uVar1 = *(ulong *)(param_1 + 0x350);\n    if (uVar1 != 0) {\n      if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);\n      param_3 = param_3 - uVar1;\n      param_2 = (void *)((long)param_2 + uVar1);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;\n      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;\n      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;\n    }\n    if ((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)) {\n      if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;\n      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;\n      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;\n    }\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0010cd98(long param_1,void *param_2,ulong param_3)\n\n{\n  ulong uVar1;\n  \n  if (param_1 != 0) {\n    uVar1 = *(ulong *)(param_1 + 0x350);\n    if (uVar1 != 0) {\n      if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);\n      param_3 = param_3 - uVar1;\n      param_2 = (void *)((long)param_2 + uVar1);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;\n      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;\n      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;\n    }\n    if ((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)) {\n      if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;\n      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;\n      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;\n    }\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0010cd98(long param_1,void *param_2,ulong param_3)" identifier (parameter_list "(long param_1,void *param_2,ulong param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "ulong param_3" type_identifier identifier) ))) (compound_statement "{\n  ulong uVar1;\n  \n  if (param_1 != 0) {\n    uVar1 = *(ulong *)(param_1 + 0x350);\n    if (uVar1 != 0) {\n      if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);\n      param_3 = param_3 - uVar1;\n      param_2 = (void *)((long)param_2 + uVar1);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;\n      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;\n      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;\n    }\n    if ((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)) {\n      if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;\n      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;\n      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;\n    }\n    return;\n  }\n  return;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (if_statement "if (param_1 != 0) {\n    uVar1 = *(ulong *)(param_1 + 0x350);\n    if (uVar1 != 0) {\n      if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);\n      param_3 = param_3 - uVar1;\n      param_2 = (void *)((long)param_2 + uVar1);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;\n      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;\n      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;\n    }\n    if ((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)) {\n      if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;\n      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;\n      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;\n    }\n    return;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = *(ulong *)(param_1 + 0x350);\n    if (uVar1 != 0) {\n      if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);\n      param_3 = param_3 - uVar1;\n      param_2 = (void *)((long)param_2 + uVar1);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;\n      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;\n      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;\n    }\n    if ((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)) {\n      if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;\n      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;\n      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;\n    }\n    return;\n  }" { (expression_statement "uVar1 = *(ulong *)(param_1 + 0x350);" (assignment_expression "uVar1 = *(ulong *)(param_1 + 0x350)" identifier = (pointer_expression "*(ulong *)(param_1 + 0x350)" * (cast_expression "(ulong *)(param_1 + 0x350)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x350)" ( (binary_expression "param_1 + 0x350" identifier + number_literal) ))))) ;) (if_statement "if (uVar1 != 0) {\n      if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);\n      param_3 = param_3 - uVar1;\n      param_2 = (void *)((long)param_2 + uVar1);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;\n      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;\n      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;\n    }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);\n      param_3 = param_3 - uVar1;\n      param_2 = (void *)((long)param_2 + uVar1);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;\n      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;\n      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;\n    }" { (if_statement "if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }" if (parenthesized_expression "(param_3 < uVar1)" ( (binary_expression "param_3 < uVar1" identifier < identifier) )) (compound_statement "{\n        uVar1 = param_3;\n      }" { (expression_statement "uVar1 = param_3;" (assignment_expression "uVar1 = param_3" identifier = identifier) ;) })) (expression_statement "memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);" (call_expression "memcpy(param_2,*(void **)(param_1 + 0x328),uVar1)" identifier (argument_list "(param_2,*(void **)(param_1 + 0x328),uVar1)" ( identifier , (pointer_expression "*(void **)(param_1 + 0x328)" * (cast_expression "(void **)(param_1 + 0x328)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x328)" ( (binary_expression "param_1 + 0x328" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "param_3 = param_3 - uVar1;" (assignment_expression "param_3 = param_3 - uVar1" identifier = (binary_expression "param_3 - uVar1" identifier - identifier)) ;) (expression_statement "param_2 = (void *)((long)param_2 + uVar1);" (assignment_expression "param_2 = (void *)((long)param_2 + uVar1)" identifier = (cast_expression "(void *)((long)param_2 + uVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + uVar1)" ( (binary_expression "(long)param_2 + uVar1" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) ;) (expression_statement "*(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;" (assignment_expression "*(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1" (pointer_expression "*(long *)(param_1 + 0x360)" * (cast_expression "(long *)(param_1 + 0x360)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x360)" ( (binary_expression "param_1 + 0x360" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x360) - uVar1" (pointer_expression "*(long *)(param_1 + 0x360)" * (cast_expression "(long *)(param_1 + 0x360)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x360)" ( (binary_expression "param_1 + 0x360" identifier + number_literal) )))) - identifier)) ;) (expression_statement "*(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;" (assignment_expression "*(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1" (pointer_expression "*(long *)(param_1 + 0x350)" * (cast_expression "(long *)(param_1 + 0x350)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x350)" ( (binary_expression "param_1 + 0x350" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x350) - uVar1" (pointer_expression "*(long *)(param_1 + 0x350)" * (cast_expression "(long *)(param_1 + 0x350)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x350)" ( (binary_expression "param_1 + 0x350" identifier + number_literal) )))) - identifier)) ;) (expression_statement "*(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;" (assignment_expression "*(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1" (pointer_expression "*(long *)(param_1 + 0x328)" * (cast_expression "(long *)(param_1 + 0x328)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x328)" ( (binary_expression "param_1 + 0x328" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x328) + uVar1" (pointer_expression "*(long *)(param_1 + 0x328)" * (cast_expression "(long *)(param_1 + 0x328)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x328)" ( (binary_expression "param_1 + 0x328" identifier + number_literal) )))) + identifier)) ;) })) (if_statement "if ((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)) {\n      if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;\n      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;\n      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;\n    }" if (parenthesized_expression "((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0))" ( (binary_expression "(param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)" ( (comma_expression "uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0" (assignment_expression "uVar1 = *(ulong *)(param_1 + 0x368)" identifier = (pointer_expression "*(ulong *)(param_1 + 0x368)" * (cast_expression "(ulong *)(param_1 + 0x368)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x368)" ( (binary_expression "param_1 + 0x368" identifier + number_literal) ))))) , (binary_expression "uVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;\n      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;\n      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;\n    }" { (if_statement "if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }" if (parenthesized_expression "(uVar1 <= param_3)" ( (binary_expression "uVar1 <= param_3" identifier <= identifier) )) (compound_statement "{\n        param_3 = uVar1;\n      }" { (expression_statement "param_3 = uVar1;" (assignment_expression "param_3 = uVar1" identifier = identifier) ;) })) (expression_statement "memcpy(param_2,*(void **)(param_1 + 0x338),param_3);" (call_expression "memcpy(param_2,*(void **)(param_1 + 0x338),param_3)" identifier (argument_list "(param_2,*(void **)(param_1 + 0x338),param_3)" ( identifier , (pointer_expression "*(void **)(param_1 + 0x338)" * (cast_expression "(void **)(param_1 + 0x338)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x338)" ( (binary_expression "param_1 + 0x338" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "*(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;" (assignment_expression "*(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3" (pointer_expression "*(long *)(param_1 + 0x360)" * (cast_expression "(long *)(param_1 + 0x360)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x360)" ( (binary_expression "param_1 + 0x360" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x360) - param_3" (pointer_expression "*(long *)(param_1 + 0x360)" * (cast_expression "(long *)(param_1 + 0x360)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x360)" ( (binary_expression "param_1 + 0x360" identifier + number_literal) )))) - identifier)) ;) (expression_statement "*(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;" (assignment_expression "*(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3" (pointer_expression "*(long *)(param_1 + 0x368)" * (cast_expression "(long *)(param_1 + 0x368)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x368)" ( (binary_expression "param_1 + 0x368" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x368) - param_3" (pointer_expression "*(long *)(param_1 + 0x368)" * (cast_expression "(long *)(param_1 + 0x368)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x368)" ( (binary_expression "param_1 + 0x368" identifier + number_literal) )))) - identifier)) ;) (expression_statement "*(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;" (assignment_expression "*(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3" (pointer_expression "*(long *)(param_1 + 0x338)" * (cast_expression "(long *)(param_1 + 0x338)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x338)" ( (binary_expression "param_1 + 0x338" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x338) + param_3" (pointer_expression "*(long *)(param_1 + 0x338)" * (cast_expression "(long *)(param_1 + 0x338)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x338)" ( (binary_expression "param_1 + 0x338" identifier + number_literal) )))) + identifier)) ;) })) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void png_push_fill_buffer(png_structp png_ptr,png_bytep buffer,size_t length)\n\n{\n  ulong uVar1;\n  \n  if (png_ptr != (png_structp)0x0) {\n    uVar1 = png_ptr->save_buffer_size;\n    if (uVar1 != 0) {\n      if (length < uVar1) {\n        uVar1 = length;\n      }\n      memcpy(buffer,png_ptr->save_buffer_ptr,uVar1);\n      length = length - uVar1;\n      buffer = buffer + uVar1;\n      png_ptr->buffer_size = png_ptr->buffer_size - uVar1;\n      png_ptr->save_buffer_size = png_ptr->save_buffer_size - uVar1;\n      png_ptr->save_buffer_ptr = png_ptr->save_buffer_ptr + uVar1;\n    }\n    if ((length != 0) && (uVar1 = png_ptr->current_buffer_size, uVar1 != 0)) {\n      if (uVar1 <= length) {\n        length = uVar1;\n      }\n      memcpy(buffer,png_ptr->current_buffer_ptr,length);\n      png_ptr->buffer_size = png_ptr->buffer_size - length;\n      png_ptr->current_buffer_size = png_ptr->current_buffer_size - length;\n      png_ptr->current_buffer_ptr = png_ptr->current_buffer_ptr + length;\n    }\n    return;\n  }\n  return;\n}\n\n" (function_definition "void png_push_fill_buffer(png_structp png_ptr,png_bytep buffer,size_t length)\n\n{\n  ulong uVar1;\n  \n  if (png_ptr != (png_structp)0x0) {\n    uVar1 = png_ptr->save_buffer_size;\n    if (uVar1 != 0) {\n      if (length < uVar1) {\n        uVar1 = length;\n      }\n      memcpy(buffer,png_ptr->save_buffer_ptr,uVar1);\n      length = length - uVar1;\n      buffer = buffer + uVar1;\n      png_ptr->buffer_size = png_ptr->buffer_size - uVar1;\n      png_ptr->save_buffer_size = png_ptr->save_buffer_size - uVar1;\n      png_ptr->save_buffer_ptr = png_ptr->save_buffer_ptr + uVar1;\n    }\n    if ((length != 0) && (uVar1 = png_ptr->current_buffer_size, uVar1 != 0)) {\n      if (uVar1 <= length) {\n        length = uVar1;\n      }\n      memcpy(buffer,png_ptr->current_buffer_ptr,length);\n      png_ptr->buffer_size = png_ptr->buffer_size - length;\n      png_ptr->current_buffer_size = png_ptr->current_buffer_size - length;\n      png_ptr->current_buffer_ptr = png_ptr->current_buffer_ptr + length;\n    }\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "png_push_fill_buffer(png_structp png_ptr,png_bytep buffer,size_t length)" identifier (parameter_list "(png_structp png_ptr,png_bytep buffer,size_t length)" ( (parameter_declaration "png_structp png_ptr" type_identifier identifier) , (parameter_declaration "png_bytep buffer" type_identifier identifier) , (parameter_declaration "size_t length" primitive_type identifier) ))) (compound_statement "{\n  ulong uVar1;\n  \n  if (png_ptr != (png_structp)0x0) {\n    uVar1 = png_ptr->save_buffer_size;\n    if (uVar1 != 0) {\n      if (length < uVar1) {\n        uVar1 = length;\n      }\n      memcpy(buffer,png_ptr->save_buffer_ptr,uVar1);\n      length = length - uVar1;\n      buffer = buffer + uVar1;\n      png_ptr->buffer_size = png_ptr->buffer_size - uVar1;\n      png_ptr->save_buffer_size = png_ptr->save_buffer_size - uVar1;\n      png_ptr->save_buffer_ptr = png_ptr->save_buffer_ptr + uVar1;\n    }\n    if ((length != 0) && (uVar1 = png_ptr->current_buffer_size, uVar1 != 0)) {\n      if (uVar1 <= length) {\n        length = uVar1;\n      }\n      memcpy(buffer,png_ptr->current_buffer_ptr,length);\n      png_ptr->buffer_size = png_ptr->buffer_size - length;\n      png_ptr->current_buffer_size = png_ptr->current_buffer_size - length;\n      png_ptr->current_buffer_ptr = png_ptr->current_buffer_ptr + length;\n    }\n    return;\n  }\n  return;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (if_statement "if (png_ptr != (png_structp)0x0) {\n    uVar1 = png_ptr->save_buffer_size;\n    if (uVar1 != 0) {\n      if (length < uVar1) {\n        uVar1 = length;\n      }\n      memcpy(buffer,png_ptr->save_buffer_ptr,uVar1);\n      length = length - uVar1;\n      buffer = buffer + uVar1;\n      png_ptr->buffer_size = png_ptr->buffer_size - uVar1;\n      png_ptr->save_buffer_size = png_ptr->save_buffer_size - uVar1;\n      png_ptr->save_buffer_ptr = png_ptr->save_buffer_ptr + uVar1;\n    }\n    if ((length != 0) && (uVar1 = png_ptr->current_buffer_size, uVar1 != 0)) {\n      if (uVar1 <= length) {\n        length = uVar1;\n      }\n      memcpy(buffer,png_ptr->current_buffer_ptr,length);\n      png_ptr->buffer_size = png_ptr->buffer_size - length;\n      png_ptr->current_buffer_size = png_ptr->current_buffer_size - length;\n      png_ptr->current_buffer_ptr = png_ptr->current_buffer_ptr + length;\n    }\n    return;\n  }" if (parenthesized_expression "(png_ptr != (png_structp)0x0)" ( (binary_expression "png_ptr != (png_structp)0x0" identifier != (cast_expression "(png_structp)0x0" ( (type_descriptor "png_structp" type_identifier) ) number_literal)) )) (compound_statement "{\n    uVar1 = png_ptr->save_buffer_size;\n    if (uVar1 != 0) {\n      if (length < uVar1) {\n        uVar1 = length;\n      }\n      memcpy(buffer,png_ptr->save_buffer_ptr,uVar1);\n      length = length - uVar1;\n      buffer = buffer + uVar1;\n      png_ptr->buffer_size = png_ptr->buffer_size - uVar1;\n      png_ptr->save_buffer_size = png_ptr->save_buffer_size - uVar1;\n      png_ptr->save_buffer_ptr = png_ptr->save_buffer_ptr + uVar1;\n    }\n    if ((length != 0) && (uVar1 = png_ptr->current_buffer_size, uVar1 != 0)) {\n      if (uVar1 <= length) {\n        length = uVar1;\n      }\n      memcpy(buffer,png_ptr->current_buffer_ptr,length);\n      png_ptr->buffer_size = png_ptr->buffer_size - length;\n      png_ptr->current_buffer_size = png_ptr->current_buffer_size - length;\n      png_ptr->current_buffer_ptr = png_ptr->current_buffer_ptr + length;\n    }\n    return;\n  }" { (expression_statement "uVar1 = png_ptr->save_buffer_size;" (assignment_expression "uVar1 = png_ptr->save_buffer_size" identifier = (field_expression "png_ptr->save_buffer_size" identifier -> field_identifier)) ;) (if_statement "if (uVar1 != 0) {\n      if (length < uVar1) {\n        uVar1 = length;\n      }\n      memcpy(buffer,png_ptr->save_buffer_ptr,uVar1);\n      length = length - uVar1;\n      buffer = buffer + uVar1;\n      png_ptr->buffer_size = png_ptr->buffer_size - uVar1;\n      png_ptr->save_buffer_size = png_ptr->save_buffer_size - uVar1;\n      png_ptr->save_buffer_ptr = png_ptr->save_buffer_ptr + uVar1;\n    }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (length < uVar1) {\n        uVar1 = length;\n      }\n      memcpy(buffer,png_ptr->save_buffer_ptr,uVar1);\n      length = length - uVar1;\n      buffer = buffer + uVar1;\n      png_ptr->buffer_size = png_ptr->buffer_size - uVar1;\n      png_ptr->save_buffer_size = png_ptr->save_buffer_size - uVar1;\n      png_ptr->save_buffer_ptr = png_ptr->save_buffer_ptr + uVar1;\n    }" { (if_statement "if (length < uVar1) {\n        uVar1 = length;\n      }" if (parenthesized_expression "(length < uVar1)" ( (binary_expression "length < uVar1" identifier < identifier) )) (compound_statement "{\n        uVar1 = length;\n      }" { (expression_statement "uVar1 = length;" (assignment_expression "uVar1 = length" identifier = identifier) ;) })) (expression_statement "memcpy(buffer,png_ptr->save_buffer_ptr,uVar1);" (call_expression "memcpy(buffer,png_ptr->save_buffer_ptr,uVar1)" identifier (argument_list "(buffer,png_ptr->save_buffer_ptr,uVar1)" ( identifier , (field_expression "png_ptr->save_buffer_ptr" identifier -> field_identifier) , identifier ))) ;) (expression_statement "length = length - uVar1;" (assignment_expression "length = length - uVar1" identifier = (binary_expression "length - uVar1" identifier - identifier)) ;) (expression_statement "buffer = buffer + uVar1;" (assignment_expression "buffer = buffer + uVar1" identifier = (binary_expression "buffer + uVar1" identifier + identifier)) ;) (expression_statement "png_ptr->buffer_size = png_ptr->buffer_size - uVar1;" (assignment_expression "png_ptr->buffer_size = png_ptr->buffer_size - uVar1" (field_expression "png_ptr->buffer_size" identifier -> field_identifier) = (binary_expression "png_ptr->buffer_size - uVar1" (field_expression "png_ptr->buffer_size" identifier -> field_identifier) - identifier)) ;) (expression_statement "png_ptr->save_buffer_size = png_ptr->save_buffer_size - uVar1;" (assignment_expression "png_ptr->save_buffer_size = png_ptr->save_buffer_size - uVar1" (field_expression "png_ptr->save_buffer_size" identifier -> field_identifier) = (binary_expression "png_ptr->save_buffer_size - uVar1" (field_expression "png_ptr->save_buffer_size" identifier -> field_identifier) - identifier)) ;) (expression_statement "png_ptr->save_buffer_ptr = png_ptr->save_buffer_ptr + uVar1;" (assignment_expression "png_ptr->save_buffer_ptr = png_ptr->save_buffer_ptr + uVar1" (field_expression "png_ptr->save_buffer_ptr" identifier -> field_identifier) = (binary_expression "png_ptr->save_buffer_ptr + uVar1" (field_expression "png_ptr->save_buffer_ptr" identifier -> field_identifier) + identifier)) ;) })) (if_statement "if ((length != 0) && (uVar1 = png_ptr->current_buffer_size, uVar1 != 0)) {\n      if (uVar1 <= length) {\n        length = uVar1;\n      }\n      memcpy(buffer,png_ptr->current_buffer_ptr,length);\n      png_ptr->buffer_size = png_ptr->buffer_size - length;\n      png_ptr->current_buffer_size = png_ptr->current_buffer_size - length;\n      png_ptr->current_buffer_ptr = png_ptr->current_buffer_ptr + length;\n    }" if (parenthesized_expression "((length != 0) && (uVar1 = png_ptr->current_buffer_size, uVar1 != 0))" ( (binary_expression "(length != 0) && (uVar1 = png_ptr->current_buffer_size, uVar1 != 0)" (parenthesized_expression "(length != 0)" ( (binary_expression "length != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar1 = png_ptr->current_buffer_size, uVar1 != 0)" ( (comma_expression "uVar1 = png_ptr->current_buffer_size, uVar1 != 0" (assignment_expression "uVar1 = png_ptr->current_buffer_size" identifier = (field_expression "png_ptr->current_buffer_size" identifier -> field_identifier)) , (binary_expression "uVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      if (uVar1 <= length) {\n        length = uVar1;\n      }\n      memcpy(buffer,png_ptr->current_buffer_ptr,length);\n      png_ptr->buffer_size = png_ptr->buffer_size - length;\n      png_ptr->current_buffer_size = png_ptr->current_buffer_size - length;\n      png_ptr->current_buffer_ptr = png_ptr->current_buffer_ptr + length;\n    }" { (if_statement "if (uVar1 <= length) {\n        length = uVar1;\n      }" if (parenthesized_expression "(uVar1 <= length)" ( (binary_expression "uVar1 <= length" identifier <= identifier) )) (compound_statement "{\n        length = uVar1;\n      }" { (expression_statement "length = uVar1;" (assignment_expression "length = uVar1" identifier = identifier) ;) })) (expression_statement "memcpy(buffer,png_ptr->current_buffer_ptr,length);" (call_expression "memcpy(buffer,png_ptr->current_buffer_ptr,length)" identifier (argument_list "(buffer,png_ptr->current_buffer_ptr,length)" ( identifier , (field_expression "png_ptr->current_buffer_ptr" identifier -> field_identifier) , identifier ))) ;) (expression_statement "png_ptr->buffer_size = png_ptr->buffer_size - length;" (assignment_expression "png_ptr->buffer_size = png_ptr->buffer_size - length" (field_expression "png_ptr->buffer_size" identifier -> field_identifier) = (binary_expression "png_ptr->buffer_size - length" (field_expression "png_ptr->buffer_size" identifier -> field_identifier) - identifier)) ;) (expression_statement "png_ptr->current_buffer_size = png_ptr->current_buffer_size - length;" (assignment_expression "png_ptr->current_buffer_size = png_ptr->current_buffer_size - length" (field_expression "png_ptr->current_buffer_size" identifier -> field_identifier) = (binary_expression "png_ptr->current_buffer_size - length" (field_expression "png_ptr->current_buffer_size" identifier -> field_identifier) - identifier)) ;) (expression_statement "png_ptr->current_buffer_ptr = png_ptr->current_buffer_ptr + length;" (assignment_expression "png_ptr->current_buffer_ptr = png_ptr->current_buffer_ptr + length" (field_expression "png_ptr->current_buffer_ptr" identifier -> field_identifier) = (binary_expression "png_ptr->current_buffer_ptr + length" (field_expression "png_ptr->current_buffer_ptr" identifier -> field_identifier) + identifier)) ;) })) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0010cd98(long param_1,void *param_2,ulong param_3)\n\n{\n  ulong uVar1;\n  \n  if (param_1 != 0) {\n    uVar1 = *(ulong *)(param_1 + 0x350);\n    if (uVar1 != 0) {\n      if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);\n      param_3 = param_3 - uVar1;\n      param_2 = (void *)((long)param_2 + uVar1);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;\n      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;\n      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;\n    }\n    if ((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)) {\n      if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;\n      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;\n      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;\n    }\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0010cd98(long param_1,void *param_2,ulong param_3)\n\n{\n  ulong uVar1;\n  \n  if (param_1 != 0) {\n    uVar1 = *(ulong *)(param_1 + 0x350);\n    if (uVar1 != 0) {\n      if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);\n      param_3 = param_3 - uVar1;\n      param_2 = (void *)((long)param_2 + uVar1);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;\n      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;\n      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;\n    }\n    if ((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)) {\n      if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;\n      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;\n      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;\n    }\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0010cd98(long param_1,void *param_2,ulong param_3)" identifier (parameter_list "(long param_1,void *param_2,ulong param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "ulong param_3" type_identifier identifier) ))) (compound_statement "{\n  ulong uVar1;\n  \n  if (param_1 != 0) {\n    uVar1 = *(ulong *)(param_1 + 0x350);\n    if (uVar1 != 0) {\n      if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);\n      param_3 = param_3 - uVar1;\n      param_2 = (void *)((long)param_2 + uVar1);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;\n      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;\n      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;\n    }\n    if ((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)) {\n      if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;\n      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;\n      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;\n    }\n    return;\n  }\n  return;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (if_statement "if (param_1 != 0) {\n    uVar1 = *(ulong *)(param_1 + 0x350);\n    if (uVar1 != 0) {\n      if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);\n      param_3 = param_3 - uVar1;\n      param_2 = (void *)((long)param_2 + uVar1);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;\n      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;\n      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;\n    }\n    if ((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)) {\n      if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;\n      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;\n      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;\n    }\n    return;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = *(ulong *)(param_1 + 0x350);\n    if (uVar1 != 0) {\n      if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);\n      param_3 = param_3 - uVar1;\n      param_2 = (void *)((long)param_2 + uVar1);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;\n      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;\n      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;\n    }\n    if ((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)) {\n      if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;\n      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;\n      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;\n    }\n    return;\n  }" { (expression_statement "uVar1 = *(ulong *)(param_1 + 0x350);" (assignment_expression "uVar1 = *(ulong *)(param_1 + 0x350)" identifier = (pointer_expression "*(ulong *)(param_1 + 0x350)" * (cast_expression "(ulong *)(param_1 + 0x350)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x350)" ( (binary_expression "param_1 + 0x350" identifier + number_literal) ))))) ;) (if_statement "if (uVar1 != 0) {\n      if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);\n      param_3 = param_3 - uVar1;\n      param_2 = (void *)((long)param_2 + uVar1);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;\n      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;\n      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;\n    }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);\n      param_3 = param_3 - uVar1;\n      param_2 = (void *)((long)param_2 + uVar1);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;\n      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;\n      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;\n    }" { (if_statement "if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }" if (parenthesized_expression "(param_3 < uVar1)" ( (binary_expression "param_3 < uVar1" identifier < identifier) )) (compound_statement "{\n        uVar1 = param_3;\n      }" { (expression_statement "uVar1 = param_3;" (assignment_expression "uVar1 = param_3" identifier = identifier) ;) })) (expression_statement "memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);" (call_expression "memcpy(param_2,*(void **)(param_1 + 0x328),uVar1)" identifier (argument_list "(param_2,*(void **)(param_1 + 0x328),uVar1)" ( identifier , (pointer_expression "*(void **)(param_1 + 0x328)" * (cast_expression "(void **)(param_1 + 0x328)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x328)" ( (binary_expression "param_1 + 0x328" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "param_3 = param_3 - uVar1;" (assignment_expression "param_3 = param_3 - uVar1" identifier = (binary_expression "param_3 - uVar1" identifier - identifier)) ;) (expression_statement "param_2 = (void *)((long)param_2 + uVar1);" (assignment_expression "param_2 = (void *)((long)param_2 + uVar1)" identifier = (cast_expression "(void *)((long)param_2 + uVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + uVar1)" ( (binary_expression "(long)param_2 + uVar1" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) ;) (expression_statement "*(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;" (assignment_expression "*(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1" (pointer_expression "*(long *)(param_1 + 0x360)" * (cast_expression "(long *)(param_1 + 0x360)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x360)" ( (binary_expression "param_1 + 0x360" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x360) - uVar1" (pointer_expression "*(long *)(param_1 + 0x360)" * (cast_expression "(long *)(param_1 + 0x360)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x360)" ( (binary_expression "param_1 + 0x360" identifier + number_literal) )))) - identifier)) ;) (expression_statement "*(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;" (assignment_expression "*(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1" (pointer_expression "*(long *)(param_1 + 0x350)" * (cast_expression "(long *)(param_1 + 0x350)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x350)" ( (binary_expression "param_1 + 0x350" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x350) - uVar1" (pointer_expression "*(long *)(param_1 + 0x350)" * (cast_expression "(long *)(param_1 + 0x350)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x350)" ( (binary_expression "param_1 + 0x350" identifier + number_literal) )))) - identifier)) ;) (expression_statement "*(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;" (assignment_expression "*(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1" (pointer_expression "*(long *)(param_1 + 0x328)" * (cast_expression "(long *)(param_1 + 0x328)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x328)" ( (binary_expression "param_1 + 0x328" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x328) + uVar1" (pointer_expression "*(long *)(param_1 + 0x328)" * (cast_expression "(long *)(param_1 + 0x328)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x328)" ( (binary_expression "param_1 + 0x328" identifier + number_literal) )))) + identifier)) ;) })) (if_statement "if ((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)) {\n      if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;\n      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;\n      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;\n    }" if (parenthesized_expression "((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0))" ( (binary_expression "(param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)" ( (comma_expression "uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0" (assignment_expression "uVar1 = *(ulong *)(param_1 + 0x368)" identifier = (pointer_expression "*(ulong *)(param_1 + 0x368)" * (cast_expression "(ulong *)(param_1 + 0x368)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x368)" ( (binary_expression "param_1 + 0x368" identifier + number_literal) ))))) , (binary_expression "uVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;\n      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;\n      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;\n    }" { (if_statement "if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }" if (parenthesized_expression "(uVar1 <= param_3)" ( (binary_expression "uVar1 <= param_3" identifier <= identifier) )) (compound_statement "{\n        param_3 = uVar1;\n      }" { (expression_statement "param_3 = uVar1;" (assignment_expression "param_3 = uVar1" identifier = identifier) ;) })) (expression_statement "memcpy(param_2,*(void **)(param_1 + 0x338),param_3);" (call_expression "memcpy(param_2,*(void **)(param_1 + 0x338),param_3)" identifier (argument_list "(param_2,*(void **)(param_1 + 0x338),param_3)" ( identifier , (pointer_expression "*(void **)(param_1 + 0x338)" * (cast_expression "(void **)(param_1 + 0x338)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x338)" ( (binary_expression "param_1 + 0x338" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "*(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;" (assignment_expression "*(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3" (pointer_expression "*(long *)(param_1 + 0x360)" * (cast_expression "(long *)(param_1 + 0x360)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x360)" ( (binary_expression "param_1 + 0x360" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x360) - param_3" (pointer_expression "*(long *)(param_1 + 0x360)" * (cast_expression "(long *)(param_1 + 0x360)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x360)" ( (binary_expression "param_1 + 0x360" identifier + number_literal) )))) - identifier)) ;) (expression_statement "*(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;" (assignment_expression "*(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3" (pointer_expression "*(long *)(param_1 + 0x368)" * (cast_expression "(long *)(param_1 + 0x368)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x368)" ( (binary_expression "param_1 + 0x368" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x368) - param_3" (pointer_expression "*(long *)(param_1 + 0x368)" * (cast_expression "(long *)(param_1 + 0x368)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x368)" ( (binary_expression "param_1 + 0x368" identifier + number_literal) )))) - identifier)) ;) (expression_statement "*(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;" (assignment_expression "*(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3" (pointer_expression "*(long *)(param_1 + 0x338)" * (cast_expression "(long *)(param_1 + 0x338)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x338)" ( (binary_expression "param_1 + 0x338" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x338) + param_3" (pointer_expression "*(long *)(param_1 + 0x338)" * (cast_expression "(long *)(param_1 + 0x338)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x338)" ( (binary_expression "param_1 + 0x338" identifier + number_literal) )))) + identifier)) ;) })) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT)) ;) })) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_0010cd98(long param_1,void *param_2,ulong param_3)\n\n{\n  ulong uVar1;\n  \n  if (param_1 != 0) {\n    uVar1 = *(ulong *)(param_1 + 0x350);\n    if (uVar1 != 0) {\n      if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);\n      param_3 = param_3 - uVar1;\n      param_2 = (void *)((long)param_2 + uVar1);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;\n      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;\n      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;\n    }\n    if ((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)) {\n      if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;\n      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;\n      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;\n    }\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0010cd98(long param_1,void *param_2,ulong param_3)" (identifier "FUN_0010cd98") (parameter_list "(long param_1,void *param_2,ulong param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "void *param_2" (primitive_type "void") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "ulong param_3" (type_identifier "ulong") (identifier "param_3")) () ")"))) (compound_statement "{\n  ulong uVar1;\n  \n  if (param_1 != 0) {\n    uVar1 = *(ulong *)(param_1 + 0x350);\n    if (uVar1 != 0) {\n      if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);\n      param_3 = param_3 - uVar1;\n      param_2 = (void *)((long)param_2 + uVar1);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;\n      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;\n      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;\n    }\n    if ((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)) {\n      if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;\n      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;\n      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;\n    }\n    return;\n  }\n  return;\n}" ({ "{") (declaration "ulong uVar1;" (type_identifier "ulong") (identifier "uVar1") (; ";")) (if_statement "if (param_1 != 0) {\n    uVar1 = *(ulong *)(param_1 + 0x350);\n    if (uVar1 != 0) {\n      if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);\n      param_3 = param_3 - uVar1;\n      param_2 = (void *)((long)param_2 + uVar1);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;\n      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;\n      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;\n    }\n    if ((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)) {\n      if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;\n      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;\n      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;\n    }\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = *(ulong *)(param_1 + 0x350);\n    if (uVar1 != 0) {\n      if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);\n      param_3 = param_3 - uVar1;\n      param_2 = (void *)((long)param_2 + uVar1);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;\n      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;\n      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;\n    }\n    if ((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)) {\n      if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;\n      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;\n      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;\n    }\n    return;\n  }" ({ "{") (expression_statement "uVar1 = *(ulong *)(param_1 + 0x350);" (assignment_expression "uVar1 = *(ulong *)(param_1 + 0x350)" (identifier "uVar1") (= "=") (pointer_expression "*(ulong *)(param_1 + 0x350)" (* "*") (cast_expression "(ulong *)(param_1 + 0x350)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x350)" (( "(") (binary_expression "param_1 + 0x350" (identifier "param_1") (+ "+") (number_literal "0x350")) () ")"))))) (; ";")) (if_statement "if (uVar1 != 0) {\n      if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);\n      param_3 = param_3 - uVar1;\n      param_2 = (void *)((long)param_2 + uVar1);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;\n      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;\n      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;\n    }" (if "if") (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);\n      param_3 = param_3 - uVar1;\n      param_2 = (void *)((long)param_2 + uVar1);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;\n      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;\n      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;\n    }" ({ "{") (if_statement "if (param_3 < uVar1) {\n        uVar1 = param_3;\n      }" (if "if") (parenthesized_expression "(param_3 < uVar1)" (( "(") (binary_expression "param_3 < uVar1" (identifier "param_3") (< "<") (identifier "uVar1")) () ")")) (compound_statement "{\n        uVar1 = param_3;\n      }" ({ "{") (expression_statement "uVar1 = param_3;" (assignment_expression "uVar1 = param_3" (identifier "uVar1") (= "=") (identifier "param_3")) (; ";")) (} "}"))) (expression_statement "memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);" (call_expression "memcpy(param_2,*(void **)(param_1 + 0x328),uVar1)" (identifier "memcpy") (argument_list "(param_2,*(void **)(param_1 + 0x328),uVar1)" (( "(") (identifier "param_2") (, ",") (pointer_expression "*(void **)(param_1 + 0x328)" (* "*") (cast_expression "(void **)(param_1 + 0x328)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x328)" (( "(") (binary_expression "param_1 + 0x328" (identifier "param_1") (+ "+") (number_literal "0x328")) () ")")))) (, ",") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "param_3 = param_3 - uVar1;" (assignment_expression "param_3 = param_3 - uVar1" (identifier "param_3") (= "=") (binary_expression "param_3 - uVar1" (identifier "param_3") (- "-") (identifier "uVar1"))) (; ";")) (expression_statement "param_2 = (void *)((long)param_2 + uVar1);" (assignment_expression "param_2 = (void *)((long)param_2 + uVar1)" (identifier "param_2") (= "=") (cast_expression "(void *)((long)param_2 + uVar1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + uVar1)" (( "(") (binary_expression "(long)param_2 + uVar1" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (identifier "uVar1")) () ")")))) (; ";")) (expression_statement "*(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;" (assignment_expression "*(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1" (pointer_expression "*(long *)(param_1 + 0x360)" (* "*") (cast_expression "(long *)(param_1 + 0x360)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x360)" (( "(") (binary_expression "param_1 + 0x360" (identifier "param_1") (+ "+") (number_literal "0x360")) () ")")))) (= "=") (binary_expression "*(long *)(param_1 + 0x360) - uVar1" (pointer_expression "*(long *)(param_1 + 0x360)" (* "*") (cast_expression "(long *)(param_1 + 0x360)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x360)" (( "(") (binary_expression "param_1 + 0x360" (identifier "param_1") (+ "+") (number_literal "0x360")) () ")")))) (- "-") (identifier "uVar1"))) (; ";")) (expression_statement "*(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;" (assignment_expression "*(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1" (pointer_expression "*(long *)(param_1 + 0x350)" (* "*") (cast_expression "(long *)(param_1 + 0x350)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x350)" (( "(") (binary_expression "param_1 + 0x350" (identifier "param_1") (+ "+") (number_literal "0x350")) () ")")))) (= "=") (binary_expression "*(long *)(param_1 + 0x350) - uVar1" (pointer_expression "*(long *)(param_1 + 0x350)" (* "*") (cast_expression "(long *)(param_1 + 0x350)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x350)" (( "(") (binary_expression "param_1 + 0x350" (identifier "param_1") (+ "+") (number_literal "0x350")) () ")")))) (- "-") (identifier "uVar1"))) (; ";")) (expression_statement "*(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;" (assignment_expression "*(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1" (pointer_expression "*(long *)(param_1 + 0x328)" (* "*") (cast_expression "(long *)(param_1 + 0x328)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x328)" (( "(") (binary_expression "param_1 + 0x328" (identifier "param_1") (+ "+") (number_literal "0x328")) () ")")))) (= "=") (binary_expression "*(long *)(param_1 + 0x328) + uVar1" (pointer_expression "*(long *)(param_1 + 0x328)" (* "*") (cast_expression "(long *)(param_1 + 0x328)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x328)" (( "(") (binary_expression "param_1 + 0x328" (identifier "param_1") (+ "+") (number_literal "0x328")) () ")")))) (+ "+") (identifier "uVar1"))) (; ";")) (} "}"))) (if_statement "if ((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)) {\n      if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;\n      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;\n      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;\n    }" (if "if") (parenthesized_expression "((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0))" (( "(") (binary_expression "(param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)" (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)" (( "(") (comma_expression "uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0" (assignment_expression "uVar1 = *(ulong *)(param_1 + 0x368)" (identifier "uVar1") (= "=") (pointer_expression "*(ulong *)(param_1 + 0x368)" (* "*") (cast_expression "(ulong *)(param_1 + 0x368)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x368)" (( "(") (binary_expression "param_1 + 0x368" (identifier "param_1") (+ "+") (number_literal "0x368")) () ")"))))) (, ",") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }\n      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);\n      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;\n      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;\n      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;\n    }" ({ "{") (if_statement "if (uVar1 <= param_3) {\n        param_3 = uVar1;\n      }" (if "if") (parenthesized_expression "(uVar1 <= param_3)" (( "(") (binary_expression "uVar1 <= param_3" (identifier "uVar1") (<= "<=") (identifier "param_3")) () ")")) (compound_statement "{\n        param_3 = uVar1;\n      }" ({ "{") (expression_statement "param_3 = uVar1;" (assignment_expression "param_3 = uVar1" (identifier "param_3") (= "=") (identifier "uVar1")) (; ";")) (} "}"))) (expression_statement "memcpy(param_2,*(void **)(param_1 + 0x338),param_3);" (call_expression "memcpy(param_2,*(void **)(param_1 + 0x338),param_3)" (identifier "memcpy") (argument_list "(param_2,*(void **)(param_1 + 0x338),param_3)" (( "(") (identifier "param_2") (, ",") (pointer_expression "*(void **)(param_1 + 0x338)" (* "*") (cast_expression "(void **)(param_1 + 0x338)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x338)" (( "(") (binary_expression "param_1 + 0x338" (identifier "param_1") (+ "+") (number_literal "0x338")) () ")")))) (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "*(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;" (assignment_expression "*(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3" (pointer_expression "*(long *)(param_1 + 0x360)" (* "*") (cast_expression "(long *)(param_1 + 0x360)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x360)" (( "(") (binary_expression "param_1 + 0x360" (identifier "param_1") (+ "+") (number_literal "0x360")) () ")")))) (= "=") (binary_expression "*(long *)(param_1 + 0x360) - param_3" (pointer_expression "*(long *)(param_1 + 0x360)" (* "*") (cast_expression "(long *)(param_1 + 0x360)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x360)" (( "(") (binary_expression "param_1 + 0x360" (identifier "param_1") (+ "+") (number_literal "0x360")) () ")")))) (- "-") (identifier "param_3"))) (; ";")) (expression_statement "*(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;" (assignment_expression "*(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3" (pointer_expression "*(long *)(param_1 + 0x368)" (* "*") (cast_expression "(long *)(param_1 + 0x368)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x368)" (( "(") (binary_expression "param_1 + 0x368" (identifier "param_1") (+ "+") (number_literal "0x368")) () ")")))) (= "=") (binary_expression "*(long *)(param_1 + 0x368) - param_3" (pointer_expression "*(long *)(param_1 + 0x368)" (* "*") (cast_expression "(long *)(param_1 + 0x368)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x368)" (( "(") (binary_expression "param_1 + 0x368" (identifier "param_1") (+ "+") (number_literal "0x368")) () ")")))) (- "-") (identifier "param_3"))) (; ";")) (expression_statement "*(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;" (assignment_expression "*(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3" (pointer_expression "*(long *)(param_1 + 0x338)" (* "*") (cast_expression "(long *)(param_1 + 0x338)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x338)" (( "(") (binary_expression "param_1 + 0x338" (identifier "param_1") (+ "+") (number_literal "0x338")) () ")")))) (= "=") (binary_expression "*(long *)(param_1 + 0x338) + param_3" (pointer_expression "*(long *)(param_1 + 0x338)" (* "*") (cast_expression "(long *)(param_1 + 0x338)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x338)" (( "(") (binary_expression "param_1 + 0x338" (identifier "param_1") (+ "+") (number_literal "0x338")) () ")")))) (+ "+") (identifier "param_3"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 var_1,type_2 var_5,size_t var_3)

{
  type_3 var_2;
  
  if (var_1 != (type_1)0x0) {
    var_2 = var_1->save_buffer_size;
    if (var_2 != 0) {
      if (var_3 < var_2) {
        var_2 = var_3;
      }
      var_4(var_5,var_1->save_buffer_ptr,var_2);
      var_3 = var_3 - var_2;
      var_5 = var_5 + var_2;
      var_1->buffer_size = var_1->buffer_size - var_2;
      var_1->save_buffer_size = var_1->save_buffer_size - var_2;
      var_1->save_buffer_ptr = var_1->save_buffer_ptr + var_2;
    }
    if ((var_3 != 0) && (var_2 = var_1->current_buffer_size, var_2 != 0)) {
      if (var_2 <= var_3) {
        var_3 = var_2;
      }
      var_4(var_5,var_1->current_buffer_ptr,var_3);
      var_1->buffer_size = var_1->buffer_size - var_3;
      var_1->current_buffer_size = var_1->current_buffer_size - var_3;
      var_1->current_buffer_ptr = var_1->current_buffer_ptr + var_3;
    }
    return;
  }
  return;
}


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

void MASKED(long param_1,void *param_2,ulong param_3)

{
  ulong uVar1;
  
  if (param_1 != 0) {
    uVar1 = *(ulong *)(param_1 + 0x350);
    if (uVar1 != 0) {
      if (param_3 < uVar1) {
        uVar1 = param_3;
      }
      memcpy(param_2,*(void **)(param_1 + 0x328),uVar1);
      param_3 = param_3 - uVar1;
      param_2 = (void *)((long)param_2 + uVar1);
      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - uVar1;
      *(long *)(param_1 + 0x350) = *(long *)(param_1 + 0x350) - uVar1;
      *(long *)(param_1 + 0x328) = *(long *)(param_1 + 0x328) + uVar1;
    }
    if ((param_3 != 0) && (uVar1 = *(ulong *)(param_1 + 0x368), uVar1 != 0)) {
      if (uVar1 <= param_3) {
        param_3 = uVar1;
      }
      memcpy(param_2,*(void **)(param_1 + 0x338),param_3);
      *(long *)(param_1 + 0x360) = *(long *)(param_1 + 0x360) - param_3;
      *(long *)(param_1 + 0x368) = *(long *)(param_1 + 0x368) - param_3;
      *(long *)(param_1 + 0x338) = *(long *)(param_1 + 0x338) + param_3;
    }
    return;
  }
  return;
}

