
int sqlite3Fts5UnicodeCategory(u32 iCode)

{
  ushort uVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  uint uVar5;
  ushort uVar6;
  uint uVar7;
  int unaff_EDI;
  undefined8 uVar8;
  uint local_18;
  
  uVar8 = __x86_get_pc_thunk_di();
  iVar4 = (int)((ulonglong)uVar8 >> 0x20);
  local_18 = 0xffffffff;
  uVar7 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar4 * 2);
  uVar3 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar4 * 2);
  while ((int)uVar3 < (int)uVar7) {
    uVar5 = (int)(uVar7 + uVar3) >> 1;
    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2);
    while (uVar2 = uVar5, (ushort)uVar8 < uVar1) {
      if ((int)uVar2 <= (int)uVar3) goto LAB_000347c1;
      uVar5 = (int)(uVar3 + uVar2) >> 1;
      uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2);
      uVar7 = uVar2;
    }
    local_18 = uVar2;
    uVar3 = uVar2 + 1;
  }
LAB_000347c1:
  uVar3 = 0;
  if (local_18 != 0xffffffff) {
    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);
    uVar6 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);
    if ((((uint)uVar8 & 0xffff) < (uint)(uVar6 >> 5) + (uint)uVar1) &&
       (uVar6 = uVar6 & 0x1f, uVar3 = (uint)uVar6, uVar6 == 0x1e)) {
      uVar3 = (-(uint)(((ushort)uVar8 - uVar1 & 1) == 0) & 4) + 5;
    }
  }
  return uVar3;
}



ushort FUN_00034760(void)

{
  ushort uVar1;
  ushort uVar2;
  uint uVar3;
  uint uVar4;
  int iVar5;
  uint uVar6;
  ushort uVar7;
  uint uVar8;
  int unaff_EDI;
  undefined8 uVar9;
  uint local_18;
  
  uVar9 = FUN_000196fd();
  iVar5 = (int)((ulonglong)uVar9 >> 0x20);
  local_18 = 0xffffffff;
  uVar8 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2);
  uVar4 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2);
  while ((int)uVar4 < (int)uVar8) {
    uVar6 = (int)(uVar8 + uVar4) >> 1;
    uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);
    while (uVar3 = uVar6, (ushort)uVar9 < uVar7) {
      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;
      uVar6 = (int)(uVar4 + uVar3) >> 1;
      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);
      uVar8 = uVar3;
    }
    local_18 = uVar3;
    uVar4 = uVar3 + 1;
  }
LAB_000347c1:
  uVar7 = 0;
  if (local_18 != 0xffffffff) {
    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);
    uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);
    if ((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&
       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)) {
      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;
    }
  }
  return uVar7;
}


