	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_recsplitloc
__bt_recsplitloc:                       ## @_bt_recsplitloc
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rdi, %rbx
	testl	%edx, %edx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_3
## %bb.1:
	cmpq	%rsi, (%rbx)
	jne	LBB0_3
## %bb.2:
	movq	64(%rbx), %r12
LBB0_3:
	movslq	%ecx, %r14
	movl	16(%rbx), %eax
	addl	%r14d, %eax
	subl	20(%rbx), %eax
	movq	8(%rbx), %r15
	movslq	%eax, %r13
	cmpq	$0, 56(%rbx)
	movq	%r12, %rax
	je	LBB0_5
## %bb.4:
	movl	$4, %edi
	callq	_MAXALIGN
	addq	%r12, %rax
LBB0_5:
	addq	%r14, %rax
	xorl	%ecx, %ecx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	movq	64(%rbx), %rdx
	movl	$0, %esi
	cmoveq	%rdx, %rsi
	cmoveq	%rcx, %rdx
	subq	%rsi, %r13
	addq	%rax, %rdx
	subq	%rdx, %r15
	cmpq	$0, 56(%rbx)
	jne	LBB0_7
## %bb.6:
	movl	$4, %edi
	callq	_MAXALIGN
	addq	%r12, %r13
	subq	%rax, %r13
	addq	$-4, %r13
LBB0_7:
	testq	%r15, %r15
	js	LBB0_10
## %bb.8:
	testq	%r13, %r13
	js	LBB0_10
## %bb.9:
	movq	24(%rbx), %rax
	xorl	%edi, %edi
	cmpq	32(%rbx), %rax
	setb	%dil
	callq	_Assert
	movl	48(%rbx), %edi
	movq	%r12, %rsi
	callq	_Min
	movl	%eax, 48(%rbx)
	movq	24(%rbx), %rax
	movq	40(%rbx), %rcx
	leaq	(%rax,%rax,4), %rdx
	movq	$0, 32(%rcx,%rdx,8)
	movq	%r15, 24(%rcx,%rdx,8)
	movq	%r13, 16(%rcx,%rdx,8)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rsi, 8(%rcx,%rdx,8)
	movl	%r14d, (%rcx,%rdx,8)
	incq	%rax
	movq	%rax, 24(%rbx)
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	__bt_recsplitloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_recsplitloc
__bt_recsplitloc:                       ; @_bt_recsplitloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x4
                                        ; kill: def $w3 killed $w3 def $x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cbnz	w2, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, x21
	b.ne	LBB0_3
; %bb.2:
	ldr	x22, [x19, #64]
LBB0_3:
	ldr	x24, [x19, #8]
	sxtw	x25, w3
	ldp	w8, w9, [x19, #16]
	add	w8, w8, w3
	sub	w8, w8, w9
	sxtw	x23, w8
	ldr	x9, [x19, #56]
	mov	x8, x22
	cbz	x9, LBB0_5
; %bb.4:
	mov	w0, #4
	bl	_MAXALIGN
	add	x8, x0, x22
LBB0_5:
	cmp	w20, #0
	ldp	x10, x9, [x19, #56]
	csel	x11, x9, xzr, eq
	csel	x9, xzr, x9, eq
	sub	x23, x23, x11
	add	x8, x8, x25
	add	x8, x8, x9
	sub	x24, x24, x8
	cbnz	x10, LBB0_7
; %bb.6:
	mov	w0, #4
	bl	_MAXALIGN
	add	x8, x22, x23
	sub	x8, x8, x0
	sub	x23, x8, #4
LBB0_7:
	tbnz	x24, #63, LBB0_10
; %bb.8:
	tbnz	x23, #63, LBB0_10
; %bb.9:
	ldp	x8, x9, [x19, #24]
	cmp	x8, x9
	cset	w0, lo
	bl	_Assert
	ldr	w0, [x19, #48]
	mov	x1, x22
	bl	_Min
	str	w0, [x19, #48]
	ldr	x8, [x19, #40]
	ldr	x9, [x19, #24]
	mov	w10, #40
	madd	x8, x9, x10, x8
	stp	x24, xzr, [x8, #24]
	stp	x21, x23, [x8, #8]
	str	w20, [x8]
	add	x8, x9, #1
	str	x8, [x19, #24]
LBB0_10:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	__bt_recsplitloc
.subsections_via_symbols
