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

/* Variables and functions */
int /*<<< orphan*/ memset(double *, int /*<<< orphan*/, int);
int /*<<< orphan*/ sfunws_(double *, double *, double *, double *, double *,
                           double *, double *, double *);
void TRsfun(double x, double QQ, double SF[]) {
  memset(SF, 0, 6 * sizeof(SF[0]));
  if (x > 0.99999)
    return;
  sfunws_(&x, &QQ, SF, SF + 1, SF + 2, SF + 3, SF + 4, SF + 5);
}


x86 assembly (clang, -O0):
<TRsfun>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
mov    %rdi,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1030 <memset@plt>
movsd  -0x8(%rbp),%xmm0
movsd  0xead(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1162 <TRsfun+0x42>
jmp    11a4 <TRsfun+0x84>
mov    -0x18(%rbp),%rdx
mov    -0x18(%rbp),%rcx
add    $0x8,%rcx
mov    -0x18(%rbp),%r8
add    $0x10,%r8
mov    -0x18(%rbp),%r9
add    $0x18,%r9
mov    -0x18(%rbp),%r10
add    $0x20,%r10
mov    -0x18(%rbp),%rax
add    $0x28,%rax
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1040 <sfunws_@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TRsfun>:
push   %rbx
sub    $0x20,%rsp
mov    %rdi,%rbx
movsd  %xmm0,0x8(%rsp)
movsd  %xmm0,0x18(%rsp)
movsd  %xmm1,0x10(%rsp)
xor    %esi,%esi
mov    $0x30,%edx
call   1030 <memset@plt>
movsd  0x8(%rsp),%xmm0
ucomisd 0xeac(%rip),%xmm0
ja     1183 <TRsfun+0x63>
lea    0x8(%rbx),%rcx
lea    0x10(%rbx),%r8
lea    0x18(%rbx),%r9
lea    0x20(%rbx),%r10
lea    0x28(%rbx),%rax
lea    0x18(%rsp),%rdi
lea    0x10(%rsp),%rsi
mov    %rbx,%rdx
push   %rax
push   %r10
call   1040 <sfunws_@plt>
add    $0x10,%rsp
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @TRsfun(double %0, double %1, double* %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double*
store double %0, double* %4
store double %1, double* %5
store double* %2, double** %6
%7 = load double*, double** %6
%8 = call i32 @memset(double* %7, i32 0, i32 48)
%9 = load double, double* %4
%10 = fcmp ogt double %9, 9.999900e-01
br i1 %10, label %11, label %12
11: ; preds = %3
br label %25
12: ; preds = %3
%13 = load double*, double** %6
%14 = load double*, double** %6
%15 = getelementptr inbounds double, double* %14, i64 1
%16 = load double*, double** %6
%17 = getelementptr inbounds double, double* %16, i64 2
%18 = load double*, double** %6
%19 = getelementptr inbounds double, double* %18, i64 3
%20 = load double*, double** %6
%21 = getelementptr inbounds double, double* %20, i64 4
%22 = load double*, double** %6
%23 = getelementptr inbounds double, double* %22, i64 5
%24 = call i32 @sfunws_(double* %4, double* %5, double* %13, double* %15, double* %17, double* %19, double* %21, double* %23)
br label %25
25: ; preds = %12, %11
ret void
}

LLVM IR (-O2):
define void @TRsfun(double %0, double %1, double* %2) {
%4 = alloca double
%5 = alloca double
store double %0, double* %4
store double %1, double* %5
%6 = tail call i32 @memset(double* %2, i32 0, i32 48)
%7 = fcmp ogt double %0, 9.999900e-01
br i1 %7, label %15, label %8
8: ; preds = %3
%9 = getelementptr inbounds double, double* %2, i64 1
%10 = getelementptr inbounds double, double* %2, i64 2
%11 = getelementptr inbounds double, double* %2, i64 3
%12 = getelementptr inbounds double, double* %2, i64 4
%13 = getelementptr inbounds double, double* %2, i64 5
%14 = call i32 @sfunws_(double* %4, double* %5, double* %2, double* %9, double* %10, double* %11, double* %12, double* %13)
br label %15
15: ; preds = %3, %8
ret void
}