	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function tansig_approx
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0x41000000                      ## float 8
LCPI0_2:
	.long	0xbf800000                      ## float -1
LCPI0_3:
	.long	0xc1000000                      ## float -8
LCPI0_5:
	.long	0x41c80000                      ## float 25
LCPI0_6:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_4:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
LCPI0_7:
	.long	0xbd23d70a                      ## float -0.0399999991
	.space	4
	.space	4
	.space	4
LCPI0_8:
	.space	4
	.long	0x3f800000                      ## float 1
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_tansig_approx:                         ## @tansig_approx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$48, %rsp
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_1
## %bb.2:
	ucomiss	LCPI0_3(%rip), %xmm0
	jbe	LBB0_3
## %bb.4:
	movaps	%xmm0, -16(%rbp)                ## 16-byte Spill
	callq	_isnan
	xorps	%xmm0, %xmm0
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movaps	-16(%rbp), %xmm2                ## 16-byte Reload
	movaps	%xmm2, %xmm1
	xorps	LCPI0_4(%rip), %xmm1
	movaps	%xmm1, -48(%rbp)                ## 16-byte Spill
	maxss	%xmm2, %xmm1
	movaps	%xmm1, -32(%rbp)                ## 16-byte Spill
	movss	LCPI0_5(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	addss	LCPI0_6(%rip), %xmm0
	callq	_floor
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movq	_tansig_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movss	(%rcx,%rax,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm2
	movaps	LCPI0_4(%rip), %xmm3            ## xmm3 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm3, %xmm2
	insertps	$16, %xmm2, %xmm0               ## xmm0 = xmm0[0],xmm2[0],xmm0[2,3]
	movaps	LCPI0_7(%rip), %xmm2            ## xmm2 = <-3.99999991E-2,u,u,u>
	insertps	$16, %xmm1, %xmm2               ## xmm2 = xmm2[0],xmm1[0],xmm2[2,3]
	mulps	%xmm0, %xmm2
	movaps	-32(%rbp), %xmm4                ## 16-byte Reload
	blendps	$14, LCPI0_8(%rip), %xmm4       ## xmm4 = xmm4[0],mem[1,2,3]
	addps	%xmm2, %xmm4
	movshdup	%xmm4, %xmm0                    ## xmm0 = xmm4[1,1,3,3]
	mulss	%xmm4, %xmm0
	mulss	%xmm1, %xmm4
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm4, %xmm2
	mulss	%xmm0, %xmm2
	addss	%xmm1, %xmm2
	xorps	%xmm2, %xmm3
	movaps	-16(%rbp), %xmm1                ## 16-byte Reload
	cmpltss	-48(%rbp), %xmm1                ## 16-byte Folded Reload
	movaps	%xmm1, %xmm0
	andnps	%xmm2, %xmm0
	andps	%xmm3, %xmm1
	orps	%xmm0, %xmm1
	movaps	%xmm1, %xmm0
	jmp	LBB0_6
LBB0_1:
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_6
LBB0_3:
	movss	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
LBB0_6:
	addq	$48, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tansig_table,8,3               ## @tansig_table
	.no_dead_strip	_tansig_approx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tansig_approx
_tansig_approx:                         ; @tansig_approx
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-32]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset b8, -24
	.cfi_offset b9, -32
	fmov	s8, s0
	fmov	s0, #1.00000000
	fmov	s1, #8.00000000
	fcmp	s8, s1
	b.pl	LBB0_4
; %bb.1:
	fmov	s0, #-1.00000000
	fmov	s1, #-8.00000000
	fcmp	s8, s1
	b.le	LBB0_4
; %bb.2:
	fmov	s0, s8
	bl	_isnan
	movi	d0, #0000000000000000
	cbnz	x0, LBB0_4
; %bb.3:
	fneg	s0, s8
	fcmp	s8, #0.0
	fcsel	s9, s0, s8, mi
	fmov	s0, #0.50000000
	fmov	s1, #25.00000000
	fmadd	s0, s9, s1, s0
	bl	_floor
	fcmp	s8, #0.0
	scvtf	s0, w0
	mov	w8, #55050
	movk	w8, #48419, lsl #16
	fmov	s1, w8
Lloh0:
	adrp	x8, _tansig_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tansig_table@GOTPAGEOFF]
	fmadd	s0, s0, s1, s9
Lloh2:
	ldr	x8, [x8]
	sbfiz	x9, x0, #2, #32
	ldr	s1, [x8, x9]
	fmov	s2, #1.00000000
	fmsub	s3, s1, s1, s2
	fmul	s3, s0, s3
	fmsub	s0, s1, s0, s2
	fmadd	s2, s3, s0, s1
	fnmadd	s0, s3, s0, s1
	fcsel	s0, s0, s2, mi
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #32               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_tansig_table,8,3               ; @tansig_table
	.no_dead_strip	_tansig_approx
.subsections_via_symbols
