#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 */
void skipBlankSymbols(const char *rawData, size_t *idx) {
  size_t i = *idx;
  while (rawData[i] == ' ' || rawData[i] == '\n' || rawData[i] == '\r' ||
         rawData[i] == '\t') {
    i++;
  }
  *idx = i;
}


x86 assembly (clang, -O0):
<skipBlankSymbols>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x19(%rbp)
je     117a <skipBlankSymbols+0x7a>
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
mov    $0x1,%al
cmp    $0xa,%ecx
mov    %al,-0x19(%rbp)
je     117a <skipBlankSymbols+0x7a>
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
mov    $0x1,%al
cmp    $0xd,%ecx
mov    %al,-0x19(%rbp)
je     117a <skipBlankSymbols+0x7a>
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x9,%eax
sete   %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
test   $0x1,%al
jne    118a <skipBlankSymbols+0x8a>
jmp    119b <skipBlankSymbols+0x9b>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1117 <skipBlankSymbols+0x17>
mov    -0x18(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<skipBlankSymbols>:
mov    (%rsi),%rax
movabs $0x100002600,%rcx
nopl   (%rax)
movzbl (%rdi,%rax,1),%edx
cmp    $0x20,%rdx
ja     1126 <skipBlankSymbols+0x26>
bt     %rdx,%rcx
jae    1126 <skipBlankSymbols+0x26>
add    $0x1,%rax
jmp    1110 <skipBlankSymbols+0x10>
mov    %rax,(%rsi)
ret

LLVM IR (-O0):
define void @skipBlankSymbols(i8* %0, i64* %1) {
%3 = alloca i8*
%4 = alloca i64*
%5 = alloca i64
store i8* %0, i8** %3
store i64* %1, i64** %4
%6 = load i64*, i64** %4
%7 = load i64, i64* %6
store i64 %7, i64* %5
br label %8
8: ; preds = %38, %2
%9 = load i8*, i8** %3
%10 = load i64, i64* %5
%11 = getelementptr inbounds i8, i8* %9, i64 %10
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 32
br i1 %14, label %36, label %15
15: ; preds = %8
%16 = load i8*, i8** %3
%17 = load i64, i64* %5
%18 = getelementptr inbounds i8, i8* %16, i64 %17
%19 = load i8, i8* %18
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 10
br i1 %21, label %36, label %22
22: ; preds = %15
%23 = load i8*, i8** %3
%24 = load i64, i64* %5
%25 = getelementptr inbounds i8, i8* %23, i64 %24
%26 = load i8, i8* %25
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 13
br i1 %28, label %36, label %29
29: ; preds = %22
%30 = load i8*, i8** %3
%31 = load i64, i64* %5
%32 = getelementptr inbounds i8, i8* %30, i64 %31
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 9
br label %36
36: ; preds = %29, %22, %15, %8
%37 = phi i1 [ true, %22 ], [ true, %15 ], [ true, %8 ], [ %35, %29 ]
br i1 %37, label %38, label %41
38: ; preds = %36
%39 = load i64, i64* %5
%40 = add i64 %39, 1
store i64 %40, i64* %5
br label %8
41: ; preds = %36
%42 = load i64, i64* %5
%43 = load i64*, i64** %4
store i64 %42, i64* %43
ret void
}

LLVM IR (-O2):
define void @skipBlankSymbols(i8* nocapture %0, i64* nocapture %1) {
%3 = load i64, i64* %1
br label %4
4: ; preds = %8, %2
%5 = phi i64 [ %3, %2 ], [ %9, %8 ]
%6 = getelementptr inbounds i8, i8* %0, i64 %5
%7 = load i8, i8* %6
switch i8 %7, label %10 [
i8 32, label %8
i8 10, label %8
i8 13, label %8
i8 9, label %8
]
8: ; preds = %4, %4, %4, %4
%9 = add i64 %5, 1
br label %4
10: ; preds = %4
store i64 %5, i64* %1
ret void
}