	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function adjust_limit_rows_costs
LCPI0_0:
	.quad	0x3fb999999999999a              ## double 0.10000000000000001
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_adjust_limit_rows_costs
	.p2align	4, 0x90
_adjust_limit_rows_costs:               ## @adjust_limit_rows_costs
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movsd	(%rdi), %xmm4                   ## xmm4 = mem[0],zero
	movsd	(%rsi), %xmm5                   ## xmm5 = mem[0],zero
	movsd	(%rdx), %xmm3                   ## xmm3 = mem[0],zero
	movapd	%xmm4, %xmm1
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.1:
	jle	LBB0_3
## %bb.2:
	cvtsi2sd	%rcx, %xmm0
	movapd	%xmm4, %xmm2
	jmp	LBB0_4
LBB0_3:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	mulsd	%xmm4, %xmm0
	movsd	%xmm3, -56(%rbp)                ## 8-byte Spill
	movsd	%xmm4, -48(%rbp)                ## 8-byte Spill
	movsd	%xmm5, -40(%rbp)                ## 8-byte Spill
	callq	_clamp_row_est
	movsd	-40(%rbp), %xmm5                ## 8-byte Reload
                                        ## xmm5 = mem[0],zero
	movsd	-48(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	movsd	-56(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	movsd	(%rbx), %xmm2                   ## xmm2 = mem[0],zero
LBB0_4:
	movapd	%xmm2, %xmm1
	minsd	%xmm0, %xmm1
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm0, %xmm4
	jbe	LBB0_6
## %bb.5:
	movapd	%xmm3, %xmm0
	subsd	%xmm5, %xmm0
	mulsd	%xmm1, %xmm0
	divsd	%xmm4, %xmm0
	addsd	(%r15), %xmm0
	movsd	%xmm0, (%r15)
	movsd	(%rbx), %xmm2                   ## xmm2 = mem[0],zero
LBB0_6:
	subsd	%xmm1, %xmm2
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	maxsd	%xmm2, %xmm1
	movsd	%xmm1, (%rbx)
LBB0_7:
	testq	%r12, %r12
	je	LBB0_14
## %bb.8:
	jle	LBB0_10
## %bb.9:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r12, %xmm0
	jmp	LBB0_11
LBB0_10:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	mulsd	%xmm4, %xmm0
	movsd	%xmm3, -56(%rbp)                ## 8-byte Spill
	movsd	%xmm4, -48(%rbp)                ## 8-byte Spill
	movsd	%xmm5, -40(%rbp)                ## 8-byte Spill
	callq	_clamp_row_est
	movsd	-40(%rbp), %xmm5                ## 8-byte Reload
                                        ## xmm5 = mem[0],zero
	movsd	-48(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	movsd	-56(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	movsd	(%rbx), %xmm1                   ## xmm1 = mem[0],zero
LBB0_11:
	minsd	%xmm0, %xmm1
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm0, %xmm4
	jbe	LBB0_13
## %bb.12:
	subsd	%xmm5, %xmm3
	mulsd	%xmm1, %xmm3
	divsd	%xmm4, %xmm3
	addsd	(%r15), %xmm3
	movsd	%xmm3, (%r14)
LBB0_13:
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	maxsd	%xmm1, %xmm0
	movsd	%xmm0, (%rbx)
LBB0_14:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	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	_adjust_limit_rows_costs        ; -- Begin function adjust_limit_rows_costs
	.p2align	2
_adjust_limit_rows_costs:               ; @adjust_limit_rows_costs
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x4
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	d8, [x0]
	ldr	d9, [x1]
	ldr	d10, [x2]
	fmov	d1, d8
	cbz	x3, LBB0_7
; %bb.1:
	cmp	x3, #1
	b.lt	LBB0_3
; %bb.2:
	scvtf	d0, x3
	fmov	d1, d8
	b	LBB0_4
LBB0_3:
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16313, lsl #48
	fmov	d0, x8
	fmul	d0, d8, d0
	bl	_clamp_row_est
	ldr	d1, [x19]
LBB0_4:
	fcmp	d0, d1
	fcsel	d0, d1, d0, gt
	fcmp	d8, #0.0
	b.le	LBB0_6
; %bb.5:
	fsub	d1, d10, d9
	fmul	d1, d1, d0
	fdiv	d1, d1, d8
	ldr	d2, [x21]
	fadd	d1, d1, d2
	str	d1, [x21]
	ldr	d1, [x19]
LBB0_6:
	fsub	d0, d1, d0
	fmov	d1, #1.00000000
	fmax	d1, d0, d1
	str	d1, [x19]
LBB0_7:
	cbz	x22, LBB0_14
; %bb.8:
	cmp	x22, #1
	b.lt	LBB0_10
; %bb.9:
	scvtf	d0, x22
	b	LBB0_11
LBB0_10:
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16313, lsl #48
	fmov	d0, x8
	fmul	d0, d8, d0
	bl	_clamp_row_est
	ldr	d1, [x19]
LBB0_11:
	fcmp	d0, d1
	fcsel	d0, d1, d0, gt
	fcmp	d8, #0.0
	b.le	LBB0_13
; %bb.12:
	ldr	d1, [x21]
	fsub	d2, d10, d9
	fmul	d2, d2, d0
	fdiv	d2, d2, d8
	fadd	d1, d2, d1
	str	d1, [x20]
LBB0_13:
	fmov	d1, #1.00000000
	fmax	d0, d0, d1
	str	d0, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
