#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*/ shiftleft(char *, int);
char *spcadjust(char **strvalues, int i) {
  while (strvalues[i][0] == '&' || strvalues[i][0] == ' ')
    shiftleft(strvalues[i], 1);
  return strvalues[i];
}


x86 assembly (clang, -O0):
<spcadjust>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x26,%ecx
mov    %al,-0xd(%rbp)
je     1154 <spcadjust+0x44>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
sete   %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
test   $0x1,%al
jne    1164 <spcadjust+0x54>
jmp    117f <spcadjust+0x6f>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x1,%esi
call   1030 <shiftleft@plt>
jmp    111f <spcadjust+0xf>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<spcadjust>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
movslq %esi,%rbx
jmp    112a <spcadjust+0x1a>
nopl   0x0(%rax)
mov    $0x1,%esi
call   1030 <shiftleft@plt>
mov    (%r14,%rbx,8),%rdi
movzbl (%rdi),%eax
cmp    $0x26,%al
je     1120 <spcadjust+0x10>
cmp    $0x20,%al
je     1120 <spcadjust+0x10>
mov    %rdi,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i8* @spcadjust(i8** %0, i32 %1) {
%3 = alloca i8**
%4 = alloca i32
store i8** %0, i8*** %3
store i32 %1, i32* %4
br label %5
5: ; preds = %27, %2
%6 = load i8**, i8*** %3
%7 = load i32, i32* %4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8*, i8** %6, i64 %8
%10 = load i8*, i8** %9
%11 = getelementptr inbounds i8, i8* %10, i64 0
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 38
br i1 %14, label %25, label %15
15: ; preds = %5
%16 = load i8**, i8*** %3
%17 = load i32, i32* %4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8*, i8** %16, i64 %18
%20 = load i8*, i8** %19
%21 = getelementptr inbounds i8, i8* %20, i64 0
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 32
br label %25
25: ; preds = %15, %5
%26 = phi i1 [ true, %5 ], [ %24, %15 ]
br i1 %26, label %27, label %34
27: ; preds = %25
%28 = load i8**, i8*** %3
%29 = load i32, i32* %4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8*, i8** %28, i64 %30
%32 = load i8*, i8** %31
%33 = call i32 @shiftleft(i8* %32, i32 1)
br label %5
34: ; preds = %25
%35 = load i8**, i8*** %3
%36 = load i32, i32* %4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8*, i8** %35, i64 %37
%39 = load i8*, i8** %38
ret i8* %39
}

LLVM IR (-O2):
define i8* @spcadjust(i8** nocapture %0, i32 %1) {
%3 = sext i32 %1 to i64
%4 = getelementptr inbounds i8*, i8** %0, i64 %3
br label %5
5: ; preds = %8, %2
%6 = load i8*, i8** %4
%7 = load i8, i8* %6
switch i8 %7, label %10 [
i8 38, label %8
i8 32, label %8
]
8: ; preds = %5, %5
%9 = tail call i32 @shiftleft(i8* %6, i32 1)
br label %5
10: ; preds = %5
ret i8* %6
}