	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mcv_selectivity                ## -- Begin function mcv_selectivity
	.p2align	4, 0x90
_mcv_selectivity:                       ## @mcv_selectivity
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_HeapTupleIsValid
	xorpd	%xmm0, %xmm0
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_statistic_proc_security_check
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %esi
	movq	_STATISTIC_KIND_MCV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ATTSTATSSLOT_VALUES@GOTPCREL(%rip), %rax
	movq	_ATTSTATSSLOT_NUMBERS@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r8d
	orl	(%rax), %r8d
	leaq	-88(%rbp), %rdi
	callq	_get_attstatsslot
	xorpd	%xmm1, %xmm1
	testq	%rax, %rax
	xorpd	%xmm0, %xmm0
	je	LBB0_15
## %bb.5:
	cmpl	$0, -88(%rbp)
	jle	LBB0_6
## %bb.7:
	xorpd	%xmm1, %xmm1
	xorl	%ebx, %ebx
	xorpd	%xmm0, %xmm0
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movq	-80(%rbp), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%rax,%rbx,8), %xmm0
	addsd	%xmm0, %xmm1
	incq	%rbx
	movslq	-88(%rbp), %rax
	cmpq	%rax, %rbx
	jge	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-64(%rbp), %esi
	movq	-72(%rbp), %rax
	movl	(%rax,%rbx,4), %ecx
	testl	%r15d, %r15d
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%ecx, %edx
	movl	%r12d, %ecx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r12d, %edx
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	callq	_FunctionCall2Coll
	movl	%eax, %edi
	callq	_DatumGetBool
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-80(%rbp), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%rax,%rbx,8), %xmm0
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	movsd	%xmm1, -56(%rbp)                ## 8-byte Spill
	jmp	LBB0_13
LBB0_1:
	xorpd	%xmm1, %xmm1
	jmp	LBB0_15
LBB0_3:
	xorpd	%xmm1, %xmm1
	xorpd	%xmm0, %xmm0
	jmp	LBB0_15
LBB0_6:
	xorpd	%xmm0, %xmm0
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	xorpd	%xmm1, %xmm1
LBB0_14:
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	leaq	-88(%rbp), %rdi
	callq	_free_attstatsslot
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
LBB0_15:
	movsd	%xmm1, (%r14)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATISTIC_KIND_MCV,4,2         ## @STATISTIC_KIND_MCV
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_ATTSTATSSLOT_VALUES,4,2        ## @ATTSTATSSLOT_VALUES
	.comm	_ATTSTATSSLOT_NUMBERS,4,2       ## @ATTSTATSSLOT_NUMBERS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mcv_selectivity                ; -- Begin function mcv_selectivity
	.p2align	2
_mcv_selectivity:                       ; @mcv_selectivity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	w0, [x0]
	bl	_HeapTupleIsValid
	movi	d8, #0000000000000000
	cbz	x0, LBB0_11
; %bb.1:
	ldr	w1, [x22]
	mov	x0, x23
	bl	_statistic_proc_security_check
	cbz	x0, LBB0_11
; %bb.2:
Lloh0:
	adrp	x8, _STATISTIC_KIND_MCV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATISTIC_KIND_MCV@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh4:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ATTSTATSSLOT_VALUES@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ATTSTATSSLOT_VALUES@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _ATTSTATSSLOT_NUMBERS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATTSTATSSLOT_NUMBERS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w4, w9, w8
	mov	x0, sp
	bl	_get_attstatsslot
	movi	d9, #0000000000000000
	cbz	x0, LBB0_14
; %bb.3:
	ldr	w8, [sp]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.4:
	mov	x23, #0
	movi	d9, #0000000000000000
	movi	d8, #0000000000000000
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #8]
	ldr	d0, [x8, x23, lsl #3]
	scvtf	d0, d0
	fadd	d9, d9, d0
	add	x23, x23, #1
	ldrsw	x8, [sp]
	cmp	x23, x8
	b.ge	LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [sp, #24]
	ldr	x8, [sp, #16]
	ldr	w3, [x8, x23, lsl #2]
	mov	x0, x22
	cbz	w20, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, x3
	mov	x3, x21
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, x21
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_FunctionCall2Coll
	bl	_DatumGetBool
	cbz	x0, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #8]
	ldr	d0, [x8, x23, lsl #3]
	scvtf	d0, d0
	fadd	d8, d8, d0
	b	LBB0_5
LBB0_11:
	movi	d9, #0000000000000000
	b	LBB0_14
LBB0_12:
	movi	d8, #0000000000000000
	movi	d9, #0000000000000000
LBB0_13:
	mov	x0, sp
	bl	_free_attstatsslot
LBB0_14:
	str	d9, [x19]
	fmov	d0, d8
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STATISTIC_KIND_MCV,4,2         ; @STATISTIC_KIND_MCV
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_ATTSTATSSLOT_VALUES,4,2        ; @ATTSTATSSLOT_VALUES
	.comm	_ATTSTATSSLOT_NUMBERS,4,2       ; @ATTSTATSSLOT_NUMBERS
.subsections_via_symbols
