
void instrFunc(sqlite3_context *context,int argc,sqlite3_value **argv)

{
  char cVar1;
  char cVar2;
  byte bVar3;
  int iVar4;
  bool bVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  byte *__s1;
  int iVal;
  byte *local_50;
  
  cVar1 = aType_24272[(*argv)->flags & 0x1f];
  cVar2 = aType_24272[argv[1]->flags & 0x1f];
  if ((cVar1 != '\x05') && (cVar2 != '\x05')) {
    iVar6 = sqlite3_value_bytes(*argv);
    iVar7 = sqlite3_value_bytes(argv[1]);
    if (iVar7 < 1) {
      iVal = 1;
    }
    else {
      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {
        __s1 = (byte *)sqlite3_value_blob(*argv);
        local_50 = (byte *)sqlite3_value_blob(argv[1]);
        bVar5 = false;
      }
      else {
        __s1 = sqlite3_value_text(*argv);
        local_50 = sqlite3_value_text(argv[1]);
        bVar5 = true;
      }
      if (local_50 == (byte *)0x0) {
        return;
      }
      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {
        return;
      }
      bVar3 = *local_50;
      iVal = 1;
      if (iVar6 < iVar7) {
        iVal = 0;
      }
      else {
        do {
          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {
            if (iVar6 < iVar7) {
              iVal = 0;
            }
            goto LAB_00157f36;
          }
          iVal = iVal + 1;
          iVar8 = iVar6 + -1;
          iVar4 = (int)__s1;
          do {
            iVar6 = (iVar8 + iVar4) - (int)__s1;
            __s1 = __s1 + 1;
            if (!bVar5) break;
          } while ((*__s1 & 0xc0) == 0x80);
        } while (iVar7 <= iVar6);
        iVal = 0;
      }
    }
LAB_00157f36:
    sqlite3_result_int(context,iVal);
  }
  return;
}



void FUN_00157ddc(undefined8 param_1,undefined8 param_2,long *param_3)

