
int sqlite3Fts5UnicodeFold(int c,int eRemoveDiacritic)

{
  byte bVar1;
  int iVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  int iVar6;
  uint c_00;
  int iVar7;
  int iVar8;
  int unaff_EDI;
  undefined8 uVar9;
  
  uVar9 = __x86_get_pc_thunk_di();
  iVar3 = (int)((ulonglong)uVar9 >> 0x20);
  c_00 = (uint)uVar9;
  if ((int)c_00 < 0x80) {
    uVar4 = c_00 + 0x20;
    if (0x19 < c_00 - 0x41) {
      uVar4 = c_00;
    }
    return uVar4;
  }
  if (0xffff < (int)c_00) {
    uVar4 = c_00 + 0x28;
    if (0x27 < c_00 - 0x10400) {
      uVar4 = c_00;
    }
    return uVar4;
  }
  uVar4 = 0x3f1;
  iVar2 = 0;
  iVar8 = 0xa2;
  iVar5 = 0xa2;
  iVar7 = -1;
  do {
    iVar6 = iVar5 >> 1;
    if ((int)(c_00 - uVar4) < 0) {
      iVar8 = iVar6 + -1;
      iVar6 = iVar7;
      if (iVar8 < iVar2) goto LAB_00035ef9;
    }
    else {
      iVar2 = iVar6 + 1;
      if (iVar8 < iVar2) {
LAB_00035ef9:
        uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar6 * 4);
        iVar2 = unaff_EDI + 0xc88c9 + iVar6 * 4;
        if (((int)c_00 < (int)(*(byte *)(iVar2 + 3) + uVar4)) &&
           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar4 ^ c_00)) == 0)) {
          c_00 = (uint)(ushort)((short)uVar9 +
                               *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));
        }
        if (iVar3 == 0) {
          return c_00;
        }
        iVar3 = remove_diacritic(c_00,(uint)(iVar3 == 2));
        return iVar3;
      }
    }
    iVar5 = iVar2 + iVar8;
    uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar5 >> 1) * 4);
    iVar7 = iVar6;
  } while( true );
}



uint FUN_00035e70(void)

{
  byte bVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  uint uVar6;
  int iVar7;
  int iVar8;
  int unaff_EDI;
  undefined8 uVar9;
  
  uVar9 = FUN_0001af1a();
  uVar6 = (uint)uVar9;
  if ((int)uVar6 < 0x80) {
    uVar3 = uVar6 + 0x20;
    if (0x19 < uVar6 - 0x41) {
      uVar3 = uVar6;
    }
    return uVar3;
  }
  if (0xffff < (int)uVar6) {
    uVar3 = uVar6 + 0x28;
    if (0x27 < uVar6 - 0x10400) {
      uVar3 = uVar6;
    }
    return uVar3;
  }
  uVar3 = 0x3f1;
  iVar2 = 0;
  iVar8 = 0xa2;
  iVar4 = 0xa2;
  iVar7 = -1;
  do {
    iVar5 = iVar4 >> 1;
    if ((int)(uVar6 - uVar3) < 0) {
      iVar8 = iVar5 + -1;
      iVar5 = iVar7;
      if (iVar8 < iVar2) goto LAB_00035ef9;
    }
    else {
      iVar2 = iVar5 + 1;
      if (iVar8 < iVar2) {
LAB_00035ef9:
        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);
        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;
        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&
           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {
          uVar6 = (uint)(ushort)((short)uVar9 +
                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));
        }
        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {
          return uVar6;
        }
        uVar6 = FUN_00020670();
        return uVar6;
      }
    }
    iVar4 = iVar2 + iVar8;
    uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4);
    iVar7 = iVar5;
  } while( true );
}