PUSH EBP
MOV EDX,EAX
PUSH EDI
SHR EDX,0x10
CALL 0x000196fd
ADD EDI,0x114768
PUSH ESI
MOV ESI,EAX
PUSH EBX
SUB ESP,0x8
MOV dword ptr [ESP + 0x4],EAX
MOV dword ptr [ESP],0xffffffff
LEA EAX,[EDI + 0xfffb5b4c]
MOVZX EBP,word ptr [EDI + EDX*0x2 + 0xfffb5b4e]
LEA EBX,[EDI + 0xfffb4d6c]
MOVZX ECX,word ptr [EAX + EDX*0x2]
CMP EBP,ECX
JLE 0x000347c1
LEA EDX,[EBP + ECX*0x1]
SAR EDX,0x1
CMP SI,word ptr [EBX + EDX*0x2]
JC 0x000347bd
JMP 0x0003481c
LEA EAX,[ECX + EDX*0x1]
SAR EAX,0x1
CMP SI,word ptr [EBX + EAX*0x2]
JNC 0x00034820
MOV EDX,EAX
CMP ECX,EDX
JL 0x000347b0
MOV EBX,dword ptr [ESP]
XOR EAX,EAX
CMP EBX,-0x1
JZ 0x00034814
MOVZX ECX,word ptr [EDI + EBX*0x2 + 0xfffb4d6c]
MOVZX EBX,word ptr [EDI + EBX*0x2 + 0xfffb3f8c]
MOVZX ESI,word ptr [ESP + 0x4]
MOV EDX,EBX
MOVZX EDI,CX
SHR DX,0x5
MOVZX EDX,DX
ADD EDX,EDI
CMP ESI,EDX
JGE 0x00034814
AND EBX,0x1f
MOVZX EAX,BX
CMP BX,0x1e
JNZ 0x00034814
MOVZX EAX,word ptr [ESP + 0x4]
SUB EAX,ECX
AND EAX,0x1
CMP AX,0x1
SBB EAX,EAX
AND EAX,0x4
ADD EAX,0x5
ADD ESP,0x8
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,EDX
MOV EDX,EBP
LEA ECX,[EAX + 0x1]
MOV EBP,EDX
MOV dword ptr [ESP],EAX
JMP 0x0003479c
(translation_unit "ushort FUN_00034760(void)\n\n{\n  ushort uVar1;\n  ushort uVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  ushort uVar7;\n  uint uVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  uint local_18;\n  \n  uVar9 = FUN_000196fd();\n  iVar5 = (int)((ulonglong)uVar9 >> 0x20);\n  local_18 = 0xffffffff;\n  uVar8 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2);\n  uVar4 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2);\n  while ((int)uVar4 < (int)uVar8) {\n    uVar6 = (int)(uVar8 + uVar4) >> 1;\n    uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n    while (uVar3 = uVar6, (ushort)uVar9 < uVar7) {\n      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;\n      uVar6 = (int)(uVar4 + uVar3) >> 1;\n      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n      uVar8 = uVar3;\n    }\n    local_18 = uVar3;\n    uVar4 = uVar3 + 1;\n  }\nLAB_000347c1:\n  uVar7 = 0;\n  if (local_18 != 0xffffffff) {\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);\n    uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);\n    if ((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)) {\n      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;\n    }\n  }\n  return uVar7;\n}\n\n" (function_definition "ushort FUN_00034760(void)\n\n{\n  ushort uVar1;\n  ushort uVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  ushort uVar7;\n  uint uVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  uint local_18;\n  \n  uVar9 = FUN_000196fd();\n  iVar5 = (int)((ulonglong)uVar9 >> 0x20);\n  local_18 = 0xffffffff;\n  uVar8 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2);\n  uVar4 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2);\n  while ((int)uVar4 < (int)uVar8) {\n    uVar6 = (int)(uVar8 + uVar4) >> 1;\n    uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n    while (uVar3 = uVar6, (ushort)uVar9 < uVar7) {\n      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;\n      uVar6 = (int)(uVar4 + uVar3) >> 1;\n      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n      uVar8 = uVar3;\n    }\n    local_18 = uVar3;\n    uVar4 = uVar3 + 1;\n  }\nLAB_000347c1:\n  uVar7 = 0;\n  if (local_18 != 0xffffffff) {\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);\n    uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);\n    if ((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)) {\n      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;\n    }\n  }\n  return uVar7;\n}" type_identifier (function_declarator "FUN_00034760(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  ushort uVar1;\n  ushort uVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  ushort uVar7;\n  uint uVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  uint local_18;\n  \n  uVar9 = FUN_000196fd();\n  iVar5 = (int)((ulonglong)uVar9 >> 0x20);\n  local_18 = 0xffffffff;\n  uVar8 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2);\n  uVar4 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2);\n  while ((int)uVar4 < (int)uVar8) {\n    uVar6 = (int)(uVar8 + uVar4) >> 1;\n    uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n    while (uVar3 = uVar6, (ushort)uVar9 < uVar7) {\n      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;\n      uVar6 = (int)(uVar4 + uVar3) >> 1;\n      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n      uVar8 = uVar3;\n    }\n    local_18 = uVar3;\n    uVar4 = uVar3 + 1;\n  }\nLAB_000347c1:\n  uVar7 = 0;\n  if (local_18 != 0xffffffff) {\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);\n    uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);\n    if ((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)) {\n      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;\n    }\n  }\n  return uVar7;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "ushort uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar9;" type_identifier identifier ;) (declaration "uint local_18;" type_identifier identifier ;) (expression_statement "uVar9 = FUN_000196fd();" (assignment_expression "uVar9 = FUN_000196fd()" identifier = (call_expression "FUN_000196fd()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar5 = (int)((ulonglong)uVar9 >> 0x20);" (assignment_expression "iVar5 = (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 "local_18 = 0xffffffff;" (assignment_expression "local_18 = 0xffffffff" identifier = number_literal) ;) (expression_statement "uVar8 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2);" (assignment_expression "uVar8 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2)" identifier = (binary_expression "(uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xca2b6 + iVar5 * 2)" ( (binary_expression "unaff_EDI + 0xca2b6 + iVar5 * 2" (binary_expression "unaff_EDI + 0xca2b6" identifier + number_literal) + (binary_expression "iVar5 * 2" identifier * number_literal)) ))))) ;) (expression_statement "uVar4 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2);" (assignment_expression "uVar4 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2)" identifier = (binary_expression "(uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xca2b4 + iVar5 * 2)" ( (binary_expression "unaff_EDI + 0xca2b4 + iVar5 * 2" (binary_expression "unaff_EDI + 0xca2b4" identifier + number_literal) + (binary_expression "iVar5 * 2" identifier * number_literal)) ))))) ;) (while_statement "while ((int)uVar4 < (int)uVar8) {\n    uVar6 = (int)(uVar8 + uVar4) >> 1;\n    uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n    while (uVar3 = uVar6, (ushort)uVar9 < uVar7) {\n      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;\n      uVar6 = (int)(uVar4 + uVar3) >> 1;\n      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n      uVar8 = uVar3;\n    }\n    local_18 = uVar3;\n    uVar4 = uVar3 + 1;\n  }" while (parenthesized_expression "((int)uVar4 < (int)uVar8)" ( (binary_expression "(int)uVar4 < (int)uVar8" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar6 = (int)(uVar8 + uVar4) >> 1;\n    uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n    while (uVar3 = uVar6, (ushort)uVar9 < uVar7) {\n      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;\n      uVar6 = (int)(uVar4 + uVar3) >> 1;\n      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n      uVar8 = uVar3;\n    }\n    local_18 = uVar3;\n    uVar4 = uVar3 + 1;\n  }" { (expression_statement "uVar6 = (int)(uVar8 + uVar4) >> 1;" (assignment_expression "uVar6 = (int)(uVar8 + uVar4) >> 1" identifier = (binary_expression "(int)(uVar8 + uVar4) >> 1" (cast_expression "(int)(uVar8 + uVar4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar8 + uVar4)" ( (binary_expression "uVar8 + uVar4" identifier + identifier) ))) >> number_literal)) ;) (expression_statement "uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);" (assignment_expression "uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2)" identifier = (pointer_expression "*(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2)" * (cast_expression "(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc94d4 + uVar6 * 2)" ( (binary_expression "unaff_EDI + 0xc94d4 + uVar6 * 2" (binary_expression "unaff_EDI + 0xc94d4" identifier + number_literal) + (binary_expression "uVar6 * 2" identifier * number_literal)) ))))) ;) (while_statement "while (uVar3 = uVar6, (ushort)uVar9 < uVar7) {\n      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;\n      uVar6 = (int)(uVar4 + uVar3) >> 1;\n      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n      uVar8 = uVar3;\n    }" while (parenthesized_expression "(uVar3 = uVar6, (ushort)uVar9 < uVar7)" ( (comma_expression "uVar3 = uVar6, (ushort)uVar9 < uVar7" (assignment_expression "uVar3 = uVar6" identifier = identifier) , (binary_expression "(ushort)uVar9 < uVar7" (cast_expression "(ushort)uVar9" ( (type_descriptor "ushort" type_identifier) ) identifier) < identifier)) )) (compound_statement "{\n      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;\n      uVar6 = (int)(uVar4 + uVar3) >> 1;\n      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n      uVar8 = uVar3;\n    }" { (if_statement "if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;" if (parenthesized_expression "((int)uVar3 <= (int)uVar4)" ( (binary_expression "(int)uVar3 <= (int)uVar4" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_000347c1;" goto statement_identifier ;)) (expression_statement "uVar6 = (int)(uVar4 + uVar3) >> 1;" (assignment_expression "uVar6 = (int)(uVar4 + uVar3) >> 1" identifier = (binary_expression "(int)(uVar4 + uVar3) >> 1" (cast_expression "(int)(uVar4 + uVar3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar4 + uVar3)" ( (binary_expression "uVar4 + uVar3" identifier + identifier) ))) >> number_literal)) ;) (expression_statement "uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);" (assignment_expression "uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2)" identifier = (pointer_expression "*(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2)" * (cast_expression "(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc94d4 + uVar6 * 2)" ( (binary_expression "unaff_EDI + 0xc94d4 + uVar6 * 2" (binary_expression "unaff_EDI + 0xc94d4" identifier + number_literal) + (binary_expression "uVar6 * 2" identifier * number_literal)) ))))) ;) (expression_statement "uVar8 = uVar3;" (assignment_expression "uVar8 = uVar3" identifier = identifier) ;) })) (expression_statement "local_18 = uVar3;" (assignment_expression "local_18 = uVar3" identifier = identifier) ;) (expression_statement "uVar4 = uVar3 + 1;" (assignment_expression "uVar4 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) })) (labeled_statement "LAB_000347c1:\n  uVar7 = 0;" statement_identifier : (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;)) (if_statement "if (local_18 != 0xffffffff) {\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);\n    uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);\n    if ((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)) {\n      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;\n    }\n  }" if (parenthesized_expression "(local_18 != 0xffffffff)" ( (binary_expression "local_18 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);\n    uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);\n    if ((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)) {\n      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;\n    }\n  }" { (expression_statement "uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);" (assignment_expression "uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2)" identifier = (pointer_expression "*(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2)" * (cast_expression "(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc94d4 + local_18 * 2)" ( (binary_expression "unaff_EDI + 0xc94d4 + local_18 * 2" (binary_expression "unaff_EDI + 0xc94d4" identifier + number_literal) + (binary_expression "local_18 * 2" identifier * number_literal)) ))))) ;) (expression_statement "uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);" (assignment_expression "uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2)" identifier = (pointer_expression "*(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2)" * (cast_expression "(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc86f4 + local_18 * 2)" ( (binary_expression "unaff_EDI + 0xc86f4 + local_18 * 2" (binary_expression "unaff_EDI + 0xc86f4" identifier + number_literal) + (binary_expression "local_18 * 2" identifier * number_literal)) ))))) ;) (if_statement "if ((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)) {\n      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;\n    }" if (parenthesized_expression "((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e))" ( (binary_expression "(((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)" (parenthesized_expression "(((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1)" ( (binary_expression "((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1" (parenthesized_expression "((uint)uVar9 & 0xffff)" ( (binary_expression "(uint)uVar9 & 0xffff" (cast_expression "(uint)uVar9" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) < (binary_expression "(uint)(uVar2 >> 5) + (uint)uVar1" (call_expression "(uint)(uVar2 >> 5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 >> 5)" ( (binary_expression "uVar2 >> 5" identifier >> number_literal) ))) + (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier))) )) && (parenthesized_expression "(uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)" ( (comma_expression "uVar7 = uVar2 & 0x1f, uVar7 == 0x1e" (assignment_expression "uVar7 = uVar2 & 0x1f" identifier = (binary_expression "uVar2 & 0x1f" identifier & number_literal)) , (binary_expression "uVar7 == 0x1e" identifier == number_literal)) ))) )) (compound_statement "{\n      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;\n    }" { (expression_statement "uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;" (assignment_expression "uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5" identifier = (binary_expression "(-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5" (parenthesized_expression "(-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4)" ( (binary_expression "-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4" (unary_expression "-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0)" - (call_expression "(ushort)(((ushort)uVar9 - uVar1 & 1) == 0)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(((ushort)uVar9 - uVar1 & 1) == 0)" ( (binary_expression "((ushort)uVar9 - uVar1 & 1) == 0" (parenthesized_expression "((ushort)uVar9 - uVar1 & 1)" ( (binary_expression "(ushort)uVar9 - uVar1 & 1" (binary_expression "(ushort)uVar9 - uVar1" (cast_expression "(ushort)uVar9" ( (type_descriptor "ushort" type_identifier) ) identifier) - identifier) & number_literal) )) == number_literal) )))) & number_literal) )) + number_literal)) ;) })) })) (return_statement "return uVar7;" return identifier ;) })))
(translation_unit "int sqlite3Fts5UnicodeCategory(u32 iCode)\n\n{\n  ushort uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  ushort uVar6;\n  uint uVar7;\n  int unaff_EDI;\n  undefined8 uVar8;\n  uint local_18;\n  \n  uVar8 = __x86_get_pc_thunk_di();\n  iVar4 = (int)((ulonglong)uVar8 >> 0x20);\n  local_18 = 0xffffffff;\n  uVar7 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar4 * 2);\n  uVar3 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar4 * 2);\n  while ((int)uVar3 < (int)uVar7) {\n    uVar5 = (int)(uVar7 + uVar3) >> 1;\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2);\n    while (uVar2 = uVar5, (ushort)uVar8 < uVar1) {\n      if ((int)uVar2 <= (int)uVar3) goto LAB_000347c1;\n      uVar5 = (int)(uVar3 + uVar2) >> 1;\n      uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2);\n      uVar7 = uVar2;\n    }\n    local_18 = uVar2;\n    uVar3 = uVar2 + 1;\n  }\nLAB_000347c1:\n  uVar3 = 0;\n  if (local_18 != 0xffffffff) {\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);\n    uVar6 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);\n    if ((((uint)uVar8 & 0xffff) < (uint)(uVar6 >> 5) + (uint)uVar1) &&\n       (uVar6 = uVar6 & 0x1f, uVar3 = (uint)uVar6, uVar6 == 0x1e)) {\n      uVar3 = (-(uint)(((ushort)uVar8 - uVar1 & 1) == 0) & 4) + 5;\n    }\n  }\n  return uVar3;\n}\n\n" (function_definition "int sqlite3Fts5UnicodeCategory(u32 iCode)\n\n{\n  ushort uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  ushort uVar6;\n  uint uVar7;\n  int unaff_EDI;\n  undefined8 uVar8;\n  uint local_18;\n  \n  uVar8 = __x86_get_pc_thunk_di();\n  iVar4 = (int)((ulonglong)uVar8 >> 0x20);\n  local_18 = 0xffffffff;\n  uVar7 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar4 * 2);\n  uVar3 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar4 * 2);\n  while ((int)uVar3 < (int)uVar7) {\n    uVar5 = (int)(uVar7 + uVar3) >> 1;\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2);\n    while (uVar2 = uVar5, (ushort)uVar8 < uVar1) {\n      if ((int)uVar2 <= (int)uVar3) goto LAB_000347c1;\n      uVar5 = (int)(uVar3 + uVar2) >> 1;\n      uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2);\n      uVar7 = uVar2;\n    }\n    local_18 = uVar2;\n    uVar3 = uVar2 + 1;\n  }\nLAB_000347c1:\n  uVar3 = 0;\n  if (local_18 != 0xffffffff) {\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);\n    uVar6 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);\n    if ((((uint)uVar8 & 0xffff) < (uint)(uVar6 >> 5) + (uint)uVar1) &&\n       (uVar6 = uVar6 & 0x1f, uVar3 = (uint)uVar6, uVar6 == 0x1e)) {\n      uVar3 = (-(uint)(((ushort)uVar8 - uVar1 & 1) == 0) & 4) + 5;\n    }\n  }\n  return uVar3;\n}" primitive_type (function_declarator "sqlite3Fts5UnicodeCategory(u32 iCode)" identifier (parameter_list "(u32 iCode)" ( (parameter_declaration "u32 iCode" type_identifier identifier) ))) (compound_statement "{\n  ushort uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  ushort uVar6;\n  uint uVar7;\n  int unaff_EDI;\n  undefined8 uVar8;\n  uint local_18;\n  \n  uVar8 = __x86_get_pc_thunk_di();\n  iVar4 = (int)((ulonglong)uVar8 >> 0x20);\n  local_18 = 0xffffffff;\n  uVar7 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar4 * 2);\n  uVar3 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar4 * 2);\n  while ((int)uVar3 < (int)uVar7) {\n    uVar5 = (int)(uVar7 + uVar3) >> 1;\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2);\n    while (uVar2 = uVar5, (ushort)uVar8 < uVar1) {\n      if ((int)uVar2 <= (int)uVar3) goto LAB_000347c1;\n      uVar5 = (int)(uVar3 + uVar2) >> 1;\n      uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2);\n      uVar7 = uVar2;\n    }\n    local_18 = uVar2;\n    uVar3 = uVar2 + 1;\n  }\nLAB_000347c1:\n  uVar3 = 0;\n  if (local_18 != 0xffffffff) {\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);\n    uVar6 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);\n    if ((((uint)uVar8 & 0xffff) < (uint)(uVar6 >> 5) + (uint)uVar1) &&\n       (uVar6 = uVar6 & 0x1f, uVar3 = (uint)uVar6, uVar6 == 0x1e)) {\n      uVar3 = (-(uint)(((ushort)uVar8 - uVar1 & 1) == 0) & 4) + 5;\n    }\n  }\n  return uVar3;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "ushort uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar8;" type_identifier identifier ;) (declaration "uint local_18;" type_identifier identifier ;) (expression_statement "uVar8 = __x86_get_pc_thunk_di();" (assignment_expression "uVar8 = __x86_get_pc_thunk_di()" identifier = (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar4 = (int)((ulonglong)uVar8 >> 0x20);" (assignment_expression "iVar4 = (int)((ulonglong)uVar8 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar8 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar8 >> 0x20)" ( (binary_expression "(ulonglong)uVar8 >> 0x20" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_18 = 0xffffffff;" (assignment_expression "local_18 = 0xffffffff" identifier = number_literal) ;) (expression_statement "uVar7 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar4 * 2);" (assignment_expression "uVar7 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar4 * 2)" identifier = (binary_expression "(uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar4 * 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(unaff_EDI + 0xca2b6 + iVar4 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xca2b6 + iVar4 * 2)" ( (binary_expression "unaff_EDI + 0xca2b6 + iVar4 * 2" (binary_expression "unaff_EDI + 0xca2b6" identifier + number_literal) + (binary_expression "iVar4 * 2" identifier * number_literal)) ))))) ;) (expression_statement "uVar3 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar4 * 2);" (assignment_expression "uVar3 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar4 * 2)" identifier = (binary_expression "(uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar4 * 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(unaff_EDI + 0xca2b4 + iVar4 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xca2b4 + iVar4 * 2)" ( (binary_expression "unaff_EDI + 0xca2b4 + iVar4 * 2" (binary_expression "unaff_EDI + 0xca2b4" identifier + number_literal) + (binary_expression "iVar4 * 2" identifier * number_literal)) ))))) ;) (while_statement "while ((int)uVar3 < (int)uVar7) {\n    uVar5 = (int)(uVar7 + uVar3) >> 1;\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2);\n    while (uVar2 = uVar5, (ushort)uVar8 < uVar1) {\n      if ((int)uVar2 <= (int)uVar3) goto LAB_000347c1;\n      uVar5 = (int)(uVar3 + uVar2) >> 1;\n      uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2);\n      uVar7 = uVar2;\n    }\n    local_18 = uVar2;\n    uVar3 = uVar2 + 1;\n  }" while (parenthesized_expression "((int)uVar3 < (int)uVar7)" ( (binary_expression "(int)uVar3 < (int)uVar7" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar5 = (int)(uVar7 + uVar3) >> 1;\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2);\n    while (uVar2 = uVar5, (ushort)uVar8 < uVar1) {\n      if ((int)uVar2 <= (int)uVar3) goto LAB_000347c1;\n      uVar5 = (int)(uVar3 + uVar2) >> 1;\n      uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2);\n      uVar7 = uVar2;\n    }\n    local_18 = uVar2;\n    uVar3 = uVar2 + 1;\n  }" { (expression_statement "uVar5 = (int)(uVar7 + uVar3) >> 1;" (assignment_expression "uVar5 = (int)(uVar7 + uVar3) >> 1" identifier = (binary_expression "(int)(uVar7 + uVar3) >> 1" (cast_expression "(int)(uVar7 + uVar3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar7 + uVar3)" ( (binary_expression "uVar7 + uVar3" identifier + identifier) ))) >> number_literal)) ;) (expression_statement "uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2);" (assignment_expression "uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2)" identifier = (pointer_expression "*(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2)" * (cast_expression "(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc94d4 + uVar5 * 2)" ( (binary_expression "unaff_EDI + 0xc94d4 + uVar5 * 2" (binary_expression "unaff_EDI + 0xc94d4" identifier + number_literal) + (binary_expression "uVar5 * 2" identifier * number_literal)) ))))) ;) (while_statement "while (uVar2 = uVar5, (ushort)uVar8 < uVar1) {\n      if ((int)uVar2 <= (int)uVar3) goto LAB_000347c1;\n      uVar5 = (int)(uVar3 + uVar2) >> 1;\n      uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2);\n      uVar7 = uVar2;\n    }" while (parenthesized_expression "(uVar2 = uVar5, (ushort)uVar8 < uVar1)" ( (comma_expression "uVar2 = uVar5, (ushort)uVar8 < uVar1" (assignment_expression "uVar2 = uVar5" identifier = identifier) , (binary_expression "(ushort)uVar8 < uVar1" (cast_expression "(ushort)uVar8" ( (type_descriptor "ushort" type_identifier) ) identifier) < identifier)) )) (compound_statement "{\n      if ((int)uVar2 <= (int)uVar3) goto LAB_000347c1;\n      uVar5 = (int)(uVar3 + uVar2) >> 1;\n      uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2);\n      uVar7 = uVar2;\n    }" { (if_statement "if ((int)uVar2 <= (int)uVar3) goto LAB_000347c1;" if (parenthesized_expression "((int)uVar2 <= (int)uVar3)" ( (binary_expression "(int)uVar2 <= (int)uVar3" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_000347c1;" goto statement_identifier ;)) (expression_statement "uVar5 = (int)(uVar3 + uVar2) >> 1;" (assignment_expression "uVar5 = (int)(uVar3 + uVar2) >> 1" identifier = (binary_expression "(int)(uVar3 + uVar2) >> 1" (cast_expression "(int)(uVar3 + uVar2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar3 + uVar2)" ( (binary_expression "uVar3 + uVar2" identifier + identifier) ))) >> number_literal)) ;) (expression_statement "uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2);" (assignment_expression "uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2)" identifier = (pointer_expression "*(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2)" * (cast_expression "(ushort *)(unaff_EDI + 0xc94d4 + uVar5 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc94d4 + uVar5 * 2)" ( (binary_expression "unaff_EDI + 0xc94d4 + uVar5 * 2" (binary_expression "unaff_EDI + 0xc94d4" identifier + number_literal) + (binary_expression "uVar5 * 2" identifier * number_literal)) ))))) ;) (expression_statement "uVar7 = uVar2;" (assignment_expression "uVar7 = uVar2" identifier = identifier) ;) })) (expression_statement "local_18 = uVar2;" (assignment_expression "local_18 = uVar2" identifier = identifier) ;) (expression_statement "uVar3 = uVar2 + 1;" (assignment_expression "uVar3 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) })) (labeled_statement "LAB_000347c1:\n  uVar3 = 0;" statement_identifier : (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;)) (if_statement "if (local_18 != 0xffffffff) {\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);\n    uVar6 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);\n    if ((((uint)uVar8 & 0xffff) < (uint)(uVar6 >> 5) + (uint)uVar1) &&\n       (uVar6 = uVar6 & 0x1f, uVar3 = (uint)uVar6, uVar6 == 0x1e)) {\n      uVar3 = (-(uint)(((ushort)uVar8 - uVar1 & 1) == 0) & 4) + 5;\n    }\n  }" if (parenthesized_expression "(local_18 != 0xffffffff)" ( (binary_expression "local_18 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);\n    uVar6 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);\n    if ((((uint)uVar8 & 0xffff) < (uint)(uVar6 >> 5) + (uint)uVar1) &&\n       (uVar6 = uVar6 & 0x1f, uVar3 = (uint)uVar6, uVar6 == 0x1e)) {\n      uVar3 = (-(uint)(((ushort)uVar8 - uVar1 & 1) == 0) & 4) + 5;\n    }\n  }" { (expression_statement "uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);" (assignment_expression "uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2)" identifier = (pointer_expression "*(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2)" * (cast_expression "(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc94d4 + local_18 * 2)" ( (binary_expression "unaff_EDI + 0xc94d4 + local_18 * 2" (binary_expression "unaff_EDI + 0xc94d4" identifier + number_literal) + (binary_expression "local_18 * 2" identifier * number_literal)) ))))) ;) (expression_statement "uVar6 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);" (assignment_expression "uVar6 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2)" identifier = (pointer_expression "*(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2)" * (cast_expression "(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc86f4 + local_18 * 2)" ( (binary_expression "unaff_EDI + 0xc86f4 + local_18 * 2" (binary_expression "unaff_EDI + 0xc86f4" identifier + number_literal) + (binary_expression "local_18 * 2" identifier * number_literal)) ))))) ;) (if_statement "if ((((uint)uVar8 & 0xffff) < (uint)(uVar6 >> 5) + (uint)uVar1) &&\n       (uVar6 = uVar6 & 0x1f, uVar3 = (uint)uVar6, uVar6 == 0x1e)) {\n      uVar3 = (-(uint)(((ushort)uVar8 - uVar1 & 1) == 0) & 4) + 5;\n    }" if (parenthesized_expression "((((uint)uVar8 & 0xffff) < (uint)(uVar6 >> 5) + (uint)uVar1) &&\n       (uVar6 = uVar6 & 0x1f, uVar3 = (uint)uVar6, uVar6 == 0x1e))" ( (binary_expression "(((uint)uVar8 & 0xffff) < (uint)(uVar6 >> 5) + (uint)uVar1) &&\n       (uVar6 = uVar6 & 0x1f, uVar3 = (uint)uVar6, uVar6 == 0x1e)" (parenthesized_expression "(((uint)uVar8 & 0xffff) < (uint)(uVar6 >> 5) + (uint)uVar1)" ( (binary_expression "((uint)uVar8 & 0xffff) < (uint)(uVar6 >> 5) + (uint)uVar1" (parenthesized_expression "((uint)uVar8 & 0xffff)" ( (binary_expression "(uint)uVar8 & 0xffff" (cast_expression "(uint)uVar8" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) < (binary_expression "(uint)(uVar6 >> 5) + (uint)uVar1" (call_expression "(uint)(uVar6 >> 5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 >> 5)" ( (binary_expression "uVar6 >> 5" identifier >> number_literal) ))) + (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier))) )) && (parenthesized_expression "(uVar6 = uVar6 & 0x1f, uVar3 = (uint)uVar6, uVar6 == 0x1e)" ( (comma_expression "uVar6 = uVar6 & 0x1f, uVar3 = (uint)uVar6, uVar6 == 0x1e" (assignment_expression "uVar6 = uVar6 & 0x1f" identifier = (binary_expression "uVar6 & 0x1f" identifier & number_literal)) , (comma_expression "uVar3 = (uint)uVar6, uVar6 == 0x1e" (assignment_expression "uVar3 = (uint)uVar6" identifier = (cast_expression "(uint)uVar6" ( (type_descriptor "uint" type_identifier) ) identifier)) , (binary_expression "uVar6 == 0x1e" identifier == number_literal))) ))) )) (compound_statement "{\n      uVar3 = (-(uint)(((ushort)uVar8 - uVar1 & 1) == 0) & 4) + 5;\n    }" { (expression_statement "uVar3 = (-(uint)(((ushort)uVar8 - uVar1 & 1) == 0) & 4) + 5;" (assignment_expression "uVar3 = (-(uint)(((ushort)uVar8 - uVar1 & 1) == 0) & 4) + 5" identifier = (binary_expression "(-(uint)(((ushort)uVar8 - uVar1 & 1) == 0) & 4) + 5" (parenthesized_expression "(-(uint)(((ushort)uVar8 - uVar1 & 1) == 0) & 4)" ( (binary_expression "-(uint)(((ushort)uVar8 - uVar1 & 1) == 0) & 4" (unary_expression "-(uint)(((ushort)uVar8 - uVar1 & 1) == 0)" - (call_expression "(uint)(((ushort)uVar8 - uVar1 & 1) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(((ushort)uVar8 - uVar1 & 1) == 0)" ( (binary_expression "((ushort)uVar8 - uVar1 & 1) == 0" (parenthesized_expression "((ushort)uVar8 - uVar1 & 1)" ( (binary_expression "(ushort)uVar8 - uVar1 & 1" (binary_expression "(ushort)uVar8 - uVar1" (cast_expression "(ushort)uVar8" ( (type_descriptor "ushort" type_identifier) ) identifier) - identifier) & number_literal) )) == number_literal) )))) & number_literal) )) + number_literal)) ;) })) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "ushort FUN_00034760(void)\n\n{\n  ushort uVar1;\n  ushort uVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  ushort uVar7;\n  uint uVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  uint local_18;\n  \n  uVar9 = FUN_000196fd();\n  iVar5 = (int)((ulonglong)uVar9 >> 0x20);\n  local_18 = 0xffffffff;\n  uVar8 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2);\n  uVar4 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2);\n  while ((int)uVar4 < (int)uVar8) {\n    uVar6 = (int)(uVar8 + uVar4) >> 1;\n    uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n    while (uVar3 = uVar6, (ushort)uVar9 < uVar7) {\n      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;\n      uVar6 = (int)(uVar4 + uVar3) >> 1;\n      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n      uVar8 = uVar3;\n    }\n    local_18 = uVar3;\n    uVar4 = uVar3 + 1;\n  }\nLAB_000347c1:\n  uVar7 = 0;\n  if (local_18 != 0xffffffff) {\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);\n    uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);\n    if ((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)) {\n      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;\n    }\n  }\n  return uVar7;\n}\n\n" (function_definition "ushort FUN_00034760(void)\n\n{\n  ushort uVar1;\n  ushort uVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  ushort uVar7;\n  uint uVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  uint local_18;\n  \n  uVar9 = FUN_000196fd();\n  iVar5 = (int)((ulonglong)uVar9 >> 0x20);\n  local_18 = 0xffffffff;\n  uVar8 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2);\n  uVar4 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2);\n  while ((int)uVar4 < (int)uVar8) {\n    uVar6 = (int)(uVar8 + uVar4) >> 1;\n    uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n    while (uVar3 = uVar6, (ushort)uVar9 < uVar7) {\n      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;\n      uVar6 = (int)(uVar4 + uVar3) >> 1;\n      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n      uVar8 = uVar3;\n    }\n    local_18 = uVar3;\n    uVar4 = uVar3 + 1;\n  }\nLAB_000347c1:\n  uVar7 = 0;\n  if (local_18 != 0xffffffff) {\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);\n    uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);\n    if ((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)) {\n      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;\n    }\n  }\n  return uVar7;\n}" type_identifier (function_declarator "FUN_00034760(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  ushort uVar1;\n  ushort uVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  ushort uVar7;\n  uint uVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  uint local_18;\n  \n  uVar9 = FUN_000196fd();\n  iVar5 = (int)((ulonglong)uVar9 >> 0x20);\n  local_18 = 0xffffffff;\n  uVar8 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2);\n  uVar4 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2);\n  while ((int)uVar4 < (int)uVar8) {\n    uVar6 = (int)(uVar8 + uVar4) >> 1;\n    uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n    while (uVar3 = uVar6, (ushort)uVar9 < uVar7) {\n      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;\n      uVar6 = (int)(uVar4 + uVar3) >> 1;\n      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n      uVar8 = uVar3;\n    }\n    local_18 = uVar3;\n    uVar4 = uVar3 + 1;\n  }\nLAB_000347c1:\n  uVar7 = 0;\n  if (local_18 != 0xffffffff) {\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);\n    uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);\n    if ((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)) {\n      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;\n    }\n  }\n  return uVar7;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "ushort uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar9;" type_identifier identifier ;) (declaration "uint local_18;" type_identifier identifier ;) (expression_statement "uVar9 = FUN_000196fd();" (assignment_expression "uVar9 = FUN_000196fd()" identifier = (call_expression "FUN_000196fd()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar5 = (int)((ulonglong)uVar9 >> 0x20);" (assignment_expression "iVar5 = (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 "local_18 = 0xffffffff;" (assignment_expression "local_18 = 0xffffffff" identifier = number_literal) ;) (expression_statement "uVar8 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2);" (assignment_expression "uVar8 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2)" identifier = (binary_expression "(uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xca2b6 + iVar5 * 2)" ( (binary_expression "unaff_EDI + 0xca2b6 + iVar5 * 2" (binary_expression "unaff_EDI + 0xca2b6" identifier + number_literal) + (binary_expression "iVar5 * 2" identifier * number_literal)) ))))) ;) (expression_statement "uVar4 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2);" (assignment_expression "uVar4 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2)" identifier = (binary_expression "(uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xca2b4 + iVar5 * 2)" ( (binary_expression "unaff_EDI + 0xca2b4 + iVar5 * 2" (binary_expression "unaff_EDI + 0xca2b4" identifier + number_literal) + (binary_expression "iVar5 * 2" identifier * number_literal)) ))))) ;) (while_statement "while ((int)uVar4 < (int)uVar8) {\n    uVar6 = (int)(uVar8 + uVar4) >> 1;\n    uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n    while (uVar3 = uVar6, (ushort)uVar9 < uVar7) {\n      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;\n      uVar6 = (int)(uVar4 + uVar3) >> 1;\n      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n      uVar8 = uVar3;\n    }\n    local_18 = uVar3;\n    uVar4 = uVar3 + 1;\n  }" while (parenthesized_expression "((int)uVar4 < (int)uVar8)" ( (binary_expression "(int)uVar4 < (int)uVar8" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar6 = (int)(uVar8 + uVar4) >> 1;\n    uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n    while (uVar3 = uVar6, (ushort)uVar9 < uVar7) {\n      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;\n      uVar6 = (int)(uVar4 + uVar3) >> 1;\n      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n      uVar8 = uVar3;\n    }\n    local_18 = uVar3;\n    uVar4 = uVar3 + 1;\n  }" { (expression_statement "uVar6 = (int)(uVar8 + uVar4) >> 1;" (assignment_expression "uVar6 = (int)(uVar8 + uVar4) >> 1" identifier = (binary_expression "(int)(uVar8 + uVar4) >> 1" (cast_expression "(int)(uVar8 + uVar4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar8 + uVar4)" ( (binary_expression "uVar8 + uVar4" identifier + identifier) ))) >> number_literal)) ;) (expression_statement "uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);" (assignment_expression "uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2)" identifier = (pointer_expression "*(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2)" * (cast_expression "(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc94d4 + uVar6 * 2)" ( (binary_expression "unaff_EDI + 0xc94d4 + uVar6 * 2" (binary_expression "unaff_EDI + 0xc94d4" identifier + number_literal) + (binary_expression "uVar6 * 2" identifier * number_literal)) ))))) ;) (while_statement "while (uVar3 = uVar6, (ushort)uVar9 < uVar7) {\n      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;\n      uVar6 = (int)(uVar4 + uVar3) >> 1;\n      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n      uVar8 = uVar3;\n    }" while (parenthesized_expression "(uVar3 = uVar6, (ushort)uVar9 < uVar7)" ( (comma_expression "uVar3 = uVar6, (ushort)uVar9 < uVar7" (assignment_expression "uVar3 = uVar6" identifier = identifier) , (binary_expression "(ushort)uVar9 < uVar7" (cast_expression "(ushort)uVar9" ( (type_descriptor "ushort" type_identifier) ) identifier) < identifier)) )) (compound_statement "{\n      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;\n      uVar6 = (int)(uVar4 + uVar3) >> 1;\n      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n      uVar8 = uVar3;\n    }" { (if_statement "if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;" if (parenthesized_expression "((int)uVar3 <= (int)uVar4)" ( (binary_expression "(int)uVar3 <= (int)uVar4" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_000347c1;" goto statement_identifier ;)) (expression_statement "uVar6 = (int)(uVar4 + uVar3) >> 1;" (assignment_expression "uVar6 = (int)(uVar4 + uVar3) >> 1" identifier = (binary_expression "(int)(uVar4 + uVar3) >> 1" (cast_expression "(int)(uVar4 + uVar3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar4 + uVar3)" ( (binary_expression "uVar4 + uVar3" identifier + identifier) ))) >> number_literal)) ;) (expression_statement "uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);" (assignment_expression "uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2)" identifier = (pointer_expression "*(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2)" * (cast_expression "(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc94d4 + uVar6 * 2)" ( (binary_expression "unaff_EDI + 0xc94d4 + uVar6 * 2" (binary_expression "unaff_EDI + 0xc94d4" identifier + number_literal) + (binary_expression "uVar6 * 2" identifier * number_literal)) ))))) ;) (expression_statement "uVar8 = uVar3;" (assignment_expression "uVar8 = uVar3" identifier = identifier) ;) })) (expression_statement "local_18 = uVar3;" (assignment_expression "local_18 = uVar3" identifier = identifier) ;) (expression_statement "uVar4 = uVar3 + 1;" (assignment_expression "uVar4 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) })) (labeled_statement "LAB_000347c1:\n  uVar7 = 0;" statement_identifier : (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;)) (if_statement "if (local_18 != 0xffffffff) {\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);\n    uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);\n    if ((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)) {\n      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;\n    }\n  }" if (parenthesized_expression "(local_18 != 0xffffffff)" ( (binary_expression "local_18 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);\n    uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);\n    if ((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)) {\n      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;\n    }\n  }" { (expression_statement "uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);" (assignment_expression "uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2)" identifier = (pointer_expression "*(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2)" * (cast_expression "(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc94d4 + local_18 * 2)" ( (binary_expression "unaff_EDI + 0xc94d4 + local_18 * 2" (binary_expression "unaff_EDI + 0xc94d4" identifier + number_literal) + (binary_expression "local_18 * 2" identifier * number_literal)) ))))) ;) (expression_statement "uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);" (assignment_expression "uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2)" identifier = (pointer_expression "*(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2)" * (cast_expression "(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xc86f4 + local_18 * 2)" ( (binary_expression "unaff_EDI + 0xc86f4 + local_18 * 2" (binary_expression "unaff_EDI + 0xc86f4" identifier + number_literal) + (binary_expression "local_18 * 2" identifier * number_literal)) ))))) ;) (if_statement "if ((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)) {\n      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;\n    }" if (parenthesized_expression "((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e))" ( (binary_expression "(((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)" (parenthesized_expression "(((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1)" ( (binary_expression "((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1" (parenthesized_expression "((uint)uVar9 & 0xffff)" ( (binary_expression "(uint)uVar9 & 0xffff" (cast_expression "(uint)uVar9" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) < (binary_expression "(uint)(uVar2 >> 5) + (uint)uVar1" (call_expression "(uint)(uVar2 >> 5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 >> 5)" ( (binary_expression "uVar2 >> 5" identifier >> number_literal) ))) + (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier))) )) && (parenthesized_expression "(uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)" ( (comma_expression "uVar7 = uVar2 & 0x1f, uVar7 == 0x1e" (assignment_expression "uVar7 = uVar2 & 0x1f" identifier = (binary_expression "uVar2 & 0x1f" identifier & number_literal)) , (binary_expression "uVar7 == 0x1e" identifier == number_literal)) ))) )) (compound_statement "{\n      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;\n    }" { (expression_statement "uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;" (assignment_expression "uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5" identifier = (binary_expression "(-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5" (parenthesized_expression "(-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4)" ( (binary_expression "-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4" (unary_expression "-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0)" - (call_expression "(ushort)(((ushort)uVar9 - uVar1 & 1) == 0)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(((ushort)uVar9 - uVar1 & 1) == 0)" ( (binary_expression "((ushort)uVar9 - uVar1 & 1) == 0" (parenthesized_expression "((ushort)uVar9 - uVar1 & 1)" ( (binary_expression "(ushort)uVar9 - uVar1 & 1" (binary_expression "(ushort)uVar9 - uVar1" (cast_expression "(ushort)uVar9" ( (type_descriptor "ushort" type_identifier) ) identifier) - identifier) & number_literal) )) == number_literal) )))) & number_literal) )) + number_literal)) ;) })) })) (return_statement "return uVar7;" return identifier ;) })))
(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 ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))))) ;) (while_statement while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))))) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (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 = IDENT) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )) < (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT & LIT)) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT) & LIT) )) == LIT) )))) & LIT) )) + LIT)) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "ushort FUN_00034760(void)\n\n{\n  ushort uVar1;\n  ushort uVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  ushort uVar7;\n  uint uVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  uint local_18;\n  \n  uVar9 = FUN_000196fd();\n  iVar5 = (int)((ulonglong)uVar9 >> 0x20);\n  local_18 = 0xffffffff;\n  uVar8 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2);\n  uVar4 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2);\n  while ((int)uVar4 < (int)uVar8) {\n    uVar6 = (int)(uVar8 + uVar4) >> 1;\n    uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n    while (uVar3 = uVar6, (ushort)uVar9 < uVar7) {\n      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;\n      uVar6 = (int)(uVar4 + uVar3) >> 1;\n      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n      uVar8 = uVar3;\n    }\n    local_18 = uVar3;\n    uVar4 = uVar3 + 1;\n  }\nLAB_000347c1:\n  uVar7 = 0;\n  if (local_18 != 0xffffffff) {\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);\n    uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);\n    if ((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)) {\n      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;\n    }\n  }\n  return uVar7;\n}" (type_identifier "ushort") (function_declarator "FUN_00034760(void)" (identifier "FUN_00034760") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  ushort uVar1;\n  ushort uVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  ushort uVar7;\n  uint uVar8;\n  int unaff_EDI;\n  undefined8 uVar9;\n  uint local_18;\n  \n  uVar9 = FUN_000196fd();\n  iVar5 = (int)((ulonglong)uVar9 >> 0x20);\n  local_18 = 0xffffffff;\n  uVar8 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2);\n  uVar4 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2);\n  while ((int)uVar4 < (int)uVar8) {\n    uVar6 = (int)(uVar8 + uVar4) >> 1;\n    uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n    while (uVar3 = uVar6, (ushort)uVar9 < uVar7) {\n      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;\n      uVar6 = (int)(uVar4 + uVar3) >> 1;\n      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n      uVar8 = uVar3;\n    }\n    local_18 = uVar3;\n    uVar4 = uVar3 + 1;\n  }\nLAB_000347c1:\n  uVar7 = 0;\n  if (local_18 != 0xffffffff) {\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);\n    uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);\n    if ((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)) {\n      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;\n    }\n  }\n  return uVar7;\n}" ({ "{") (declaration "ushort uVar1;" (type_identifier "ushort") (identifier "uVar1") (; ";")) (declaration "ushort uVar2;" (type_identifier "ushort") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "ushort uVar7;" (type_identifier "ushort") (identifier "uVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "undefined8 uVar9;" (type_identifier "undefined8") (identifier "uVar9") (; ";")) (declaration "uint local_18;" (type_identifier "uint") (identifier "local_18") (; ";")) (expression_statement "uVar9 = FUN_000196fd();" (assignment_expression "uVar9 = FUN_000196fd()" (identifier "uVar9") (= "=") (call_expression "FUN_000196fd()" (identifier "FUN_000196fd") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar5 = (int)((ulonglong)uVar9 >> 0x20);" (assignment_expression "iVar5 = (int)((ulonglong)uVar9 >> 0x20)" (identifier "iVar5") (= "=") (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")) () ")")))) (; ";")) (expression_statement "local_18 = 0xffffffff;" (assignment_expression "local_18 = 0xffffffff" (identifier "local_18") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "uVar8 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2);" (assignment_expression "uVar8 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2)" (identifier "uVar8") (= "=") (binary_expression "(uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xca2b6 + iVar5 * 2)" (( "(") (binary_expression "unaff_EDI + 0xca2b6 + iVar5 * 2" (binary_expression "unaff_EDI + 0xca2b6" (identifier "unaff_EDI") (+ "+") (number_literal "0xca2b6")) (+ "+") (binary_expression "iVar5 * 2" (identifier "iVar5") (* "*") (number_literal "2"))) () ")"))))) (; ";")) (expression_statement "uVar4 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2);" (assignment_expression "uVar4 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2)" (identifier "uVar4") (= "=") (binary_expression "(uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xca2b4 + iVar5 * 2)" (( "(") (binary_expression "unaff_EDI + 0xca2b4 + iVar5 * 2" (binary_expression "unaff_EDI + 0xca2b4" (identifier "unaff_EDI") (+ "+") (number_literal "0xca2b4")) (+ "+") (binary_expression "iVar5 * 2" (identifier "iVar5") (* "*") (number_literal "2"))) () ")"))))) (; ";")) (while_statement "while ((int)uVar4 < (int)uVar8) {\n    uVar6 = (int)(uVar8 + uVar4) >> 1;\n    uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n    while (uVar3 = uVar6, (ushort)uVar9 < uVar7) {\n      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;\n      uVar6 = (int)(uVar4 + uVar3) >> 1;\n      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n      uVar8 = uVar3;\n    }\n    local_18 = uVar3;\n    uVar4 = uVar3 + 1;\n  }" (while "while") (parenthesized_expression "((int)uVar4 < (int)uVar8)" (( "(") (binary_expression "(int)uVar4 < (int)uVar8" (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4")) (< "<") (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8"))) () ")")) (compound_statement "{\n    uVar6 = (int)(uVar8 + uVar4) >> 1;\n    uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n    while (uVar3 = uVar6, (ushort)uVar9 < uVar7) {\n      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;\n      uVar6 = (int)(uVar4 + uVar3) >> 1;\n      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n      uVar8 = uVar3;\n    }\n    local_18 = uVar3;\n    uVar4 = uVar3 + 1;\n  }" ({ "{") (expression_statement "uVar6 = (int)(uVar8 + uVar4) >> 1;" (assignment_expression "uVar6 = (int)(uVar8 + uVar4) >> 1" (identifier "uVar6") (= "=") (binary_expression "(int)(uVar8 + uVar4) >> 1" (cast_expression "(int)(uVar8 + uVar4)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar8 + uVar4)" (( "(") (binary_expression "uVar8 + uVar4" (identifier "uVar8") (+ "+") (identifier "uVar4")) () ")"))) (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);" (assignment_expression "uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2)" (identifier "uVar7") (= "=") (pointer_expression "*(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2)" (* "*") (cast_expression "(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xc94d4 + uVar6 * 2)" (( "(") (binary_expression "unaff_EDI + 0xc94d4 + uVar6 * 2" (binary_expression "unaff_EDI + 0xc94d4" (identifier "unaff_EDI") (+ "+") (number_literal "0xc94d4")) (+ "+") (binary_expression "uVar6 * 2" (identifier "uVar6") (* "*") (number_literal "2"))) () ")"))))) (; ";")) (while_statement "while (uVar3 = uVar6, (ushort)uVar9 < uVar7) {\n      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;\n      uVar6 = (int)(uVar4 + uVar3) >> 1;\n      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n      uVar8 = uVar3;\n    }" (while "while") (parenthesized_expression "(uVar3 = uVar6, (ushort)uVar9 < uVar7)" (( "(") (comma_expression "uVar3 = uVar6, (ushort)uVar9 < uVar7" (assignment_expression "uVar3 = uVar6" (identifier "uVar3") (= "=") (identifier "uVar6")) (, ",") (binary_expression "(ushort)uVar9 < uVar7" (cast_expression "(ushort)uVar9" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (identifier "uVar9")) (< "<") (identifier "uVar7"))) () ")")) (compound_statement "{\n      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;\n      uVar6 = (int)(uVar4 + uVar3) >> 1;\n      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);\n      uVar8 = uVar3;\n    }" ({ "{") (if_statement "if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;" (if "if") (parenthesized_expression "((int)uVar3 <= (int)uVar4)" (( "(") (binary_expression "(int)uVar3 <= (int)uVar4" (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3")) (<= "<=") (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4"))) () ")")) (goto_statement "goto LAB_000347c1;" (goto "goto") (statement_identifier "LAB_000347c1") (; ";"))) (expression_statement "uVar6 = (int)(uVar4 + uVar3) >> 1;" (assignment_expression "uVar6 = (int)(uVar4 + uVar3) >> 1" (identifier "uVar6") (= "=") (binary_expression "(int)(uVar4 + uVar3) >> 1" (cast_expression "(int)(uVar4 + uVar3)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar4 + uVar3)" (( "(") (binary_expression "uVar4 + uVar3" (identifier "uVar4") (+ "+") (identifier "uVar3")) () ")"))) (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);" (assignment_expression "uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2)" (identifier "uVar7") (= "=") (pointer_expression "*(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2)" (* "*") (cast_expression "(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xc94d4 + uVar6 * 2)" (( "(") (binary_expression "unaff_EDI + 0xc94d4 + uVar6 * 2" (binary_expression "unaff_EDI + 0xc94d4" (identifier "unaff_EDI") (+ "+") (number_literal "0xc94d4")) (+ "+") (binary_expression "uVar6 * 2" (identifier "uVar6") (* "*") (number_literal "2"))) () ")"))))) (; ";")) (expression_statement "uVar8 = uVar3;" (assignment_expression "uVar8 = uVar3" (identifier "uVar8") (= "=") (identifier "uVar3")) (; ";")) (} "}"))) (expression_statement "local_18 = uVar3;" (assignment_expression "local_18 = uVar3" (identifier "local_18") (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar4 = uVar3 + 1;" (assignment_expression "uVar4 = uVar3 + 1" (identifier "uVar4") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (labeled_statement "LAB_000347c1:\n  uVar7 = 0;" (statement_identifier "LAB_000347c1") (: ":") (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";"))) (if_statement "if (local_18 != 0xffffffff) {\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);\n    uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);\n    if ((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)) {\n      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;\n    }\n  }" (if "if") (parenthesized_expression "(local_18 != 0xffffffff)" (( "(") (binary_expression "local_18 != 0xffffffff" (identifier "local_18") (!= "!=") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);\n    uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);\n    if ((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)) {\n      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;\n    }\n  }" ({ "{") (expression_statement "uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);" (assignment_expression "uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2)" (identifier "uVar1") (= "=") (pointer_expression "*(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2)" (* "*") (cast_expression "(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xc94d4 + local_18 * 2)" (( "(") (binary_expression "unaff_EDI + 0xc94d4 + local_18 * 2" (binary_expression "unaff_EDI + 0xc94d4" (identifier "unaff_EDI") (+ "+") (number_literal "0xc94d4")) (+ "+") (binary_expression "local_18 * 2" (identifier "local_18") (* "*") (number_literal "2"))) () ")"))))) (; ";")) (expression_statement "uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);" (assignment_expression "uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2)" (identifier "uVar2") (= "=") (pointer_expression "*(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2)" (* "*") (cast_expression "(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xc86f4 + local_18 * 2)" (( "(") (binary_expression "unaff_EDI + 0xc86f4 + local_18 * 2" (binary_expression "unaff_EDI + 0xc86f4" (identifier "unaff_EDI") (+ "+") (number_literal "0xc86f4")) (+ "+") (binary_expression "local_18 * 2" (identifier "local_18") (* "*") (number_literal "2"))) () ")"))))) (; ";")) (if_statement "if ((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)) {\n      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;\n    }" (if "if") (parenthesized_expression "((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e))" (( "(") (binary_expression "(((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&\n       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)" (parenthesized_expression "(((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1)" (( "(") (binary_expression "((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1" (parenthesized_expression "((uint)uVar9 & 0xffff)" (( "(") (binary_expression "(uint)uVar9 & 0xffff" (cast_expression "(uint)uVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar9")) (& "&") (number_literal "0xffff")) () ")")) (< "<") (binary_expression "(uint)(uVar2 >> 5) + (uint)uVar1" (call_expression "(uint)(uVar2 >> 5)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar2 >> 5)" (( "(") (binary_expression "uVar2 >> 5" (identifier "uVar2") (>> ">>") (number_literal "5")) () ")"))) (+ "+") (cast_expression "(uint)uVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar1")))) () ")")) (&& "&&") (parenthesized_expression "(uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)" (( "(") (comma_expression "uVar7 = uVar2 & 0x1f, uVar7 == 0x1e" (assignment_expression "uVar7 = uVar2 & 0x1f" (identifier "uVar7") (= "=") (binary_expression "uVar2 & 0x1f" (identifier "uVar2") (& "&") (number_literal "0x1f"))) (, ",") (binary_expression "uVar7 == 0x1e" (identifier "uVar7") (== "==") (number_literal "0x1e"))) () ")"))) () ")")) (compound_statement "{\n      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;\n    }" ({ "{") (expression_statement "uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;" (assignment_expression "uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5" (identifier "uVar7") (= "=") (binary_expression "(-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5" (parenthesized_expression "(-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4)" (( "(") (binary_expression "-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4" (unary_expression "-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0)" (- "-") (call_expression "(ushort)(((ushort)uVar9 - uVar1 & 1) == 0)" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (argument_list "(((ushort)uVar9 - uVar1 & 1) == 0)" (( "(") (binary_expression "((ushort)uVar9 - uVar1 & 1) == 0" (parenthesized_expression "((ushort)uVar9 - uVar1 & 1)" (( "(") (binary_expression "(ushort)uVar9 - uVar1 & 1" (binary_expression "(ushort)uVar9 - uVar1" (cast_expression "(ushort)uVar9" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (identifier "uVar9")) (- "-") (identifier "uVar1")) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")))) (& "&") (number_literal "4")) () ")")) (+ "+") (number_literal "5"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return uVar7;" (return "return") (identifier "uVar7") (; ";")) (} "}")))

int function_1(type_1 iCode)

{
  type_2 var_7;
  type_3 var_8;
  type_3 var_5;
  int var_3;
  type_3 var_6;
  type_2 var_10;
  type_3 var_4;
  int var_2;
  type_4 uVar8;
  type_3 var_9;
  
  uVar8 = var_1();
  var_3 = (int)((type_5)uVar8 >> 0x20);
  var_9 = 0xffffffff;
  var_4 = (type_3)*(type_2 *)(var_2 + 0xca2b6 + var_3 * 2);
  var_5 = (type_3)*(type_2 *)(var_2 + 0xca2b4 + var_3 * 2);
  while ((int)var_5 < (int)var_4) {
    var_6 = (int)(var_4 + var_5) >> 1;
    var_7 = *(type_2 *)(var_2 + 0xc94d4 + var_6 * 2);
    while (var_8 = var_6, (type_2)uVar8 < var_7) {
      if ((int)var_8 <= (int)var_5) goto LAB_000347c1;
      var_6 = (int)(var_5 + var_8) >> 1;
      var_7 = *(type_2 *)(var_2 + 0xc94d4 + var_6 * 2);
      var_4 = var_8;
    }
    var_9 = var_8;
    var_5 = var_8 + 1;
  }
LAB_000347c1:
  var_5 = 0;
  if (var_9 != 0xffffffff) {
    var_7 = *(type_2 *)(var_2 + 0xc94d4 + var_9 * 2);
    var_10 = *(type_2 *)(var_2 + 0xc86f4 + var_9 * 2);
    if ((((type_3)uVar8 & 0xffff) < (type_3)(var_10 >> 5) + (type_3)var_7) &&
       (var_10 = var_10 & 0x1f, var_5 = (type_3)var_10, var_10 == 0x1e)) {
      var_5 = (-(type_3)(((type_2)uVar8 - var_7 & 1) == 0) & 4) + 5;
    }
  }
  return var_5;
}


(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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) 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: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (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)))))))) (while_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (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: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (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: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (identifier)) right: (number_literal))) right: (number_literal))))) right: (number_literal))) right: (number_literal)))))))) (return_statement (identifier)))))

