
int fts3CompareElemByTerm(void *lhs,void *rhs)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
  iVar3 = *(int *)(*lhs + 0x10);
  iVar2 = *(int *)(*rhs + 0x10);
  iVar1 = iVar2;
  if (iVar3 <= iVar2) {
    iVar1 = iVar3;
  }
  iVar1 = (*(code *)PTR_memcmp_00190e0c)
                    (*(undefined4 *)(*lhs + 0xc),*(undefined4 *)(*rhs + 0xc),iVar1);
  if (iVar1 == 0) {
    iVar1 = iVar3 - iVar2;
  }
  return iVar1;
}



int FUN_0004ba78(int *param_1,int *param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  iVar3 = *(int *)(*param_1 + 0x10);
  iVar2 = *(int *)(*param_2 + 0x10);
  iVar1 = iVar2;
  if (iVar3 <= iVar2) {
    iVar1 = iVar3;
  }
  iVar1 = (*(code *)PTR_memcmp_00190e0c)
                    (*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1);
  if (iVar1 == 0) {
    iVar1 = iVar3 - iVar2;
  }
  return iVar1;
}


lui gp,0x15
addiu gp,gp,-0x3158
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7b14(gp)
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
lw v0,0x0(a0)
lw v1,0x0(a1)
lw s1,0x10(v0)
lw s0,0x10(v1)
lw a0,0xc(v0)
lw a1,0xc(v1)
slt a2,s0,s1
or v0,s0,zero
movz v0,s1,a2
jalr t9
_or a2,v0,zero
bne v0,zero,0x0004bad4
_lw ra,0x24(sp)
subu v0,s1,s0
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "int FUN_0004ba78(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(*param_1 + 0x10);\n  iVar2 = *(int *)(*param_2 + 0x10);\n  iVar1 = iVar2;\n  if (iVar3 <= iVar2) {\n    iVar1 = iVar3;\n  }\n  iVar1 = (*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1);\n  if (iVar1 == 0) {\n    iVar1 = iVar3 - iVar2;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0004ba78(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(*param_1 + 0x10);\n  iVar2 = *(int *)(*param_2 + 0x10);\n  iVar1 = iVar2;\n  if (iVar3 <= iVar2) {\n    iVar1 = iVar3;\n  }\n  iVar1 = (*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1);\n  if (iVar1 == 0) {\n    iVar1 = iVar3 - iVar2;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0004ba78(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(*param_1 + 0x10);\n  iVar2 = *(int *)(*param_2 + 0x10);\n  iVar1 = iVar2;\n  if (iVar3 <= iVar2) {\n    iVar1 = iVar3;\n  }\n  iVar1 = (*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1);\n  if (iVar1 == 0) {\n    iVar1 = iVar3 - iVar2;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)(*param_1 + 0x10);" (assignment_expression "iVar3 = *(int *)(*param_1 + 0x10)" identifier = (pointer_expression "*(int *)(*param_1 + 0x10)" * (cast_expression "(int *)(*param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x10)" ( (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(*param_2 + 0x10);" (assignment_expression "iVar2 = *(int *)(*param_2 + 0x10)" identifier = (pointer_expression "*(int *)(*param_2 + 0x10)" * (cast_expression "(int *)(*param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 0x10)" ( (binary_expression "*param_2 + 0x10" (pointer_expression "*param_2" * identifier) + number_literal) ))))) ;) (expression_statement "iVar1 = iVar2;" (assignment_expression "iVar1 = iVar2" identifier = identifier) ;) (if_statement "if (iVar3 <= iVar2) {\n    iVar1 = iVar3;\n  }" if (parenthesized_expression "(iVar3 <= iVar2)" ( (binary_expression "iVar3 <= iVar2" identifier <= identifier) )) (compound_statement "{\n    iVar1 = iVar3;\n  }" { (expression_statement "iVar1 = iVar3;" (assignment_expression "iVar1 = iVar3" identifier = identifier) ;) })) (expression_statement "iVar1 = (*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1);" (assignment_expression "iVar1 = (*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1)" identifier = (call_expression "(*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1)" (parenthesized_expression "(*(code *)PTR_memcmp_00190e0c)" ( (pointer_expression "*(code *)PTR_memcmp_00190e0c" * (cast_expression "(code *)PTR_memcmp_00190e0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1)" ( (pointer_expression "*(undefined4 *)(*param_1 + 0xc)" * (cast_expression "(undefined4 *)(*param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) , (pointer_expression "*(undefined4 *)(*param_2 + 0xc)" * (cast_expression "(undefined4 *)(*param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 0xc)" ( (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" * identifier) + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = iVar3 - iVar2;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = iVar3 - iVar2;\n  }" { (expression_statement "iVar1 = iVar3 - iVar2;" (assignment_expression "iVar1 = iVar3 - iVar2" identifier = (binary_expression "iVar3 - iVar2" identifier - identifier)) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int fts3CompareElemByTerm(void *lhs,void *rhs)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n  iVar3 = *(int *)(*lhs + 0x10);\n  iVar2 = *(int *)(*rhs + 0x10);\n  iVar1 = iVar2;\n  if (iVar3 <= iVar2) {\n    iVar1 = iVar3;\n  }\n  iVar1 = (*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*lhs + 0xc),*(undefined4 *)(*rhs + 0xc),iVar1);\n  if (iVar1 == 0) {\n    iVar1 = iVar3 - iVar2;\n  }\n  return iVar1;\n}\n\n" (function_definition "int fts3CompareElemByTerm(void *lhs,void *rhs)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n  iVar3 = *(int *)(*lhs + 0x10);\n  iVar2 = *(int *)(*rhs + 0x10);\n  iVar1 = iVar2;\n  if (iVar3 <= iVar2) {\n    iVar1 = iVar3;\n  }\n  iVar1 = (*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*lhs + 0xc),*(undefined4 *)(*rhs + 0xc),iVar1);\n  if (iVar1 == 0) {\n    iVar1 = iVar3 - iVar2;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "fts3CompareElemByTerm(void *lhs,void *rhs)" identifier (parameter_list "(void *lhs,void *rhs)" ( (parameter_declaration "void *lhs" primitive_type (pointer_declarator "*lhs" * identifier)) , (parameter_declaration "void *rhs" primitive_type (pointer_declarator "*rhs" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n  iVar3 = *(int *)(*lhs + 0x10);\n  iVar2 = *(int *)(*rhs + 0x10);\n  iVar1 = iVar2;\n  if (iVar3 <= iVar2) {\n    iVar1 = iVar3;\n  }\n  iVar1 = (*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*lhs + 0xc),*(undefined4 *)(*rhs + 0xc),iVar1);\n  if (iVar1 == 0) {\n    iVar1 = iVar3 - iVar2;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) comment comment (expression_statement "iVar3 = *(int *)(*lhs + 0x10);" (assignment_expression "iVar3 = *(int *)(*lhs + 0x10)" identifier = (pointer_expression "*(int *)(*lhs + 0x10)" * (cast_expression "(int *)(*lhs + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*lhs + 0x10)" ( (binary_expression "*lhs + 0x10" (pointer_expression "*lhs" * identifier) + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(*rhs + 0x10);" (assignment_expression "iVar2 = *(int *)(*rhs + 0x10)" identifier = (pointer_expression "*(int *)(*rhs + 0x10)" * (cast_expression "(int *)(*rhs + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*rhs + 0x10)" ( (binary_expression "*rhs + 0x10" (pointer_expression "*rhs" * identifier) + number_literal) ))))) ;) (expression_statement "iVar1 = iVar2;" (assignment_expression "iVar1 = iVar2" identifier = identifier) ;) (if_statement "if (iVar3 <= iVar2) {\n    iVar1 = iVar3;\n  }" if (parenthesized_expression "(iVar3 <= iVar2)" ( (binary_expression "iVar3 <= iVar2" identifier <= identifier) )) (compound_statement "{\n    iVar1 = iVar3;\n  }" { (expression_statement "iVar1 = iVar3;" (assignment_expression "iVar1 = iVar3" identifier = identifier) ;) })) (expression_statement "iVar1 = (*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*lhs + 0xc),*(undefined4 *)(*rhs + 0xc),iVar1);" (assignment_expression "iVar1 = (*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*lhs + 0xc),*(undefined4 *)(*rhs + 0xc),iVar1)" identifier = (call_expression "(*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*lhs + 0xc),*(undefined4 *)(*rhs + 0xc),iVar1)" (parenthesized_expression "(*(code *)PTR_memcmp_00190e0c)" ( (pointer_expression "*(code *)PTR_memcmp_00190e0c" * (cast_expression "(code *)PTR_memcmp_00190e0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(*lhs + 0xc),*(undefined4 *)(*rhs + 0xc),iVar1)" ( (pointer_expression "*(undefined4 *)(*lhs + 0xc)" * (cast_expression "(undefined4 *)(*lhs + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*lhs + 0xc)" ( (binary_expression "*lhs + 0xc" (pointer_expression "*lhs" * identifier) + number_literal) )))) , (pointer_expression "*(undefined4 *)(*rhs + 0xc)" * (cast_expression "(undefined4 *)(*rhs + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*rhs + 0xc)" ( (binary_expression "*rhs + 0xc" (pointer_expression "*rhs" * identifier) + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = iVar3 - iVar2;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = iVar3 - iVar2;\n  }" { (expression_statement "iVar1 = iVar3 - iVar2;" (assignment_expression "iVar1 = iVar3 - iVar2" identifier = (binary_expression "iVar3 - iVar2" identifier - identifier)) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_0004ba78(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(*param_1 + 0x10);\n  iVar2 = *(int *)(*param_2 + 0x10);\n  iVar1 = iVar2;\n  if (iVar3 <= iVar2) {\n    iVar1 = iVar3;\n  }\n  iVar1 = (*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1);\n  if (iVar1 == 0) {\n    iVar1 = iVar3 - iVar2;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0004ba78(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(*param_1 + 0x10);\n  iVar2 = *(int *)(*param_2 + 0x10);\n  iVar1 = iVar2;\n  if (iVar3 <= iVar2) {\n    iVar1 = iVar3;\n  }\n  iVar1 = (*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1);\n  if (iVar1 == 0) {\n    iVar1 = iVar3 - iVar2;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0004ba78(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(*param_1 + 0x10);\n  iVar2 = *(int *)(*param_2 + 0x10);\n  iVar1 = iVar2;\n  if (iVar3 <= iVar2) {\n    iVar1 = iVar3;\n  }\n  iVar1 = (*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1);\n  if (iVar1 == 0) {\n    iVar1 = iVar3 - iVar2;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)(*param_1 + 0x10);" (assignment_expression "iVar3 = *(int *)(*param_1 + 0x10)" identifier = (pointer_expression "*(int *)(*param_1 + 0x10)" * (cast_expression "(int *)(*param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x10)" ( (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(*param_2 + 0x10);" (assignment_expression "iVar2 = *(int *)(*param_2 + 0x10)" identifier = (pointer_expression "*(int *)(*param_2 + 0x10)" * (cast_expression "(int *)(*param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 0x10)" ( (binary_expression "*param_2 + 0x10" (pointer_expression "*param_2" * identifier) + number_literal) ))))) ;) (expression_statement "iVar1 = iVar2;" (assignment_expression "iVar1 = iVar2" identifier = identifier) ;) (if_statement "if (iVar3 <= iVar2) {\n    iVar1 = iVar3;\n  }" if (parenthesized_expression "(iVar3 <= iVar2)" ( (binary_expression "iVar3 <= iVar2" identifier <= identifier) )) (compound_statement "{\n    iVar1 = iVar3;\n  }" { (expression_statement "iVar1 = iVar3;" (assignment_expression "iVar1 = iVar3" identifier = identifier) ;) })) (expression_statement "iVar1 = (*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1);" (assignment_expression "iVar1 = (*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1)" identifier = (call_expression "(*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1)" (parenthesized_expression "(*(code *)PTR_memcmp_00190e0c)" ( (pointer_expression "*(code *)PTR_memcmp_00190e0c" * (cast_expression "(code *)PTR_memcmp_00190e0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1)" ( (pointer_expression "*(undefined4 *)(*param_1 + 0xc)" * (cast_expression "(undefined4 *)(*param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) , (pointer_expression "*(undefined4 *)(*param_2 + 0xc)" * (cast_expression "(undefined4 *)(*param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 0xc)" ( (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" * identifier) + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = iVar3 - iVar2;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = iVar3 - iVar2;\n  }" { (expression_statement "iVar1 = iVar3 - iVar2;" (assignment_expression "iVar1 = iVar3 - iVar2" identifier = (binary_expression "iVar3 - iVar2" identifier - identifier)) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0004ba78(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(*param_1 + 0x10);\n  iVar2 = *(int *)(*param_2 + 0x10);\n  iVar1 = iVar2;\n  if (iVar3 <= iVar2) {\n    iVar1 = iVar3;\n  }\n  iVar1 = (*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1);\n  if (iVar1 == 0) {\n    iVar1 = iVar3 - iVar2;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0004ba78(int *param_1,int *param_2)" (identifier "FUN_0004ba78") (parameter_list "(int *param_1,int *param_2)" (( "(") (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"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(*param_1 + 0x10);\n  iVar2 = *(int *)(*param_2 + 0x10);\n  iVar1 = iVar2;\n  if (iVar3 <= iVar2) {\n    iVar1 = iVar3;\n  }\n  iVar1 = (*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1);\n  if (iVar1 == 0) {\n    iVar1 = iVar3 - iVar2;\n  }\n  return iVar1;\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 "iVar3 = *(int *)(*param_1 + 0x10);" (assignment_expression "iVar3 = *(int *)(*param_1 + 0x10)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(*param_1 + 0x10)" (* "*") (cast_expression "(int *)(*param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x10)" (( "(") (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(*param_2 + 0x10);" (assignment_expression "iVar2 = *(int *)(*param_2 + 0x10)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(*param_2 + 0x10)" (* "*") (cast_expression "(int *)(*param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + 0x10)" (( "(") (binary_expression "*param_2 + 0x10" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "iVar1 = iVar2;" (assignment_expression "iVar1 = iVar2" (identifier "iVar1") (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar3 <= iVar2) {\n    iVar1 = iVar3;\n  }" (if "if") (parenthesized_expression "(iVar3 <= iVar2)" (( "(") (binary_expression "iVar3 <= iVar2" (identifier "iVar3") (<= "<=") (identifier "iVar2")) () ")")) (compound_statement "{\n    iVar1 = iVar3;\n  }" ({ "{") (expression_statement "iVar1 = iVar3;" (assignment_expression "iVar1 = iVar3" (identifier "iVar1") (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1);" (assignment_expression "iVar1 = (*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_memcmp_00190e0c)\n                    (*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1)" (parenthesized_expression "(*(code *)PTR_memcmp_00190e0c)" (( "(") (pointer_expression "*(code *)PTR_memcmp_00190e0c" (* "*") (cast_expression "(code *)PTR_memcmp_00190e0c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcmp_00190e0c"))) () ")")) (argument_list "(*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1)" (( "(") (pointer_expression "*(undefined4 *)(*param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(*param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xc)" (( "(") (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(*param_2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(*param_2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + 0xc)" (( "(") (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0xc")) () ")")))) (, ",") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    iVar1 = iVar3 - iVar2;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = iVar3 - iVar2;\n  }" ({ "{") (expression_statement "iVar1 = iVar3 - iVar2;" (assignment_expression "iVar1 = iVar3 - iVar2" (identifier "iVar1") (= "=") (binary_expression "iVar3 - iVar2" (identifier "iVar3") (- "-") (identifier "iVar2"))) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

int function_1(void *lhs,void *rhs)

{
  int var_3;
  int var_2;
  int var_1;
  
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
  var_1 = *(int *)(*lhs + 0x10);
  var_2 = *(int *)(*rhs + 0x10);
  var_3 = var_2;
  if (var_1 <= var_2) {
    var_3 = var_1;
  }
  var_3 = (*(type_1 *)PTR_memcmp_00190e0c)
                    (*(type_2 *)(*lhs + 0xc),*(type_2 *)(*rhs + 0xc),var_3);
  if (var_3 == 0) {
    var_3 = var_1 - var_2;
  }
  return var_3;
}


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

int MASKED(int *param_1,int *param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  iVar3 = *(int *)(*param_1 + 0x10);
  iVar2 = *(int *)(*param_2 + 0x10);
  iVar1 = iVar2;
  if (iVar3 <= iVar2) {
    iVar1 = iVar3;
  }
  iVar1 = (*(code *)PTR_memcmp_00190e0c)
                    (*(undefined4 *)(*param_1 + 0xc),*(undefined4 *)(*param_2 + 0xc),iVar1);
  if (iVar1 == 0) {
    iVar1 = iVar3 - iVar2;
  }
  return iVar1;
}

