#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*/ in0;

/* Variables and functions */
uintptr_t _br2_load(int /*<<< orphan*/, int);
uintptr_t internal_fiat_p384_nonzero(uintptr_t in0) {
  uintptr_t x0, x1, x2, x3, x4, x5, x6, out0, x7;
  x0 = _br2_load((in0) + ((uintptr_t)0ULL), sizeof(uintptr_t));
  x1 = _br2_load((in0) + ((uintptr_t)8ULL), sizeof(uintptr_t));
  x2 = _br2_load((in0) + ((uintptr_t)16ULL), sizeof(uintptr_t));
  x3 = _br2_load((in0) + ((uintptr_t)24ULL), sizeof(uintptr_t));
  x4 = _br2_load((in0) + ((uintptr_t)32ULL), sizeof(uintptr_t));
  x5 = _br2_load((in0) + ((uintptr_t)40ULL), sizeof(uintptr_t));
  x6 = (x0) | ((x1) | ((x2) | ((x3) | ((x4) | (x5)))));
  x7 = x6;
  out0 = x7;
  return out0;
}


x86 assembly (clang, -O0):
<internal_fiat_p384_nonzero>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x0,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
add    $0x8,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
add    $0x18,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rax
add    $0x28,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdi
or     -0x38(%rbp),%rdi
or     %rdi,%rsi
or     %rsi,%rdx
or     %rdx,%rcx
or     %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<internal_fiat_p384_nonzero>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r14
lea    0x8(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r15
lea    0x10(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r12
lea    0x18(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r13
lea    0x20(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%rbp
add    $0x28,%ebx
mov    %ebx,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
or     %r14,%r15
or     %r12,%r13
or     %r15,%r13
or     %rbp,%rax
or     %r13,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i64 @internal_fiat_p384_nonzero(i64 %0) {
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
store i64 %0, i64* %2
%12 = load i64, i64* %2
%13 = add i64 %12, 0
%14 = trunc i64 %13 to i32
%15 = call i64 @_br2_load(i32 %14, i32 8)
store i64 %15, i64* %3
%16 = load i64, i64* %2
%17 = add i64 %16, 8
%18 = trunc i64 %17 to i32
%19 = call i64 @_br2_load(i32 %18, i32 8)
store i64 %19, i64* %4
%20 = load i64, i64* %2
%21 = add i64 %20, 16
%22 = trunc i64 %21 to i32
%23 = call i64 @_br2_load(i32 %22, i32 8)
store i64 %23, i64* %5
%24 = load i64, i64* %2
%25 = add i64 %24, 24
%26 = trunc i64 %25 to i32
%27 = call i64 @_br2_load(i32 %26, i32 8)
store i64 %27, i64* %6
%28 = load i64, i64* %2
%29 = add i64 %28, 32
%30 = trunc i64 %29 to i32
%31 = call i64 @_br2_load(i32 %30, i32 8)
store i64 %31, i64* %7
%32 = load i64, i64* %2
%33 = add i64 %32, 40
%34 = trunc i64 %33 to i32
%35 = call i64 @_br2_load(i32 %34, i32 8)
store i64 %35, i64* %8
%36 = load i64, i64* %3
%37 = load i64, i64* %4
%38 = load i64, i64* %5
%39 = load i64, i64* %6
%40 = load i64, i64* %7
%41 = load i64, i64* %8
%42 = or i64 %40, %41
%43 = or i64 %39, %42
%44 = or i64 %38, %43
%45 = or i64 %37, %44
%46 = or i64 %36, %45
store i64 %46, i64* %9
%47 = load i64, i64* %9
store i64 %47, i64* %11
%48 = load i64, i64* %11
store i64 %48, i64* %10
%49 = load i64, i64* %10
ret i64 %49
}

LLVM IR (-O2):
define i64 @internal_fiat_p384_nonzero(i64 %0) {
%2 = trunc i64 %0 to i32
%3 = tail call i64 @_br2_load(i32 %2, i32 8)
%4 = add i32 %2, 8
%5 = tail call i64 @_br2_load(i32 %4, i32 8)
%6 = add i32 %2, 16
%7 = tail call i64 @_br2_load(i32 %6, i32 8)
%8 = add i32 %2, 24
%9 = tail call i64 @_br2_load(i32 %8, i32 8)
%10 = add i32 %2, 32
%11 = tail call i64 @_br2_load(i32 %10, i32 8)
%12 = add i32 %2, 40
%13 = tail call i64 @_br2_load(i32 %12, i32 8)
%14 = or i64 %5, %3
%15 = or i64 %14, %7
%16 = or i64 %15, %9
%17 = or i64 %16, %11
%18 = or i64 %17, %13
ret i64 %18
}