#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_p434_nonzero(uintptr_t in0) {
  uintptr_t x0, x1, x2, x3, x4, x5, x6, x7, out0, x8;
  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 = _br2_load((in0) + ((uintptr_t)48ULL), sizeof(uintptr_t));
  x7 = (x0) | ((x1) | ((x2) | ((x3) | ((x4) | ((x5) | (x6))))));
  x8 = x7;
  out0 = x8;
  return out0;
}


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

x86 assembly (clang, -O2):
<internal_fiat_p434_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,(%rsp)
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
lea    0x28(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r14
add    $0x30,%ebx
mov    %ebx,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
or     (%rsp),%r15
or     %r12,%r13
or     %r15,%r13
or     %rbp,%r14
or     %r14,%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_p434_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
%12 = alloca i64
store i64 %0, i64* %2
%13 = load i64, i64* %2
%14 = add i64 %13, 0
%15 = trunc i64 %14 to i32
%16 = call i64 @_br2_load(i32 %15, i32 8)
store i64 %16, i64* %3
%17 = load i64, i64* %2
%18 = add i64 %17, 8
%19 = trunc i64 %18 to i32
%20 = call i64 @_br2_load(i32 %19, i32 8)
store i64 %20, i64* %4
%21 = load i64, i64* %2
%22 = add i64 %21, 16
%23 = trunc i64 %22 to i32
%24 = call i64 @_br2_load(i32 %23, i32 8)
store i64 %24, i64* %5
%25 = load i64, i64* %2
%26 = add i64 %25, 24
%27 = trunc i64 %26 to i32
%28 = call i64 @_br2_load(i32 %27, i32 8)
store i64 %28, i64* %6
%29 = load i64, i64* %2
%30 = add i64 %29, 32
%31 = trunc i64 %30 to i32
%32 = call i64 @_br2_load(i32 %31, i32 8)
store i64 %32, i64* %7
%33 = load i64, i64* %2
%34 = add i64 %33, 40
%35 = trunc i64 %34 to i32
%36 = call i64 @_br2_load(i32 %35, i32 8)
store i64 %36, i64* %8
%37 = load i64, i64* %2
%38 = add i64 %37, 48
%39 = trunc i64 %38 to i32
%40 = call i64 @_br2_load(i32 %39, i32 8)
store i64 %40, i64* %9
%41 = load i64, i64* %3
%42 = load i64, i64* %4
%43 = load i64, i64* %5
%44 = load i64, i64* %6
%45 = load i64, i64* %7
%46 = load i64, i64* %8
%47 = load i64, i64* %9
%48 = or i64 %46, %47
%49 = or i64 %45, %48
%50 = or i64 %44, %49
%51 = or i64 %43, %50
%52 = or i64 %42, %51
%53 = or i64 %41, %52
store i64 %53, i64* %10
%54 = load i64, i64* %10
store i64 %54, i64* %12
%55 = load i64, i64* %12
store i64 %55, i64* %11
%56 = load i64, i64* %11
ret i64 %56
}

LLVM IR (-O2):
define i64 @internal_fiat_p434_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 = add i32 %2, 48
%15 = tail call i64 @_br2_load(i32 %14, i32 8)
%16 = or i64 %5, %3
%17 = or i64 %16, %7
%18 = or i64 %17, %9
%19 = or i64 %18, %11
%20 = or i64 %19, %13
%21 = or i64 %20, %15
ret i64 %21
}