
void * ResizeQuantumMemory(void *memory,size_t count,size_t quantum)

{
  undefined4 *puVar1;
  uint uVar2;
  void *pvVar3;
  uint uVar4;
  
  if ((count != 0) && (uVar4 = count * quantum, quantum != 0)) {
    if (count == 0) {
      trap(7);
    }
    if (quantum == uVar4 / count) {
      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();
      if (uVar4 <= uVar2) {
        pvVar3 = (void *)(*(code *)PTR_ResizeMagickMemory_003fa804)(memory,uVar4);
        return pvVar3;
      }
    }
    else {
      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();
      *puVar1 = 0xc;
    }
  }
  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();
  *puVar1 = 0xc;
  (*(code *)PTR_RelinquishMagickMemory_003f9fd8)(memory);
  return (void *)0x0;
}



undefined4 ResizeQuantumMemory(undefined4 param_1,uint param_2,uint param_3)

{
  undefined4 *puVar1;
  uint uVar2;
  undefined4 uVar3;
  uint uVar4;
  
  if ((param_2 != 0) && (uVar4 = param_2 * param_3, param_3 != 0)) {
    if (param_2 == 0) {
      trap(7);
    }
    if (param_3 == uVar4 / param_2) {
      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();
      if (uVar4 <= uVar2) {
        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);
        return uVar3;
      }
    }
    else {
      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();
      *puVar1 = 0xc;
    }
  }
  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();
  *puVar1 = 0xc;
  (*(code *)PTR_RelinquishMagickMemory_003f9fd8)(param_1);
  return 0;
}


