	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cost_merge_append              ## -- Begin function cost_merge_append
	.p2align	4, 0x90
_cost_merge_append:                     ## @cost_merge_append
	.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
	movsd	%xmm2, -16(%rbp)                ## 8-byte Spill
	movaps	%xmm1, -64(%rbp)                ## 16-byte Spill
	movaps	%xmm0, -48(%rbp)                ## 16-byte Spill
	movq	%rdi, %rbx
	cmpl	$3, %ecx
	movl	$2, %eax
	cmovgel	%ecx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movapd	%xmm0, -32(%rbp)                ## 16-byte Spill
	callq	_LOG2
	movq	_cpu_operator_cost@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	addsd	%xmm1, %xmm1
	movapd	-32(%rbp), %xmm3                ## 16-byte Reload
	mulsd	%xmm1, %xmm3
	mulsd	%xmm0, %xmm3
	xorpd	%xmm2, %xmm2
	addsd	%xmm2, %xmm3
	movsd	-16(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	mulsd	%xmm4, %xmm1
	mulsd	%xmm0, %xmm1
	movq	_cpu_tuple_cost@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movq	_APPEND_CPU_COST_MULTIPLIER@GOTPCREL(%rip), %rax
	mulsd	(%rax), %xmm0
	addsd	%xmm2, %xmm1
	mulsd	%xmm4, %xmm0
	addsd	%xmm1, %xmm0
	addsd	%xmm3, %xmm0
	unpcklpd	%xmm0, %xmm3                    ## xmm3 = xmm3[0],xmm0[0]
	movapd	-48(%rbp), %xmm0                ## 16-byte Reload
	unpcklpd	-64(%rbp), %xmm0                ## 16-byte Folded Reload
                                        ## xmm0 = xmm0[0],mem[0]
	addpd	%xmm3, %xmm0
	movupd	%xmm0, (%rbx)
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_operator_cost,8,3          ## @cpu_operator_cost
	.comm	_cpu_tuple_cost,8,3             ## @cpu_tuple_cost
	.comm	_APPEND_CPU_COST_MULTIPLIER,8,3 ## @APPEND_CPU_COST_MULTIPLIER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cost_merge_append              ; -- Begin function cost_merge_append
	.p2align	2
_cost_merge_append:                     ; @cost_merge_append
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	fmov	d8, d2
	fmov	d9, d1
	fmov	d10, d0
	mov	x19, x0
	mov	w8, #2
	cmp	w3, #2
	csel	w8, w3, w8, gt
	scvtf	d11, w8
	fmov	d0, d11
	bl	_LOG2
Lloh0:
	adrp	x8, _cpu_operator_cost@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_operator_cost@GOTPAGEOFF]
Lloh2:
	ldr	d1, [x8]
	fadd	d1, d1, d1
	fmul	d2, d1, d11
	movi	d3, #0000000000000000
	fmadd	d2, d2, d0, d3
	fmul	d1, d1, d8
Lloh3:
	adrp	x8, _cpu_tuple_cost@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cpu_tuple_cost@GOTPAGEOFF]
	fmadd	d0, d1, d0, d3
Lloh5:
	ldr	d1, [x8]
Lloh6:
	adrp	x8, _APPEND_CPU_COST_MULTIPLIER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _APPEND_CPU_COST_MULTIPLIER@GOTPAGEOFF]
Lloh8:
	ldr	d3, [x8]
	fmul	d1, d1, d3
	fmadd	d0, d1, d8, d0
	fadd	d1, d2, d10
	fadd	d0, d2, d0
	fadd	d0, d0, d9
	stp	d1, d0, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_operator_cost,8,3          ; @cpu_operator_cost
	.comm	_cpu_tuple_cost,8,3             ; @cpu_tuple_cost
	.comm	_APPEND_CPU_COST_MULTIPLIER,8,3 ; @APPEND_CPU_COST_MULTIPLIER
.subsections_via_symbols
