	.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_subplan
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cost_subplan
	.p2align	4, 0x90
_cost_subplan:                          ## @cost_subplan
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	40(%rsi), %rdi
	callq	_make_ands_implicit
	leaq	-40(%rbp), %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_cost_qual_eval
	cmpq	$0, 32(%r15)
	movsd	(%r14), %xmm2                   ## xmm2 = mem[0],zero
	je	LBB0_2
## %bb.1:
	movq	_cpu_operator_cost@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	mulsd	8(%r14), %xmm0
	cvtsi2sdl	-32(%rbp), %xmm1
	addsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %eax
	jmp	LBB0_12
LBB0_2:
	subsd	16(%r14), %xmm2
	movq	(%r15), %rax
	movq	_EXISTS_SUBLINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movsd	8(%r14), %xmm0                  ## xmm0 = mem[0],zero
	movsd	%xmm2, -48(%rbp)                ## 8-byte Spill
	callq	_clamp_row_est
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	addsd	-40(%rbp), %xmm1
	movsd	%xmm1, -40(%rbp)
	movapd	%xmm1, %xmm0
	jmp	LBB0_8
LBB0_4:
	movq	_ALL_SUBLINK@GOTPCREL(%rip), %rcx
	movsd	-40(%rbp), %xmm1                ## xmm1 = mem[0],zero
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_ANY_SUBLINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.7:
	addsd	%xmm1, %xmm2
	movsd	%xmm2, -40(%rbp)
	movapd	%xmm2, %xmm0
	jmp	LBB0_8
LBB0_6:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm2
	addsd	%xmm1, %xmm2
	mulsd	8(%r14), %xmm0
	movq	_cpu_operator_cost@GOTPCREL(%rip), %rax
	mulsd	(%rax), %xmm0
	addsd	%xmm2, %xmm0
	movsd	%xmm0, -40(%rbp)
LBB0_8:
	movq	8(%r15), %rax
	movq	_NIL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	movq	%r14, %rdi
	callq	_nodeTag
	movl	%eax, %edi
	callq	_ExecMaterializesOutput
	testq	%rax, %rax
	je	LBB0_10
## %bb.13:
	xorps	%xmm0, %xmm0
	cvtsi2sdl	-32(%rbp), %xmm0
	addsd	16(%r14), %xmm0
	cvttsd2si	%xmm0, %eax
	jmp	LBB0_12
LBB0_10:
	movsd	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero
LBB0_11:
	addsd	16(%r14), %xmm0
	movsd	%xmm0, -40(%rbp)
	movl	-32(%rbp), %eax
LBB0_12:
	movl	%eax, 24(%r15)
	movsd	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	%xmm0, 16(%r15)
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_operator_cost,8,3          ## @cpu_operator_cost
	.comm	_EXISTS_SUBLINK,8,3             ## @EXISTS_SUBLINK
	.comm	_ALL_SUBLINK,8,3                ## @ALL_SUBLINK
	.comm	_ANY_SUBLINK,8,3                ## @ANY_SUBLINK
	.comm	_NIL,8,3                        ## @NIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cost_subplan                   ; -- Begin function cost_subplan
	.p2align	2
_cost_subplan:                          ; @cost_subplan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x0, [x1, #40]
	bl	_make_ands_implicit
	mov	x1, x0
	mov	x0, sp
	mov	x2, x21
	bl	_cost_qual_eval
	ldr	x8, [x19, #32]
	ldr	d0, [x20]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _cpu_operator_cost@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_operator_cost@GOTPAGEOFF]
Lloh2:
	ldr	d1, [x8]
	ldr	d2, [x20, #8]
	fmadd	d0, d1, d2, d0
LBB0_2:
	ldr	s1, [sp, #8]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fadd	d0, d0, d1
	fcvtzs	w8, d0
	b	LBB0_13
LBB0_3:
	ldr	d1, [x20, #16]
	fsub	d8, d0, d1
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _EXISTS_SUBLINK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EXISTS_SUBLINK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	d0, [x20, #8]
	bl	_clamp_row_est
	fdiv	d0, d8, d0
	ldr	d1, [sp]
	fadd	d0, d1, d0
	b	LBB0_8
LBB0_5:
Lloh6:
	adrp	x9, _ALL_SUBLINK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ALL_SUBLINK@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _ANY_SUBLINK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ANY_SUBLINK@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	ldr	d0, [sp]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.6:
	fmov	d1, #0.50000000
	fmadd	d0, d8, d1, d0
	ldr	d2, [x20, #8]
	fmul	d1, d2, d1
Lloh12:
	adrp	x8, _cpu_operator_cost@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cpu_operator_cost@GOTPAGEOFF]
Lloh14:
	ldr	d2, [x8]
	fmadd	d0, d1, d2, d0
	b	LBB0_8
LBB0_7:
	fadd	d0, d8, d0
LBB0_8:
	str	d0, [sp]
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x9, _NIL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NIL@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.9:
	mov	x0, x20
	bl	_nodeTag
	bl	_ExecMaterializesOutput
	cbz	x0, LBB0_11
; %bb.10:
	ldr	d0, [x20, #16]
	b	LBB0_2
LBB0_11:
	ldr	d0, [sp]
LBB0_12:
	ldr	d1, [x20, #16]
	fadd	d0, d1, d0
	str	d0, [sp]
	ldr	w8, [sp, #8]
LBB0_13:
	str	w8, [x19, #24]
	ldr	d0, [sp]
	str	d0, [x19, #16]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_operator_cost,8,3          ; @cpu_operator_cost
	.comm	_EXISTS_SUBLINK,8,3             ; @EXISTS_SUBLINK
	.comm	_ALL_SUBLINK,8,3                ; @ALL_SUBLINK
	.comm	_ANY_SUBLINK,8,3                ; @ANY_SUBLINK
	.comm	_NIL,8,3                        ; @NIL
.subsections_via_symbols
