	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function estimate_split
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x3e112e0be826d695              ## double 1.0000000000000001E-9
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_estimate_split
	.p2align	4, 0x90
_estimate_split:                        ## @estimate_split
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	testl	%edi, %edi
	jle	LBB0_13
## %bb.1:
	movl	%esi, %r14d
	testl	%esi, %esi
	jle	LBB0_13
## %bb.2:
	movl	%edi, %r15d
	cmpl	$1, %r14d
	jne	LBB0_4
## %bb.3:
	movl	%r15d, %ebx
	jmp	LBB0_13
LBB0_4:
	cmpl	$100, %r15d
	jb	LBB0_7
## %bb.5:
	imull	$100, %r14d, %eax
	cmpl	%r15d, %eax
	jg	LBB0_7
## %bb.6:
	cvtsi2sd	%r15d, %xmm0
	cvtsi2sd	%r14d, %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	callq	_sqrt
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,8), %ecx
	subl	%eax, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	addsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	addsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %ebx
	jmp	LBB0_13
LBB0_7:
	cvtsi2sd	%r14d, %xmm1
	movsd	%xmm1, -32(%rbp)                ## 8-byte Spill
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	movapd	%xmm2, %xmm0
	divsd	%xmm1, %xmm0
	movapd	%xmm2, %xmm1
	subsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %edi
	callq	_log
	imull	%r15d, %eax
	movl	%eax, %edi
	callq	_exp
	movsd	LCPI0_0(%rip), %xmm4            ## xmm4 = mem[0],zero
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	-32(%rbp), %xmm1                ## 8-byte Folded Reload
	subsd	%xmm1, %xmm4
	ucomisd	%xmm0, %xmm4
	jbe	LBB0_13
## %bb.8:
	xorps	%xmm2, %xmm2
	cvtsi2sd	%r15d, %xmm2
	divsd	%xmm2, %xmm1
	leal	-1(%r14), %eax
	xorl	%ecx, %ecx
	movl	%r15d, %edx
	movl	%eax, %esi
	xorl	%ebx, %ebx
	movapd	%xmm0, %xmm2
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	ucomisd	%xmm2, %xmm1
	jbe	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%r15d, %ecx
	jg	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	xorps	%xmm3, %xmm3
	cvtsi2sd	%edx, %xmm3
	mulsd	%xmm3, %xmm2
	incl	%ebx
	xorps	%xmm3, %xmm3
	cvtsi2sd	%esi, %xmm3
	divsd	%xmm3, %xmm2
	addsd	%xmm2, %xmm0
	ucomisd	%xmm0, %xmm4
	jbe	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	%eax, %esi
	decl	%edx
	addl	%r14d, %ecx
	cmpl	%r15d, %ebx
	jl	LBB0_9
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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	_estimate_split                 ; -- Begin function estimate_split
	.p2align	2
_estimate_split:                        ; @estimate_split
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	mov	w0, #0
	cmp	w20, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x1
	subs	w21, w1, #1
	b.lt	LBB0_12
; %bb.2:
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	b	LBB0_12
LBB0_4:
	cmp	w20, #100
	b.lo	LBB0_7
; %bb.5:
	mov	w8, #100
	mul	w8, w19, w8
	cmp	w8, w20
	b.gt	LBB0_7
; %bb.6:
	scvtf	d0, w20
	scvtf	d1, w19
	fdiv	d8, d0, d1
	fmov	d0, d8
	bl	_sqrt
	lsl	w8, w0, #3
	sub	w8, w8, w0
	scvtf	d0, w8
	fadd	d0, d8, d0
	fmov	d1, #1.00000000
	fadd	d0, d0, d1
	fcvtzs	w0, d0
	b	LBB0_12
LBB0_7:
	scvtf	d8, w19
	fmov	d9, #1.00000000
	fdiv	d0, d9, d8
	fsub	d0, d9, d0
	fcvtzs	w0, d0
	bl	_log
	mul	w0, w0, w20
	bl	_exp
	mov	x8, #54933
	movk	x8, #59430, lsl #16
	movk	x8, #11787, lsl #32
	movk	x8, #15889, lsl #48
	fmov	d1, x8
	fdiv	d2, d1, d8
	fsub	d1, d9, d2
	fcmp	d0, d1
	b.pl	LBB0_11
; %bb.8:
	mov	w8, #0
	mov	w0, #0
	scvtf	d3, w20
	fdiv	d2, d2, d3
	mov	x9, x20
	mov	x10, x21
	fmov	d3, d0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	fcmp	d3, d2
	ccmp	w8, w20, #4, mi
	b.gt	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	scvtf	d4, w9
	fmul	d3, d3, d4
	add	w0, w0, #1
	scvtf	d4, w10
	fdiv	d3, d3, d4
	fadd	d0, d0, d3
	add	w10, w10, w21
	sub	w9, w9, #1
	add	w8, w8, w19
	fcmp	d0, d1
	ccmp	w0, w20, #0, mi
	b.lt	LBB0_9
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
