
int compare_timers(void *av,void *bv)

{
  int iVar1;
  int iVar2;
  timer *a;
  timer *b;
  
  iVar1 = *(int *)((int)av + 8) - *(int *)(PTR_data_start_000b0178 + 0x1480);
  iVar2 = *(int *)((int)bv + 8) - *(int *)(PTR_data_start_000b0178 + 0x1480);
  if (iVar1 < iVar2) {
    return -1;
  }
  if (iVar1 <= iVar2) {
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
    if (*av < *bv) {
      return -1;
    }
    if (*av <= *bv) {
      if (*(uint *)((int)av + 4) < *(uint *)((int)bv + 4)) {
        return -1;
      }
      return (uint)(*(uint *)((int)bv + 4) < *(uint *)((int)av + 4));
    }
  }
  return 1;
}



uint FUN_0007c96c(uint *param_1,uint *param_2)

{
  int iVar1;
  int iVar2;
  
  iVar1 = param_1[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);
  iVar2 = param_2[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);
  if (iVar1 < iVar2) {
    return 0xffffffff;
  }
  if (iVar1 <= iVar2) {
    if (*param_1 < *param_2) {
      return 0xffffffff;
    }
    if (*param_1 <= *param_2) {
      if (param_1[1] < param_2[1]) {
        return 0xffffffff;
      }
      return (uint)(param_2[1] < param_1[1]);
    }
  }
  return 1;
}


