	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function histogram_selectivity
LCPI0_0:
	.quad	0xbff0000000000000              ## double -1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_histogram_selectivity
	.p2align	4, 0x90
_histogram_selectivity:                 ## @histogram_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, %r13d
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	16(%rbp), %rbx
	movl	%r9d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_Assert
	leal	(%r15,%r15), %eax
	xorl	%edi, %edi
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	%r13d, %eax
	setl	%dil
	callq	_Assert
	movl	(%r14), %edi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_statistic_proc_security_check
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movl	(%r14), %esi
	movq	_STATISTIC_KIND_HISTOGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ATTSTATSSLOT_VALUES@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-80(%rbp), %rdi
	callq	_get_attstatsslot
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movl	-80(%rbp), %eax
	movl	%eax, (%rbx)
	cmpl	%r13d, %eax
	jge	LBB0_5
## %bb.4:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	jmp	LBB0_14
LBB0_15:
	movl	$0, (%rbx)
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	jmp	LBB0_16
LBB0_5:
	movl	%eax, %ecx
	subl	%r15d, %ecx
	xorl	%r14d, %r14d
	cmpl	%r15d, %ecx
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	jle	LBB0_13
## %bb.6:
	movslq	%r15d, %rbx
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movl	-80(%rbp), %eax
	movl	%eax, %ecx
	subl	%r15d, %ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	-64(%rbp), %esi
	movq	-72(%rbp), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	%r12, %rdi
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%ecx, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	-48(%rbp), %edx                 ## 4-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	callq	_FunctionCall2Coll
	movl	%eax, %edi
	callq	_DatumGetBool
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	incl	%r14d
	jmp	LBB0_12
LBB0_13:
	cvtsi2sd	%r14d, %xmm1
	subl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	cvtsi2sd	%eax, %xmm0
	divsd	%xmm0, %xmm1
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
LBB0_14:
	leaq	-80(%rbp), %rdi
	callq	_free_attstatsslot
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATISTIC_KIND_HISTOGRAM,4,2   ## @STATISTIC_KIND_HISTOGRAM
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_ATTSTATSSLOT_VALUES,4,2        ## @ATTSTATSSLOT_VALUES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_histogram_selectivity          ; -- Begin function histogram_selectivity
	.p2align	2
_histogram_selectivity:                 ; @histogram_selectivity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	mov	x23, x6
	mov	x19, x5
	mov	x24, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x25, x0
	mvn	w8, w5
	lsr	w0, w8, #31
	bl	_Assert
	lsl	w26, w19, #1
	cmp	w26, w24
	cset	w0, lt
	bl	_Assert
	ldr	w0, [x25]
	bl	_HeapTupleIsValid
	cbz	x0, LBB0_12
; %bb.1:
	ldr	w1, [x22]
	mov	x0, x25
	bl	_statistic_proc_security_check
	cbz	x0, LBB0_12
; %bb.2:
	ldr	w1, [x25]
Lloh0:
	adrp	x8, _STATISTIC_KIND_HISTOGRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATISTIC_KIND_HISTOGRAM@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh4:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _ATTSTATSSLOT_VALUES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATTSTATSSLOT_VALUES@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	add	x0, sp, #8
	bl	_get_attstatsslot
	cbz	x0, LBB0_12
; %bb.3:
	ldr	w8, [sp, #8]
	str	w8, [x23]
	fmov	d8, #-1.00000000
	cmp	w8, w24
	b.lt	LBB0_15
; %bb.4:
	sub	w9, w8, w19
	cmp	w9, w19
	b.le	LBB0_13
; %bb.5:
	mov	w23, #0
	sxtw	x24, w19
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	ldr	w8, [sp, #8]
	sub	w9, w8, w19
	cmp	x24, w9, sxtw
	b.ge	LBB0_14
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [sp, #24]
	ldr	x8, [sp, #16]
	ldr	w3, [x8, x24, lsl #2]
	mov	x0, x22
	cbz	w20, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x2, x3
	mov	x3, x21
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x2, x21
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_FunctionCall2Coll
	bl	_DatumGetBool
	cbz	x0, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	add	w23, w23, #1
	b	LBB0_6
LBB0_12:
	str	wzr, [x23]
	fmov	d8, #-1.00000000
	b	LBB0_16
LBB0_13:
	mov	w23, #0
LBB0_14:
	scvtf	d0, w23
	sub	w8, w8, w26
	scvtf	d1, w8
	fdiv	d8, d0, d1
LBB0_15:
	add	x0, sp, #8
	bl	_free_attstatsslot
LBB0_16:
	fmov	d0, d8
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STATISTIC_KIND_HISTOGRAM,4,2   ; @STATISTIC_KIND_HISTOGRAM
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_ATTSTATSSLOT_VALUES,4,2        ; @ATTSTATSSLOT_VALUES
.subsections_via_symbols
