	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cost_subqueryscan              ## -- Begin function cost_subqueryscan
	.p2align	4, 0x90
_cost_subqueryscan:                     ## @cost_subqueryscan
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rdx)
	setg	%dil
	callq	_Assert
	movq	8(%r14), %rax
	movq	_RTE_SUBQUERY@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	leaq	16(%r14), %rax
	testq	%r15, %r15
	cmovneq	%r15, %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	24(%rbx), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	leaq	-40(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_get_restriction_qual_cost
	movq	_cpu_tuple_cost@GOTPCREL(%rip), %rax
	movl	-36(%rbp), %ecx
	addl	(%rax), %ecx
	imull	20(%r14), %ecx
	movq	16(%rbx), %rax
	movl	(%rax), %edx
	addl	-40(%rbp), %edx
	movl	(%rbx), %esi
	imull	4(%rax), %esi
	addl	%edx, 8(%rbx)
	addl	%ecx, %edx
	addl	%esi, %edx
	addl	%edx, 4(%rbx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTE_SUBQUERY,8,3               ## @RTE_SUBQUERY
	.comm	_cpu_tuple_cost,4,2             ## @cpu_tuple_cost
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cost_subqueryscan              ; -- Begin function cost_subqueryscan
	.p2align	2
_cost_subqueryscan:                     ; @cost_subqueryscan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x2]
	cmp	x8, #0
	cset	w0, gt
	bl	_Assert
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _RTE_SUBQUERY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTE_SUBQUERY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	add	x8, x20, #16
	cmp	x19, #0
	csel	x8, x8, x19, eq
	ldr	w8, [x8]
	str	w8, [x22]
	ldr	x8, [x22, #24]
	ldr	d0, [x8]
	stur	d0, [x22, #4]
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_get_restriction_qual_cost
Lloh3:
	adrp	x8, _cpu_tuple_cost@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cpu_tuple_cost@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldp	w9, w10, [sp, #8]
	add	w8, w10, w8
	ldr	w10, [x20, #20]
	ldr	x11, [x22, #16]
	ldp	w12, w11, [x11]
	ldr	w13, [x22, #8]
	add	w9, w12, w9
	add	w12, w13, w9
	madd	w8, w8, w10, w9
	ldp	w9, w10, [x22]
	madd	w8, w9, w11, w8
	add	w8, w8, w10
	stp	w8, w12, [x22, #4]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RTE_SUBQUERY,8,3               ; @RTE_SUBQUERY
	.comm	_cpu_tuple_cost,4,2             ; @cpu_tuple_cost
.subsections_via_symbols
