#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 */
char *roadmap_config_skip_spaces(char *);
char *roadmap_config_extract_data(char *line, int size) {
  char *p;
  line[size - 1] = 0;
  line = roadmap_config_skip_spaces(line);
  if (*line == '\r' || *line == '\n' || *line == '#')
    return NULL;
  for (p = line; *p && *p != '\n' && *p != '\r'; p++)
    ;
  *p = 0;
  return line;
}


x86 assembly (clang, -O0):
<roadmap_config_extract_data>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x10(%rbp),%rdi
call   1030 <roadmap_config_skip_spaces@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xd,%eax
je     116d <roadmap_config_extract_data+0x5d>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
je     116d <roadmap_config_extract_data+0x5d>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
jne    117a <roadmap_config_extract_data+0x6a>
movq   $0x0,-0x8(%rbp)
jmp    11f1 <roadmap_config_extract_data+0xe1>
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x21(%rbp)
je     11bc <roadmap_config_extract_data+0xac>
mov    -0x20(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x21(%rbp)
je     11bc <roadmap_config_extract_data+0xac>
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xd,%eax
setne  %al
mov    %al,-0x21(%rbp)
mov    -0x21(%rbp),%al
test   $0x1,%al
jne    11cc <roadmap_config_extract_data+0xbc>
jmp    11e2 <roadmap_config_extract_data+0xd2>
jmp    11d1 <roadmap_config_extract_data+0xc1>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1182 <roadmap_config_extract_data+0x72>
mov    -0x20(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<roadmap_config_extract_data>:
push   %rax
movslq %esi,%rax
movb   $0x0,-0x1(%rax,%rdi,1)
call   1030 <roadmap_config_skip_spaces@plt>
movzbl (%rax),%ecx
cmp    $0x23,%rcx
ja     113b <roadmap_config_extract_data+0x2b>
movabs $0x800002400,%rdx
bt     %rcx,%rdx
jae    113b <roadmap_config_extract_data+0x2b>
xor    %eax,%eax
pop    %rcx
ret
mov    %rax,%rdx
add    $0x1,%rdx
mov    $0x2401,%esi
jmp    1157 <roadmap_config_extract_data+0x47>
nopl   0x0(%rax)
movzbl (%rdx),%ecx
add    $0x1,%rdx
cmp    $0xd,%cl
ja     1150 <roadmap_config_extract_data+0x40>
movzbl %cl,%ecx
bt     %rcx,%rsi
jae    1150 <roadmap_config_extract_data+0x40>
movb   $0x0,-0x1(%rdx)
pop    %rcx
ret

LLVM IR (-O0):
define i8* @roadmap_config_extract_data(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
store i8* %0, i8** %4
store i32 %1, i32* %5
%7 = load i8*, i8** %4
%8 = load i32, i32* %5
%9 = sub nsw i32 %8, 1
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, i8* %7, i64 %10
store i8 0, i8* %11
%12 = load i8*, i8** %4
%13 = call i8* @roadmap_config_skip_spaces(i8* %12)
store i8* %13, i8** %4
%14 = load i8*, i8** %4
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 13
br i1 %17, label %28, label %18
18: ; preds = %2
%19 = load i8*, i8** %4
%20 = load i8, i8* %19
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 10
br i1 %22, label %28, label %23
23: ; preds = %18
%24 = load i8*, i8** %4
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 35
br i1 %27, label %28, label %29
28: ; preds = %23, %18, %2
store i8* null, i8** %3
br label %55
29: ; preds = %23
%30 = load i8*, i8** %4
store i8* %30, i8** %6
br label %31
31: ; preds = %49, %29
%32 = load i8*, i8** %6
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %46
36: ; preds = %31
%37 = load i8*, i8** %6
%38 = load i8, i8* %37
%39 = sext i8 %38 to i32
%40 = icmp ne i32 %39, 10
br i1 %40, label %41, label %46
41: ; preds = %36
%42 = load i8*, i8** %6
%43 = load i8, i8* %42
%44 = sext i8 %43 to i32
%45 = icmp ne i32 %44, 13
br label %46
46: ; preds = %41, %36, %31
%47 = phi i1 [ false, %36 ], [ false, %31 ], [ %45, %41 ]
br i1 %47, label %48, label %52
48: ; preds = %46
br label %49
49: ; preds = %48
%50 = load i8*, i8** %6
%51 = getelementptr inbounds i8, i8* %50, i32 1
store i8* %51, i8** %6
br label %31
52: ; preds = %46
%53 = load i8*, i8** %6
store i8 0, i8* %53
%54 = load i8*, i8** %4
store i8* %54, i8** %3
br label %55
55: ; preds = %52, %28
%56 = load i8*, i8** %3
ret i8* %56
}

LLVM IR (-O2):
define i8* @roadmap_config_extract_data(i8* %0, i32 %1) {
%3 = add nsw i32 %1, -1
%4 = sext i32 %3 to i64
%5 = getelementptr inbounds i8, i8* %0, i64 %4
store i8 0, i8* %5
%6 = tail call i8* @roadmap_config_skip_spaces(i8* %0)
%7 = load i8, i8* %6
switch i8 %7, label %8 [
i8 13, label %15
i8 10, label %15
i8 35, label %15
]
8: ; preds = %2, %11
%9 = phi i8 [ %13, %11 ], [ %7, %2 ]
%10 = phi i8* [ %12, %11 ], [ %6, %2 ]
switch i8 %9, label %11 [
i8 0, label %14
i8 10, label %14
i8 13, label %14
]
11: ; preds = %8
%12 = getelementptr inbounds i8, i8* %10, i64 1
%13 = load i8, i8* %12
br label %8
14: ; preds = %8, %8, %8
store i8 0, i8* %10
br label %15
15: ; preds = %2, %2, %2, %14
%16 = phi i8* [ %6, %14 ], [ null, %2 ], [ null, %2 ], [ null, %2 ]
ret i8* %16
}