#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 *multiTokenParser(char *, char *, int, char **, int /*<<< orphan*/, char *,
                       char **);
char *BTMultiParser(char *header, char **retPos) {
  static char *terminators[] = {};
  char *id;
  if (*retPos == NULL) {
    id = multiTokenParser(header, " \t\n", 1, terminators, 0, "BTMultiParser",
                          retPos);
  } else {
    id = multiTokenParser(header, " \t\n", 0, terminators, 0, "BTMultiParser",
                          retPos);
  }
  return id;
}


x86 assembly (clang, -O0):
<BTMultiParser>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
jne    1165 <BTMultiParser+0x55>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rax
lea    0xec3(%rip),%rsi
mov    $0x1,%edx
lea    0x2ee7(%rip),%rcx
xor    %r8d,%r8d
lea    0xeb1(%rip),%r9
mov    %rax,(%rsp)
call   1030 <multiTokenParser@plt>
mov    %rax,-0x18(%rbp)
jmp    1195 <BTMultiParser+0x85>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rax
lea    0xe8c(%rip),%rsi
xor    %r8d,%r8d
lea    0x2eb2(%rip),%rcx
lea    0xe7f(%rip),%r9
mov    %r8d,%edx
mov    %rax,(%rsp)
call   1030 <multiTokenParser@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<BTMultiParser>:
push   %rax
xor    %edx,%edx
cmpq   $0x0,(%rsi)
sete   %dl
mov    %rsi,(%rsp)
lea    0xedb(%rip),%rsi
lea    0x2f04(%rip),%rcx
lea    0xed1(%rip),%r9
xor    %r8d,%r8d
call   1030 <multiTokenParser@plt>
pop    %rcx
ret

LLVM IR (-O0):
@BTMultiParser.terminators = internal global [0 x i8*] zeroinitializer
@.str = [4 x i8] c" \09\0A\00"
@.str.1 = [14 x i8] c"BTMultiParser\00"
define i8* @BTMultiParser(i8* %0, i8** %1) {
%3 = alloca i8*
%4 = alloca i8**
%5 = alloca i8*
store i8* %0, i8** %3
store i8** %1, i8*** %4
%6 = load i8**, i8*** %4
%7 = load i8*, i8** %6
%8 = icmp eq i8* %7, null
br i1 %8, label %9, label %13
9: ; preds = %2
%10 = load i8*, i8** %3
%11 = load i8**, i8*** %4
%12 = call i8* @multiTokenParser(i8* %10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 1, i8** getelementptr inbounds ([0 x i8*], [0 x i8*]* @BTMultiParser.terminators, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8** %11)
store i8* %12, i8** %5
br label %17
13: ; preds = %2
%14 = load i8*, i8** %3
%15 = load i8**, i8*** %4
%16 = call i8* @multiTokenParser(i8* %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 0, i8** getelementptr inbounds ([0 x i8*], [0 x i8*]* @BTMultiParser.terminators, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8** %15)
store i8* %16, i8** %5
br label %17
17: ; preds = %13, %9
%18 = load i8*, i8** %5
ret i8* %18
}

LLVM IR (-O2):
@BTMultiParser.terminators = internal global [0 x i8*] zeroinitializer
@.str = [4 x i8] c" \09\0A\00"
@.str.1 = [14 x i8] c"BTMultiParser\00"
define i8* @BTMultiParser(i8* %0, i8** %1) {
%3 = load i8*, i8** %1
%4 = icmp eq i8* %3, null
%5 = zext i1 %4 to i32
%6 = tail call i8* @multiTokenParser(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %5, i8** getelementptr inbounds ([0 x i8*], [0 x i8*]* @BTMultiParser.terminators, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8** %1)
ret i8* %6
}