	.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_gammaq
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0xbff0000000000000              ## double -1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
__kf_gammaq:                            ## @_kf_gammaq
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	addsd	%xmm1, %xmm3
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	subsd	%xmm0, %xmm3
	xorpd	%xmm4, %xmm4
	movl	$1, %r15d
	movl	$3, %ebx
	movq	_KF_TINY@GOTPCREL(%rip), %r14
	movq	_KF_GAMMA_EPS@GOTPCREL(%rip), %r12
	movsd	%xmm3, -56(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15d, %xmm0
	movsd	-64(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movapd	%xmm2, %xmm1
	subsd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebx, %xmm0
	addsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	subsd	%xmm2, %xmm0
	mulsd	%xmm1, %xmm4
	addsd	%xmm0, %xmm4
	movsd	(%r14), %xmm2                   ## xmm2 = mem[0],zero
	divsd	%xmm3, %xmm1
	movapd	%xmm2, %xmm5
	maxsd	%xmm4, %xmm2
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	divsd	%xmm2, %xmm3
	movsd	%xmm3, -72(%rbp)                ## 8-byte Spill
	addsd	%xmm0, %xmm1
	movapd	%xmm5, %xmm0
	maxsd	%xmm1, %xmm0
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	mulsd	%xmm3, %xmm0
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, -56(%rbp)                ## 8-byte Spill
	addsd	LCPI0_1(%rip), %xmm0
	callq	_fabs
	movsd	-72(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	movsd	-40(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	cmpq	(%r12), %rax
	jl	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%r15), %eax
	addl	$2, %ebx
	cmpl	$99, %r15d
	movl	%eax, %r15d
	jne	LBB0_1
LBB0_3:
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_log
	movapd	%xmm0, %xmm1
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm1
	subsd	-48(%rbp), %xmm1                ## 8-byte Folded Reload
	movsd	%xmm1, -40(%rbp)                ## 8-byte Spill
	callq	_kf_lgamma
	movsd	-40(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	%xmm1, -40(%rbp)                ## 8-byte Spill
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_log
	movsd	-40(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_exp                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KF_TINY,8,3                    ## @KF_TINY
	.comm	_KF_GAMMA_EPS,8,3               ## @KF_GAMMA_EPS
	.no_dead_strip	__kf_gammaq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _kf_gammaq
__kf_gammaq:                            ; @_kf_gammaq
	.cfi_startproc
; %bb.0:
	stp	d15, d14, [sp, #-112]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	fmov	d9, d1
	fmov	d8, d0
	fmov	d11, #1.00000000
	fadd	d0, d1, d11
	fsub	d12, d0, d8
	movi	d14, #0000000000000000
	mov	w20, #1
	mov	w19, #3
Lloh0:
	adrp	x21, _KF_TINY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _KF_TINY@GOTPAGEOFF]
	fmov	d13, #-1.00000000
Lloh2:
	adrp	x22, _KF_GAMMA_EPS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _KF_GAMMA_EPS@GOTPAGEOFF]
	fmov	d10, d12
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	scvtf	d0, w20
	fsub	d1, d8, d0
	fmul	d0, d1, d0
	scvtf	d1, w19
	fadd	d1, d1, d9
	fsub	d1, d1, d8
	fmadd	d2, d0, d14, d1
	ldr	d3, [x21]
	fcmp	d2, d3
	fcsel	d2, d3, d2, mi
	fdiv	d0, d0, d12
	fadd	d0, d0, d1
	fcmp	d0, d3
	fcsel	d12, d3, d0, mi
	fdiv	d14, d11, d2
	fmul	d0, d12, d14
	fmul	d10, d10, d0
	fadd	d0, d0, d13
	bl	_fabs
	ldr	x8, [x22]
	cmp	x0, x8
	b.lt	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w8, w20, #1
	add	w19, w19, #2
	cmp	w20, #99
	mov	x20, x8
	b.ne	LBB0_1
LBB0_3:
	fmov	d0, d9
	bl	_log
	fnmsub	d9, d8, d0, d9
	fmov	d0, d8
	bl	_kf_lgamma
	fsub	d8, d9, d0
	fmov	d0, d10
	bl	_log
	fsub	d0, d8, d0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp], #112            ; 16-byte Folded Reload
	b	_exp
	.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_gammaq
.subsections_via_symbols
