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

int __regparm3 sqlite3BlobCompare(Mem *pB1,Mem *pB2)

{
  ushort uVar1;
  size_t sVar2;
  size_t sVar3;
  int iVar4;
  char *pcVar5;
  size_t __n;
  char *pcVar6;
  
  sVar2 = pB1->n;
  sVar3 = pB2->n;
  uVar1 = pB1->flags;
  if (((uVar1 | pB2->flags) & 0x4000) == 0) {
    __n = sVar3;
    if ((int)sVar2 <= (int)sVar3) {
      __n = sVar2;
    }
    iVar4 = memcmp(pB1->z,pB2->z,__n);
    if (iVar4 == 0) {
      iVar4 = sVar2 - sVar3;
    }
  }
  else {
    if (((byte)(pB2->flags >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {
      return (int)(pB1->u).zPType - (pB2->u).nZero;
    }
    if ((uVar1 & 0x4000) == 0) {
      pcVar6 = pB1->z;
      if ((int)sVar2 < 1) {
LAB_000406fd:
        iVar4 = sVar2 - (pB2->u).nZero;
      }
      else {
        if (*pcVar6 == '\0') {
          pcVar5 = pcVar6 + sVar2;
          do {
            pcVar6 = pcVar6 + 1;
            if (pcVar6 == pcVar5) goto LAB_000406fd;
          } while (*pcVar6 == '\0');
        }
        iVar4 = 1;
      }
    }
    else {
      pcVar6 = pB2->z;
      if ((int)sVar3 < 1) {
LAB_00040689:
        return (int)(pB1->u).zPType - sVar3;
      }
      if (*pcVar6 == '\0') {
        pcVar5 = pcVar6 + sVar3;
        do {
          pcVar6 = pcVar6 + 1;
          if (pcVar5 == pcVar6) goto LAB_00040689;
        } while (*pcVar6 == '\0');
      }
      iVar4 = -1;
    }
  }
  return iVar4;
}



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

int __regparm3 FUN_00040620(int *param_1,int *param_2)

{
  ushort uVar1;
  size_t sVar2;
  size_t sVar3;
  int iVar4;
  char *pcVar5;
  size_t __n;
  char *pcVar6;
  
  sVar2 = param_1[3];
  sVar3 = param_2[3];
  uVar1 = *(ushort *)(param_1 + 2);
  if (((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000) == 0) {
    __n = sVar3;
    if ((int)sVar2 <= (int)sVar3) {
      __n = sVar2;
    }
    iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n);
    if (iVar4 == 0) {
      iVar4 = sVar2 - sVar3;
    }
  }
  else {
    if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {
      return *param_1 - *param_2;
    }
    if ((uVar1 & 0x4000) == 0) {
      pcVar6 = (char *)param_1[4];
      if ((int)sVar2 < 1) {
LAB_000406fd:
        iVar4 = sVar2 - *param_2;
      }
      else {
        if (*pcVar6 == '\0') {
          pcVar5 = pcVar6 + sVar2;
          do {
            pcVar6 = pcVar6 + 1;
            if (pcVar6 == pcVar5) goto LAB_000406fd;
          } while (*pcVar6 == '\0');
        }
        iVar4 = 1;
      }
    }
    else {
      pcVar6 = (char *)param_2[4];
      if ((int)sVar3 < 1) {
LAB_00040689:
        return *param_1 - sVar3;
      }
      if (*pcVar6 == '\0') {
        pcVar5 = pcVar6 + sVar3;
        do {
          pcVar6 = pcVar6 + 1;
          if (pcVar5 == pcVar6) goto LAB_00040689;
        } while (*pcVar6 == '\0');
      }
      iVar4 = -1;
    }
  }
  return iVar4;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017230
ADD EBX,0x13b7ff
SUB ESP,0x1c
MOVZX ECX,word ptr [EDX + 0x8]
MOV ESI,dword ptr [EAX + 0xc]
MOV EDI,dword ptr [EDX + 0xc]
MOV dword ptr [ESP + 0xc],EBX
MOVZX EBX,word ptr [EAX + 0x8]
MOV EBP,EBX
OR EBP,ECX
TEST BP,0x4000
JZ 0x00040698
AND ECX,EBX
AND CH,0x40
JNZ 0x000406c8
AND BH,0x40
JZ 0x000406d8
MOV ECX,dword ptr [EDX + 0x10]
TEST EDI,EDI
JLE 0x00040689
CMP byte ptr [ECX],0x0
JNZ 0x00040708
LEA EDX,[ECX + 0x1]
ADD ECX,EDI
JMP 0x00040685
ADD EDX,0x1
CMP byte ptr [EDX + -0x1],0x0
JNZ 0x00040708
CMP ECX,EDX
JNZ 0x00040678
MOV EAX,dword ptr [EAX]
ADD ESP,0x1c
POP EBX
POP ESI
SUB EAX,EDI
POP EDI
POP EBP
RET
SUB ESP,0x4
MOV ECX,EDI
CMP ESI,EDI
CMOVLE ECX,ESI
SUB ESI,EDI
PUSH ECX
PUSH dword ptr [EDX + 0x10]
PUSH dword ptr [EAX + 0x10]
MOV EBX,dword ptr [ESP + 0x1c]
CALL 0x000151a0
ADD ESP,0x10
TEST EAX,EAX
CMOVZ EAX,ESI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EAX]
SUB EAX,dword ptr [EDX]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,dword ptr [EAX + 0x10]
TEST ESI,ESI
JLE 0x000406fd
CMP byte ptr [ECX],0x0
JNZ 0x00040710
LEA EAX,[ECX + 0x1]
ADD ECX,ESI
JMP 0x000406f9
ADD EAX,0x1
CMP byte ptr [EAX + -0x1],0x0
JNZ 0x00040710
CMP EAX,ECX
JNZ 0x000406f0
MOV EAX,ESI
SUB EAX,dword ptr [EDX]
JMP 0x000406bc
MOV EAX,0xffffffff
JMP 0x000406bc
MOV EAX,0x1
JMP 0x000406bc
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_00040620(int *param_1,int *param_2)\n\n{\n  ushort uVar1;\n  size_t sVar2;\n  size_t sVar3;\n  int iVar4;\n  char *pcVar5;\n  size_t __n;\n  char *pcVar6;\n  \n  sVar2 = param_1[3];\n  sVar3 = param_2[3];\n  uVar1 = *(ushort *)(param_1 + 2);\n  if (((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000) == 0) {\n    __n = sVar3;\n    if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }\n    iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n);\n    if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }\n  }\n  else {\n    if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return *param_1 - *param_2;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }\n  return iVar4;\n}\n\n" comment (function_definition "int __regparm3 FUN_00040620(int *param_1,int *param_2)\n\n{\n  ushort uVar1;\n  size_t sVar2;\n  size_t sVar3;\n  int iVar4;\n  char *pcVar5;\n  size_t __n;\n  char *pcVar6;\n  \n  sVar2 = param_1[3];\n  sVar3 = param_2[3];\n  uVar1 = *(ushort *)(param_1 + 2);\n  if (((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000) == 0) {\n    __n = sVar3;\n    if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }\n    iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n);\n    if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }\n  }\n  else {\n    if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return *param_1 - *param_2;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }\n  return iVar4;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00040620(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  ushort uVar1;\n  size_t sVar2;\n  size_t sVar3;\n  int iVar4;\n  char *pcVar5;\n  size_t __n;\n  char *pcVar6;\n  \n  sVar2 = param_1[3];\n  sVar3 = param_2[3];\n  uVar1 = *(ushort *)(param_1 + 2);\n  if (((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000) == 0) {\n    __n = sVar3;\n    if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }\n    iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n);\n    if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }\n  }\n  else {\n    if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return *param_1 - *param_2;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }\n  return iVar4;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "sVar2 = param_1[3];" (assignment_expression "sVar2 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "sVar3 = param_2[3];" (assignment_expression "sVar3 = param_2[3]" identifier = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = *(ushort *)(param_1 + 2);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 2)" identifier = (pointer_expression "*(ushort *)(param_1 + 2)" * (cast_expression "(ushort *)(param_1 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (if_statement "if (((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000) == 0) {\n    __n = sVar3;\n    if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }\n    iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n);\n    if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }\n  }\n  else {\n    if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return *param_1 - *param_2;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }" if (parenthesized_expression "(((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000) == 0)" ( (binary_expression "((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000) == 0" (parenthesized_expression "((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000)" ( (binary_expression "(uVar1 | *(ushort *)(param_2 + 2)) & 0x4000" (parenthesized_expression "(uVar1 | *(ushort *)(param_2 + 2))" ( (binary_expression "uVar1 | *(ushort *)(param_2 + 2)" identifier | (pointer_expression "*(ushort *)(param_2 + 2)" * (cast_expression "(ushort *)(param_2 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) ))))) )) & number_literal) )) == number_literal) )) (compound_statement "{\n    __n = sVar3;\n    if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }\n    iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n);\n    if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }\n  }" { (expression_statement "__n = sVar3;" (assignment_expression "__n = sVar3" identifier = identifier) ;) (if_statement "if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }" if (parenthesized_expression "((int)sVar2 <= (int)sVar3)" ( (binary_expression "(int)sVar2 <= (int)sVar3" (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      __n = sVar2;\n    }" { (expression_statement "__n = sVar2;" (assignment_expression "__n = sVar2" identifier = identifier) ;) })) (expression_statement "iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n);" (assignment_expression "iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n)" identifier = (call_expression "memcmp((void *)param_1[4],(void *)param_2[4],__n)" identifier (argument_list "((void *)param_1[4],(void *)param_2[4],__n)" ( (cast_expression "(void *)param_1[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) , (cast_expression "(void *)param_2[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[4]" identifier [ number_literal ])) , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = sVar2 - sVar3;\n    }" { (expression_statement "iVar4 = sVar2 - sVar3;" (assignment_expression "iVar4 = sVar2 - sVar3" identifier = (binary_expression "sVar2 - sVar3" identifier - identifier)) ;) })) }) (else_clause "else {\n    if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return *param_1 - *param_2;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }" else (compound_statement "{\n    if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return *param_1 - *param_2;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }" { (if_statement "if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return *param_1 - *param_2;\n    }" if (parenthesized_expression "(((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0)" ( (binary_expression "((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0" (parenthesized_expression "((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40)" ( (binary_expression "(byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40" (binary_expression "(byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8)" (call_expression "(byte)(*(ushort *)(param_2 + 2) >> 8)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*(ushort *)(param_2 + 2) >> 8)" ( (binary_expression "*(ushort *)(param_2 + 2) >> 8" (pointer_expression "*(ushort *)(param_2 + 2)" * (cast_expression "(ushort *)(param_2 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) )))) >> number_literal) ))) & (call_expression "(byte)(uVar1 >> 8)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar1 >> 8)" ( (binary_expression "uVar1 >> 8" identifier >> number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      return *param_1 - *param_2;\n    }" { (return_statement "return *param_1 - *param_2;" return (binary_expression "*param_1 - *param_2" (pointer_expression "*param_1" * identifier) - (pointer_expression "*param_2" * identifier)) ;) })) (if_statement "if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }" if (parenthesized_expression "((uVar1 & 0x4000) == 0)" ( (binary_expression "(uVar1 & 0x4000) == 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }" { (expression_statement "pcVar6 = (char *)param_1[4];" (assignment_expression "pcVar6 = (char *)param_1[4]" identifier = (cast_expression "(char *)param_1[4]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[4]" identifier [ number_literal ]))) ;) (if_statement "if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }" if (parenthesized_expression "((int)sVar2 < 1)" ( (binary_expression "(int)sVar2 < 1" (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }" { (labeled_statement "LAB_000406fd:\n        iVar4 = sVar2 - *param_2;" statement_identifier : (expression_statement "iVar4 = sVar2 - *param_2;" (assignment_expression "iVar4 = sVar2 - *param_2" identifier = (binary_expression "sVar2 - *param_2" identifier - (pointer_expression "*param_2" * identifier))) ;)) }) (else_clause "else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }" else (compound_statement "{\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }" { (if_statement "if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }" if (parenthesized_expression "(*pcVar6 == '\0')" ( (binary_expression "*pcVar6 == '\0'" (pointer_expression "*pcVar6" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }" { (expression_statement "pcVar5 = pcVar6 + sVar2;" (assignment_expression "pcVar5 = pcVar6 + sVar2" identifier = (binary_expression "pcVar6 + sVar2" identifier + identifier)) ;) (do_statement "do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');" do (compound_statement "{\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          }" { (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar6 == pcVar5) goto LAB_000406fd;" if (parenthesized_expression "(pcVar6 == pcVar5)" ( (binary_expression "pcVar6 == pcVar5" identifier == identifier) )) (goto_statement "goto LAB_000406fd;" goto statement_identifier ;)) }) while (parenthesized_expression "(*pcVar6 == '\0')" ( (binary_expression "*pcVar6 == '\0'" (pointer_expression "*pcVar6" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) }))) }) (else_clause "else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }" else (compound_statement "{\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }" { (expression_statement "pcVar6 = (char *)param_2[4];" (assignment_expression "pcVar6 = (char *)param_2[4]" identifier = (cast_expression "(char *)param_2[4]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[4]" identifier [ number_literal ]))) ;) (if_statement "if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }" if (parenthesized_expression "((int)sVar3 < 1)" ( (binary_expression "(int)sVar3 < 1" (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\nLAB_00040689:\n        return *param_1 - sVar3;\n      }" { (labeled_statement "LAB_00040689:\n        return *param_1 - sVar3;" statement_identifier : (return_statement "return *param_1 - sVar3;" return (binary_expression "*param_1 - sVar3" (pointer_expression "*param_1" * identifier) - identifier) ;)) })) (if_statement "if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }" if (parenthesized_expression "(*pcVar6 == '\0')" ( (binary_expression "*pcVar6 == '\0'" (pointer_expression "*pcVar6" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }" { (expression_statement "pcVar5 = pcVar6 + sVar3;" (assignment_expression "pcVar5 = pcVar6 + sVar3" identifier = (binary_expression "pcVar6 + sVar3" identifier + identifier)) ;) (do_statement "do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');" do (compound_statement "{\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        }" { (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar5 == pcVar6) goto LAB_00040689;" if (parenthesized_expression "(pcVar5 == pcVar6)" ( (binary_expression "pcVar5 == pcVar6" identifier == identifier) )) (goto_statement "goto LAB_00040689;" goto statement_identifier ;)) }) while (parenthesized_expression "(*pcVar6 == '\0')" ( (binary_expression "*pcVar6 == '\0'" (pointer_expression "*pcVar6" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) }))) }))) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 sqlite3BlobCompare(Mem *pB1,Mem *pB2)\n\n{\n  ushort uVar1;\n  size_t sVar2;\n  size_t sVar3;\n  int iVar4;\n  char *pcVar5;\n  size_t __n;\n  char *pcVar6;\n  \n  sVar2 = pB1->n;\n  sVar3 = pB2->n;\n  uVar1 = pB1->flags;\n  if (((uVar1 | pB2->flags) & 0x4000) == 0) {\n    __n = sVar3;\n    if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }\n    iVar4 = memcmp(pB1->z,pB2->z,__n);\n    if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }\n  }\n  else {\n    if (((byte)(pB2->flags >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return (int)(pB1->u).zPType - (pB2->u).nZero;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = pB1->z;\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - (pB2->u).nZero;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = pB2->z;\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return (int)(pB1->u).zPType - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }\n  return iVar4;\n}\n\n" comment (function_definition "int __regparm3 sqlite3BlobCompare(Mem *pB1,Mem *pB2)\n\n{\n  ushort uVar1;\n  size_t sVar2;\n  size_t sVar3;\n  int iVar4;\n  char *pcVar5;\n  size_t __n;\n  char *pcVar6;\n  \n  sVar2 = pB1->n;\n  sVar3 = pB2->n;\n  uVar1 = pB1->flags;\n  if (((uVar1 | pB2->flags) & 0x4000) == 0) {\n    __n = sVar3;\n    if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }\n    iVar4 = memcmp(pB1->z,pB2->z,__n);\n    if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }\n  }\n  else {\n    if (((byte)(pB2->flags >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return (int)(pB1->u).zPType - (pB2->u).nZero;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = pB1->z;\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - (pB2->u).nZero;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = pB2->z;\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return (int)(pB1->u).zPType - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }\n  return iVar4;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3BlobCompare(Mem *pB1,Mem *pB2)" identifier (parameter_list "(Mem *pB1,Mem *pB2)" ( (parameter_declaration "Mem *pB1" type_identifier (pointer_declarator "*pB1" * identifier)) , (parameter_declaration "Mem *pB2" type_identifier (pointer_declarator "*pB2" * identifier)) ))) (compound_statement "{\n  ushort uVar1;\n  size_t sVar2;\n  size_t sVar3;\n  int iVar4;\n  char *pcVar5;\n  size_t __n;\n  char *pcVar6;\n  \n  sVar2 = pB1->n;\n  sVar3 = pB2->n;\n  uVar1 = pB1->flags;\n  if (((uVar1 | pB2->flags) & 0x4000) == 0) {\n    __n = sVar3;\n    if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }\n    iVar4 = memcmp(pB1->z,pB2->z,__n);\n    if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }\n  }\n  else {\n    if (((byte)(pB2->flags >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return (int)(pB1->u).zPType - (pB2->u).nZero;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = pB1->z;\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - (pB2->u).nZero;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = pB2->z;\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return (int)(pB1->u).zPType - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }\n  return iVar4;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "sVar2 = pB1->n;" (assignment_expression "sVar2 = pB1->n" identifier = (field_expression "pB1->n" identifier -> field_identifier)) ;) (expression_statement "sVar3 = pB2->n;" (assignment_expression "sVar3 = pB2->n" identifier = (field_expression "pB2->n" identifier -> field_identifier)) ;) (expression_statement "uVar1 = pB1->flags;" (assignment_expression "uVar1 = pB1->flags" identifier = (field_expression "pB1->flags" identifier -> field_identifier)) ;) (if_statement "if (((uVar1 | pB2->flags) & 0x4000) == 0) {\n    __n = sVar3;\n    if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }\n    iVar4 = memcmp(pB1->z,pB2->z,__n);\n    if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }\n  }\n  else {\n    if (((byte)(pB2->flags >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return (int)(pB1->u).zPType - (pB2->u).nZero;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = pB1->z;\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - (pB2->u).nZero;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = pB2->z;\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return (int)(pB1->u).zPType - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }" if (parenthesized_expression "(((uVar1 | pB2->flags) & 0x4000) == 0)" ( (binary_expression "((uVar1 | pB2->flags) & 0x4000) == 0" (parenthesized_expression "((uVar1 | pB2->flags) & 0x4000)" ( (binary_expression "(uVar1 | pB2->flags) & 0x4000" (parenthesized_expression "(uVar1 | pB2->flags)" ( (binary_expression "uVar1 | pB2->flags" identifier | (field_expression "pB2->flags" identifier -> field_identifier)) )) & number_literal) )) == number_literal) )) (compound_statement "{\n    __n = sVar3;\n    if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }\n    iVar4 = memcmp(pB1->z,pB2->z,__n);\n    if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }\n  }" { (expression_statement "__n = sVar3;" (assignment_expression "__n = sVar3" identifier = identifier) ;) (if_statement "if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }" if (parenthesized_expression "((int)sVar2 <= (int)sVar3)" ( (binary_expression "(int)sVar2 <= (int)sVar3" (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      __n = sVar2;\n    }" { (expression_statement "__n = sVar2;" (assignment_expression "__n = sVar2" identifier = identifier) ;) })) (expression_statement "iVar4 = memcmp(pB1->z,pB2->z,__n);" (assignment_expression "iVar4 = memcmp(pB1->z,pB2->z,__n)" identifier = (call_expression "memcmp(pB1->z,pB2->z,__n)" identifier (argument_list "(pB1->z,pB2->z,__n)" ( (field_expression "pB1->z" identifier -> field_identifier) , (field_expression "pB2->z" identifier -> field_identifier) , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = sVar2 - sVar3;\n    }" { (expression_statement "iVar4 = sVar2 - sVar3;" (assignment_expression "iVar4 = sVar2 - sVar3" identifier = (binary_expression "sVar2 - sVar3" identifier - identifier)) ;) })) }) (else_clause "else {\n    if (((byte)(pB2->flags >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return (int)(pB1->u).zPType - (pB2->u).nZero;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = pB1->z;\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - (pB2->u).nZero;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = pB2->z;\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return (int)(pB1->u).zPType - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }" else (compound_statement "{\n    if (((byte)(pB2->flags >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return (int)(pB1->u).zPType - (pB2->u).nZero;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = pB1->z;\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - (pB2->u).nZero;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = pB2->z;\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return (int)(pB1->u).zPType - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }" { (if_statement "if (((byte)(pB2->flags >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return (int)(pB1->u).zPType - (pB2->u).nZero;\n    }" if (parenthesized_expression "(((byte)(pB2->flags >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0)" ( (binary_expression "((byte)(pB2->flags >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0" (parenthesized_expression "((byte)(pB2->flags >> 8) & (byte)(uVar1 >> 8) & 0x40)" ( (binary_expression "(byte)(pB2->flags >> 8) & (byte)(uVar1 >> 8) & 0x40" (binary_expression "(byte)(pB2->flags >> 8) & (byte)(uVar1 >> 8)" (call_expression "(byte)(pB2->flags >> 8)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(pB2->flags >> 8)" ( (binary_expression "pB2->flags >> 8" (field_expression "pB2->flags" identifier -> field_identifier) >> number_literal) ))) & (call_expression "(byte)(uVar1 >> 8)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar1 >> 8)" ( (binary_expression "uVar1 >> 8" identifier >> number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      return (int)(pB1->u).zPType - (pB2->u).nZero;\n    }" { (return_statement "return (int)(pB1->u).zPType - (pB2->u).nZero;" return (binary_expression "(int)(pB1->u).zPType - (pB2->u).nZero" (cast_expression "(int)(pB1->u).zPType" ( (type_descriptor "int" primitive_type) ) (field_expression "(pB1->u).zPType" (parenthesized_expression "(pB1->u)" ( (field_expression "pB1->u" identifier -> field_identifier) )) . field_identifier)) - (field_expression "(pB2->u).nZero" (parenthesized_expression "(pB2->u)" ( (field_expression "pB2->u" identifier -> field_identifier) )) . field_identifier)) ;) })) (if_statement "if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = pB1->z;\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - (pB2->u).nZero;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = pB2->z;\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return (int)(pB1->u).zPType - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }" if (parenthesized_expression "((uVar1 & 0x4000) == 0)" ( (binary_expression "(uVar1 & 0x4000) == 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      pcVar6 = pB1->z;\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - (pB2->u).nZero;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }" { (expression_statement "pcVar6 = pB1->z;" (assignment_expression "pcVar6 = pB1->z" identifier = (field_expression "pB1->z" identifier -> field_identifier)) ;) (if_statement "if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - (pB2->u).nZero;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }" if (parenthesized_expression "((int)sVar2 < 1)" ( (binary_expression "(int)sVar2 < 1" (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\nLAB_000406fd:\n        iVar4 = sVar2 - (pB2->u).nZero;\n      }" { (labeled_statement "LAB_000406fd:\n        iVar4 = sVar2 - (pB2->u).nZero;" statement_identifier : (expression_statement "iVar4 = sVar2 - (pB2->u).nZero;" (assignment_expression "iVar4 = sVar2 - (pB2->u).nZero" identifier = (binary_expression "sVar2 - (pB2->u).nZero" identifier - (field_expression "(pB2->u).nZero" (parenthesized_expression "(pB2->u)" ( (field_expression "pB2->u" identifier -> field_identifier) )) . field_identifier))) ;)) }) (else_clause "else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }" else (compound_statement "{\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }" { (if_statement "if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }" if (parenthesized_expression "(*pcVar6 == '\0')" ( (binary_expression "*pcVar6 == '\0'" (pointer_expression "*pcVar6" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }" { (expression_statement "pcVar5 = pcVar6 + sVar2;" (assignment_expression "pcVar5 = pcVar6 + sVar2" identifier = (binary_expression "pcVar6 + sVar2" identifier + identifier)) ;) (do_statement "do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');" do (compound_statement "{\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          }" { (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar6 == pcVar5) goto LAB_000406fd;" if (parenthesized_expression "(pcVar6 == pcVar5)" ( (binary_expression "pcVar6 == pcVar5" identifier == identifier) )) (goto_statement "goto LAB_000406fd;" goto statement_identifier ;)) }) while (parenthesized_expression "(*pcVar6 == '\0')" ( (binary_expression "*pcVar6 == '\0'" (pointer_expression "*pcVar6" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) }))) }) (else_clause "else {\n      pcVar6 = pB2->z;\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return (int)(pB1->u).zPType - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }" else (compound_statement "{\n      pcVar6 = pB2->z;\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return (int)(pB1->u).zPType - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }" { (expression_statement "pcVar6 = pB2->z;" (assignment_expression "pcVar6 = pB2->z" identifier = (field_expression "pB2->z" identifier -> field_identifier)) ;) (if_statement "if ((int)sVar3 < 1) {\nLAB_00040689:\n        return (int)(pB1->u).zPType - sVar3;\n      }" if (parenthesized_expression "((int)sVar3 < 1)" ( (binary_expression "(int)sVar3 < 1" (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\nLAB_00040689:\n        return (int)(pB1->u).zPType - sVar3;\n      }" { (labeled_statement "LAB_00040689:\n        return (int)(pB1->u).zPType - sVar3;" statement_identifier : (return_statement "return (int)(pB1->u).zPType - sVar3;" return (binary_expression "(int)(pB1->u).zPType - sVar3" (cast_expression "(int)(pB1->u).zPType" ( (type_descriptor "int" primitive_type) ) (field_expression "(pB1->u).zPType" (parenthesized_expression "(pB1->u)" ( (field_expression "pB1->u" identifier -> field_identifier) )) . field_identifier)) - identifier) ;)) })) (if_statement "if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }" if (parenthesized_expression "(*pcVar6 == '\0')" ( (binary_expression "*pcVar6 == '\0'" (pointer_expression "*pcVar6" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }" { (expression_statement "pcVar5 = pcVar6 + sVar3;" (assignment_expression "pcVar5 = pcVar6 + sVar3" identifier = (binary_expression "pcVar6 + sVar3" identifier + identifier)) ;) (do_statement "do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');" do (compound_statement "{\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        }" { (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar5 == pcVar6) goto LAB_00040689;" if (parenthesized_expression "(pcVar5 == pcVar6)" ( (binary_expression "pcVar5 == pcVar6" identifier == identifier) )) (goto_statement "goto LAB_00040689;" goto statement_identifier ;)) }) while (parenthesized_expression "(*pcVar6 == '\0')" ( (binary_expression "*pcVar6 == '\0'" (pointer_expression "*pcVar6" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) }))) }))) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_00040620(int *param_1,int *param_2)\n\n{\n  ushort uVar1;\n  size_t sVar2;\n  size_t sVar3;\n  int iVar4;\n  char *pcVar5;\n  size_t __n;\n  char *pcVar6;\n  \n  sVar2 = param_1[3];\n  sVar3 = param_2[3];\n  uVar1 = *(ushort *)(param_1 + 2);\n  if (((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000) == 0) {\n    __n = sVar3;\n    if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }\n    iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n);\n    if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }\n  }\n  else {\n    if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return *param_1 - *param_2;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }\n  return iVar4;\n}\n\n" (function_definition "int __regparm3 FUN_00040620(int *param_1,int *param_2)\n\n{\n  ushort uVar1;\n  size_t sVar2;\n  size_t sVar3;\n  int iVar4;\n  char *pcVar5;\n  size_t __n;\n  char *pcVar6;\n  \n  sVar2 = param_1[3];\n  sVar3 = param_2[3];\n  uVar1 = *(ushort *)(param_1 + 2);\n  if (((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000) == 0) {\n    __n = sVar3;\n    if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }\n    iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n);\n    if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }\n  }\n  else {\n    if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return *param_1 - *param_2;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }\n  return iVar4;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00040620(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  ushort uVar1;\n  size_t sVar2;\n  size_t sVar3;\n  int iVar4;\n  char *pcVar5;\n  size_t __n;\n  char *pcVar6;\n  \n  sVar2 = param_1[3];\n  sVar3 = param_2[3];\n  uVar1 = *(ushort *)(param_1 + 2);\n  if (((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000) == 0) {\n    __n = sVar3;\n    if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }\n    iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n);\n    if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }\n  }\n  else {\n    if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return *param_1 - *param_2;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }\n  return iVar4;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "sVar2 = param_1[3];" (assignment_expression "sVar2 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "sVar3 = param_2[3];" (assignment_expression "sVar3 = param_2[3]" identifier = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = *(ushort *)(param_1 + 2);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 2)" identifier = (pointer_expression "*(ushort *)(param_1 + 2)" * (cast_expression "(ushort *)(param_1 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (if_statement "if (((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000) == 0) {\n    __n = sVar3;\n    if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }\n    iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n);\n    if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }\n  }\n  else {\n    if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return *param_1 - *param_2;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }" if (parenthesized_expression "(((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000) == 0)" ( (binary_expression "((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000) == 0" (parenthesized_expression "((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000)" ( (binary_expression "(uVar1 | *(ushort *)(param_2 + 2)) & 0x4000" (parenthesized_expression "(uVar1 | *(ushort *)(param_2 + 2))" ( (binary_expression "uVar1 | *(ushort *)(param_2 + 2)" identifier | (pointer_expression "*(ushort *)(param_2 + 2)" * (cast_expression "(ushort *)(param_2 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) ))))) )) & number_literal) )) == number_literal) )) (compound_statement "{\n    __n = sVar3;\n    if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }\n    iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n);\n    if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }\n  }" { (expression_statement "__n = sVar3;" (assignment_expression "__n = sVar3" identifier = identifier) ;) (if_statement "if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }" if (parenthesized_expression "((int)sVar2 <= (int)sVar3)" ( (binary_expression "(int)sVar2 <= (int)sVar3" (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      __n = sVar2;\n    }" { (expression_statement "__n = sVar2;" (assignment_expression "__n = sVar2" identifier = identifier) ;) })) (expression_statement "iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n);" (assignment_expression "iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n)" identifier = (call_expression "memcmp((void *)param_1[4],(void *)param_2[4],__n)" identifier (argument_list "((void *)param_1[4],(void *)param_2[4],__n)" ( (cast_expression "(void *)param_1[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) , (cast_expression "(void *)param_2[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[4]" identifier [ number_literal ])) , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = sVar2 - sVar3;\n    }" { (expression_statement "iVar4 = sVar2 - sVar3;" (assignment_expression "iVar4 = sVar2 - sVar3" identifier = (binary_expression "sVar2 - sVar3" identifier - identifier)) ;) })) }) (else_clause "else {\n    if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return *param_1 - *param_2;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }" else (compound_statement "{\n    if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return *param_1 - *param_2;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }" { (if_statement "if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return *param_1 - *param_2;\n    }" if (parenthesized_expression "(((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0)" ( (binary_expression "((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0" (parenthesized_expression "((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40)" ( (binary_expression "(byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40" (binary_expression "(byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8)" (call_expression "(byte)(*(ushort *)(param_2 + 2) >> 8)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*(ushort *)(param_2 + 2) >> 8)" ( (binary_expression "*(ushort *)(param_2 + 2) >> 8" (pointer_expression "*(ushort *)(param_2 + 2)" * (cast_expression "(ushort *)(param_2 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) )))) >> number_literal) ))) & (call_expression "(byte)(uVar1 >> 8)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar1 >> 8)" ( (binary_expression "uVar1 >> 8" identifier >> number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      return *param_1 - *param_2;\n    }" { (return_statement "return *param_1 - *param_2;" return (binary_expression "*param_1 - *param_2" (pointer_expression "*param_1" * identifier) - (pointer_expression "*param_2" * identifier)) ;) })) (if_statement "if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }" if (parenthesized_expression "((uVar1 & 0x4000) == 0)" ( (binary_expression "(uVar1 & 0x4000) == 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }" { (expression_statement "pcVar6 = (char *)param_1[4];" (assignment_expression "pcVar6 = (char *)param_1[4]" identifier = (cast_expression "(char *)param_1[4]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[4]" identifier [ number_literal ]))) ;) (if_statement "if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }" if (parenthesized_expression "((int)sVar2 < 1)" ( (binary_expression "(int)sVar2 < 1" (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }" { (labeled_statement "LAB_000406fd:\n        iVar4 = sVar2 - *param_2;" statement_identifier : (expression_statement "iVar4 = sVar2 - *param_2;" (assignment_expression "iVar4 = sVar2 - *param_2" identifier = (binary_expression "sVar2 - *param_2" identifier - (pointer_expression "*param_2" * identifier))) ;)) }) (else_clause "else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }" else (compound_statement "{\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }" { (if_statement "if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }" if (parenthesized_expression "(*pcVar6 == '\0')" ( (binary_expression "*pcVar6 == '\0'" (pointer_expression "*pcVar6" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }" { (expression_statement "pcVar5 = pcVar6 + sVar2;" (assignment_expression "pcVar5 = pcVar6 + sVar2" identifier = (binary_expression "pcVar6 + sVar2" identifier + identifier)) ;) (do_statement "do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');" do (compound_statement "{\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          }" { (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar6 == pcVar5) goto LAB_000406fd;" if (parenthesized_expression "(pcVar6 == pcVar5)" ( (binary_expression "pcVar6 == pcVar5" identifier == identifier) )) (goto_statement "goto LAB_000406fd;" goto statement_identifier ;)) }) while (parenthesized_expression "(*pcVar6 == '\0')" ( (binary_expression "*pcVar6 == '\0'" (pointer_expression "*pcVar6" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) }))) }) (else_clause "else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }" else (compound_statement "{\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }" { (expression_statement "pcVar6 = (char *)param_2[4];" (assignment_expression "pcVar6 = (char *)param_2[4]" identifier = (cast_expression "(char *)param_2[4]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[4]" identifier [ number_literal ]))) ;) (if_statement "if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }" if (parenthesized_expression "((int)sVar3 < 1)" ( (binary_expression "(int)sVar3 < 1" (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\nLAB_00040689:\n        return *param_1 - sVar3;\n      }" { (labeled_statement "LAB_00040689:\n        return *param_1 - sVar3;" statement_identifier : (return_statement "return *param_1 - sVar3;" return (binary_expression "*param_1 - sVar3" (pointer_expression "*param_1" * identifier) - identifier) ;)) })) (if_statement "if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }" if (parenthesized_expression "(*pcVar6 == '\0')" ( (binary_expression "*pcVar6 == '\0'" (pointer_expression "*pcVar6" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }" { (expression_statement "pcVar5 = pcVar6 + sVar3;" (assignment_expression "pcVar5 = pcVar6 + sVar3" identifier = (binary_expression "pcVar6 + sVar3" identifier + identifier)) ;) (do_statement "do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');" do (compound_statement "{\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        }" { (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar5 == pcVar6) goto LAB_00040689;" if (parenthesized_expression "(pcVar5 == pcVar6)" ( (binary_expression "pcVar5 == pcVar6" identifier == identifier) )) (goto_statement "goto LAB_00040689;" goto statement_identifier ;)) }) while (parenthesized_expression "(*pcVar6 == '\0')" ( (binary_expression "*pcVar6 == '\0'" (pointer_expression "*pcVar6" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) }))) }))) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_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 (parenthesized_expression ( (binary_expression IDENT | (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (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 ])) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_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) )))) >> LIT) ))) & (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) )))) & LIT) )) != LIT) )) (compound_statement { (return_statement return (binary_expression (pointer_expression * IDENT) - (pointer_expression * IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (pointer_expression * IDENT))) ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (labeled_statement statement_identifier : (return_statement return (binary_expression (pointer_expression * IDENT) - IDENT) ;)) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_00040620(int *param_1,int *param_2)\n\n{\n  ushort uVar1;\n  size_t sVar2;\n  size_t sVar3;\n  int iVar4;\n  char *pcVar5;\n  size_t __n;\n  char *pcVar6;\n  \n  sVar2 = param_1[3];\n  sVar3 = param_2[3];\n  uVar1 = *(ushort *)(param_1 + 2);\n  if (((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000) == 0) {\n    __n = sVar3;\n    if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }\n    iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n);\n    if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }\n  }\n  else {\n    if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return *param_1 - *param_2;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }\n  return iVar4;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00040620(int *param_1,int *param_2)" (identifier "FUN_00040620") (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  ushort uVar1;\n  size_t sVar2;\n  size_t sVar3;\n  int iVar4;\n  char *pcVar5;\n  size_t __n;\n  char *pcVar6;\n  \n  sVar2 = param_1[3];\n  sVar3 = param_2[3];\n  uVar1 = *(ushort *)(param_1 + 2);\n  if (((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000) == 0) {\n    __n = sVar3;\n    if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }\n    iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n);\n    if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }\n  }\n  else {\n    if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return *param_1 - *param_2;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }\n  return iVar4;\n}" ({ "{") (declaration "ushort uVar1;" (type_identifier "ushort") (identifier "uVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (expression_statement "sVar2 = param_1[3];" (assignment_expression "sVar2 = param_1[3]" (identifier "sVar2") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "sVar3 = param_2[3];" (assignment_expression "sVar3 = param_2[3]" (identifier "sVar3") (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "uVar1 = *(ushort *)(param_1 + 2);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 2)" (identifier "uVar1") (= "=") (pointer_expression "*(ushort *)(param_1 + 2)" (* "*") (cast_expression "(ushort *)(param_1 + 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (if_statement "if (((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000) == 0) {\n    __n = sVar3;\n    if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }\n    iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n);\n    if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }\n  }\n  else {\n    if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return *param_1 - *param_2;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }" (if "if") (parenthesized_expression "(((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000) == 0)" (( "(") (binary_expression "((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000) == 0" (parenthesized_expression "((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000)" (( "(") (binary_expression "(uVar1 | *(ushort *)(param_2 + 2)) & 0x4000" (parenthesized_expression "(uVar1 | *(ushort *)(param_2 + 2))" (( "(") (binary_expression "uVar1 | *(ushort *)(param_2 + 2)" (identifier "uVar1") (| "|") (pointer_expression "*(ushort *)(param_2 + 2)" (* "*") (cast_expression "(ushort *)(param_2 + 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 2)" (( "(") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2")) () ")"))))) () ")")) (& "&") (number_literal "0x4000")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    __n = sVar3;\n    if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }\n    iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n);\n    if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }\n  }" ({ "{") (expression_statement "__n = sVar3;" (assignment_expression "__n = sVar3" (identifier "__n") (= "=") (identifier "sVar3")) (; ";")) (if_statement "if ((int)sVar2 <= (int)sVar3) {\n      __n = sVar2;\n    }" (if "if") (parenthesized_expression "((int)sVar2 <= (int)sVar3)" (( "(") (binary_expression "(int)sVar2 <= (int)sVar3" (cast_expression "(int)sVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar2")) (<= "<=") (cast_expression "(int)sVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar3"))) () ")")) (compound_statement "{\n      __n = sVar2;\n    }" ({ "{") (expression_statement "__n = sVar2;" (assignment_expression "__n = sVar2" (identifier "__n") (= "=") (identifier "sVar2")) (; ";")) (} "}"))) (expression_statement "iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n);" (assignment_expression "iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n)" (identifier "iVar4") (= "=") (call_expression "memcmp((void *)param_1[4],(void *)param_2[4],__n)" (identifier "memcmp") (argument_list "((void *)param_1[4],(void *)param_2[4],__n)" (( "(") (cast_expression "(void *)param_1[4]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (, ",") (cast_expression "(void *)param_2[4]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]"))) (, ",") (identifier "__n") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n      iVar4 = sVar2 - sVar3;\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar4 = sVar2 - sVar3;\n    }" ({ "{") (expression_statement "iVar4 = sVar2 - sVar3;" (assignment_expression "iVar4 = sVar2 - sVar3" (identifier "iVar4") (= "=") (binary_expression "sVar2 - sVar3" (identifier "sVar2") (- "-") (identifier "sVar3"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return *param_1 - *param_2;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }" (else "else") (compound_statement "{\n    if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return *param_1 - *param_2;\n    }\n    if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }\n  }" ({ "{") (if_statement "if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {\n      return *param_1 - *param_2;\n    }" (if "if") (parenthesized_expression "(((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0)" (( "(") (binary_expression "((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0" (parenthesized_expression "((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40)" (( "(") (binary_expression "(byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40" (binary_expression "(byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8)" (call_expression "(byte)(*(ushort *)(param_2 + 2) >> 8)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(*(ushort *)(param_2 + 2) >> 8)" (( "(") (binary_expression "*(ushort *)(param_2 + 2) >> 8" (pointer_expression "*(ushort *)(param_2 + 2)" (* "*") (cast_expression "(ushort *)(param_2 + 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 2)" (( "(") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2")) () ")")))) (>> ">>") (number_literal "8")) () ")"))) (& "&") (call_expression "(byte)(uVar1 >> 8)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar1 >> 8)" (( "(") (binary_expression "uVar1 >> 8" (identifier "uVar1") (>> ">>") (number_literal "8")) () ")")))) (& "&") (number_literal "0x40")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return *param_1 - *param_2;\n    }" ({ "{") (return_statement "return *param_1 - *param_2;" (return "return") (binary_expression "*param_1 - *param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (- "-") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}"))) (if_statement "if ((uVar1 & 0x4000) == 0) {\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }\n    else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }" (if "if") (parenthesized_expression "((uVar1 & 0x4000) == 0)" (( "(") (binary_expression "(uVar1 & 0x4000) == 0" (parenthesized_expression "(uVar1 & 0x4000)" (( "(") (binary_expression "uVar1 & 0x4000" (identifier "uVar1") (& "&") (number_literal "0x4000")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      pcVar6 = (char *)param_1[4];\n      if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }\n    }" ({ "{") (expression_statement "pcVar6 = (char *)param_1[4];" (assignment_expression "pcVar6 = (char *)param_1[4]" (identifier "pcVar6") (= "=") (cast_expression "(char *)param_1[4]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")))) (; ";")) (if_statement "if ((int)sVar2 < 1) {\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }\n      else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }" (if "if") (parenthesized_expression "((int)sVar2 < 1)" (( "(") (binary_expression "(int)sVar2 < 1" (cast_expression "(int)sVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar2")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\nLAB_000406fd:\n        iVar4 = sVar2 - *param_2;\n      }" ({ "{") (labeled_statement "LAB_000406fd:\n        iVar4 = sVar2 - *param_2;" (statement_identifier "LAB_000406fd") (: ":") (expression_statement "iVar4 = sVar2 - *param_2;" (assignment_expression "iVar4 = sVar2 - *param_2" (identifier "iVar4") (= "=") (binary_expression "sVar2 - *param_2" (identifier "sVar2") (- "-") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";"))) (} "}")) (else_clause "else {\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }" (else "else") (compound_statement "{\n        if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }\n        iVar4 = 1;\n      }" ({ "{") (if_statement "if (*pcVar6 == '\0') {\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }" (if "if") (parenthesized_expression "(*pcVar6 == '\0')" (( "(") (binary_expression "*pcVar6 == '\0'" (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          pcVar5 = pcVar6 + sVar2;\n          do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');\n        }" ({ "{") (expression_statement "pcVar5 = pcVar6 + sVar2;" (assignment_expression "pcVar5 = pcVar6 + sVar2" (identifier "pcVar5") (= "=") (binary_expression "pcVar6 + sVar2" (identifier "pcVar6") (+ "+") (identifier "sVar2"))) (; ";")) (do_statement "do {\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          } while (*pcVar6 == '\0');" (do "do") (compound_statement "{\n            pcVar6 = pcVar6 + 1;\n            if (pcVar6 == pcVar5) goto LAB_000406fd;\n          }" ({ "{") (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" (identifier "pcVar6") (= "=") (binary_expression "pcVar6 + 1" (identifier "pcVar6") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (pcVar6 == pcVar5) goto LAB_000406fd;" (if "if") (parenthesized_expression "(pcVar6 == pcVar5)" (( "(") (binary_expression "pcVar6 == pcVar5" (identifier "pcVar6") (== "==") (identifier "pcVar5")) () ")")) (goto_statement "goto LAB_000406fd;" (goto "goto") (statement_identifier "LAB_000406fd") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(*pcVar6 == '\0')" (( "(") (binary_expression "*pcVar6 == '\0'" (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }" (else "else") (compound_statement "{\n      pcVar6 = (char *)param_2[4];\n      if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }\n      if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }\n      iVar4 = -1;\n    }" ({ "{") (expression_statement "pcVar6 = (char *)param_2[4];" (assignment_expression "pcVar6 = (char *)param_2[4]" (identifier "pcVar6") (= "=") (cast_expression "(char *)param_2[4]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")))) (; ";")) (if_statement "if ((int)sVar3 < 1) {\nLAB_00040689:\n        return *param_1 - sVar3;\n      }" (if "if") (parenthesized_expression "((int)sVar3 < 1)" (( "(") (binary_expression "(int)sVar3 < 1" (cast_expression "(int)sVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar3")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\nLAB_00040689:\n        return *param_1 - sVar3;\n      }" ({ "{") (labeled_statement "LAB_00040689:\n        return *param_1 - sVar3;" (statement_identifier "LAB_00040689") (: ":") (return_statement "return *param_1 - sVar3;" (return "return") (binary_expression "*param_1 - sVar3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (- "-") (identifier "sVar3")) (; ";"))) (} "}"))) (if_statement "if (*pcVar6 == '\0') {\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }" (if "if") (parenthesized_expression "(*pcVar6 == '\0')" (( "(") (binary_expression "*pcVar6 == '\0'" (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        pcVar5 = pcVar6 + sVar3;\n        do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');\n      }" ({ "{") (expression_statement "pcVar5 = pcVar6 + sVar3;" (assignment_expression "pcVar5 = pcVar6 + sVar3" (identifier "pcVar5") (= "=") (binary_expression "pcVar6 + sVar3" (identifier "pcVar6") (+ "+") (identifier "sVar3"))) (; ";")) (do_statement "do {\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        } while (*pcVar6 == '\0');" (do "do") (compound_statement "{\n          pcVar6 = pcVar6 + 1;\n          if (pcVar5 == pcVar6) goto LAB_00040689;\n        }" ({ "{") (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" (identifier "pcVar6") (= "=") (binary_expression "pcVar6 + 1" (identifier "pcVar6") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (pcVar5 == pcVar6) goto LAB_00040689;" (if "if") (parenthesized_expression "(pcVar5 == pcVar6)" (( "(") (binary_expression "pcVar5 == pcVar6" (identifier "pcVar5") (== "==") (identifier "pcVar6")) () ")")) (goto_statement "goto LAB_00040689;" (goto "goto") (statement_identifier "LAB_00040689") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(*pcVar6 == '\0')" (( "(") (binary_expression "*pcVar6 == '\0'" (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" (identifier "iVar4") (= "=") (number_literal "-1")) (; ";")) (} "}")))) (} "}")))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))

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

int __regparm3 function_1(type_1 *pB1,type_1 *pB2)

{
  type_2 var_1;
  size_t var_4;
  size_t var_5;
  int var_3;
  char *var_7;
  size_t __n;
  char *var_6;
  
  var_4 = pB1->n;
  var_5 = pB2->n;
  var_1 = pB1->flags;
  if (((var_1 | pB2->flags) & 0x4000) == 0) {
    __n = var_5;
    if ((int)var_4 <= (int)var_5) {
      __n = var_4;
    }
    var_3 = var_2(pB1->z,pB2->z,__n);
    if (var_3 == 0) {
      var_3 = var_4 - var_5;
    }
  }
  else {
    if (((byte)(pB2->flags >> 8) & (byte)(var_1 >> 8) & 0x40) != 0) {
      return (int)(pB1->u).zPType - (pB2->u).nZero;
    }
    if ((var_1 & 0x4000) == 0) {
      var_6 = pB1->z;
      if ((int)var_4 < 1) {
LAB_000406fd:
        var_3 = var_4 - (pB2->u).nZero;
      }
      else {
        if (*var_6 == '\0') {
          var_7 = var_6 + var_4;
          do {
            var_6 = var_6 + 1;
            if (var_6 == var_7) goto LAB_000406fd;
          } while (*var_6 == '\0');
        }
        var_3 = 1;
      }
    }
    else {
      var_6 = pB2->z;
      if ((int)var_5 < 1) {
LAB_00040689:
        return (int)(pB1->u).zPType - var_5;
      }
      if (*var_6 == '\0') {
        var_7 = var_6 + var_5;
        do {
          var_6 = var_6 + 1;
          if (var_7 == var_6) goto LAB_00040689;
        } while (*var_6 == '\0');
      }
      var_3 = -1;
    }
  }
  return var_3;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) 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: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (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: (parenthesized_expression (binary_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))))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (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))) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (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: (number_literal)))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier)))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (return_statement (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier)))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))))) (return_statement (identifier)))))

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

int __regparm3 MASKED(int *param_1,int *param_2)

{
  ushort uVar1;
  size_t sVar2;
  size_t sVar3;
  int iVar4;
  char *pcVar5;
  size_t __n;
  char *pcVar6;
  
  sVar2 = param_1[3];
  sVar3 = param_2[3];
  uVar1 = *(ushort *)(param_1 + 2);
  if (((uVar1 | *(ushort *)(param_2 + 2)) & 0x4000) == 0) {
    __n = sVar3;
    if ((int)sVar2 <= (int)sVar3) {
      __n = sVar2;
    }
    iVar4 = memcmp((void *)param_1[4],(void *)param_2[4],__n);
    if (iVar4 == 0) {
      iVar4 = sVar2 - sVar3;
    }
  }
  else {
    if (((byte)(*(ushort *)(param_2 + 2) >> 8) & (byte)(uVar1 >> 8) & 0x40) != 0) {
      return *param_1 - *param_2;
    }
    if ((uVar1 & 0x4000) == 0) {
      pcVar6 = (char *)param_1[4];
      if ((int)sVar2 < 1) {
LAB_000406fd:
        iVar4 = sVar2 - *param_2;
      }
      else {
        if (*pcVar6 == '\0') {
          pcVar5 = pcVar6 + sVar2;
          do {
            pcVar6 = pcVar6 + 1;
            if (pcVar6 == pcVar5) goto LAB_000406fd;
          } while (*pcVar6 == '\0');
        }
        iVar4 = 1;
      }
    }
    else {
      pcVar6 = (char *)param_2[4];
      if ((int)sVar3 < 1) {
LAB_00040689:
        return *param_1 - sVar3;
      }
      if (*pcVar6 == '\0') {
        pcVar5 = pcVar6 + sVar3;
        do {
          pcVar6 = pcVar6 + 1;
          if (pcVar5 == pcVar6) goto LAB_00040689;
        } while (*pcVar6 == '\0');
      }
      iVar4 = -1;
    }
  }
  return iVar4;
}

