
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int mk_wcswidth(uint *pwcs,size_t n)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int local_1c;
  int local_18;
  
  uVar1 = *pwcs;
  if ((uVar1 == 0) || (n == 0)) {
    local_18 = 0;
  }
  else {
    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {
      local_1c = n - 1;
      local_18 = 0;
      do {
        if ((char *)(uVar1 - 0x300) < "me") {
          iVar4 = 0;
          iVar2 = 0x8d;
          do {
            iVar3 = iVar2 + iVar4 >> 1;
            if (*(uint *)(combining_5243 + iVar3 * 8 + 4) < uVar1) {
              iVar4 = iVar3 + 1;
            }
            else {
              if (*(uint *)(combining_5243 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;
              iVar2 = iVar3 + -1;
            }
          } while (iVar4 <= iVar2);
        }
        if (uVar1 - 0x1100 < 0x3eefe) {
          iVar4 = 0;
          iVar2 = 0x69;
          do {
            iVar3 = iVar2 + iVar4 >> 1;
            if (*(uint *)(wide_5244 + iVar3 * 8 + 4) < uVar1) {
              iVar4 = iVar3 + 1;
            }
            else {
              if (*(uint *)(wide_5244 + iVar3 * 8) <= uVar1) {
                local_18 = local_18 + 2;
                goto LAB_000c35bb;
              }
              iVar2 = iVar3 + -1;
            }
          } while (iVar4 <= iVar2);
        }
        local_18 = local_18 + 1;
LAB_000c35bb:
        pwcs = pwcs + 1;
        uVar1 = *pwcs;
        if (uVar1 == 0) {
          return local_18;
        }
        local_1c = local_1c + -1;
        if (local_1c == -1) {
          return local_18;
        }
      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));
    }
    local_18 = -1;
  }
  return local_18;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int FUN_000c3550(uint *param_1,int param_2)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int local_1c;
  int local_18;
  
  uVar1 = *param_1;
  if ((uVar1 == 0) || (param_2 == 0)) {
    local_18 = 0;
  }
  else {
    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {
      local_1c = param_2 + -1;
      local_18 = 0;
      do {
        if ((char *)(uVar1 - 0x300) < "me") {
          iVar4 = 0;
          iVar2 = 0x8d;
          do {
            iVar3 = iVar2 + iVar4 >> 1;
            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {
              iVar4 = iVar3 + 1;
            }
            else {
              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;
              iVar2 = iVar3 + -1;
            }
          } while (iVar4 <= iVar2);
        }
        if (uVar1 - 0x1100 < 0x3eefe) {
          iVar4 = 0;
          iVar2 = 0x69;
          do {
            iVar3 = iVar2 + iVar4 >> 1;
            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {
              iVar4 = iVar3 + 1;
            }
            else {
              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {
                local_18 = local_18 + 2;
                goto LAB_000c35bb;
              }
              iVar2 = iVar3 + -1;
            }
          } while (iVar4 <= iVar2);
        }
        local_18 = local_18 + 1;
LAB_000c35bb:
        param_1 = param_1 + 1;
        uVar1 = *param_1;
        if (uVar1 == 0) {
          return local_18;
        }
        local_1c = local_1c + -1;
        if (local_1c == -1) {
          return local_18;
        }
      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));
    }
    local_18 = -1;
  }
  return local_18;
}