PUSH EBP
PUSH EDI
CALL 0x0001af1a
ADD EDI,0x11505d
PUSH ESI
PUSH EBX
MOV EBX,EAX
SUB ESP,0x1c
MOV dword ptr [ESP + 0xc],EDX
MOV dword ptr [ESP + 0x8],EDI
CMP EAX,0x7f
JG 0x00035ea8
LEA EDX,[EAX + -0x41]
LEA EAX,[EAX + 0x20]
CMP EDX,0x1a
CMOVNC EAX,EBX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP EAX,0xffff
JG 0x00035f58
MOV EDI,dword ptr [ESP + 0x8]
MOV ECX,0x3f1
MOV EBP,0xffffffff
XOR EAX,EAX
MOV ESI,0xa2
MOV EDX,0xa2
LEA EDI,[EDI + 0xfffb386c]
JMP 0x00035eec
LEA EAX,[EDX + 0x1]
MOV EBP,EDX
CMP EAX,ESI
JG 0x00035ef9
LEA EDX,[EAX + ESI*0x1]
MOV ECX,EDX
SAR ECX,0x1
MOVZX ECX,word ptr [EDI + ECX*0x4]
SAR EDX,0x1
CMP EBX,ECX
JNS 0x00035ed8
LEA ESI,[EDX + -0x1]
CMP EAX,ESI
JLE 0x00035ee1
MOVZX EDX,word ptr [EDI + EBP*0x4]
MOV EDI,dword ptr [ESP + 0x8]
LEA ECX,[EDI + EBP*0x4 + 0xfffb386c]
MOVZX EAX,byte ptr [ECX + 0x3]
ADD EAX,EDX
CMP EBX,EAX
JGE 0x00035f31
MOVZX EAX,byte ptr [ECX + 0x2]
XOR EDX,EBX
MOV ECX,EAX
AND ECX,0x1
TEST ECX,EDX
JNZ 0x00035f31
SHR AL,0x1
MOVZX EAX,AL
ADD BX,word ptr [EDI + EAX*0x2 + 0xfffb348c]
MOVZX EBX,BX
MOV EDX,dword ptr [ESP + 0xc]
MOV EAX,EBX
TEST EDX,EDX
JZ 0x00035e9d
XOR EDX,EDX
CMP dword ptr [ESP + 0xc],0x2
SETZ DL
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x00020670
LEA EDX,[EAX + 0xfffefc00]
LEA EAX,[EAX + 0x28]
CMP EDX,0x28
CMOVNC EAX,EBX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "uint FUN_00035e70(void)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  \n  uVar9 = FUN_0001af1a();\n  uVar6 = (uint)uVar9;\n  if ((int)uVar6 < 0x80) {\n    uVar3 = uVar6 + 0x20;\n    if (0x19 < uVar6 - 0x41) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }\n  if (0xffff < (int)uVar6) {\n    uVar3 = uVar6 + 0x28;\n    if (0x27 < uVar6 - 0x10400) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }\n  uVar3 = 0x3f1;\n  iVar2 = 0;\n  iVar8 = 0xa2;\n  iVar4 = 0xa2;\n  iVar7 = -1;\n  do {\n    iVar5 = iVar4 >> 1;\n    if ((int)(uVar6 - uVar3) < 0) {\n      iVar8 = iVar5 + -1;\n      iVar5 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }\n    iVar4 = iVar2 + iVar8;\n    uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4);\n    iVar7 = iVar5;\n  } while( true );\n}\n\n" (function_definition "uint FUN_00035e70(void)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  \n  uVar9 = FUN_0001af1a();\n  uVar6 = (uint)uVar9;\n  if ((int)uVar6 < 0x80) {\n    uVar3 = uVar6 + 0x20;\n    if (0x19 < uVar6 - 0x41) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }\n  if (0xffff < (int)uVar6) {\n    uVar3 = uVar6 + 0x28;\n    if (0x27 < uVar6 - 0x10400) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }\n  uVar3 = 0x3f1;\n  iVar2 = 0;\n  iVar8 = 0xa2;\n  iVar4 = 0xa2;\n  iVar7 = -1;\n  do {\n    iVar5 = iVar4 >> 1;\n    if ((int)(uVar6 - uVar3) < 0) {\n      iVar8 = iVar5 + -1;\n      iVar5 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }\n    iVar4 = iVar2 + iVar8;\n    uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4);\n    iVar7 = iVar5;\n  } while( true );\n}" type_identifier (function_declarator "FUN_00035e70(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  \n  uVar9 = FUN_0001af1a();\n  uVar6 = (uint)uVar9;\n  if ((int)uVar6 < 0x80) {\n    uVar3 = uVar6 + 0x20;\n    if (0x19 < uVar6 - 0x41) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }\n  if (0xffff < (int)uVar6) {\n    uVar3 = uVar6 + 0x28;\n    if (0x27 < uVar6 - 0x10400) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }\n  uVar3 = 0x3f1;\n  iVar2 = 0;\n  iVar8 = 0xa2;\n  iVar4 = 0xa2;\n  iVar7 = -1;\n  do {\n    iVar5 = iVar4 >> 1;\n    if ((int)(uVar6 - uVar3) < 0) {\n      iVar8 = iVar5 + -1;\n      iVar5 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }\n    iVar4 = iVar2 + iVar8;\n    uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4);\n    iVar7 = iVar5;\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar9;" type_identifier identifier ;) (expression_statement "uVar9 = FUN_0001af1a();" (assignment_expression "uVar9 = FUN_0001af1a()" identifier = (call_expression "FUN_0001af1a()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar6 = (uint)uVar9;" (assignment_expression "uVar6 = (uint)uVar9" identifier = (cast_expression "(uint)uVar9" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if ((int)uVar6 < 0x80) {\n    uVar3 = uVar6 + 0x20;\n    if (0x19 < uVar6 - 0x41) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }" if (parenthesized_expression "((int)uVar6 < 0x80)" ( (binary_expression "(int)uVar6 < 0x80" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    uVar3 = uVar6 + 0x20;\n    if (0x19 < uVar6 - 0x41) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }" { (expression_statement "uVar3 = uVar6 + 0x20;" (assignment_expression "uVar3 = uVar6 + 0x20" identifier = (binary_expression "uVar6 + 0x20" identifier + number_literal)) ;) (if_statement "if (0x19 < uVar6 - 0x41) {\n      uVar3 = uVar6;\n    }" if (parenthesized_expression "(0x19 < uVar6 - 0x41)" ( (binary_expression "0x19 < uVar6 - 0x41" number_literal < (binary_expression "uVar6 - 0x41" identifier - number_literal)) )) (compound_statement "{\n      uVar3 = uVar6;\n    }" { (expression_statement "uVar3 = uVar6;" (assignment_expression "uVar3 = uVar6" identifier = identifier) ;) })) (return_statement "return uVar3;" return identifier ;) })) (if_statement "if (0xffff < (int)uVar6) {\n    uVar3 = uVar6 + 0x28;\n    if (0x27 < uVar6 - 0x10400) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }" if (parenthesized_expression "(0xffff < (int)uVar6)" ( (binary_expression "0xffff < (int)uVar6" number_literal < (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar3 = uVar6 + 0x28;\n    if (0x27 < uVar6 - 0x10400) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }" { (expression_statement "uVar3 = uVar6 + 0x28;" (assignment_expression "uVar3 = uVar6 + 0x28" identifier = (binary_expression "uVar6 + 0x28" identifier + number_literal)) ;) (if_statement "if (0x27 < uVar6 - 0x10400) {\n      uVar3 = uVar6;\n    }" if (parenthesized_expression "(0x27 < uVar6 - 0x10400)" ( (binary_expression "0x27 < uVar6 - 0x10400" number_literal < (binary_expression "uVar6 - 0x10400" identifier - number_literal)) )) (compound_statement "{\n      uVar3 = uVar6;\n    }" { (expression_statement "uVar3 = uVar6;" (assignment_expression "uVar3 = uVar6" identifier = identifier) ;) })) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "uVar3 = 0x3f1;" (assignment_expression "uVar3 = 0x3f1" identifier = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "iVar8 = 0xa2;" (assignment_expression "iVar8 = 0xa2" identifier = number_literal) ;) (expression_statement "iVar4 = 0xa2;" (assignment_expression "iVar4 = 0xa2" identifier = number_literal) ;) (expression_statement "iVar7 = -1;" (assignment_expression "iVar7 = -1" identifier = number_literal) ;) (do_statement "do {\n    iVar5 = iVar4 >> 1;\n    if ((int)(uVar6 - uVar3) < 0) {\n      iVar8 = iVar5 + -1;\n      iVar5 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }\n    iVar4 = iVar2 + iVar8;\n    uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4);\n    iVar7 = iVar5;\n  } while( true );" do (compound_statement "{\n    iVar5 = iVar4 >> 1;\n    if ((int)(uVar6 - uVar3) < 0) {\n      iVar8 = iVar5 + -1;\n      iVar5 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }\n    iVar4 = iVar2 + iVar8;\n    uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4);\n    iVar7 = iVar5;\n  }" { (expression_statement "iVar5 = iVar4 >> 1;" (assignment_expression "iVar5 = iVar4 >> 1" identifier = (binary_expression "iVar4 >> 1" identifier >> number_literal)) ;) (if_statement "if ((int)(uVar6 - uVar3) < 0) {\n      iVar8 = iVar5 + -1;\n      iVar5 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }" if (parenthesized_expression "((int)(uVar6 - uVar3) < 0)" ( (binary_expression "(int)(uVar6 - uVar3) < 0" (cast_expression "(int)(uVar6 - uVar3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar6 - uVar3)" ( (binary_expression "uVar6 - uVar3" identifier - identifier) ))) < number_literal) )) (compound_statement "{\n      iVar8 = iVar5 + -1;\n      iVar5 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }" { (expression_statement "iVar8 = iVar5 + -1;" (assignment_expression "iVar8 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar7;" (assignment_expression "iVar5 = iVar7" identifier = identifier) ;) (if_statement "if (iVar8 < iVar2) goto LAB_00035ef9;" if (parenthesized_expression "(iVar8 < iVar2)" ( (binary_expression "iVar8 < iVar2" identifier < identifier) )) (goto_statement "goto LAB_00035ef9;" goto statement_identifier ;)) }) (else_clause "else {\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }" else (compound_statement "{\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }" { (expression_statement "iVar2 = iVar5 + 1;" (assignment_expression "iVar2 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (if_statement "if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }" if (parenthesized_expression "(iVar8 < iVar2)" ( (binary_expression "iVar8 < iVar2" identifier < identifier) )) (compound_statement "{\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }" { (labeled_statement "LAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);" statement_identifier : (expression_statement "uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);" (assignment_expression "uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4)" identifier = (binary_expression "(uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc88c9 + iVar5 * 4)" ( (binary_expression "unaff_EDI + 0xc88c9 + iVar5 * 4" (binary_expression "unaff_EDI + 0xc88c9" identifier + number_literal) + (binary_expression "iVar5 * 4" identifier * number_literal)) ))))) ;)) (expression_statement "iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;" (assignment_expression "iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4" identifier = (binary_expression "unaff_EDI + 0xc88c9 + iVar5 * 4" (binary_expression "unaff_EDI + 0xc88c9" identifier + number_literal) + (binary_expression "iVar5 * 4" identifier * number_literal))) ;) (if_statement "if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }" if (parenthesized_expression "(((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0))" ( (binary_expression "((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)" (parenthesized_expression "((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3))" ( (binary_expression "(int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)(*(byte *)(iVar2 + 3) + uVar3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(*(byte *)(iVar2 + 3) + uVar3)" ( (binary_expression "*(byte *)(iVar2 + 3) + uVar3" (pointer_expression "*(byte *)(iVar2 + 3)" * (cast_expression "(byte *)(iVar2 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 3)" ( (binary_expression "iVar2 + 3" identifier + number_literal) )))) + identifier) )))) )) && (parenthesized_expression "(bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)" ( (comma_expression "bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0" (assignment_expression "bVar1 = *(byte *)(iVar2 + 2)" identifier = (pointer_expression "*(byte *)(iVar2 + 2)" * (cast_expression "(byte *)(iVar2 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 2)" ( (binary_expression "iVar2 + 2" identifier + number_literal) ))))) , (binary_expression "(bVar1 & 1 & (uVar3 ^ uVar6)) == 0" (parenthesized_expression "(bVar1 & 1 & (uVar3 ^ uVar6))" ( (binary_expression "bVar1 & 1 & (uVar3 ^ uVar6)" (binary_expression "bVar1 & 1" identifier & number_literal) & (parenthesized_expression "(uVar3 ^ uVar6)" ( (binary_expression "uVar3 ^ uVar6" identifier ^ identifier) ))) )) == number_literal)) ))) )) (compound_statement "{\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }" { (expression_statement "uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));" (assignment_expression "uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2))" identifier = (call_expression "(uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2))" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2))" ( (binary_expression "(short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2)" (cast_expression "(short)uVar9" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier) + (pointer_expression "*(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2)" * (cast_expression "(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2)" ( (binary_expression "unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2" (binary_expression "unaff_EDI + 0xc84e9" identifier + number_literal) + (binary_expression "(uint)(bVar1 >> 1) * 2" (call_expression "(uint)(bVar1 >> 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(bVar1 >> 1)" ( (binary_expression "bVar1 >> 1" identifier >> number_literal) ))) * number_literal)) ))))) )))) ;) })) (if_statement "if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }" if (parenthesized_expression "((int)((ulonglong)uVar9 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar9 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar9 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar9 >> 0x20)" ( (binary_expression "(ulonglong)uVar9 >> 0x20" (cast_expression "(ulonglong)uVar9" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) (compound_statement "{\n          return uVar6;\n        }" { (return_statement "return uVar6;" return identifier ;) })) (expression_statement "uVar6 = FUN_00020670();" (assignment_expression "uVar6 = FUN_00020670()" identifier = (call_expression "FUN_00020670()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar6;" return identifier ;) })) }))) (expression_statement "iVar4 = iVar2 + iVar8;" (assignment_expression "iVar4 = iVar2 + iVar8" identifier = (binary_expression "iVar2 + iVar8" identifier + identifier)) ;) (expression_statement "uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4);" (assignment_expression "uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4)" identifier = (binary_expression "(uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4)" ( (binary_expression "unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4" (binary_expression "unaff_EDI + 0xc88c9" identifier + number_literal) + (binary_expression "(iVar4 >> 1) * 4" (parenthesized_expression "(iVar4 >> 1)" ( (binary_expression "iVar4 >> 1" identifier >> number_literal) )) * number_literal)) ))))) ;) (expression_statement "iVar7 = iVar5;" (assignment_expression "iVar7 = iVar5" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int sqlite3Fts5UnicodeFold(int c,int eRemoveDiacritic)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  uint c_00;\n  int iVar7;\n  int iVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  \n  uVar9 = __x86_get_pc_thunk_di();\n  iVar3 = (int)((ulonglong)uVar9 >> 0x20);\n  c_00 = (uint)uVar9;\n  if ((int)c_00 < 0x80) {\n    uVar4 = c_00 + 0x20;\n    if (0x19 < c_00 - 0x41) {\n      uVar4 = c_00;\n    }\n    return uVar4;\n  }\n  if (0xffff < (int)c_00) {\n    uVar4 = c_00 + 0x28;\n    if (0x27 < c_00 - 0x10400) {\n      uVar4 = c_00;\n    }\n    return uVar4;\n  }\n  uVar4 = 0x3f1;\n  iVar2 = 0;\n  iVar8 = 0xa2;\n  iVar5 = 0xa2;\n  iVar7 = -1;\n  do {\n    iVar6 = iVar5 >> 1;\n    if ((int)(c_00 - uVar4) < 0) {\n      iVar8 = iVar6 + -1;\n      iVar6 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar6 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar6 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar6 * 4;\n        if (((int)c_00 < (int)(*(byte *)(iVar2 + 3) + uVar4)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar4 ^ c_00)) == 0)) {\n          c_00 = (uint)(ushort)((short)uVar9 +\n                               *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if (iVar3 == 0) {\n          return c_00;\n        }\n        iVar3 = remove_diacritic(c_00,(uint)(iVar3 == 2));\n        return iVar3;\n      }\n    }\n    iVar5 = iVar2 + iVar8;\n    uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar5 >> 1) * 4);\n    iVar7 = iVar6;\n  } while( true );\n}\n\n" (function_definition "int sqlite3Fts5UnicodeFold(int c,int eRemoveDiacritic)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  uint c_00;\n  int iVar7;\n  int iVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  \n  uVar9 = __x86_get_pc_thunk_di();\n  iVar3 = (int)((ulonglong)uVar9 >> 0x20);\n  c_00 = (uint)uVar9;\n  if ((int)c_00 < 0x80) {\n    uVar4 = c_00 + 0x20;\n    if (0x19 < c_00 - 0x41) {\n      uVar4 = c_00;\n    }\n    return uVar4;\n  }\n  if (0xffff < (int)c_00) {\n    uVar4 = c_00 + 0x28;\n    if (0x27 < c_00 - 0x10400) {\n      uVar4 = c_00;\n    }\n    return uVar4;\n  }\n  uVar4 = 0x3f1;\n  iVar2 = 0;\n  iVar8 = 0xa2;\n  iVar5 = 0xa2;\n  iVar7 = -1;\n  do {\n    iVar6 = iVar5 >> 1;\n    if ((int)(c_00 - uVar4) < 0) {\n      iVar8 = iVar6 + -1;\n      iVar6 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar6 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar6 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar6 * 4;\n        if (((int)c_00 < (int)(*(byte *)(iVar2 + 3) + uVar4)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar4 ^ c_00)) == 0)) {\n          c_00 = (uint)(ushort)((short)uVar9 +\n                               *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if (iVar3 == 0) {\n          return c_00;\n        }\n        iVar3 = remove_diacritic(c_00,(uint)(iVar3 == 2));\n        return iVar3;\n      }\n    }\n    iVar5 = iVar2 + iVar8;\n    uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar5 >> 1) * 4);\n    iVar7 = iVar6;\n  } while( true );\n}" primitive_type (function_declarator "sqlite3Fts5UnicodeFold(int c,int eRemoveDiacritic)" identifier (parameter_list "(int c,int eRemoveDiacritic)" ( (parameter_declaration "int c" primitive_type identifier) , (parameter_declaration "int eRemoveDiacritic" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  uint c_00;\n  int iVar7;\n  int iVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  \n  uVar9 = __x86_get_pc_thunk_di();\n  iVar3 = (int)((ulonglong)uVar9 >> 0x20);\n  c_00 = (uint)uVar9;\n  if ((int)c_00 < 0x80) {\n    uVar4 = c_00 + 0x20;\n    if (0x19 < c_00 - 0x41) {\n      uVar4 = c_00;\n    }\n    return uVar4;\n  }\n  if (0xffff < (int)c_00) {\n    uVar4 = c_00 + 0x28;\n    if (0x27 < c_00 - 0x10400) {\n      uVar4 = c_00;\n    }\n    return uVar4;\n  }\n  uVar4 = 0x3f1;\n  iVar2 = 0;\n  iVar8 = 0xa2;\n  iVar5 = 0xa2;\n  iVar7 = -1;\n  do {\n    iVar6 = iVar5 >> 1;\n    if ((int)(c_00 - uVar4) < 0) {\n      iVar8 = iVar6 + -1;\n      iVar6 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar6 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar6 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar6 * 4;\n        if (((int)c_00 < (int)(*(byte *)(iVar2 + 3) + uVar4)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar4 ^ c_00)) == 0)) {\n          c_00 = (uint)(ushort)((short)uVar9 +\n                               *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if (iVar3 == 0) {\n          return c_00;\n        }\n        iVar3 = remove_diacritic(c_00,(uint)(iVar3 == 2));\n        return iVar3;\n      }\n    }\n    iVar5 = iVar2 + iVar8;\n    uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar5 >> 1) * 4);\n    iVar7 = iVar6;\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint c_00;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar9;" type_identifier identifier ;) (expression_statement "uVar9 = __x86_get_pc_thunk_di();" (assignment_expression "uVar9 = __x86_get_pc_thunk_di()" identifier = (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = (int)((ulonglong)uVar9 >> 0x20);" (assignment_expression "iVar3 = (int)((ulonglong)uVar9 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar9 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar9 >> 0x20)" ( (binary_expression "(ulonglong)uVar9 >> 0x20" (cast_expression "(ulonglong)uVar9" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "c_00 = (uint)uVar9;" (assignment_expression "c_00 = (uint)uVar9" identifier = (cast_expression "(uint)uVar9" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if ((int)c_00 < 0x80) {\n    uVar4 = c_00 + 0x20;\n    if (0x19 < c_00 - 0x41) {\n      uVar4 = c_00;\n    }\n    return uVar4;\n  }" if (parenthesized_expression "((int)c_00 < 0x80)" ( (binary_expression "(int)c_00 < 0x80" (cast_expression "(int)c_00" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    uVar4 = c_00 + 0x20;\n    if (0x19 < c_00 - 0x41) {\n      uVar4 = c_00;\n    }\n    return uVar4;\n  }" { (expression_statement "uVar4 = c_00 + 0x20;" (assignment_expression "uVar4 = c_00 + 0x20" identifier = (binary_expression "c_00 + 0x20" identifier + number_literal)) ;) (if_statement "if (0x19 < c_00 - 0x41) {\n      uVar4 = c_00;\n    }" if (parenthesized_expression "(0x19 < c_00 - 0x41)" ( (binary_expression "0x19 < c_00 - 0x41" number_literal < (binary_expression "c_00 - 0x41" identifier - number_literal)) )) (compound_statement "{\n      uVar4 = c_00;\n    }" { (expression_statement "uVar4 = c_00;" (assignment_expression "uVar4 = c_00" identifier = identifier) ;) })) (return_statement "return uVar4;" return identifier ;) })) (if_statement "if (0xffff < (int)c_00) {\n    uVar4 = c_00 + 0x28;\n    if (0x27 < c_00 - 0x10400) {\n      uVar4 = c_00;\n    }\n    return uVar4;\n  }" if (parenthesized_expression "(0xffff < (int)c_00)" ( (binary_expression "0xffff < (int)c_00" number_literal < (cast_expression "(int)c_00" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar4 = c_00 + 0x28;\n    if (0x27 < c_00 - 0x10400) {\n      uVar4 = c_00;\n    }\n    return uVar4;\n  }" { (expression_statement "uVar4 = c_00 + 0x28;" (assignment_expression "uVar4 = c_00 + 0x28" identifier = (binary_expression "c_00 + 0x28" identifier + number_literal)) ;) (if_statement "if (0x27 < c_00 - 0x10400) {\n      uVar4 = c_00;\n    }" if (parenthesized_expression "(0x27 < c_00 - 0x10400)" ( (binary_expression "0x27 < c_00 - 0x10400" number_literal < (binary_expression "c_00 - 0x10400" identifier - number_literal)) )) (compound_statement "{\n      uVar4 = c_00;\n    }" { (expression_statement "uVar4 = c_00;" (assignment_expression "uVar4 = c_00" identifier = identifier) ;) })) (return_statement "return uVar4;" return identifier ;) })) (expression_statement "uVar4 = 0x3f1;" (assignment_expression "uVar4 = 0x3f1" identifier = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "iVar8 = 0xa2;" (assignment_expression "iVar8 = 0xa2" identifier = number_literal) ;) (expression_statement "iVar5 = 0xa2;" (assignment_expression "iVar5 = 0xa2" identifier = number_literal) ;) (expression_statement "iVar7 = -1;" (assignment_expression "iVar7 = -1" identifier = number_literal) ;) (do_statement "do {\n    iVar6 = iVar5 >> 1;\n    if ((int)(c_00 - uVar4) < 0) {\n      iVar8 = iVar6 + -1;\n      iVar6 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar6 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar6 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar6 * 4;\n        if (((int)c_00 < (int)(*(byte *)(iVar2 + 3) + uVar4)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar4 ^ c_00)) == 0)) {\n          c_00 = (uint)(ushort)((short)uVar9 +\n                               *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if (iVar3 == 0) {\n          return c_00;\n        }\n        iVar3 = remove_diacritic(c_00,(uint)(iVar3 == 2));\n        return iVar3;\n      }\n    }\n    iVar5 = iVar2 + iVar8;\n    uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar5 >> 1) * 4);\n    iVar7 = iVar6;\n  } while( true );" do (compound_statement "{\n    iVar6 = iVar5 >> 1;\n    if ((int)(c_00 - uVar4) < 0) {\n      iVar8 = iVar6 + -1;\n      iVar6 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar6 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar6 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar6 * 4;\n        if (((int)c_00 < (int)(*(byte *)(iVar2 + 3) + uVar4)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar4 ^ c_00)) == 0)) {\n          c_00 = (uint)(ushort)((short)uVar9 +\n                               *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if (iVar3 == 0) {\n          return c_00;\n        }\n        iVar3 = remove_diacritic(c_00,(uint)(iVar3 == 2));\n        return iVar3;\n      }\n    }\n    iVar5 = iVar2 + iVar8;\n    uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar5 >> 1) * 4);\n    iVar7 = iVar6;\n  }" { (expression_statement "iVar6 = iVar5 >> 1;" (assignment_expression "iVar6 = iVar5 >> 1" identifier = (binary_expression "iVar5 >> 1" identifier >> number_literal)) ;) (if_statement "if ((int)(c_00 - uVar4) < 0) {\n      iVar8 = iVar6 + -1;\n      iVar6 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar6 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar6 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar6 * 4;\n        if (((int)c_00 < (int)(*(byte *)(iVar2 + 3) + uVar4)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar4 ^ c_00)) == 0)) {\n          c_00 = (uint)(ushort)((short)uVar9 +\n                               *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if (iVar3 == 0) {\n          return c_00;\n        }\n        iVar3 = remove_diacritic(c_00,(uint)(iVar3 == 2));\n        return iVar3;\n      }\n    }" if (parenthesized_expression "((int)(c_00 - uVar4) < 0)" ( (binary_expression "(int)(c_00 - uVar4) < 0" (cast_expression "(int)(c_00 - uVar4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(c_00 - uVar4)" ( (binary_expression "c_00 - uVar4" identifier - identifier) ))) < number_literal) )) (compound_statement "{\n      iVar8 = iVar6 + -1;\n      iVar6 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }" { (expression_statement "iVar8 = iVar6 + -1;" (assignment_expression "iVar8 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (expression_statement "iVar6 = iVar7;" (assignment_expression "iVar6 = iVar7" identifier = identifier) ;) (if_statement "if (iVar8 < iVar2) goto LAB_00035ef9;" if (parenthesized_expression "(iVar8 < iVar2)" ( (binary_expression "iVar8 < iVar2" identifier < identifier) )) (goto_statement "goto LAB_00035ef9;" goto statement_identifier ;)) }) (else_clause "else {\n      iVar2 = iVar6 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar6 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar6 * 4;\n        if (((int)c_00 < (int)(*(byte *)(iVar2 + 3) + uVar4)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar4 ^ c_00)) == 0)) {\n          c_00 = (uint)(ushort)((short)uVar9 +\n                               *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if (iVar3 == 0) {\n          return c_00;\n        }\n        iVar3 = remove_diacritic(c_00,(uint)(iVar3 == 2));\n        return iVar3;\n      }\n    }" else (compound_statement "{\n      iVar2 = iVar6 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar6 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar6 * 4;\n        if (((int)c_00 < (int)(*(byte *)(iVar2 + 3) + uVar4)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar4 ^ c_00)) == 0)) {\n          c_00 = (uint)(ushort)((short)uVar9 +\n                               *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if (iVar3 == 0) {\n          return c_00;\n        }\n        iVar3 = remove_diacritic(c_00,(uint)(iVar3 == 2));\n        return iVar3;\n      }\n    }" { (expression_statement "iVar2 = iVar6 + 1;" (assignment_expression "iVar2 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar6 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar6 * 4;\n        if (((int)c_00 < (int)(*(byte *)(iVar2 + 3) + uVar4)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar4 ^ c_00)) == 0)) {\n          c_00 = (uint)(ushort)((short)uVar9 +\n                               *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if (iVar3 == 0) {\n          return c_00;\n        }\n        iVar3 = remove_diacritic(c_00,(uint)(iVar3 == 2));\n        return iVar3;\n      }" if (parenthesized_expression "(iVar8 < iVar2)" ( (binary_expression "iVar8 < iVar2" identifier < identifier) )) (compound_statement "{\nLAB_00035ef9:\n        uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar6 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar6 * 4;\n        if (((int)c_00 < (int)(*(byte *)(iVar2 + 3) + uVar4)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar4 ^ c_00)) == 0)) {\n          c_00 = (uint)(ushort)((short)uVar9 +\n                               *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if (iVar3 == 0) {\n          return c_00;\n        }\n        iVar3 = remove_diacritic(c_00,(uint)(iVar3 == 2));\n        return iVar3;\n      }" { (labeled_statement "LAB_00035ef9:\n        uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar6 * 4);" statement_identifier : (expression_statement "uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar6 * 4);" (assignment_expression "uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar6 * 4)" identifier = (binary_expression "(uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar6 * 4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(unaff_EDI + 0xc88c9 + iVar6 * 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc88c9 + iVar6 * 4)" ( (binary_expression "unaff_EDI + 0xc88c9 + iVar6 * 4" (binary_expression "unaff_EDI + 0xc88c9" identifier + number_literal) + (binary_expression "iVar6 * 4" identifier * number_literal)) ))))) ;)) (expression_statement "iVar2 = unaff_EDI + 0xc88c9 + iVar6 * 4;" (assignment_expression "iVar2 = unaff_EDI + 0xc88c9 + iVar6 * 4" identifier = (binary_expression "unaff_EDI + 0xc88c9 + iVar6 * 4" (binary_expression "unaff_EDI + 0xc88c9" identifier + number_literal) + (binary_expression "iVar6 * 4" identifier * number_literal))) ;) (if_statement "if (((int)c_00 < (int)(*(byte *)(iVar2 + 3) + uVar4)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar4 ^ c_00)) == 0)) {\n          c_00 = (uint)(ushort)((short)uVar9 +\n                               *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }" if (parenthesized_expression "(((int)c_00 < (int)(*(byte *)(iVar2 + 3) + uVar4)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar4 ^ c_00)) == 0))" ( (binary_expression "((int)c_00 < (int)(*(byte *)(iVar2 + 3) + uVar4)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar4 ^ c_00)) == 0)" (parenthesized_expression "((int)c_00 < (int)(*(byte *)(iVar2 + 3) + uVar4))" ( (binary_expression "(int)c_00 < (int)(*(byte *)(iVar2 + 3) + uVar4)" (cast_expression "(int)c_00" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)(*(byte *)(iVar2 + 3) + uVar4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(*(byte *)(iVar2 + 3) + uVar4)" ( (binary_expression "*(byte *)(iVar2 + 3) + uVar4" (pointer_expression "*(byte *)(iVar2 + 3)" * (cast_expression "(byte *)(iVar2 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 3)" ( (binary_expression "iVar2 + 3" identifier + number_literal) )))) + identifier) )))) )) && (parenthesized_expression "(bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar4 ^ c_00)) == 0)" ( (comma_expression "bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar4 ^ c_00)) == 0" (assignment_expression "bVar1 = *(byte *)(iVar2 + 2)" identifier = (pointer_expression "*(byte *)(iVar2 + 2)" * (cast_expression "(byte *)(iVar2 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 2)" ( (binary_expression "iVar2 + 2" identifier + number_literal) ))))) , (binary_expression "(bVar1 & 1 & (uVar4 ^ c_00)) == 0" (parenthesized_expression "(bVar1 & 1 & (uVar4 ^ c_00))" ( (binary_expression "bVar1 & 1 & (uVar4 ^ c_00)" (binary_expression "bVar1 & 1" identifier & number_literal) & (parenthesized_expression "(uVar4 ^ c_00)" ( (binary_expression "uVar4 ^ c_00" identifier ^ identifier) ))) )) == number_literal)) ))) )) (compound_statement "{\n          c_00 = (uint)(ushort)((short)uVar9 +\n                               *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }" { (expression_statement "c_00 = (uint)(ushort)((short)uVar9 +\n                               *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));" (assignment_expression "c_00 = (uint)(ushort)((short)uVar9 +\n                               *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2))" identifier = (call_expression "(uint)(ushort)((short)uVar9 +\n                               *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2))" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "((short)uVar9 +\n                               *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2))" ( (binary_expression "(short)uVar9 +\n                               *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2)" (cast_expression "(short)uVar9" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier) + (pointer_expression "*(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2)" * (cast_expression "(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2)" ( (binary_expression "unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2" (binary_expression "unaff_EDI + 0xc84e9" identifier + number_literal) + (binary_expression "(uint)(bVar1 >> 1) * 2" (call_expression "(uint)(bVar1 >> 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(bVar1 >> 1)" ( (binary_expression "bVar1 >> 1" identifier >> number_literal) ))) * number_literal)) ))))) )))) ;) })) (if_statement "if (iVar3 == 0) {\n          return c_00;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          return c_00;\n        }" { (return_statement "return c_00;" return identifier ;) })) (expression_statement "iVar3 = remove_diacritic(c_00,(uint)(iVar3 == 2));" (assignment_expression "iVar3 = remove_diacritic(c_00,(uint)(iVar3 == 2))" identifier = (call_expression "remove_diacritic(c_00,(uint)(iVar3 == 2))" identifier (argument_list "(c_00,(uint)(iVar3 == 2))" ( identifier , (call_expression "(uint)(iVar3 == 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar3 == 2)" ( (binary_expression "iVar3 == 2" identifier == number_literal) ))) )))) ;) (return_statement "return iVar3;" return identifier ;) })) }))) (expression_statement "iVar5 = iVar2 + iVar8;" (assignment_expression "iVar5 = iVar2 + iVar8" identifier = (binary_expression "iVar2 + iVar8" identifier + identifier)) ;) (expression_statement "uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar5 >> 1) * 4);" (assignment_expression "uVar4 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar5 >> 1) * 4)" identifier = (binary_expression "(uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar5 >> 1) * 4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(unaff_EDI + 0xc88c9 + (iVar5 >> 1) * 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc88c9 + (iVar5 >> 1) * 4)" ( (binary_expression "unaff_EDI + 0xc88c9 + (iVar5 >> 1) * 4" (binary_expression "unaff_EDI + 0xc88c9" identifier + number_literal) + (binary_expression "(iVar5 >> 1) * 4" (parenthesized_expression "(iVar5 >> 1)" ( (binary_expression "iVar5 >> 1" identifier >> number_literal) )) * number_literal)) ))))) ;) (expression_statement "iVar7 = iVar6;" (assignment_expression "iVar7 = iVar6" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "uint FUN_00035e70(void)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  \n  uVar9 = FUN_0001af1a();\n  uVar6 = (uint)uVar9;\n  if ((int)uVar6 < 0x80) {\n    uVar3 = uVar6 + 0x20;\n    if (0x19 < uVar6 - 0x41) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }\n  if (0xffff < (int)uVar6) {\n    uVar3 = uVar6 + 0x28;\n    if (0x27 < uVar6 - 0x10400) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }\n  uVar3 = 0x3f1;\n  iVar2 = 0;\n  iVar8 = 0xa2;\n  iVar4 = 0xa2;\n  iVar7 = -1;\n  do {\n    iVar5 = iVar4 >> 1;\n    if ((int)(uVar6 - uVar3) < 0) {\n      iVar8 = iVar5 + -1;\n      iVar5 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }\n    iVar4 = iVar2 + iVar8;\n    uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4);\n    iVar7 = iVar5;\n  } while( true );\n}\n\n" (function_definition "uint FUN_00035e70(void)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  \n  uVar9 = FUN_0001af1a();\n  uVar6 = (uint)uVar9;\n  if ((int)uVar6 < 0x80) {\n    uVar3 = uVar6 + 0x20;\n    if (0x19 < uVar6 - 0x41) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }\n  if (0xffff < (int)uVar6) {\n    uVar3 = uVar6 + 0x28;\n    if (0x27 < uVar6 - 0x10400) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }\n  uVar3 = 0x3f1;\n  iVar2 = 0;\n  iVar8 = 0xa2;\n  iVar4 = 0xa2;\n  iVar7 = -1;\n  do {\n    iVar5 = iVar4 >> 1;\n    if ((int)(uVar6 - uVar3) < 0) {\n      iVar8 = iVar5 + -1;\n      iVar5 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }\n    iVar4 = iVar2 + iVar8;\n    uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4);\n    iVar7 = iVar5;\n  } while( true );\n}" type_identifier (function_declarator "FUN_00035e70(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  \n  uVar9 = FUN_0001af1a();\n  uVar6 = (uint)uVar9;\n  if ((int)uVar6 < 0x80) {\n    uVar3 = uVar6 + 0x20;\n    if (0x19 < uVar6 - 0x41) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }\n  if (0xffff < (int)uVar6) {\n    uVar3 = uVar6 + 0x28;\n    if (0x27 < uVar6 - 0x10400) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }\n  uVar3 = 0x3f1;\n  iVar2 = 0;\n  iVar8 = 0xa2;\n  iVar4 = 0xa2;\n  iVar7 = -1;\n  do {\n    iVar5 = iVar4 >> 1;\n    if ((int)(uVar6 - uVar3) < 0) {\n      iVar8 = iVar5 + -1;\n      iVar5 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }\n    iVar4 = iVar2 + iVar8;\n    uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4);\n    iVar7 = iVar5;\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar9;" type_identifier identifier ;) (expression_statement "uVar9 = FUN_0001af1a();" (assignment_expression "uVar9 = FUN_0001af1a()" identifier = (call_expression "FUN_0001af1a()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar6 = (uint)uVar9;" (assignment_expression "uVar6 = (uint)uVar9" identifier = (cast_expression "(uint)uVar9" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if ((int)uVar6 < 0x80) {\n    uVar3 = uVar6 + 0x20;\n    if (0x19 < uVar6 - 0x41) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }" if (parenthesized_expression "((int)uVar6 < 0x80)" ( (binary_expression "(int)uVar6 < 0x80" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    uVar3 = uVar6 + 0x20;\n    if (0x19 < uVar6 - 0x41) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }" { (expression_statement "uVar3 = uVar6 + 0x20;" (assignment_expression "uVar3 = uVar6 + 0x20" identifier = (binary_expression "uVar6 + 0x20" identifier + number_literal)) ;) (if_statement "if (0x19 < uVar6 - 0x41) {\n      uVar3 = uVar6;\n    }" if (parenthesized_expression "(0x19 < uVar6 - 0x41)" ( (binary_expression "0x19 < uVar6 - 0x41" number_literal < (binary_expression "uVar6 - 0x41" identifier - number_literal)) )) (compound_statement "{\n      uVar3 = uVar6;\n    }" { (expression_statement "uVar3 = uVar6;" (assignment_expression "uVar3 = uVar6" identifier = identifier) ;) })) (return_statement "return uVar3;" return identifier ;) })) (if_statement "if (0xffff < (int)uVar6) {\n    uVar3 = uVar6 + 0x28;\n    if (0x27 < uVar6 - 0x10400) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }" if (parenthesized_expression "(0xffff < (int)uVar6)" ( (binary_expression "0xffff < (int)uVar6" number_literal < (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar3 = uVar6 + 0x28;\n    if (0x27 < uVar6 - 0x10400) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }" { (expression_statement "uVar3 = uVar6 + 0x28;" (assignment_expression "uVar3 = uVar6 + 0x28" identifier = (binary_expression "uVar6 + 0x28" identifier + number_literal)) ;) (if_statement "if (0x27 < uVar6 - 0x10400) {\n      uVar3 = uVar6;\n    }" if (parenthesized_expression "(0x27 < uVar6 - 0x10400)" ( (binary_expression "0x27 < uVar6 - 0x10400" number_literal < (binary_expression "uVar6 - 0x10400" identifier - number_literal)) )) (compound_statement "{\n      uVar3 = uVar6;\n    }" { (expression_statement "uVar3 = uVar6;" (assignment_expression "uVar3 = uVar6" identifier = identifier) ;) })) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "uVar3 = 0x3f1;" (assignment_expression "uVar3 = 0x3f1" identifier = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "iVar8 = 0xa2;" (assignment_expression "iVar8 = 0xa2" identifier = number_literal) ;) (expression_statement "iVar4 = 0xa2;" (assignment_expression "iVar4 = 0xa2" identifier = number_literal) ;) (expression_statement "iVar7 = -1;" (assignment_expression "iVar7 = -1" identifier = number_literal) ;) (do_statement "do {\n    iVar5 = iVar4 >> 1;\n    if ((int)(uVar6 - uVar3) < 0) {\n      iVar8 = iVar5 + -1;\n      iVar5 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }\n    iVar4 = iVar2 + iVar8;\n    uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4);\n    iVar7 = iVar5;\n  } while( true );" do (compound_statement "{\n    iVar5 = iVar4 >> 1;\n    if ((int)(uVar6 - uVar3) < 0) {\n      iVar8 = iVar5 + -1;\n      iVar5 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }\n    iVar4 = iVar2 + iVar8;\n    uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4);\n    iVar7 = iVar5;\n  }" { (expression_statement "iVar5 = iVar4 >> 1;" (assignment_expression "iVar5 = iVar4 >> 1" identifier = (binary_expression "iVar4 >> 1" identifier >> number_literal)) ;) (if_statement "if ((int)(uVar6 - uVar3) < 0) {\n      iVar8 = iVar5 + -1;\n      iVar5 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }" if (parenthesized_expression "((int)(uVar6 - uVar3) < 0)" ( (binary_expression "(int)(uVar6 - uVar3) < 0" (cast_expression "(int)(uVar6 - uVar3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar6 - uVar3)" ( (binary_expression "uVar6 - uVar3" identifier - identifier) ))) < number_literal) )) (compound_statement "{\n      iVar8 = iVar5 + -1;\n      iVar5 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }" { (expression_statement "iVar8 = iVar5 + -1;" (assignment_expression "iVar8 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar7;" (assignment_expression "iVar5 = iVar7" identifier = identifier) ;) (if_statement "if (iVar8 < iVar2) goto LAB_00035ef9;" if (parenthesized_expression "(iVar8 < iVar2)" ( (binary_expression "iVar8 < iVar2" identifier < identifier) )) (goto_statement "goto LAB_00035ef9;" goto statement_identifier ;)) }) (else_clause "else {\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }" else (compound_statement "{\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }" { (expression_statement "iVar2 = iVar5 + 1;" (assignment_expression "iVar2 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (if_statement "if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }" if (parenthesized_expression "(iVar8 < iVar2)" ( (binary_expression "iVar8 < iVar2" identifier < identifier) )) (compound_statement "{\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }" { (labeled_statement "LAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);" statement_identifier : (expression_statement "uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);" (assignment_expression "uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4)" identifier = (binary_expression "(uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc88c9 + iVar5 * 4)" ( (binary_expression "unaff_EDI + 0xc88c9 + iVar5 * 4" (binary_expression "unaff_EDI + 0xc88c9" identifier + number_literal) + (binary_expression "iVar5 * 4" identifier * number_literal)) ))))) ;)) (expression_statement "iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;" (assignment_expression "iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4" identifier = (binary_expression "unaff_EDI + 0xc88c9 + iVar5 * 4" (binary_expression "unaff_EDI + 0xc88c9" identifier + number_literal) + (binary_expression "iVar5 * 4" identifier * number_literal))) ;) (if_statement "if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }" if (parenthesized_expression "(((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0))" ( (binary_expression "((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)" (parenthesized_expression "((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3))" ( (binary_expression "(int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)(*(byte *)(iVar2 + 3) + uVar3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(*(byte *)(iVar2 + 3) + uVar3)" ( (binary_expression "*(byte *)(iVar2 + 3) + uVar3" (pointer_expression "*(byte *)(iVar2 + 3)" * (cast_expression "(byte *)(iVar2 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 3)" ( (binary_expression "iVar2 + 3" identifier + number_literal) )))) + identifier) )))) )) && (parenthesized_expression "(bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)" ( (comma_expression "bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0" (assignment_expression "bVar1 = *(byte *)(iVar2 + 2)" identifier = (pointer_expression "*(byte *)(iVar2 + 2)" * (cast_expression "(byte *)(iVar2 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 2)" ( (binary_expression "iVar2 + 2" identifier + number_literal) ))))) , (binary_expression "(bVar1 & 1 & (uVar3 ^ uVar6)) == 0" (parenthesized_expression "(bVar1 & 1 & (uVar3 ^ uVar6))" ( (binary_expression "bVar1 & 1 & (uVar3 ^ uVar6)" (binary_expression "bVar1 & 1" identifier & number_literal) & (parenthesized_expression "(uVar3 ^ uVar6)" ( (binary_expression "uVar3 ^ uVar6" identifier ^ identifier) ))) )) == number_literal)) ))) )) (compound_statement "{\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }" { (expression_statement "uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));" (assignment_expression "uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2))" identifier = (call_expression "(uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2))" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2))" ( (binary_expression "(short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2)" (cast_expression "(short)uVar9" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier) + (pointer_expression "*(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2)" * (cast_expression "(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2)" ( (binary_expression "unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2" (binary_expression "unaff_EDI + 0xc84e9" identifier + number_literal) + (binary_expression "(uint)(bVar1 >> 1) * 2" (call_expression "(uint)(bVar1 >> 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(bVar1 >> 1)" ( (binary_expression "bVar1 >> 1" identifier >> number_literal) ))) * number_literal)) ))))) )))) ;) })) (if_statement "if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }" if (parenthesized_expression "((int)((ulonglong)uVar9 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)uVar9 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar9 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar9 >> 0x20)" ( (binary_expression "(ulonglong)uVar9 >> 0x20" (cast_expression "(ulonglong)uVar9" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) == number_literal) )) (compound_statement "{\n          return uVar6;\n        }" { (return_statement "return uVar6;" return identifier ;) })) (expression_statement "uVar6 = FUN_00020670();" (assignment_expression "uVar6 = FUN_00020670()" identifier = (call_expression "FUN_00020670()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar6;" return identifier ;) })) }))) (expression_statement "iVar4 = iVar2 + iVar8;" (assignment_expression "iVar4 = iVar2 + iVar8" identifier = (binary_expression "iVar2 + iVar8" identifier + identifier)) ;) (expression_statement "uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4);" (assignment_expression "uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4)" identifier = (binary_expression "(uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4)" ( (binary_expression "unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4" (binary_expression "unaff_EDI + 0xc88c9" identifier + number_literal) + (binary_expression "(iVar4 >> 1) * 4" (parenthesized_expression "(iVar4 >> 1)" ( (binary_expression "iVar4 >> 1" identifier >> number_literal) )) * number_literal)) ))))) ;) (expression_statement "iVar7 = iVar5;" (assignment_expression "iVar7 = iVar5" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (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 IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT - LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT - LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT - IDENT) ))) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))))) ;)) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT & LIT) & (parenthesized_expression ( (binary_expression IDENT ^ IDENT) ))) )) == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) (argument_list ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) * LIT)) ))))) )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "uint FUN_00035e70(void)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  \n  uVar9 = FUN_0001af1a();\n  uVar6 = (uint)uVar9;\n  if ((int)uVar6 < 0x80) {\n    uVar3 = uVar6 + 0x20;\n    if (0x19 < uVar6 - 0x41) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }\n  if (0xffff < (int)uVar6) {\n    uVar3 = uVar6 + 0x28;\n    if (0x27 < uVar6 - 0x10400) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }\n  uVar3 = 0x3f1;\n  iVar2 = 0;\n  iVar8 = 0xa2;\n  iVar4 = 0xa2;\n  iVar7 = -1;\n  do {\n    iVar5 = iVar4 >> 1;\n    if ((int)(uVar6 - uVar3) < 0) {\n      iVar8 = iVar5 + -1;\n      iVar5 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }\n    iVar4 = iVar2 + iVar8;\n    uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4);\n    iVar7 = iVar5;\n  } while( true );\n}" (type_identifier "uint") (function_declarator "FUN_00035e70(void)" (identifier "FUN_00035e70") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  \n  uVar9 = FUN_0001af1a();\n  uVar6 = (uint)uVar9;\n  if ((int)uVar6 < 0x80) {\n    uVar3 = uVar6 + 0x20;\n    if (0x19 < uVar6 - 0x41) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }\n  if (0xffff < (int)uVar6) {\n    uVar3 = uVar6 + 0x28;\n    if (0x27 < uVar6 - 0x10400) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }\n  uVar3 = 0x3f1;\n  iVar2 = 0;\n  iVar8 = 0xa2;\n  iVar4 = 0xa2;\n  iVar7 = -1;\n  do {\n    iVar5 = iVar4 >> 1;\n    if ((int)(uVar6 - uVar3) < 0) {\n      iVar8 = iVar5 + -1;\n      iVar5 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }\n    iVar4 = iVar2 + iVar8;\n    uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4);\n    iVar7 = iVar5;\n  } while( true );\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "undefined8 uVar9;" (type_identifier "undefined8") (identifier "uVar9") (; ";")) (expression_statement "uVar9 = FUN_0001af1a();" (assignment_expression "uVar9 = FUN_0001af1a()" (identifier "uVar9") (= "=") (call_expression "FUN_0001af1a()" (identifier "FUN_0001af1a") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar6 = (uint)uVar9;" (assignment_expression "uVar6 = (uint)uVar9" (identifier "uVar6") (= "=") (cast_expression "(uint)uVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar9"))) (; ";")) (if_statement "if ((int)uVar6 < 0x80) {\n    uVar3 = uVar6 + 0x20;\n    if (0x19 < uVar6 - 0x41) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }" (if "if") (parenthesized_expression "((int)uVar6 < 0x80)" (( "(") (binary_expression "(int)uVar6 < 0x80" (cast_expression "(int)uVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar6")) (< "<") (number_literal "0x80")) () ")")) (compound_statement "{\n    uVar3 = uVar6 + 0x20;\n    if (0x19 < uVar6 - 0x41) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }" ({ "{") (expression_statement "uVar3 = uVar6 + 0x20;" (assignment_expression "uVar3 = uVar6 + 0x20" (identifier "uVar3") (= "=") (binary_expression "uVar6 + 0x20" (identifier "uVar6") (+ "+") (number_literal "0x20"))) (; ";")) (if_statement "if (0x19 < uVar6 - 0x41) {\n      uVar3 = uVar6;\n    }" (if "if") (parenthesized_expression "(0x19 < uVar6 - 0x41)" (( "(") (binary_expression "0x19 < uVar6 - 0x41" (number_literal "0x19") (< "<") (binary_expression "uVar6 - 0x41" (identifier "uVar6") (- "-") (number_literal "0x41"))) () ")")) (compound_statement "{\n      uVar3 = uVar6;\n    }" ({ "{") (expression_statement "uVar3 = uVar6;" (assignment_expression "uVar3 = uVar6" (identifier "uVar3") (= "=") (identifier "uVar6")) (; ";")) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (if_statement "if (0xffff < (int)uVar6) {\n    uVar3 = uVar6 + 0x28;\n    if (0x27 < uVar6 - 0x10400) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(0xffff < (int)uVar6)" (( "(") (binary_expression "0xffff < (int)uVar6" (number_literal "0xffff") (< "<") (cast_expression "(int)uVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar6"))) () ")")) (compound_statement "{\n    uVar3 = uVar6 + 0x28;\n    if (0x27 < uVar6 - 0x10400) {\n      uVar3 = uVar6;\n    }\n    return uVar3;\n  }" ({ "{") (expression_statement "uVar3 = uVar6 + 0x28;" (assignment_expression "uVar3 = uVar6 + 0x28" (identifier "uVar3") (= "=") (binary_expression "uVar6 + 0x28" (identifier "uVar6") (+ "+") (number_literal "0x28"))) (; ";")) (if_statement "if (0x27 < uVar6 - 0x10400) {\n      uVar3 = uVar6;\n    }" (if "if") (parenthesized_expression "(0x27 < uVar6 - 0x10400)" (( "(") (binary_expression "0x27 < uVar6 - 0x10400" (number_literal "0x27") (< "<") (binary_expression "uVar6 - 0x10400" (identifier "uVar6") (- "-") (number_literal "0x10400"))) () ")")) (compound_statement "{\n      uVar3 = uVar6;\n    }" ({ "{") (expression_statement "uVar3 = uVar6;" (assignment_expression "uVar3 = uVar6" (identifier "uVar3") (= "=") (identifier "uVar6")) (; ";")) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "uVar3 = 0x3f1;" (assignment_expression "uVar3 = 0x3f1" (identifier "uVar3") (= "=") (number_literal "0x3f1")) (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar8 = 0xa2;" (assignment_expression "iVar8 = 0xa2" (identifier "iVar8") (= "=") (number_literal "0xa2")) (; ";")) (expression_statement "iVar4 = 0xa2;" (assignment_expression "iVar4 = 0xa2" (identifier "iVar4") (= "=") (number_literal "0xa2")) (; ";")) (expression_statement "iVar7 = -1;" (assignment_expression "iVar7 = -1" (identifier "iVar7") (= "=") (number_literal "-1")) (; ";")) (do_statement "do {\n    iVar5 = iVar4 >> 1;\n    if ((int)(uVar6 - uVar3) < 0) {\n      iVar8 = iVar5 + -1;\n      iVar5 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }\n    iVar4 = iVar2 + iVar8;\n    uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4);\n    iVar7 = iVar5;\n  } while( true );" (do "do") (compound_statement "{\n    iVar5 = iVar4 >> 1;\n    if ((int)(uVar6 - uVar3) < 0) {\n      iVar8 = iVar5 + -1;\n      iVar5 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }\n    iVar4 = iVar2 + iVar8;\n    uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4);\n    iVar7 = iVar5;\n  }" ({ "{") (expression_statement "iVar5 = iVar4 >> 1;" (assignment_expression "iVar5 = iVar4 >> 1" (identifier "iVar5") (= "=") (binary_expression "iVar4 >> 1" (identifier "iVar4") (>> ">>") (number_literal "1"))) (; ";")) (if_statement "if ((int)(uVar6 - uVar3) < 0) {\n      iVar8 = iVar5 + -1;\n      iVar5 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }\n    else {\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }" (if "if") (parenthesized_expression "((int)(uVar6 - uVar3) < 0)" (( "(") (binary_expression "(int)(uVar6 - uVar3) < 0" (cast_expression "(int)(uVar6 - uVar3)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar6 - uVar3)" (( "(") (binary_expression "uVar6 - uVar3" (identifier "uVar6") (- "-") (identifier "uVar3")) () ")"))) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      iVar8 = iVar5 + -1;\n      iVar5 = iVar7;\n      if (iVar8 < iVar2) goto LAB_00035ef9;\n    }" ({ "{") (expression_statement "iVar8 = iVar5 + -1;" (assignment_expression "iVar8 = iVar5 + -1" (identifier "iVar8") (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar5 = iVar7;" (assignment_expression "iVar5 = iVar7" (identifier "iVar5") (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (iVar8 < iVar2) goto LAB_00035ef9;" (if "if") (parenthesized_expression "(iVar8 < iVar2)" (( "(") (binary_expression "iVar8 < iVar2" (identifier "iVar8") (< "<") (identifier "iVar2")) () ")")) (goto_statement "goto LAB_00035ef9;" (goto "goto") (statement_identifier "LAB_00035ef9") (; ";"))) (} "}")) (else_clause "else {\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }" (else "else") (compound_statement "{\n      iVar2 = iVar5 + 1;\n      if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }\n    }" ({ "{") (expression_statement "iVar2 = iVar5 + 1;" (assignment_expression "iVar2 = iVar5 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar8 < iVar2) {\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }" (if "if") (parenthesized_expression "(iVar8 < iVar2)" (( "(") (binary_expression "iVar8 < iVar2" (identifier "iVar8") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\nLAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);\n        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;\n        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }\n        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }\n        uVar6 = FUN_00020670();\n        return uVar6;\n      }" ({ "{") (labeled_statement "LAB_00035ef9:\n        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);" (statement_identifier "LAB_00035ef9") (: ":") (expression_statement "uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);" (assignment_expression "uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4)" (identifier "uVar3") (= "=") (binary_expression "(uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xc88c9 + iVar5 * 4)" (( "(") (binary_expression "unaff_EDI + 0xc88c9 + iVar5 * 4" (binary_expression "unaff_EDI + 0xc88c9" (identifier "unaff_EDI") (+ "+") (number_literal "0xc88c9")) (+ "+") (binary_expression "iVar5 * 4" (identifier "iVar5") (* "*") (number_literal "4"))) () ")"))))) (; ";"))) (expression_statement "iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;" (assignment_expression "iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4" (identifier "iVar2") (= "=") (binary_expression "unaff_EDI + 0xc88c9 + iVar5 * 4" (binary_expression "unaff_EDI + 0xc88c9" (identifier "unaff_EDI") (+ "+") (number_literal "0xc88c9")) (+ "+") (binary_expression "iVar5 * 4" (identifier "iVar5") (* "*") (number_literal "4")))) (; ";")) (if_statement "if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }" (if "if") (parenthesized_expression "(((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0))" (( "(") (binary_expression "((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&\n           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)" (parenthesized_expression "((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3))" (( "(") (binary_expression "(int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)" (cast_expression "(int)uVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar6")) (< "<") (cast_expression "(int)(*(byte *)(iVar2 + 3) + uVar3)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(*(byte *)(iVar2 + 3) + uVar3)" (( "(") (binary_expression "*(byte *)(iVar2 + 3) + uVar3" (pointer_expression "*(byte *)(iVar2 + 3)" (* "*") (cast_expression "(byte *)(iVar2 + 3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 3)" (( "(") (binary_expression "iVar2 + 3" (identifier "iVar2") (+ "+") (number_literal "3")) () ")")))) (+ "+") (identifier "uVar3")) () ")")))) () ")")) (&& "&&") (parenthesized_expression "(bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)" (( "(") (comma_expression "bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0" (assignment_expression "bVar1 = *(byte *)(iVar2 + 2)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)(iVar2 + 2)" (* "*") (cast_expression "(byte *)(iVar2 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 2)" (( "(") (binary_expression "iVar2 + 2" (identifier "iVar2") (+ "+") (number_literal "2")) () ")"))))) (, ",") (binary_expression "(bVar1 & 1 & (uVar3 ^ uVar6)) == 0" (parenthesized_expression "(bVar1 & 1 & (uVar3 ^ uVar6))" (( "(") (binary_expression "bVar1 & 1 & (uVar3 ^ uVar6)" (binary_expression "bVar1 & 1" (identifier "bVar1") (& "&") (number_literal "1")) (& "&") (parenthesized_expression "(uVar3 ^ uVar6)" (( "(") (binary_expression "uVar3 ^ uVar6" (identifier "uVar3") (^ "^") (identifier "uVar6")) () ")"))) () ")")) (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n          uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));\n        }" ({ "{") (expression_statement "uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));" (assignment_expression "uVar6 = (uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2))" (identifier "uVar6") (= "=") (call_expression "(uint)(ushort)((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2))" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(ushort)" (( "(") (identifier "ushort") () ")"))) (argument_list "((short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2))" (( "(") (binary_expression "(short)uVar9 +\n                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2)" (cast_expression "(short)uVar9" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "uVar9")) (+ "+") (pointer_expression "*(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2)" (* "*") (cast_expression "(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2)" (( "(") (binary_expression "unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2" (binary_expression "unaff_EDI + 0xc84e9" (identifier "unaff_EDI") (+ "+") (number_literal "0xc84e9")) (+ "+") (binary_expression "(uint)(bVar1 >> 1) * 2" (call_expression "(uint)(bVar1 >> 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(bVar1 >> 1)" (( "(") (binary_expression "bVar1 >> 1" (identifier "bVar1") (>> ">>") (number_literal "1")) () ")"))) (* "*") (number_literal "2"))) () ")"))))) () ")")))) (; ";")) (} "}"))) (if_statement "if ((int)((ulonglong)uVar9 >> 0x20) == 0) {\n          return uVar6;\n        }" (if "if") (parenthesized_expression "((int)((ulonglong)uVar9 >> 0x20) == 0)" (( "(") (binary_expression "(int)((ulonglong)uVar9 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar9 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar9 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar9 >> 0x20" (cast_expression "(ulonglong)uVar9" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar9")) (>> ">>") (number_literal "0x20")) () ")"))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return uVar6;\n        }" ({ "{") (return_statement "return uVar6;" (return "return") (identifier "uVar6") (; ";")) (} "}"))) (expression_statement "uVar6 = FUN_00020670();" (assignment_expression "uVar6 = FUN_00020670()" (identifier "uVar6") (= "=") (call_expression "FUN_00020670()" (identifier "FUN_00020670") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar6;" (return "return") (identifier "uVar6") (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar4 = iVar2 + iVar8;" (assignment_expression "iVar4 = iVar2 + iVar8" (identifier "iVar4") (= "=") (binary_expression "iVar2 + iVar8" (identifier "iVar2") (+ "+") (identifier "iVar8"))) (; ";")) (expression_statement "uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4);" (assignment_expression "uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4)" (identifier "uVar3") (= "=") (binary_expression "(uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4)" (( "(") (binary_expression "unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4" (binary_expression "unaff_EDI + 0xc88c9" (identifier "unaff_EDI") (+ "+") (number_literal "0xc88c9")) (+ "+") (binary_expression "(iVar4 >> 1) * 4" (parenthesized_expression "(iVar4 >> 1)" (( "(") (binary_expression "iVar4 >> 1" (identifier "iVar4") (>> ">>") (number_literal "1")) () ")")) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "iVar7 = iVar5;" (assignment_expression "iVar7 = iVar5" (identifier "iVar7") (= "=") (identifier "iVar5")) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

int function_1(int c,int eRemoveDiacritic)

{
  type_1 var_9;
  int var_7;
  int var_10;
  type_2 var_4;
  int var_3;
  int var_5;
  type_2 var_2;
  int iVar7;
  int var_6;
  int var_8;
  type_3 uVar9;
  
  uVar9 = var_1();
  var_10 = (int)((type_4)uVar9 >> 0x20);
  var_2 = (type_2)uVar9;
  if ((int)var_2 < 0x80) {
    var_4 = var_2 + 0x20;
    if (0x19 < var_2 - 0x41) {
      var_4 = var_2;
    }
    return var_4;
  }
  if (0xffff < (int)var_2) {
    var_4 = var_2 + 0x28;
    if (0x27 < var_2 - 0x10400) {
      var_4 = var_2;
    }
    return var_4;
  }
  var_4 = 0x3f1;
  var_7 = 0;
  var_6 = 0xa2;
  var_3 = 0xa2;
  iVar7 = -1;
  do {
    var_5 = var_3 >> 1;
    if ((int)(var_2 - var_4) < 0) {
      var_6 = var_5 + -1;
      var_5 = iVar7;
      if (var_6 < var_7) goto LAB_00035ef9;
    }
    else {
      var_7 = var_5 + 1;
      if (var_6 < var_7) {
LAB_00035ef9:
        var_4 = (type_2)*(type_5 *)(var_8 + 0xc88c9 + var_5 * 4);
        var_7 = var_8 + 0xc88c9 + var_5 * 4;
        if (((int)var_2 < (int)(*(type_1 *)(var_7 + 3) + var_4)) &&
           (var_9 = *(type_1 *)(var_7 + 2), (var_9 & 1 & (var_4 ^ var_2)) == 0)) {
          var_2 = (type_2)(type_5)((short)uVar9 +
                               *(short *)(var_8 + 0xc84e9 + (type_2)(var_9 >> 1) * 2));
        }
        if (var_10 == 0) {
          return var_2;
        }
        var_10 = var_11(var_2,(type_2)(var_10 == 2));
        return var_10;
      }
    }
    var_3 = var_7 + var_6;
    var_4 = (type_2)*(type_5 *)(var_8 + 0xc88c9 + (var_3 >> 1) * 4);
    iVar7 = var_5;
  } while( true );
}


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

uint MASKED(void)

{
  byte bVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  uint uVar6;
  int iVar7;
  int iVar8;
  int unaff_EDI;
  undefined8 uVar9;
  
  uVar9 = FUN_0001af1a();
  uVar6 = (uint)uVar9;
  if ((int)uVar6 < 0x80) {
    uVar3 = uVar6 + 0x20;
    if (0x19 < uVar6 - 0x41) {
      uVar3 = uVar6;
    }
    return uVar3;
  }
  if (0xffff < (int)uVar6) {
    uVar3 = uVar6 + 0x28;
    if (0x27 < uVar6 - 0x10400) {
      uVar3 = uVar6;
    }
    return uVar3;
  }
  uVar3 = 0x3f1;
  iVar2 = 0;
  iVar8 = 0xa2;
  iVar4 = 0xa2;
  iVar7 = -1;
  do {
    iVar5 = iVar4 >> 1;
    if ((int)(uVar6 - uVar3) < 0) {
      iVar8 = iVar5 + -1;
      iVar5 = iVar7;
      if (iVar8 < iVar2) goto LAB_00035ef9;
    }
    else {
      iVar2 = iVar5 + 1;
      if (iVar8 < iVar2) {
LAB_00035ef9:
        uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + iVar5 * 4);
        iVar2 = unaff_EDI + 0xc88c9 + iVar5 * 4;
        if (((int)uVar6 < (int)(*(byte *)(iVar2 + 3) + uVar3)) &&
           (bVar1 = *(byte *)(iVar2 + 2), (bVar1 & 1 & (uVar3 ^ uVar6)) == 0)) {
          uVar6 = (uint)(ushort)((short)uVar9 +
                                *(short *)(unaff_EDI + 0xc84e9 + (uint)(bVar1 >> 1) * 2));
        }
        if ((int)((ulonglong)uVar9 >> 0x20) == 0) {
          return uVar6;
        }
        uVar6 = FUN_00020670();
        return uVar6;
      }
    }
    iVar4 = iVar2 + iVar8;
    uVar3 = (uint)*(ushort *)(unaff_EDI + 0xc88c9 + (iVar4 >> 1) * 4);
    iVar7 = iVar5;
  } while( true );
}

