#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*/ assert(int);
scalar_t__ memcmp(char *, char *, int);
int /*<<< orphan*/ memset(char *, int, size_t const);
scalar_t__ smDescribeFault(char *, size_t const, int);
int smDescribeSmStatus(char *, size_t const, int);
scalar_t__ smDescribeStatus(char *, size_t const, int);
scalar_t__ strcmp(char *, char const *);
scalar_t__ verify_bytes(char *, size_t const, int);
int main(void) {
  const size_t capacity = 1024;
  char buffer[capacity];
  memset(buffer, 0xaa, capacity);
  {
    assert(smDescribeSmStatus(buffer, 0, 0) == 4);
    assert(buffer[0] == 0);
    assert(verify_bytes(&buffer[1], capacity - 1, 0xaa) == 0);
  }
  {
    assert(smDescribeSmStatus(buffer, 3, 0) == 4);
    assert(strcmp("NO", buffer) == 0);
    assert(verify_bytes(&buffer[3], capacity - 3, 0xaa) == 0);
  }
  {
    assert(smDescribeSmStatus(buffer, capacity, 0) == 4);
    assert(memcmp("NONE", buffer, 4) == 0);
  }
  {
    memset(buffer, 0xaa, capacity);
    assert(smDescribeSmStatus(buffer, capacity,
                              1 | 2 | 4 | 8 | 16 | 32 | (1 << 18)) > 0);
    const char *expected = "OK ERR_NODEVICE ERR_BUS ERR_COMMUNICATION "
                           "ERR_PARAMETER ERR_LENGTH EXTRA(262144)";
    assert(strcmp(buffer, expected) == 0);
  }
  {
    memset(buffer, 0xaa, capacity);
    assert(smDescribeFault(buffer, capacity,
                           (1 << (1)) | (1 << (4)) | (1 << (8)) | (1 << 17)) >
           0);
    const char *expected = "FOLLOWERROR ENCODER PROGRAM_OR_MEM EXTRA(131072)";
    assert(strcmp(buffer, expected) == 0);
  }
  {
    memset(buffer, 0xaa, capacity);
    assert(smDescribeStatus(buffer, capacity,
                            (1 << (3)) | (1 << (4)) | (1 << (5)) | (1 << (18)) |
                                (1 << 19)) > 0);
    const char *expected =
        "RUN ENABLED FAULTSTOP SAFE_TORQUE_MODE_ACTIVE EXTRA(524288)";
    assert(strcmp(buffer, expected) == 0);
  }
  {
    memset(buffer, 0xaa, capacity);
    assert(smDescribeStatus(buffer, capacity, 0) == 0);
    assert(buffer[0] == 0);
  }
  {
    memset(buffer, 0xaa, capacity);
    assert(smDescribeFault(buffer, capacity, 0) == 0);
    assert(buffer[0] == 0);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x430,%rsp
movq   $0x400,-0x8(%rbp)
mov    %rsp,%rax
mov    %rax,-0x10(%rbp)
lea    -0x430(%rbp),%rdi
mov    $0xaa,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
lea    -0x430(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   10a0 <smDescribeSmStatus@plt>
cmp    $0x4,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
movsbl -0x430(%rbp),%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
lea    -0x430(%rbp),%rdi
add    $0x1,%rdi
mov    $0x3ff,%esi
mov    $0xaa,%edx
call   1040 <verify_bytes@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
lea    -0x430(%rbp),%rdi
mov    $0x3,%esi
xor    %edx,%edx
call   10a0 <smDescribeSmStatus@plt>
cmp    $0x4,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
lea    0xdc2(%rip),%rdi
lea    -0x430(%rbp),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
lea    -0x430(%rbp),%rdi
add    $0x3,%rdi
mov    $0x3fd,%esi
mov    $0xaa,%edx
call   1040 <verify_bytes@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
lea    -0x430(%rbp),%rdi
mov    $0x400,%esi
xor    %edx,%edx
call   10a0 <smDescribeSmStatus@plt>
cmp    $0x4,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
lea    0xd53(%rip),%rdi
lea    -0x430(%rbp),%rsi
mov    $0x4,%edx
call   1070 <memcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
lea    -0x430(%rbp),%rdi
mov    $0xaa,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
lea    -0x430(%rbp),%rdi
mov    $0x400,%esi
mov    $0x4003f,%edx
call   10a0 <smDescribeSmStatus@plt>
cmp    $0x0,%eax
setg   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
lea    0xcf3(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    -0x430(%rbp),%rdi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
lea    -0x430(%rbp),%rdi
mov    $0xaa,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
lea    -0x430(%rbp),%rdi
mov    $0x400,%esi
mov    $0x20112,%edx
call   1050 <smDescribeFault@plt>
cmp    $0x0,%rax
setg   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
lea    0xcdb(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
lea    -0x430(%rbp),%rdi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
lea    -0x430(%rbp),%rdi
mov    $0xaa,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
lea    -0x430(%rbp),%rdi
mov    $0x400,%esi
mov    $0xc0038,%edx
call   1030 <smDescribeStatus@plt>
cmp    $0x0,%rax
setg   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
lea    0xca3(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rsi
lea    -0x430(%rbp),%rdi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
lea    -0x430(%rbp),%rdi
mov    $0xaa,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
lea    -0x430(%rbp),%rdi
mov    $0x400,%esi
xor    %edx,%edx
call   1030 <smDescribeStatus@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
movsbl -0x430(%rbp),%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
lea    -0x430(%rbp),%rdi
mov    $0xaa,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
lea    -0x430(%rbp),%rdi
mov    $0x400,%esi
xor    %edx,%edx
call   1050 <smDescribeFault@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
movsbl -0x430(%rbp),%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
mov    -0x10(%rbp),%rax
mov    %rax,%rsp
xor    %eax,%eax
add    $0x430,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x400,%rsp
mov    %rsp,%rbx
mov    $0x400,%edx
mov    %rbx,%rdi
mov    $0xaa,%esi
call   1060 <memset@plt>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   10a0 <smDescribeSmStatus@plt>
xor    %edi,%edi
cmp    $0x4,%eax
sete   %dil
call   1090 <assert@plt>
xor    %edi,%edi
cmpb   $0x0,(%rsp)
sete   %dil
call   1090 <assert@plt>
lea    0x1(%rsp),%rdi
mov    $0x3ff,%esi
mov    $0xaa,%edx
call   1040 <verify_bytes@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
mov    $0x3,%esi
mov    %rbx,%rdi
xor    %edx,%edx
call   10a0 <smDescribeSmStatus@plt>
xor    %edi,%edi
cmp    $0x4,%eax
sete   %dil
call   1090 <assert@plt>
lea    0xdf4(%rip),%rdi
mov    %rbx,%rsi
call   1080 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
lea    0x3(%rsp),%rdi
mov    $0x3fd,%esi
mov    $0xaa,%edx
call   1040 <verify_bytes@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
mov    $0x400,%esi
mov    %rbx,%rdi
xor    %edx,%edx
call   10a0 <smDescribeSmStatus@plt>
xor    %edi,%edi
cmp    $0x4,%eax
sete   %dil
call   1090 <assert@plt>
lea    0xd9b(%rip),%rdi
mov    %rbx,%rsi
mov    $0x4,%edx
call   1070 <memcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
mov    $0x400,%edx
mov    %rbx,%rdi
mov    $0xaa,%esi
call   1060 <memset@plt>
mov    $0x400,%esi
mov    %rbx,%rdi
mov    $0x4003f,%edx
call   10a0 <smDescribeSmStatus@plt>
xor    %edi,%edi
test   %eax,%eax
setg   %dil
call   1090 <assert@plt>
lea    0xd4d(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
mov    $0x400,%edx
mov    %rbx,%rdi
mov    $0xaa,%esi
call   1060 <memset@plt>
mov    $0x400,%esi
mov    %rbx,%rdi
mov    $0x20112,%edx
call   1050 <smDescribeFault@plt>
xor    %edi,%edi
test   %rax,%rax
setg   %dil
call   1090 <assert@plt>
lea    0xd4f(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
mov    $0x400,%edx
mov    %rbx,%rdi
mov    $0xaa,%esi
call   1060 <memset@plt>
mov    $0x400,%esi
mov    %rbx,%rdi
mov    $0xc0038,%edx
call   1030 <smDescribeStatus@plt>
xor    %edi,%edi
test   %rax,%rax
setg   %dil
call   1090 <assert@plt>
lea    0xd31(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
mov    $0x400,%edx
mov    %rbx,%rdi
mov    $0xaa,%esi
call   1060 <memset@plt>
mov    $0x400,%esi
mov    %rbx,%rdi
xor    %edx,%edx
call   1030 <smDescribeStatus@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
xor    %edi,%edi
cmpb   $0x0,(%rsp)
sete   %dil
call   1090 <assert@plt>
mov    $0x400,%edx
mov    %rbx,%rdi
mov    $0xaa,%esi
call   1060 <memset@plt>
mov    $0x400,%esi
mov    %rbx,%rdi
xor    %edx,%edx
call   1050 <smDescribeFault@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
xor    %edi,%edi
cmpb   $0x0,(%rsp)
sete   %dil
call   1090 <assert@plt>
xor    %eax,%eax
add    $0x400,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"NO\00"
@.str.1 = [5 x i8] c"NONE\00"
@.str.2 = [81 x i8] c"OK ERR_NODEVICE ERR_BUS ERR_COMMUNICATION ERR_PARAMETER ERR_LENGTH EXTRA(262144)\00"
@.str.3 = [49 x i8] c"FOLLOWERROR ENCODER PROGRAM_OR_MEM EXTRA(131072)\00"
@.str.4 = [60 x i8] c"RUN ENABLED FAULTSTOP SAFE_TORQUE_MODE_ACTIVE EXTRA(524288)\00"
define i32 @main() {
%1 = alloca i64
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
store i64 1024, i64* %1
%6 = call i8* @llvm.stacksave()
store i8* %6, i8** %2
%7 = alloca i8, i64 1024
%8 = call i32 @memset(i8* %7, i32 170, i64 1024)
%9 = call i32 @smDescribeSmStatus(i8* %7, i64 0, i32 0)
%10 = icmp eq i32 %9, 4
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 %11)
%13 = getelementptr inbounds i8, i8* %7, i64 0
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = zext i1 %16 to i32
%18 = call i32 @assert(i32 %17)
%19 = getelementptr inbounds i8, i8* %7, i64 1
%20 = call i64 @verify_bytes(i8* %19, i64 1023, i32 170)
%21 = icmp eq i64 %20, 0
%22 = zext i1 %21 to i32
%23 = call i32 @assert(i32 %22)
%24 = call i32 @smDescribeSmStatus(i8* %7, i64 3, i32 0)
%25 = icmp eq i32 %24, 4
%26 = zext i1 %25 to i32
%27 = call i32 @assert(i32 %26)
%28 = call i64 @strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %7)
%29 = icmp eq i64 %28, 0
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 %30)
%32 = getelementptr inbounds i8, i8* %7, i64 3
%33 = call i64 @verify_bytes(i8* %32, i64 1021, i32 170)
%34 = icmp eq i64 %33, 0
%35 = zext i1 %34 to i32
%36 = call i32 @assert(i32 %35)
%37 = call i32 @smDescribeSmStatus(i8* %7, i64 1024, i32 0)
%38 = icmp eq i32 %37, 4
%39 = zext i1 %38 to i32
%40 = call i32 @assert(i32 %39)
%41 = call i64 @memcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %7, i32 4)
%42 = icmp eq i64 %41, 0
%43 = zext i1 %42 to i32
%44 = call i32 @assert(i32 %43)
%45 = call i32 @memset(i8* %7, i32 170, i64 1024)
%46 = call i32 @smDescribeSmStatus(i8* %7, i64 1024, i32 262207)
%47 = icmp sgt i32 %46, 0
%48 = zext i1 %47 to i32
%49 = call i32 @assert(i32 %48)
store i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.2, i64 0, i64 0), i8** %3
%50 = load i8*, i8** %3
%51 = call i64 @strcmp(i8* %7, i8* %50)
%52 = icmp eq i64 %51, 0
%53 = zext i1 %52 to i32
%54 = call i32 @assert(i32 %53)
%55 = call i32 @memset(i8* %7, i32 170, i64 1024)
%56 = call i64 @smDescribeFault(i8* %7, i64 1024, i32 131346)
%57 = icmp sgt i64 %56, 0
%58 = zext i1 %57 to i32
%59 = call i32 @assert(i32 %58)
store i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0), i8** %4
%60 = load i8*, i8** %4
%61 = call i64 @strcmp(i8* %7, i8* %60)
%62 = icmp eq i64 %61, 0
%63 = zext i1 %62 to i32
%64 = call i32 @assert(i32 %63)
%65 = call i32 @memset(i8* %7, i32 170, i64 1024)
%66 = call i64 @smDescribeStatus(i8* %7, i64 1024, i32 786488)
%67 = icmp sgt i64 %66, 0
%68 = zext i1 %67 to i32
%69 = call i32 @assert(i32 %68)
store i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.4, i64 0, i64 0), i8** %5
%70 = load i8*, i8** %5
%71 = call i64 @strcmp(i8* %7, i8* %70)
%72 = icmp eq i64 %71, 0
%73 = zext i1 %72 to i32
%74 = call i32 @assert(i32 %73)
%75 = call i32 @memset(i8* %7, i32 170, i64 1024)
%76 = call i64 @smDescribeStatus(i8* %7, i64 1024, i32 0)
%77 = icmp eq i64 %76, 0
%78 = zext i1 %77 to i32
%79 = call i32 @assert(i32 %78)
%80 = getelementptr inbounds i8, i8* %7, i64 0
%81 = load i8, i8* %80
%82 = sext i8 %81 to i32
%83 = icmp eq i32 %82, 0
%84 = zext i1 %83 to i32
%85 = call i32 @assert(i32 %84)
%86 = call i32 @memset(i8* %7, i32 170, i64 1024)
%87 = call i64 @smDescribeFault(i8* %7, i64 1024, i32 0)
%88 = icmp eq i64 %87, 0
%89 = zext i1 %88 to i32
%90 = call i32 @assert(i32 %89)
%91 = getelementptr inbounds i8, i8* %7, i64 0
%92 = load i8, i8* %91
%93 = sext i8 %92 to i32
%94 = icmp eq i32 %93, 0
%95 = zext i1 %94 to i32
%96 = call i32 @assert(i32 %95)
%97 = load i8*, i8** %2
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"NO\00"
@.str.1 = [5 x i8] c"NONE\00"
@.str.2 = [81 x i8] c"OK ERR_NODEVICE ERR_BUS ERR_COMMUNICATION ERR_PARAMETER ERR_LENGTH EXTRA(262144)\00"
@.str.3 = [49 x i8] c"FOLLOWERROR ENCODER PROGRAM_OR_MEM EXTRA(131072)\00"
@.str.4 = [60 x i8] c"RUN ENABLED FAULTSTOP SAFE_TORQUE_MODE_ACTIVE EXTRA(524288)\00"
define i32 @main() {
%1 = alloca [1024 x i8]
%2 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%3 = call i32 @memset(i8* %2, i32 170, i64 1024)
%4 = call i32 @smDescribeSmStatus(i8* %2, i64 0, i32 0)
%5 = icmp eq i32 %4, 4
%6 = zext i1 %5 to i32
%7 = call i32 @assert(i32 %6)
%8 = load i8, i8* %2
%9 = icmp eq i8 %8, 0
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 %10)
%12 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 1
%13 = call i64 @verify_bytes(i8* %12, i64 1023, i32 170)
%14 = icmp eq i64 %13, 0
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 %15)
%17 = call i32 @smDescribeSmStatus(i8* %2, i64 3, i32 0)
%18 = icmp eq i32 %17, 4
%19 = zext i1 %18 to i32
%20 = call i32 @assert(i32 %19)
%21 = call i64 @strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %2)
%22 = icmp eq i64 %21, 0
%23 = zext i1 %22 to i32
%24 = call i32 @assert(i32 %23)
%25 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 3
%26 = call i64 @verify_bytes(i8* %25, i64 1021, i32 170)
%27 = icmp eq i64 %26, 0
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 %28)
%30 = call i32 @smDescribeSmStatus(i8* %2, i64 1024, i32 0)
%31 = icmp eq i32 %30, 4
%32 = zext i1 %31 to i32
%33 = call i32 @assert(i32 %32)
%34 = call i64 @memcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %2, i32 4)
%35 = icmp eq i64 %34, 0
%36 = zext i1 %35 to i32
%37 = call i32 @assert(i32 %36)
%38 = call i32 @memset(i8* %2, i32 170, i64 1024)
%39 = call i32 @smDescribeSmStatus(i8* %2, i64 1024, i32 262207)
%40 = icmp sgt i32 %39, 0
%41 = zext i1 %40 to i32
%42 = call i32 @assert(i32 %41)
%43 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.2, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
%45 = zext i1 %44 to i32
%46 = call i32 @assert(i32 %45)
%47 = call i32 @memset(i8* %2, i32 170, i64 1024)
%48 = call i64 @smDescribeFault(i8* %2, i64 1024, i32 131346)
%49 = icmp sgt i64 %48, 0
%50 = zext i1 %49 to i32
%51 = call i32 @assert(i32 %50)
%52 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
%54 = zext i1 %53 to i32
%55 = call i32 @assert(i32 %54)
%56 = call i32 @memset(i8* %2, i32 170, i64 1024)
%57 = call i64 @smDescribeStatus(i8* %2, i64 1024, i32 786488)
%58 = icmp sgt i64 %57, 0
%59 = zext i1 %58 to i32
%60 = call i32 @assert(i32 %59)
%61 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.4, i64 0, i64 0))
%62 = icmp eq i64 %61, 0
%63 = zext i1 %62 to i32
%64 = call i32 @assert(i32 %63)
%65 = call i32 @memset(i8* %2, i32 170, i64 1024)
%66 = call i64 @smDescribeStatus(i8* %2, i64 1024, i32 0)
%67 = icmp eq i64 %66, 0
%68 = zext i1 %67 to i32
%69 = call i32 @assert(i32 %68)
%70 = load i8, i8* %2
%71 = icmp eq i8 %70, 0
%72 = zext i1 %71 to i32
%73 = call i32 @assert(i32 %72)
%74 = call i32 @memset(i8* %2, i32 170, i64 1024)
%75 = call i64 @smDescribeFault(i8* %2, i64 1024, i32 0)
%76 = icmp eq i64 %75, 0
%77 = zext i1 %76 to i32
%78 = call i32 @assert(i32 %77)
%79 = load i8, i8* %2
%80 = icmp eq i8 %79, 0
%81 = zext i1 %80 to i32
%82 = call i32 @assert(i32 %81)
ret i32 0
}