
int compare_section_lma(void *arg1,void *arg2)

{
  long lVar1;
  long lVar2;
  ulong uVar3;
  ulong uVar4;
  int iVar5;
  uint uVar6;
  asection **sec2;
  asection **sec1;
  
                    /* WARNING: Load size is inaccurate */
  lVar1 = *arg1;
                    /* WARNING: Load size is inaccurate */
  lVar2 = *arg2;
  uVar6 = *(uint *)(lVar2 + 0x20) & 0x102;
  if ((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102) {
    if (uVar6 != 0x102) {
      return 1;
    }
  }
  else if (uVar6 == 0x102) {
    return -1;
  }
  iVar5 = 1;
  uVar3 = *(ulong *)(lVar2 + 0x30);
  uVar4 = *(ulong *)(lVar1 + 0x30);
  if ((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)) {
    iVar5 = 1;
    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {
      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));
    }
  }
  return iVar5;
}



int FUN_001071d0(long *param_1,long *param_2)

{
  long lVar1;
  long lVar2;
  ulong uVar3;
  ulong uVar4;
  int iVar5;
  uint uVar6;
  
  lVar1 = *param_1;
  lVar2 = *param_2;
  uVar6 = *(uint *)(lVar2 + 0x20) & 0x102;
  if ((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102) {
    if (uVar6 != 0x102) {
      return 1;
    }
  }
  else if (uVar6 == 0x102) {
    return -1;
  }
  iVar5 = 1;
  uVar3 = *(ulong *)(lVar2 + 0x30);
  uVar4 = *(ulong *)(lVar1 + 0x30);
  if ((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)) {
    iVar5 = 1;
    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {
      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));
    }
  }
  return iVar5;
}


