#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_p224_nonzero(uintptr_t in0) {
  uintptr_t x0, x1, x2, x3, x4, out0, x5;
  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 = (x0) | ((x1) | ((x2) | (x3)));
  x5 = x4;
  out0 = x5;
  return out0;
}


x86 assembly (clang, -O0):
<internal_fiat_p224_nonzero>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%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    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%rdx
or     -0x28(%rbp),%rdx
or     %rdx,%rcx
or     %rcx,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<internal_fiat_p224_nonzero>:
push   %r15
push   %r14
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
add    $0x18,%ebx
mov    %ebx,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
or     %r14,%r15
or     %r12,%rax
or     %r15,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i64 @internal_fiat_p224_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
store i64 %0, i64* %2
%10 = load i64, i64* %2
%11 = add i64 %10, 0
%12 = trunc i64 %11 to i32
%13 = call i64 @_br2_load(i32 %12, i32 8)
store i64 %13, i64* %3
%14 = load i64, i64* %2
%15 = add i64 %14, 8
%16 = trunc i64 %15 to i32
%17 = call i64 @_br2_load(i32 %16, i32 8)
store i64 %17, i64* %4
%18 = load i64, i64* %2
%19 = add i64 %18, 16
%20 = trunc i64 %19 to i32
%21 = call i64 @_br2_load(i32 %20, i32 8)
store i64 %21, i64* %5
%22 = load i64, i64* %2
%23 = add i64 %22, 24
%24 = trunc i64 %23 to i32
%25 = call i64 @_br2_load(i32 %24, i32 8)
store i64 %25, i64* %6
%26 = load i64, i64* %3
%27 = load i64, i64* %4
%28 = load i64, i64* %5
%29 = load i64, i64* %6
%30 = or i64 %28, %29
%31 = or i64 %27, %30
%32 = or i64 %26, %31
store i64 %32, i64* %7
%33 = load i64, i64* %7
store i64 %33, i64* %9
%34 = load i64, i64* %9
store i64 %34, i64* %8
%35 = load i64, i64* %8
ret i64 %35
}

LLVM IR (-O2):
define i64 @internal_fiat_p224_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 = or i64 %5, %3
%11 = or i64 %10, %7
%12 = or i64 %11, %9
ret i64 %12
}