// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: c_asin
static s7_pointer c_asin(s7_scheme *sc, s7_double x)
    {
        s7_double absx, recip;
        s7_complex result;

        absx = fabs(x);
        if (absx <= 1.0)
            return(make_real(sc, asin(x)));

        /* otherwise use maxima code: */
        recip = 1.0 / absx;
        result = (M_PI / 2.0) - (_Complex_I * clog(absx * (1.0 + (sqrt(1.0 + recip) * csqrt(1.0 - recip)))));
        if (x < 0.0)
            return(s7_from_c_complex(sc, -result));
        return(s7_from_c_complex(sc, result));
    }

// Assembly:
subq $0xd8, %rsp
movq %rdi, 0xc8(%rsp)
movsd %xmm0, 0xc0(%rsp)
movsd 0xc0(%rsp), %xmm0
movaps 0x263a8(%rip), %xmm1    # 0x1e1aa0
pand %xmm1, %xmm0
movsd %xmm0, 0xb8(%rsp)
movsd 0x2625b(%rip), %xmm0    # 0x1e1968
ucomisd 0xb8(%rsp), %xmm0
jb 0x1bb7d3
movsd 0xc0(%rsp), %xmm0
callq 0x9630
movsd %xmm0, 0x90(%rsp)
movq 0xc8(%rsp), %rax
movq 0x90(%rax), %rax
movq 0xc8(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x1bb760
movq 0xc8(%rsp), %rdi
callq 0xc670
movq 0xc8(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x98(%rsp)
movq 0x98(%rsp), %rax
movq $0xd, (%rax)
movsd 0x90(%rsp), %xmm0
movq 0x98(%rsp), %rax
movsd %xmm0, 0x8(%rax)
movq 0x98(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0xd0(%rsp)
jmp 0x1bba41
movsd 0x2618d(%rip), %xmm0    # 0x1e1968
divsd 0xb8(%rsp), %xmm0
movsd %xmm0, 0xb0(%rsp)
movsd 0xb8(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movsd 0x26164(%rip), %xmm0    # 0x1e1968
addsd 0xb0(%rsp), %xmm0
callq 0x9690
movsd %xmm0, 0x8(%rsp)
movsd 0x26148(%rip), %xmm0    # 0x1e1968
subsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0x78(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x80(%rsp)
movsd 0x78(%rsp), %xmm0
movsd 0x80(%rsp), %xmm1
callq 0x9560
movsd 0x8(%rsp), %xmm2
movaps %xmm0, %xmm4
movsd 0x10(%rsp), %xmm0
movaps %xmm1, %xmm3
movaps %xmm2, %xmm1
mulsd %xmm4, %xmm1
mulsd %xmm3, %xmm2
movsd 0x260f4(%rip), %xmm3    # 0x1e1968
addsd %xmm1, %xmm3
movaps %xmm0, %xmm1
mulsd %xmm3, %xmm1
mulsd %xmm2, %xmm0
movsd %xmm1, 0x68(%rsp)
movsd %xmm0, 0x70(%rsp)
movsd 0x68(%rsp), %xmm0
movsd 0x70(%rsp), %xmm1
callq 0x92a0
movaps %xmm0, %xmm4
movsd %xmm4, 0x18(%rsp)
movaps %xmm1, %xmm2
movsd %xmm2, 0x20(%rsp)
xorps %xmm0, %xmm0
mulsd %xmm4, %xmm0
movsd 0x260a7(%rip), %xmm3    # 0x1e1968
mulsd %xmm2, %xmm3
xorps %xmm1, %xmm1
mulsd %xmm2, %xmm1
movsd 0x26094(%rip), %xmm2    # 0x1e1968
mulsd %xmm4, %xmm2
subsd %xmm3, %xmm0
movsd %xmm0, 0x28(%rsp)
addsd %xmm2, %xmm1
movsd %xmm1, 0x30(%rsp)
ucomisd %xmm0, %xmm0
movsd %xmm0, 0x38(%rsp)
movsd %xmm1, 0x40(%rsp)
jnp 0x1bb944
movsd 0x30(%rsp), %xmm1
movsd 0x28(%rsp), %xmm0
ucomisd %xmm1, %xmm1
movsd %xmm0, 0x38(%rsp)
movsd %xmm1, 0x40(%rsp)
jnp 0x1bb944
movsd 0x20(%rsp), %xmm3
movsd 0x18(%rsp), %xmm2
xorps %xmm0, %xmm0
movsd 0x26035(%rip), %xmm1    # 0x1e1968
callq 0x1dc190
movsd %xmm0, 0x38(%rsp)
movsd %xmm1, 0x40(%rsp)
movsd 0x38(%rsp), %xmm2
movsd 0x40(%rsp), %xmm0
movsd 0x260b8(%rip), %xmm1    # 0x1e1a10
subsd %xmm2, %xmm1
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm1, 0xa0(%rsp)
movsd %xmm0, 0xa8(%rsp)
xorps %xmm0, %xmm0
ucomisd 0xc0(%rsp), %xmm0
jbe 0x1bba02
movq 0xc8(%rsp), %rdi
movsd 0xa0(%rsp), %xmm1
movsd 0xa8(%rsp), %xmm0
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm1, 0x58(%rsp)
movsd %xmm0, 0x60(%rsp)
movsd 0x58(%rsp), %xmm0
movsd 0x60(%rsp), %xmm1
callq 0x1bb560
movq %rax, 0xd0(%rsp)
jmp 0x1bba41
movq 0xc8(%rsp), %rdi
movsd 0xa0(%rsp), %xmm1
movsd 0xa8(%rsp), %xmm0
movsd %xmm1, 0x48(%rsp)
movsd %xmm0, 0x50(%rsp)
movsd 0x48(%rsp), %xmm0
movsd 0x50(%rsp), %xmm1
callq 0x1bb560
movq %rax, 0xd0(%rsp)
movq 0xd0(%rsp), %rax
addq $0xd8, %rsp
retq
nopw %cs:(%rax,%rax)