#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 /*<<< orphan*/ tor_raw_abort_();
int /*<<< orphan*/ tor_raw_assertion_failed_msg_(char *, int, char *,
                                                 int /*<<< orphan*/ *);
const char *eat_whitespace(const char *s) {
  (void)({
    if (!(s)) {
      tor_raw_assertion_failed_msg_(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/zcoinofficial/zcoin/refs/heads/master/src/"
          "tor/src/lib/string/util_string.c",
          270, "s", NULL);
      tor_raw_abort_();
    }
  });
  while (1) {
    switch (*s) {
    case '\0':
    default:
      return s;
    case ' ':
    case '\t':
    case '\n':
    case '\r':
      ++s;
      break;
    case '#':
      ++s;
      while (*s && *s != '\n')
        ++s;
    }
  }
}


x86 assembly (clang, -O0):
<eat_whitespace>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    115a <eat_whitespace+0x3a>
lea    0xec2(%rip),%rdi
mov    $0x10e,%esi
lea    0xf5b(%rip),%rdx
xor    %eax,%eax
mov    %eax,%ecx
call   1040 <tor_raw_assertion_failed_msg_@plt>
mov    $0x0,%al
call   1030 <tor_raw_abort_@plt>
jmp    115f <eat_whitespace+0x3f>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
mov    %eax,-0xc(%rbp)
test   %eax,%eax
je     11bd <eat_whitespace+0x9d>
jmp    1176 <eat_whitespace+0x56>
mov    -0xc(%rbp),%eax
add    $0xfffffff7,%eax
sub    $0x2,%eax
jb     11cc <eat_whitespace+0xac>
jmp    118a <eat_whitespace+0x6a>
mov    -0xc(%rbp),%eax
sub    $0xd,%eax
je     11cc <eat_whitespace+0xac>
jmp    119b <eat_whitespace+0x7b>
mov    -0xc(%rbp),%eax
sub    $0x20,%eax
je     11cc <eat_whitespace+0xac>
jmp    11ac <eat_whitespace+0x8c>
mov    -0xc(%rbp),%eax
sub    $0x23,%eax
je     11dd <eat_whitespace+0xbd>
jmp    11c2 <eat_whitespace+0xa2>
jmp    11c2 <eat_whitespace+0xa2>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1234 <eat_whitespace+0x114>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0xd(%rbp)
je     120e <eat_whitespace+0xee>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
setne  %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
test   $0x1,%al
jne    121e <eat_whitespace+0xfe>
jmp    122f <eat_whitespace+0x10f>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    11e9 <eat_whitespace+0xc9>
jmp    1234 <eat_whitespace+0x114>
jmp    115f <eat_whitespace+0x3f>

x86 assembly (clang, -O2):
<eat_whitespace>:
push   %rbx
mov    %rdi,%rbx
test   %rdi,%rdi
jne    114a <eat_whitespace+0x2a>
lea    0xed0(%rip),%rdi
lea    0xf6e(%rip),%rdx
mov    $0x10e,%esi
xor    %ecx,%ecx
call   1040 <tor_raw_assertion_failed_msg_@plt>
xor    %eax,%eax
call   1030 <tor_raw_abort_@plt>
movabs $0x100002600,%rax
jmp    1164 <eat_whitespace+0x44>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%rbx
movsbl (%rbx),%ecx
cmp    $0x23,%ecx
ja     1193 <eat_whitespace+0x73>
bt     %rcx,%rax
jb     1160 <eat_whitespace+0x40>
cmp    $0x23,%rcx
jne    1193 <eat_whitespace+0x73>
nopl   0x0(%rax,%rax,1)
movzbl 0x1(%rbx),%ecx
add    $0x1,%rbx
test   %cl,%cl
je     1164 <eat_whitespace+0x44>
cmp    $0xa,%cl
jne    1180 <eat_whitespace+0x60>
jmp    1164 <eat_whitespace+0x44>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [165 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/zcoinofficial/zcoin/refs/heads/master/src/tor/src/lib/string/util_string.c\00"
@.str.1 = [2 x i8] c"s\00"
define i8* @eat_whitespace(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp ne i8* %3, null
br i1 %4, label %8, label %5
5: ; preds = %1
%6 = call i32 @tor_raw_assertion_failed_msg_(i8* getelementptr inbounds ([165 x i8], [165 x i8]* @.str, i64 0, i64 0), i32 270, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* null)
%7 = call i32 (...) @tor_raw_abort_()
br label %8
8: ; preds = %5, %1
br label %9
9: ; preds = %8, %38
%10 = load i8*, i8** %2
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
switch i32 %12, label %14 [
i32 0, label %13
i32 32, label %16
i32 9, label %16
i32 10, label %16
i32 13, label %16
i32 35, label %19
]
13: ; preds = %9
br label %14
14: ; preds = %9, %13
%15 = load i8*, i8** %2
ret i8* %15
16: ; preds = %9, %9, %9, %9
%17 = load i8*, i8** %2
%18 = getelementptr inbounds i8, i8* %17, i32 1
store i8* %18, i8** %2
br label %38
19: ; preds = %9
%20 = load i8*, i8** %2
%21 = getelementptr inbounds i8, i8* %20, i32 1
store i8* %21, i8** %2
br label %22
22: ; preds = %34, %19
%23 = load i8*, i8** %2
%24 = load i8, i8* %23
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %32
27: ; preds = %22
%28 = load i8*, i8** %2
%29 = load i8, i8* %28
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %30, 10
br label %32
32: ; preds = %27, %22
%33 = phi i1 [ false, %22 ], [ %31, %27 ]
br i1 %33, label %34, label %37
34: ; preds = %32
%35 = load i8*, i8** %2
%36 = getelementptr inbounds i8, i8* %35, i32 1
store i8* %36, i8** %2
br label %22
37: ; preds = %32
br label %38
38: ; preds = %37, %16
br label %9
}

LLVM IR (-O2):
@.str = [165 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/zcoinofficial/zcoin/refs/heads/master/src/tor/src/lib/string/util_string.c\00"
@.str.1 = [2 x i8] c"s\00"
define i8* @eat_whitespace(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %3, label %6
3: ; preds = %1
%4 = tail call i32 @tor_raw_assertion_failed_msg_(i8* getelementptr inbounds ([165 x i8], [165 x i8]* @.str, i64 0, i64 0), i32 270, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* null)
%5 = tail call i32 (...) @tor_raw_abort_()
br label %6
6: ; preds = %3, %1
br label %7
7: ; preds = %14, %6
%8 = phi i8* [ %0, %6 ], [ %15, %14 ]
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
switch i32 %10, label %11 [
i32 35, label %16
i32 32, label %12
i32 9, label %12
i32 10, label %12
i32 13, label %12
]
11: ; preds = %7
ret i8* %8
12: ; preds = %7, %7, %7, %7
%13 = getelementptr inbounds i8, i8* %8, i64 1
br label %14
14: ; preds = %16, %16, %12
%15 = phi i8* [ %13, %12 ], [ %18, %16 ], [ %18, %16 ]
br label %7
16: ; preds = %7, %16
%17 = phi i8* [ %18, %16 ], [ %8, %7 ]
%18 = getelementptr inbounds i8, i8* %17, i64 1
%19 = load i8, i8* %18
switch i8 %19, label %16 [
i8 0, label %14
i8 10, label %14
]
}