CALL 0x0001cb7e
ADD EAX,0x771fb
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
MOV EDX,dword ptr [ESP + 0x24]
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JZ 0x000c368a
TEST EDX,EDX
JZ 0x000c368a
LEA ECX,[EAX + -0x7f]
CMP ECX,0x20
JBE 0x000c366a
CMP EAX,0x1f
JBE 0x000c366a
LEA EBX,[EDX + -0x1]
MOV dword ptr [ESP + 0x4],0x0
MOV dword ptr [ESP],EBX
JMP 0x000c35ed
LEA EDX,[EAX + 0xffffef00]
CMP EDX,0x3eefd
JBE 0x000c3630
ADD dword ptr [ESP + 0x4],0x1
ADD ESI,0x4
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JZ 0x000c3672
SUB dword ptr [ESP],0x1
MOV EDI,dword ptr [ESP]
CMP EDI,-0x1
JZ 0x000c3672
LEA EDX,[EAX + -0x7f]
CMP EDX,0x20
JBE 0x000c366a
CMP EAX,0x1f
JBE 0x000c366a
LEA EDX,[EAX + 0xfffffd00]
CMP EDX,0xdfeef
JA 0x000c35a8
MOV EDI,dword ptr [ESP + 0x8]
XOR EBX,EBX
MOV ECX,0x8d
LEA EBP,[EDI + 0xfffba690]
JMP 0x000c3617
LEA EBX,[EDX + 0x1]
CMP EBX,ECX
JG 0x000c35a8
LEA EDX,[ECX + EBX*0x1]
SAR EDX,0x1
LEA EDI,[EBP + EDX*0x8]
CMP dword ptr [EDI + 0x4],EAX
JC 0x000c3610
CMP dword ptr [EDI],EAX
JBE 0x000c35bb
LEA ECX,[EDX + -0x1]
JMP 0x000c3613
MOV EDI,dword ptr [ESP + 0x8]
XOR EBX,EBX
MOV ECX,0x69
LEA EBP,[EDI + 0xfffba330]
JMP 0x000c3653
LEA EBX,[EDX + 0x1]
CMP EBX,ECX
JG 0x000c35b6
LEA EDX,[ECX + EBX*0x1]
SAR EDX,0x1
LEA EDI,[EBP + EDX*0x8]
CMP dword ptr [EDI + 0x4],EAX
JC 0x000c3648
CMP dword ptr [EDI],EAX
JBE 0x000c3680
LEA ECX,[EDX + -0x1]
JMP 0x000c364b
MOV dword ptr [ESP + 0x4],0xffffffff
MOV EAX,dword ptr [ESP + 0x4]
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD dword ptr [ESP + 0x4],0x2
JMP 0x000c35bb
MOV dword ptr [ESP + 0x4],0x0
JMP 0x000c3672
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint FUN_000c3550(uint *param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int local_1c;\n  int local_18;\n  \n  uVar1 = *param_1;\n  if ((uVar1 == 0) || (param_2 == 0)) {\n    local_18 = 0;\n  }\n  else {\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }\n  return local_18;\n}\n\n" comment (function_definition "int FUN_000c3550(uint *param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int local_1c;\n  int local_18;\n  \n  uVar1 = *param_1;\n  if ((uVar1 == 0) || (param_2 == 0)) {\n    local_18 = 0;\n  }\n  else {\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }\n  return local_18;\n}" primitive_type (function_declarator "FUN_000c3550(uint *param_1,int param_2)" identifier (parameter_list "(uint *param_1,int param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int local_1c;\n  int local_18;\n  \n  uVar1 = *param_1;\n  if ((uVar1 == 0) || (param_2 == 0)) {\n    local_18 = 0;\n  }\n  else {\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }\n  return local_18;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (declaration "int local_18;" primitive_type identifier ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((uVar1 == 0) || (param_2 == 0)) {\n    local_18 = 0;\n  }\n  else {\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }" if (parenthesized_expression "((uVar1 == 0) || (param_2 == 0))" ( (binary_expression "(uVar1 == 0) || (param_2 == 0)" (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) ))) )) (compound_statement "{\n    local_18 = 0;\n  }" { (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }" else (compound_statement "{\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }" { (if_statement "if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }" if (parenthesized_expression "((0x20 < uVar1 - 0x7f) && (0x1f < uVar1))" ( (binary_expression "(0x20 < uVar1 - 0x7f) && (0x1f < uVar1)" (parenthesized_expression "(0x20 < uVar1 - 0x7f)" ( (binary_expression "0x20 < uVar1 - 0x7f" number_literal < (binary_expression "uVar1 - 0x7f" identifier - number_literal)) )) && (parenthesized_expression "(0x1f < uVar1)" ( (binary_expression "0x1f < uVar1" number_literal < identifier) ))) )) (compound_statement "{\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }" { (expression_statement "local_1c = param_2 + -1;" (assignment_expression "local_1c = param_2 + -1" identifier = (binary_expression "param_2 + -1" identifier + number_literal)) ;) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) (do_statement "do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));" do (compound_statement "{\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      }" { (if_statement "if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }" if (parenthesized_expression "((char *)(uVar1 - 0x300) < "me")" ( (binary_expression "(char *)(uVar1 - 0x300) < "me"" (cast_expression "(char *)(uVar1 - 0x300)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar1 - 0x300)" ( (binary_expression "uVar1 - 0x300" identifier - number_literal) ))) < (string_literal ""me"" " string_content ")) )) (compound_statement "{\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = 0x8d;" (assignment_expression "iVar2 = 0x8d" identifier = number_literal) ;) (do_statement "do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);" do (compound_statement "{\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          }" { (expression_statement "iVar3 = iVar2 + iVar4 >> 1;" (assignment_expression "iVar3 = iVar2 + iVar4 >> 1" identifier = (binary_expression "iVar2 + iVar4 >> 1" (binary_expression "iVar2 + iVar4" identifier + identifier) >> number_literal)) ;) (if_statement "if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }" if (parenthesized_expression "(*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1)" ( (binary_expression "*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1" (pointer_expression "*(uint *)(&UNK_000f4de4 + iVar3 * 8)" * (cast_expression "(uint *)(&UNK_000f4de4 + iVar3 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&UNK_000f4de4 + iVar3 * 8)" ( (binary_expression "&UNK_000f4de4 + iVar3 * 8" (pointer_expression "&UNK_000f4de4" & identifier) + (binary_expression "iVar3 * 8" identifier * number_literal)) )))) < identifier) )) (compound_statement "{\n              iVar4 = iVar3 + 1;\n            }" { (expression_statement "iVar4 = iVar3 + 1;" (assignment_expression "iVar4 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }" else (compound_statement "{\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }" { (if_statement "if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;" if (parenthesized_expression "(*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1)" ( (binary_expression "*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1" (pointer_expression "*(uint *)(&DAT_000f4de0 + iVar3 * 8)" * (cast_expression "(uint *)(&DAT_000f4de0 + iVar3 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000f4de0 + iVar3 * 8)" ( (binary_expression "&DAT_000f4de0 + iVar3 * 8" (pointer_expression "&DAT_000f4de0" & identifier) + (binary_expression "iVar3 * 8" identifier * number_literal)) )))) <= identifier) )) (goto_statement "goto LAB_000c35bb;" goto statement_identifier ;)) (expression_statement "iVar2 = iVar3 + -1;" (assignment_expression "iVar2 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }))) }) while (parenthesized_expression "(iVar4 <= iVar2)" ( (binary_expression "iVar4 <= iVar2" identifier <= identifier) )) ;) })) (if_statement "if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }" if (parenthesized_expression "(uVar1 - 0x1100 < 0x3eefe)" ( (binary_expression "uVar1 - 0x1100 < 0x3eefe" (binary_expression "uVar1 - 0x1100" identifier - number_literal) < number_literal) )) (compound_statement "{\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = 0x69;" (assignment_expression "iVar2 = 0x69" identifier = number_literal) ;) (do_statement "do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);" do (compound_statement "{\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          }" { (expression_statement "iVar3 = iVar2 + iVar4 >> 1;" (assignment_expression "iVar3 = iVar2 + iVar4 >> 1" identifier = (binary_expression "iVar2 + iVar4 >> 1" (binary_expression "iVar2 + iVar4" identifier + identifier) >> number_literal)) ;) (if_statement "if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }" if (parenthesized_expression "(*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1)" ( (binary_expression "*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1" (pointer_expression "*(uint *)(&UNK_000f4a84 + iVar3 * 8)" * (cast_expression "(uint *)(&UNK_000f4a84 + iVar3 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&UNK_000f4a84 + iVar3 * 8)" ( (binary_expression "&UNK_000f4a84 + iVar3 * 8" (pointer_expression "&UNK_000f4a84" & identifier) + (binary_expression "iVar3 * 8" identifier * number_literal)) )))) < identifier) )) (compound_statement "{\n              iVar4 = iVar3 + 1;\n            }" { (expression_statement "iVar4 = iVar3 + 1;" (assignment_expression "iVar4 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }" else (compound_statement "{\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }" { (if_statement "if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }" if (parenthesized_expression "(*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1)" ( (binary_expression "*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1" (pointer_expression "*(uint *)(&DAT_000f4a80 + iVar3 * 8)" * (cast_expression "(uint *)(&DAT_000f4a80 + iVar3 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000f4a80 + iVar3 * 8)" ( (binary_expression "&DAT_000f4a80 + iVar3 * 8" (pointer_expression "&DAT_000f4a80" & identifier) + (binary_expression "iVar3 * 8" identifier * number_literal)) )))) <= identifier) )) (compound_statement "{\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }" { (expression_statement "local_18 = local_18 + 2;" (assignment_expression "local_18 = local_18 + 2" identifier = (binary_expression "local_18 + 2" identifier + number_literal)) ;) (goto_statement "goto LAB_000c35bb;" goto statement_identifier ;) })) (expression_statement "iVar2 = iVar3 + -1;" (assignment_expression "iVar2 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }))) }) while (parenthesized_expression "(iVar4 <= iVar2)" ( (binary_expression "iVar4 <= iVar2" identifier <= identifier) )) ;) })) (expression_statement "local_18 = local_18 + 1;" (assignment_expression "local_18 = local_18 + 1" identifier = (binary_expression "local_18 + 1" identifier + number_literal)) ;) (labeled_statement "LAB_000c35bb:\n        param_1 = param_1 + 1;" statement_identifier : (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;)) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (uVar1 == 0) {\n          return local_18;\n        }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          return local_18;\n        }" { (return_statement "return local_18;" return identifier ;) })) (expression_statement "local_1c = local_1c + -1;" (assignment_expression "local_1c = local_1c + -1" identifier = (binary_expression "local_1c + -1" identifier + number_literal)) ;) (if_statement "if (local_1c == -1) {\n          return local_18;\n        }" if (parenthesized_expression "(local_1c == -1)" ( (binary_expression "local_1c == -1" identifier == number_literal) )) (compound_statement "{\n          return local_18;\n        }" { (return_statement "return local_18;" return identifier ;) })) }) while (parenthesized_expression "((0x20 < uVar1 - 0x7f) && (0x1f < uVar1))" ( (binary_expression "(0x20 < uVar1 - 0x7f) && (0x1f < uVar1)" (parenthesized_expression "(0x20 < uVar1 - 0x7f)" ( (binary_expression "0x20 < uVar1 - 0x7f" number_literal < (binary_expression "uVar1 - 0x7f" identifier - number_literal)) )) && (parenthesized_expression "(0x1f < uVar1)" ( (binary_expression "0x1f < uVar1" number_literal < identifier) ))) )) ;) })) (expression_statement "local_18 = -1;" (assignment_expression "local_18 = -1" identifier = number_literal) ;) }))) (return_statement "return local_18;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint mk_wcswidth(uint *pwcs,size_t n)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int local_1c;\n  int local_18;\n  \n  uVar1 = *pwcs;\n  if ((uVar1 == 0) || (n == 0)) {\n    local_18 = 0;\n  }\n  else {\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = n - 1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(combining_5243 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(combining_5243 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(wide_5244 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(wide_5244 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        pwcs = pwcs + 1;\n        uVar1 = *pwcs;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }\n  return local_18;\n}\n\n" comment (function_definition "int mk_wcswidth(uint *pwcs,size_t n)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int local_1c;\n  int local_18;\n  \n  uVar1 = *pwcs;\n  if ((uVar1 == 0) || (n == 0)) {\n    local_18 = 0;\n  }\n  else {\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = n - 1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(combining_5243 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(combining_5243 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(wide_5244 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(wide_5244 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        pwcs = pwcs + 1;\n        uVar1 = *pwcs;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }\n  return local_18;\n}" primitive_type (function_declarator "mk_wcswidth(uint *pwcs,size_t n)" identifier (parameter_list "(uint *pwcs,size_t n)" ( (parameter_declaration "uint *pwcs" type_identifier (pointer_declarator "*pwcs" * identifier)) , (parameter_declaration "size_t n" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int local_1c;\n  int local_18;\n  \n  uVar1 = *pwcs;\n  if ((uVar1 == 0) || (n == 0)) {\n    local_18 = 0;\n  }\n  else {\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = n - 1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(combining_5243 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(combining_5243 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(wide_5244 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(wide_5244 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        pwcs = pwcs + 1;\n        uVar1 = *pwcs;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }\n  return local_18;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (declaration "int local_18;" primitive_type identifier ;) (expression_statement "uVar1 = *pwcs;" (assignment_expression "uVar1 = *pwcs" identifier = (pointer_expression "*pwcs" * identifier)) ;) (if_statement "if ((uVar1 == 0) || (n == 0)) {\n    local_18 = 0;\n  }\n  else {\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = n - 1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(combining_5243 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(combining_5243 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(wide_5244 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(wide_5244 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        pwcs = pwcs + 1;\n        uVar1 = *pwcs;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }" if (parenthesized_expression "((uVar1 == 0) || (n == 0))" ( (binary_expression "(uVar1 == 0) || (n == 0)" (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(n == 0)" ( (binary_expression "n == 0" identifier == number_literal) ))) )) (compound_statement "{\n    local_18 = 0;\n  }" { (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = n - 1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(combining_5243 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(combining_5243 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(wide_5244 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(wide_5244 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        pwcs = pwcs + 1;\n        uVar1 = *pwcs;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }" else (compound_statement "{\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = n - 1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(combining_5243 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(combining_5243 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(wide_5244 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(wide_5244 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        pwcs = pwcs + 1;\n        uVar1 = *pwcs;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }" { (if_statement "if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = n - 1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(combining_5243 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(combining_5243 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(wide_5244 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(wide_5244 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        pwcs = pwcs + 1;\n        uVar1 = *pwcs;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }" if (parenthesized_expression "((0x20 < uVar1 - 0x7f) && (0x1f < uVar1))" ( (binary_expression "(0x20 < uVar1 - 0x7f) && (0x1f < uVar1)" (parenthesized_expression "(0x20 < uVar1 - 0x7f)" ( (binary_expression "0x20 < uVar1 - 0x7f" number_literal < (binary_expression "uVar1 - 0x7f" identifier - number_literal)) )) && (parenthesized_expression "(0x1f < uVar1)" ( (binary_expression "0x1f < uVar1" number_literal < identifier) ))) )) (compound_statement "{\n      local_1c = n - 1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(combining_5243 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(combining_5243 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(wide_5244 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(wide_5244 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        pwcs = pwcs + 1;\n        uVar1 = *pwcs;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }" { (expression_statement "local_1c = n - 1;" (assignment_expression "local_1c = n - 1" identifier = (binary_expression "n - 1" identifier - number_literal)) ;) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) (do_statement "do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(combining_5243 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(combining_5243 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(wide_5244 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(wide_5244 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        pwcs = pwcs + 1;\n        uVar1 = *pwcs;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));" do (compound_statement "{\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(combining_5243 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(combining_5243 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(wide_5244 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(wide_5244 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        pwcs = pwcs + 1;\n        uVar1 = *pwcs;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      }" { (if_statement "if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(combining_5243 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(combining_5243 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }" if (parenthesized_expression "((char *)(uVar1 - 0x300) < "me")" ( (binary_expression "(char *)(uVar1 - 0x300) < "me"" (cast_expression "(char *)(uVar1 - 0x300)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar1 - 0x300)" ( (binary_expression "uVar1 - 0x300" identifier - number_literal) ))) < (string_literal ""me"" " string_content ")) )) (compound_statement "{\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(combining_5243 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(combining_5243 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = 0x8d;" (assignment_expression "iVar2 = 0x8d" identifier = number_literal) ;) (do_statement "do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(combining_5243 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(combining_5243 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);" do (compound_statement "{\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(combining_5243 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(combining_5243 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          }" { (expression_statement "iVar3 = iVar2 + iVar4 >> 1;" (assignment_expression "iVar3 = iVar2 + iVar4 >> 1" identifier = (binary_expression "iVar2 + iVar4 >> 1" (binary_expression "iVar2 + iVar4" identifier + identifier) >> number_literal)) ;) (if_statement "if (*(uint *)(combining_5243 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(combining_5243 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }" if (parenthesized_expression "(*(uint *)(combining_5243 + iVar3 * 8 + 4) < uVar1)" ( (binary_expression "*(uint *)(combining_5243 + iVar3 * 8 + 4) < uVar1" (pointer_expression "*(uint *)(combining_5243 + iVar3 * 8 + 4)" * (cast_expression "(uint *)(combining_5243 + iVar3 * 8 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(combining_5243 + iVar3 * 8 + 4)" ( (binary_expression "combining_5243 + iVar3 * 8 + 4" (binary_expression "combining_5243 + iVar3 * 8" identifier + (binary_expression "iVar3 * 8" identifier * number_literal)) + number_literal) )))) < identifier) )) (compound_statement "{\n              iVar4 = iVar3 + 1;\n            }" { (expression_statement "iVar4 = iVar3 + 1;" (assignment_expression "iVar4 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n              if (*(uint *)(combining_5243 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }" else (compound_statement "{\n              if (*(uint *)(combining_5243 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }" { (if_statement "if (*(uint *)(combining_5243 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;" if (parenthesized_expression "(*(uint *)(combining_5243 + iVar3 * 8) <= uVar1)" ( (binary_expression "*(uint *)(combining_5243 + iVar3 * 8) <= uVar1" (pointer_expression "*(uint *)(combining_5243 + iVar3 * 8)" * (cast_expression "(uint *)(combining_5243 + iVar3 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(combining_5243 + iVar3 * 8)" ( (binary_expression "combining_5243 + iVar3 * 8" identifier + (binary_expression "iVar3 * 8" identifier * number_literal)) )))) <= identifier) )) (goto_statement "goto LAB_000c35bb;" goto statement_identifier ;)) (expression_statement "iVar2 = iVar3 + -1;" (assignment_expression "iVar2 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }))) }) while (parenthesized_expression "(iVar4 <= iVar2)" ( (binary_expression "iVar4 <= iVar2" identifier <= identifier) )) ;) })) (if_statement "if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(wide_5244 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(wide_5244 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }" if (parenthesized_expression "(uVar1 - 0x1100 < 0x3eefe)" ( (binary_expression "uVar1 - 0x1100 < 0x3eefe" (binary_expression "uVar1 - 0x1100" identifier - number_literal) < number_literal) )) (compound_statement "{\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(wide_5244 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(wide_5244 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = 0x69;" (assignment_expression "iVar2 = 0x69" identifier = number_literal) ;) (do_statement "do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(wide_5244 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(wide_5244 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);" do (compound_statement "{\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(wide_5244 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(wide_5244 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          }" { (expression_statement "iVar3 = iVar2 + iVar4 >> 1;" (assignment_expression "iVar3 = iVar2 + iVar4 >> 1" identifier = (binary_expression "iVar2 + iVar4 >> 1" (binary_expression "iVar2 + iVar4" identifier + identifier) >> number_literal)) ;) (if_statement "if (*(uint *)(wide_5244 + iVar3 * 8 + 4) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(wide_5244 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }" if (parenthesized_expression "(*(uint *)(wide_5244 + iVar3 * 8 + 4) < uVar1)" ( (binary_expression "*(uint *)(wide_5244 + iVar3 * 8 + 4) < uVar1" (pointer_expression "*(uint *)(wide_5244 + iVar3 * 8 + 4)" * (cast_expression "(uint *)(wide_5244 + iVar3 * 8 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(wide_5244 + iVar3 * 8 + 4)" ( (binary_expression "wide_5244 + iVar3 * 8 + 4" (binary_expression "wide_5244 + iVar3 * 8" identifier + (binary_expression "iVar3 * 8" identifier * number_literal)) + number_literal) )))) < identifier) )) (compound_statement "{\n              iVar4 = iVar3 + 1;\n            }" { (expression_statement "iVar4 = iVar3 + 1;" (assignment_expression "iVar4 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n              if (*(uint *)(wide_5244 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }" else (compound_statement "{\n              if (*(uint *)(wide_5244 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }" { (if_statement "if (*(uint *)(wide_5244 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }" if (parenthesized_expression "(*(uint *)(wide_5244 + iVar3 * 8) <= uVar1)" ( (binary_expression "*(uint *)(wide_5244 + iVar3 * 8) <= uVar1" (pointer_expression "*(uint *)(wide_5244 + iVar3 * 8)" * (cast_expression "(uint *)(wide_5244 + iVar3 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(wide_5244 + iVar3 * 8)" ( (binary_expression "wide_5244 + iVar3 * 8" identifier + (binary_expression "iVar3 * 8" identifier * number_literal)) )))) <= identifier) )) (compound_statement "{\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }" { (expression_statement "local_18 = local_18 + 2;" (assignment_expression "local_18 = local_18 + 2" identifier = (binary_expression "local_18 + 2" identifier + number_literal)) ;) (goto_statement "goto LAB_000c35bb;" goto statement_identifier ;) })) (expression_statement "iVar2 = iVar3 + -1;" (assignment_expression "iVar2 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }))) }) while (parenthesized_expression "(iVar4 <= iVar2)" ( (binary_expression "iVar4 <= iVar2" identifier <= identifier) )) ;) })) (expression_statement "local_18 = local_18 + 1;" (assignment_expression "local_18 = local_18 + 1" identifier = (binary_expression "local_18 + 1" identifier + number_literal)) ;) (labeled_statement "LAB_000c35bb:\n        pwcs = pwcs + 1;" statement_identifier : (expression_statement "pwcs = pwcs + 1;" (assignment_expression "pwcs = pwcs + 1" identifier = (binary_expression "pwcs + 1" identifier + number_literal)) ;)) (expression_statement "uVar1 = *pwcs;" (assignment_expression "uVar1 = *pwcs" identifier = (pointer_expression "*pwcs" * identifier)) ;) (if_statement "if (uVar1 == 0) {\n          return local_18;\n        }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          return local_18;\n        }" { (return_statement "return local_18;" return identifier ;) })) (expression_statement "local_1c = local_1c + -1;" (assignment_expression "local_1c = local_1c + -1" identifier = (binary_expression "local_1c + -1" identifier + number_literal)) ;) (if_statement "if (local_1c == -1) {\n          return local_18;\n        }" if (parenthesized_expression "(local_1c == -1)" ( (binary_expression "local_1c == -1" identifier == number_literal) )) (compound_statement "{\n          return local_18;\n        }" { (return_statement "return local_18;" return identifier ;) })) }) while (parenthesized_expression "((0x20 < uVar1 - 0x7f) && (0x1f < uVar1))" ( (binary_expression "(0x20 < uVar1 - 0x7f) && (0x1f < uVar1)" (parenthesized_expression "(0x20 < uVar1 - 0x7f)" ( (binary_expression "0x20 < uVar1 - 0x7f" number_literal < (binary_expression "uVar1 - 0x7f" identifier - number_literal)) )) && (parenthesized_expression "(0x1f < uVar1)" ( (binary_expression "0x1f < uVar1" number_literal < identifier) ))) )) ;) })) (expression_statement "local_18 = -1;" (assignment_expression "local_18 = -1" identifier = number_literal) ;) }))) (return_statement "return local_18;" return identifier ;) })))
(translation_unit "int FUN_000c3550(uint *param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int local_1c;\n  int local_18;\n  \n  uVar1 = *param_1;\n  if ((uVar1 == 0) || (param_2 == 0)) {\n    local_18 = 0;\n  }\n  else {\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }\n  return local_18;\n}\n\n" (function_definition "int FUN_000c3550(uint *param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int local_1c;\n  int local_18;\n  \n  uVar1 = *param_1;\n  if ((uVar1 == 0) || (param_2 == 0)) {\n    local_18 = 0;\n  }\n  else {\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }\n  return local_18;\n}" primitive_type (function_declarator "FUN_000c3550(uint *param_1,int param_2)" identifier (parameter_list "(uint *param_1,int param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int local_1c;\n  int local_18;\n  \n  uVar1 = *param_1;\n  if ((uVar1 == 0) || (param_2 == 0)) {\n    local_18 = 0;\n  }\n  else {\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }\n  return local_18;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (declaration "int local_18;" primitive_type identifier ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((uVar1 == 0) || (param_2 == 0)) {\n    local_18 = 0;\n  }\n  else {\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }" if (parenthesized_expression "((uVar1 == 0) || (param_2 == 0))" ( (binary_expression "(uVar1 == 0) || (param_2 == 0)" (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) ))) )) (compound_statement "{\n    local_18 = 0;\n  }" { (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }" else (compound_statement "{\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }" { (if_statement "if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }" if (parenthesized_expression "((0x20 < uVar1 - 0x7f) && (0x1f < uVar1))" ( (binary_expression "(0x20 < uVar1 - 0x7f) && (0x1f < uVar1)" (parenthesized_expression "(0x20 < uVar1 - 0x7f)" ( (binary_expression "0x20 < uVar1 - 0x7f" number_literal < (binary_expression "uVar1 - 0x7f" identifier - number_literal)) )) && (parenthesized_expression "(0x1f < uVar1)" ( (binary_expression "0x1f < uVar1" number_literal < identifier) ))) )) (compound_statement "{\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }" { (expression_statement "local_1c = param_2 + -1;" (assignment_expression "local_1c = param_2 + -1" identifier = (binary_expression "param_2 + -1" identifier + number_literal)) ;) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) (do_statement "do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));" do (compound_statement "{\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      }" { (if_statement "if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }" if (parenthesized_expression "((char *)(uVar1 - 0x300) < "me")" ( (binary_expression "(char *)(uVar1 - 0x300) < "me"" (cast_expression "(char *)(uVar1 - 0x300)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar1 - 0x300)" ( (binary_expression "uVar1 - 0x300" identifier - number_literal) ))) < (string_literal ""me"" " string_content ")) )) (compound_statement "{\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = 0x8d;" (assignment_expression "iVar2 = 0x8d" identifier = number_literal) ;) (do_statement "do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);" do (compound_statement "{\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          }" { (expression_statement "iVar3 = iVar2 + iVar4 >> 1;" (assignment_expression "iVar3 = iVar2 + iVar4 >> 1" identifier = (binary_expression "iVar2 + iVar4 >> 1" (binary_expression "iVar2 + iVar4" identifier + identifier) >> number_literal)) ;) (if_statement "if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }" if (parenthesized_expression "(*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1)" ( (binary_expression "*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1" (pointer_expression "*(uint *)(&UNK_000f4de4 + iVar3 * 8)" * (cast_expression "(uint *)(&UNK_000f4de4 + iVar3 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&UNK_000f4de4 + iVar3 * 8)" ( (binary_expression "&UNK_000f4de4 + iVar3 * 8" (pointer_expression "&UNK_000f4de4" & identifier) + (binary_expression "iVar3 * 8" identifier * number_literal)) )))) < identifier) )) (compound_statement "{\n              iVar4 = iVar3 + 1;\n            }" { (expression_statement "iVar4 = iVar3 + 1;" (assignment_expression "iVar4 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }" else (compound_statement "{\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }" { (if_statement "if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;" if (parenthesized_expression "(*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1)" ( (binary_expression "*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1" (pointer_expression "*(uint *)(&DAT_000f4de0 + iVar3 * 8)" * (cast_expression "(uint *)(&DAT_000f4de0 + iVar3 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000f4de0 + iVar3 * 8)" ( (binary_expression "&DAT_000f4de0 + iVar3 * 8" (pointer_expression "&DAT_000f4de0" & identifier) + (binary_expression "iVar3 * 8" identifier * number_literal)) )))) <= identifier) )) (goto_statement "goto LAB_000c35bb;" goto statement_identifier ;)) (expression_statement "iVar2 = iVar3 + -1;" (assignment_expression "iVar2 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }))) }) while (parenthesized_expression "(iVar4 <= iVar2)" ( (binary_expression "iVar4 <= iVar2" identifier <= identifier) )) ;) })) (if_statement "if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }" if (parenthesized_expression "(uVar1 - 0x1100 < 0x3eefe)" ( (binary_expression "uVar1 - 0x1100 < 0x3eefe" (binary_expression "uVar1 - 0x1100" identifier - number_literal) < number_literal) )) (compound_statement "{\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = 0x69;" (assignment_expression "iVar2 = 0x69" identifier = number_literal) ;) (do_statement "do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);" do (compound_statement "{\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          }" { (expression_statement "iVar3 = iVar2 + iVar4 >> 1;" (assignment_expression "iVar3 = iVar2 + iVar4 >> 1" identifier = (binary_expression "iVar2 + iVar4 >> 1" (binary_expression "iVar2 + iVar4" identifier + identifier) >> number_literal)) ;) (if_statement "if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }" if (parenthesized_expression "(*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1)" ( (binary_expression "*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1" (pointer_expression "*(uint *)(&UNK_000f4a84 + iVar3 * 8)" * (cast_expression "(uint *)(&UNK_000f4a84 + iVar3 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&UNK_000f4a84 + iVar3 * 8)" ( (binary_expression "&UNK_000f4a84 + iVar3 * 8" (pointer_expression "&UNK_000f4a84" & identifier) + (binary_expression "iVar3 * 8" identifier * number_literal)) )))) < identifier) )) (compound_statement "{\n              iVar4 = iVar3 + 1;\n            }" { (expression_statement "iVar4 = iVar3 + 1;" (assignment_expression "iVar4 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }" else (compound_statement "{\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }" { (if_statement "if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }" if (parenthesized_expression "(*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1)" ( (binary_expression "*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1" (pointer_expression "*(uint *)(&DAT_000f4a80 + iVar3 * 8)" * (cast_expression "(uint *)(&DAT_000f4a80 + iVar3 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000f4a80 + iVar3 * 8)" ( (binary_expression "&DAT_000f4a80 + iVar3 * 8" (pointer_expression "&DAT_000f4a80" & identifier) + (binary_expression "iVar3 * 8" identifier * number_literal)) )))) <= identifier) )) (compound_statement "{\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }" { (expression_statement "local_18 = local_18 + 2;" (assignment_expression "local_18 = local_18 + 2" identifier = (binary_expression "local_18 + 2" identifier + number_literal)) ;) (goto_statement "goto LAB_000c35bb;" goto statement_identifier ;) })) (expression_statement "iVar2 = iVar3 + -1;" (assignment_expression "iVar2 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }))) }) while (parenthesized_expression "(iVar4 <= iVar2)" ( (binary_expression "iVar4 <= iVar2" identifier <= identifier) )) ;) })) (expression_statement "local_18 = local_18 + 1;" (assignment_expression "local_18 = local_18 + 1" identifier = (binary_expression "local_18 + 1" identifier + number_literal)) ;) (labeled_statement "LAB_000c35bb:\n        param_1 = param_1 + 1;" statement_identifier : (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;)) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (uVar1 == 0) {\n          return local_18;\n        }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          return local_18;\n        }" { (return_statement "return local_18;" return identifier ;) })) (expression_statement "local_1c = local_1c + -1;" (assignment_expression "local_1c = local_1c + -1" identifier = (binary_expression "local_1c + -1" identifier + number_literal)) ;) (if_statement "if (local_1c == -1) {\n          return local_18;\n        }" if (parenthesized_expression "(local_1c == -1)" ( (binary_expression "local_1c == -1" identifier == number_literal) )) (compound_statement "{\n          return local_18;\n        }" { (return_statement "return local_18;" return identifier ;) })) }) while (parenthesized_expression "((0x20 < uVar1 - 0x7f) && (0x1f < uVar1))" ( (binary_expression "(0x20 < uVar1 - 0x7f) && (0x1f < uVar1)" (parenthesized_expression "(0x20 < uVar1 - 0x7f)" ( (binary_expression "0x20 < uVar1 - 0x7f" number_literal < (binary_expression "uVar1 - 0x7f" identifier - number_literal)) )) && (parenthesized_expression "(0x1f < uVar1)" ( (binary_expression "0x1f < uVar1" number_literal < identifier) ))) )) ;) })) (expression_statement "local_18 = -1;" (assignment_expression "local_18 = -1" identifier = number_literal) ;) }))) (return_statement "return local_18;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT - LIT)) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT - LIT) ))) < (string_literal " string_content ")) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) <= IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) }) while (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) }) while (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT - LIT)) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_000c3550(uint *param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int local_1c;\n  int local_18;\n  \n  uVar1 = *param_1;\n  if ((uVar1 == 0) || (param_2 == 0)) {\n    local_18 = 0;\n  }\n  else {\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }\n  return local_18;\n}" (primitive_type "int") (function_declarator "FUN_000c3550(uint *param_1,int param_2)" (identifier "FUN_000c3550") (parameter_list "(uint *param_1,int param_2)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int local_1c;\n  int local_18;\n  \n  uVar1 = *param_1;\n  if ((uVar1 == 0) || (param_2 == 0)) {\n    local_18 = 0;\n  }\n  else {\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }\n  return local_18;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int local_1c;" (primitive_type "int") (identifier "local_1c") (; ";")) (declaration "int local_18;" (primitive_type "int") (identifier "local_18") (; ";")) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" (identifier "uVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if ((uVar1 == 0) || (param_2 == 0)) {\n    local_18 = 0;\n  }\n  else {\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }" (if "if") (parenthesized_expression "((uVar1 == 0) || (param_2 == 0))" (( "(") (binary_expression "(uVar1 == 0) || (param_2 == 0)" (parenthesized_expression "(uVar1 == 0)" (( "(") (binary_expression "uVar1 == 0" (identifier "uVar1") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    local_18 = 0;\n  }" ({ "{") (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" (identifier "local_18") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }" (else "else") (compound_statement "{\n    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }\n    local_18 = -1;\n  }" ({ "{") (if_statement "if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }" (if "if") (parenthesized_expression "((0x20 < uVar1 - 0x7f) && (0x1f < uVar1))" (( "(") (binary_expression "(0x20 < uVar1 - 0x7f) && (0x1f < uVar1)" (parenthesized_expression "(0x20 < uVar1 - 0x7f)" (( "(") (binary_expression "0x20 < uVar1 - 0x7f" (number_literal "0x20") (< "<") (binary_expression "uVar1 - 0x7f" (identifier "uVar1") (- "-") (number_literal "0x7f"))) () ")")) (&& "&&") (parenthesized_expression "(0x1f < uVar1)" (( "(") (binary_expression "0x1f < uVar1" (number_literal "0x1f") (< "<") (identifier "uVar1")) () ")"))) () ")")) (compound_statement "{\n      local_1c = param_2 + -1;\n      local_18 = 0;\n      do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));\n    }" ({ "{") (expression_statement "local_1c = param_2 + -1;" (assignment_expression "local_1c = param_2 + -1" (identifier "local_1c") (= "=") (binary_expression "param_2 + -1" (identifier "param_2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" (identifier "local_18") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));" (do "do") (compound_statement "{\n        if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }\n        local_18 = local_18 + 1;\nLAB_000c35bb:\n        param_1 = param_1 + 1;\n        uVar1 = *param_1;\n        if (uVar1 == 0) {\n          return local_18;\n        }\n        local_1c = local_1c + -1;\n        if (local_1c == -1) {\n          return local_18;\n        }\n      }" ({ "{") (if_statement "if ((char *)(uVar1 - 0x300) < "me") {\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }" (if "if") (parenthesized_expression "((char *)(uVar1 - 0x300) < "me")" (( "(") (binary_expression "(char *)(uVar1 - 0x300) < "me"" (cast_expression "(char *)(uVar1 - 0x300)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar1 - 0x300)" (( "(") (binary_expression "uVar1 - 0x300" (identifier "uVar1") (- "-") (number_literal "0x300")) () ")"))) (< "<") (string_literal ""me"" (" """) (string_content "me") (" """))) () ")")) (compound_statement "{\n          iVar4 = 0;\n          iVar2 = 0x8d;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = 0x8d;" (assignment_expression "iVar2 = 0x8d" (identifier "iVar2") (= "=") (number_literal "0x8d")) (; ";")) (do_statement "do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);" (do "do") (compound_statement "{\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }\n          }" ({ "{") (expression_statement "iVar3 = iVar2 + iVar4 >> 1;" (assignment_expression "iVar3 = iVar2 + iVar4 >> 1" (identifier "iVar3") (= "=") (binary_expression "iVar2 + iVar4 >> 1" (binary_expression "iVar2 + iVar4" (identifier "iVar2") (+ "+") (identifier "iVar4")) (>> ">>") (number_literal "1"))) (; ";")) (if_statement "if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }" (if "if") (parenthesized_expression "(*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1)" (( "(") (binary_expression "*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1" (pointer_expression "*(uint *)(&UNK_000f4de4 + iVar3 * 8)" (* "*") (cast_expression "(uint *)(&UNK_000f4de4 + iVar3 * 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&UNK_000f4de4 + iVar3 * 8)" (( "(") (binary_expression "&UNK_000f4de4 + iVar3 * 8" (pointer_expression "&UNK_000f4de4" (& "&") (identifier "UNK_000f4de4")) (+ "+") (binary_expression "iVar3 * 8" (identifier "iVar3") (* "*") (number_literal "8"))) () ")")))) (< "<") (identifier "uVar1")) () ")")) (compound_statement "{\n              iVar4 = iVar3 + 1;\n            }" ({ "{") (expression_statement "iVar4 = iVar3 + 1;" (assignment_expression "iVar4 = iVar3 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }" (else "else") (compound_statement "{\n              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;\n              iVar2 = iVar3 + -1;\n            }" ({ "{") (if_statement "if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;" (if "if") (parenthesized_expression "(*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1)" (( "(") (binary_expression "*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1" (pointer_expression "*(uint *)(&DAT_000f4de0 + iVar3 * 8)" (* "*") (cast_expression "(uint *)(&DAT_000f4de0 + iVar3 * 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_000f4de0 + iVar3 * 8)" (( "(") (binary_expression "&DAT_000f4de0 + iVar3 * 8" (pointer_expression "&DAT_000f4de0" (& "&") (identifier "DAT_000f4de0")) (+ "+") (binary_expression "iVar3 * 8" (identifier "iVar3") (* "*") (number_literal "8"))) () ")")))) (<= "<=") (identifier "uVar1")) () ")")) (goto_statement "goto LAB_000c35bb;" (goto "goto") (statement_identifier "LAB_000c35bb") (; ";"))) (expression_statement "iVar2 = iVar3 + -1;" (assignment_expression "iVar2 = iVar3 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (} "}")))) (} "}")) (while "while") (parenthesized_expression "(iVar4 <= iVar2)" (( "(") (binary_expression "iVar4 <= iVar2" (identifier "iVar4") (<= "<=") (identifier "iVar2")) () ")")) (; ";")) (} "}"))) (if_statement "if (uVar1 - 0x1100 < 0x3eefe) {\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }" (if "if") (parenthesized_expression "(uVar1 - 0x1100 < 0x3eefe)" (( "(") (binary_expression "uVar1 - 0x1100 < 0x3eefe" (binary_expression "uVar1 - 0x1100" (identifier "uVar1") (- "-") (number_literal "0x1100")) (< "<") (number_literal "0x3eefe")) () ")")) (compound_statement "{\n          iVar4 = 0;\n          iVar2 = 0x69;\n          do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);\n        }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = 0x69;" (assignment_expression "iVar2 = 0x69" (identifier "iVar2") (= "=") (number_literal "0x69")) (; ";")) (do_statement "do {\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          } while (iVar4 <= iVar2);" (do "do") (compound_statement "{\n            iVar3 = iVar2 + iVar4 >> 1;\n            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }\n          }" ({ "{") (expression_statement "iVar3 = iVar2 + iVar4 >> 1;" (assignment_expression "iVar3 = iVar2 + iVar4 >> 1" (identifier "iVar3") (= "=") (binary_expression "iVar2 + iVar4 >> 1" (binary_expression "iVar2 + iVar4" (identifier "iVar2") (+ "+") (identifier "iVar4")) (>> ">>") (number_literal "1"))) (; ";")) (if_statement "if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {\n              iVar4 = iVar3 + 1;\n            }\n            else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }" (if "if") (parenthesized_expression "(*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1)" (( "(") (binary_expression "*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1" (pointer_expression "*(uint *)(&UNK_000f4a84 + iVar3 * 8)" (* "*") (cast_expression "(uint *)(&UNK_000f4a84 + iVar3 * 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&UNK_000f4a84 + iVar3 * 8)" (( "(") (binary_expression "&UNK_000f4a84 + iVar3 * 8" (pointer_expression "&UNK_000f4a84" (& "&") (identifier "UNK_000f4a84")) (+ "+") (binary_expression "iVar3 * 8" (identifier "iVar3") (* "*") (number_literal "8"))) () ")")))) (< "<") (identifier "uVar1")) () ")")) (compound_statement "{\n              iVar4 = iVar3 + 1;\n            }" ({ "{") (expression_statement "iVar4 = iVar3 + 1;" (assignment_expression "iVar4 = iVar3 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }" (else "else") (compound_statement "{\n              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }\n              iVar2 = iVar3 + -1;\n            }" ({ "{") (if_statement "if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }" (if "if") (parenthesized_expression "(*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1)" (( "(") (binary_expression "*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1" (pointer_expression "*(uint *)(&DAT_000f4a80 + iVar3 * 8)" (* "*") (cast_expression "(uint *)(&DAT_000f4a80 + iVar3 * 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_000f4a80 + iVar3 * 8)" (( "(") (binary_expression "&DAT_000f4a80 + iVar3 * 8" (pointer_expression "&DAT_000f4a80" (& "&") (identifier "DAT_000f4a80")) (+ "+") (binary_expression "iVar3 * 8" (identifier "iVar3") (* "*") (number_literal "8"))) () ")")))) (<= "<=") (identifier "uVar1")) () ")")) (compound_statement "{\n                local_18 = local_18 + 2;\n                goto LAB_000c35bb;\n              }" ({ "{") (expression_statement "local_18 = local_18 + 2;" (assignment_expression "local_18 = local_18 + 2" (identifier "local_18") (= "=") (binary_expression "local_18 + 2" (identifier "local_18") (+ "+") (number_literal "2"))) (; ";")) (goto_statement "goto LAB_000c35bb;" (goto "goto") (statement_identifier "LAB_000c35bb") (; ";")) (} "}"))) (expression_statement "iVar2 = iVar3 + -1;" (assignment_expression "iVar2 = iVar3 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (} "}")))) (} "}")) (while "while") (parenthesized_expression "(iVar4 <= iVar2)" (( "(") (binary_expression "iVar4 <= iVar2" (identifier "iVar4") (<= "<=") (identifier "iVar2")) () ")")) (; ";")) (} "}"))) (expression_statement "local_18 = local_18 + 1;" (assignment_expression "local_18 = local_18 + 1" (identifier "local_18") (= "=") (binary_expression "local_18 + 1" (identifier "local_18") (+ "+") (number_literal "1"))) (; ";")) (labeled_statement "LAB_000c35bb:\n        param_1 = param_1 + 1;" (statement_identifier "LAB_000c35bb") (: ":") (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" (identifier "uVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (uVar1 == 0) {\n          return local_18;\n        }" (if "if") (parenthesized_expression "(uVar1 == 0)" (( "(") (binary_expression "uVar1 == 0" (identifier "uVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return local_18;\n        }" ({ "{") (return_statement "return local_18;" (return "return") (identifier "local_18") (; ";")) (} "}"))) (expression_statement "local_1c = local_1c + -1;" (assignment_expression "local_1c = local_1c + -1" (identifier "local_1c") (= "=") (binary_expression "local_1c + -1" (identifier "local_1c") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (local_1c == -1) {\n          return local_18;\n        }" (if "if") (parenthesized_expression "(local_1c == -1)" (( "(") (binary_expression "local_1c == -1" (identifier "local_1c") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n          return local_18;\n        }" ({ "{") (return_statement "return local_18;" (return "return") (identifier "local_18") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "((0x20 < uVar1 - 0x7f) && (0x1f < uVar1))" (( "(") (binary_expression "(0x20 < uVar1 - 0x7f) && (0x1f < uVar1)" (parenthesized_expression "(0x20 < uVar1 - 0x7f)" (( "(") (binary_expression "0x20 < uVar1 - 0x7f" (number_literal "0x20") (< "<") (binary_expression "uVar1 - 0x7f" (identifier "uVar1") (- "-") (number_literal "0x7f"))) () ")")) (&& "&&") (parenthesized_expression "(0x1f < uVar1)" (( "(") (binary_expression "0x1f < uVar1" (number_literal "0x1f") (< "<") (identifier "uVar1")) () ")"))) () ")")) (; ";")) (} "}"))) (expression_statement "local_18 = -1;" (assignment_expression "local_18 = -1" (identifier "local_18") (= "=") (number_literal "-1")) (; ";")) (} "}")))) (return_statement "return local_18;" (return "return") (identifier "local_18") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int function_1(type_1 *var_9,size_t var_2)

{
  type_1 var_1;
  int var_3;
  int var_6;
  int var_4;
  int var_10;
  int var_8;
  
  var_1 = *var_9;
  if ((var_1 == 0) || (var_2 == 0)) {
    var_8 = 0;
  }
  else {
    if ((0x20 < var_1 - 0x7f) && (0x1f < var_1)) {
      var_10 = var_2 - 1;
      var_8 = 0;
      do {
        if ((char *)(var_1 - 0x300) < "me") {
          var_4 = 0;
          var_3 = 0x8d;
          do {
            var_6 = var_3 + var_4 >> 1;
            if (*(type_1 *)(var_5 + var_6 * 8 + 4) < var_1) {
              var_4 = var_6 + 1;
            }
            else {
              if (*(type_1 *)(var_5 + var_6 * 8) <= var_1) goto LAB_000c35bb;
              var_3 = var_6 + -1;
            }
          } while (var_4 <= var_3);
        }
        if (var_1 - 0x1100 < 0x3eefe) {
          var_4 = 0;
          var_3 = 0x69;
          do {
            var_6 = var_3 + var_4 >> 1;
            if (*(type_1 *)(var_7 + var_6 * 8 + 4) < var_1) {
              var_4 = var_6 + 1;
            }
            else {
              if (*(type_1 *)(var_7 + var_6 * 8) <= var_1) {
                var_8 = var_8 + 2;
                goto LAB_000c35bb;
              }
              var_3 = var_6 + -1;
            }
          } while (var_4 <= var_3);
        }
        var_8 = var_8 + 1;
LAB_000c35bb:
        var_9 = var_9 + 1;
        var_1 = *var_9;
        if (var_1 == 0) {
          return var_8;
        }
        var_10 = var_10 + -1;
        if (var_10 == -1) {
          return var_8;
        }
      } while ((0x20 < var_1 - 0x7f) && (0x1f < var_1));
    }
    var_8 = -1;
  }
  return var_8;
}


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

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int MASKED(uint *param_1,int param_2)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int local_1c;
  int local_18;
  
  uVar1 = *param_1;
  if ((uVar1 == 0) || (param_2 == 0)) {
    local_18 = 0;
  }
  else {
    if ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1)) {
      local_1c = param_2 + -1;
      local_18 = 0;
      do {
        if ((char *)(uVar1 - 0x300) < "me") {
          iVar4 = 0;
          iVar2 = 0x8d;
          do {
            iVar3 = iVar2 + iVar4 >> 1;
            if (*(uint *)(&UNK_000f4de4 + iVar3 * 8) < uVar1) {
              iVar4 = iVar3 + 1;
            }
            else {
              if (*(uint *)(&DAT_000f4de0 + iVar3 * 8) <= uVar1) goto LAB_000c35bb;
              iVar2 = iVar3 + -1;
            }
          } while (iVar4 <= iVar2);
        }
        if (uVar1 - 0x1100 < 0x3eefe) {
          iVar4 = 0;
          iVar2 = 0x69;
          do {
            iVar3 = iVar2 + iVar4 >> 1;
            if (*(uint *)(&UNK_000f4a84 + iVar3 * 8) < uVar1) {
              iVar4 = iVar3 + 1;
            }
            else {
              if (*(uint *)(&DAT_000f4a80 + iVar3 * 8) <= uVar1) {
                local_18 = local_18 + 2;
                goto LAB_000c35bb;
              }
              iVar2 = iVar3 + -1;
            }
          } while (iVar4 <= iVar2);
        }
        local_18 = local_18 + 1;
LAB_000c35bb:
        param_1 = param_1 + 1;
        uVar1 = *param_1;
        if (uVar1 == 0) {
          return local_18;
        }
        local_1c = local_1c + -1;
        if (local_1c == -1) {
          return local_18;
        }
      } while ((0x20 < uVar1 - 0x7f) && (0x1f < uVar1));
    }
    local_18 = -1;
  }
  return local_18;
}