lui gp,0x4
addiu gp,gp,-0x481c
addu gp,gp,t9
lw a2,-0x7fd8(gp)
lw v0,0x8(a0)
lw v1,0x8(a1)
lw a2,0x1480(a2)
subu v0,v0,a2
subu v1,v1,a2
slt a2,v0,v1
bne a2,zero,0x0007c9ec
_nop
slt v0,v1,v0
bne v0,zero,0x0007c9e4
_nop
lw v0,0x0(a0)
lw v1,0x0(a1)
sltu a2,v0,v1
bne a2,zero,0x0007c9ec
_nop
sltu v0,v1,v0
bne v0,zero,0x0007c9e4
_nop
lw v0,0x4(a0)
lw v1,0x4(a1)
sltu a0,v0,v1
bne a0,zero,0x0007c9f4
_nop
jr ra
_sltu v0,v1,v0
jr ra
_li v0,0x1
jr ra
_li v0,-0x1
jr ra
_li v0,-0x1
(translation_unit "uint FUN_0007c96c(uint *param_1,uint *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = param_1[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);\n  iVar2 = param_2[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);\n  if (iVar1 < iVar2) {\n    return 0xffffffff;\n  }\n  if (iVar1 <= iVar2) {\n    if (*param_1 < *param_2) {\n      return 0xffffffff;\n    }\n    if (*param_1 <= *param_2) {\n      if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }\n  return 1;\n}\n\n" (function_definition "uint FUN_0007c96c(uint *param_1,uint *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = param_1[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);\n  iVar2 = param_2[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);\n  if (iVar1 < iVar2) {\n    return 0xffffffff;\n  }\n  if (iVar1 <= iVar2) {\n    if (*param_1 < *param_2) {\n      return 0xffffffff;\n    }\n    if (*param_1 <= *param_2) {\n      if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_0007c96c(uint *param_1,uint *param_2)" identifier (parameter_list "(uint *param_1,uint *param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = param_1[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);\n  iVar2 = param_2[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);\n  if (iVar1 < iVar2) {\n    return 0xffffffff;\n  }\n  if (iVar1 <= iVar2) {\n    if (*param_1 < *param_2) {\n      return 0xffffffff;\n    }\n    if (*param_1 <= *param_2) {\n      if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = param_1[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);" (assignment_expression "iVar1 = param_1[2] - *(int *)(PTR_DAT_000b0178 + 0x1480)" identifier = (binary_expression "param_1[2] - *(int *)(PTR_DAT_000b0178 + 0x1480)" (subscript_expression "param_1[2]" identifier [ number_literal ]) - (pointer_expression "*(int *)(PTR_DAT_000b0178 + 0x1480)" * (cast_expression "(int *)(PTR_DAT_000b0178 + 0x1480)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b0178 + 0x1480)" ( (binary_expression "PTR_DAT_000b0178 + 0x1480" identifier + number_literal) )))))) ;) (expression_statement "iVar2 = param_2[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);" (assignment_expression "iVar2 = param_2[2] - *(int *)(PTR_DAT_000b0178 + 0x1480)" identifier = (binary_expression "param_2[2] - *(int *)(PTR_DAT_000b0178 + 0x1480)" (subscript_expression "param_2[2]" identifier [ number_literal ]) - (pointer_expression "*(int *)(PTR_DAT_000b0178 + 0x1480)" * (cast_expression "(int *)(PTR_DAT_000b0178 + 0x1480)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b0178 + 0x1480)" ( (binary_expression "PTR_DAT_000b0178 + 0x1480" identifier + number_literal) )))))) ;) (if_statement "if (iVar1 < iVar2) {\n    return 0xffffffff;\n  }" if (parenthesized_expression "(iVar1 < iVar2)" ( (binary_expression "iVar1 < iVar2" identifier < identifier) )) (compound_statement "{\n    return 0xffffffff;\n  }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (if_statement "if (iVar1 <= iVar2) {\n    if (*param_1 < *param_2) {\n      return 0xffffffff;\n    }\n    if (*param_1 <= *param_2) {\n      if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }" if (parenthesized_expression "(iVar1 <= iVar2)" ( (binary_expression "iVar1 <= iVar2" identifier <= identifier) )) (compound_statement "{\n    if (*param_1 < *param_2) {\n      return 0xffffffff;\n    }\n    if (*param_1 <= *param_2) {\n      if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }" { (if_statement "if (*param_1 < *param_2) {\n      return 0xffffffff;\n    }" if (parenthesized_expression "(*param_1 < *param_2)" ( (binary_expression "*param_1 < *param_2" (pointer_expression "*param_1" * identifier) < (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n      return 0xffffffff;\n    }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (if_statement "if (*param_1 <= *param_2) {\n      if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }\n      return (uint)(param_2[1] < param_1[1]);\n    }" if (parenthesized_expression "(*param_1 <= *param_2)" ( (binary_expression "*param_1 <= *param_2" (pointer_expression "*param_1" * identifier) <= (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n      if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }\n      return (uint)(param_2[1] < param_1[1]);\n    }" { (if_statement "if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }" if (parenthesized_expression "(param_1[1] < param_2[1])" ( (binary_expression "param_1[1] < param_2[1]" (subscript_expression "param_1[1]" identifier [ number_literal ]) < (subscript_expression "param_2[1]" identifier [ number_literal ])) )) (compound_statement "{\n        return 0xffffffff;\n      }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (return_statement "return (uint)(param_2[1] < param_1[1]);" return (call_expression "(uint)(param_2[1] < param_1[1])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2[1] < param_1[1])" ( (binary_expression "param_2[1] < param_1[1]" (subscript_expression "param_2[1]" identifier [ number_literal ]) < (subscript_expression "param_1[1]" identifier [ number_literal ])) ))) ;) })) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int compare_timers(void *av,void *bv)\n\n{\n  int iVar1;\n  int iVar2;\n  timer *a;\n  timer *b;\n  \n  iVar1 = *(int *)((int)av + 8) - *(int *)(PTR_data_start_000b0178 + 0x1480);\n  iVar2 = *(int *)((int)bv + 8) - *(int *)(PTR_data_start_000b0178 + 0x1480);\n  if (iVar1 < iVar2) {\n    return -1;\n  }\n  if (iVar1 <= iVar2) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n    if (*av < *bv) {\n      return -1;\n    }\n    if (*av <= *bv) {\n      if (*(uint *)((int)av + 4) < *(uint *)((int)bv + 4)) {\n        return -1;\n      }\n      return (uint)(*(uint *)((int)bv + 4) < *(uint *)((int)av + 4));\n    }\n  }\n  return 1;\n}\n\n" (function_definition "int compare_timers(void *av,void *bv)\n\n{\n  int iVar1;\n  int iVar2;\n  timer *a;\n  timer *b;\n  \n  iVar1 = *(int *)((int)av + 8) - *(int *)(PTR_data_start_000b0178 + 0x1480);\n  iVar2 = *(int *)((int)bv + 8) - *(int *)(PTR_data_start_000b0178 + 0x1480);\n  if (iVar1 < iVar2) {\n    return -1;\n  }\n  if (iVar1 <= iVar2) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n    if (*av < *bv) {\n      return -1;\n    }\n    if (*av <= *bv) {\n      if (*(uint *)((int)av + 4) < *(uint *)((int)bv + 4)) {\n        return -1;\n      }\n      return (uint)(*(uint *)((int)bv + 4) < *(uint *)((int)av + 4));\n    }\n  }\n  return 1;\n}" primitive_type (function_declarator "compare_timers(void *av,void *bv)" identifier (parameter_list "(void *av,void *bv)" ( (parameter_declaration "void *av" primitive_type (pointer_declarator "*av" * identifier)) , (parameter_declaration "void *bv" primitive_type (pointer_declarator "*bv" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  timer *a;\n  timer *b;\n  \n  iVar1 = *(int *)((int)av + 8) - *(int *)(PTR_data_start_000b0178 + 0x1480);\n  iVar2 = *(int *)((int)bv + 8) - *(int *)(PTR_data_start_000b0178 + 0x1480);\n  if (iVar1 < iVar2) {\n    return -1;\n  }\n  if (iVar1 <= iVar2) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n    if (*av < *bv) {\n      return -1;\n    }\n    if (*av <= *bv) {\n      if (*(uint *)((int)av + 4) < *(uint *)((int)bv + 4)) {\n        return -1;\n      }\n      return (uint)(*(uint *)((int)bv + 4) < *(uint *)((int)av + 4));\n    }\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "timer *a;" type_identifier (pointer_declarator "*a" * identifier) ;) (declaration "timer *b;" type_identifier (pointer_declarator "*b" * identifier) ;) (expression_statement "iVar1 = *(int *)((int)av + 8) - *(int *)(PTR_data_start_000b0178 + 0x1480);" (assignment_expression "iVar1 = *(int *)((int)av + 8) - *(int *)(PTR_data_start_000b0178 + 0x1480)" identifier = (binary_expression "*(int *)((int)av + 8) - *(int *)(PTR_data_start_000b0178 + 0x1480)" (pointer_expression "*(int *)((int)av + 8)" * (cast_expression "(int *)((int)av + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)av + 8)" ( (binary_expression "(int)av + 8" (cast_expression "(int)av" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) - (pointer_expression "*(int *)(PTR_data_start_000b0178 + 0x1480)" * (cast_expression "(int *)(PTR_data_start_000b0178 + 0x1480)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_000b0178 + 0x1480)" ( (binary_expression "PTR_data_start_000b0178 + 0x1480" identifier + number_literal) )))))) ;) (expression_statement "iVar2 = *(int *)((int)bv + 8) - *(int *)(PTR_data_start_000b0178 + 0x1480);" (assignment_expression "iVar2 = *(int *)((int)bv + 8) - *(int *)(PTR_data_start_000b0178 + 0x1480)" identifier = (binary_expression "*(int *)((int)bv + 8) - *(int *)(PTR_data_start_000b0178 + 0x1480)" (pointer_expression "*(int *)((int)bv + 8)" * (cast_expression "(int *)((int)bv + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)bv + 8)" ( (binary_expression "(int)bv + 8" (cast_expression "(int)bv" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) - (pointer_expression "*(int *)(PTR_data_start_000b0178 + 0x1480)" * (cast_expression "(int *)(PTR_data_start_000b0178 + 0x1480)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_000b0178 + 0x1480)" ( (binary_expression "PTR_data_start_000b0178 + 0x1480" identifier + number_literal) )))))) ;) (if_statement "if (iVar1 < iVar2) {\n    return -1;\n  }" if (parenthesized_expression "(iVar1 < iVar2)" ( (binary_expression "iVar1 < iVar2" identifier < identifier) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })) (if_statement "if (iVar1 <= iVar2) {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n    if (*av < *bv) {\n      return -1;\n    }\n    if (*av <= *bv) {\n      if (*(uint *)((int)av + 4) < *(uint *)((int)bv + 4)) {\n        return -1;\n      }\n      return (uint)(*(uint *)((int)bv + 4) < *(uint *)((int)av + 4));\n    }\n  }" if (parenthesized_expression "(iVar1 <= iVar2)" ( (binary_expression "iVar1 <= iVar2" identifier <= identifier) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n    if (*av < *bv) {\n      return -1;\n    }\n    if (*av <= *bv) {\n      if (*(uint *)((int)av + 4) < *(uint *)((int)bv + 4)) {\n        return -1;\n      }\n      return (uint)(*(uint *)((int)bv + 4) < *(uint *)((int)av + 4));\n    }\n  }" { comment comment (if_statement "if (*av < *bv) {\n      return -1;\n    }" if (parenthesized_expression "(*av < *bv)" ( (binary_expression "*av < *bv" (pointer_expression "*av" * identifier) < (pointer_expression "*bv" * identifier)) )) (compound_statement "{\n      return -1;\n    }" { (return_statement "return -1;" return number_literal ;) })) (if_statement "if (*av <= *bv) {\n      if (*(uint *)((int)av + 4) < *(uint *)((int)bv + 4)) {\n        return -1;\n      }\n      return (uint)(*(uint *)((int)bv + 4) < *(uint *)((int)av + 4));\n    }" if (parenthesized_expression "(*av <= *bv)" ( (binary_expression "*av <= *bv" (pointer_expression "*av" * identifier) <= (pointer_expression "*bv" * identifier)) )) (compound_statement "{\n      if (*(uint *)((int)av + 4) < *(uint *)((int)bv + 4)) {\n        return -1;\n      }\n      return (uint)(*(uint *)((int)bv + 4) < *(uint *)((int)av + 4));\n    }" { (if_statement "if (*(uint *)((int)av + 4) < *(uint *)((int)bv + 4)) {\n        return -1;\n      }" if (parenthesized_expression "(*(uint *)((int)av + 4) < *(uint *)((int)bv + 4))" ( (binary_expression "*(uint *)((int)av + 4) < *(uint *)((int)bv + 4)" (pointer_expression "*(uint *)((int)av + 4)" * (cast_expression "(uint *)((int)av + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)av + 4)" ( (binary_expression "(int)av + 4" (cast_expression "(int)av" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) < (pointer_expression "*(uint *)((int)bv + 4)" * (cast_expression "(uint *)((int)bv + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)bv + 4)" ( (binary_expression "(int)bv + 4" (cast_expression "(int)bv" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) (compound_statement "{\n        return -1;\n      }" { (return_statement "return -1;" return number_literal ;) })) (return_statement "return (uint)(*(uint *)((int)bv + 4) < *(uint *)((int)av + 4));" return (call_expression "(uint)(*(uint *)((int)bv + 4) < *(uint *)((int)av + 4))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)((int)bv + 4) < *(uint *)((int)av + 4))" ( (binary_expression "*(uint *)((int)bv + 4) < *(uint *)((int)av + 4)" (pointer_expression "*(uint *)((int)bv + 4)" * (cast_expression "(uint *)((int)bv + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)bv + 4)" ( (binary_expression "(int)bv + 4" (cast_expression "(int)bv" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) < (pointer_expression "*(uint *)((int)av + 4)" * (cast_expression "(uint *)((int)av + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)av + 4)" ( (binary_expression "(int)av + 4" (cast_expression "(int)av" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ))) ;) })) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "uint FUN_0007c96c(uint *param_1,uint *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = param_1[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);\n  iVar2 = param_2[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);\n  if (iVar1 < iVar2) {\n    return 0xffffffff;\n  }\n  if (iVar1 <= iVar2) {\n    if (*param_1 < *param_2) {\n      return 0xffffffff;\n    }\n    if (*param_1 <= *param_2) {\n      if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }\n  return 1;\n}\n\n" (function_definition "uint FUN_0007c96c(uint *param_1,uint *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = param_1[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);\n  iVar2 = param_2[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);\n  if (iVar1 < iVar2) {\n    return 0xffffffff;\n  }\n  if (iVar1 <= iVar2) {\n    if (*param_1 < *param_2) {\n      return 0xffffffff;\n    }\n    if (*param_1 <= *param_2) {\n      if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_0007c96c(uint *param_1,uint *param_2)" identifier (parameter_list "(uint *param_1,uint *param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = param_1[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);\n  iVar2 = param_2[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);\n  if (iVar1 < iVar2) {\n    return 0xffffffff;\n  }\n  if (iVar1 <= iVar2) {\n    if (*param_1 < *param_2) {\n      return 0xffffffff;\n    }\n    if (*param_1 <= *param_2) {\n      if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = param_1[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);" (assignment_expression "iVar1 = param_1[2] - *(int *)(PTR_DAT_000b0178 + 0x1480)" identifier = (binary_expression "param_1[2] - *(int *)(PTR_DAT_000b0178 + 0x1480)" (subscript_expression "param_1[2]" identifier [ number_literal ]) - (pointer_expression "*(int *)(PTR_DAT_000b0178 + 0x1480)" * (cast_expression "(int *)(PTR_DAT_000b0178 + 0x1480)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b0178 + 0x1480)" ( (binary_expression "PTR_DAT_000b0178 + 0x1480" identifier + number_literal) )))))) ;) (expression_statement "iVar2 = param_2[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);" (assignment_expression "iVar2 = param_2[2] - *(int *)(PTR_DAT_000b0178 + 0x1480)" identifier = (binary_expression "param_2[2] - *(int *)(PTR_DAT_000b0178 + 0x1480)" (subscript_expression "param_2[2]" identifier [ number_literal ]) - (pointer_expression "*(int *)(PTR_DAT_000b0178 + 0x1480)" * (cast_expression "(int *)(PTR_DAT_000b0178 + 0x1480)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b0178 + 0x1480)" ( (binary_expression "PTR_DAT_000b0178 + 0x1480" identifier + number_literal) )))))) ;) (if_statement "if (iVar1 < iVar2) {\n    return 0xffffffff;\n  }" if (parenthesized_expression "(iVar1 < iVar2)" ( (binary_expression "iVar1 < iVar2" identifier < identifier) )) (compound_statement "{\n    return 0xffffffff;\n  }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (if_statement "if (iVar1 <= iVar2) {\n    if (*param_1 < *param_2) {\n      return 0xffffffff;\n    }\n    if (*param_1 <= *param_2) {\n      if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }" if (parenthesized_expression "(iVar1 <= iVar2)" ( (binary_expression "iVar1 <= iVar2" identifier <= identifier) )) (compound_statement "{\n    if (*param_1 < *param_2) {\n      return 0xffffffff;\n    }\n    if (*param_1 <= *param_2) {\n      if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }" { (if_statement "if (*param_1 < *param_2) {\n      return 0xffffffff;\n    }" if (parenthesized_expression "(*param_1 < *param_2)" ( (binary_expression "*param_1 < *param_2" (pointer_expression "*param_1" * identifier) < (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n      return 0xffffffff;\n    }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (if_statement "if (*param_1 <= *param_2) {\n      if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }\n      return (uint)(param_2[1] < param_1[1]);\n    }" if (parenthesized_expression "(*param_1 <= *param_2)" ( (binary_expression "*param_1 <= *param_2" (pointer_expression "*param_1" * identifier) <= (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n      if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }\n      return (uint)(param_2[1] < param_1[1]);\n    }" { (if_statement "if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }" if (parenthesized_expression "(param_1[1] < param_2[1])" ( (binary_expression "param_1[1] < param_2[1]" (subscript_expression "param_1[1]" identifier [ number_literal ]) < (subscript_expression "param_2[1]" identifier [ number_literal ])) )) (compound_statement "{\n        return 0xffffffff;\n      }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (return_statement "return (uint)(param_2[1] < param_1[1]);" return (call_expression "(uint)(param_2[1] < param_1[1])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2[1] < param_1[1])" ( (binary_expression "param_2[1] < param_1[1]" (subscript_expression "param_2[1]" identifier [ number_literal ]) < (subscript_expression "param_1[1]" identifier [ number_literal ])) ))) ;) })) })) (return_statement "return 1;" return number_literal ;) })))
(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 ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT)) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) <= (pointer_expression * IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < (subscript_expression IDENT [ LIT ])) )) (compound_statement { (return_statement return LIT ;) })) (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) < (subscript_expression IDENT [ LIT ])) ))) ;) })) })) (return_statement return LIT ;) })))
(function_definition "uint FUN_0007c96c(uint *param_1,uint *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = param_1[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);\n  iVar2 = param_2[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);\n  if (iVar1 < iVar2) {\n    return 0xffffffff;\n  }\n  if (iVar1 <= iVar2) {\n    if (*param_1 < *param_2) {\n      return 0xffffffff;\n    }\n    if (*param_1 <= *param_2) {\n      if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }\n  return 1;\n}" (type_identifier "uint") (function_declarator "FUN_0007c96c(uint *param_1,uint *param_2)" (identifier "FUN_0007c96c") (parameter_list "(uint *param_1,uint *param_2)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = param_1[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);\n  iVar2 = param_2[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);\n  if (iVar1 < iVar2) {\n    return 0xffffffff;\n  }\n  if (iVar1 <= iVar2) {\n    if (*param_1 < *param_2) {\n      return 0xffffffff;\n    }\n    if (*param_1 <= *param_2) {\n      if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar1 = param_1[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);" (assignment_expression "iVar1 = param_1[2] - *(int *)(PTR_DAT_000b0178 + 0x1480)" (identifier "iVar1") (= "=") (binary_expression "param_1[2] - *(int *)(PTR_DAT_000b0178 + 0x1480)" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (- "-") (pointer_expression "*(int *)(PTR_DAT_000b0178 + 0x1480)" (* "*") (cast_expression "(int *)(PTR_DAT_000b0178 + 0x1480)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b0178 + 0x1480)" (( "(") (binary_expression "PTR_DAT_000b0178 + 0x1480" (identifier "PTR_DAT_000b0178") (+ "+") (number_literal "0x1480")) () ")")))))) (; ";")) (expression_statement "iVar2 = param_2[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);" (assignment_expression "iVar2 = param_2[2] - *(int *)(PTR_DAT_000b0178 + 0x1480)" (identifier "iVar2") (= "=") (binary_expression "param_2[2] - *(int *)(PTR_DAT_000b0178 + 0x1480)" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (- "-") (pointer_expression "*(int *)(PTR_DAT_000b0178 + 0x1480)" (* "*") (cast_expression "(int *)(PTR_DAT_000b0178 + 0x1480)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b0178 + 0x1480)" (( "(") (binary_expression "PTR_DAT_000b0178 + 0x1480" (identifier "PTR_DAT_000b0178") (+ "+") (number_literal "0x1480")) () ")")))))) (; ";")) (if_statement "if (iVar1 < iVar2) {\n    return 0xffffffff;\n  }" (if "if") (parenthesized_expression "(iVar1 < iVar2)" (( "(") (binary_expression "iVar1 < iVar2" (identifier "iVar1") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n    return 0xffffffff;\n  }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (if_statement "if (iVar1 <= iVar2) {\n    if (*param_1 < *param_2) {\n      return 0xffffffff;\n    }\n    if (*param_1 <= *param_2) {\n      if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 <= iVar2)" (( "(") (binary_expression "iVar1 <= iVar2" (identifier "iVar1") (<= "<=") (identifier "iVar2")) () ")")) (compound_statement "{\n    if (*param_1 < *param_2) {\n      return 0xffffffff;\n    }\n    if (*param_1 <= *param_2) {\n      if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }\n      return (uint)(param_2[1] < param_1[1]);\n    }\n  }" ({ "{") (if_statement "if (*param_1 < *param_2) {\n      return 0xffffffff;\n    }" (if "if") (parenthesized_expression "(*param_1 < *param_2)" (( "(") (binary_expression "*param_1 < *param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (< "<") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")) (compound_statement "{\n      return 0xffffffff;\n    }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (if_statement "if (*param_1 <= *param_2) {\n      if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }\n      return (uint)(param_2[1] < param_1[1]);\n    }" (if "if") (parenthesized_expression "(*param_1 <= *param_2)" (( "(") (binary_expression "*param_1 <= *param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (<= "<=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")) (compound_statement "{\n      if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }\n      return (uint)(param_2[1] < param_1[1]);\n    }" ({ "{") (if_statement "if (param_1[1] < param_2[1]) {\n        return 0xffffffff;\n      }" (if "if") (parenthesized_expression "(param_1[1] < param_2[1])" (( "(") (binary_expression "param_1[1] < param_2[1]" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (< "<") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) () ")")) (compound_statement "{\n        return 0xffffffff;\n      }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (return_statement "return (uint)(param_2[1] < param_1[1]);" (return "return") (call_expression "(uint)(param_2[1] < param_1[1])" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_2[1] < param_1[1])" (( "(") (binary_expression "param_2[1] < param_1[1]" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (< "<") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) consequence: (compound_statement (return_statement (number_literal)))) (return_statement (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))))))))) (return_statement (number_literal)))))

uint MASKED(uint *param_1,uint *param_2)

{
  int iVar1;
  int iVar2;
  
  iVar1 = param_1[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);
  iVar2 = param_2[2] - *(int *)(PTR_DAT_000b0178 + 0x1480);
  if (iVar1 < iVar2) {
    return 0xffffffff;
  }
  if (iVar1 <= iVar2) {
    if (*param_1 < *param_2) {
      return 0xffffffff;
    }
    if (*param_1 <= *param_2) {
      if (param_1[1] < param_2[1]) {
        return 0xffffffff;
      }
      return (uint)(param_2[1] < param_1[1]);
    }
  }
  return 1;
}