ushort MASKED(void)

{
  ushort uVar1;
  ushort uVar2;
  uint uVar3;
  uint uVar4;
  int iVar5;
  uint uVar6;
  ushort uVar7;
  uint uVar8;
  int unaff_EDI;
  undefined8 uVar9;
  uint local_18;
  
  uVar9 = FUN_000196fd();
  iVar5 = (int)((ulonglong)uVar9 >> 0x20);
  local_18 = 0xffffffff;
  uVar8 = (uint)*(ushort *)(unaff_EDI + 0xca2b6 + iVar5 * 2);
  uVar4 = (uint)*(ushort *)(unaff_EDI + 0xca2b4 + iVar5 * 2);
  while ((int)uVar4 < (int)uVar8) {
    uVar6 = (int)(uVar8 + uVar4) >> 1;
    uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);
    while (uVar3 = uVar6, (ushort)uVar9 < uVar7) {
      if ((int)uVar3 <= (int)uVar4) goto LAB_000347c1;
      uVar6 = (int)(uVar4 + uVar3) >> 1;
      uVar7 = *(ushort *)(unaff_EDI + 0xc94d4 + uVar6 * 2);
      uVar8 = uVar3;
    }
    local_18 = uVar3;
    uVar4 = uVar3 + 1;
  }
LAB_000347c1:
  uVar7 = 0;
  if (local_18 != 0xffffffff) {
    uVar1 = *(ushort *)(unaff_EDI + 0xc94d4 + local_18 * 2);
    uVar2 = *(ushort *)(unaff_EDI + 0xc86f4 + local_18 * 2);
    if ((((uint)uVar9 & 0xffff) < (uint)(uVar2 >> 5) + (uint)uVar1) &&
       (uVar7 = uVar2 & 0x1f, uVar7 == 0x1e)) {
      uVar7 = (-(ushort)(((ushort)uVar9 - uVar1 & 1) == 0) & 4) + 5;
    }
  }
  return uVar7;
}

