#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, char *, char **);
char *strchr(char *, char);
char *swallMultiParser(char *header, char **retPos) {
  static char *terminators[] = {"Desc:", "-"};
  char *chP;
  char *id;
  if (*retPos == NULL) {
    id = multiTokenParser(header, " \t\n", 2, terminators, 2,
                          "swallMultiParser", retPos);
  } else {
    id = multiTokenParser(header, " \t\n", 0, terminators, 2,
                          "swallMultiParser", retPos);
  }
  if (id && (chP = strchr(id, '.'))) {
    *chP = '\0';
  }
  return id;
}


x86 assembly (clang, -O0):
<swallMultiParser>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
jne    1176 <swallMultiParser+0x56>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rax
lea    0xebb(%rip),%rsi
mov    $0x2,%r8d
lea    0x2ee6(%rip),%rcx
lea    0xeab(%rip),%r9
mov    %r8d,%edx
mov    %rax,(%rsp)
call   1040 <multiTokenParser@plt>
mov    %rax,-0x20(%rbp)
jmp    11a8 <swallMultiParser+0x88>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rax
lea    0xe83(%rip),%rsi
xor    %edx,%edx
lea    0x2eb2(%rip),%rcx
mov    $0x2,%r8d
lea    0xe71(%rip),%r9
mov    %rax,(%rsp)
call   1040 <multiTokenParser@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     11d6 <swallMultiParser+0xb6>
mov    -0x20(%rbp),%rdi
mov    $0x2e,%esi
call   1030 <strchr@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
je     11d6 <swallMultiParser+0xb6>
mov    -0x18(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x20(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<swallMultiParser>:
push   %rbx
sub    $0x10,%rsp
xor    %edx,%edx
cmpq   $0x0,(%rsi)
sete   %dl
add    %edx,%edx
mov    %rsi,(%rsp)
lea    0xecd(%rip),%rsi
lea    0x2efe(%rip),%rcx
lea    0xec3(%rip),%r9
mov    $0x2,%r8d
call   1040 <multiTokenParser@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1171 <swallMultiParser+0x51>
mov    %rbx,%rdi
mov    $0x2e,%esi
call   1030 <strchr@plt>
test   %rax,%rax
je     1171 <swallMultiParser+0x51>
movb   $0x0,(%rax)
mov    %rbx,%rax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@swallMultiParser.terminators = internal global [2 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i32 0, i32 0)]
@.str = [6 x i8] c"Desc:\00"
@.str.1 = [2 x i8] c"-\00"
@.str.2 = [4 x i8] c" \09\0A\00"
@.str.3 = [17 x i8] c"swallMultiParser\00"
define i8* @swallMultiParser(i8* %0, i8** %1) {
%3 = alloca i8*
%4 = alloca i8**
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %3
store i8** %1, i8*** %4
%7 = load i8**, i8*** %4
%8 = load i8*, i8** %7
%9 = icmp eq i8* %8, null
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load i8*, i8** %3
%12 = load i8**, i8*** %4
%13 = call i8* @multiTokenParser(i8* %11, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 2, i8** getelementptr inbounds ([2 x i8*], [2 x i8*]* @swallMultiParser.terminators, i64 0, i64 0), i32 2, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8** %12)
store i8* %13, i8** %6
br label %18
14: ; preds = %2
%15 = load i8*, i8** %3
%16 = load i8**, i8*** %4
%17 = call i8* @multiTokenParser(i8* %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 0, i8** getelementptr inbounds ([2 x i8*], [2 x i8*]* @swallMultiParser.terminators, i64 0, i64 0), i32 2, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8** %16)
store i8* %17, i8** %6
br label %18
18: ; preds = %14, %10
%19 = load i8*, i8** %6
%20 = icmp ne i8* %19, null
br i1 %20, label %21, label %27
21: ; preds = %18
%22 = load i8*, i8** %6
%23 = call i8* @strchr(i8* %22, i8 signext 46)
store i8* %23, i8** %5
%24 = icmp ne i8* %23, null
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = load i8*, i8** %5
store i8 0, i8* %26
br label %27
27: ; preds = %25, %21, %18
%28 = load i8*, i8** %6
ret i8* %28
}

LLVM IR (-O2):
@swallMultiParser.terminators = internal global [2 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i32 0, i32 0)]
@.str = [6 x i8] c"Desc:\00"
@.str.1 = [2 x i8] c"-\00"
@.str.2 = [4 x i8] c" \09\0A\00"
@.str.3 = [17 x i8] c"swallMultiParser\00"
define i8* @swallMultiParser(i8* %0, i8** %1) {
%3 = load i8*, i8** %1
%4 = icmp eq i8* %3, null
%5 = select i1 %4, i32 2, i32 0
%6 = tail call i8* @multiTokenParser(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %5, i8** getelementptr inbounds ([2 x i8*], [2 x i8*]* @swallMultiParser.terminators, i64 0, i64 0), i32 2, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8** %1)
%7 = icmp eq i8* %6, null
br i1 %7, label %12, label %8
8: ; preds = %2
%9 = tail call i8* @strchr(i8* %6, i8 signext 46)
%10 = icmp eq i8* %9, null
br i1 %10, label %12, label %11
11: ; preds = %8
store i8 0, i8* %9
br label %12
12: ; preds = %11, %8, %2
ret i8* %6
}