{
  char cVar1;
  char cVar2;
  byte bVar3;
  int iVar4;
  bool bVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  byte *__s1;
  int iVar9;
  byte *local_50;
  
  cVar1 = (&DAT_001facc0)[*(ushort *)(*param_3 + 8) & 0x1f];
  cVar2 = (&DAT_001facc0)[*(ushort *)(param_3[1] + 8) & 0x1f];
  if ((cVar1 != '\x05') && (cVar2 != '\x05')) {
    iVar6 = FUN_00156880(*param_3);
    iVar7 = FUN_00156880(param_3[1]);
    if (iVar7 < 1) {
      iVar9 = 1;
    }
    else {
      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {
        __s1 = (byte *)FUN_00156a16(*param_3);
        local_50 = (byte *)FUN_00156a16(param_3[1]);
        bVar5 = false;
      }
      else {
        __s1 = (byte *)FUN_001569d7(*param_3);
        local_50 = (byte *)FUN_001569d7(param_3[1]);
        bVar5 = true;
      }
      if (local_50 == (byte *)0x0) {
        return;
      }
      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {
        return;
      }
      bVar3 = *local_50;
      iVar9 = 1;
      if (iVar6 < iVar7) {
        iVar9 = 0;
      }
      else {
        do {
          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {
            if (iVar6 < iVar7) {
              iVar9 = 0;
            }
            goto LAB_00157f36;
          }
          iVar9 = iVar9 + 1;
          iVar8 = iVar6 + -1;
          iVar4 = (int)__s1;
          do {
            iVar6 = (iVar8 + iVar4) - (int)__s1;
            __s1 = __s1 + 1;
            if (!bVar5) break;
          } while ((*__s1 & 0xc0) == 0x80);
        } while (iVar7 <= iVar6);
        iVar9 = 0;
      }
    }
LAB_00157f36:
    FUN_00142584(param_1,iVar9);
  }
  return;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x28
MOV RSI,qword ptr [RDX]
LEA RCX,[0x1facc0]
MOVZX EAX,word ptr [RSI + 0x8]
AND EAX,0x1f
MOVZX EBP,byte ptr [RCX + RAX*0x1]
MOV RAX,qword ptr [RDX + 0x8]
MOVZX EAX,word ptr [RAX + 0x8]
AND EAX,0x1f
MOVZX R13D,byte ptr [RCX + RAX*0x1]
CMP EBP,0x5
JZ 0x00157f43
CMP R13D,0x5
JZ 0x00157f43
MOV RBX,RDX
MOV qword ptr [RSP + 0x18],RDI
MOV RDI,RSI
CALL 0x00156880
MOV R12D,EAX
MOV RDI,qword ptr [RBX + 0x8]
CALL 0x00156880
MOV R14D,EAX
TEST EAX,EAX
JLE 0x00157f28
CMP EBP,0x4
JNZ 0x00157e54
CMP R13D,0x4
JZ 0x00157eb3
MOV RDI,qword ptr [RBX]
CALL 0x001569d7
MOV RBP,RAX
MOV RDI,qword ptr [RBX + 0x8]
CALL 0x001569d7
MOV qword ptr [RSP + 0x8],RAX
MOV EBX,0x1
CMP qword ptr [RSP + 0x8],0x0
JZ 0x00157f43
TEST R12D,R12D
JZ 0x00157e8c
TEST RBP,RBP
JZ 0x00157f43
MOV RAX,qword ptr [RSP + 0x8]
MOVZX R15D,byte ptr [RAX]
MOV R13D,0x1
MOVSXD RAX,R14D
MOV qword ptr [RSP + 0x10],RAX
CMP R12D,R14D
JGE 0x00157ede
MOV R13D,0x0
JMP 0x00157f36
MOV RDI,qword ptr [RBX]
CALL 0x00156a16
MOV RBP,RAX
MOV RDI,qword ptr [RBX + 0x8]
CALL 0x00156a16
MOV qword ptr [RSP + 0x8],RAX
MOV EBX,0x0
JMP 0x00157e72
MOV R12D,ECX
CMP R14D,ECX
JG 0x00157f30
MOV RBP,RAX
CMP byte ptr [RBP],R15B
JZ 0x00157f09
ADD R13D,0x1
MOV RAX,RBP
LEA ESI,[R12 + RBP*0x1 + -0x1]
MOV ECX,ESI
SUB ECX,EAX
ADD RAX,0x1
TEST EBX,EBX
JZ 0x00157ed3
MOVZX EDX,byte ptr [RAX]
AND EDX,0xffffffc0
CMP DL,0x80
JZ 0x00157ef0
JMP 0x00157ed3
MOV RDX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x8]
MOV RDI,RBP
CALL 0x0010e530
TEST EAX,EAX
JNZ 0x00157ee4
CMP R14D,R12D
CMOVG R13D,EAX
JMP 0x00157f36
MOV R13D,0x1
JMP 0x00157f36
MOV R13D,0x0
MOV ESI,R13D
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00142584
ADD RSP,0x28
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
(translation_unit "void FUN_00157ddc(undefined8 param_1,undefined8 param_2,long *param_3)\n\n{\n  char cVar1;\n  char cVar2;\n  byte bVar3;\n  int iVar4;\n  bool bVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  byte *__s1;\n  int iVar9;\n  byte *local_50;\n  \n  cVar1 = (&DAT_001facc0)[*(ushort *)(*param_3 + 8) & 0x1f];\n  cVar2 = (&DAT_001facc0)[*(ushort *)(param_3[1] + 8) & 0x1f];\n  if ((cVar1 != '\x05') && (cVar2 != '\x05')) {\n    iVar6 = FUN_00156880(*param_3);\n    iVar7 = FUN_00156880(param_3[1]);\n    if (iVar7 < 1) {\n      iVar9 = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }\nLAB_00157f36:\n    FUN_00142584(param_1,iVar9);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00157ddc(undefined8 param_1,undefined8 param_2,long *param_3)\n\n{\n  char cVar1;\n  char cVar2;\n  byte bVar3;\n  int iVar4;\n  bool bVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  byte *__s1;\n  int iVar9;\n  byte *local_50;\n  \n  cVar1 = (&DAT_001facc0)[*(ushort *)(*param_3 + 8) & 0x1f];\n  cVar2 = (&DAT_001facc0)[*(ushort *)(param_3[1] + 8) & 0x1f];\n  if ((cVar1 != '\x05') && (cVar2 != '\x05')) {\n    iVar6 = FUN_00156880(*param_3);\n    iVar7 = FUN_00156880(param_3[1]);\n    if (iVar7 < 1) {\n      iVar9 = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }\nLAB_00157f36:\n    FUN_00142584(param_1,iVar9);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00157ddc(undefined8 param_1,undefined8 param_2,long *param_3)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,long *param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long *param_3" (sized_type_specifier "long" long) (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  char cVar2;\n  byte bVar3;\n  int iVar4;\n  bool bVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  byte *__s1;\n  int iVar9;\n  byte *local_50;\n  \n  cVar1 = (&DAT_001facc0)[*(ushort *)(*param_3 + 8) & 0x1f];\n  cVar2 = (&DAT_001facc0)[*(ushort *)(param_3[1] + 8) & 0x1f];\n  if ((cVar1 != '\x05') && (cVar2 != '\x05')) {\n    iVar6 = FUN_00156880(*param_3);\n    iVar7 = FUN_00156880(param_3[1]);\n    if (iVar7 < 1) {\n      iVar9 = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }\nLAB_00157f36:\n    FUN_00142584(param_1,iVar9);\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "byte *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "byte *local_50;" type_identifier (pointer_declarator "*local_50" * identifier) ;) (expression_statement "cVar1 = (&DAT_001facc0)[*(ushort *)(*param_3 + 8) & 0x1f];" (assignment_expression "cVar1 = (&DAT_001facc0)[*(ushort *)(*param_3 + 8) & 0x1f]" identifier = (subscript_expression "(&DAT_001facc0)[*(ushort *)(*param_3 + 8) & 0x1f]" (parenthesized_expression "(&DAT_001facc0)" ( (pointer_expression "&DAT_001facc0" & identifier) )) [ (binary_expression "*(ushort *)(*param_3 + 8) & 0x1f" (pointer_expression "*(ushort *)(*param_3 + 8)" * (cast_expression "(ushort *)(*param_3 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_3 + 8)" ( (binary_expression "*param_3 + 8" (pointer_expression "*param_3" * identifier) + number_literal) )))) & number_literal) ])) ;) (expression_statement "cVar2 = (&DAT_001facc0)[*(ushort *)(param_3[1] + 8) & 0x1f];" (assignment_expression "cVar2 = (&DAT_001facc0)[*(ushort *)(param_3[1] + 8) & 0x1f]" identifier = (subscript_expression "(&DAT_001facc0)[*(ushort *)(param_3[1] + 8) & 0x1f]" (parenthesized_expression "(&DAT_001facc0)" ( (pointer_expression "&DAT_001facc0" & identifier) )) [ (binary_expression "*(ushort *)(param_3[1] + 8) & 0x1f" (pointer_expression "*(ushort *)(param_3[1] + 8)" * (cast_expression "(ushort *)(param_3[1] + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3[1] + 8)" ( (binary_expression "param_3[1] + 8" (subscript_expression "param_3[1]" identifier [ number_literal ]) + number_literal) )))) & number_literal) ])) ;) (if_statement "if ((cVar1 != '\x05') && (cVar2 != '\x05')) {\n    iVar6 = FUN_00156880(*param_3);\n    iVar7 = FUN_00156880(param_3[1]);\n    if (iVar7 < 1) {\n      iVar9 = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }\nLAB_00157f36:\n    FUN_00142584(param_1,iVar9);\n  }" if (parenthesized_expression "((cVar1 != '\x05') && (cVar2 != '\x05'))" ( (binary_expression "(cVar1 != '\x05') && (cVar2 != '\x05')" (parenthesized_expression "(cVar1 != '\x05')" ( (binary_expression "cVar1 != '\x05'" identifier != (char_literal "'\x05'" ' escape_sequence ')) )) && (parenthesized_expression "(cVar2 != '\x05')" ( (binary_expression "cVar2 != '\x05'" identifier != (char_literal "'\x05'" ' escape_sequence ')) ))) )) (compound_statement "{\n    iVar6 = FUN_00156880(*param_3);\n    iVar7 = FUN_00156880(param_3[1]);\n    if (iVar7 < 1) {\n      iVar9 = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }\nLAB_00157f36:\n    FUN_00142584(param_1,iVar9);\n  }" { (expression_statement "iVar6 = FUN_00156880(*param_3);" (assignment_expression "iVar6 = FUN_00156880(*param_3)" identifier = (call_expression "FUN_00156880(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "iVar7 = FUN_00156880(param_3[1]);" (assignment_expression "iVar7 = FUN_00156880(param_3[1])" identifier = (call_expression "FUN_00156880(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar7 < 1) {\n      iVar9 = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }" if (parenthesized_expression "(iVar7 < 1)" ( (binary_expression "iVar7 < 1" identifier < number_literal) )) (compound_statement "{\n      iVar9 = 1;\n    }" { (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }" else (compound_statement "{\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }" { (if_statement "if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }" if (parenthesized_expression "((cVar1 == '\x04') && (cVar2 == '\x04'))" ( (binary_expression "(cVar1 == '\x04') && (cVar2 == '\x04')" (parenthesized_expression "(cVar1 == '\x04')" ( (binary_expression "cVar1 == '\x04'" identifier == (char_literal "'\x04'" ' escape_sequence ')) )) && (parenthesized_expression "(cVar2 == '\x04')" ( (binary_expression "cVar2 == '\x04'" identifier == (char_literal "'\x04'" ' escape_sequence ')) ))) )) (compound_statement "{\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }" { (expression_statement "__s1 = (byte *)FUN_00156a16(*param_3);" (assignment_expression "__s1 = (byte *)FUN_00156a16(*param_3)" identifier = (cast_expression "(byte *)FUN_00156a16(*param_3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00156a16(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))))) ;) (expression_statement "local_50 = (byte *)FUN_00156a16(param_3[1]);" (assignment_expression "local_50 = (byte *)FUN_00156a16(param_3[1])" identifier = (cast_expression "(byte *)FUN_00156a16(param_3[1])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00156a16(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) ))))) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) }) (else_clause "else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }" else (compound_statement "{\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }" { (expression_statement "__s1 = (byte *)FUN_001569d7(*param_3);" (assignment_expression "__s1 = (byte *)FUN_001569d7(*param_3)" identifier = (cast_expression "(byte *)FUN_001569d7(*param_3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001569d7(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))))) ;) (expression_statement "local_50 = (byte *)FUN_001569d7(param_3[1]);" (assignment_expression "local_50 = (byte *)FUN_001569d7(param_3[1])" identifier = (cast_expression "(byte *)FUN_001569d7(param_3[1])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001569d7(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) ))))) ;) (expression_statement "bVar5 = true;" (assignment_expression "bVar5 = true" identifier = true) ;) }))) (if_statement "if (local_50 == (byte *)0x0) {\n        return;\n      }" if (parenthesized_expression "(local_50 == (byte *)0x0)" ( (binary_expression "local_50 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (if_statement "if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }" if (parenthesized_expression "((iVar6 != 0) && (__s1 == (byte *)0x0))" ( (binary_expression "(iVar6 != 0) && (__s1 == (byte *)0x0)" (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) && (parenthesized_expression "(__s1 == (byte *)0x0)" ( (binary_expression "__s1 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "bVar3 = *local_50;" (assignment_expression "bVar3 = *local_50" identifier = (pointer_expression "*local_50" * identifier)) ;) (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;) (if_statement "if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }" if (parenthesized_expression "(iVar6 < iVar7)" ( (binary_expression "iVar6 < iVar7" identifier < identifier) )) (compound_statement "{\n        iVar9 = 0;\n      }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }" else (compound_statement "{\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }" { (do_statement "do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);" do (compound_statement "{\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        }" { (if_statement "if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }" if (parenthesized_expression "((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0))" ( (binary_expression "(*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)" (parenthesized_expression "(*__s1 == bVar3)" ( (binary_expression "*__s1 == bVar3" (pointer_expression "*__s1" * identifier) == identifier) )) && (parenthesized_expression "(iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)" ( (comma_expression "iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0" (assignment_expression "iVar8 = memcmp(__s1,local_50,(long)iVar7)" identifier = (call_expression "memcmp(__s1,local_50,(long)iVar7)" identifier (argument_list "(__s1,local_50,(long)iVar7)" ( identifier , identifier , (cast_expression "(long)iVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) )))) , (binary_expression "iVar8 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }" { (if_statement "if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }" if (parenthesized_expression "(iVar6 < iVar7)" ( (binary_expression "iVar6 < iVar7" identifier < identifier) )) (compound_statement "{\n              iVar9 = 0;\n            }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) })) (goto_statement "goto LAB_00157f36;" goto statement_identifier ;) })) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar6 + -1;" (assignment_expression "iVar8 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (expression_statement "iVar4 = (int)__s1;" (assignment_expression "iVar4 = (int)__s1" identifier = (cast_expression "(int)__s1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (do_statement "do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);" do (compound_statement "{\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          }" { (expression_statement "iVar6 = (iVar8 + iVar4) - (int)__s1;" (assignment_expression "iVar6 = (iVar8 + iVar4) - (int)__s1" identifier = (binary_expression "(iVar8 + iVar4) - (int)__s1" (parenthesized_expression "(iVar8 + iVar4)" ( (binary_expression "iVar8 + iVar4" identifier + identifier) )) - (cast_expression "(int)__s1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "__s1 = __s1 + 1;" (assignment_expression "__s1 = __s1 + 1" identifier = (binary_expression "__s1 + 1" identifier + number_literal)) ;) (if_statement "if (!bVar5) break;" if (parenthesized_expression "(!bVar5)" ( (unary_expression "!bVar5" ! identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "((*__s1 & 0xc0) == 0x80)" ( (binary_expression "(*__s1 & 0xc0) == 0x80" (parenthesized_expression "(*__s1 & 0xc0)" ( (binary_expression "*__s1 & 0xc0" (pointer_expression "*__s1" * identifier) & number_literal) )) == number_literal) )) ;) }) while (parenthesized_expression "(iVar7 <= iVar6)" ( (binary_expression "iVar7 <= iVar6" identifier <= identifier) )) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) }))) }))) (labeled_statement "LAB_00157f36:\n    FUN_00142584(param_1,iVar9);" statement_identifier : (expression_statement "FUN_00142584(param_1,iVar9);" (call_expression "FUN_00142584(param_1,iVar9)" identifier (argument_list "(param_1,iVar9)" ( identifier , identifier ))) ;)) })) (return_statement "return;" return ;) })))
(translation_unit "void instrFunc(sqlite3_context *context,int argc,sqlite3_value **argv)\n\n{\n  char cVar1;\n  char cVar2;\n  byte bVar3;\n  int iVar4;\n  bool bVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  byte *__s1;\n  int iVal;\n  byte *local_50;\n  \n  cVar1 = aType_24272[(*argv)->flags & 0x1f];\n  cVar2 = aType_24272[argv[1]->flags & 0x1f];\n  if ((cVar1 != '\x05') && (cVar2 != '\x05')) {\n    iVar6 = sqlite3_value_bytes(*argv);\n    iVar7 = sqlite3_value_bytes(argv[1]);\n    if (iVar7 < 1) {\n      iVal = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)sqlite3_value_blob(*argv);\n        local_50 = (byte *)sqlite3_value_blob(argv[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = sqlite3_value_text(*argv);\n        local_50 = sqlite3_value_text(argv[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVal = 1;\n      if (iVar6 < iVar7) {\n        iVal = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVal = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVal = iVal + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVal = 0;\n      }\n    }\nLAB_00157f36:\n    sqlite3_result_int(context,iVal);\n  }\n  return;\n}\n\n" (function_definition "void instrFunc(sqlite3_context *context,int argc,sqlite3_value **argv)\n\n{\n  char cVar1;\n  char cVar2;\n  byte bVar3;\n  int iVar4;\n  bool bVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  byte *__s1;\n  int iVal;\n  byte *local_50;\n  \n  cVar1 = aType_24272[(*argv)->flags & 0x1f];\n  cVar2 = aType_24272[argv[1]->flags & 0x1f];\n  if ((cVar1 != '\x05') && (cVar2 != '\x05')) {\n    iVar6 = sqlite3_value_bytes(*argv);\n    iVar7 = sqlite3_value_bytes(argv[1]);\n    if (iVar7 < 1) {\n      iVal = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)sqlite3_value_blob(*argv);\n        local_50 = (byte *)sqlite3_value_blob(argv[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = sqlite3_value_text(*argv);\n        local_50 = sqlite3_value_text(argv[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVal = 1;\n      if (iVar6 < iVar7) {\n        iVal = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVal = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVal = iVal + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVal = 0;\n      }\n    }\nLAB_00157f36:\n    sqlite3_result_int(context,iVal);\n  }\n  return;\n}" primitive_type (function_declarator "instrFunc(sqlite3_context *context,int argc,sqlite3_value **argv)" identifier (parameter_list "(sqlite3_context *context,int argc,sqlite3_value **argv)" ( (parameter_declaration "sqlite3_context *context" type_identifier (pointer_declarator "*context" * identifier)) , (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "sqlite3_value **argv" type_identifier (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))) (compound_statement "{\n  char cVar1;\n  char cVar2;\n  byte bVar3;\n  int iVar4;\n  bool bVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  byte *__s1;\n  int iVal;\n  byte *local_50;\n  \n  cVar1 = aType_24272[(*argv)->flags & 0x1f];\n  cVar2 = aType_24272[argv[1]->flags & 0x1f];\n  if ((cVar1 != '\x05') && (cVar2 != '\x05')) {\n    iVar6 = sqlite3_value_bytes(*argv);\n    iVar7 = sqlite3_value_bytes(argv[1]);\n    if (iVar7 < 1) {\n      iVal = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)sqlite3_value_blob(*argv);\n        local_50 = (byte *)sqlite3_value_blob(argv[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = sqlite3_value_text(*argv);\n        local_50 = sqlite3_value_text(argv[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVal = 1;\n      if (iVar6 < iVar7) {\n        iVal = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVal = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVal = iVal + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVal = 0;\n      }\n    }\nLAB_00157f36:\n    sqlite3_result_int(context,iVal);\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "byte *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVal;" primitive_type identifier ;) (declaration "byte *local_50;" type_identifier (pointer_declarator "*local_50" * identifier) ;) (expression_statement "cVar1 = aType_24272[(*argv)->flags & 0x1f];" (assignment_expression "cVar1 = aType_24272[(*argv)->flags & 0x1f]" identifier = (subscript_expression "aType_24272[(*argv)->flags & 0x1f]" identifier [ (binary_expression "(*argv)->flags & 0x1f" (field_expression "(*argv)->flags" (parenthesized_expression "(*argv)" ( (pointer_expression "*argv" * identifier) )) -> field_identifier) & number_literal) ])) ;) (expression_statement "cVar2 = aType_24272[argv[1]->flags & 0x1f];" (assignment_expression "cVar2 = aType_24272[argv[1]->flags & 0x1f]" identifier = (subscript_expression "aType_24272[argv[1]->flags & 0x1f]" identifier [ (binary_expression "argv[1]->flags & 0x1f" (field_expression "argv[1]->flags" (subscript_expression "argv[1]" identifier [ number_literal ]) -> field_identifier) & number_literal) ])) ;) (if_statement "if ((cVar1 != '\x05') && (cVar2 != '\x05')) {\n    iVar6 = sqlite3_value_bytes(*argv);\n    iVar7 = sqlite3_value_bytes(argv[1]);\n    if (iVar7 < 1) {\n      iVal = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)sqlite3_value_blob(*argv);\n        local_50 = (byte *)sqlite3_value_blob(argv[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = sqlite3_value_text(*argv);\n        local_50 = sqlite3_value_text(argv[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVal = 1;\n      if (iVar6 < iVar7) {\n        iVal = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVal = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVal = iVal + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVal = 0;\n      }\n    }\nLAB_00157f36:\n    sqlite3_result_int(context,iVal);\n  }" if (parenthesized_expression "((cVar1 != '\x05') && (cVar2 != '\x05'))" ( (binary_expression "(cVar1 != '\x05') && (cVar2 != '\x05')" (parenthesized_expression "(cVar1 != '\x05')" ( (binary_expression "cVar1 != '\x05'" identifier != (char_literal "'\x05'" ' escape_sequence ')) )) && (parenthesized_expression "(cVar2 != '\x05')" ( (binary_expression "cVar2 != '\x05'" identifier != (char_literal "'\x05'" ' escape_sequence ')) ))) )) (compound_statement "{\n    iVar6 = sqlite3_value_bytes(*argv);\n    iVar7 = sqlite3_value_bytes(argv[1]);\n    if (iVar7 < 1) {\n      iVal = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)sqlite3_value_blob(*argv);\n        local_50 = (byte *)sqlite3_value_blob(argv[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = sqlite3_value_text(*argv);\n        local_50 = sqlite3_value_text(argv[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVal = 1;\n      if (iVar6 < iVar7) {\n        iVal = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVal = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVal = iVal + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVal = 0;\n      }\n    }\nLAB_00157f36:\n    sqlite3_result_int(context,iVal);\n  }" { (expression_statement "iVar6 = sqlite3_value_bytes(*argv);" (assignment_expression "iVar6 = sqlite3_value_bytes(*argv)" identifier = (call_expression "sqlite3_value_bytes(*argv)" identifier (argument_list "(*argv)" ( (pointer_expression "*argv" * identifier) )))) ;) (expression_statement "iVar7 = sqlite3_value_bytes(argv[1]);" (assignment_expression "iVar7 = sqlite3_value_bytes(argv[1])" identifier = (call_expression "sqlite3_value_bytes(argv[1])" identifier (argument_list "(argv[1])" ( (subscript_expression "argv[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar7 < 1) {\n      iVal = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)sqlite3_value_blob(*argv);\n        local_50 = (byte *)sqlite3_value_blob(argv[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = sqlite3_value_text(*argv);\n        local_50 = sqlite3_value_text(argv[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVal = 1;\n      if (iVar6 < iVar7) {\n        iVal = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVal = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVal = iVal + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVal = 0;\n      }\n    }" if (parenthesized_expression "(iVar7 < 1)" ( (binary_expression "iVar7 < 1" identifier < number_literal) )) (compound_statement "{\n      iVal = 1;\n    }" { (expression_statement "iVal = 1;" (assignment_expression "iVal = 1" identifier = number_literal) ;) }) (else_clause "else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)sqlite3_value_blob(*argv);\n        local_50 = (byte *)sqlite3_value_blob(argv[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = sqlite3_value_text(*argv);\n        local_50 = sqlite3_value_text(argv[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVal = 1;\n      if (iVar6 < iVar7) {\n        iVal = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVal = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVal = iVal + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVal = 0;\n      }\n    }" else (compound_statement "{\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)sqlite3_value_blob(*argv);\n        local_50 = (byte *)sqlite3_value_blob(argv[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = sqlite3_value_text(*argv);\n        local_50 = sqlite3_value_text(argv[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVal = 1;\n      if (iVar6 < iVar7) {\n        iVal = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVal = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVal = iVal + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVal = 0;\n      }\n    }" { (if_statement "if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)sqlite3_value_blob(*argv);\n        local_50 = (byte *)sqlite3_value_blob(argv[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = sqlite3_value_text(*argv);\n        local_50 = sqlite3_value_text(argv[1]);\n        bVar5 = true;\n      }" if (parenthesized_expression "((cVar1 == '\x04') && (cVar2 == '\x04'))" ( (binary_expression "(cVar1 == '\x04') && (cVar2 == '\x04')" (parenthesized_expression "(cVar1 == '\x04')" ( (binary_expression "cVar1 == '\x04'" identifier == (char_literal "'\x04'" ' escape_sequence ')) )) && (parenthesized_expression "(cVar2 == '\x04')" ( (binary_expression "cVar2 == '\x04'" identifier == (char_literal "'\x04'" ' escape_sequence ')) ))) )) (compound_statement "{\n        __s1 = (byte *)sqlite3_value_blob(*argv);\n        local_50 = (byte *)sqlite3_value_blob(argv[1]);\n        bVar5 = false;\n      }" { (expression_statement "__s1 = (byte *)sqlite3_value_blob(*argv);" (assignment_expression "__s1 = (byte *)sqlite3_value_blob(*argv)" identifier = (cast_expression "(byte *)sqlite3_value_blob(*argv)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_value_blob(*argv)" identifier (argument_list "(*argv)" ( (pointer_expression "*argv" * identifier) ))))) ;) (expression_statement "local_50 = (byte *)sqlite3_value_blob(argv[1]);" (assignment_expression "local_50 = (byte *)sqlite3_value_blob(argv[1])" identifier = (cast_expression "(byte *)sqlite3_value_blob(argv[1])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_value_blob(argv[1])" identifier (argument_list "(argv[1])" ( (subscript_expression "argv[1]" identifier [ number_literal ]) ))))) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) }) (else_clause "else {\n        __s1 = sqlite3_value_text(*argv);\n        local_50 = sqlite3_value_text(argv[1]);\n        bVar5 = true;\n      }" else (compound_statement "{\n        __s1 = sqlite3_value_text(*argv);\n        local_50 = sqlite3_value_text(argv[1]);\n        bVar5 = true;\n      }" { (expression_statement "__s1 = sqlite3_value_text(*argv);" (assignment_expression "__s1 = sqlite3_value_text(*argv)" identifier = (call_expression "sqlite3_value_text(*argv)" identifier (argument_list "(*argv)" ( (pointer_expression "*argv" * identifier) )))) ;) (expression_statement "local_50 = sqlite3_value_text(argv[1]);" (assignment_expression "local_50 = sqlite3_value_text(argv[1])" identifier = (call_expression "sqlite3_value_text(argv[1])" identifier (argument_list "(argv[1])" ( (subscript_expression "argv[1]" identifier [ number_literal ]) )))) ;) (expression_statement "bVar5 = true;" (assignment_expression "bVar5 = true" identifier = true) ;) }))) (if_statement "if (local_50 == (byte *)0x0) {\n        return;\n      }" if (parenthesized_expression "(local_50 == (byte *)0x0)" ( (binary_expression "local_50 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (if_statement "if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }" if (parenthesized_expression "((iVar6 != 0) && (__s1 == (byte *)0x0))" ( (binary_expression "(iVar6 != 0) && (__s1 == (byte *)0x0)" (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) && (parenthesized_expression "(__s1 == (byte *)0x0)" ( (binary_expression "__s1 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "bVar3 = *local_50;" (assignment_expression "bVar3 = *local_50" identifier = (pointer_expression "*local_50" * identifier)) ;) (expression_statement "iVal = 1;" (assignment_expression "iVal = 1" identifier = number_literal) ;) (if_statement "if (iVar6 < iVar7) {\n        iVal = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVal = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVal = iVal + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVal = 0;\n      }" if (parenthesized_expression "(iVar6 < iVar7)" ( (binary_expression "iVar6 < iVar7" identifier < identifier) )) (compound_statement "{\n        iVal = 0;\n      }" { (expression_statement "iVal = 0;" (assignment_expression "iVal = 0" identifier = number_literal) ;) }) (else_clause "else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVal = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVal = iVal + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVal = 0;\n      }" else (compound_statement "{\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVal = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVal = iVal + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVal = 0;\n      }" { (do_statement "do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVal = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVal = iVal + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);" do (compound_statement "{\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVal = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVal = iVal + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        }" { (if_statement "if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVal = 0;\n            }\n            goto LAB_00157f36;\n          }" if (parenthesized_expression "((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0))" ( (binary_expression "(*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)" (parenthesized_expression "(*__s1 == bVar3)" ( (binary_expression "*__s1 == bVar3" (pointer_expression "*__s1" * identifier) == identifier) )) && (parenthesized_expression "(iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)" ( (comma_expression "iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0" (assignment_expression "iVar8 = memcmp(__s1,local_50,(long)iVar7)" identifier = (call_expression "memcmp(__s1,local_50,(long)iVar7)" identifier (argument_list "(__s1,local_50,(long)iVar7)" ( identifier , identifier , (cast_expression "(long)iVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) )))) , (binary_expression "iVar8 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n            if (iVar6 < iVar7) {\n              iVal = 0;\n            }\n            goto LAB_00157f36;\n          }" { (if_statement "if (iVar6 < iVar7) {\n              iVal = 0;\n            }" if (parenthesized_expression "(iVar6 < iVar7)" ( (binary_expression "iVar6 < iVar7" identifier < identifier) )) (compound_statement "{\n              iVal = 0;\n            }" { (expression_statement "iVal = 0;" (assignment_expression "iVal = 0" identifier = number_literal) ;) })) (goto_statement "goto LAB_00157f36;" goto statement_identifier ;) })) (expression_statement "iVal = iVal + 1;" (assignment_expression "iVal = iVal + 1" identifier = (binary_expression "iVal + 1" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar6 + -1;" (assignment_expression "iVar8 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (expression_statement "iVar4 = (int)__s1;" (assignment_expression "iVar4 = (int)__s1" identifier = (cast_expression "(int)__s1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (do_statement "do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);" do (compound_statement "{\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          }" { (expression_statement "iVar6 = (iVar8 + iVar4) - (int)__s1;" (assignment_expression "iVar6 = (iVar8 + iVar4) - (int)__s1" identifier = (binary_expression "(iVar8 + iVar4) - (int)__s1" (parenthesized_expression "(iVar8 + iVar4)" ( (binary_expression "iVar8 + iVar4" identifier + identifier) )) - (cast_expression "(int)__s1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "__s1 = __s1 + 1;" (assignment_expression "__s1 = __s1 + 1" identifier = (binary_expression "__s1 + 1" identifier + number_literal)) ;) (if_statement "if (!bVar5) break;" if (parenthesized_expression "(!bVar5)" ( (unary_expression "!bVar5" ! identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "((*__s1 & 0xc0) == 0x80)" ( (binary_expression "(*__s1 & 0xc0) == 0x80" (parenthesized_expression "(*__s1 & 0xc0)" ( (binary_expression "*__s1 & 0xc0" (pointer_expression "*__s1" * identifier) & number_literal) )) == number_literal) )) ;) }) while (parenthesized_expression "(iVar7 <= iVar6)" ( (binary_expression "iVar7 <= iVar6" identifier <= identifier) )) ;) (expression_statement "iVal = 0;" (assignment_expression "iVal = 0" identifier = number_literal) ;) }))) }))) (labeled_statement "LAB_00157f36:\n    sqlite3_result_int(context,iVal);" statement_identifier : (expression_statement "sqlite3_result_int(context,iVal);" (call_expression "sqlite3_result_int(context,iVal)" identifier (argument_list "(context,iVal)" ( identifier , identifier ))) ;)) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00157ddc(undefined8 param_1,undefined8 param_2,long *param_3)\n\n{\n  char cVar1;\n  char cVar2;\n  byte bVar3;\n  int iVar4;\n  bool bVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  byte *__s1;\n  int iVar9;\n  byte *local_50;\n  \n  cVar1 = (&DAT_001facc0)[*(ushort *)(*param_3 + 8) & 0x1f];\n  cVar2 = (&DAT_001facc0)[*(ushort *)(param_3[1] + 8) & 0x1f];\n  if ((cVar1 != '\x05') && (cVar2 != '\x05')) {\n    iVar6 = FUN_00156880(*param_3);\n    iVar7 = FUN_00156880(param_3[1]);\n    if (iVar7 < 1) {\n      iVar9 = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }\nLAB_00157f36:\n    FUN_00142584(param_1,iVar9);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00157ddc(undefined8 param_1,undefined8 param_2,long *param_3)\n\n{\n  char cVar1;\n  char cVar2;\n  byte bVar3;\n  int iVar4;\n  bool bVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  byte *__s1;\n  int iVar9;\n  byte *local_50;\n  \n  cVar1 = (&DAT_001facc0)[*(ushort *)(*param_3 + 8) & 0x1f];\n  cVar2 = (&DAT_001facc0)[*(ushort *)(param_3[1] + 8) & 0x1f];\n  if ((cVar1 != '\x05') && (cVar2 != '\x05')) {\n    iVar6 = FUN_00156880(*param_3);\n    iVar7 = FUN_00156880(param_3[1]);\n    if (iVar7 < 1) {\n      iVar9 = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }\nLAB_00157f36:\n    FUN_00142584(param_1,iVar9);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00157ddc(undefined8 param_1,undefined8 param_2,long *param_3)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,long *param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long *param_3" (sized_type_specifier "long" long) (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  char cVar2;\n  byte bVar3;\n  int iVar4;\n  bool bVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  byte *__s1;\n  int iVar9;\n  byte *local_50;\n  \n  cVar1 = (&DAT_001facc0)[*(ushort *)(*param_3 + 8) & 0x1f];\n  cVar2 = (&DAT_001facc0)[*(ushort *)(param_3[1] + 8) & 0x1f];\n  if ((cVar1 != '\x05') && (cVar2 != '\x05')) {\n    iVar6 = FUN_00156880(*param_3);\n    iVar7 = FUN_00156880(param_3[1]);\n    if (iVar7 < 1) {\n      iVar9 = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }\nLAB_00157f36:\n    FUN_00142584(param_1,iVar9);\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "byte *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "byte *local_50;" type_identifier (pointer_declarator "*local_50" * identifier) ;) (expression_statement "cVar1 = (&DAT_001facc0)[*(ushort *)(*param_3 + 8) & 0x1f];" (assignment_expression "cVar1 = (&DAT_001facc0)[*(ushort *)(*param_3 + 8) & 0x1f]" identifier = (subscript_expression "(&DAT_001facc0)[*(ushort *)(*param_3 + 8) & 0x1f]" (parenthesized_expression "(&DAT_001facc0)" ( (pointer_expression "&DAT_001facc0" & identifier) )) [ (binary_expression "*(ushort *)(*param_3 + 8) & 0x1f" (pointer_expression "*(ushort *)(*param_3 + 8)" * (cast_expression "(ushort *)(*param_3 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_3 + 8)" ( (binary_expression "*param_3 + 8" (pointer_expression "*param_3" * identifier) + number_literal) )))) & number_literal) ])) ;) (expression_statement "cVar2 = (&DAT_001facc0)[*(ushort *)(param_3[1] + 8) & 0x1f];" (assignment_expression "cVar2 = (&DAT_001facc0)[*(ushort *)(param_3[1] + 8) & 0x1f]" identifier = (subscript_expression "(&DAT_001facc0)[*(ushort *)(param_3[1] + 8) & 0x1f]" (parenthesized_expression "(&DAT_001facc0)" ( (pointer_expression "&DAT_001facc0" & identifier) )) [ (binary_expression "*(ushort *)(param_3[1] + 8) & 0x1f" (pointer_expression "*(ushort *)(param_3[1] + 8)" * (cast_expression "(ushort *)(param_3[1] + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3[1] + 8)" ( (binary_expression "param_3[1] + 8" (subscript_expression "param_3[1]" identifier [ number_literal ]) + number_literal) )))) & number_literal) ])) ;) (if_statement "if ((cVar1 != '\x05') && (cVar2 != '\x05')) {\n    iVar6 = FUN_00156880(*param_3);\n    iVar7 = FUN_00156880(param_3[1]);\n    if (iVar7 < 1) {\n      iVar9 = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }\nLAB_00157f36:\n    FUN_00142584(param_1,iVar9);\n  }" if (parenthesized_expression "((cVar1 != '\x05') && (cVar2 != '\x05'))" ( (binary_expression "(cVar1 != '\x05') && (cVar2 != '\x05')" (parenthesized_expression "(cVar1 != '\x05')" ( (binary_expression "cVar1 != '\x05'" identifier != (char_literal "'\x05'" ' escape_sequence ')) )) && (parenthesized_expression "(cVar2 != '\x05')" ( (binary_expression "cVar2 != '\x05'" identifier != (char_literal "'\x05'" ' escape_sequence ')) ))) )) (compound_statement "{\n    iVar6 = FUN_00156880(*param_3);\n    iVar7 = FUN_00156880(param_3[1]);\n    if (iVar7 < 1) {\n      iVar9 = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }\nLAB_00157f36:\n    FUN_00142584(param_1,iVar9);\n  }" { (expression_statement "iVar6 = FUN_00156880(*param_3);" (assignment_expression "iVar6 = FUN_00156880(*param_3)" identifier = (call_expression "FUN_00156880(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "iVar7 = FUN_00156880(param_3[1]);" (assignment_expression "iVar7 = FUN_00156880(param_3[1])" identifier = (call_expression "FUN_00156880(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar7 < 1) {\n      iVar9 = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }" if (parenthesized_expression "(iVar7 < 1)" ( (binary_expression "iVar7 < 1" identifier < number_literal) )) (compound_statement "{\n      iVar9 = 1;\n    }" { (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }" else (compound_statement "{\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }" { (if_statement "if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }" if (parenthesized_expression "((cVar1 == '\x04') && (cVar2 == '\x04'))" ( (binary_expression "(cVar1 == '\x04') && (cVar2 == '\x04')" (parenthesized_expression "(cVar1 == '\x04')" ( (binary_expression "cVar1 == '\x04'" identifier == (char_literal "'\x04'" ' escape_sequence ')) )) && (parenthesized_expression "(cVar2 == '\x04')" ( (binary_expression "cVar2 == '\x04'" identifier == (char_literal "'\x04'" ' escape_sequence ')) ))) )) (compound_statement "{\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }" { (expression_statement "__s1 = (byte *)FUN_00156a16(*param_3);" (assignment_expression "__s1 = (byte *)FUN_00156a16(*param_3)" identifier = (cast_expression "(byte *)FUN_00156a16(*param_3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00156a16(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))))) ;) (expression_statement "local_50 = (byte *)FUN_00156a16(param_3[1]);" (assignment_expression "local_50 = (byte *)FUN_00156a16(param_3[1])" identifier = (cast_expression "(byte *)FUN_00156a16(param_3[1])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00156a16(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) ))))) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) }) (else_clause "else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }" else (compound_statement "{\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }" { (expression_statement "__s1 = (byte *)FUN_001569d7(*param_3);" (assignment_expression "__s1 = (byte *)FUN_001569d7(*param_3)" identifier = (cast_expression "(byte *)FUN_001569d7(*param_3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001569d7(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))))) ;) (expression_statement "local_50 = (byte *)FUN_001569d7(param_3[1]);" (assignment_expression "local_50 = (byte *)FUN_001569d7(param_3[1])" identifier = (cast_expression "(byte *)FUN_001569d7(param_3[1])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001569d7(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) ))))) ;) (expression_statement "bVar5 = true;" (assignment_expression "bVar5 = true" identifier = true) ;) }))) (if_statement "if (local_50 == (byte *)0x0) {\n        return;\n      }" if (parenthesized_expression "(local_50 == (byte *)0x0)" ( (binary_expression "local_50 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (if_statement "if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }" if (parenthesized_expression "((iVar6 != 0) && (__s1 == (byte *)0x0))" ( (binary_expression "(iVar6 != 0) && (__s1 == (byte *)0x0)" (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) && (parenthesized_expression "(__s1 == (byte *)0x0)" ( (binary_expression "__s1 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "bVar3 = *local_50;" (assignment_expression "bVar3 = *local_50" identifier = (pointer_expression "*local_50" * identifier)) ;) (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;) (if_statement "if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }" if (parenthesized_expression "(iVar6 < iVar7)" ( (binary_expression "iVar6 < iVar7" identifier < identifier) )) (compound_statement "{\n        iVar9 = 0;\n      }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }" else (compound_statement "{\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }" { (do_statement "do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);" do (compound_statement "{\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        }" { (if_statement "if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }" if (parenthesized_expression "((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0))" ( (binary_expression "(*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)" (parenthesized_expression "(*__s1 == bVar3)" ( (binary_expression "*__s1 == bVar3" (pointer_expression "*__s1" * identifier) == identifier) )) && (parenthesized_expression "(iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)" ( (comma_expression "iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0" (assignment_expression "iVar8 = memcmp(__s1,local_50,(long)iVar7)" identifier = (call_expression "memcmp(__s1,local_50,(long)iVar7)" identifier (argument_list "(__s1,local_50,(long)iVar7)" ( identifier , identifier , (cast_expression "(long)iVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) )))) , (binary_expression "iVar8 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }" { (if_statement "if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }" if (parenthesized_expression "(iVar6 < iVar7)" ( (binary_expression "iVar6 < iVar7" identifier < identifier) )) (compound_statement "{\n              iVar9 = 0;\n            }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) })) (goto_statement "goto LAB_00157f36;" goto statement_identifier ;) })) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar6 + -1;" (assignment_expression "iVar8 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (expression_statement "iVar4 = (int)__s1;" (assignment_expression "iVar4 = (int)__s1" identifier = (cast_expression "(int)__s1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (do_statement "do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);" do (compound_statement "{\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          }" { (expression_statement "iVar6 = (iVar8 + iVar4) - (int)__s1;" (assignment_expression "iVar6 = (iVar8 + iVar4) - (int)__s1" identifier = (binary_expression "(iVar8 + iVar4) - (int)__s1" (parenthesized_expression "(iVar8 + iVar4)" ( (binary_expression "iVar8 + iVar4" identifier + identifier) )) - (cast_expression "(int)__s1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "__s1 = __s1 + 1;" (assignment_expression "__s1 = __s1 + 1" identifier = (binary_expression "__s1 + 1" identifier + number_literal)) ;) (if_statement "if (!bVar5) break;" if (parenthesized_expression "(!bVar5)" ( (unary_expression "!bVar5" ! identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "((*__s1 & 0xc0) == 0x80)" ( (binary_expression "(*__s1 & 0xc0) == 0x80" (parenthesized_expression "(*__s1 & 0xc0)" ( (binary_expression "*__s1 & 0xc0" (pointer_expression "*__s1" * identifier) & number_literal) )) == number_literal) )) ;) }) while (parenthesized_expression "(iVar7 <= iVar6)" ( (binary_expression "iVar7 <= iVar6" identifier <= identifier) )) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) }))) }))) (labeled_statement "LAB_00157f36:\n    FUN_00142584(param_1,iVar9);" statement_identifier : (expression_statement "FUN_00142584(param_1,iVar9);" (call_expression "FUN_00142584(param_1,iVar9)" identifier (argument_list "(param_1,iVar9)" ( identifier , identifier ))) ;)) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) & LIT) ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) & LIT) ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (break_statement break ;)) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) == LIT) )) ;) }) while (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;)) })) (return_statement return ;) })))
(function_definition "void FUN_00157ddc(undefined8 param_1,undefined8 param_2,long *param_3)\n\n{\n  char cVar1;\n  char cVar2;\n  byte bVar3;\n  int iVar4;\n  bool bVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  byte *__s1;\n  int iVar9;\n  byte *local_50;\n  \n  cVar1 = (&DAT_001facc0)[*(ushort *)(*param_3 + 8) & 0x1f];\n  cVar2 = (&DAT_001facc0)[*(ushort *)(param_3[1] + 8) & 0x1f];\n  if ((cVar1 != '\x05') && (cVar2 != '\x05')) {\n    iVar6 = FUN_00156880(*param_3);\n    iVar7 = FUN_00156880(param_3[1]);\n    if (iVar7 < 1) {\n      iVar9 = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }\nLAB_00157f36:\n    FUN_00142584(param_1,iVar9);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00157ddc(undefined8 param_1,undefined8 param_2,long *param_3)" (identifier "FUN_00157ddc") (parameter_list "(undefined8 param_1,undefined8 param_2,long *param_3)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "long *param_3" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  char cVar1;\n  char cVar2;\n  byte bVar3;\n  int iVar4;\n  bool bVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  byte *__s1;\n  int iVar9;\n  byte *local_50;\n  \n  cVar1 = (&DAT_001facc0)[*(ushort *)(*param_3 + 8) & 0x1f];\n  cVar2 = (&DAT_001facc0)[*(ushort *)(param_3[1] + 8) & 0x1f];\n  if ((cVar1 != '\x05') && (cVar2 != '\x05')) {\n    iVar6 = FUN_00156880(*param_3);\n    iVar7 = FUN_00156880(param_3[1]);\n    if (iVar7 < 1) {\n      iVar9 = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }\nLAB_00157f36:\n    FUN_00142584(param_1,iVar9);\n  }\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "bool bVar5;" (primitive_type "bool") (identifier "bVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "byte *__s1;" (type_identifier "byte") (pointer_declarator "*__s1" (* "*") (identifier "__s1")) (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "byte *local_50;" (type_identifier "byte") (pointer_declarator "*local_50" (* "*") (identifier "local_50")) (; ";")) (expression_statement "cVar1 = (&DAT_001facc0)[*(ushort *)(*param_3 + 8) & 0x1f];" (assignment_expression "cVar1 = (&DAT_001facc0)[*(ushort *)(*param_3 + 8) & 0x1f]" (identifier "cVar1") (= "=") (subscript_expression "(&DAT_001facc0)[*(ushort *)(*param_3 + 8) & 0x1f]" (parenthesized_expression "(&DAT_001facc0)" (( "(") (pointer_expression "&DAT_001facc0" (& "&") (identifier "DAT_001facc0")) () ")")) ([ "[") (binary_expression "*(ushort *)(*param_3 + 8) & 0x1f" (pointer_expression "*(ushort *)(*param_3 + 8)" (* "*") (cast_expression "(ushort *)(*param_3 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_3 + 8)" (( "(") (binary_expression "*param_3 + 8" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0x1f")) (] "]"))) (; ";")) (expression_statement "cVar2 = (&DAT_001facc0)[*(ushort *)(param_3[1] + 8) & 0x1f];" (assignment_expression "cVar2 = (&DAT_001facc0)[*(ushort *)(param_3[1] + 8) & 0x1f]" (identifier "cVar2") (= "=") (subscript_expression "(&DAT_001facc0)[*(ushort *)(param_3[1] + 8) & 0x1f]" (parenthesized_expression "(&DAT_001facc0)" (( "(") (pointer_expression "&DAT_001facc0" (& "&") (identifier "DAT_001facc0")) () ")")) ([ "[") (binary_expression "*(ushort *)(param_3[1] + 8) & 0x1f" (pointer_expression "*(ushort *)(param_3[1] + 8)" (* "*") (cast_expression "(ushort *)(param_3[1] + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3[1] + 8)" (( "(") (binary_expression "param_3[1] + 8" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0x1f")) (] "]"))) (; ";")) (if_statement "if ((cVar1 != '\x05') && (cVar2 != '\x05')) {\n    iVar6 = FUN_00156880(*param_3);\n    iVar7 = FUN_00156880(param_3[1]);\n    if (iVar7 < 1) {\n      iVar9 = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }\nLAB_00157f36:\n    FUN_00142584(param_1,iVar9);\n  }" (if "if") (parenthesized_expression "((cVar1 != '\x05') && (cVar2 != '\x05'))" (( "(") (binary_expression "(cVar1 != '\x05') && (cVar2 != '\x05')" (parenthesized_expression "(cVar1 != '\x05')" (( "(") (binary_expression "cVar1 != '\x05'" (identifier "cVar1") (!= "!=") (char_literal "'\x05'" (' "'") (escape_sequence "\x05") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(cVar2 != '\x05')" (( "(") (binary_expression "cVar2 != '\x05'" (identifier "cVar2") (!= "!=") (char_literal "'\x05'" (' "'") (escape_sequence "\x05") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    iVar6 = FUN_00156880(*param_3);\n    iVar7 = FUN_00156880(param_3[1]);\n    if (iVar7 < 1) {\n      iVar9 = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }\nLAB_00157f36:\n    FUN_00142584(param_1,iVar9);\n  }" ({ "{") (expression_statement "iVar6 = FUN_00156880(*param_3);" (assignment_expression "iVar6 = FUN_00156880(*param_3)" (identifier "iVar6") (= "=") (call_expression "FUN_00156880(*param_3)" (identifier "FUN_00156880") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")))) (; ";")) (expression_statement "iVar7 = FUN_00156880(param_3[1]);" (assignment_expression "iVar7 = FUN_00156880(param_3[1])" (identifier "iVar7") (= "=") (call_expression "FUN_00156880(param_3[1])" (identifier "FUN_00156880") (argument_list "(param_3[1])" (( "(") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar7 < 1) {\n      iVar9 = 1;\n    }\n    else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }" (if "if") (parenthesized_expression "(iVar7 < 1)" (( "(") (binary_expression "iVar7 < 1" (identifier "iVar7") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      iVar9 = 1;\n    }" ({ "{") (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" (identifier "iVar9") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }" (else "else") (compound_statement "{\n      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }\n      if (local_50 == (byte *)0x0) {\n        return;\n      }\n      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }\n      bVar3 = *local_50;\n      iVar9 = 1;\n      if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }\n    }" ({ "{") (if_statement "if ((cVar1 == '\x04') && (cVar2 == '\x04')) {\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }\n      else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }" (if "if") (parenthesized_expression "((cVar1 == '\x04') && (cVar2 == '\x04'))" (( "(") (binary_expression "(cVar1 == '\x04') && (cVar2 == '\x04')" (parenthesized_expression "(cVar1 == '\x04')" (( "(") (binary_expression "cVar1 == '\x04'" (identifier "cVar1") (== "==") (char_literal "'\x04'" (' "'") (escape_sequence "\x04") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(cVar2 == '\x04')" (( "(") (binary_expression "cVar2 == '\x04'" (identifier "cVar2") (== "==") (char_literal "'\x04'" (' "'") (escape_sequence "\x04") (' "'"))) () ")"))) () ")")) (compound_statement "{\n        __s1 = (byte *)FUN_00156a16(*param_3);\n        local_50 = (byte *)FUN_00156a16(param_3[1]);\n        bVar5 = false;\n      }" ({ "{") (expression_statement "__s1 = (byte *)FUN_00156a16(*param_3);" (assignment_expression "__s1 = (byte *)FUN_00156a16(*param_3)" (identifier "__s1") (= "=") (cast_expression "(byte *)FUN_00156a16(*param_3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00156a16(*param_3)" (identifier "FUN_00156a16") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")"))))) (; ";")) (expression_statement "local_50 = (byte *)FUN_00156a16(param_3[1]);" (assignment_expression "local_50 = (byte *)FUN_00156a16(param_3[1])" (identifier "local_50") (= "=") (cast_expression "(byte *)FUN_00156a16(param_3[1])" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00156a16(param_3[1])" (identifier "FUN_00156a16") (argument_list "(param_3[1])" (( "(") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) () ")"))))) (; ";")) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" (identifier "bVar5") (= "=") (false "false")) (; ";")) (} "}")) (else_clause "else {\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }" (else "else") (compound_statement "{\n        __s1 = (byte *)FUN_001569d7(*param_3);\n        local_50 = (byte *)FUN_001569d7(param_3[1]);\n        bVar5 = true;\n      }" ({ "{") (expression_statement "__s1 = (byte *)FUN_001569d7(*param_3);" (assignment_expression "__s1 = (byte *)FUN_001569d7(*param_3)" (identifier "__s1") (= "=") (cast_expression "(byte *)FUN_001569d7(*param_3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001569d7(*param_3)" (identifier "FUN_001569d7") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")"))))) (; ";")) (expression_statement "local_50 = (byte *)FUN_001569d7(param_3[1]);" (assignment_expression "local_50 = (byte *)FUN_001569d7(param_3[1])" (identifier "local_50") (= "=") (cast_expression "(byte *)FUN_001569d7(param_3[1])" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001569d7(param_3[1])" (identifier "FUN_001569d7") (argument_list "(param_3[1])" (( "(") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) () ")"))))) (; ";")) (expression_statement "bVar5 = true;" (assignment_expression "bVar5 = true" (identifier "bVar5") (= "=") (true "true")) (; ";")) (} "}")))) (if_statement "if (local_50 == (byte *)0x0) {\n        return;\n      }" (if "if") (parenthesized_expression "(local_50 == (byte *)0x0)" (( "(") (binary_expression "local_50 == (byte *)0x0" (identifier "local_50") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {\n        return;\n      }" (if "if") (parenthesized_expression "((iVar6 != 0) && (__s1 == (byte *)0x0))" (( "(") (binary_expression "(iVar6 != 0) && (__s1 == (byte *)0x0)" (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(__s1 == (byte *)0x0)" (( "(") (binary_expression "__s1 == (byte *)0x0" (identifier "__s1") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "bVar3 = *local_50;" (assignment_expression "bVar3 = *local_50" (identifier "bVar3") (= "=") (pointer_expression "*local_50" (* "*") (identifier "local_50"))) (; ";")) (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" (identifier "iVar9") (= "=") (number_literal "1")) (; ";")) (if_statement "if (iVar6 < iVar7) {\n        iVar9 = 0;\n      }\n      else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }" (if "if") (parenthesized_expression "(iVar6 < iVar7)" (( "(") (binary_expression "iVar6 < iVar7" (identifier "iVar6") (< "<") (identifier "iVar7")) () ")")) (compound_statement "{\n        iVar9 = 0;\n      }" ({ "{") (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }" (else "else") (compound_statement "{\n        do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);\n        iVar9 = 0;\n      }" ({ "{") (do_statement "do {\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        } while (iVar7 <= iVar6);" (do "do") (compound_statement "{\n          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }\n          iVar9 = iVar9 + 1;\n          iVar8 = iVar6 + -1;\n          iVar4 = (int)__s1;\n          do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);\n        }" ({ "{") (if_statement "if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }" (if "if") (parenthesized_expression "((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0))" (( "(") (binary_expression "(*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)" (parenthesized_expression "(*__s1 == bVar3)" (( "(") (binary_expression "*__s1 == bVar3" (pointer_expression "*__s1" (* "*") (identifier "__s1")) (== "==") (identifier "bVar3")) () ")")) (&& "&&") (parenthesized_expression "(iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)" (( "(") (comma_expression "iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0" (assignment_expression "iVar8 = memcmp(__s1,local_50,(long)iVar7)" (identifier "iVar8") (= "=") (call_expression "memcmp(__s1,local_50,(long)iVar7)" (identifier "memcmp") (argument_list "(__s1,local_50,(long)iVar7)" (( "(") (identifier "__s1") (, ",") (identifier "local_50") (, ",") (cast_expression "(long)iVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar7")) () ")")))) (, ",") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n            if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }\n            goto LAB_00157f36;\n          }" ({ "{") (if_statement "if (iVar6 < iVar7) {\n              iVar9 = 0;\n            }" (if "if") (parenthesized_expression "(iVar6 < iVar7)" (( "(") (binary_expression "iVar6 < iVar7" (identifier "iVar6") (< "<") (identifier "iVar7")) () ")")) (compound_statement "{\n              iVar9 = 0;\n            }" ({ "{") (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";")) (} "}"))) (goto_statement "goto LAB_00157f36;" (goto "goto") (statement_identifier "LAB_00157f36") (; ";")) (} "}"))) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar8 = iVar6 + -1;" (assignment_expression "iVar8 = iVar6 + -1" (identifier "iVar8") (= "=") (binary_expression "iVar6 + -1" (identifier "iVar6") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar4 = (int)__s1;" (assignment_expression "iVar4 = (int)__s1" (identifier "iVar4") (= "=") (cast_expression "(int)__s1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s1"))) (; ";")) (do_statement "do {\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          } while ((*__s1 & 0xc0) == 0x80);" (do "do") (compound_statement "{\n            iVar6 = (iVar8 + iVar4) - (int)__s1;\n            __s1 = __s1 + 1;\n            if (!bVar5) break;\n          }" ({ "{") (expression_statement "iVar6 = (iVar8 + iVar4) - (int)__s1;" (assignment_expression "iVar6 = (iVar8 + iVar4) - (int)__s1" (identifier "iVar6") (= "=") (binary_expression "(iVar8 + iVar4) - (int)__s1" (parenthesized_expression "(iVar8 + iVar4)" (( "(") (binary_expression "iVar8 + iVar4" (identifier "iVar8") (+ "+") (identifier "iVar4")) () ")")) (- "-") (cast_expression "(int)__s1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s1")))) (; ";")) (expression_statement "__s1 = __s1 + 1;" (assignment_expression "__s1 = __s1 + 1" (identifier "__s1") (= "=") (binary_expression "__s1 + 1" (identifier "__s1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (!bVar5) break;" (if "if") (parenthesized_expression "(!bVar5)" (( "(") (unary_expression "!bVar5" (! "!") (identifier "bVar5")) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}")) (while "while") (parenthesized_expression "((*__s1 & 0xc0) == 0x80)" (( "(") (binary_expression "(*__s1 & 0xc0) == 0x80" (parenthesized_expression "(*__s1 & 0xc0)" (( "(") (binary_expression "*__s1 & 0xc0" (pointer_expression "*__s1" (* "*") (identifier "__s1")) (& "&") (number_literal "0xc0")) () ")")) (== "==") (number_literal "0x80")) () ")")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar7 <= iVar6)" (( "(") (binary_expression "iVar7 <= iVar6" (identifier "iVar7") (<= "<=") (identifier "iVar6")) () ")")) (; ";")) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")))) (labeled_statement "LAB_00157f36:\n    FUN_00142584(param_1,iVar9);" (statement_identifier "LAB_00157f36") (: ":") (expression_statement "FUN_00142584(param_1,iVar9);" (call_expression "FUN_00142584(param_1,iVar9)" (identifier "FUN_00142584") (argument_list "(param_1,iVar9)" (( "(") (identifier "param_1") (, ",") (identifier "iVar9") () ")"))) (; ";"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *context,int argc,type_2 **argv)

{
  char var_1;
  char var_2;
  type_3 var_10;
  int var_14;
  bool bVar5;
  int var_8;
  int var_4;
  int var_12;
  type_3 *var_9;
  int var_13;
  type_3 *var_7;
  
  var_1 = aType_24272[(*argv)->flags & 0x1f];
  var_2 = aType_24272[argv[1]->flags & 0x1f];
  if ((var_1 != '\x05') && (var_2 != '\x05')) {
    var_8 = var_3(*argv);
    var_4 = var_3(argv[1]);
    if (var_4 < 1) {
      var_13 = 1;
    }
    else {
      if ((var_1 == '\x04') && (var_2 == '\x04')) {
        var_9 = (type_3 *)var_5(*argv);
        var_7 = (type_3 *)var_5(argv[1]);
        bVar5 = false;
      }
      else {
        var_9 = var_6(*argv);
        var_7 = var_6(argv[1]);
        bVar5 = true;
      }
      if (var_7 == (type_3 *)0x0) {
        return;
      }
      if ((var_8 != 0) && (var_9 == (type_3 *)0x0)) {
        return;
      }
      var_10 = *var_7;
      var_13 = 1;
      if (var_8 < var_4) {
        var_13 = 0;
      }
      else {
        do {
          if ((*var_9 == var_10) && (var_12 = var_11(var_9,var_7,(long)var_4), var_12 == 0)) {
            if (var_8 < var_4) {
              var_13 = 0;
            }
            goto LAB_00157f36;
          }
          var_13 = var_13 + 1;
          var_12 = var_8 + -1;
          var_14 = (int)var_9;
          do {
            var_8 = (var_12 + var_14) - (int)var_9;
            var_9 = var_9 + 1;
            if (!bVar5) break;
          } while ((*var_9 & 0xc0) == 0x80);
        } while (var_4 <= var_8);
        var_13 = 0;
      }
    }
LAB_00157f36:
    var_15(context,var_13);
  }
  return;
}


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

void MASKED(undefined8 param_1,undefined8 param_2,long *param_3)

{
  char cVar1;
  char cVar2;
  byte bVar3;
  int iVar4;
  bool bVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  byte *__s1;
  int iVar9;
  byte *local_50;
  
  cVar1 = (&DAT_001facc0)[*(ushort *)(*param_3 + 8) & 0x1f];
  cVar2 = (&DAT_001facc0)[*(ushort *)(param_3[1] + 8) & 0x1f];
  if ((cVar1 != '\x05') && (cVar2 != '\x05')) {
    iVar6 = FUN_00156880(*param_3);
    iVar7 = FUN_00156880(param_3[1]);
    if (iVar7 < 1) {
      iVar9 = 1;
    }
    else {
      if ((cVar1 == '\x04') && (cVar2 == '\x04')) {
        __s1 = (byte *)FUN_00156a16(*param_3);
        local_50 = (byte *)FUN_00156a16(param_3[1]);
        bVar5 = false;
      }
      else {
        __s1 = (byte *)FUN_001569d7(*param_3);
        local_50 = (byte *)FUN_001569d7(param_3[1]);
        bVar5 = true;
      }
      if (local_50 == (byte *)0x0) {
        return;
      }
      if ((iVar6 != 0) && (__s1 == (byte *)0x0)) {
        return;
      }
      bVar3 = *local_50;
      iVar9 = 1;
      if (iVar6 < iVar7) {
        iVar9 = 0;
      }
      else {
        do {
          if ((*__s1 == bVar3) && (iVar8 = memcmp(__s1,local_50,(long)iVar7), iVar8 == 0)) {
            if (iVar6 < iVar7) {
              iVar9 = 0;
            }
            goto LAB_00157f36;
          }
          iVar9 = iVar9 + 1;
          iVar8 = iVar6 + -1;
          iVar4 = (int)__s1;
          do {
            iVar6 = (iVar8 + iVar4) - (int)__s1;
            __s1 = __s1 + 1;
            if (!bVar5) break;
          } while ((*__s1 & 0xc0) == 0x80);
        } while (iVar7 <= iVar6);
        iVar9 = 0;
      }
    }
LAB_00157f36:
    FUN_00142584(param_1,iVar9);
  }
  return;
}

