
void getstring(char **data,int *datalen,char **p,int *length)

{
  int iVar1;
  char *pcVar2;
  int iVar3;
  
  iVar1 = *datalen;
  *p = (char *)0x0;
  if (iVar1 < 4) {
    return;
  }
  iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*data);
  *length = iVar1;
  if (-1 < iVar1) {
    iVar1 = *datalen + -4;
    pcVar2 = *data + 4;
    *datalen = iVar1;
    *data = pcVar2;
    iVar3 = *length;
    if (iVar3 <= iVar1) {
      *p = pcVar2;
      *data = pcVar2 + iVar3;
      *datalen = iVar1 - iVar3;
    }
  }
  return;
}



void FUN_0007059c(int *param_1,int *param_2,int *param_3,int *param_4)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  iVar1 = *param_2;
  *param_3 = 0;
  if (iVar1 < 4) {
    return;
  }
  iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*param_1);
  *param_4 = iVar1;
  if (-1 < iVar1) {
    iVar1 = *param_2 + -4;
    iVar2 = *param_1 + 4;
    *param_2 = iVar1;
    *param_1 = iVar2;
    iVar3 = *param_4;
    if (iVar3 <= iVar1) {
      *param_3 = iVar2;
      *param_1 = iVar2 + iVar3;
      *param_2 = iVar1 - iVar3;
    }
  }
  return;
}


