	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function booltestsel
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_booltestsel
	.p2align	4, 0x90
_booltestsel:                           ## @booltestsel
	.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
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r12d
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	leaq	-56(%rbp), %rcx
	movq	%rdx, %rsi
	movl	%r13d, %edx
	callq	_examine_variable
	movl	-56(%rbp), %edi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	je	LBB0_21
## %bb.1:
	movl	-56(%rbp), %edi
	callq	_GETSTRUCT
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	-56(%rbp), %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	-80(%rbp), %rdi
	callq	_get_attstatsslot
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	cmpq	$0, -80(%rbp)
	jle	LBB0_15
## %bb.3:
	movq	-64(%rbp), %rax
	movl	(%rax), %edi
	callq	_DatumGetBool
	movq	-72(%rbp), %rcx
	movsd	(%rcx), %xmm1                   ## xmm1 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movsd	-48(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	jmp	LBB0_6
LBB0_21:
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	leal	-128(%r15), %eax
	cmpl	$5, %eax
	ja	LBB0_28
## %bb.22:
	leaq	LJTI0_2(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_26:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	callq	_clause_selectivity
	cvtsi2sd	%rax, %xmm0
	jmp	LBB0_29
LBB0_15:
	leal	-128(%r15), %eax
	cmpl	$5, %eax
	ja	LBB0_28
## %bb.16:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_18:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	subsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	mulsd	LCPI0_1(%rip), %xmm0
	jmp	LBB0_29
LBB0_4:
	movapd	%xmm0, %xmm2
	subsd	%xmm1, %xmm2
	movsd	-48(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	subsd	%xmm4, %xmm2
	movapd	%xmm2, %xmm1
LBB0_6:
	leal	-128(%r15), %eax
	cmpl	$5, %eax
	ja	LBB0_13
## %bb.7:
	movapd	%xmm0, %xmm3
	subsd	%xmm1, %xmm3
	movapd	%xmm3, %xmm2
	subsd	%xmm4, %xmm2
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movapd	%xmm1, %xmm4
	jmp	LBB0_14
LBB0_27:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	callq	_clause_selectivity
	cvtsi2sd	%rax, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	jmp	LBB0_30
LBB0_28:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_elog
	xorpd	%xmm0, %xmm0
	jmp	LBB0_29
LBB0_20:
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	LCPI0_0(%rip), %xmm0
	mulsd	LCPI0_1(%rip), %xmm0
	jmp	LBB0_29
LBB0_23:
	movq	_DEFAULT_UNK_SEL@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	jmp	LBB0_29
LBB0_25:
	movq	_DEFAULT_NOT_UNK_SEL@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	jmp	LBB0_29
LBB0_17:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	subsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
LBB0_29:
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	jmp	LBB0_30
LBB0_13:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_elog
	xorpd	%xmm4, %xmm4
	jmp	LBB0_14
LBB0_8:
	subsd	%xmm4, %xmm0
	movapd	%xmm0, %xmm4
	jmp	LBB0_14
LBB0_10:
	movapd	%xmm3, %xmm4
	jmp	LBB0_14
LBB0_12:
	subsd	%xmm2, %xmm0
	movapd	%xmm0, %xmm4
	jmp	LBB0_14
LBB0_11:
	movapd	%xmm2, %xmm4
LBB0_14:
	movsd	%xmm4, -48(%rbp)                ## 8-byte Spill
	leaq	-80(%rbp), %rdi
	callq	_free_attstatsslot
LBB0_30:
	movl	-56(%rbp), %edi
	callq	_ReleaseVariableStats
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_CLAMP_PROBABILITY
	cvttsd2si	-48(%rbp), %eax         ## 8-byte Folded Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_30
	.long	L0_0_set_18
	.long	L0_0_set_17
	.long	L0_0_set_20
	.long	L0_0_set_20
	.long	L0_0_set_18
.set L0_1_set_14, LBB0_14-LJTI0_1
.set L0_1_set_9, LBB0_9-LJTI0_1
.set L0_1_set_8, LBB0_8-LJTI0_1
.set L0_1_set_10, LBB0_10-LJTI0_1
.set L0_1_set_12, LBB0_12-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
LJTI0_1:
	.long	L0_1_set_14
	.long	L0_1_set_9
	.long	L0_1_set_8
	.long	L0_1_set_10
	.long	L0_1_set_12
	.long	L0_1_set_11
.set L0_2_set_23, LBB0_23-LJTI0_2
.set L0_2_set_26, LBB0_26-LJTI0_2
.set L0_2_set_25, LBB0_25-LJTI0_2
.set L0_2_set_27, LBB0_27-LJTI0_2
LJTI0_2:
	.long	L0_2_set_23
	.long	L0_2_set_26
	.long	L0_2_set_25
	.long	L0_2_set_27
	.long	L0_2_set_26
	.long	L0_2_set_27
	.end_data_region
                                        ## -- 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
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unrecognized booltesttype: %d"

	.comm	_DEFAULT_UNK_SEL,8,3            ## @DEFAULT_UNK_SEL
	.comm	_DEFAULT_NOT_UNK_SEL,8,3        ## @DEFAULT_NOT_UNK_SEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_booltestsel                    ; -- Begin function booltestsel
	.p2align	2
_booltestsel:                           ; @booltestsel
	.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	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x24, x0
	add	x3, sp, #24
	mov	x1, x2
	mov	x2, x22
	bl	_examine_variable
	ldr	w0, [sp, #24]
	bl	_HeapTupleIsValid
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w0, [sp, #24]
	bl	_GETSTRUCT
	ldr	d8, [x0]
Lloh0:
	adrp	x8, _STATISTIC_KIND_MCV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATISTIC_KIND_MCV@GOTPAGEOFF]
	ldr	w1, [sp, #24]
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
	ldr	x8, [sp]
	cmp	x0, #0
	ccmp	x8, #1, #8, ne
	b.ge	LBB0_8
; %bb.2:
	sub	w8, w19, #128
	cmp	w8, #5
	b.hi	LBB0_12
; %bb.3:
Lloh12:
	adrp	x9, lJTI0_0@PAGE
Lloh13:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	fmov	d0, #1.00000000
	fsub	d0, d0, d8
	b	LBB0_14
LBB0_5:
	sub	w8, w19, #128
	cmp	w8, #5
	b.hi	LBB0_12
; %bb.6:
Lloh14:
	adrp	x9, lJTI0_2@PAGE
Lloh15:
	add	x9, x9, lJTI0_2@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	bl	_clause_selectivity
	scvtf	d8, x0
	b	LBB0_24
LBB0_8:
	ldr	x8, [sp, #16]
	ldr	w0, [x8]
	bl	_DatumGetBool
	ldr	x8, [sp, #8]
	ldr	d0, [x8]
	fmov	d1, #1.00000000
	fsub	d2, d1, d0
	fsub	d2, d2, d8
	cmp	x0, #0
	fcsel	d0, d2, d0, eq
	sub	w8, w19, #128
	cmp	w8, #5
	b.hi	LBB0_18
; %bb.9:
	fsub	d2, d1, d0
	fsub	d1, d2, d8
Lloh16:
	adrp	x9, lJTI0_1@PAGE
Lloh17:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_10
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:
	fmov	d8, d0
	b	LBB0_23
LBB0_11:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	bl	_clause_selectivity
	scvtf	d0, x0
	fmov	d1, #1.00000000
	fsub	d8, d1, d0
	b	LBB0_24
LBB0_12:
Lloh18:
	adrp	x8, _ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_elog
	movi	d8, #0000000000000000
	b	LBB0_24
LBB0_13:
	fmov	d0, #1.00000000
	fadd	d0, d8, d0
LBB0_14:
	fmov	d1, #0.50000000
	fmul	d8, d0, d1
	b	LBB0_24
LBB0_15:
Lloh23:
	adrp	x8, _DEFAULT_UNK_SEL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DEFAULT_UNK_SEL@GOTPAGEOFF]
Lloh25:
	ldr	d8, [x8]
	b	LBB0_24
LBB0_16:
Lloh26:
	adrp	x8, _DEFAULT_NOT_UNK_SEL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DEFAULT_NOT_UNK_SEL@GOTPAGEOFF]
Lloh28:
	ldr	d8, [x8]
	b	LBB0_24
LBB0_17:
	fmov	d0, #1.00000000
	fsub	d8, d0, d8
	b	LBB0_24
LBB0_18:
Lloh29:
	adrp	x8, _ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_elog
	movi	d8, #0000000000000000
	b	LBB0_23
LBB0_19:
	fmov	d0, #1.00000000
	fsub	d8, d0, d8
	b	LBB0_23
LBB0_20:
	fmov	d8, d2
	b	LBB0_23
LBB0_21:
	fmov	d0, #1.00000000
	fsub	d8, d0, d1
	b	LBB0_23
LBB0_22:
	fmov	d8, d1
LBB0_23:
	mov	x0, sp
	bl	_free_attstatsslot
LBB0_24:
	ldr	w0, [sp, #24]
	bl	_ReleaseVariableStats
	fmov	d0, d8
	bl	_CLAMP_PROBABILITY
	fcvtzs	w0, 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
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_24-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_17-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
lJTI0_1:
	.byte	(LBB0_23-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_19-LBB0_10)>>2
	.byte	(LBB0_20-LBB0_10)>>2
	.byte	(LBB0_21-LBB0_10)>>2
	.byte	(LBB0_22-LBB0_10)>>2
lJTI0_2:
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
                                        ; -- 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
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unrecognized booltesttype: %d"

	.comm	_DEFAULT_UNK_SEL,8,3            ; @DEFAULT_UNK_SEL
	.comm	_DEFAULT_NOT_UNK_SEL,8,3        ; @DEFAULT_NOT_UNK_SEL
.subsections_via_symbols
