const char *decode_wait_status(int status) {
  static char c[128];
  char b[32];
  int first;
  c[0] = '\0';
  first = 1;
  if (WIFCONTINUED(status)) {
    first = 0;
    strlcat(c, "CONT", sizeof(c));
  }
  if (WIFEXITED(status)) {
    if (first)
      first = 0;
    else
      strlcat(c, ",", sizeof(c));
    snprintf(b, sizeof(b), "EXIT(%d)", WEXITSTATUS(status));
    strlcat(c, b, sizeof(c));
  }
  if (WIFSIGNALED(status)) {
    if (first)
      first = 0;
    else
      strlcat(c, ",", sizeof(c));
    snprintf(b, sizeof(b), "SIG(%s)", strsignal(WTERMSIG(status)));
    strlcat(c, b, sizeof(c));
    if (WCOREDUMP(status))
      strlcat(c, ",CORE", sizeof(c));
  }
  if (WIFSTOPPED(status)) {
    if (first)
      first = 0;
    else
      strlcat(c, ",", sizeof(c));
    snprintf(b, sizeof(b), "SIG(%s)", strsignal(WSTOPSIG(status)));
    strlcat(c, b, sizeof(c));
  }
  return (c);
}


x86 assembly (clang, -O0):
<decode_wait_status>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
movb   $0x0,0x2ece(%rip)
movl   $0x1,-0x34(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1070 <WIFCONTINUED@plt>
cmp    $0x0,%eax
je     11fd <decode_wait_status+0x4d>
movl   $0x0,-0x34(%rbp)
lea    0x2ea6(%rip),%rdi
lea    0xe0f(%rip),%rsi
mov    $0x80,%edx
mov    $0x0,%al
call   1030 <strlcat@plt>
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   10c0 <WIFEXITED@plt>
cmp    $0x0,%eax
je     1282 <decode_wait_status+0xd2>
cmpl   $0x0,-0x34(%rbp)
je     1226 <decode_wait_status+0x76>
movl   $0x0,-0x34(%rbp)
jmp    1240 <decode_wait_status+0x90>
lea    0x2e63(%rip),%rdi
lea    0xdd1(%rip),%rsi
mov    $0x80,%edx
mov    $0x0,%al
call   1030 <strlcat@plt>
lea    -0x30(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   10b0 <WEXITSTATUS@plt>
mov    -0x40(%rbp),%rdi
mov    %eax,%ecx
mov    $0x20,%esi
lea    0xda3(%rip),%rdx
mov    $0x0,%al
call   1050 <snprintf@plt>
lea    -0x30(%rbp),%rsi
lea    0x2e1a(%rip),%rdi
mov    $0x80,%edx
mov    $0x0,%al
call   1030 <strlcat@plt>
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1060 <WIFSIGNALED@plt>
cmp    $0x0,%eax
je     1342 <decode_wait_status+0x192>
cmpl   $0x0,-0x34(%rbp)
je     12ab <decode_wait_status+0xfb>
movl   $0x0,-0x34(%rbp)
jmp    12c5 <decode_wait_status+0x115>
lea    0x2dde(%rip),%rdi
lea    0xd4c(%rip),%rsi
mov    $0x80,%edx
mov    $0x0,%al
call   1030 <strlcat@plt>
lea    -0x30(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1090 <WTERMSIG@plt>
mov    %eax,%edi
mov    $0x0,%al
call   10a0 <strsignal@plt>
mov    -0x48(%rbp),%rdi
mov    %eax,%ecx
mov    $0x20,%esi
lea    0xd1e(%rip),%rdx
mov    $0x0,%al
call   1050 <snprintf@plt>
lea    -0x30(%rbp),%rsi
lea    0x2d8c(%rip),%rdi
mov    $0x80,%edx
mov    $0x0,%al
call   1030 <strlcat@plt>
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1040 <WCOREDUMP@plt>
cmp    $0x0,%eax
je     133d <decode_wait_status+0x18d>
lea    0x2d66(%rip),%rdi
lea    0xce7(%rip),%rsi
mov    $0x80,%edx
mov    $0x0,%al
call   1030 <strlcat@plt>
jmp    1342 <decode_wait_status+0x192>
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1080 <WIFSTOPPED@plt>
cmp    $0x0,%eax
je     13d0 <decode_wait_status+0x220>
cmpl   $0x0,-0x34(%rbp)
je     136b <decode_wait_status+0x1bb>
movl   $0x0,-0x34(%rbp)
jmp    1385 <decode_wait_status+0x1d5>
lea    0x2d1e(%rip),%rdi
lea    0xc8c(%rip),%rsi
mov    $0x80,%edx
mov    $0x0,%al
call   1030 <strlcat@plt>
lea    -0x30(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   10d0 <WSTOPSIG@plt>
mov    %eax,%edi
mov    $0x0,%al
call   10a0 <strsignal@plt>
mov    -0x50(%rbp),%rdi
mov    %eax,%ecx
mov    $0x20,%esi
lea    0xc5e(%rip),%rdx
mov    $0x0,%al
call   1050 <snprintf@plt>
lea    -0x30(%rbp),%rsi
lea    0x2ccc(%rip),%rdi
mov    $0x80,%edx
mov    $0x0,%al
call   1030 <strlcat@plt>
lea    0x2cb9(%rip),%rax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<decode_wait_status>:
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %edi,%ebx
movb   $0x0,0x2ed0(%rip)
xor    %eax,%eax
call   1070 <WIFCONTINUED@plt>
test   %eax,%eax
je     120e <decode_wait_status+0x5e>
lea    0x2ebe(%rip),%rdi
lea    0xe27(%rip),%rsi
mov    $0x80,%edx
xor    %eax,%eax
call   1030 <strlcat@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   10c0 <WIFEXITED@plt>
test   %eax,%eax
je     1259 <decode_wait_status+0xa9>
lea    0x2e97(%rip),%rdi
lea    0xe05(%rip),%rsi
mov    $0x80,%edx
xor    %eax,%eax
call   1030 <strlcat@plt>
jmp    121f <decode_wait_status+0x6f>
mov    %ebx,%edi
xor    %eax,%eax
call   10c0 <WIFEXITED@plt>
test   %eax,%eax
je     1367 <decode_wait_status+0x1b7>
mov    %ebx,%edi
xor    %eax,%eax
call   10b0 <WEXITSTATUS@plt>
lea    0xdd8(%rip),%rdx
mov    %rsp,%r14
mov    $0x20,%esi
mov    %r14,%rdi
mov    %eax,%ecx
xor    %eax,%eax
call   1050 <snprintf@plt>
lea    0x2e46(%rip),%rdi
mov    $0x80,%edx
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <strlcat@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   1060 <WIFSIGNALED@plt>
test   %eax,%eax
je     12ee <decode_wait_status+0x13e>
lea    0x2e1f(%rip),%rdi
lea    0xd8d(%rip),%rsi
mov    $0x80,%edx
xor    %eax,%eax
call   1030 <strlcat@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   1090 <WTERMSIG@plt>
mov    %eax,%edi
xor    %eax,%eax
call   10a0 <strsignal@plt>
lea    0xd73(%rip),%rdx
mov    %rsp,%r14
mov    $0x20,%esi
mov    %r14,%rdi
mov    %eax,%ecx
xor    %eax,%eax
call   1050 <snprintf@plt>
lea    0x2dd8(%rip),%rdi
mov    $0x80,%edx
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <strlcat@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   1040 <WCOREDUMP@plt>
test   %eax,%eax
je     12ee <decode_wait_status+0x13e>
lea    0x2db5(%rip),%rdi
lea    0xd36(%rip),%rsi
mov    $0x80,%edx
xor    %eax,%eax
call   1030 <strlcat@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   1080 <WIFSTOPPED@plt>
test   %eax,%eax
je     1358 <decode_wait_status+0x1a8>
lea    0x2d8e(%rip),%rdi
lea    0xcfc(%rip),%rsi
mov    $0x80,%edx
xor    %eax,%eax
call   1030 <strlcat@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   10d0 <WSTOPSIG@plt>
mov    %eax,%edi
xor    %eax,%eax
call   10a0 <strsignal@plt>
lea    0xce2(%rip),%rdx
mov    %rsp,%rbx
mov    $0x20,%esi
mov    %rbx,%rdi
mov    %eax,%ecx
xor    %eax,%eax
call   1050 <snprintf@plt>
lea    0x2d47(%rip),%rdi
mov    $0x80,%edx
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <strlcat@plt>
lea    0x2d31(%rip),%rax
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret
mov    %ebx,%edi
xor    %eax,%eax
call   1060 <WIFSIGNALED@plt>
test   %eax,%eax
jne    1284 <decode_wait_status+0xd4>
mov    %ebx,%edi
xor    %eax,%eax
call   1080 <WIFSTOPPED@plt>
test   %eax,%eax
jne    1315 <decode_wait_status+0x165>
jmp    1358 <decode_wait_status+0x1a8>

LLVM IR (-O0):
@decode_wait_status.c = internal global [128 x i8] zeroinitializer
@.str = [5 x i8] c"CONT\00"
@.str.1 = [2 x i8] c",\00"
@.str.2 = [9 x i8] c"EXIT(%d)\00"
@.str.3 = [8 x i8] c"SIG(%s)\00"
@.str.4 = [6 x i8] c",CORE\00"
define i8* @decode_wait_status(i32 %0) {
%2 = alloca i32
%3 = alloca [32 x i8]
%4 = alloca i32
store i32 %0, i32* %2
store i8 0, i8* getelementptr inbounds ([128 x i8], [128 x i8]* @decode_wait_status.c, i64 0, i64 0)
store i32 1, i32* %4
%5 = load i32, i32* %2
%6 = call i32 (i32, ...) bitcast (i32 (...)* @WIFCONTINUED to i32 (i32, ...)*)(i32 %5)
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %1
store i32 0, i32* %4
%9 = call i32 (i8*, i8*, i64, ...) bitcast (i32 (...)* @strlcat to i32 (i8*, i8*, i64, ...)*)(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @decode_wait_status.c, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 128)
br label %10
10: ; preds = %8, %1
%11 = load i32, i32* %2
%12 = call i32 (i32, ...) bitcast (i32 (...)* @WIFEXITED to i32 (i32, ...)*)(i32 %11)
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %27
14: ; preds = %10
%15 = load i32, i32* %4
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %14
store i32 0, i32* %4
br label %20
18: ; preds = %14
%19 = call i32 (i8*, i8*, i64, ...) bitcast (i32 (...)* @strlcat to i32 (i8*, i8*, i64, ...)*)(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @decode_wait_status.c, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i64 128)
br label %20
20: ; preds = %18, %17
%21 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%22 = load i32, i32* %2
%23 = call i32 (i32, ...) bitcast (i32 (...)* @WEXITSTATUS to i32 (i32, ...)*)(i32 %22)
%24 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %21, i64 32, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 %23)
%25 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%26 = call i32 (i8*, i8*, i64, ...) bitcast (i32 (...)* @strlcat to i32 (i8*, i8*, i64, ...)*)(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @decode_wait_status.c, i64 0, i64 0), i8* %25, i64 128)
br label %27
27: ; preds = %20, %10
%28 = load i32, i32* %2
%29 = call i32 (i32, ...) bitcast (i32 (...)* @WIFSIGNALED to i32 (i32, ...)*)(i32 %28)
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %51
31: ; preds = %27
%32 = load i32, i32* %4
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %31
store i32 0, i32* %4
br label %37
35: ; preds = %31
%36 = call i32 (i8*, i8*, i64, ...) bitcast (i32 (...)* @strlcat to i32 (i8*, i8*, i64, ...)*)(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @decode_wait_status.c, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i64 128)
br label %37
37: ; preds = %35, %34
%38 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%39 = load i32, i32* %2
%40 = call i32 (i32, ...) bitcast (i32 (...)* @WTERMSIG to i32 (i32, ...)*)(i32 %39)
%41 = call i32 (i32, ...) bitcast (i32 (...)* @strsignal to i32 (i32, ...)*)(i32 %40)
%42 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %38, i64 32, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 %41)
%43 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%44 = call i32 (i8*, i8*, i64, ...) bitcast (i32 (...)* @strlcat to i32 (i8*, i8*, i64, ...)*)(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @decode_wait_status.c, i64 0, i64 0), i8* %43, i64 128)
%45 = load i32, i32* %2
%46 = call i32 (i32, ...) bitcast (i32 (...)* @WCOREDUMP to i32 (i32, ...)*)(i32 %45)
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %37
%49 = call i32 (i8*, i8*, i64, ...) bitcast (i32 (...)* @strlcat to i32 (i8*, i8*, i64, ...)*)(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @decode_wait_status.c, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i64 128)
br label %50
50: ; preds = %48, %37
br label %51
51: ; preds = %50, %27
%52 = load i32, i32* %2
%53 = call i32 (i32, ...) bitcast (i32 (...)* @WIFSTOPPED to i32 (i32, ...)*)(i32 %52)
%54 = icmp ne i32 %53, 0
br i1 %54, label %55, label %69
55: ; preds = %51
%56 = load i32, i32* %4
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %59
58: ; preds = %55
store i32 0, i32* %4
br label %61
59: ; preds = %55
%60 = call i32 (i8*, i8*, i64, ...) bitcast (i32 (...)* @strlcat to i32 (i8*, i8*, i64, ...)*)(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @decode_wait_status.c, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i64 128)
br label %61
61: ; preds = %59, %58
%62 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%63 = load i32, i32* %2
%64 = call i32 (i32, ...) bitcast (i32 (...)* @WSTOPSIG to i32 (i32, ...)*)(i32 %63)
%65 = call i32 (i32, ...) bitcast (i32 (...)* @strsignal to i32 (i32, ...)*)(i32 %64)
%66 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %62, i64 32, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 %65)
%67 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%68 = call i32 (i8*, i8*, i64, ...) bitcast (i32 (...)* @strlcat to i32 (i8*, i8*, i64, ...)*)(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @decode_wait_status.c, i64 0, i64 0), i8* %67, i64 128)
br label %69
69: ; preds = %61, %51
ret i8* getelementptr inbounds ([128 x i8], [128 x i8]* @decode_wait_status.c, i64 0, i64 0)
}

