	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function kf_betai_aux
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_2:
	.quad	0xbff0000000000000              ## double -1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_kf_betai_aux:                          ## @kf_betai_aux
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm0, %xmm2
	jne	LBB0_1
	jnp	LBB0_9
LBB0_1:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	ucomisd	%xmm0, %xmm2
	jne	LBB0_2
	jnp	LBB0_9
LBB0_2:
	movsd	%xmm2, -56(%rbp)                ## 8-byte Spill
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	movl	$1, %ebx
	xorpd	%xmm0, %xmm0
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movq	_KF_TINY@GOTPCREL(%rip), %r14
	movq	_KF_GAMMA_EPS@GOTPCREL(%rip), %r15
	movsd	%xmm0, -80(%rbp)                ## 8-byte Spill
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	shrl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	testb	$1, %bl
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	mulsd	-56(%rbp), %xmm1                ## 8-byte Folded Reload
	movl	%ebx, %eax
	andl	$2147483646, %eax               ## imm = 0x7FFFFFFE
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	addsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	movapd	%xmm0, %xmm2
	movsd	LCPI0_2(%rip), %xmm4            ## xmm4 = mem[0],zero
	addsd	%xmm4, %xmm2
	mulsd	%xmm0, %xmm2
	divsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm0
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movsd	-72(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	movsd	-32(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	addsd	%xmm2, %xmm0
	xorpd	LCPI0_1(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	mulsd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	movl	%ebx, %eax
	andl	$2147483646, %eax               ## imm = 0x7FFFFFFE
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	addsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm2
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	addsd	%xmm3, %xmm2
	mulsd	%xmm1, %xmm2
	divsd	%xmm2, %xmm0
	movsd	LCPI0_2(%rip), %xmm4            ## xmm4 = mem[0],zero
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movsd	-40(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	mulsd	%xmm0, %xmm2
	addsd	%xmm3, %xmm2
	movsd	(%r14), %xmm1                   ## xmm1 = mem[0],zero
	divsd	-80(%rbp), %xmm0                ## 8-byte Folded Reload
	movapd	%xmm1, %xmm5
	maxsd	%xmm2, %xmm1
	addsd	%xmm3, %xmm0
	maxsd	%xmm0, %xmm5
	divsd	%xmm1, %xmm3
	movsd	%xmm5, -80(%rbp)                ## 8-byte Spill
	movapd	%xmm5, %xmm0
	movsd	%xmm3, -40(%rbp)                ## 8-byte Spill
	mulsd	%xmm3, %xmm0
	movsd	-64(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, -64(%rbp)                ## 8-byte Spill
	addsd	%xmm4, %xmm0
	callq	_fabs
	cmpq	(%r15), %rax
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rbx), %eax
	cmpl	$199, %ebx
	movl	%eax, %ebx
	jne	LBB0_3
LBB0_8:
	movsd	-72(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_kf_lgamma
	movq	%rax, %rbx
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_kf_lgamma
	movq	%rax, %r14
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_kf_lgamma
	addq	%r14, %rax
	subq	%rax, %rbx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rbx, %xmm0
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	cvttsd2si	-56(%rbp), %edi         ## 8-byte Folded Reload
	callq	_log
	mulsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	addsd	-40(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	subsd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %edi
	callq	_log
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	addsd	-40(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %rdi
	callq	_exp
	divsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	divsd	-64(%rbp), %xmm0                ## 8-byte Folded Reload
LBB0_9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KF_TINY,8,3                    ## @KF_TINY
	.comm	_KF_GAMMA_EPS,8,3               ## @KF_GAMMA_EPS
	.no_dead_strip	_kf_betai_aux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kf_betai_aux
_kf_betai_aux:                          ; @kf_betai_aux
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d15, d14, [sp, #16]             ; 16-byte Folded Spill
	stp	d13, d12, [sp, #32]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #48]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	.cfi_offset b10, -72
	.cfi_offset b11, -80
	.cfi_offset b12, -88
	.cfi_offset b13, -96
	.cfi_offset b14, -104
	.cfi_offset b15, -112
	str	d1, [sp, #8]                    ; 8-byte Folded Spill
	fmov	d8, d0
	movi	d0, #0000000000000000
	fcmp	d2, #0.0
	b.eq	LBB0_6
; %bb.1:
	fmov	d10, d2
	fmov	d0, #1.00000000
	fcmp	d2, d0
	b.eq	LBB0_6
; %bb.2:
	ldr	d0, [sp, #8]                    ; 8-byte Folded Reload
	fadd	d11, d8, d0
	mov	w19, #1
	movi	d9, #0000000000000000
	fmov	d13, #1.00000000
	fmov	d14, #-1.00000000
Lloh0:
	adrp	x20, _KF_TINY@GOTPAGE
Lloh1:
	ldr	x20, [x20, _KF_TINY@GOTPAGEOFF]
Lloh2:
	adrp	x21, _KF_GAMMA_EPS@GOTPAGE
Lloh3:
	ldr	x21, [x21, _KF_GAMMA_EPS@GOTPAGEOFF]
	fmov	d15, #1.00000000
	fmov	d12, #1.00000000
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w19, #1
	scvtf	d0, w8
	ldr	d1, [sp, #8]                    ; 8-byte Folded Reload
	fsub	d1, d1, d0
	fmul	d1, d1, d0
	fmul	d1, d1, d10
	and	w8, w19, #0x7ffffffe
	scvtf	d2, w8
	fadd	d2, d2, d8
	fadd	d3, d2, d14
	fmul	d3, d2, d3
	fdiv	d1, d1, d3
	fadd	d3, d0, d8
	fneg	d3, d3
	fadd	d0, d11, d0
	fmul	d0, d0, d3
	fmul	d0, d0, d10
	fadd	d3, d2, d13
	fmul	d2, d2, d3
	fdiv	d0, d0, d2
	tst	w19, #0x1
	fcsel	d0, d1, d0, eq
	fmadd	d1, d0, d9, d13
	ldr	d2, [x20]
	fcmp	d1, d2
	fcsel	d1, d2, d1, mi
	fdiv	d0, d0, d15
	fadd	d0, d0, d13
	fcmp	d0, d2
	fcsel	d15, d2, d0, mi
	fdiv	d9, d13, d1
	fmul	d0, d15, d9
	fmul	d12, d12, d0
	fadd	d0, d0, d14
	bl	_fabs
	ldr	x8, [x21]
	cmp	x0, x8
	b.lt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w19, #1
	cmp	w19, #199
	mov	x19, x8
	b.ne	LBB0_3
LBB0_5:
	fmov	d0, d11
	bl	_kf_lgamma
	mov	x19, x0
	fmov	d0, d8
	bl	_kf_lgamma
	mov	x20, x0
	ldr	d11, [sp, #8]                   ; 8-byte Folded Reload
	fmov	d0, d11
	bl	_kf_lgamma
	add	x8, x20, x0
	sub	x8, x19, x8
	scvtf	d9, x8
	fcvtzs	w0, d10
	bl	_log
	fmadd	d9, d8, d0, d9
	fmov	d0, #1.00000000
	fsub	d0, d0, d10
	fcvtzs	w0, d0
	bl	_log
	fmadd	d0, d11, d0, d9
	fcvtzs	x0, d0
	bl	_exp
	fdiv	d0, d0, d8
	fdiv	d0, d0, d12
LBB0_6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #32]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_KF_TINY,8,3                    ; @KF_TINY
	.comm	_KF_GAMMA_EPS,8,3               ; @KF_GAMMA_EPS
	.no_dead_strip	_kf_betai_aux
.subsections_via_symbols
