	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function int_query_opr_selec
_int_query_opr_selec:                   ## @int_query_opr_selec
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_check_stack_depth
	movq	(%rbx), %rdx
	movq	_VAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_6
## %bb.1:
	testq	%r13, %r13
	je	LBB0_5
## %bb.2:
	addq	$8, %rbx
	movq	_compare_val_int4@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movl	$4, %ecx
	callq	_bsearch
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	subq	%r13, %rax
	movl	(%r15,%rax), %ebx
	jmp	LBB0_16
LBB0_6:
	movq	_OPR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_14
## %bb.7:
	leaq	-16(%rbx), %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	callq	_int_query_opr_selec
                                        ## kill: def $eax killed $eax def $rax
	movslq	8(%rbx), %rdx
	cmpq	$124, %rdx
	je	LBB0_12
## %bb.8:
	cmpl	$38, %edx
	je	LBB0_11
## %bb.9:
	cmpl	$33, %edx
	jne	LBB0_13
## %bb.10:
	movl	$1, %ebx
	subl	%eax, %ebx
	jmp	LBB0_16
LBB0_14:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_15:
	callq	_elog
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_5:
	movq	_DEFAULT_EQ_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_4:
	movq	_DEFAULT_EQ_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	shrl	$31, %esi
	addl	%r14d, %esi
	sarl	%esi
	callq	_Min
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_12:
	movslq	12(%rbx), %rdi
	shlq	$4, %rdi
	addq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	movq	%rax, %r14
	callq	_int_query_opr_selec
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r14), %ebx
	imull	%r14d, %eax
	subl	%eax, %ebx
	jmp	LBB0_16
LBB0_11:
	movslq	12(%rbx), %rdi
	shlq	$4, %rdi
	addq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	movq	%rax, %r14
	callq	_int_query_opr_selec
	movl	%eax, %ebx
	imull	%r14d, %ebx
LBB0_16:
	movl	%ebx, %edi
	callq	_CLAMP_PROBABILITY
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_VAL,8,3                        ## @VAL
	.comm	_DEFAULT_EQ_SEL,4,2             ## @DEFAULT_EQ_SEL
	.comm	_compare_val_int4,4,2           ## @compare_val_int4
	.comm	_OPR,8,3                        ## @OPR
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unrecognized operator: %d"

L_.str.1:                               ## @.str.1
	.asciz	"unrecognized int query item type: %u"

	.no_dead_strip	_int_query_opr_selec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function int_query_opr_selec
_int_query_opr_selec:                   ; @int_query_opr_selec
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x4
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	bl	_check_stack_depth
	ldr	x2, [x23]
Lloh0:
	adrp	x8, _VAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_4
; %bb.1:
	cbz	x21, LBB0_11
; %bb.2:
	add	x0, x23, #8
Lloh3:
	adrp	x8, _compare_val_int4@GOTPAGE
Lloh4:
	ldr	x8, [x8, _compare_val_int4@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x1, x21
	mov	x2, x22
	mov	w3, #4
	bl	_bsearch
	cbz	x0, LBB0_12
; %bb.3:
	sub	x8, x0, x21
	ldr	w19, [x20, x8]
	b	LBB0_15
LBB0_4:
Lloh6:
	adrp	x8, _OPR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_9
; %bb.5:
	sub	x0, x23, #16
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	mov	x4, x19
	bl	_int_query_opr_selec
	mov	x24, x0
	ldr	w8, [x23, #8]
	cmp	w8, #124
	b.eq	LBB0_13
; %bb.6:
	cmp	w8, #38
	b.eq	LBB0_14
; %bb.7:
	cmp	w8, #33
	b.ne	LBB0_17
; %bb.8:
	mov	w8, #1
	sub	w19, w8, w24
	b	LBB0_15
LBB0_9:
Lloh9:
	adrp	x8, _ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	bl	_elog
	mov	w19, #0
	b	LBB0_15
LBB0_11:
Lloh14:
	adrp	x8, _DEFAULT_EQ_SEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DEFAULT_EQ_SEL@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
	b	LBB0_16
LBB0_12:
Lloh17:
	adrp	x8, _DEFAULT_EQ_SEL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DEFAULT_EQ_SEL@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	cmp	w19, #0
	cinc	w8, w19, lt
	asr	w1, w8, #1
	bl	_Min
	mov	x19, x0
	b	LBB0_15
LBB0_13:
	ldrsw	x8, [x23, #12]
	add	x0, x23, x8, lsl #4
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	mov	x4, x19
	bl	_int_query_opr_selec
	add	w8, w0, w24
	msub	w19, w0, w24, w8
	b	LBB0_15
LBB0_14:
	ldrsw	x8, [x23, #12]
	add	x0, x23, x8, lsl #4
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	mov	x4, x19
	bl	_int_query_opr_selec
	mul	w19, w0, w24
LBB0_15:
	mov	x0, x19
	bl	_CLAMP_PROBABILITY
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
	sxtw	x2, w8
Lloh20:
	adrp	x8, _ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_VAL,8,3                        ; @VAL
	.comm	_DEFAULT_EQ_SEL,4,2             ; @DEFAULT_EQ_SEL
	.comm	_compare_val_int4,4,2           ; @compare_val_int4
	.comm	_OPR,8,3                        ; @OPR
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unrecognized operator: %d"

l_.str.1:                               ; @.str.1
	.asciz	"unrecognized int query item type: %u"

	.no_dead_strip	_int_query_opr_selec
.subsections_via_symbols
