	.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_const
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_var_eq_const
	.p2align	4, 0x90
_var_eq_const:                          ## @var_eq_const
	.cfi_startproc
## %bb.0:
	xorpd	%xmm0, %xmm0
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.37:
	retq
LBB0_1:
	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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, %r15d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r13
	movl	(%rdi), %edi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	(%r13), %edi
	callq	_GETSTRUCT
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	jmp	LBB0_4
LBB0_2:
	xorpd	%xmm0, %xmm0
LBB0_4:
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	cmpq	$0, 16(%r13)
	je	LBB0_7
## %bb.5:
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	ucomisd	LCPI0_0(%rip), %xmm0
	jae	LBB0_33
LBB0_7:
	movl	(%r13), %edi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	je	LBB0_32
## %bb.8:
	movl	%ebx, %edi
	callq	_get_opcode
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_statistic_proc_security_check
	testq	%rax, %rax
	je	LBB0_32
## %bb.9:
	movl	(%r13), %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	-104(%rbp), %rdi
	callq	_get_attstatsslot
	testq	%rax, %rax
	je	LBB0_18
## %bb.10:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	leaq	-52(%rbp), %rsi
	movl	%ebx, %edi
	callq	_fmgr_info
	cmpl	$0, -104(%rbp)
	jle	LBB0_17
## %bb.11:
	xorl	%r14d, %r14d
	leaq	-52(%rbp), %rbx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	-72(%rbp), %esi
	movq	-80(%rbp), %rax
	movl	(%rax,%r14,4), %ecx
	movq	%rbx, %rdi
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%ecx, %edx
	movl	%r12d, %ecx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%r12d, %edx
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	callq	_FunctionCall2Coll
	movl	%eax, %edi
	callq	_DatumGetBool
	testl	%eax, %eax
	jne	LBB0_22
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%r14
	movslq	-104(%rbp), %rax
	cmpq	%rax, %r14
	jl	LBB0_12
LBB0_17:
	movl	-48(%rbp), %r14d                ## 4-byte Reload
LBB0_18:
	movl	-88(%rbp), %edx
	testl	%edx, %edx
	jle	LBB0_19
## %bb.20:
	movq	-96(%rbp), %rcx
	leaq	-1(%rdx), %rsi
	movl	%edx, %eax
	andl	$7, %eax
	cmpq	$7, %rsi
	jae	LBB0_23
## %bb.21:
	xorpd	%xmm2, %xmm2
	xorl	%esi, %esi
	jmp	LBB0_25
LBB0_32:
	leaq	-52(%rbp), %rsi
	movq	%r13, %rdi
	callq	_get_variable_numdistinct
LBB0_33:
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	testl	%r14d, %r14d
	je	LBB0_36
LBB0_35:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	subsd	%xmm1, %xmm0
	subsd	-64(%rbp), %xmm0                ## 8-byte Folded Reload
	movapd	%xmm0, %xmm1
LBB0_36:
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	movapd	%xmm1, %xmm0
	callq	_CLAMP_PROBABILITY
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	xorpd	%xmm2, %xmm2
	jmp	LBB0_28
LBB0_23:
	andl	$-8, %edx
	xorpd	%xmm2, %xmm2
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	addsd	(%rcx,%rsi,8), %xmm2
	addsd	8(%rcx,%rsi,8), %xmm2
	addsd	16(%rcx,%rsi,8), %xmm2
	addsd	24(%rcx,%rsi,8), %xmm2
	addsd	32(%rcx,%rsi,8), %xmm2
	addsd	40(%rcx,%rsi,8), %xmm2
	addsd	48(%rcx,%rsi,8), %xmm2
	addsd	56(%rcx,%rsi,8), %xmm2
	addq	$8, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_24
LBB0_25:
	testq	%rax, %rax
	je	LBB0_28
