	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_advance_array_keys         ## -- Begin function _bt_advance_array_keys
	.p2align	4, 0x90
__bt_advance_array_keys:                ## @_bt_advance_array_keys
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movslq	8(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	incq	%rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r13d
	cmpl	%r14d, %r13d
	movl	$0, %eax
	cmovgel	%eax, %r13d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	movq	16(%r15,%r12,8), %rax
	movslq	%r13d, %rcx
	movl	(%rax,%rcx,4), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rdx,4)
	jl	LBB0_10
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	decq	%rbx
	cmpq	$1, %rbx
	jbe	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rcx), %r15
	leaq	(%rax,%rax,2), %r12
	movq	(%r15,%r12,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	8(%r15,%r12,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	8(%r15,%r12,8), %r13d
	movslq	12(%r15,%r12,8), %r14
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_ScanDirectionIsBackward
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	testl	%r13d, %r13d
	jg	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-1(%r14), %rax
	movl	%eax, (%rsi)
	movq	16(%r15,%r12,8), %rax
	movl	-4(%rax,%r14,4), %eax
	movl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	cmpq	$0, (%rdi)
	jne	LBB0_13
	jmp	LBB0_14
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_8:
	decl	%r13d
	movl	%r13d, (%rsi)
	movq	16(%r15,%r12,8), %rax
	movl	(%rax,%r13,4), %eax
	movl	%eax, (%rcx,%rdx,4)
LBB0_10:
	movl	$1, %ebx
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpq	$0, (%rdi)
	je	LBB0_14
LBB0_13:
	callq	__bt_parallel_advance_array_keys
LBB0_14:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_advance_array_keys         ; -- Begin function _bt_advance_array_keys
	.p2align	2
__bt_advance_array_keys:                ; @_bt_advance_array_keys
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	ldrsw	x21, [x0, #8]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	str	x0, [sp]                        ; 8-byte Folded Spill
	add	x22, x8, #1
	mov	w23, #24
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w19, #1
	cmp	w8, w20
	csinc	w8, wzr, w19, ge
	str	w8, [x28]
	madd	x9, x26, x23, x27
	ldr	x9, [x9, #16]
	ldr	w8, [x9, w8, sxtw #2]
	str	w8, [x24, x25, lsl #2]
	b.lt	LBB0_10
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x22, x22, #1
	cmp	x22, #1
	b.ls	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w26, w22, #2
	ldp	x24, x27, [x21, #8]
	umaddl	x28, w26, w23, x27
	ldr	x25, [x28]
	ldr	w20, [x28, #12]
	ldr	w19, [x28, #8]!
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_ScanDirectionIsBackward
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w19, #0
	b.gt	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w20, #1
	str	w8, [x28]
	madd	x9, x26, x23, x27
	ldr	x9, [x9, #16]
	ldr	w8, [x9, w8, sxtw #2]
	str	w8, [x24, x25, lsl #2]
	b	LBB0_3
LBB0_7:
	mov	w20, #0
	ldr	x8, [x0]
	cbnz	x8, LBB0_12
	b	LBB0_13
LBB0_8:
	mov	w20, #0
	b	LBB0_11
LBB0_9:
	sub	w8, w19, #1
	str	w8, [x28]
	mov	w9, #24
	madd	x9, x26, x9, x27
	ldr	x9, [x9, #16]
	ldr	w8, [x9, w8, uxtw #2]
	str	w8, [x24, x25, lsl #2]
LBB0_10:
	mov	w20, #1
LBB0_11:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x0]
	cbz	x8, LBB0_13
LBB0_12:
	bl	__bt_parallel_advance_array_keys
LBB0_13:
	mov	x0, x20
	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	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
