	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function cost_gather_merge
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x3ff0cccccccccccd              ## double 1.05
LCPI0_2:
	.quad	0x0000000000000000              ## double 0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cost_gather_merge
	.p2align	4, 0x90
_cost_gather_merge:                     ## @cost_gather_merge
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movapd	%xmm1, -48(%rbp)                ## 16-byte Spill
	movaps	%xmm0, -64(%rbp)                ## 16-byte Spill
	movq	%rdi, %rbx
	testq	%r8, %r8
	jne	LBB0_4
## %bb.1:
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	movq	%rcx, %r8
	jmp	LBB0_4
LBB0_3:
	movq	%rdx, %r8
LBB0_4:
	movsd	(%r8), %xmm0                    ## xmm0 = mem[0],zero
	movsd	%xmm0, 8(%rbx)
	movq	_enable_gathermerge@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	xorpd	%xmm0, %xmm0
	je	LBB0_5
## %bb.6:
	xorpd	%xmm0, %xmm0
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	jmp	LBB0_7
LBB0_5:
	movq	_disable_cost@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	movsd	%xmm1, -16(%rbp)                ## 8-byte Spill
LBB0_7:
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setg	%dil
	callq	_Assert
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%rbx), %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	movapd	%xmm0, -32(%rbp)                ## 16-byte Spill
	callq	_LOG2
	movq	_cpu_operator_cost@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	movapd	%xmm1, %xmm2
	addsd	%xmm1, %xmm2
	movapd	-32(%rbp), %xmm3                ## 16-byte Reload
	mulsd	%xmm2, %xmm3
	mulsd	%xmm0, %xmm3
	addsd	-16(%rbp), %xmm3                ## 8-byte Folded Reload
	movapd	%xmm3, %xmm4
	movsd	8(%rbx), %xmm3                  ## xmm3 = mem[0],zero
	mulsd	%xmm3, %xmm2
	mulsd	%xmm0, %xmm2
	addsd	LCPI0_2(%rip), %xmm2
	mulsd	%xmm3, %xmm1
	addsd	%xmm2, %xmm1
	movq	_parallel_setup_cost@GOTPCREL(%rip), %rax
	movq	_parallel_tuple_cost@GOTPCREL(%rip), %rcx
	mulsd	(%rcx), %xmm3
	mulsd	LCPI0_1(%rip), %xmm3
	addsd	%xmm1, %xmm3
	addsd	(%rax), %xmm4
	addsd	%xmm4, %xmm3
	unpcklpd	%xmm3, %xmm4                    ## xmm4 = xmm4[0],xmm3[0]
	movapd	-64(%rbp), %xmm0                ## 16-byte Reload
	unpcklpd	-48(%rbp), %xmm0                ## 16-byte Folded Reload
                                        ## xmm0 = xmm0[0],mem[0]
	addpd	%xmm4, %xmm0
	movupd	%xmm0, 16(%rbx)
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_enable_gathermerge,4,2         ## @enable_gathermerge
	.comm	_disable_cost,8,3               ## @disable_cost
	.comm	_cpu_operator_cost,8,3          ## @cpu_operator_cost
	.comm	_parallel_setup_cost,8,3        ## @parallel_setup_cost
	.comm	_parallel_tuple_cost,8,3        ## @parallel_tuple_cost
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cost_gather_merge              ; -- Begin function cost_gather_merge
	.p2align	2
_cost_gather_merge:                     ; @cost_gather_merge
	.cfi_startproc
; %bb.0:
	stp	d13, d12, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	.cfi_offset b12, -72
	.cfi_offset b13, -80
	fmov	d8, d1
	fmov	d9, d0
	mov	x19, x0
	cbnz	x4, LBB0_2
; %bb.1:
	cmp	x3, #0
	csel	x4, x2, x3, eq
LBB0_2:
	ldr	d0, [x4]
Lloh0:
	adrp	x8, _enable_gathermerge@GOTPAGE
Lloh1:
	ldr	x8, [x8, _enable_gathermerge@GOTPAGEOFF]
	str	d0, [x19, #8]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _disable_cost@GOTPAGE
Lloh4:
	ldr	x9, [x9, _disable_cost@GOTPAGEOFF]
Lloh5:
	ldr	d0, [x9]
	movi	d11, #0000000000000000
	fadd	d0, d0, d11
	cmp	w8, #0
	fcsel	d12, d0, d11, eq
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, gt
	bl	_Assert
	ldr	d0, [x19]
	scvtf	d0, d0
	fmov	d1, #1.00000000
	fadd	d10, d0, d1
	fmov	d0, d10
	bl	_LOG2
Lloh6:
	adrp	x8, _cpu_operator_cost@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cpu_operator_cost@GOTPAGEOFF]
Lloh8:
	ldr	d1, [x8]
	fadd	d2, d1, d1
	fmul	d3, d10, d2
	fmadd	d3, d3, d0, d12
	ldr	d4, [x19, #8]
	fmul	d2, d4, d2
	fmadd	d0, d2, d0, d11
	fmadd	d0, d1, d4, d0
Lloh9:
	adrp	x8, _parallel_setup_cost@GOTPAGE
Lloh10:
	ldr	x8, [x8, _parallel_setup_cost@GOTPAGEOFF]
Lloh11:
	ldr	d1, [x8]
	fadd	d1, d1, d3
Lloh12:
	adrp	x8, _parallel_tuple_cost@GOTPAGE
Lloh13:
	ldr	x8, [x8, _parallel_tuple_cost@GOTPAGEOFF]
Lloh14:
	ldr	d2, [x8]
	fmul	d2, d4, d2
	mov	x8, #-3689348814741910324
	movk	x8, #52429
	movk	x8, #16368, lsl #48
	fmov	d3, x8
	fmadd	d0, d2, d3, d0
	fadd	d2, d1, d9
	fadd	d0, d1, d0
	fadd	d0, d0, d8
	stp	d2, d0, [x19, #16]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_enable_gathermerge,4,2         ; @enable_gathermerge
	.comm	_disable_cost,8,3               ; @disable_cost
	.comm	_cpu_operator_cost,8,3          ; @cpu_operator_cost
	.comm	_parallel_setup_cost,8,3        ; @parallel_setup_cost
	.comm	_parallel_tuple_cost,8,3        ; @parallel_tuple_cost
.subsections_via_symbols