## %bb.26:
	leaq	(%rcx,%rsi,8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	addsd	(%rcx,%rdx,8), %xmm2
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_27
LBB0_28:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	subsd	%xmm2, %xmm0
	subsd	-64(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	callq	_CLAMP_PROBABILITY
	leaq	-52(%rbp), %rsi
	movq	%r13, %rdi
	callq	_get_variable_numdistinct
	movl	-88(%rbp), %eax
	cvtsi2sd	%eax, %xmm1
	subsd	%xmm1, %xmm0
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	maxsd	LCPI0_0(%rip), %xmm0
	divsd	%xmm0, %xmm1
	testl	%eax, %eax
	jle	LBB0_31
## %bb.29:
	movq	-96(%rbp), %rcx
	decl	%eax
	movsd	(%rcx,%rax,8), %xmm0            ## xmm0 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_31
## %bb.30:
	movapd	%xmm0, %xmm1
	jmp	LBB0_31
LBB0_22:
	movq	-96(%rbp), %rax
	movsd	(%rax,%r14,8), %xmm1            ## xmm1 = mem[0],zero
	movl	-48(%rbp), %r14d                ## 4-byte Reload
LBB0_31:
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	leaq	-104(%rbp), %rdi
	callq	_free_attstatsslot
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	testl	%r14d, %r14d
	jne	LBB0_35
	jmp	LBB0_36
	.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	_var_eq_const                   ; -- Begin function var_eq_const
	.p2align	2
_var_eq_const:                          ; @var_eq_const
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d11, d10, [sp, #48]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	movi	d8, #0000000000000000
	cbnz	w3, LBB0_33
; %bb.1:
	mov	x19, x5
	mov	x21, x4
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_HeapTupleIsValid
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x20]
	bl	_GETSTRUCT
	ldr	d9, [x0]
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_4
	b	LBB0_6
LBB0_3:
	movi	d9, #0000000000000000
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
LBB0_4:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	d0, [x8]
	fmov	d1, #1.00000000
	fcmp	d0, d1
	b.ge	LBB0_20
LBB0_6:
	ldr	w0, [x20]
	bl	_HeapTupleIsValid
	cbz	x0, LBB0_19
; %bb.7:
	mov	x0, x23
	bl	_get_opcode
	mov	x23, x0
	mov	x0, x20
	mov	x1, x23
	bl	_statistic_proc_security_check
	cbz	x0, LBB0_19
; %bb.8:
Lloh0:
	adrp	x8, _STATISTIC_KIND_MCV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATISTIC_KIND_MCV@GOTPAGEOFF]
	ldr	w1, [x20]
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
	cbz	x0, LBB0_16
; %bb.9:
	add	x1, sp, #44
	mov	x0, x23
	bl	_fmgr_info
	ldr	w8, [sp]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.10:
	mov	x23, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [sp, #32]
	ldr	x8, [sp, #24]
	ldr	w3, [x8, x23, lsl #2]
	add	x0, sp, #44
	cbz	w21, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x2, x3
	mov	x3, x22
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x2, x22
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	bl	_FunctionCall2Coll
	bl	_DatumGetBool
	cbnz	w0, LBB0_30
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [sp]
	cmp	x23, x8
	b.lt	LBB0_11
LBB0_16:
	ldr	w8, [sp, #16]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.17:
	ldr	x9, [sp, #8]
	cmp	w8, #4
	b.hs	LBB0_22
; %bb.18:
	mov	x10, #0
	movi	d0, #0000000000000000
	b	LBB0_25
LBB0_19:
	add	x1, sp, #44
	mov	x0, x20
	bl	_get_variable_numdistinct
	fmov	d1, #1.00000000
LBB0_20:
	fdiv	d8, d1, d0
	b	LBB0_32
LBB0_21:
	movi	d0, #0000000000000000
	b	LBB0_27
LBB0_22:
	and	x10, x8, #0xfffffffc
	add	x11, x9, #16
	movi	d0, #0000000000000000
	mov	x12, x10
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldp	d1, d2, [x11, #-16]
	ldp	d3, d4, [x11], #32
	fadd	d0, d0, d1
	fadd	d0, d0, d2
	fadd	d0, d0, d3
	fadd	d0, d0, d4
	subs	x12, x12, #4
	b.ne	LBB0_23
; %bb.24:
	cmp	x10, x8
	b.eq	LBB0_27
LBB0_25:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	d1, [x9], #8
	fadd	d0, d0, d1
	subs	x8, x8, #1
	b.ne	LBB0_26
LBB0_27:
	fmov	d10, #1.00000000
	fsub	d0, d10, d0
	fsub	d8, d0, d9
	fmov	d0, d8
	bl	_CLAMP_PROBABILITY
	add	x1, sp, #44
	mov	x0, x20
	bl	_get_variable_numdistinct
	ldr	w8, [sp, #16]
	scvtf	d1, w8
	fsub	d0, d0, d1
	fmaxnm	d0, d0, d10
	fdiv	d8, d8, d0
	subs	w8, w8, #1
	b.lt	LBB0_31
; %bb.28:
	ldr	x9, [sp, #8]
	ldr	d0, [x9, w8, uxtw #3]
	fcmp	d8, d0
	b.le	LBB0_31
; %bb.29:
	fmov	d8, d0
	b	LBB0_31
LBB0_30:
	ldr	x8, [sp, #8]
	ldr	d8, [x8, x23, lsl #3]
LBB0_31:
	mov	x0, sp
	bl	_free_attstatsslot
LBB0_32:
	fmov	d0, #1.00000000
	fsub	d0, d0, d8
	fsub	d0, d0, d9
	cmp	w19, #0
	fcsel	d8, d8, d0, eq
	fmov	d0, d8
	bl	_CLAMP_PROBABILITY
LBB0_33:
	fmov	d0, d8
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	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
