#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 */
typedef int /*<<< orphan*/ psinfo;

/* Variables and functions */
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ close(int);
scalar_t__ isspace(char);
int /*<<< orphan*/ lprintf(int, char *, char *);
int open(char *, int /*<<< orphan*/);
int read(int, char *, int);
int /*<<< orphan*/ sprintf(char *, char *, int);
char *get_ps_args(int pid) {
  char procfn[30];
  int procfd;
  int i, l;
  static char psinfo[60];
  sprintf(procfn, "/proc/%d/cmdline", pid);
  procfd = open(procfn, O_RDONLY);
  if (procfd < 0) {
    lprintf(1, "cannot open %s", procfn);
    return NULL;
  }
  l = read(procfd, psinfo, sizeof(psinfo) - 1);
  if (l < 0) {
    lprintf(1, "reading %s failed", procfn);
    close(procfd);
    return NULL;
  }
  close(procfd);
  psinfo[l] = 0;
  for (i = 0; i < l; i++)
    if (psinfo[i] == 0)
      psinfo[i] = ' ';
  while (l > 0 && isspace(psinfo[l - 1]))
    psinfo[--l] = '\0';
  return psinfo;
}


x86 assembly (clang, -O0):
<get_ps_args>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0xc(%rbp)
lea    -0x30(%rbp),%rdi
mov    -0xc(%rbp),%edx
lea    0xe87(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0x30(%rbp),%rdi
mov    0x2e5f(%rip),%rax
mov    (%rax),%esi
call   1060 <open@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jge    11bf <get_ps_args+0x5f>
lea    -0x30(%rbp),%rdx
mov    $0x1,%edi
lea    0xe64(%rip),%rsi
call   1080 <lprintf@plt>
movq   $0x0,-0x8(%rbp)
jmp    12dc <get_ps_args+0x17c>
mov    -0x34(%rbp),%edi
lea    0x2e97(%rip),%rsi
mov    $0x3b,%edx
call   1050 <read@plt>
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
jge    120a <get_ps_args+0xaa>
lea    -0x30(%rbp),%rdx
mov    $0x1,%edi
lea    0xe30(%rip),%rsi
call   1080 <lprintf@plt>
mov    -0x34(%rbp),%edi
call   1030 <close@plt>
movq   $0x0,-0x8(%rbp)
jmp    12dc <get_ps_args+0x17c>
mov    -0x34(%rbp),%edi
call   1030 <close@plt>
movslq -0x3c(%rbp),%rcx
lea    0x2e43(%rip),%rax
movb   $0x0,(%rax,%rcx,1)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    126e <get_ps_args+0x10e>
movslq -0x38(%rbp),%rcx
lea    0x2e21(%rip),%rax
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
jne    125b <get_ps_args+0xfb>
movslq -0x38(%rbp),%rcx
lea    0x2e09(%rip),%rax
movb   $0x20,(%rax,%rcx,1)
jmp    1260 <get_ps_args+0x100>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1228 <get_ps_args+0xc8>
jmp    1273 <get_ps_args+0x113>
xor    %eax,%eax
cmpl   $0x0,-0x3c(%rbp)
mov    %al,-0x3d(%rbp)
jle    12a5 <get_ps_args+0x145>
mov    -0x3c(%rbp),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    0x2dce(%rip),%rax
movsbl (%rax,%rcx,1),%edi
call   1040 <isspace@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x3d(%rbp)
mov    -0x3d(%rbp),%al
test   $0x1,%al
jne    12b5 <get_ps_args+0x155>
jmp    12d1 <get_ps_args+0x171>
mov    -0x3c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x3c(%rbp)
movslq %eax,%rcx
lea    0x2d98(%rip),%rax
movb   $0x0,(%rax,%rcx,1)
jmp    1273 <get_ps_args+0x113>
lea    0x2d88(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_ps_args>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %edi,%edx
lea    0xe8d(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1070 <sprintf@plt>
mov    0x2e63(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1060 <open@plt>
test   %eax,%eax
js     11d8 <get_ps_args+0x78>
mov    %eax,%ebp
lea    0x2ec4(%rip),%r15
mov    %eax,%edi
mov    %r15,%rsi
mov    $0x3b,%edx
call   1050 <read@plt>
test   %eax,%eax
js     11f4 <get_ps_args+0x94>
mov    %eax,%r14d
mov    %ebp,%edi
call   1030 <close@plt>
mov    %r14d,%ebp
movb   $0x0,0x0(%rbp,%r15,1)
test   %r14d,%r14d
je     1401 <get_ps_args+0x2a1>
cmp    $0x10,%r14d
jae    1217 <get_ps_args+0xb7>
xor    %eax,%eax
jmp    140f <get_ps_args+0x2af>
lea    0xe32(%rip),%rsi
mov    %rsp,%rdx
mov    $0x1,%edi
call   1080 <lprintf@plt>
xor    %r15d,%r15d
jmp    1401 <get_ps_args+0x2a1>
lea    0xe25(%rip),%rsi
mov    %rsp,%rdx
mov    $0x1,%edi
call   1080 <lprintf@plt>
mov    %ebp,%edi
call   1030 <close@plt>
xor    %r15d,%r15d
jmp    1401 <get_ps_args+0x2a1>
mov    %ebp,%eax
and    $0xfffffff0,%eax
xor    %ecx,%ecx
lea    0x2e3b(%rip),%rdx
pxor   %xmm0,%xmm0
jmp    123d <get_ps_args+0xdd>
nopl   0x0(%rax,%rax,1)
add    $0x10,%rcx
cmp    %rcx,%rax
je     13c6 <get_ps_args+0x266>
movq   (%rcx,%rdx,1),%xmm2
movdqa %xmm2,%xmm1
pcmpeqb %xmm0,%xmm1
movd   %xmm1,%esi
test   $0x1,%sil
je     1258 <get_ps_args+0xf8>
movb   $0x20,(%rcx,%rdx,1)
movdqa %xmm1,%xmm3
pslld  $0x8,%xmm3
movd   %xmm3,%esi
shr    $0x10,%esi
test   $0x1,%sil
je     1273 <get_ps_args+0x113>
movb   $0x20,0x1(%rcx,%rdx,1)
pshuflw $0x55,%xmm2,%xmm3
pcmpeqb %xmm0,%xmm3
pextrw $0x2,%xmm3,%esi
test   $0x1,%sil
je     128c <get_ps_args+0x12c>
movb   $0x20,0x2(%rcx,%rdx,1)
movdqa %xmm1,%xmm3
psllq  $0x18,%xmm3
pextrw $0x3,%xmm3,%esi
test   $0x1,%sil
je     12a5 <get_ps_args+0x145>
movb   $0x20,0x3(%rcx,%rdx,1)
pshufd $0x55,%xmm2,%xmm2
pcmpeqb %xmm0,%xmm2
pextrw $0x4,%xmm2,%esi
test   $0x1,%sil
je     12be <get_ps_args+0x15e>
movb   $0x20,0x4(%rcx,%rdx,1)
movdqa %xmm1,%xmm2
pslldq $0x5,%xmm2
pextrw $0x5,%xmm2,%esi
test   $0x1,%sil
je     12d7 <get_ps_args+0x177>
movb   $0x20,0x5(%rcx,%rdx,1)
pextrw $0x3,%xmm1,%esi
test   $0x1,%sil
je     12e7 <get_ps_args+0x187>
movb   $0x20,0x6(%rcx,%rdx,1)
pslldq $0x7,%xmm1
pextrw $0x7,%xmm1,%esi
test   $0x1,%sil
je     12fc <get_ps_args+0x19c>
movb   $0x20,0x7(%rcx,%rdx,1)
movq   0x8(%rcx,%rdx,1),%xmm2
movdqa %xmm2,%xmm1
pcmpeqb %xmm0,%xmm1
movd   %xmm1,%esi
test   $0x1,%sil
je     1319 <get_ps_args+0x1b9>
movb   $0x20,0x8(%rcx,%rdx,1)
movdqa %xmm1,%xmm3
pslld  $0x8,%xmm3
movd   %xmm3,%esi
shr    $0x10,%esi
test   $0x1,%sil
je     1334 <get_ps_args+0x1d4>
movb   $0x20,0x9(%rcx,%rdx,1)
pshuflw $0x55,%xmm2,%xmm3
pcmpeqb %xmm0,%xmm3
pextrw $0x2,%xmm3,%esi
test   $0x1,%sil
je     134d <get_ps_args+0x1ed>
movb   $0x20,0xa(%rcx,%rdx,1)
movdqa %xmm1,%xmm3
psllq  $0x18,%xmm3
pextrw $0x3,%xmm3,%esi
test   $0x1,%sil
je     1366 <get_ps_args+0x206>
movb   $0x20,0xb(%rcx,%rdx,1)
pshufd $0x55,%xmm2,%xmm2
pcmpeqb %xmm0,%xmm2
pextrw $0x4,%xmm2,%esi
test   $0x1,%sil
je     137f <get_ps_args+0x21f>
movb   $0x20,0xc(%rcx,%rdx,1)
movdqa %xmm1,%xmm2
pslldq $0x5,%xmm2
pextrw $0x5,%xmm2,%esi
test   $0x1,%sil
je     1398 <get_ps_args+0x238>
movb   $0x20,0xd(%rcx,%rdx,1)
pextrw $0x3,%xmm1,%esi
test   $0x1,%sil
je     13a8 <get_ps_args+0x248>
movb   $0x20,0xe(%rcx,%rdx,1)
pslldq $0x7,%xmm1
pextrw $0x7,%xmm1,%esi
test   $0x1,%sil
je     1230 <get_ps_args+0xd0>
movb   $0x20,0xf(%rcx,%rdx,1)
jmp    1230 <get_ps_args+0xd0>
cmp    %rbp,%rax
jne    140f <get_ps_args+0x2af>
test   %r14d,%r14d
jle    1401 <get_ps_args+0x2a1>
add    $0x1,%rbp
lea    0x2c85(%rip),%r15
nopl   0x0(%rax,%rax,1)
lea    -0x2(%rbp),%ebx
movsbl (%rbx,%r15,1),%edi
call   1040 <isspace@plt>
test   %rax,%rax
je     1401 <get_ps_args+0x2a1>
movb   $0x0,(%rbx,%r15,1)
add    $0xffffffffffffffff,%rbp
cmp    $0x1,%rbp
jg     13e0 <get_ps_args+0x280>
mov    %r15,%rax
add    $0x28,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x2c4a(%rip),%rcx
jmp    1429 <get_ps_args+0x2c9>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rax
cmp    %rax,%rbp
je     13cb <get_ps_args+0x26b>
cmpb   $0x0,(%rax,%rcx,1)
jne    1420 <get_ps_args+0x2c0>
movb   $0x20,(%rax,%rcx,1)
jmp    1420 <get_ps_args+0x2c0>

LLVM IR (-O0):
@get_ps_args.psinfo = internal global [60 x i8] zeroinitializer
@.str = [17 x i8] c"/proc/%d/cmdline\00"
@O_RDONLY = global i32 0
@.str.1 = [15 x i8] c"cannot open %s\00"
@.str.2 = [18 x i8] c"reading %s failed\00"
define i8* @get_ps_args(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca [30 x i8]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %3
%8 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 0
%9 = load i32, i32* %3
%10 = call i32 @sprintf(i8* %8, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %9)
%11 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 0
%12 = load i32, i32* @O_RDONLY
%13 = call i32 @open(i8* %11, i32 %12)
store i32 %13, i32* %5
%14 = load i32, i32* %5
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %1
%17 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 0
%18 = call i32 @lprintf(i32 1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* %17)
store i8* null, i8** %2
br label %74
19: ; preds = %1
%20 = load i32, i32* %5
%21 = call i32 @read(i32 %20, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 0), i32 59)
store i32 %21, i32* %7
%22 = load i32, i32* %7
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %29
24: ; preds = %19
%25 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 0
%26 = call i32 @lprintf(i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i8* %25)
%27 = load i32, i32* %5
%28 = call i32 @close(i32 %27)
store i8* null, i8** %2
br label %74
29: ; preds = %19
%30 = load i32, i32* %5
%31 = call i32 @close(i32 %30)
%32 = load i32, i32* %7
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %33
store i8 0, i8* %34
store i32 0, i32* %6
br label %35
35: ; preds = %51, %29
%36 = load i32, i32* %6
%37 = load i32, i32* %7
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %54
39: ; preds = %35
%40 = load i32, i32* %6
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %41
%43 = load i8, i8* %42
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %39
%47 = load i32, i32* %6
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %48
store i8 32, i8* %49
br label %50
50: ; preds = %46, %39
br label %51
51: ; preds = %50
%52 = load i32, i32* %6
%53 = add nsw i32 %52, 1
store i32 %53, i32* %6
br label %35
54: ; preds = %35
br label %55
55: ; preds = %68, %54
%56 = load i32, i32* %7
%57 = icmp sgt i32 %56, 0
br i1 %57, label %58, label %66
58: ; preds = %55
%59 = load i32, i32* %7
%60 = sub nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %61
%63 = load i8, i8* %62
%64 = call i64 @isspace(i8 signext %63)
%65 = icmp ne i64 %64, 0
br label %66
66: ; preds = %58, %55
%67 = phi i1 [ false, %55 ], [ %65, %58 ]
br i1 %67, label %68, label %73
68: ; preds = %66
%69 = load i32, i32* %7
%70 = add nsw i32 %69, -1
store i32 %70, i32* %7
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %71
store i8 0, i8* %72
br label %55
73: ; preds = %66
store i8* getelementptr inbounds ([60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 0), i8** %2
br label %74
74: ; preds = %73, %24, %16
%75 = load i8*, i8** %2
ret i8* %75
}

LLVM IR (-O2):
@get_ps_args.psinfo = internal global [60 x i8] zeroinitializer
@.str = [17 x i8] c"/proc/%d/cmdline\00"
@O_RDONLY = global i32 0
@.str.1 = [15 x i8] c"cannot open %s\00"
@.str.2 = [18 x i8] c"reading %s failed\00"
define i8* @get_ps_args(i32 %0) {
%2 = alloca [30 x i8]
%3 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 0
%4 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %0)
%5 = load i32, i32* @O_RDONLY
%6 = call i32 @open(i8* %3, i32 %5)
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 @lprintf(i32 1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* %3)
br label %141
10: ; preds = %1
%11 = tail call i32 @read(i32 %6, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 0), i32 59)
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = call i32 @lprintf(i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i8* %3)
%15 = call i32 @close(i32 %6)
br label %141
16: ; preds = %10
%17 = tail call i32 @close(i32 %6)
%18 = zext i32 %11 to i64
%19 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %18
store i8 0, i8* %19
%20 = icmp eq i32 %11, 0
br i1 %20, label %141, label %21
21: ; preds = %16
%22 = icmp ult i32 %11, 16
br i1 %22, label %118, label %23
23: ; preds = %21
%24 = and i64 %18, 4294967280
br label %25
25: ; preds = %113, %23
%26 = phi i64 [ 0, %23 ], [ %114, %113 ]
%27 = or i64 %26, 8
%28 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %26
%29 = bitcast i8* %28 to <8 x i8>*
%30 = load <8 x i8>, <8 x i8>* %29
%31 = getelementptr inbounds i8, i8* %28, i64 8
%32 = bitcast i8* %31 to <8 x i8>*
%33 = load <8 x i8>, <8 x i8>* %32
%34 = icmp eq <8 x i8> %30, zeroinitializer
%35 = icmp eq <8 x i8> %33, zeroinitializer
%36 = extractelement <8 x i1> %34, i64 0
br i1 %36, label %37, label %39
37: ; preds = %25
%38 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %26
store i8 32, i8* %38
br label %39
39: ; preds = %37, %25
%40 = extractelement <8 x i1> %34, i64 1
br i1 %40, label %41, label %44
41: ; preds = %39
%42 = or i64 %26, 1
%43 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %42
store i8 32, i8* %43
br label %44
44: ; preds = %41, %39
%45 = extractelement <8 x i1> %34, i64 2
br i1 %45, label %46, label %49
46: ; preds = %44
%47 = or i64 %26, 2
%48 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %47
store i8 32, i8* %48
br label %49
49: ; preds = %46, %44
%50 = extractelement <8 x i1> %34, i64 3
br i1 %50, label %51, label %54
51: ; preds = %49
%52 = or i64 %26, 3
%53 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %52
store i8 32, i8* %53
br label %54
54: ; preds = %51, %49
%55 = extractelement <8 x i1> %34, i64 4
br i1 %55, label %56, label %59
56: ; preds = %54
%57 = or i64 %26, 4
%58 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %57
store i8 32, i8* %58
br label %59
59: ; preds = %56, %54
%60 = extractelement <8 x i1> %34, i64 5
br i1 %60, label %61, label %64
61: ; preds = %59
%62 = or i64 %26, 5
%63 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %62
store i8 32, i8* %63
br label %64
64: ; preds = %61, %59
%65 = extractelement <8 x i1> %34, i64 6
br i1 %65, label %66, label %69
66: ; preds = %64
%67 = or i64 %26, 6
%68 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %67
store i8 32, i8* %68
br label %69
69: ; preds = %66, %64
%70 = extractelement <8 x i1> %34, i64 7
br i1 %70, label %71, label %74
71: ; preds = %69
%72 = or i64 %26, 7
%73 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %72
store i8 32, i8* %73
br label %74
74: ; preds = %71, %69
%75 = extractelement <8 x i1> %35, i64 0
br i1 %75, label %76, label %78
76: ; preds = %74
%77 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %27
store i8 32, i8* %77
br label %78
78: ; preds = %76, %74
%79 = extractelement <8 x i1> %35, i64 1
br i1 %79, label %80, label %83
80: ; preds = %78
%81 = or i64 %26, 9
%82 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %81
store i8 32, i8* %82
br label %83
83: ; preds = %80, %78
%84 = extractelement <8 x i1> %35, i64 2
br i1 %84, label %85, label %88
85: ; preds = %83
%86 = or i64 %26, 10
%87 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %86
store i8 32, i8* %87
br label %88
88: ; preds = %85, %83
%89 = extractelement <8 x i1> %35, i64 3
br i1 %89, label %90, label %93
90: ; preds = %88
%91 = or i64 %26, 11
%92 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %91
store i8 32, i8* %92
br label %93
93: ; preds = %90, %88
%94 = extractelement <8 x i1> %35, i64 4
br i1 %94, label %95, label %98
95: ; preds = %93
%96 = or i64 %26, 12
%97 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %96
store i8 32, i8* %97
br label %98
98: ; preds = %95, %93
%99 = extractelement <8 x i1> %35, i64 5
br i1 %99, label %100, label %103
100: ; preds = %98
%101 = or i64 %26, 13
%102 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %101
store i8 32, i8* %102
br label %103
103: ; preds = %100, %98
%104 = extractelement <8 x i1> %35, i64 6
br i1 %104, label %105, label %108
105: ; preds = %103
%106 = or i64 %26, 14
%107 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %106
store i8 32, i8* %107
br label %108
108: ; preds = %105, %103
%109 = extractelement <8 x i1> %35, i64 7
br i1 %109, label %110, label %113
110: ; preds = %108
%111 = or i64 %26, 15
%112 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %111
store i8 32, i8* %112
br label %113
113: ; preds = %110, %108
%114 = add nuw i64 %26, 16
%115 = icmp eq i64 %114, %24
br i1 %115, label %116, label %25
116: ; preds = %113
%117 = icmp eq i64 %24, %18
br i1 %117, label %120, label %118
118: ; preds = %21, %116
%119 = phi i64 [ 0, %21 ], [ %24, %116 ]
br label %122
120: ; preds = %128, %116
%121 = icmp sgt i32 %11, 0
br i1 %121, label %131, label %141
122: ; preds = %118, %128
%123 = phi i64 [ %129, %128 ], [ %119, %118 ]
%124 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %123
%125 = load i8, i8* %124
%126 = icmp eq i8 %125, 0
br i1 %126, label %127, label %128
127: ; preds = %122
store i8 32, i8* %124
br label %128
128: ; preds = %122, %127
%129 = add nuw nsw i64 %123, 1
%130 = icmp eq i64 %129, %18
br i1 %130, label %120, label %122
131: ; preds = %120, %139
%132 = phi i64 [ %133, %139 ], [ %18, %120 ]
%133 = add nsw i64 %132, -1
%134 = and i64 %133, 4294967295
%135 = getelementptr inbounds [60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 %134
%136 = load i8, i8* %135
%137 = tail call i64 @isspace(i8 signext %136)
%138 = icmp eq i64 %137, 0
br i1 %138, label %141, label %139
139: ; preds = %131
store i8 0, i8* %135
%140 = icmp sgt i64 %132, 1
br i1 %140, label %131, label %141
141: ; preds = %139, %131, %16, %120, %13, %8
%142 = phi i8* [ null, %8 ], [ null, %13 ], [ getelementptr inbounds ([60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 0), %120 ], [ getelementptr inbounds ([60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 0), %16 ], [ getelementptr inbounds ([60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 0), %131 ], [ getelementptr inbounds ([60 x i8], [60 x i8]* @get_ps_args.psinfo, i64 0, i64 0), %139 ]
ret i8* %142
}