	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_slot
_get_slot:                              ## @get_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	(%rax), %r15d
	shll	$5, %r15d
	movl	8(%rdi), %edi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_find_next_zero_bit
	cmpl	%r15d, %eax
	jae	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	8(%r14), %esi
	movl	%eax, %edi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_22
LBB0_2:
	movl	8(%r14), %edi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_find_next_zero_bit
	cmpl	%r15d, %eax
	jae	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	8(%r14), %esi
	movl	%eax, %edi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_22
LBB0_4:
	movl	8(%r14), %edi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_find_next_zero_bit
	cmpl	%r15d, %eax
	jae	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	8(%r14), %esi
	movl	%eax, %edi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_22
LBB0_6:
	movl	8(%r14), %edi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_find_next_zero_bit
	cmpl	%r15d, %eax
	jae	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	movl	8(%r14), %esi
	movl	%eax, %edi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_22
LBB0_8:
	movl	8(%r14), %edi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_find_next_zero_bit
	cmpl	%r15d, %eax
	jae	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	movl	8(%r14), %esi
	movl	%eax, %edi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_22
LBB0_10:
	movl	8(%r14), %edi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_find_next_zero_bit
	cmpl	%r15d, %eax
	jae	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	movl	8(%r14), %esi
	movl	%eax, %edi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_22
LBB0_12:
	movl	8(%r14), %edi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_find_next_zero_bit
	cmpl	%r15d, %eax
	jae	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	movl	8(%r14), %esi
	movl	%eax, %edi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_22
LBB0_14:
	movl	8(%r14), %edi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_find_next_zero_bit
	cmpl	%r15d, %eax
	jae	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	movl	8(%r14), %esi
	movl	%eax, %edi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_22
LBB0_16:
	movl	8(%r14), %edi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_find_next_zero_bit
	cmpl	%r15d, %eax
	jae	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	movl	8(%r14), %esi
	movl	%eax, %edi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_22
LBB0_18:
	movl	8(%r14), %edi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_find_next_zero_bit
	cmpl	%r15d, %eax
	jae	LBB0_20
## %bb.19:
	movl	%eax, %ebx
	movl	8(%r14), %esi
	movl	%eax, %edi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_22
LBB0_20:
	movq	(%r14), %rax
	movq	8(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	(%r14), %rax
	movq	8(%rax), %rdi
	callq	_mtip_check_surprise_removal
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	(%r14), %rdi
	callq	_mtip_command_cleanup
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get a tag.\n"

	.no_dead_strip	_get_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_slot
_get_slot:                              ; @get_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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w8, [x8]
	lsl	w20, w8, #5
	ldr	w0, [x0, #8]
	mov	x1, x20
	mov	w2, #1
	bl	_find_next_zero_bit
	cmp	w0, w20
	b.hs	LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w1, [x19, #8]
	bl	_test_and_set_bit
	cbz	w0, LBB0_23
LBB0_2:
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	w2, #1
	bl	_find_next_zero_bit
	cmp	w0, w20
	b.hs	LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	w1, [x19, #8]
	bl	_test_and_set_bit
	cbz	w0, LBB0_23
LBB0_4:
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	w2, #1
	bl	_find_next_zero_bit
	cmp	w0, w20
	b.hs	LBB0_6
; %bb.5:
	mov	x21, x0
	ldr	w1, [x19, #8]
	bl	_test_and_set_bit
	cbz	w0, LBB0_23
LBB0_6:
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	w2, #1
	bl	_find_next_zero_bit
	cmp	w0, w20
	b.hs	LBB0_8
; %bb.7:
	mov	x21, x0
	ldr	w1, [x19, #8]
	bl	_test_and_set_bit
	cbz	w0, LBB0_23
LBB0_8:
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	w2, #1
	bl	_find_next_zero_bit
	cmp	w0, w20
	b.hs	LBB0_10
; %bb.9:
	mov	x21, x0
	ldr	w1, [x19, #8]
	bl	_test_and_set_bit
	cbz	w0, LBB0_23
LBB0_10:
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	w2, #1
	bl	_find_next_zero_bit
	cmp	w0, w20
	b.hs	LBB0_12
; %bb.11:
	mov	x21, x0
	ldr	w1, [x19, #8]
	bl	_test_and_set_bit
	cbz	w0, LBB0_23
LBB0_12:
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	w2, #1
	bl	_find_next_zero_bit
	cmp	w0, w20
	b.hs	LBB0_14
; %bb.13:
	mov	x21, x0
	ldr	w1, [x19, #8]
	bl	_test_and_set_bit
	cbz	w0, LBB0_23
LBB0_14:
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	w2, #1
	bl	_find_next_zero_bit
	cmp	w0, w20
	b.hs	LBB0_16
; %bb.15:
	mov	x21, x0
	ldr	w1, [x19, #8]
	bl	_test_and_set_bit
	cbz	w0, LBB0_23
LBB0_16:
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	w2, #1
	bl	_find_next_zero_bit
	cmp	w0, w20
	b.hs	LBB0_18
; %bb.17:
	mov	x21, x0
	ldr	w1, [x19, #8]
	bl	_test_and_set_bit
	cbz	w0, LBB0_23
LBB0_18:
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	w2, #1
	bl	_find_next_zero_bit
	cmp	w0, w20
	b.hs	LBB0_20
; %bb.19:
	mov	x21, x0
	ldr	w1, [x19, #8]
	bl	_test_and_set_bit
	cbz	w0, LBB0_23
LBB0_20:
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	bl	_mtip_check_surprise_removal
	cbz	x0, LBB0_22
; %bb.21:
	ldr	x0, [x19]
	bl	_mtip_command_cleanup
LBB0_22:
	mov	w21, #-1
LBB0_23:
	mov	x0, x21
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get a tag.\n"

	.no_dead_strip	_get_slot
.subsections_via_symbols
