	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iounit_release_scsi_one
_iounit_release_scsi_one:               ## @iounit_release_scsi_one
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	%r12, %rax
	addq	%r15, %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rcx,%rax), %rbx
	decq	%rbx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %rbx
	movq	_IOUNIT_DMA_BASE@GOTPCREL(%rip), %rax
	subq	(%rax), %r12
	shrq	%cl, %r12
	leaq	(%rbx,%r12), %r15
	movq	%r15, %rdi
	callq	_IOD
	cmpq	%r15, %r12
	jae	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %esi
	movq	%r12, %rdi
	callq	_clear_bit
	incq	%r12
	decq	%rbx
	jne	LBB0_1
LBB0_2:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_IOUNIT_DMA_BASE,8,3            ## @IOUNIT_DMA_BASE
	.no_dead_strip	_iounit_release_scsi_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iounit_release_scsi_one
_iounit_release_scsi_one:               ; @iounit_release_scsi_one
	.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	x20, x2
	mov	x21, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	bic	x8, x21, x8
Lloh3:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldrsw	x9, [x9]
	add	x8, x8, x20
	add	x8, x9, x8
	sub	x8, x8, #1
Lloh6:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	lsr	x22, x8, x9
Lloh9:
	adrp	x8, _IOUNIT_DMA_BASE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IOUNIT_DMA_BASE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	sub	x8, x21, x8
	lsr	x20, x8, x9
	add	x21, x22, x20
	mov	x0, x21
	bl	_IOD
	cmp	x20, x21
	b.hs	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_clear_bit
	add	x20, x20, #1
	subs	x22, x22, #1
	b.ne	LBB0_1
LBB0_2:
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_IOUNIT_DMA_BASE,8,3            ; @IOUNIT_DMA_BASE
	.no_dead_strip	_iounit_release_scsi_one
.subsections_via_symbols