lui gp,0x5
addiu gp,gp,-0x622c
addu gp,gp,t9
lw v0,0x0(a1)
slti v0,v0,0x4
beq v0,zero,0x000705c0
_sw zero,0x0(a2)
jr ra
_nop
addiu sp,sp,-0x30
lw v0,0x0(a0)
lw t9,-0x7e7c(gp)
sw s3,0x28(sp)
or s3,a2,zero
sw s2,0x24(sp)
or s2,a3,zero
sw s1,0x20(sp)
or s1,a0,zero
sw s0,0x1c(sp)
or s0,a1,zero
sw gp,0x10(sp)
sw ra,0x2c(sp)
lwl a0,0x0(v0)
jalr t9
_lwr a0,0x3(v0)
bltz v0,0x00070640
_sw v0,0x0(s2)
lw v0,0x0(s0)
lw v1,0x0(s1)
addiu v0,v0,-0x4
addiu v1,v1,0x4
sw v0,0x0(s0)
sw v1,0x0(s1)
lw a0,0x0(s2)
slt a1,v0,a0
bne a1,zero,0x00070640
_addu a1,v1,a0
sw v1,0x0(s3)
subu v0,v0,a0
sw a1,0x0(s1)
sw v0,0x0(s0)
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "void FUN_0007059c(int *param_1,int *param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_2;\n  *param_3 = 0;\n  if (iVar1 < 4) {\n    return;\n  }\n  iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*param_1);\n  *param_4 = iVar1;\n  if (-1 < iVar1) {\n    iVar1 = *param_2 + -4;\n    iVar2 = *param_1 + 4;\n    *param_2 = iVar1;\n    *param_1 = iVar2;\n    iVar3 = *param_4;\n    if (iVar3 <= iVar1) {\n      *param_3 = iVar2;\n      *param_1 = iVar2 + iVar3;\n      *param_2 = iVar1 - iVar3;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_0007059c(int *param_1,int *param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_2;\n  *param_3 = 0;\n  if (iVar1 < 4) {\n    return;\n  }\n  iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*param_1);\n  *param_4 = iVar1;\n  if (-1 < iVar1) {\n    iVar1 = *param_2 + -4;\n    iVar2 = *param_1 + 4;\n    *param_2 = iVar1;\n    *param_1 = iVar2;\n    iVar3 = *param_4;\n    if (iVar3 <= iVar1) {\n      *param_3 = iVar2;\n      *param_1 = iVar2 + iVar3;\n      *param_2 = iVar1 - iVar3;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0007059c(int *param_1,int *param_2,int *param_3,int *param_4)" identifier (parameter_list "(int *param_1,int *param_2,int *param_3,int *param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_2;\n  *param_3 = 0;\n  if (iVar1 < 4) {\n    return;\n  }\n  iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*param_1);\n  *param_4 = iVar1;\n  if (-1 < iVar1) {\n    iVar1 = *param_2 + -4;\n    iVar2 = *param_1 + 4;\n    *param_2 = iVar1;\n    *param_1 = iVar2;\n    iVar3 = *param_4;\n    if (iVar3 <= iVar1) {\n      *param_3 = iVar2;\n      *param_1 = iVar2 + iVar3;\n      *param_2 = iVar1 - iVar3;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (if_statement "if (iVar1 < 4) {\n    return;\n  }" if (parenthesized_expression "(iVar1 < 4)" ( (binary_expression "iVar1 < 4" identifier < number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*param_1);" (assignment_expression "iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*param_1)" identifier = (call_expression "(*(code *)PTR_toint_000b24f4)(*(undefined4 *)*param_1)" (parenthesized_expression "(*(code *)PTR_toint_000b24f4)" ( (pointer_expression "*(code *)PTR_toint_000b24f4" * (cast_expression "(code *)PTR_toint_000b24f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)*param_1)" ( (pointer_expression "*(undefined4 *)*param_1" * (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) )))) ;) (expression_statement "*param_4 = iVar1;" (assignment_expression "*param_4 = iVar1" (pointer_expression "*param_4" * identifier) = identifier) ;) (if_statement "if (-1 < iVar1) {\n    iVar1 = *param_2 + -4;\n    iVar2 = *param_1 + 4;\n    *param_2 = iVar1;\n    *param_1 = iVar2;\n    iVar3 = *param_4;\n    if (iVar3 <= iVar1) {\n      *param_3 = iVar2;\n      *param_1 = iVar2 + iVar3;\n      *param_2 = iVar1 - iVar3;\n    }\n  }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n    iVar1 = *param_2 + -4;\n    iVar2 = *param_1 + 4;\n    *param_2 = iVar1;\n    *param_1 = iVar2;\n    iVar3 = *param_4;\n    if (iVar3 <= iVar1) {\n      *param_3 = iVar2;\n      *param_1 = iVar2 + iVar3;\n      *param_2 = iVar1 - iVar3;\n    }\n  }" { (expression_statement "iVar1 = *param_2 + -4;" (assignment_expression "iVar1 = *param_2 + -4" identifier = (binary_expression "*param_2 + -4" (pointer_expression "*param_2" * identifier) + number_literal)) ;) (expression_statement "iVar2 = *param_1 + 4;" (assignment_expression "iVar2 = *param_1 + 4" identifier = (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal)) ;) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "iVar3 = *param_4;" (assignment_expression "iVar3 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (if_statement "if (iVar3 <= iVar1) {\n      *param_3 = iVar2;\n      *param_1 = iVar2 + iVar3;\n      *param_2 = iVar1 - iVar3;\n    }" if (parenthesized_expression "(iVar3 <= iVar1)" ( (binary_expression "iVar3 <= iVar1" identifier <= identifier) )) (compound_statement "{\n      *param_3 = iVar2;\n      *param_1 = iVar2 + iVar3;\n      *param_2 = iVar1 - iVar3;\n    }" { (expression_statement "*param_3 = iVar2;" (assignment_expression "*param_3 = iVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "*param_1 = iVar2 + iVar3;" (assignment_expression "*param_1 = iVar2 + iVar3" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar2 + iVar3" identifier + identifier)) ;) (expression_statement "*param_2 = iVar1 - iVar3;" (assignment_expression "*param_2 = iVar1 - iVar3" (pointer_expression "*param_2" * identifier) = (binary_expression "iVar1 - iVar3" identifier - identifier)) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void getstring(char **data,int *datalen,char **p,int *length)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  iVar1 = *datalen;\n  *p = (char *)0x0;\n  if (iVar1 < 4) {\n    return;\n  }\n  iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*data);\n  *length = iVar1;\n  if (-1 < iVar1) {\n    iVar1 = *datalen + -4;\n    pcVar2 = *data + 4;\n    *datalen = iVar1;\n    *data = pcVar2;\n    iVar3 = *length;\n    if (iVar3 <= iVar1) {\n      *p = pcVar2;\n      *data = pcVar2 + iVar3;\n      *datalen = iVar1 - iVar3;\n    }\n  }\n  return;\n}\n\n" (function_definition "void getstring(char **data,int *datalen,char **p,int *length)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  iVar1 = *datalen;\n  *p = (char *)0x0;\n  if (iVar1 < 4) {\n    return;\n  }\n  iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*data);\n  *length = iVar1;\n  if (-1 < iVar1) {\n    iVar1 = *datalen + -4;\n    pcVar2 = *data + 4;\n    *datalen = iVar1;\n    *data = pcVar2;\n    iVar3 = *length;\n    if (iVar3 <= iVar1) {\n      *p = pcVar2;\n      *data = pcVar2 + iVar3;\n      *datalen = iVar1 - iVar3;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "getstring(char **data,int *datalen,char **p,int *length)" identifier (parameter_list "(char **data,int *datalen,char **p,int *length)" ( (parameter_declaration "char **data" primitive_type (pointer_declarator "**data" * (pointer_declarator "*data" * identifier))) , (parameter_declaration "int *datalen" primitive_type (pointer_declarator "*datalen" * identifier)) , (parameter_declaration "char **p" primitive_type (pointer_declarator "**p" * (pointer_declarator "*p" * identifier))) , (parameter_declaration "int *length" primitive_type (pointer_declarator "*length" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  iVar1 = *datalen;\n  *p = (char *)0x0;\n  if (iVar1 < 4) {\n    return;\n  }\n  iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*data);\n  *length = iVar1;\n  if (-1 < iVar1) {\n    iVar1 = *datalen + -4;\n    pcVar2 = *data + 4;\n    *datalen = iVar1;\n    *data = pcVar2;\n    iVar3 = *length;\n    if (iVar3 <= iVar1) {\n      *p = pcVar2;\n      *data = pcVar2 + iVar3;\n      *datalen = iVar1 - iVar3;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar1 = *datalen;" (assignment_expression "iVar1 = *datalen" identifier = (pointer_expression "*datalen" * identifier)) ;) (expression_statement "*p = (char *)0x0;" (assignment_expression "*p = (char *)0x0" (pointer_expression "*p" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar1 < 4) {\n    return;\n  }" if (parenthesized_expression "(iVar1 < 4)" ( (binary_expression "iVar1 < 4" identifier < number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*data);" (assignment_expression "iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*data)" identifier = (call_expression "(*(code *)PTR_toint_000b24f4)(*(undefined4 *)*data)" (parenthesized_expression "(*(code *)PTR_toint_000b24f4)" ( (pointer_expression "*(code *)PTR_toint_000b24f4" * (cast_expression "(code *)PTR_toint_000b24f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)*data)" ( (pointer_expression "*(undefined4 *)*data" * (cast_expression "(undefined4 *)*data" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*data" * identifier))) )))) ;) (expression_statement "*length = iVar1;" (assignment_expression "*length = iVar1" (pointer_expression "*length" * identifier) = identifier) ;) (if_statement "if (-1 < iVar1) {\n    iVar1 = *datalen + -4;\n    pcVar2 = *data + 4;\n    *datalen = iVar1;\n    *data = pcVar2;\n    iVar3 = *length;\n    if (iVar3 <= iVar1) {\n      *p = pcVar2;\n      *data = pcVar2 + iVar3;\n      *datalen = iVar1 - iVar3;\n    }\n  }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n    iVar1 = *datalen + -4;\n    pcVar2 = *data + 4;\n    *datalen = iVar1;\n    *data = pcVar2;\n    iVar3 = *length;\n    if (iVar3 <= iVar1) {\n      *p = pcVar2;\n      *data = pcVar2 + iVar3;\n      *datalen = iVar1 - iVar3;\n    }\n  }" { (expression_statement "iVar1 = *datalen + -4;" (assignment_expression "iVar1 = *datalen + -4" identifier = (binary_expression "*datalen + -4" (pointer_expression "*datalen" * identifier) + number_literal)) ;) (expression_statement "pcVar2 = *data + 4;" (assignment_expression "pcVar2 = *data + 4" identifier = (binary_expression "*data + 4" (pointer_expression "*data" * identifier) + number_literal)) ;) (expression_statement "*datalen = iVar1;" (assignment_expression "*datalen = iVar1" (pointer_expression "*datalen" * identifier) = identifier) ;) (expression_statement "*data = pcVar2;" (assignment_expression "*data = pcVar2" (pointer_expression "*data" * identifier) = identifier) ;) (expression_statement "iVar3 = *length;" (assignment_expression "iVar3 = *length" identifier = (pointer_expression "*length" * identifier)) ;) (if_statement "if (iVar3 <= iVar1) {\n      *p = pcVar2;\n      *data = pcVar2 + iVar3;\n      *datalen = iVar1 - iVar3;\n    }" if (parenthesized_expression "(iVar3 <= iVar1)" ( (binary_expression "iVar3 <= iVar1" identifier <= identifier) )) (compound_statement "{\n      *p = pcVar2;\n      *data = pcVar2 + iVar3;\n      *datalen = iVar1 - iVar3;\n    }" { (expression_statement "*p = pcVar2;" (assignment_expression "*p = pcVar2" (pointer_expression "*p" * identifier) = identifier) ;) (expression_statement "*data = pcVar2 + iVar3;" (assignment_expression "*data = pcVar2 + iVar3" (pointer_expression "*data" * identifier) = (binary_expression "pcVar2 + iVar3" identifier + identifier)) ;) (expression_statement "*datalen = iVar1 - iVar3;" (assignment_expression "*datalen = iVar1 - iVar3" (pointer_expression "*datalen" * identifier) = (binary_expression "iVar1 - iVar3" identifier - identifier)) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0007059c(int *param_1,int *param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_2;\n  *param_3 = 0;\n  if (iVar1 < 4) {\n    return;\n  }\n  iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*param_1);\n  *param_4 = iVar1;\n  if (-1 < iVar1) {\n    iVar1 = *param_2 + -4;\n    iVar2 = *param_1 + 4;\n    *param_2 = iVar1;\n    *param_1 = iVar2;\n    iVar3 = *param_4;\n    if (iVar3 <= iVar1) {\n      *param_3 = iVar2;\n      *param_1 = iVar2 + iVar3;\n      *param_2 = iVar1 - iVar3;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_0007059c(int *param_1,int *param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_2;\n  *param_3 = 0;\n  if (iVar1 < 4) {\n    return;\n  }\n  iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*param_1);\n  *param_4 = iVar1;\n  if (-1 < iVar1) {\n    iVar1 = *param_2 + -4;\n    iVar2 = *param_1 + 4;\n    *param_2 = iVar1;\n    *param_1 = iVar2;\n    iVar3 = *param_4;\n    if (iVar3 <= iVar1) {\n      *param_3 = iVar2;\n      *param_1 = iVar2 + iVar3;\n      *param_2 = iVar1 - iVar3;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0007059c(int *param_1,int *param_2,int *param_3,int *param_4)" identifier (parameter_list "(int *param_1,int *param_2,int *param_3,int *param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_2;\n  *param_3 = 0;\n  if (iVar1 < 4) {\n    return;\n  }\n  iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*param_1);\n  *param_4 = iVar1;\n  if (-1 < iVar1) {\n    iVar1 = *param_2 + -4;\n    iVar2 = *param_1 + 4;\n    *param_2 = iVar1;\n    *param_1 = iVar2;\n    iVar3 = *param_4;\n    if (iVar3 <= iVar1) {\n      *param_3 = iVar2;\n      *param_1 = iVar2 + iVar3;\n      *param_2 = iVar1 - iVar3;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (if_statement "if (iVar1 < 4) {\n    return;\n  }" if (parenthesized_expression "(iVar1 < 4)" ( (binary_expression "iVar1 < 4" identifier < number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*param_1);" (assignment_expression "iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*param_1)" identifier = (call_expression "(*(code *)PTR_toint_000b24f4)(*(undefined4 *)*param_1)" (parenthesized_expression "(*(code *)PTR_toint_000b24f4)" ( (pointer_expression "*(code *)PTR_toint_000b24f4" * (cast_expression "(code *)PTR_toint_000b24f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)*param_1)" ( (pointer_expression "*(undefined4 *)*param_1" * (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) )))) ;) (expression_statement "*param_4 = iVar1;" (assignment_expression "*param_4 = iVar1" (pointer_expression "*param_4" * identifier) = identifier) ;) (if_statement "if (-1 < iVar1) {\n    iVar1 = *param_2 + -4;\n    iVar2 = *param_1 + 4;\n    *param_2 = iVar1;\n    *param_1 = iVar2;\n    iVar3 = *param_4;\n    if (iVar3 <= iVar1) {\n      *param_3 = iVar2;\n      *param_1 = iVar2 + iVar3;\n      *param_2 = iVar1 - iVar3;\n    }\n  }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n    iVar1 = *param_2 + -4;\n    iVar2 = *param_1 + 4;\n    *param_2 = iVar1;\n    *param_1 = iVar2;\n    iVar3 = *param_4;\n    if (iVar3 <= iVar1) {\n      *param_3 = iVar2;\n      *param_1 = iVar2 + iVar3;\n      *param_2 = iVar1 - iVar3;\n    }\n  }" { (expression_statement "iVar1 = *param_2 + -4;" (assignment_expression "iVar1 = *param_2 + -4" identifier = (binary_expression "*param_2 + -4" (pointer_expression "*param_2" * identifier) + number_literal)) ;) (expression_statement "iVar2 = *param_1 + 4;" (assignment_expression "iVar2 = *param_1 + 4" identifier = (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal)) ;) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "iVar3 = *param_4;" (assignment_expression "iVar3 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (if_statement "if (iVar3 <= iVar1) {\n      *param_3 = iVar2;\n      *param_1 = iVar2 + iVar3;\n      *param_2 = iVar1 - iVar3;\n    }" if (parenthesized_expression "(iVar3 <= iVar1)" ( (binary_expression "iVar3 <= iVar1" identifier <= identifier) )) (compound_statement "{\n      *param_3 = iVar2;\n      *param_1 = iVar2 + iVar3;\n      *param_2 = iVar1 - iVar3;\n    }" { (expression_statement "*param_3 = iVar2;" (assignment_expression "*param_3 = iVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "*param_1 = iVar2 + iVar3;" (assignment_expression "*param_1 = iVar2 + iVar3" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar2 + iVar3" identifier + identifier)) ;) (expression_statement "*param_2 = iVar1 - iVar3;" (assignment_expression "*param_2 = iVar1 - iVar3" (pointer_expression "*param_2" * identifier) = (binary_expression "iVar1 - iVar3" identifier - identifier)) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT - IDENT)) ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_0007059c(int *param_1,int *param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_2;\n  *param_3 = 0;\n  if (iVar1 < 4) {\n    return;\n  }\n  iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*param_1);\n  *param_4 = iVar1;\n  if (-1 < iVar1) {\n    iVar1 = *param_2 + -4;\n    iVar2 = *param_1 + 4;\n    *param_2 = iVar1;\n    *param_1 = iVar2;\n    iVar3 = *param_4;\n    if (iVar3 <= iVar1) {\n      *param_3 = iVar2;\n      *param_1 = iVar2 + iVar3;\n      *param_2 = iVar1 - iVar3;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0007059c(int *param_1,int *param_2,int *param_3,int *param_4)" (identifier "FUN_0007059c") (parameter_list "(int *param_1,int *param_2,int *param_3,int *param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_2;\n  *param_3 = 0;\n  if (iVar1 < 4) {\n    return;\n  }\n  iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*param_1);\n  *param_4 = iVar1;\n  if (-1 < iVar1) {\n    iVar1 = *param_2 + -4;\n    iVar2 = *param_1 + 4;\n    *param_2 = iVar1;\n    *param_1 = iVar2;\n    iVar3 = *param_4;\n    if (iVar3 <= iVar1) {\n      *param_3 = iVar2;\n      *param_1 = iVar2 + iVar3;\n      *param_2 = iVar1 - iVar3;\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" (identifier "iVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar1 < 4) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 < 4)" (( "(") (binary_expression "iVar1 < 4" (identifier "iVar1") (< "<") (number_literal "4")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*param_1);" (assignment_expression "iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*param_1)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_toint_000b24f4)(*(undefined4 *)*param_1)" (parenthesized_expression "(*(code *)PTR_toint_000b24f4)" (( "(") (pointer_expression "*(code *)PTR_toint_000b24f4" (* "*") (cast_expression "(code *)PTR_toint_000b24f4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_toint_000b24f4"))) () ")")) (argument_list "(*(undefined4 *)*param_1)" (( "(") (pointer_expression "*(undefined4 *)*param_1" (* "*") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) () ")")))) (; ";")) (expression_statement "*param_4 = iVar1;" (assignment_expression "*param_4 = iVar1" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (-1 < iVar1) {\n    iVar1 = *param_2 + -4;\n    iVar2 = *param_1 + 4;\n    *param_2 = iVar1;\n    *param_1 = iVar2;\n    iVar3 = *param_4;\n    if (iVar3 <= iVar1) {\n      *param_3 = iVar2;\n      *param_1 = iVar2 + iVar3;\n      *param_2 = iVar1 - iVar3;\n    }\n  }" (if "if") (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n    iVar1 = *param_2 + -4;\n    iVar2 = *param_1 + 4;\n    *param_2 = iVar1;\n    *param_1 = iVar2;\n    iVar3 = *param_4;\n    if (iVar3 <= iVar1) {\n      *param_3 = iVar2;\n      *param_1 = iVar2 + iVar3;\n      *param_2 = iVar1 - iVar3;\n    }\n  }" ({ "{") (expression_statement "iVar1 = *param_2 + -4;" (assignment_expression "iVar1 = *param_2 + -4" (identifier "iVar1") (= "=") (binary_expression "*param_2 + -4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "-4"))) (; ";")) (expression_statement "iVar2 = *param_1 + 4;" (assignment_expression "iVar2 = *param_1 + 4" (identifier "iVar2") (= "=") (binary_expression "*param_1 + 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "4"))) (; ";")) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar3 = *param_4;" (assignment_expression "iVar3 = *param_4" (identifier "iVar3") (= "=") (pointer_expression "*param_4" (* "*") (identifier "param_4"))) (; ";")) (if_statement "if (iVar3 <= iVar1) {\n      *param_3 = iVar2;\n      *param_1 = iVar2 + iVar3;\n      *param_2 = iVar1 - iVar3;\n    }" (if "if") (parenthesized_expression "(iVar3 <= iVar1)" (( "(") (binary_expression "iVar3 <= iVar1" (identifier "iVar3") (<= "<=") (identifier "iVar1")) () ")")) (compound_statement "{\n      *param_3 = iVar2;\n      *param_1 = iVar2 + iVar3;\n      *param_2 = iVar1 - iVar3;\n    }" ({ "{") (expression_statement "*param_3 = iVar2;" (assignment_expression "*param_3 = iVar2" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*param_1 = iVar2 + iVar3;" (assignment_expression "*param_1 = iVar2 + iVar3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "iVar2 + iVar3" (identifier "iVar2") (+ "+") (identifier "iVar3"))) (; ";")) (expression_statement "*param_2 = iVar1 - iVar3;" (assignment_expression "*param_2 = iVar1 - iVar3" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "iVar1 - iVar3" (identifier "iVar1") (- "-") (identifier "iVar3"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))))))) (return_statement))))

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

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  iVar1 = *param_2;
  *param_3 = 0;
  if (iVar1 < 4) {
    return;
  }
  iVar1 = (*(code *)PTR_toint_000b24f4)(*(undefined4 *)*param_1);
  *param_4 = iVar1;
  if (-1 < iVar1) {
    iVar1 = *param_2 + -4;
    iVar2 = *param_1 + 4;
    *param_2 = iVar1;
    *param_1 = iVar2;
    iVar3 = *param_4;
    if (iVar3 <= iVar1) {
      *param_3 = iVar2;
      *param_1 = iVar2 + iVar3;
      *param_2 = iVar1 - iVar3;
    }
  }
  return;
}

