#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 */
int /*<<< orphan*/ _mm_load_ss(float *);
scalar_t__ determ_isneg_float(int /*<<< orphan*/);
int /*<<< orphan*/ determ_negate_float(int /*<<< orphan*/);
int /*<<< orphan*/ determ_sin_float_impl(int /*<<< orphan*/);
uint32_t determ_sin_float(uint32_t a) {
  if (determ_isneg_float(a)) {
    a = determ_negate_float(a);
    return determ_negate_float(determ_sin_float_impl(_mm_load_ss((float *)&a)));
  } else {
    return determ_sin_float_impl(_mm_load_ss((float *)&a));
  }
}


x86 assembly (clang, -O0):
<determ_sin_float>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1050 <determ_isneg_float@plt>
cmp    $0x0,%rax
je     1187 <determ_sin_float+0x47>
mov    -0x8(%rbp),%edi
call   1030 <determ_negate_float@plt>
mov    %eax,-0x8(%rbp)
lea    -0x8(%rbp),%rdi
call   1060 <_mm_load_ss@plt>
mov    %eax,%edi
call   1040 <determ_sin_float_impl@plt>
mov    %eax,%edi
call   1030 <determ_negate_float@plt>
mov    %eax,-0x4(%rbp)
jmp    119a <determ_sin_float+0x5a>
lea    -0x8(%rbp),%rdi
call   1060 <_mm_load_ss@plt>
mov    %eax,%edi
call   1040 <determ_sin_float_impl@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<determ_sin_float>:
push   %rbx
sub    $0x10,%rsp
mov    %edi,%ebx
mov    %edi,0xc(%rsp)
call   1050 <determ_isneg_float@plt>
test   %rax,%rax
je     117a <determ_sin_float+0x3a>
mov    %ebx,%edi
call   1030 <determ_negate_float@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
call   1060 <_mm_load_ss@plt>
mov    %eax,%edi
call   1040 <determ_sin_float_impl@plt>
mov    %eax,%edi
call   1030 <determ_negate_float@plt>
jmp    118b <determ_sin_float+0x4b>
lea    0xc(%rsp),%rdi
call   1060 <_mm_load_ss@plt>
mov    %eax,%edi
call   1040 <determ_sin_float_impl@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @determ_sin_float(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = call i64 @determ_isneg_float(i32 %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %14
7: ; preds = %1
%8 = load i32, i32* %3
%9 = call i32 @determ_negate_float(i32 %8)
store i32 %9, i32* %3
%10 = bitcast i32* %3 to float*
%11 = call i32 @_mm_load_ss(float* %10)
%12 = call i32 @determ_sin_float_impl(i32 %11)
%13 = call i32 @determ_negate_float(i32 %12)
store i32 %13, i32* %2
br label %18
14: ; preds = %1
%15 = bitcast i32* %3 to float*
%16 = call i32 @_mm_load_ss(float* %15)
%17 = call i32 @determ_sin_float_impl(i32 %16)
store i32 %17, i32* %2
br label %18
18: ; preds = %14, %7
%19 = load i32, i32* %2
ret i32 %19
}

LLVM IR (-O2):
define i32 @determ_sin_float(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = tail call i64 @determ_isneg_float(i32 %0)
%4 = icmp eq i64 %3, 0
br i1 %4, label %11, label %5
5: ; preds = %1
%6 = tail call i32 @determ_negate_float(i32 %0)
store i32 %6, i32* %2
%7 = bitcast i32* %2 to float*
%8 = call i32 @_mm_load_ss(float* %7)
%9 = call i32 @determ_sin_float_impl(i32 %8)
%10 = call i32 @determ_negate_float(i32 %9)
br label %15
11: ; preds = %1
%12 = bitcast i32* %2 to float*
%13 = call i32 @_mm_load_ss(float* %12)
%14 = call i32 @determ_sin_float_impl(i32 %13)
br label %15
15: ; preds = %11, %5
%16 = phi i32 [ %10, %5 ], [ %14, %11 ]
ret i32 %16
}