LLVM IR (-O2):
@decode_wait_status.c = internal global [128 x i8] zeroinitializer
@.str = [5 x i8] c"CONT\00"
@.str.1 = [2 x i8] c",\00"
@.str.2 = [9 x i8] c"EXIT(%d)\00"
@.str.3 = [8 x i8] c"SIG(%s)\00"
@.str.4 = [6 x i8] c",CORE\00"
define i8* @decode_wait_status(i32 %0) {
%2 = alloca [32 x i8]
%3 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 0
store i8 0, i8* getelementptr inbounds ([128 x i8], [128 x i8]* @decode_wait_status.c, i64 0, i64 0)
%4 = tail call i32 (i32, ...) bitcast (i32 (...)* @WIFCONTINUED to i32 (i32, ...)*)(i32 %0)
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = tail call i32 (i32, ...) bitcast (i32 (...)* @WIFEXITED to i32 (i32, ...)*)(i32 %0)
%8 = icmp eq i32 %7, 0
br i1 %8, label %22, label %15
9: ; preds = %1
%10 = tail call i32 (i8*, i8*, i64, ...) bitcast (i32 (...)* @strlcat to i32 (i8*, i8*, i64, ...)*)(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @decode_wait_status.c, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 128)
%11 = tail call i32 (i32, ...) bitcast (i32 (...)* @WIFEXITED to i32 (i32, ...)*)(i32 %0)
%12 = icmp eq i32 %11, 0
br i1 %12, label %19, label %13
13: ; preds = %9
%14 = tail call i32 (i8*, i8*, i64, ...) bitcast (i32 (...)* @strlcat to i32 (i8*, i8*, i64, ...)*)(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @decode_wait_status.c, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i64 128)
br label %15
15: ; preds = %6, %13
%16 = tail call i32 (i32, ...) bitcast (i32 (...)* @WEXITSTATUS to i32 (i32, ...)*)(i32 %0)
%17 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %3, i64 32, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 %16)
%18 = call i32 (i8*, i8*, i64, ...) bitcast (i32 (...)* @strlcat to i32 (i8*, i8*, i64, ...)*)(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @decode_wait_status.c, i64 0, i64 0), i8* %3, i64 128)
br label %19
19: ; preds = %9, %15
%20 = call i32 (i32, ...) bitcast (i32 (...)* @WIFSIGNALED to i32 (i32, ...)*)(i32 %0)
%21 = icmp eq i32 %20, 0
br i1 %21, label %36, label %25
22: ; preds = %6
%23 = tail call i32 (i32, ...) bitcast (i32 (...)* @WIFSIGNALED to i32 (i32, ...)*)(i32 %0)
%24 = icmp eq i32 %23, 0
br i1 %24, label %39, label %27
25: ; preds = %19
%26 = call i32 (i8*, i8*, i64, ...) bitcast (i32 (...)* @strlcat to i32 (i8*, i8*, i64, ...)*)(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @decode_wait_status.c, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i64 128)
br label %27
27: ; preds = %22, %25
%28 = call i32 (i32, ...) bitcast (i32 (...)* @WTERMSIG to i32 (i32, ...)*)(i32 %0)
%29 = call i32 (i32, ...) bitcast (i32 (...)* @strsignal to i32 (i32, ...)*)(i32 %28)
%30 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %3, i64 32, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 %29)
%31 = call i32 (i8*, i8*, i64, ...) bitcast (i32 (...)* @strlcat to i32 (i8*, i8*, i64, ...)*)(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @decode_wait_status.c, i64 0, i64 0), i8* %3, i64 128)
%32 = call i32 (i32, ...) bitcast (i32 (...)* @WCOREDUMP to i32 (i32, ...)*)(i32 %0)
%33 = icmp eq i32 %32, 0
br i1 %33, label %36, label %34
34: ; preds = %27
%35 = call i32 (i8*, i8*, i64, ...) bitcast (i32 (...)* @strlcat to i32 (i8*, i8*, i64, ...)*)(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @decode_wait_status.c, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i64 128)
br label %36
36: ; preds = %27, %34, %19
%37 = call i32 (i32, ...) bitcast (i32 (...)* @WIFSTOPPED to i32 (i32, ...)*)(i32 %0)
%38 = icmp eq i32 %37, 0
br i1 %38, label %49, label %42
39: ; preds = %22
%40 = tail call i32 (i32, ...) bitcast (i32 (...)* @WIFSTOPPED to i32 (i32, ...)*)(i32 %0)
%41 = icmp eq i32 %40, 0
br i1 %41, label %49, label %44
42: ; preds = %36
%43 = call i32 (i8*, i8*, i64, ...) bitcast (i32 (...)* @strlcat to i32 (i8*, i8*, i64, ...)*)(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @decode_wait_status.c, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i64 128)
br label %44
44: ; preds = %39, %42
%45 = call i32 (i32, ...) bitcast (i32 (...)* @WSTOPSIG to i32 (i32, ...)*)(i32 %0)
%46 = call i32 (i32, ...) bitcast (i32 (...)* @strsignal to i32 (i32, ...)*)(i32 %45)
%47 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %3, i64 32, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 %46)
%48 = call i32 (i8*, i8*, i64, ...) bitcast (i32 (...)* @strlcat to i32 (i8*, i8*, i64, ...)*)(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @decode_wait_status.c, i64 0, i64 0), i8* %3, i64 128)
br label %49
49: ; preds = %39, %44, %36
ret i8* getelementptr inbounds ([128 x i8], [128 x i8]* @decode_wait_status.c, i64 0, i64 0)
}