	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_restore_array_keys         ## -- Begin function _bt_restore_array_keys
	.p2align	4, 0x90
__bt_restore_array_keys:                ## @_bt_restore_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movslq	(%rdi), %r14
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.1:
	movq	16(%r14), %rax
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %r8
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$24, %rdx
	cmpq	%rdx, %r8
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rax,%rdx), %ebx
	cmpl	%ebx, 12(%rax,%rdx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rsi
	movq	8(%r14), %r9
	movl	%esi, 12(%rax,%rdx)
	movq	(%rax,%rdx), %rcx
	movq	16(%rax,%rdx), %rbx
	movl	(%rbx,%rsi,4), %esi
	movl	%esi, (%r9,%rcx,4)
	movl	$1, %esi
	jmp	LBB0_4
LBB0_5:
	testl	%esi, %esi
	je	LBB0_6
## %bb.7:
	callq	__bt_preprocess_keys
	movl	4(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_Assert                         ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	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_restore_array_keys         ; -- Begin function _bt_restore_array_keys
	.p2align	2
__bt_restore_array_keys:                ; @_bt_restore_array_keys
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldrsw	x19, [x0]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w10, #0
	ldr	x9, [x19, #16]
	add	x9, x9, #16
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #24
	subs	x8, x8, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w11, w12, [x9, #-8]
	cmp	w12, w11
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x10, w11
	ldr	x12, [x19, #8]
	ldur	x13, [x9, #-16]
	stur	w11, [x9, #-4]
	ldr	x11, [x9]
	ldr	w10, [x11, x10, lsl #2]
	str	w10, [x12, x13, lsl #2]
	mov	w10, #1
	b	LBB0_2
LBB0_5:
	cbz	w10, LBB0_7
; %bb.6:
	bl	__bt_preprocess_keys
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Assert
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
