	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function next_slot
_next_slot:                             ## @next_slot
	.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	(%rsi), %rax
	movl	(%rax), %edx
	movl	$1, %r15d
	testl	%edx, %edx
	je	LBB0_15
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%rsi), %rcx
	movl	(%rcx), %esi
	incl	%esi
	cmpl	%edx, %esi
	jge	LBB0_2
## %bb.10:
	movl	%esi, (%rcx)
	jmp	LBB0_11
LBB0_2:
	movq	_BTRFS_MAX_LEVEL@GOTPCREL(%rip), %r13
	movl	(%r13), %r9d
	movl	$1, %r15d
	cmpl	$2, %r9d
	jl	LBB0_3
## %bb.4:
	movl	$1, %ebx
	xorl	%esi, %esi
	movabsq	$4294967296, %r8                ## imm = 0x100000000
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rbx,4), %edi
	testl	%edi, %edi
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rcx,%rbx,4), %edx
	incl	%edx
	cmpl	%edi, %edx
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	addq	%r8, %rsi
	cmpq	%rbx, %r9
	jne	LBB0_5
	jmp	LBB0_15
LBB0_3:
	movl	$1, %ebx
	jmp	LBB0_9
LBB0_8:
	movl	%edx, (%rcx,%rbx,4)
	movq	%rsi, %rdx
	sarq	$30, %rdx
	movl	$0, (%rcx,%rdx)
	movl	$0, (%rax,%rdx)
	movq	16(%r12), %rax
	sarq	$29, %rsi
	movq	$0, (%rax,%rsi)
	movq	(%rax,%rbx,8), %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	__BtrFsSearchTree
	movl	(%r13), %r9d
LBB0_9:
	cmpl	%r9d, %ebx
	je	LBB0_15
LBB0_11:
	movq	%r12, %rdi
	callq	_path_current_disk_key
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.12:
	movq	%r12, %rdi
	callq	_path_current_disk_key
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_btrfs_comp_keys_type
	testl	%eax, %eax
	je	LBB0_13
LBB0_14:
	movl	$1, %r15d
	jmp	LBB0_15
LBB0_13:
	xorl	%r15d, %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTRFS_MAX_LEVEL,4,2            ## @BTRFS_MAX_LEVEL
	.no_dead_strip	_next_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function next_slot
_next_slot:                             ; @next_slot
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x1]
	ldr	w10, [x8]
	cbz	w10, LBB0_13
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x9, [x1, #8]
	ldr	w11, [x9]
	add	w11, w11, #1
	cmp	w11, w10
	b.ge	LBB0_3
; %bb.2:
	str	w11, [x9]
	b	LBB0_11
LBB0_3:
Lloh0:
	adrp	x22, _BTRFS_MAX_LEVEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BTRFS_MAX_LEVEL@GOTPAGEOFF]
	ldr	w10, [x22]
	cmp	w10, #2
	b.lt	LBB0_8
; %bb.4:
	mov	x11, #0
	mov	w21, #1
	mov	x12, #4294967296
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x8, x21, lsl #2]
	cbz	w14, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w13, [x9, x21, lsl #2]
	add	w13, w13, #1
	cmp	w13, w14
	b.lt	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	add	x11, x11, x12
	cmp	x10, x21
	b.ne	LBB0_5
	b	LBB0_13
LBB0_8:
	mov	w21, #1
	b	LBB0_10
LBB0_9:
	str	w13, [x9, x21, lsl #2]
	asr	x10, x11, #30
	str	wzr, [x9, x10]
	str	wzr, [x8, x10]
	ldr	x8, [x20, #16]
	asr	x9, x11, #29
	str	xzr, [x8, x9]
	ldr	x0, [x8, x21, lsl #3]
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	bl	__BtrFsSearchTree
	ldr	w10, [x22]
LBB0_10:
	cmp	w21, w10
	b.eq	LBB0_13
LBB0_11:
	mov	x0, x20
	bl	_path_current_disk_key
	ldr	x8, [x0]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_path_current_disk_key
	mov	x1, x0
	mov	x0, x19
	bl	_btrfs_comp_keys_type
	cbz	w0, LBB0_14
LBB0_13:
	mov	w0, #1
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BTRFS_MAX_LEVEL,4,2            ; @BTRFS_MAX_LEVEL
	.no_dead_strip	_next_slot
.subsections_via_symbols