lui gp,0x2e
addiu gp,gp,-0x6514
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
beq a1,zero,0x00127e1c
_or s1,a0,zero
beq a2,zero,0x00127e1c
_mul s0,a1,a2
teq a1,zero
divu s0,a1
mflo a1
beq a2,a1,0x00127e50
_lw t9,-0x6ee8(gp)
jalr t9
_nop
lw gp,0x10(sp)
li v1,0xc
sw v1,0x0(v0)
lw t9,-0x6ee8(gp)
jalr t9
_nop
lw gp,0x10(sp)
li v1,0xc
sw v1,0x0(v0)
or a0,s1,zero
lw t9,-0x78d8(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00127e80
_or v0,zero,zero
lw t9,-0x78e4(gp)
jalr t9
_nop
lw gp,0x10(sp)
sltu v0,v0,s0
bne v0,zero,0x00127e1c
_or a1,s0,zero
or a0,s1,zero
lw t9,-0x70ac(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "undefined4 ResizeQuantumMemory(undefined4 param_1,uint param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  \n  if ((param_2 != 0) && (uVar4 = param_2 * param_3, param_3 != 0)) {\n    if (param_2 == 0) {\n      trap(7);\n    }\n    if (param_3 == uVar4 / param_2) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n  *puVar1 = 0xc;\n  (*(code *)PTR_RelinquishMagickMemory_003f9fd8)(param_1);\n  return 0;\n}\n\n" (function_definition "undefined4 ResizeQuantumMemory(undefined4 param_1,uint param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  \n  if ((param_2 != 0) && (uVar4 = param_2 * param_3, param_3 != 0)) {\n    if (param_2 == 0) {\n      trap(7);\n    }\n    if (param_3 == uVar4 / param_2) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n  *puVar1 = 0xc;\n  (*(code *)PTR_RelinquishMagickMemory_003f9fd8)(param_1);\n  return 0;\n}" type_identifier (function_declarator "ResizeQuantumMemory(undefined4 param_1,uint param_2,uint param_3)" identifier (parameter_list "(undefined4 param_1,uint param_2,uint param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  \n  if ((param_2 != 0) && (uVar4 = param_2 * param_3, param_3 != 0)) {\n    if (param_2 == 0) {\n      trap(7);\n    }\n    if (param_3 == uVar4 / param_2) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n  *puVar1 = 0xc;\n  (*(code *)PTR_RelinquishMagickMemory_003f9fd8)(param_1);\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if ((param_2 != 0) && (uVar4 = param_2 * param_3, param_3 != 0)) {\n    if (param_2 == 0) {\n      trap(7);\n    }\n    if (param_3 == uVar4 / param_2) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }\n  }" if (parenthesized_expression "((param_2 != 0) && (uVar4 = param_2 * param_3, param_3 != 0))" ( (binary_expression "(param_2 != 0) && (uVar4 = param_2 * param_3, param_3 != 0)" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar4 = param_2 * param_3, param_3 != 0)" ( (comma_expression "uVar4 = param_2 * param_3, param_3 != 0" (assignment_expression "uVar4 = param_2 * param_3" identifier = (binary_expression "param_2 * param_3" identifier * identifier)) , (binary_expression "param_3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (param_2 == 0) {\n      trap(7);\n    }\n    if (param_3 == uVar4 / param_2) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }\n  }" { (if_statement "if (param_2 == 0) {\n      trap(7);\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      trap(7);\n    }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (if_statement "if (param_3 == uVar4 / param_2) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }" if (parenthesized_expression "(param_3 == uVar4 / param_2)" ( (binary_expression "param_3 == uVar4 / param_2" identifier == (binary_expression "uVar4 / param_2" identifier / identifier)) )) (compound_statement "{\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }\n    }" { (expression_statement "uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();" (assignment_expression "uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)()" identifier = (call_expression "(*(code *)PTR_GetMaxMemoryRequest_003f9fcc)()" (parenthesized_expression "(*(code *)PTR_GetMaxMemoryRequest_003f9fcc)" ( (pointer_expression "*(code *)PTR_GetMaxMemoryRequest_003f9fcc" * (cast_expression "(code *)PTR_GetMaxMemoryRequest_003f9fcc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }" if (parenthesized_expression "(uVar4 <= uVar2)" ( (binary_expression "uVar4 <= uVar2" identifier <= identifier) )) (compound_statement "{\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }" { (expression_statement "uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);" (assignment_expression "uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4)" identifier = (call_expression "(*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4)" (parenthesized_expression "(*(code *)PTR_ResizeMagickMemory_003fa804)" ( (pointer_expression "*(code *)PTR_ResizeMagickMemory_003fa804" * (cast_expression "(code *)PTR_ResizeMagickMemory_003fa804" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,uVar4)" ( identifier , identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) }) (else_clause "else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }" else (compound_statement "{\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }" { (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_003fa9c8)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_003fa9c8)()" (parenthesized_expression "(*(code *)PTR___errno_location_003fa9c8)" ( (pointer_expression "*(code *)PTR___errno_location_003fa9c8" * (cast_expression "(code *)PTR___errno_location_003fa9c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar1 = 0xc;" (assignment_expression "*puVar1 = 0xc" (pointer_expression "*puVar1" * identifier) = number_literal) ;) }))) })) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_003fa9c8)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_003fa9c8)()" (parenthesized_expression "(*(code *)PTR___errno_location_003fa9c8)" ( (pointer_expression "*(code *)PTR___errno_location_003fa9c8" * (cast_expression "(code *)PTR___errno_location_003fa9c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar1 = 0xc;" (assignment_expression "*puVar1 = 0xc" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "(*(code *)PTR_RelinquishMagickMemory_003f9fd8)(param_1);" (call_expression "(*(code *)PTR_RelinquishMagickMemory_003f9fd8)(param_1)" (parenthesized_expression "(*(code *)PTR_RelinquishMagickMemory_003f9fd8)" ( (pointer_expression "*(code *)PTR_RelinquishMagickMemory_003f9fd8" * (cast_expression "(code *)PTR_RelinquishMagickMemory_003f9fd8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "void * ResizeQuantumMemory(void *memory,size_t count,size_t quantum)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  void *pvVar3;\n  uint uVar4;\n  \n  if ((count != 0) && (uVar4 = count * quantum, quantum != 0)) {\n    if (count == 0) {\n      trap(7);\n    }\n    if (quantum == uVar4 / count) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        pvVar3 = (void *)(*(code *)PTR_ResizeMagickMemory_003fa804)(memory,uVar4);\n        return pvVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n  *puVar1 = 0xc;\n  (*(code *)PTR_RelinquishMagickMemory_003f9fd8)(memory);\n  return (void *)0x0;\n}\n\n" (function_definition "void * ResizeQuantumMemory(void *memory,size_t count,size_t quantum)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  void *pvVar3;\n  uint uVar4;\n  \n  if ((count != 0) && (uVar4 = count * quantum, quantum != 0)) {\n    if (count == 0) {\n      trap(7);\n    }\n    if (quantum == uVar4 / count) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        pvVar3 = (void *)(*(code *)PTR_ResizeMagickMemory_003fa804)(memory,uVar4);\n        return pvVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n  *puVar1 = 0xc;\n  (*(code *)PTR_RelinquishMagickMemory_003f9fd8)(memory);\n  return (void *)0x0;\n}" primitive_type (pointer_declarator "* ResizeQuantumMemory(void *memory,size_t count,size_t quantum)" * (function_declarator "ResizeQuantumMemory(void *memory,size_t count,size_t quantum)" identifier (parameter_list "(void *memory,size_t count,size_t quantum)" ( (parameter_declaration "void *memory" primitive_type (pointer_declarator "*memory" * identifier)) , (parameter_declaration "size_t count" primitive_type identifier) , (parameter_declaration "size_t quantum" primitive_type identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  void *pvVar3;\n  uint uVar4;\n  \n  if ((count != 0) && (uVar4 = count * quantum, quantum != 0)) {\n    if (count == 0) {\n      trap(7);\n    }\n    if (quantum == uVar4 / count) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        pvVar3 = (void *)(*(code *)PTR_ResizeMagickMemory_003fa804)(memory,uVar4);\n        return pvVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n  *puVar1 = 0xc;\n  (*(code *)PTR_RelinquishMagickMemory_003f9fd8)(memory);\n  return (void *)0x0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if ((count != 0) && (uVar4 = count * quantum, quantum != 0)) {\n    if (count == 0) {\n      trap(7);\n    }\n    if (quantum == uVar4 / count) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        pvVar3 = (void *)(*(code *)PTR_ResizeMagickMemory_003fa804)(memory,uVar4);\n        return pvVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }\n  }" if (parenthesized_expression "((count != 0) && (uVar4 = count * quantum, quantum != 0))" ( (binary_expression "(count != 0) && (uVar4 = count * quantum, quantum != 0)" (parenthesized_expression "(count != 0)" ( (binary_expression "count != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar4 = count * quantum, quantum != 0)" ( (comma_expression "uVar4 = count * quantum, quantum != 0" (assignment_expression "uVar4 = count * quantum" identifier = (binary_expression "count * quantum" identifier * identifier)) , (binary_expression "quantum != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (count == 0) {\n      trap(7);\n    }\n    if (quantum == uVar4 / count) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        pvVar3 = (void *)(*(code *)PTR_ResizeMagickMemory_003fa804)(memory,uVar4);\n        return pvVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }\n  }" { (if_statement "if (count == 0) {\n      trap(7);\n    }" if (parenthesized_expression "(count == 0)" ( (binary_expression "count == 0" identifier == number_literal) )) (compound_statement "{\n      trap(7);\n    }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (if_statement "if (quantum == uVar4 / count) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        pvVar3 = (void *)(*(code *)PTR_ResizeMagickMemory_003fa804)(memory,uVar4);\n        return pvVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }" if (parenthesized_expression "(quantum == uVar4 / count)" ( (binary_expression "quantum == uVar4 / count" identifier == (binary_expression "uVar4 / count" identifier / identifier)) )) (compound_statement "{\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        pvVar3 = (void *)(*(code *)PTR_ResizeMagickMemory_003fa804)(memory,uVar4);\n        return pvVar3;\n      }\n    }" { (expression_statement "uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();" (assignment_expression "uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)()" identifier = (call_expression "(*(code *)PTR_GetMaxMemoryRequest_003f9fcc)()" (parenthesized_expression "(*(code *)PTR_GetMaxMemoryRequest_003f9fcc)" ( (pointer_expression "*(code *)PTR_GetMaxMemoryRequest_003f9fcc" * (cast_expression "(code *)PTR_GetMaxMemoryRequest_003f9fcc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (uVar4 <= uVar2) {\n        pvVar3 = (void *)(*(code *)PTR_ResizeMagickMemory_003fa804)(memory,uVar4);\n        return pvVar3;\n      }" if (parenthesized_expression "(uVar4 <= uVar2)" ( (binary_expression "uVar4 <= uVar2" identifier <= identifier) )) (compound_statement "{\n        pvVar3 = (void *)(*(code *)PTR_ResizeMagickMemory_003fa804)(memory,uVar4);\n        return pvVar3;\n      }" { (expression_statement "pvVar3 = (void *)(*(code *)PTR_ResizeMagickMemory_003fa804)(memory,uVar4);" (assignment_expression "pvVar3 = (void *)(*(code *)PTR_ResizeMagickMemory_003fa804)(memory,uVar4)" identifier = (cast_expression "(void *)(*(code *)PTR_ResizeMagickMemory_003fa804)(memory,uVar4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_ResizeMagickMemory_003fa804)(memory,uVar4)" (parenthesized_expression "(*(code *)PTR_ResizeMagickMemory_003fa804)" ( (pointer_expression "*(code *)PTR_ResizeMagickMemory_003fa804" * (cast_expression "(code *)PTR_ResizeMagickMemory_003fa804" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(memory,uVar4)" ( identifier , identifier ))))) ;) (return_statement "return pvVar3;" return identifier ;) })) }) (else_clause "else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }" else (compound_statement "{\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }" { (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_003fa9c8)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_003fa9c8)()" (parenthesized_expression "(*(code *)PTR___errno_location_003fa9c8)" ( (pointer_expression "*(code *)PTR___errno_location_003fa9c8" * (cast_expression "(code *)PTR___errno_location_003fa9c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar1 = 0xc;" (assignment_expression "*puVar1 = 0xc" (pointer_expression "*puVar1" * identifier) = number_literal) ;) }))) })) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_003fa9c8)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_003fa9c8)()" (parenthesized_expression "(*(code *)PTR___errno_location_003fa9c8)" ( (pointer_expression "*(code *)PTR___errno_location_003fa9c8" * (cast_expression "(code *)PTR___errno_location_003fa9c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar1 = 0xc;" (assignment_expression "*puVar1 = 0xc" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "(*(code *)PTR_RelinquishMagickMemory_003f9fd8)(memory);" (call_expression "(*(code *)PTR_RelinquishMagickMemory_003f9fd8)(memory)" (parenthesized_expression "(*(code *)PTR_RelinquishMagickMemory_003f9fd8)" ( (pointer_expression "*(code *)PTR_RelinquishMagickMemory_003f9fd8" * (cast_expression "(code *)PTR_RelinquishMagickMemory_003f9fd8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(memory)" ( identifier ))) ;) (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 ResizeQuantumMemory(undefined4 param_1,uint param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  \n  if ((param_2 != 0) && (uVar4 = param_2 * param_3, param_3 != 0)) {\n    if (param_2 == 0) {\n      trap(7);\n    }\n    if (param_3 == uVar4 / param_2) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n  *puVar1 = 0xc;\n  (*(code *)PTR_RelinquishMagickMemory_003f9fd8)(param_1);\n  return 0;\n}\n\n" (function_definition "undefined4 ResizeQuantumMemory(undefined4 param_1,uint param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  \n  if ((param_2 != 0) && (uVar4 = param_2 * param_3, param_3 != 0)) {\n    if (param_2 == 0) {\n      trap(7);\n    }\n    if (param_3 == uVar4 / param_2) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n  *puVar1 = 0xc;\n  (*(code *)PTR_RelinquishMagickMemory_003f9fd8)(param_1);\n  return 0;\n}" type_identifier (function_declarator "ResizeQuantumMemory(undefined4 param_1,uint param_2,uint param_3)" identifier (parameter_list "(undefined4 param_1,uint param_2,uint param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  \n  if ((param_2 != 0) && (uVar4 = param_2 * param_3, param_3 != 0)) {\n    if (param_2 == 0) {\n      trap(7);\n    }\n    if (param_3 == uVar4 / param_2) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n  *puVar1 = 0xc;\n  (*(code *)PTR_RelinquishMagickMemory_003f9fd8)(param_1);\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if ((param_2 != 0) && (uVar4 = param_2 * param_3, param_3 != 0)) {\n    if (param_2 == 0) {\n      trap(7);\n    }\n    if (param_3 == uVar4 / param_2) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }\n  }" if (parenthesized_expression "((param_2 != 0) && (uVar4 = param_2 * param_3, param_3 != 0))" ( (binary_expression "(param_2 != 0) && (uVar4 = param_2 * param_3, param_3 != 0)" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar4 = param_2 * param_3, param_3 != 0)" ( (comma_expression "uVar4 = param_2 * param_3, param_3 != 0" (assignment_expression "uVar4 = param_2 * param_3" identifier = (binary_expression "param_2 * param_3" identifier * identifier)) , (binary_expression "param_3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (param_2 == 0) {\n      trap(7);\n    }\n    if (param_3 == uVar4 / param_2) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }\n  }" { (if_statement "if (param_2 == 0) {\n      trap(7);\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      trap(7);\n    }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (if_statement "if (param_3 == uVar4 / param_2) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }" if (parenthesized_expression "(param_3 == uVar4 / param_2)" ( (binary_expression "param_3 == uVar4 / param_2" identifier == (binary_expression "uVar4 / param_2" identifier / identifier)) )) (compound_statement "{\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }\n    }" { (expression_statement "uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();" (assignment_expression "uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)()" identifier = (call_expression "(*(code *)PTR_GetMaxMemoryRequest_003f9fcc)()" (parenthesized_expression "(*(code *)PTR_GetMaxMemoryRequest_003f9fcc)" ( (pointer_expression "*(code *)PTR_GetMaxMemoryRequest_003f9fcc" * (cast_expression "(code *)PTR_GetMaxMemoryRequest_003f9fcc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }" if (parenthesized_expression "(uVar4 <= uVar2)" ( (binary_expression "uVar4 <= uVar2" identifier <= identifier) )) (compound_statement "{\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }" { (expression_statement "uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);" (assignment_expression "uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4)" identifier = (call_expression "(*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4)" (parenthesized_expression "(*(code *)PTR_ResizeMagickMemory_003fa804)" ( (pointer_expression "*(code *)PTR_ResizeMagickMemory_003fa804" * (cast_expression "(code *)PTR_ResizeMagickMemory_003fa804" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,uVar4)" ( identifier , identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) }) (else_clause "else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }" else (compound_statement "{\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }" { (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_003fa9c8)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_003fa9c8)()" (parenthesized_expression "(*(code *)PTR___errno_location_003fa9c8)" ( (pointer_expression "*(code *)PTR___errno_location_003fa9c8" * (cast_expression "(code *)PTR___errno_location_003fa9c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar1 = 0xc;" (assignment_expression "*puVar1 = 0xc" (pointer_expression "*puVar1" * identifier) = number_literal) ;) }))) })) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_003fa9c8)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_003fa9c8)()" (parenthesized_expression "(*(code *)PTR___errno_location_003fa9c8)" ( (pointer_expression "*(code *)PTR___errno_location_003fa9c8" * (cast_expression "(code *)PTR___errno_location_003fa9c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar1 = 0xc;" (assignment_expression "*puVar1 = 0xc" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "(*(code *)PTR_RelinquishMagickMemory_003f9fd8)(param_1);" (call_expression "(*(code *)PTR_RelinquishMagickMemory_003f9fd8)(param_1)" (parenthesized_expression "(*(code *)PTR_RelinquishMagickMemory_003f9fd8)" ( (pointer_expression "*(code *)PTR_RelinquishMagickMemory_003f9fd8" * (cast_expression "(code *)PTR_RelinquishMagickMemory_003f9fd8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT * IDENT)) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT / IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (return_statement return IDENT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 ResizeQuantumMemory(undefined4 param_1,uint param_2,uint param_3)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  \n  if ((param_2 != 0) && (uVar4 = param_2 * param_3, param_3 != 0)) {\n    if (param_2 == 0) {\n      trap(7);\n    }\n    if (param_3 == uVar4 / param_2) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n  *puVar1 = 0xc;\n  (*(code *)PTR_RelinquishMagickMemory_003f9fd8)(param_1);\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "ResizeQuantumMemory(undefined4 param_1,uint param_2,uint param_3)" (identifier "ResizeQuantumMemory") (parameter_list "(undefined4 param_1,uint param_2,uint param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  \n  if ((param_2 != 0) && (uVar4 = param_2 * param_3, param_3 != 0)) {\n    if (param_2 == 0) {\n      trap(7);\n    }\n    if (param_3 == uVar4 / param_2) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n  *puVar1 = 0xc;\n  (*(code *)PTR_RelinquishMagickMemory_003f9fd8)(param_1);\n  return 0;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (if_statement "if ((param_2 != 0) && (uVar4 = param_2 * param_3, param_3 != 0)) {\n    if (param_2 == 0) {\n      trap(7);\n    }\n    if (param_3 == uVar4 / param_2) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }\n  }" (if "if") (parenthesized_expression "((param_2 != 0) && (uVar4 = param_2 * param_3, param_3 != 0))" (( "(") (binary_expression "(param_2 != 0) && (uVar4 = param_2 * param_3, param_3 != 0)" (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar4 = param_2 * param_3, param_3 != 0)" (( "(") (comma_expression "uVar4 = param_2 * param_3, param_3 != 0" (assignment_expression "uVar4 = param_2 * param_3" (identifier "uVar4") (= "=") (binary_expression "param_2 * param_3" (identifier "param_2") (* "*") (identifier "param_3"))) (, ",") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    if (param_2 == 0) {\n      trap(7);\n    }\n    if (param_3 == uVar4 / param_2) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }\n  }" ({ "{") (if_statement "if (param_2 == 0) {\n      trap(7);\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      trap(7);\n    }" ({ "{") (expression_statement "trap(7);" (call_expression "trap(7)" (identifier "trap") (argument_list "(7)" (( "(") (number_literal "7") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_3 == uVar4 / param_2) {\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }\n    }\n    else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }" (if "if") (parenthesized_expression "(param_3 == uVar4 / param_2)" (( "(") (binary_expression "param_3 == uVar4 / param_2" (identifier "param_3") (== "==") (binary_expression "uVar4 / param_2" (identifier "uVar4") (/ "/") (identifier "param_2"))) () ")")) (compound_statement "{\n      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();\n      if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }\n    }" ({ "{") (expression_statement "uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();" (assignment_expression "uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)()" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_GetMaxMemoryRequest_003f9fcc)()" (parenthesized_expression "(*(code *)PTR_GetMaxMemoryRequest_003f9fcc)" (( "(") (pointer_expression "*(code *)PTR_GetMaxMemoryRequest_003f9fcc" (* "*") (cast_expression "(code *)PTR_GetMaxMemoryRequest_003f9fcc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_GetMaxMemoryRequest_003f9fcc"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (uVar4 <= uVar2) {\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }" (if "if") (parenthesized_expression "(uVar4 <= uVar2)" (( "(") (binary_expression "uVar4 <= uVar2" (identifier "uVar4") (<= "<=") (identifier "uVar2")) () ")")) (compound_statement "{\n        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);\n        return uVar3;\n      }" ({ "{") (expression_statement "uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);" (assignment_expression "uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4)" (parenthesized_expression "(*(code *)PTR_ResizeMagickMemory_003fa804)" (( "(") (pointer_expression "*(code *)PTR_ResizeMagickMemory_003fa804" (* "*") (cast_expression "(code *)PTR_ResizeMagickMemory_003fa804" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ResizeMagickMemory_003fa804"))) () ")")) (argument_list "(param_1,uVar4)" (( "(") (identifier "param_1") (, ",") (identifier "uVar4") () ")")))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }" (else "else") (compound_statement "{\n      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();\n      *puVar1 = 0xc;\n    }" ({ "{") (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)()" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_003fa9c8)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_003fa9c8)()" (parenthesized_expression "(*(code *)PTR___errno_location_003fa9c8)" (( "(") (pointer_expression "*(code *)PTR___errno_location_003fa9c8" (* "*") (cast_expression "(code *)PTR___errno_location_003fa9c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_003fa9c8"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar1 = 0xc;" (assignment_expression "*puVar1 = 0xc" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0xc")) (; ";")) (} "}")))) (} "}"))) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)()" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_003fa9c8)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_003fa9c8)()" (parenthesized_expression "(*(code *)PTR___errno_location_003fa9c8)" (( "(") (pointer_expression "*(code *)PTR___errno_location_003fa9c8" (* "*") (cast_expression "(code *)PTR___errno_location_003fa9c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_003fa9c8"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar1 = 0xc;" (assignment_expression "*puVar1 = 0xc" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0xc")) (; ";")) (expression_statement "(*(code *)PTR_RelinquishMagickMemory_003f9fd8)(param_1);" (call_expression "(*(code *)PTR_RelinquishMagickMemory_003f9fd8)(param_1)" (parenthesized_expression "(*(code *)PTR_RelinquishMagickMemory_003f9fd8)" (( "(") (pointer_expression "*(code *)PTR_RelinquishMagickMemory_003f9fd8" (* "*") (cast_expression "(code *)PTR_RelinquishMagickMemory_003f9fd8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_RelinquishMagickMemory_003f9fd8"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

void * function_1(void *memory,size_t var_1,size_t var_2)

{
  type_1 *puVar1;
  type_2 var_5;
  void *pvVar3;
  type_2 var_4;
  
  if ((var_1 != 0) && (var_4 = var_1 * var_2, var_2 != 0)) {
    if (var_1 == 0) {
      var_3(7);
    }
    if (var_2 == var_4 / var_1) {
      var_5 = (*(type_3 *)PTR_GetMaxMemoryRequest_003f9fcc)();
      if (var_4 <= var_5) {
        pvVar3 = (void *)(*(type_3 *)PTR_ResizeMagickMemory_003fa804)(memory,var_4);
        return pvVar3;
      }
    }
    else {
      puVar1 = (type_1 *)(*(type_3 *)PTR___errno_location_003fa9c8)();
      *puVar1 = 0xc;
    }
  }
  puVar1 = (type_1 *)(*(type_3 *)PTR___errno_location_003fa9c8)();
  *puVar1 = 0xc;
  (*(type_3 *)PTR_RelinquishMagickMemory_003f9fd8)(memory);
  return (void *)0x0;
}


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

undefined4 MASKED(undefined4 param_1,uint param_2,uint param_3)

{
  undefined4 *puVar1;
  uint uVar2;
  undefined4 uVar3;
  uint uVar4;
  
  if ((param_2 != 0) && (uVar4 = param_2 * param_3, param_3 != 0)) {
    if (param_2 == 0) {
      trap(7);
    }
    if (param_3 == uVar4 / param_2) {
      uVar2 = (*(code *)PTR_GetMaxMemoryRequest_003f9fcc)();
      if (uVar4 <= uVar2) {
        uVar3 = (*(code *)PTR_ResizeMagickMemory_003fa804)(param_1,uVar4);
        return uVar3;
      }
    }
    else {
      puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();
      *puVar1 = 0xc;
    }
  }
  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_003fa9c8)();
  *puVar1 = 0xc;
  (*(code *)PTR_RelinquishMagickMemory_003f9fd8)(param_1);
  return 0;
}

