#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 **btic4b_img_ssplit(char *s) {
  static char *aa[64];
  static char ab[1024];
  char *t, *t0;
  char **at;
  at = aa;
  t = ab;
  while (*s) {
    while (*s && (*s <= ' '))
      s++;
    if (!*s)
      break;
    t0 = t;
    while (*s > ' ')
      *t++ = *s++;
    *t++ = 0;
    *at++ = t0;
  }
  *at++ = NULL;
  return (aa);
}


x86 assembly (clang, -O0):
<btic4b_img_ssplit>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
lea    0x2f21(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0x3116(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     11f4 <btic4b_img_ssplit+0xf4>
jmp    1130 <btic4b_img_ssplit+0x30>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x21(%rbp)
je     1155 <btic4b_img_ssplit+0x55>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
setle  %al
mov    %al,-0x21(%rbp)
mov    -0x21(%rbp),%al
test   $0x1,%al
jne    1165 <btic4b_img_ssplit+0x65>
jmp    1176 <btic4b_img_ssplit+0x76>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1130 <btic4b_img_ssplit+0x30>
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
jne    1188 <btic4b_img_ssplit+0x88>
jmp    11f4 <btic4b_img_ssplit+0xf4>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
jle    11c7 <btic4b_img_ssplit+0xc7>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
mov    (%rax),%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
jmp    1190 <btic4b_img_ssplit+0x90>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movb   $0x0,(%rax)
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,-0x20(%rbp)
mov    %rcx,(%rax)
jmp    111e <btic4b_img_ssplit+0x1e>
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x20(%rbp)
movq   $0x0,(%rax)
lea    0x2e1f(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<btic4b_img_ssplit>:
mov    (%rdi),%dl
test   %dl,%dl
je     1175 <btic4b_img_ssplit+0x75>
lea    0x3123(%rip),%rcx
lea    0x2f1c(%rip),%rax
jmp    1137 <btic4b_img_ssplit+0x37>
cs nopw 0x0(%rax,%rax,1)
movb   $0x0,(%rsi)
add    $0x1,%rsi
mov    %rcx,(%rax)
add    $0x8,%rax
mov    (%rdi),%dl
mov    %rsi,%rcx
test   %dl,%dl
je     117c <btic4b_img_ssplit+0x7c>
cmp    $0x20,%dl
jg     115d <btic4b_img_ssplit+0x5d>
nopl   0x0(%rax)
movzbl 0x1(%rdi),%edx
add    $0x1,%rdi
test   %dl,%dl
je     1151 <btic4b_img_ssplit+0x51>
cmp    $0x21,%dl
jl     1140 <btic4b_img_ssplit+0x40>
test   %dl,%dl
je     117c <btic4b_img_ssplit+0x7c>
mov    %rcx,%rsi
cmp    $0x21,%dl
jb     1120 <btic4b_img_ssplit+0x20>
mov    %rcx,%rsi
mov    %dl,(%rsi)
add    $0x1,%rsi
movzbl 0x1(%rdi),%edx
add    $0x1,%rdi
cmp    $0x20,%dl
jg     1160 <btic4b_img_ssplit+0x60>
jmp    1120 <btic4b_img_ssplit+0x20>
lea    0x2eb4(%rip),%rax
movq   $0x0,(%rax)
lea    0x2ea6(%rip),%rax
ret

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

LLVM IR (-O2):
@btic4b_img_ssplit.aa = internal global [64 x i8*] zeroinitializer
@btic4b_img_ssplit.ab = internal global [1024 x i8] zeroinitializer
define i8** @btic4b_img_ssplit(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %39, label %4
4: ; preds = %1, %32
%5 = phi i8 [ %37, %32 ], [ %2, %1 ]
%6 = phi i8** [ %36, %32 ], [ getelementptr inbounds ([64 x i8*], [64 x i8*]* @btic4b_img_ssplit.aa, i64 0, i64 0), %1 ]
%7 = phi i8* [ %34, %32 ], [ %0, %1 ]
%8 = phi i8* [ %35, %32 ], [ getelementptr inbounds ([1024 x i8], [1024 x i8]* @btic4b_img_ssplit.ab, i64 0, i64 0), %1 ]
%9 = icmp slt i8 %5, 33
br i1 %9, label %10, label %21
10: ; preds = %4, %10
%11 = phi i8* [ %12, %10 ], [ %7, %4 ]
%12 = getelementptr inbounds i8, i8* %11, i64 1
%13 = load i8, i8* %12
%14 = icmp ne i8 %13, 0
%15 = icmp slt i8 %13, 33
%16 = and i1 %14, %15
br i1 %16, label %10, label %17
17: ; preds = %10
%18 = icmp eq i8 %13, 0
br i1 %18, label %39, label %19
19: ; preds = %17
%20 = icmp ugt i8 %13, 32
br i1 %20, label %21, label %32
21: ; preds = %4, %19
%22 = phi i8 [ %5, %4 ], [ %13, %19 ]
%23 = phi i8* [ %7, %4 ], [ %12, %19 ]
br label %24
24: ; preds = %21, %24
%25 = phi i8 [ %30, %24 ], [ %22, %21 ]
%26 = phi i8* [ %28, %24 ], [ %23, %21 ]
%27 = phi i8* [ %29, %24 ], [ %8, %21 ]
%28 = getelementptr inbounds i8, i8* %26, i64 1
%29 = getelementptr inbounds i8, i8* %27, i64 1
store i8 %25, i8* %27
%30 = load i8, i8* %28
%31 = icmp sgt i8 %30, 32
br i1 %31, label %24, label %32
32: ; preds = %24, %19
%33 = phi i8* [ %8, %19 ], [ %29, %24 ]
%34 = phi i8* [ %12, %19 ], [ %28, %24 ]
%35 = getelementptr inbounds i8, i8* %33, i64 1
store i8 0, i8* %33
%36 = getelementptr inbounds i8*, i8** %6, i64 1
store i8* %8, i8** %6
%37 = load i8, i8* %34
%38 = icmp eq i8 %37, 0
br i1 %38, label %39, label %4
39: ; preds = %32, %17, %1
%40 = phi i8** [ getelementptr inbounds ([64 x i8*], [64 x i8*]* @btic4b_img_ssplit.aa, i64 0, i64 0), %1 ], [ %6, %17 ], [ %36, %32 ]
store i8* null, i8** %40
ret i8** getelementptr inbounds ([64 x i8*], [64 x i8*]* @btic4b_img_ssplit.aa, i64 0, i64 0)
}