	.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
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x4000000000000000              ## double 2
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_kf_betai
	.p2align	4, 0x90
_kf_betai:                              ## @kf_betai
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movapd	%xmm0, %xmm3
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movapd	%xmm3, %xmm4
	addsd	%xmm1, %xmm4
	addsd	LCPI0_1(%rip), %xmm4
	addsd	%xmm3, %xmm0
	divsd	%xmm4, %xmm0
	ucomisd	%xmm2, %xmm0
	jbe	LBB0_1
## %bb.2:
	cvttsd2si	%xmm2, %edi
	movapd	%xmm3, %xmm0
	popq	%rbp
	jmp	_kf_betai_aux                   ## TAILCALL
LBB0_1:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	subsd	%xmm2, %xmm0
	cvttsd2si	%xmm0, %edi
	movapd	%xmm1, %xmm0
	movapd	%xmm3, %xmm1
	callq	_kf_betai_aux
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kf_betai                       ; -- Begin function kf_betai
	.p2align	2
_kf_betai:                              ; @kf_betai
	.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	d3, d0
	fmov	d8, #1.00000000
	fadd	d0, d0, d8
	fadd	d4, d3, d1
	fmov	d5, #2.00000000
	fadd	d4, d4, d5
	fdiv	d0, d0, d4
	fcmp	d0, d2
	b.le	LBB0_2
; %bb.1:
	fcvtzs	w0, d2
	fmov	d0, d3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #32               ; 16-byte Folded Reload
	b	_kf_betai_aux
LBB0_2:
	fsub	d0, d8, d2
	fcvtzs	w0, d0
	fmov	d0, d1
	fmov	d1, d3
	bl	_kf_betai_aux
	fsub	d0, d8, d0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #32               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
