	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_partition_for_tuple
_get_partition_for_tuple:               ## @get_partition_for_tuple
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	(%rdi), %rax
	movq	8(%rdi), %r13
	movq	(%rax), %r14
	movl	(%r13), %edx
	cmpl	$128, %edx
	je	LBB0_10
## %bb.1:
	cmpl	$129, %edx
	je	LBB0_4
## %bb.2:
	cmpl	$130, %edx
	jne	LBB0_19
## %bb.3:
	movq	%r14, %rdi
	callq	_get_hash_partition_greatest_modulus
	movl	%eax, %r12d
	movl	12(%r13), %esi
	movl	4(%r13), %edi
	movl	8(%r13), %edx
	movq	%r15, %rcx
	movq	%rbx, %r8
	callq	_compute_partition_hash_value
	movq	(%r14), %rcx
	cltd
	idivl	%r12d
	movslq	%edx, %rax
	movl	(%rcx,%rax,4), %eax
	jmp	LBB0_16
LBB0_10:
	movl	$0, -48(%rbp)
	movl	4(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.11:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rbx,%rax,4)
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_13
LBB0_15:
	movl	8(%r13), %esi
	movl	12(%r13), %edi
	leaq	-48(%rbp), %r9
	movq	%r14, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%r15, %r8
	callq	_partition_range_datum_bsearch
	movq	(%r14), %rcx
	cltq
	movl	4(%rcx,%rax,4), %eax
	jmp	LBB0_16
LBB0_4:
	cmpl	$0, (%rbx)
	je	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_partition_bound_accepts_nulls
	testl	%eax, %eax
	je	LBB0_17
## %bb.6:
	movl	8(%r14), %eax
	jmp	LBB0_16
LBB0_19:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	jmp	LBB0_17
LBB0_7:
	movl	$0, -44(%rbp)
	movl	8(%r13), %esi
	movl	12(%r13), %edi
	movl	(%r15), %ecx
	leaq	-44(%rbp), %r8
	movq	%r14, %rdx
	callq	_partition_list_bsearch
	movl	%eax, %ecx
	movl	$-1, %eax
	testl	%ecx, %ecx
	js	LBB0_16
## %bb.8:
	cmpl	$0, -44(%rbp)
	je	LBB0_16
## %bb.9:
	movq	(%r14), %rax
	movl	%ecx, %ecx
	movl	(%rax,%rcx,4), %eax
	jmp	LBB0_16
LBB0_14:
	movl	$-1, %eax
LBB0_16:
	testl	%eax, %eax
	jns	LBB0_18
LBB0_17:
	movl	12(%r14), %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected partition strategy: %d"

	.no_dead_strip	_get_partition_for_tuple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_partition_for_tuple
_get_partition_for_tuple:               ; @get_partition_for_tuple
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x20, x1
	ldp	x8, x23, [x0]
	ldr	x19, [x8]
	ldr	w2, [x23]
	cmp	w2, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w2, #129
	b.eq	LBB0_11
; %bb.2:
	cmp	w2, #130
	b.ne	LBB0_14
; %bb.3:
	mov	x0, x19
	bl	_get_hash_partition_greatest_modulus
	mov	x22, x0
	ldp	w2, w1, [x23, #8]
	ldr	w0, [x23, #4]
	mov	x3, x20
	mov	x4, x21
	bl	_compute_partition_hash_value
	ldr	x8, [x19]
	sdiv	w9, w0, w22
	msub	w9, w9, w22, w0
	b	LBB0_9
LBB0_4:
	str	wzr, [sp, #8]
	ldr	w3, [x23, #4]
	cmp	w3, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x8, x3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x21]
	cbnz	w9, LBB0_20
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #4
	subs	x8, x8, #1
	b.ne	LBB0_6
LBB0_8:
	ldp	w1, w0, [x23, #8]
	add	x5, sp, #8
	mov	x2, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x20
	bl	_partition_range_datum_bsearch
	ldr	x8, [x19]
	add	w9, w0, #1
LBB0_9:
	ldr	w0, [x8, w9, sxtw #2]
LBB0_10:
	tbz	w0, #31, LBB0_16
	b	LBB0_15
LBB0_11:
	ldr	w8, [x21]
	cbz	w8, LBB0_17
; %bb.12:
	mov	x0, x19
	bl	_partition_bound_accepts_nulls
	cbz	w0, LBB0_15
; %bb.13:
	ldr	w0, [x19, #8]
	b	LBB0_10
LBB0_14:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_15:
	ldr	w0, [x19, #12]
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_17:
	str	wzr, [sp, #12]
	ldp	w1, w0, [x23, #8]
	ldr	w3, [x20]
	add	x4, sp, #12
	mov	x2, x19
	bl	_partition_list_bsearch
	mov	x8, x0
	mov	w0, #-1
	tbnz	w8, #31, LBB0_10
; %bb.18:
	ldr	w9, [sp, #12]
	cbz	w9, LBB0_10
; %bb.19:
	ldr	x9, [x19]
	ldr	w0, [x9, w8, uxtw #2]
	b	LBB0_10
LBB0_20:
	mov	w0, #-1
	b	LBB0_10
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected partition strategy: %d"

	.no_dead_strip	_get_partition_for_tuple
.subsections_via_symbols
