
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int fts3SegReaderCmp(Fts3SegReader *pLhs,Fts3SegReader *pRhs)

{
  int iVar1;
  int iVar2;
  
  if ((pLhs->aNode == (char *)0x0) || (pRhs->aNode == (char *)0x0)) {
    iVar2 = (uint)(pLhs->aNode == (char *)0x0) - (uint)(pRhs->aNode == (char *)0x0);
  }
  else {
    iVar2 = pLhs->nTerm - pRhs->nTerm;
    if (iVar2 < 0) {
      iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pLhs->nTerm);
    }
    else {
      iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pRhs->nTerm);
    }
    if (iVar1 != 0) {
      return iVar1;
    }
  }
  if (iVar2 != 0) {
    return iVar2;
  }
  return pRhs->iIdx - pLhs->iIdx;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int FUN_00024870(int *param_1,int *param_2)

{
  int iVar1;
  int iVar2;
  
  if ((param_1[10] == 0) || (param_2[10] == 0)) {
    iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0);
  }
  else {
    iVar2 = param_1[0xf] - param_2[0xf];
    if (iVar2 < 0) {
      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);
    }
    else {
      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);
    }
    if (iVar1 != 0) {
      return iVar1;
    }
  }
  if (iVar2 != 0) {
    return iVar2;
  }
  return *param_2 - *param_1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014d20
