	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function var_eq_non_const
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_var_eq_non_const
	.p2align	4, 0x90
_var_eq_non_const:                      ## @var_eq_non_const
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%r8d, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	callq	_GETSTRUCT
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	jmp	LBB0_3
LBB0_1:
	xorpd	%xmm0, %xmm0
LBB0_3:
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.4:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	ucomisd	LCPI0_0(%rip), %xmm0
	jae	LBB0_14
LBB0_6:
	movl	(%rbx), %edi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	subsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -24(%rbp)                ## 8-byte Spill
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_get_variable_numdistinct
	maxsd	LCPI0_0(%rip), %xmm0
	movsd	-24(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	%xmm1, -24(%rbp)                ## 8-byte Spill
	movl	(%rbx), %esi
	movq	_STATISTIC_KIND_MCV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ATTSTATSSLOT_NUMBERS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-56(%rbp), %rdi
	callq	_get_attstatsslot
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	cmpq	$0, -56(%rbp)
	jle	LBB0_11
## %bb.9:
	movq	-48(%rbp), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movsd	-24(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_11
## %bb.10:
	movsd	%xmm0, -24(%rbp)                ## 8-byte Spill
LBB0_11:
	leaq	-56(%rbp), %rdi
	callq	_free_attstatsslot
LBB0_12:
	movsd	-24(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	testl	%r14d, %r14d
	jne	LBB0_16
	jmp	LBB0_17
LBB0_13:
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_get_variable_numdistinct
LBB0_14:
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	testl	%r14d, %r14d
	je	LBB0_17
LBB0_16:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	subsd	%xmm1, %xmm0
	subsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	movapd	%xmm0, %xmm1
LBB0_17:
	movsd	%xmm1, -24(%rbp)                ## 8-byte Spill
	movapd	%xmm1, %xmm0
	callq	_CLAMP_PROBABILITY
	movsd	-24(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATISTIC_KIND_MCV,4,2         ## @STATISTIC_KIND_MCV
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.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	_var_eq_non_const               ; -- Begin function var_eq_non_const
	.p2align	2
_var_eq_non_const:                      ; @var_eq_non_const
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x4
	mov	x20, x0
	ldr	w0, [x0]
	bl	_HeapTupleIsValid
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	bl	_GETSTRUCT
	ldr	d8, [x0]
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_3
	b	LBB0_5
LBB0_2:
	movi	d8, #0000000000000000
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
LBB0_3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	d0, [x8]
	fmov	d1, #1.00000000
	fcmp	d0, d1
	b.ge	LBB0_12
LBB0_5:
	ldr	w0, [x20]
	bl	_HeapTupleIsValid
	cbz	x0, LBB0_11
; %bb.6:
	fmov	d9, #1.00000000
	fsub	d10, d9, d8
	add	x1, sp, #28
	mov	x0, x20
	bl	_get_variable_numdistinct
	fmaxnm	d0, d0, d9
	ldr	w1, [x20]
Lloh0:
	adrp	x8, _STATISTIC_KIND_MCV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATISTIC_KIND_MCV@GOTPAGEOFF]
Lloh2:
	adrp	x9, _InvalidOid@GOTPAGE
Lloh3:
	ldr	x9, [x9, _InvalidOid@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	ldr	w3, [x9]
Lloh6:
	adrp	x8, _ATTSTATSSLOT_NUMBERS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATTSTATSSLOT_NUMBERS@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	fdiv	d9, d10, d0
	add	x0, sp, #8
	bl	_get_attstatsslot
	cbz	x0, LBB0_13
; %bb.7:
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.8:
	ldr	x8, [sp, #16]
	ldr	d0, [x8]
	fcmp	d9, d0
	b.le	LBB0_10
; %bb.9:
	fmov	d9, d0
LBB0_10:
	add	x0, sp, #8
	bl	_free_attstatsslot
	b	LBB0_13
LBB0_11:
	add	x1, sp, #28
	mov	x0, x20
	bl	_get_variable_numdistinct
	fmov	d1, #1.00000000
LBB0_12:
	fdiv	d9, d1, d0
LBB0_13:
	fmov	d0, #1.00000000
	fsub	d0, d0, d9
	fsub	d0, d0, d8
	cmp	w19, #0
	fcsel	d8, d9, d0, eq
	fmov	d0, d8
	bl	_CLAMP_PROBABILITY
	fmov	d0, d8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_STATISTIC_KIND_MCV,4,2         ; @STATISTIC_KIND_MCV
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_ATTSTATSSLOT_NUMBERS,4,2       ; @ATTSTATSSLOT_NUMBERS
.subsections_via_symbols
