#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int fn_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102(
    char const *);
int fn_qtg_0_4294967295_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102(
    const char *text) {
  int pos = 0, p = 0, count = 0;
  while (
      (p = fn_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102(
           text + pos)) != -1) {
    pos += p;
    count++;
  }
  if (count >= 0)
    return pos;
  return -1;
}


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
call   1030 <fn_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102@plt>
mov    %eax,-0x18(%rbp)
cmp    $0xffffffff,%eax
je     1164 <fn_qtg_0_4294967295_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102+0x54>
mov    -0x18(%rbp),%eax
add    -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1131 <fn_qtg_0_4294967295_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102+0x21>
cmpl   $0x0,-0x1c(%rbp)
jl     1179 <fn_qtg_0_4294967295_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102+0x69>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1180 <fn_qtg_0_4294967295_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102+0x70>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
xor    %ecx,%ecx
nopl   0x0(%rax)
mov    %ecx,%ebx
movslq %ecx,%rdi
add    %r14,%rdi
call   1030 <fn_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102@plt>
lea    (%rax,%rbx,1),%ecx
cmp    $0xffffffff,%eax
jne    1120 <fn_qtg_0_4294967295_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102+0x10>
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @fn_qtg_0_4294967295_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %3
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
br label %7
7: ; preds = %14, %1
%8 = load i8*, i8** %3
%9 = load i32, i32* %4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, i8* %8, i64 %10
%12 = call i32 @fn_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102(i8* %11)
store i32 %12, i32* %5
%13 = icmp ne i32 %12, -1
br i1 %13, label %14, label %20
14: ; preds = %7
%15 = load i32, i32* %5
%16 = load i32, i32* %4
%17 = add nsw i32 %16, %15
store i32 %17, i32* %4
%18 = load i32, i32* %6
%19 = add nsw i32 %18, 1
store i32 %19, i32* %6
br label %7
20: ; preds = %7
%21 = load i32, i32* %6
%22 = icmp sge i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = load i32, i32* %4
store i32 %24, i32* %2
br label %26
25: ; preds = %20
store i32 -1, i32* %2
br label %26
26: ; preds = %25, %23
%27 = load i32, i32* %2
ret i32 %27
}

LLVM IR (-O2):
define i32 @fn_qtg_0_4294967295_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102(i8* %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i32 [ 0, %1 ], [ %8, %2 ]
%4 = sext i32 %3 to i64
%5 = getelementptr inbounds i8, i8* %0, i64 %4
%6 = tail call i32 @fn_al_sq_cl_33_33_36_36_38_46_48_59_61_61_64_91_95_95_97_122_126_126_160_55295_63744_64975_65008_65519_65533_65533_65536_131069_131072_196605_196608_262141_262144_327677_327680_393213_393216_458749_458752_524285_524288_589821_589824_655357_655360_720893_720896_786429_786432_851965_851968_917501_917504_983037_sq_ch_37_qtg_2_2_cl_48_57_65_70_91_91_97_102(i8* %5)
%7 = icmp eq i32 %6, -1
%8 = add nsw i32 %6, %3
br i1 %7, label %9, label %2
9: ; preds = %2
ret i32 %3
}