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

/* Variables and functions */
scalar_t__ softfloat_isNaNF128M(int /*<<< orphan*/ const *);
int /*<<< orphan*/ softfloat_propagateNaNF128M(int /*<<< orphan*/ const *,
                                               int /*<<< orphan*/ const *,
                                               int /*<<< orphan*/ *);
bool softfloat_tryPropagateNaNF128M(const uint32_t *aWPtr,
                                    const uint32_t *bWPtr, uint32_t *zWPtr) {
  if (softfloat_isNaNF128M(aWPtr) || softfloat_isNaNF128M(bWPtr)) {
    softfloat_propagateNaNF128M(aWPtr, bWPtr, zWPtr);
    return true;
  }
  return false;
}


x86 assembly (clang, -O0):
<softfloat_tryPropagateNaNF128M>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <softfloat_isNaNF128M@plt>
cmp    $0x0,%rax
jne    115a <softfloat_tryPropagateNaNF128M+0x3a>
mov    -0x18(%rbp),%rdi
call   1040 <softfloat_isNaNF128M@plt>
cmp    $0x0,%rax
je     1177 <softfloat_tryPropagateNaNF128M+0x57>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1030 <softfloat_propagateNaNF128M@plt>
movl   $0x1,-0x4(%rbp)
jmp    117e <softfloat_tryPropagateNaNF128M+0x5e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<softfloat_tryPropagateNaNF128M>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
call   1040 <softfloat_isNaNF128M@plt>
test   %rax,%rax
jne    1145 <softfloat_tryPropagateNaNF128M+0x25>
mov    %r15,%rdi
call   1040 <softfloat_isNaNF128M@plt>
test   %rax,%rax
je     115e <softfloat_tryPropagateNaNF128M+0x3e>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1030 <softfloat_propagateNaNF128M@plt>
mov    $0x1,%eax
pop    %rbx
pop    %r14
pop    %r15
ret
xor    %eax,%eax
jmp    1158 <softfloat_tryPropagateNaNF128M+0x38>

LLVM IR (-O0):
define i32 @softfloat_tryPropagateNaNF128M(i32* %0, i32* %1, i32* %2) {
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i32*
store i32* %0, i32** %5
store i32* %1, i32** %6
store i32* %2, i32** %7
%8 = load i32*, i32** %5
%9 = call i64 @softfloat_isNaNF128M(i32* %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %15, label %11
11: ; preds = %3
%12 = load i32*, i32** %6
%13 = call i64 @softfloat_isNaNF128M(i32* %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %11, %3
%16 = load i32*, i32** %5
%17 = load i32*, i32** %6
%18 = load i32*, i32** %7
%19 = call i32 @softfloat_propagateNaNF128M(i32* %16, i32* %17, i32* %18)
store i32 1, i32* %4
br label %21
20: ; preds = %11
store i32 0, i32* %4
br label %21
21: ; preds = %20, %15
%22 = load i32, i32* %4
ret i32 %22
}

LLVM IR (-O2):
define i32 @softfloat_tryPropagateNaNF128M(i32* %0, i32* %1, i32* %2) {
%4 = tail call i64 @softfloat_isNaNF128M(i32* %0)
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %3
%7 = tail call i64 @softfloat_isNaNF128M(i32* %1)
%8 = icmp eq i64 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %6, %3
%10 = tail call i32 @softfloat_propagateNaNF128M(i32* %0, i32* %1, i32* %2)
br label %11
11: ; preds = %6, %9
%12 = phi i32 [ 1, %9 ], [ 0, %6 ]
ret i32 %12
}