MOV RDI,qword ptr [RDI]
MOV RCX,qword ptr [RSI]
MOV EAX,dword ptr [RDI + 0x20]
MOV EDX,dword ptr [RCX + 0x20]
AND EAX,0x102
AND EDX,0x102
CMP EAX,0x102
JZ 0x00107228
MOV EAX,0xffffffff
CMP EDX,0x102
JZ 0x00107240
MOV EAX,0x1
MOV RSI,qword ptr [RCX + 0x30]
CMP qword ptr [RDI + 0x30],RSI
JA 0x00107222
MOV EAX,0xffffffff
JC 0x00107222
MOV EAX,0x1
MOV RCX,qword ptr [RCX + 0x38]
CMP qword ptr [RDI + 0x38],RCX
JA 0x00107222
SBB EAX,EAX
RET
MOV EAX,0x1
CMP EDX,0x102
JZ 0x001071fb
RET
RET
(translation_unit "int FUN_001071d0(long *param_1,long *param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  ulong uVar3;\n  ulong uVar4;\n  int iVar5;\n  uint uVar6;\n  \n  lVar1 = *param_1;\n  lVar2 = *param_2;\n  uVar6 = *(uint *)(lVar2 + 0x20) & 0x102;\n  if ((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102) {\n    if (uVar6 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar6 == 0x102) {\n    return -1;\n  }\n  iVar5 = 1;\n  uVar3 = *(ulong *)(lVar2 + 0x30);\n  uVar4 = *(ulong *)(lVar1 + 0x30);\n  if ((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)) {\n    iVar5 = 1;\n    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }\n  }\n  return iVar5;\n}\n\n" (function_definition "int FUN_001071d0(long *param_1,long *param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  ulong uVar3;\n  ulong uVar4;\n  int iVar5;\n  uint uVar6;\n  \n  lVar1 = *param_1;\n  lVar2 = *param_2;\n  uVar6 = *(uint *)(lVar2 + 0x20) & 0x102;\n  if ((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102) {\n    if (uVar6 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar6 == 0x102) {\n    return -1;\n  }\n  iVar5 = 1;\n  uVar3 = *(ulong *)(lVar2 + 0x30);\n  uVar4 = *(ulong *)(lVar1 + 0x30);\n  if ((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)) {\n    iVar5 = 1;\n    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }\n  }\n  return iVar5;\n}" primitive_type (function_declarator "FUN_001071d0(long *param_1,long *param_2)" identifier (parameter_list "(long *param_1,long *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  ulong uVar3;\n  ulong uVar4;\n  int iVar5;\n  uint uVar6;\n  \n  lVar1 = *param_1;\n  lVar2 = *param_2;\n  uVar6 = *(uint *)(lVar2 + 0x20) & 0x102;\n  if ((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102) {\n    if (uVar6 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar6 == 0x102) {\n    return -1;\n  }\n  iVar5 = 1;\n  uVar3 = *(ulong *)(lVar2 + 0x30);\n  uVar4 = *(ulong *)(lVar1 + 0x30);\n  if ((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)) {\n    iVar5 = 1;\n    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }\n  }\n  return iVar5;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "uVar6 = *(uint *)(lVar2 + 0x20) & 0x102;" (assignment_expression "uVar6 = *(uint *)(lVar2 + 0x20) & 0x102" identifier = (binary_expression "*(uint *)(lVar2 + 0x20) & 0x102" (pointer_expression "*(uint *)(lVar2 + 0x20)" * (cast_expression "(uint *)(lVar2 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x20)" ( (binary_expression "lVar2 + 0x20" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if ((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102) {\n    if (uVar6 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar6 == 0x102) {\n    return -1;\n  }" if (parenthesized_expression "((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102)" ( (binary_expression "(*(uint *)(lVar1 + 0x20) & 0x102) == 0x102" (parenthesized_expression "(*(uint *)(lVar1 + 0x20) & 0x102)" ( (binary_expression "*(uint *)(lVar1 + 0x20) & 0x102" (pointer_expression "*(uint *)(lVar1 + 0x20)" * (cast_expression "(uint *)(lVar1 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (uVar6 != 0x102) {\n      return 1;\n    }\n  }" { (if_statement "if (uVar6 != 0x102) {\n      return 1;\n    }" if (parenthesized_expression "(uVar6 != 0x102)" ( (binary_expression "uVar6 != 0x102" identifier != number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else if (uVar6 == 0x102) {\n    return -1;\n  }" else (if_statement "if (uVar6 == 0x102) {\n    return -1;\n  }" if (parenthesized_expression "(uVar6 == 0x102)" ( (binary_expression "uVar6 == 0x102" identifier == number_literal) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })))) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (expression_statement "uVar3 = *(ulong *)(lVar2 + 0x30);" (assignment_expression "uVar3 = *(ulong *)(lVar2 + 0x30)" identifier = (pointer_expression "*(ulong *)(lVar2 + 0x30)" * (cast_expression "(ulong *)(lVar2 + 0x30)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x30)" ( (binary_expression "lVar2 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(ulong *)(lVar1 + 0x30);" (assignment_expression "uVar4 = *(ulong *)(lVar1 + 0x30)" identifier = (pointer_expression "*(ulong *)(lVar1 + 0x30)" * (cast_expression "(ulong *)(lVar1 + 0x30)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x30)" ( (binary_expression "lVar1 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if ((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)) {\n    iVar5 = 1;\n    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }\n  }" if (parenthesized_expression "((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4))" ( (binary_expression "(uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)" (parenthesized_expression "(uVar3 > uVar4 || uVar4 == uVar3)" ( (binary_expression "uVar3 > uVar4 || uVar4 == uVar3" (binary_expression "uVar3 > uVar4" identifier > identifier) || (binary_expression "uVar4 == uVar3" identifier == identifier)) )) && (parenthesized_expression "(iVar5 = -1, uVar3 <= uVar4)" ( (comma_expression "iVar5 = -1, uVar3 <= uVar4" (assignment_expression "iVar5 = -1" identifier = number_literal) , (binary_expression "uVar3 <= uVar4" identifier <= identifier)) ))) )) (compound_statement "{\n    iVar5 = 1;\n    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }\n  }" { (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (if_statement "if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }" if (parenthesized_expression "(*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38))" ( (binary_expression "*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)" (pointer_expression "*(ulong *)(lVar1 + 0x38)" * (cast_expression "(ulong *)(lVar1 + 0x38)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x38)" ( (binary_expression "lVar1 + 0x38" identifier + number_literal) )))) <= (pointer_expression "*(ulong *)(lVar2 + 0x38)" * (cast_expression "(ulong *)(lVar2 + 0x38)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x38)" ( (binary_expression "lVar2 + 0x38" identifier + number_literal) ))))) )) (compound_statement "{\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }" { (expression_statement "iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));" (assignment_expression "iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38))" identifier = (unary_expression "-(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38))" - (call_expression "(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38))" ( (binary_expression "*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38)" (pointer_expression "*(ulong *)(lVar1 + 0x38)" * (cast_expression "(ulong *)(lVar1 + 0x38)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x38)" ( (binary_expression "lVar1 + 0x38" identifier + number_literal) )))) < (pointer_expression "*(ulong *)(lVar2 + 0x38)" * (cast_expression "(ulong *)(lVar2 + 0x38)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x38)" ( (binary_expression "lVar2 + 0x38" identifier + number_literal) ))))) ))))) ;) })) })) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit "int compare_section_lma(void *arg1,void *arg2)\n\n{\n  long lVar1;\n  long lVar2;\n  ulong uVar3;\n  ulong uVar4;\n  int iVar5;\n  uint uVar6;\n  asection **sec2;\n  asection **sec1;\n  \n                    /* WARNING: Load size is inaccurate */\n  lVar1 = *arg1;\n                    /* WARNING: Load size is inaccurate */\n  lVar2 = *arg2;\n  uVar6 = *(uint *)(lVar2 + 0x20) & 0x102;\n  if ((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102) {\n    if (uVar6 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar6 == 0x102) {\n    return -1;\n  }\n  iVar5 = 1;\n  uVar3 = *(ulong *)(lVar2 + 0x30);\n  uVar4 = *(ulong *)(lVar1 + 0x30);\n  if ((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)) {\n    iVar5 = 1;\n    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }\n  }\n  return iVar5;\n}\n\n" (function_definition "int compare_section_lma(void *arg1,void *arg2)\n\n{\n  long lVar1;\n  long lVar2;\n  ulong uVar3;\n  ulong uVar4;\n  int iVar5;\n  uint uVar6;\n  asection **sec2;\n  asection **sec1;\n  \n                    /* WARNING: Load size is inaccurate */\n  lVar1 = *arg1;\n                    /* WARNING: Load size is inaccurate */\n  lVar2 = *arg2;\n  uVar6 = *(uint *)(lVar2 + 0x20) & 0x102;\n  if ((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102) {\n    if (uVar6 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar6 == 0x102) {\n    return -1;\n  }\n  iVar5 = 1;\n  uVar3 = *(ulong *)(lVar2 + 0x30);\n  uVar4 = *(ulong *)(lVar1 + 0x30);\n  if ((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)) {\n    iVar5 = 1;\n    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }\n  }\n  return iVar5;\n}" primitive_type (function_declarator "compare_section_lma(void *arg1,void *arg2)" identifier (parameter_list "(void *arg1,void *arg2)" ( (parameter_declaration "void *arg1" primitive_type (pointer_declarator "*arg1" * identifier)) , (parameter_declaration "void *arg2" primitive_type (pointer_declarator "*arg2" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  ulong uVar3;\n  ulong uVar4;\n  int iVar5;\n  uint uVar6;\n  asection **sec2;\n  asection **sec1;\n  \n                    /* WARNING: Load size is inaccurate */\n  lVar1 = *arg1;\n                    /* WARNING: Load size is inaccurate */\n  lVar2 = *arg2;\n  uVar6 = *(uint *)(lVar2 + 0x20) & 0x102;\n  if ((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102) {\n    if (uVar6 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar6 == 0x102) {\n    return -1;\n  }\n  iVar5 = 1;\n  uVar3 = *(ulong *)(lVar2 + 0x30);\n  uVar4 = *(ulong *)(lVar1 + 0x30);\n  if ((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)) {\n    iVar5 = 1;\n    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }\n  }\n  return iVar5;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "asection **sec2;" type_identifier (pointer_declarator "**sec2" * (pointer_declarator "*sec2" * identifier)) ;) (declaration "asection **sec1;" type_identifier (pointer_declarator "**sec1" * (pointer_declarator "*sec1" * identifier)) ;) comment (expression_statement "lVar1 = *arg1;" (assignment_expression "lVar1 = *arg1" identifier = (pointer_expression "*arg1" * identifier)) ;) comment (expression_statement "lVar2 = *arg2;" (assignment_expression "lVar2 = *arg2" identifier = (pointer_expression "*arg2" * identifier)) ;) (expression_statement "uVar6 = *(uint *)(lVar2 + 0x20) & 0x102;" (assignment_expression "uVar6 = *(uint *)(lVar2 + 0x20) & 0x102" identifier = (binary_expression "*(uint *)(lVar2 + 0x20) & 0x102" (pointer_expression "*(uint *)(lVar2 + 0x20)" * (cast_expression "(uint *)(lVar2 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x20)" ( (binary_expression "lVar2 + 0x20" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if ((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102) {\n    if (uVar6 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar6 == 0x102) {\n    return -1;\n  }" if (parenthesized_expression "((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102)" ( (binary_expression "(*(uint *)(lVar1 + 0x20) & 0x102) == 0x102" (parenthesized_expression "(*(uint *)(lVar1 + 0x20) & 0x102)" ( (binary_expression "*(uint *)(lVar1 + 0x20) & 0x102" (pointer_expression "*(uint *)(lVar1 + 0x20)" * (cast_expression "(uint *)(lVar1 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (uVar6 != 0x102) {\n      return 1;\n    }\n  }" { (if_statement "if (uVar6 != 0x102) {\n      return 1;\n    }" if (parenthesized_expression "(uVar6 != 0x102)" ( (binary_expression "uVar6 != 0x102" identifier != number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else if (uVar6 == 0x102) {\n    return -1;\n  }" else (if_statement "if (uVar6 == 0x102) {\n    return -1;\n  }" if (parenthesized_expression "(uVar6 == 0x102)" ( (binary_expression "uVar6 == 0x102" identifier == number_literal) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })))) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (expression_statement "uVar3 = *(ulong *)(lVar2 + 0x30);" (assignment_expression "uVar3 = *(ulong *)(lVar2 + 0x30)" identifier = (pointer_expression "*(ulong *)(lVar2 + 0x30)" * (cast_expression "(ulong *)(lVar2 + 0x30)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x30)" ( (binary_expression "lVar2 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(ulong *)(lVar1 + 0x30);" (assignment_expression "uVar4 = *(ulong *)(lVar1 + 0x30)" identifier = (pointer_expression "*(ulong *)(lVar1 + 0x30)" * (cast_expression "(ulong *)(lVar1 + 0x30)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x30)" ( (binary_expression "lVar1 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if ((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)) {\n    iVar5 = 1;\n    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }\n  }" if (parenthesized_expression "((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4))" ( (binary_expression "(uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)" (parenthesized_expression "(uVar3 > uVar4 || uVar4 == uVar3)" ( (binary_expression "uVar3 > uVar4 || uVar4 == uVar3" (binary_expression "uVar3 > uVar4" identifier > identifier) || (binary_expression "uVar4 == uVar3" identifier == identifier)) )) && (parenthesized_expression "(iVar5 = -1, uVar3 <= uVar4)" ( (comma_expression "iVar5 = -1, uVar3 <= uVar4" (assignment_expression "iVar5 = -1" identifier = number_literal) , (binary_expression "uVar3 <= uVar4" identifier <= identifier)) ))) )) (compound_statement "{\n    iVar5 = 1;\n    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }\n  }" { (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (if_statement "if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }" if (parenthesized_expression "(*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38))" ( (binary_expression "*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)" (pointer_expression "*(ulong *)(lVar1 + 0x38)" * (cast_expression "(ulong *)(lVar1 + 0x38)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x38)" ( (binary_expression "lVar1 + 0x38" identifier + number_literal) )))) <= (pointer_expression "*(ulong *)(lVar2 + 0x38)" * (cast_expression "(ulong *)(lVar2 + 0x38)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x38)" ( (binary_expression "lVar2 + 0x38" identifier + number_literal) ))))) )) (compound_statement "{\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }" { (expression_statement "iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));" (assignment_expression "iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38))" identifier = (unary_expression "-(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38))" - (call_expression "(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38))" ( (binary_expression "*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38)" (pointer_expression "*(ulong *)(lVar1 + 0x38)" * (cast_expression "(ulong *)(lVar1 + 0x38)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x38)" ( (binary_expression "lVar1 + 0x38" identifier + number_literal) )))) < (pointer_expression "*(ulong *)(lVar2 + 0x38)" * (cast_expression "(ulong *)(lVar2 + 0x38)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x38)" ( (binary_expression "lVar2 + 0x38" identifier + number_literal) ))))) ))))) ;) })) })) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit "int FUN_001071d0(long *param_1,long *param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  ulong uVar3;\n  ulong uVar4;\n  int iVar5;\n  uint uVar6;\n  \n  lVar1 = *param_1;\n  lVar2 = *param_2;\n  uVar6 = *(uint *)(lVar2 + 0x20) & 0x102;\n  if ((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102) {\n    if (uVar6 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar6 == 0x102) {\n    return -1;\n  }\n  iVar5 = 1;\n  uVar3 = *(ulong *)(lVar2 + 0x30);\n  uVar4 = *(ulong *)(lVar1 + 0x30);\n  if ((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)) {\n    iVar5 = 1;\n    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }\n  }\n  return iVar5;\n}\n\n" (function_definition "int FUN_001071d0(long *param_1,long *param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  ulong uVar3;\n  ulong uVar4;\n  int iVar5;\n  uint uVar6;\n  \n  lVar1 = *param_1;\n  lVar2 = *param_2;\n  uVar6 = *(uint *)(lVar2 + 0x20) & 0x102;\n  if ((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102) {\n    if (uVar6 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar6 == 0x102) {\n    return -1;\n  }\n  iVar5 = 1;\n  uVar3 = *(ulong *)(lVar2 + 0x30);\n  uVar4 = *(ulong *)(lVar1 + 0x30);\n  if ((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)) {\n    iVar5 = 1;\n    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }\n  }\n  return iVar5;\n}" primitive_type (function_declarator "FUN_001071d0(long *param_1,long *param_2)" identifier (parameter_list "(long *param_1,long *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  ulong uVar3;\n  ulong uVar4;\n  int iVar5;\n  uint uVar6;\n  \n  lVar1 = *param_1;\n  lVar2 = *param_2;\n  uVar6 = *(uint *)(lVar2 + 0x20) & 0x102;\n  if ((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102) {\n    if (uVar6 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar6 == 0x102) {\n    return -1;\n  }\n  iVar5 = 1;\n  uVar3 = *(ulong *)(lVar2 + 0x30);\n  uVar4 = *(ulong *)(lVar1 + 0x30);\n  if ((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)) {\n    iVar5 = 1;\n    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }\n  }\n  return iVar5;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "uVar6 = *(uint *)(lVar2 + 0x20) & 0x102;" (assignment_expression "uVar6 = *(uint *)(lVar2 + 0x20) & 0x102" identifier = (binary_expression "*(uint *)(lVar2 + 0x20) & 0x102" (pointer_expression "*(uint *)(lVar2 + 0x20)" * (cast_expression "(uint *)(lVar2 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x20)" ( (binary_expression "lVar2 + 0x20" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if ((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102) {\n    if (uVar6 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar6 == 0x102) {\n    return -1;\n  }" if (parenthesized_expression "((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102)" ( (binary_expression "(*(uint *)(lVar1 + 0x20) & 0x102) == 0x102" (parenthesized_expression "(*(uint *)(lVar1 + 0x20) & 0x102)" ( (binary_expression "*(uint *)(lVar1 + 0x20) & 0x102" (pointer_expression "*(uint *)(lVar1 + 0x20)" * (cast_expression "(uint *)(lVar1 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (uVar6 != 0x102) {\n      return 1;\n    }\n  }" { (if_statement "if (uVar6 != 0x102) {\n      return 1;\n    }" if (parenthesized_expression "(uVar6 != 0x102)" ( (binary_expression "uVar6 != 0x102" identifier != number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else if (uVar6 == 0x102) {\n    return -1;\n  }" else (if_statement "if (uVar6 == 0x102) {\n    return -1;\n  }" if (parenthesized_expression "(uVar6 == 0x102)" ( (binary_expression "uVar6 == 0x102" identifier == number_literal) )) (compound_statement "{\n    return -1;\n  }" { (return_statement "return -1;" return number_literal ;) })))) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (expression_statement "uVar3 = *(ulong *)(lVar2 + 0x30);" (assignment_expression "uVar3 = *(ulong *)(lVar2 + 0x30)" identifier = (pointer_expression "*(ulong *)(lVar2 + 0x30)" * (cast_expression "(ulong *)(lVar2 + 0x30)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x30)" ( (binary_expression "lVar2 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(ulong *)(lVar1 + 0x30);" (assignment_expression "uVar4 = *(ulong *)(lVar1 + 0x30)" identifier = (pointer_expression "*(ulong *)(lVar1 + 0x30)" * (cast_expression "(ulong *)(lVar1 + 0x30)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x30)" ( (binary_expression "lVar1 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if ((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)) {\n    iVar5 = 1;\n    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }\n  }" if (parenthesized_expression "((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4))" ( (binary_expression "(uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)" (parenthesized_expression "(uVar3 > uVar4 || uVar4 == uVar3)" ( (binary_expression "uVar3 > uVar4 || uVar4 == uVar3" (binary_expression "uVar3 > uVar4" identifier > identifier) || (binary_expression "uVar4 == uVar3" identifier == identifier)) )) && (parenthesized_expression "(iVar5 = -1, uVar3 <= uVar4)" ( (comma_expression "iVar5 = -1, uVar3 <= uVar4" (assignment_expression "iVar5 = -1" identifier = number_literal) , (binary_expression "uVar3 <= uVar4" identifier <= identifier)) ))) )) (compound_statement "{\n    iVar5 = 1;\n    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }\n  }" { (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (if_statement "if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }" if (parenthesized_expression "(*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38))" ( (binary_expression "*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)" (pointer_expression "*(ulong *)(lVar1 + 0x38)" * (cast_expression "(ulong *)(lVar1 + 0x38)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x38)" ( (binary_expression "lVar1 + 0x38" identifier + number_literal) )))) <= (pointer_expression "*(ulong *)(lVar2 + 0x38)" * (cast_expression "(ulong *)(lVar2 + 0x38)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x38)" ( (binary_expression "lVar2 + 0x38" identifier + number_literal) ))))) )) (compound_statement "{\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }" { (expression_statement "iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));" (assignment_expression "iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38))" identifier = (unary_expression "-(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38))" - (call_expression "(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38))" ( (binary_expression "*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38)" (pointer_expression "*(ulong *)(lVar1 + 0x38)" * (cast_expression "(ulong *)(lVar1 + 0x38)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x38)" ( (binary_expression "lVar1 + 0x38" identifier + number_literal) )))) < (pointer_expression "*(ulong *)(lVar2 + 0x38)" * (cast_expression "(ulong *)(lVar2 + 0x38)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x38)" ( (binary_expression "lVar2 + 0x38" identifier + number_literal) ))))) ))))) ;) })) })) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT > IDENT) || (binary_expression IDENT == IDENT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression IDENT <= IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))))) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_001071d0(long *param_1,long *param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  ulong uVar3;\n  ulong uVar4;\n  int iVar5;\n  uint uVar6;\n  \n  lVar1 = *param_1;\n  lVar2 = *param_2;\n  uVar6 = *(uint *)(lVar2 + 0x20) & 0x102;\n  if ((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102) {\n    if (uVar6 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar6 == 0x102) {\n    return -1;\n  }\n  iVar5 = 1;\n  uVar3 = *(ulong *)(lVar2 + 0x30);\n  uVar4 = *(ulong *)(lVar1 + 0x30);\n  if ((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)) {\n    iVar5 = 1;\n    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }\n  }\n  return iVar5;\n}" (primitive_type "int") (function_declarator "FUN_001071d0(long *param_1,long *param_2)" (identifier "FUN_001071d0") (parameter_list "(long *param_1,long *param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  ulong uVar3;\n  ulong uVar4;\n  int iVar5;\n  uint uVar6;\n  \n  lVar1 = *param_1;\n  lVar2 = *param_2;\n  uVar6 = *(uint *)(lVar2 + 0x20) & 0x102;\n  if ((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102) {\n    if (uVar6 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar6 == 0x102) {\n    return -1;\n  }\n  iVar5 = 1;\n  uVar3 = *(ulong *)(lVar2 + 0x30);\n  uVar4 = *(ulong *)(lVar1 + 0x30);\n  if ((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)) {\n    iVar5 = 1;\n    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }\n  }\n  return iVar5;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "ulong uVar3;" (type_identifier "ulong") (identifier "uVar3") (; ";")) (declaration "ulong uVar4;" (type_identifier "ulong") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" (identifier "lVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" (identifier "lVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "uVar6 = *(uint *)(lVar2 + 0x20) & 0x102;" (assignment_expression "uVar6 = *(uint *)(lVar2 + 0x20) & 0x102" (identifier "uVar6") (= "=") (binary_expression "*(uint *)(lVar2 + 0x20) & 0x102" (pointer_expression "*(uint *)(lVar2 + 0x20)" (* "*") (cast_expression "(uint *)(lVar2 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x20)" (( "(") (binary_expression "lVar2 + 0x20" (identifier "lVar2") (+ "+") (number_literal "0x20")) () ")")))) (& "&") (number_literal "0x102"))) (; ";")) (if_statement "if ((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102) {\n    if (uVar6 != 0x102) {\n      return 1;\n    }\n  }\n  else if (uVar6 == 0x102) {\n    return -1;\n  }" (if "if") (parenthesized_expression "((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102)" (( "(") (binary_expression "(*(uint *)(lVar1 + 0x20) & 0x102) == 0x102" (parenthesized_expression "(*(uint *)(lVar1 + 0x20) & 0x102)" (( "(") (binary_expression "*(uint *)(lVar1 + 0x20) & 0x102" (pointer_expression "*(uint *)(lVar1 + 0x20)" (* "*") (cast_expression "(uint *)(lVar1 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x20)" (( "(") (binary_expression "lVar1 + 0x20" (identifier "lVar1") (+ "+") (number_literal "0x20")) () ")")))) (& "&") (number_literal "0x102")) () ")")) (== "==") (number_literal "0x102")) () ")")) (compound_statement "{\n    if (uVar6 != 0x102) {\n      return 1;\n    }\n  }" ({ "{") (if_statement "if (uVar6 != 0x102) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(uVar6 != 0x102)" (( "(") (binary_expression "uVar6 != 0x102" (identifier "uVar6") (!= "!=") (number_literal "0x102")) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")) (else_clause "else if (uVar6 == 0x102) {\n    return -1;\n  }" (else "else") (if_statement "if (uVar6 == 0x102) {\n    return -1;\n  }" (if "if") (parenthesized_expression "(uVar6 == 0x102)" (( "(") (binary_expression "uVar6 == 0x102" (identifier "uVar6") (== "==") (number_literal "0x102")) () ")")) (compound_statement "{\n    return -1;\n  }" ({ "{") (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))))) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" (identifier "iVar5") (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar3 = *(ulong *)(lVar2 + 0x30);" (assignment_expression "uVar3 = *(ulong *)(lVar2 + 0x30)" (identifier "uVar3") (= "=") (pointer_expression "*(ulong *)(lVar2 + 0x30)" (* "*") (cast_expression "(ulong *)(lVar2 + 0x30)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x30)" (( "(") (binary_expression "lVar2 + 0x30" (identifier "lVar2") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "uVar4 = *(ulong *)(lVar1 + 0x30);" (assignment_expression "uVar4 = *(ulong *)(lVar1 + 0x30)" (identifier "uVar4") (= "=") (pointer_expression "*(ulong *)(lVar1 + 0x30)" (* "*") (cast_expression "(ulong *)(lVar1 + 0x30)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x30)" (( "(") (binary_expression "lVar1 + 0x30" (identifier "lVar1") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (if_statement "if ((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)) {\n    iVar5 = 1;\n    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }\n  }" (if "if") (parenthesized_expression "((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4))" (( "(") (binary_expression "(uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)" (parenthesized_expression "(uVar3 > uVar4 || uVar4 == uVar3)" (( "(") (binary_expression "uVar3 > uVar4 || uVar4 == uVar3" (binary_expression "uVar3 > uVar4" (identifier "uVar3") (> ">") (identifier "uVar4")) (|| "||") (binary_expression "uVar4 == uVar3" (identifier "uVar4") (== "==") (identifier "uVar3"))) () ")")) (&& "&&") (parenthesized_expression "(iVar5 = -1, uVar3 <= uVar4)" (( "(") (comma_expression "iVar5 = -1, uVar3 <= uVar4" (assignment_expression "iVar5 = -1" (identifier "iVar5") (= "=") (number_literal "-1")) (, ",") (binary_expression "uVar3 <= uVar4" (identifier "uVar3") (<= "<=") (identifier "uVar4"))) () ")"))) () ")")) (compound_statement "{\n    iVar5 = 1;\n    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }\n  }" ({ "{") (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" (identifier "iVar5") (= "=") (number_literal "1")) (; ";")) (if_statement "if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }" (if "if") (parenthesized_expression "(*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38))" (( "(") (binary_expression "*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)" (pointer_expression "*(ulong *)(lVar1 + 0x38)" (* "*") (cast_expression "(ulong *)(lVar1 + 0x38)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x38)" (( "(") (binary_expression "lVar1 + 0x38" (identifier "lVar1") (+ "+") (number_literal "0x38")) () ")")))) (<= "<=") (pointer_expression "*(ulong *)(lVar2 + 0x38)" (* "*") (cast_expression "(ulong *)(lVar2 + 0x38)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x38)" (( "(") (binary_expression "lVar2 + 0x38" (identifier "lVar2") (+ "+") (number_literal "0x38")) () ")"))))) () ")")) (compound_statement "{\n      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));\n    }" ({ "{") (expression_statement "iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));" (assignment_expression "iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38))" (identifier "iVar5") (= "=") (unary_expression "-(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38))" (- "-") (call_expression "(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38))" (( "(") (binary_expression "*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38)" (pointer_expression "*(ulong *)(lVar1 + 0x38)" (* "*") (cast_expression "(ulong *)(lVar1 + 0x38)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x38)" (( "(") (binary_expression "lVar1 + 0x38" (identifier "lVar1") (+ "+") (number_literal "0x38")) () ")")))) (< "<") (pointer_expression "*(ulong *)(lVar2 + 0x38)" (* "*") (cast_expression "(ulong *)(lVar2 + 0x38)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x38)" (( "(") (binary_expression "lVar2 + 0x38" (identifier "lVar2") (+ "+") (number_literal "0x38")) () ")"))))) () ")"))))) (; ";")) (} "}"))) (} "}"))) (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}")))

int function_1(void *arg1,void *arg2)

{
  long var_2;
  long var_1;
  type_1 var_4;
  type_1 var_5;
  int iVar5;
  type_2 var_3;
  type_3 **sec2;
  type_3 **sec1;
  
                    /* WARNING: Load size is inaccurate */
  var_2 = *arg1;
                    /* WARNING: Load size is inaccurate */
  var_1 = *arg2;
  var_3 = *(type_2 *)(var_1 + 0x20) & 0x102;
  if ((*(type_2 *)(var_2 + 0x20) & 0x102) == 0x102) {
    if (var_3 != 0x102) {
      return 1;
    }
  }
  else if (var_3 == 0x102) {
    return -1;
  }
  iVar5 = 1;
  var_4 = *(type_1 *)(var_1 + 0x30);
  var_5 = *(type_1 *)(var_2 + 0x30);
  if ((var_4 > var_5 || var_5 == var_4) && (iVar5 = -1, var_4 <= var_5)) {
    iVar5 = 1;
    if (*(type_1 *)(var_2 + 0x38) <= *(type_1 *)(var_1 + 0x38)) {
      iVar5 = -(type_2)(*(type_1 *)(var_2 + 0x38) < *(type_1 *)(var_1 + 0x38));
    }
  }
  return iVar5;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (identifier)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))))))))) (return_statement (identifier)))))

int MASKED(long *param_1,long *param_2)

{
  long lVar1;
  long lVar2;
  ulong uVar3;
  ulong uVar4;
  int iVar5;
  uint uVar6;
  
  lVar1 = *param_1;
  lVar2 = *param_2;
  uVar6 = *(uint *)(lVar2 + 0x20) & 0x102;
  if ((*(uint *)(lVar1 + 0x20) & 0x102) == 0x102) {
    if (uVar6 != 0x102) {
      return 1;
    }
  }
  else if (uVar6 == 0x102) {
    return -1;
  }
  iVar5 = 1;
  uVar3 = *(ulong *)(lVar2 + 0x30);
  uVar4 = *(ulong *)(lVar1 + 0x30);
  if ((uVar3 > uVar4 || uVar4 == uVar3) && (iVar5 = -1, uVar3 <= uVar4)) {
    iVar5 = 1;
    if (*(ulong *)(lVar1 + 0x38) <= *(ulong *)(lVar2 + 0x38)) {
      iVar5 = -(uint)(*(ulong *)(lVar1 + 0x38) < *(ulong *)(lVar2 + 0x38));
    }
  }
  return iVar5;
}