ADD EBX,0x12665b
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV EDI,dword ptr [ESP + 0x34]
MOV EAX,dword ptr [ESI + 0x28]
MOV EDX,dword ptr [EDI + 0x28]
TEST EAX,EAX
JZ 0x000248e0
TEST EDX,EDX
JZ 0x000248e0
MOV ECX,dword ptr [ESI + 0x40]
MOV EDX,dword ptr [ESI + 0x3c]
MOV EAX,dword ptr [EDI + 0x3c]
MOV EBP,dword ptr [EDI + 0x40]
MOV dword ptr [ESP + 0x8],ECX
MOV ECX,EDX
SUB ECX,EAX
MOV dword ptr [ESP + 0xc],ECX
JS 0x00024908
SUB ESP,0x4
PUSH EAX
PUSH EBP
PUSH dword ptr [ESP + 0x14]
CALL 0x00014110
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000248cf
MOV EAX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JZ 0x000248f6
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST EAX,EAX
SETZ AL
TEST EDX,EDX
SETZ DL
MOVZX EAX,AL
MOVZX EDX,DL
SUB EAX,EDX
TEST EAX,EAX
JNZ 0x000248cf
MOV EAX,dword ptr [EDI]
SUB EAX,dword ptr [ESI]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH EDX
PUSH EBP
PUSH dword ptr [ESP + 0x14]
CALL 0x00014110
ADD ESP,0x10
JMP 0x000248c3
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00024870(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if ((param_1[10] == 0) || (param_2[10] == 0)) {\n    iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0);\n  }\n  else {\n    iVar2 = param_1[0xf] - param_2[0xf];\n    if (iVar2 < 0) {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }\n    else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  return *param_2 - *param_1;\n}\n\n" comment (function_definition "int FUN_00024870(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if ((param_1[10] == 0) || (param_2[10] == 0)) {\n    iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0);\n  }\n  else {\n    iVar2 = param_1[0xf] - param_2[0xf];\n    if (iVar2 < 0) {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }\n    else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  return *param_2 - *param_1;\n}" primitive_type (function_declarator "FUN_00024870(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  \n  if ((param_1[10] == 0) || (param_2[10] == 0)) {\n    iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0);\n  }\n  else {\n    iVar2 = param_1[0xf] - param_2[0xf];\n    if (iVar2 < 0) {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }\n    else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  return *param_2 - *param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if ((param_1[10] == 0) || (param_2[10] == 0)) {\n    iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0);\n  }\n  else {\n    iVar2 = param_1[0xf] - param_2[0xf];\n    if (iVar2 < 0) {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }\n    else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" if (parenthesized_expression "((param_1[10] == 0) || (param_2[10] == 0))" ( (binary_expression "(param_1[10] == 0) || (param_2[10] == 0)" (parenthesized_expression "(param_1[10] == 0)" ( (binary_expression "param_1[10] == 0" (subscript_expression "param_1[10]" identifier [ number_literal ]) == number_literal) )) || (parenthesized_expression "(param_2[10] == 0)" ( (binary_expression "param_2[10] == 0" (subscript_expression "param_2[10]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n    iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0);\n  }" { (expression_statement "iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0);" (assignment_expression "iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0)" identifier = (binary_expression "(uint)(param_1[10] == 0) - (uint)(param_2[10] == 0)" (call_expression "(uint)(param_1[10] == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[10] == 0)" ( (binary_expression "param_1[10] == 0" (subscript_expression "param_1[10]" identifier [ number_literal ]) == number_literal) ))) - (call_expression "(uint)(param_2[10] == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2[10] == 0)" ( (binary_expression "param_2[10] == 0" (subscript_expression "param_2[10]" identifier [ number_literal ]) == number_literal) ))))) ;) }) (else_clause "else {\n    iVar2 = param_1[0xf] - param_2[0xf];\n    if (iVar2 < 0) {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }\n    else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" else (compound_statement "{\n    iVar2 = param_1[0xf] - param_2[0xf];\n    if (iVar2 < 0) {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }\n    else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" { (expression_statement "iVar2 = param_1[0xf] - param_2[0xf];" (assignment_expression "iVar2 = param_1[0xf] - param_2[0xf]" identifier = (binary_expression "param_1[0xf] - param_2[0xf]" (subscript_expression "param_1[0xf]" identifier [ number_literal ]) - (subscript_expression "param_2[0xf]" identifier [ number_literal ]))) ;) (if_statement "if (iVar2 < 0) {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }\n    else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }" { (expression_statement "iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);" (assignment_expression "iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf])" identifier = (call_expression "memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf])" identifier (argument_list "((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf])" ( (cast_expression "(void *)param_1[0x10]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x10]" identifier [ number_literal ])) , (cast_expression "(void *)param_2[0x10]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[0x10]" identifier [ number_literal ])) , (subscript_expression "param_1[0xf]" identifier [ number_literal ]) )))) ;) }) (else_clause "else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }" else (compound_statement "{\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }" { (expression_statement "iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);" (assignment_expression "iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf])" identifier = (call_expression "memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf])" identifier (argument_list "((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf])" ( (cast_expression "(void *)param_1[0x10]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x10]" identifier [ number_literal ])) , (cast_expression "(void *)param_2[0x10]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[0x10]" identifier [ number_literal ])) , (subscript_expression "param_2[0xf]" identifier [ number_literal ]) )))) ;) }))) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) }))) (if_statement "if (iVar2 != 0) {\n    return iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) (return_statement "return *param_2 - *param_1;" return (binary_expression "*param_2 - *param_1" (pointer_expression "*param_2" * identifier) - (pointer_expression "*param_1" * identifier)) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint fts3SegReaderCmp(Fts3SegReader *pLhs,Fts3SegReader *pRhs)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if ((pLhs->aNode == (char *)0x0) || (pRhs->aNode == (char *)0x0)) {\n    iVar2 = (uint)(pLhs->aNode == (char *)0x0) - (uint)(pRhs->aNode == (char *)0x0);\n  }\n  else {\n    iVar2 = pLhs->nTerm - pRhs->nTerm;\n    if (iVar2 < 0) {\n      iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pLhs->nTerm);\n    }\n    else {\n      iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pRhs->nTerm);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  return pRhs->iIdx - pLhs->iIdx;\n}\n\n" comment comment (function_definition "int fts3SegReaderCmp(Fts3SegReader *pLhs,Fts3SegReader *pRhs)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if ((pLhs->aNode == (char *)0x0) || (pRhs->aNode == (char *)0x0)) {\n    iVar2 = (uint)(pLhs->aNode == (char *)0x0) - (uint)(pRhs->aNode == (char *)0x0);\n  }\n  else {\n    iVar2 = pLhs->nTerm - pRhs->nTerm;\n    if (iVar2 < 0) {\n      iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pLhs->nTerm);\n    }\n    else {\n      iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pRhs->nTerm);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  return pRhs->iIdx - pLhs->iIdx;\n}" primitive_type (function_declarator "fts3SegReaderCmp(Fts3SegReader *pLhs,Fts3SegReader *pRhs)" identifier (parameter_list "(Fts3SegReader *pLhs,Fts3SegReader *pRhs)" ( (parameter_declaration "Fts3SegReader *pLhs" type_identifier (pointer_declarator "*pLhs" * identifier)) , (parameter_declaration "Fts3SegReader *pRhs" type_identifier (pointer_declarator "*pRhs" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if ((pLhs->aNode == (char *)0x0) || (pRhs->aNode == (char *)0x0)) {\n    iVar2 = (uint)(pLhs->aNode == (char *)0x0) - (uint)(pRhs->aNode == (char *)0x0);\n  }\n  else {\n    iVar2 = pLhs->nTerm - pRhs->nTerm;\n    if (iVar2 < 0) {\n      iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pLhs->nTerm);\n    }\n    else {\n      iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pRhs->nTerm);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  return pRhs->iIdx - pLhs->iIdx;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if ((pLhs->aNode == (char *)0x0) || (pRhs->aNode == (char *)0x0)) {\n    iVar2 = (uint)(pLhs->aNode == (char *)0x0) - (uint)(pRhs->aNode == (char *)0x0);\n  }\n  else {\n    iVar2 = pLhs->nTerm - pRhs->nTerm;\n    if (iVar2 < 0) {\n      iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pLhs->nTerm);\n    }\n    else {\n      iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pRhs->nTerm);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" if (parenthesized_expression "((pLhs->aNode == (char *)0x0) || (pRhs->aNode == (char *)0x0))" ( (binary_expression "(pLhs->aNode == (char *)0x0) || (pRhs->aNode == (char *)0x0)" (parenthesized_expression "(pLhs->aNode == (char *)0x0)" ( (binary_expression "pLhs->aNode == (char *)0x0" (field_expression "pLhs->aNode" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(pRhs->aNode == (char *)0x0)" ( (binary_expression "pRhs->aNode == (char *)0x0" (field_expression "pRhs->aNode" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    iVar2 = (uint)(pLhs->aNode == (char *)0x0) - (uint)(pRhs->aNode == (char *)0x0);\n  }" { (expression_statement "iVar2 = (uint)(pLhs->aNode == (char *)0x0) - (uint)(pRhs->aNode == (char *)0x0);" (assignment_expression "iVar2 = (uint)(pLhs->aNode == (char *)0x0) - (uint)(pRhs->aNode == (char *)0x0)" identifier = (binary_expression "(uint)(pLhs->aNode == (char *)0x0) - (uint)(pRhs->aNode == (char *)0x0)" (call_expression "(uint)(pLhs->aNode == (char *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pLhs->aNode == (char *)0x0)" ( (binary_expression "pLhs->aNode == (char *)0x0" (field_expression "pLhs->aNode" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) - (call_expression "(uint)(pRhs->aNode == (char *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pRhs->aNode == (char *)0x0)" ( (binary_expression "pRhs->aNode == (char *)0x0" (field_expression "pRhs->aNode" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))))) ;) }) (else_clause "else {\n    iVar2 = pLhs->nTerm - pRhs->nTerm;\n    if (iVar2 < 0) {\n      iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pLhs->nTerm);\n    }\n    else {\n      iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pRhs->nTerm);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" else (compound_statement "{\n    iVar2 = pLhs->nTerm - pRhs->nTerm;\n    if (iVar2 < 0) {\n      iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pLhs->nTerm);\n    }\n    else {\n      iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pRhs->nTerm);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" { (expression_statement "iVar2 = pLhs->nTerm - pRhs->nTerm;" (assignment_expression "iVar2 = pLhs->nTerm - pRhs->nTerm" identifier = (binary_expression "pLhs->nTerm - pRhs->nTerm" (field_expression "pLhs->nTerm" identifier -> field_identifier) - (field_expression "pRhs->nTerm" identifier -> field_identifier))) ;) (if_statement "if (iVar2 < 0) {\n      iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pLhs->nTerm);\n    }\n    else {\n      iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pRhs->nTerm);\n    }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pLhs->nTerm);\n    }" { (expression_statement "iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pLhs->nTerm);" (assignment_expression "iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pLhs->nTerm)" identifier = (call_expression "memcmp(pLhs->zTerm,pRhs->zTerm,pLhs->nTerm)" identifier (argument_list "(pLhs->zTerm,pRhs->zTerm,pLhs->nTerm)" ( (field_expression "pLhs->zTerm" identifier -> field_identifier) , (field_expression "pRhs->zTerm" identifier -> field_identifier) , (field_expression "pLhs->nTerm" identifier -> field_identifier) )))) ;) }) (else_clause "else {\n      iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pRhs->nTerm);\n    }" else (compound_statement "{\n      iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pRhs->nTerm);\n    }" { (expression_statement "iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pRhs->nTerm);" (assignment_expression "iVar1 = memcmp(pLhs->zTerm,pRhs->zTerm,pRhs->nTerm)" identifier = (call_expression "memcmp(pLhs->zTerm,pRhs->zTerm,pRhs->nTerm)" identifier (argument_list "(pLhs->zTerm,pRhs->zTerm,pRhs->nTerm)" ( (field_expression "pLhs->zTerm" identifier -> field_identifier) , (field_expression "pRhs->zTerm" identifier -> field_identifier) , (field_expression "pRhs->nTerm" identifier -> field_identifier) )))) ;) }))) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) }))) (if_statement "if (iVar2 != 0) {\n    return iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) (return_statement "return pRhs->iIdx - pLhs->iIdx;" return (binary_expression "pRhs->iIdx - pLhs->iIdx" (field_expression "pRhs->iIdx" identifier -> field_identifier) - (field_expression "pLhs->iIdx" identifier -> field_identifier)) ;) })))
(translation_unit "int FUN_00024870(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if ((param_1[10] == 0) || (param_2[10] == 0)) {\n    iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0);\n  }\n  else {\n    iVar2 = param_1[0xf] - param_2[0xf];\n    if (iVar2 < 0) {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }\n    else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  return *param_2 - *param_1;\n}\n\n" (function_definition "int FUN_00024870(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if ((param_1[10] == 0) || (param_2[10] == 0)) {\n    iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0);\n  }\n  else {\n    iVar2 = param_1[0xf] - param_2[0xf];\n    if (iVar2 < 0) {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }\n    else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  return *param_2 - *param_1;\n}" primitive_type (function_declarator "FUN_00024870(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  \n  if ((param_1[10] == 0) || (param_2[10] == 0)) {\n    iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0);\n  }\n  else {\n    iVar2 = param_1[0xf] - param_2[0xf];\n    if (iVar2 < 0) {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }\n    else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  return *param_2 - *param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if ((param_1[10] == 0) || (param_2[10] == 0)) {\n    iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0);\n  }\n  else {\n    iVar2 = param_1[0xf] - param_2[0xf];\n    if (iVar2 < 0) {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }\n    else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" if (parenthesized_expression "((param_1[10] == 0) || (param_2[10] == 0))" ( (binary_expression "(param_1[10] == 0) || (param_2[10] == 0)" (parenthesized_expression "(param_1[10] == 0)" ( (binary_expression "param_1[10] == 0" (subscript_expression "param_1[10]" identifier [ number_literal ]) == number_literal) )) || (parenthesized_expression "(param_2[10] == 0)" ( (binary_expression "param_2[10] == 0" (subscript_expression "param_2[10]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n    iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0);\n  }" { (expression_statement "iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0);" (assignment_expression "iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0)" identifier = (binary_expression "(uint)(param_1[10] == 0) - (uint)(param_2[10] == 0)" (call_expression "(uint)(param_1[10] == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[10] == 0)" ( (binary_expression "param_1[10] == 0" (subscript_expression "param_1[10]" identifier [ number_literal ]) == number_literal) ))) - (call_expression "(uint)(param_2[10] == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2[10] == 0)" ( (binary_expression "param_2[10] == 0" (subscript_expression "param_2[10]" identifier [ number_literal ]) == number_literal) ))))) ;) }) (else_clause "else {\n    iVar2 = param_1[0xf] - param_2[0xf];\n    if (iVar2 < 0) {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }\n    else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" else (compound_statement "{\n    iVar2 = param_1[0xf] - param_2[0xf];\n    if (iVar2 < 0) {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }\n    else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" { (expression_statement "iVar2 = param_1[0xf] - param_2[0xf];" (assignment_expression "iVar2 = param_1[0xf] - param_2[0xf]" identifier = (binary_expression "param_1[0xf] - param_2[0xf]" (subscript_expression "param_1[0xf]" identifier [ number_literal ]) - (subscript_expression "param_2[0xf]" identifier [ number_literal ]))) ;) (if_statement "if (iVar2 < 0) {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }\n    else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }" { (expression_statement "iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);" (assignment_expression "iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf])" identifier = (call_expression "memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf])" identifier (argument_list "((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf])" ( (cast_expression "(void *)param_1[0x10]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x10]" identifier [ number_literal ])) , (cast_expression "(void *)param_2[0x10]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[0x10]" identifier [ number_literal ])) , (subscript_expression "param_1[0xf]" identifier [ number_literal ]) )))) ;) }) (else_clause "else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }" else (compound_statement "{\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }" { (expression_statement "iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);" (assignment_expression "iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf])" identifier = (call_expression "memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf])" identifier (argument_list "((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf])" ( (cast_expression "(void *)param_1[0x10]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x10]" identifier [ number_literal ])) , (cast_expression "(void *)param_2[0x10]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[0x10]" identifier [ number_literal ])) , (subscript_expression "param_2[0xf]" identifier [ number_literal ]) )))) ;) }))) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) }))) (if_statement "if (iVar2 != 0) {\n    return iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) (return_statement "return *param_2 - *param_1;" return (binary_expression "*param_2 - *param_1" (pointer_expression "*param_2" * identifier) - (pointer_expression "*param_1" * 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 ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) || (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (subscript_expression IDENT [ LIT ]) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (subscript_expression IDENT [ LIT ]) )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (return_statement return (binary_expression (pointer_expression * IDENT) - (pointer_expression * IDENT)) ;) })))
(function_definition "int FUN_00024870(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if ((param_1[10] == 0) || (param_2[10] == 0)) {\n    iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0);\n  }\n  else {\n    iVar2 = param_1[0xf] - param_2[0xf];\n    if (iVar2 < 0) {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }\n    else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  return *param_2 - *param_1;\n}" (primitive_type "int") (function_declarator "FUN_00024870(int *param_1,int *param_2)" (identifier "FUN_00024870") (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  \n  if ((param_1[10] == 0) || (param_2[10] == 0)) {\n    iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0);\n  }\n  else {\n    iVar2 = param_1[0xf] - param_2[0xf];\n    if (iVar2 < 0) {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }\n    else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\n  return *param_2 - *param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if ((param_1[10] == 0) || (param_2[10] == 0)) {\n    iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0);\n  }\n  else {\n    iVar2 = param_1[0xf] - param_2[0xf];\n    if (iVar2 < 0) {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }\n    else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" (if "if") (parenthesized_expression "((param_1[10] == 0) || (param_2[10] == 0))" (( "(") (binary_expression "(param_1[10] == 0) || (param_2[10] == 0)" (parenthesized_expression "(param_1[10] == 0)" (( "(") (binary_expression "param_1[10] == 0" (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_2[10] == 0)" (( "(") (binary_expression "param_2[10] == 0" (subscript_expression "param_2[10]" (identifier "param_2") ([ "[") (number_literal "10") (] "]")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0);\n  }" ({ "{") (expression_statement "iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0);" (assignment_expression "iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0)" (identifier "iVar2") (= "=") (binary_expression "(uint)(param_1[10] == 0) - (uint)(param_2[10] == 0)" (call_expression "(uint)(param_1[10] == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1[10] == 0)" (( "(") (binary_expression "param_1[10] == 0" (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")) (== "==") (number_literal "0")) () ")"))) (- "-") (call_expression "(uint)(param_2[10] == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_2[10] == 0)" (( "(") (binary_expression "param_2[10] == 0" (subscript_expression "param_2[10]" (identifier "param_2") ([ "[") (number_literal "10") (] "]")) (== "==") (number_literal "0")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = param_1[0xf] - param_2[0xf];\n    if (iVar2 < 0) {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }\n    else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" (else "else") (compound_statement "{\n    iVar2 = param_1[0xf] - param_2[0xf];\n    if (iVar2 < 0) {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }\n    else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" ({ "{") (expression_statement "iVar2 = param_1[0xf] - param_2[0xf];" (assignment_expression "iVar2 = param_1[0xf] - param_2[0xf]" (identifier "iVar2") (= "=") (binary_expression "param_1[0xf] - param_2[0xf]" (subscript_expression "param_1[0xf]" (identifier "param_1") ([ "[") (number_literal "0xf") (] "]")) (- "-") (subscript_expression "param_2[0xf]" (identifier "param_2") ([ "[") (number_literal "0xf") (] "]")))) (; ";")) (if_statement "if (iVar2 < 0) {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }\n    else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);\n    }" ({ "{") (expression_statement "iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);" (assignment_expression "iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf])" (identifier "iVar1") (= "=") (call_expression "memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf])" (identifier "memcmp") (argument_list "((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf])" (( "(") (cast_expression "(void *)param_1[0x10]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]"))) (, ",") (cast_expression "(void *)param_2[0x10]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[0x10]" (identifier "param_2") ([ "[") (number_literal "0x10") (] "]"))) (, ",") (subscript_expression "param_1[0xf]" (identifier "param_1") ([ "[") (number_literal "0xf") (] "]")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }" (else "else") (compound_statement "{\n      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);\n    }" ({ "{") (expression_statement "iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);" (assignment_expression "iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf])" (identifier "iVar1") (= "=") (call_expression "memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf])" (identifier "memcmp") (argument_list "((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf])" (( "(") (cast_expression "(void *)param_1[0x10]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]"))) (, ",") (cast_expression "(void *)param_2[0x10]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[0x10]" (identifier "param_2") ([ "[") (number_literal "0x10") (] "]"))) (, ",") (subscript_expression "param_2[0xf]" (identifier "param_2") ([ "[") (number_literal "0xf") (] "]")) () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return iVar1;\n    }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (} "}")))) (if_statement "if (iVar2 != 0) {\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return iVar2;\n  }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (return_statement "return *param_2 - *param_1;" (return "return") (binary_expression "*param_2 - *param_1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (- "-") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int function_1(type_1 *pLhs,type_1 *pRhs)

{
  int var_3;
  int var_1;
  
  if ((pLhs->aNode == (char *)0x0) || (pRhs->aNode == (char *)0x0)) {
    var_1 = (uint)(pLhs->aNode == (char *)0x0) - (uint)(pRhs->aNode == (char *)0x0);
  }
  else {
    var_1 = pLhs->nTerm - pRhs->nTerm;
    if (var_1 < 0) {
      var_3 = var_2(pLhs->zTerm,pRhs->zTerm,pLhs->nTerm);
    }
    else {
      var_3 = var_2(pLhs->zTerm,pRhs->zTerm,pRhs->nTerm);
    }
    if (var_3 != 0) {
      return var_3;
    }
  }
  if (var_1 != 0) {
    return var_1;
  }
  return pRhs->iIdx - pLhs->iIdx;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int MASKED(int *param_1,int *param_2)

{
  int iVar1;
  int iVar2;
  
  if ((param_1[10] == 0) || (param_2[10] == 0)) {
    iVar2 = (uint)(param_1[10] == 0) - (uint)(param_2[10] == 0);
  }
  else {
    iVar2 = param_1[0xf] - param_2[0xf];
    if (iVar2 < 0) {
      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_1[0xf]);
    }
    else {
      iVar1 = memcmp((void *)param_1[0x10],(void *)param_2[0x10],param_2[0xf]);
    }
    if (iVar1 != 0) {
      return iVar1;
    }
  }
  if (iVar2 != 0) {
    return iVar2;
  }
  return *param_2 - *param_1;
}

