	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iounit_release_scsi_sgl
_iounit_release_scsi_sgl:               ## @iounit_release_scsi_sgl
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_sg_next
	movq	%rax, %r15
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %eax
	movq	_PAGE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addl	4(%r15), %ecx
	addl	%ecx, %edx
	decl	%edx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	_IOUNIT_DMA_BASE@GOTPCREL(%rip), %rsi
	subl	(%rsi), %eax
	sarl	%cl, %eax
	decl	%ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movslq	%edx, %r14
	movslq	%eax, %rbx
	leaq	(%rbx,%r14), %r13
	movq	%r13, %rdi
	callq	_IOD
	cmpq	%rbx, %r13
	jbe	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%r12), %esi
	movq	%rbx, %rdi
	callq	_clear_bit
	incq	%rbx
	decq	%r14
	jne	LBB0_3
	jmp	LBB0_4
LBB0_5:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_IOUNIT_DMA_BASE,4,2            ## @IOUNIT_DMA_BASE
	.no_dead_strip	_iounit_release_scsi_sgl
.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_sgl
_iounit_release_scsi_sgl:               ; @iounit_release_scsi_sgl
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x21, x1
	ldr	x20, [x0]
	mov	x0, x20
	bl	_spin_lock_irqsave
	cbz	w19, LBB0_5
; %bb.1:
Lloh0:
	adrp	x24, _PAGE_MASK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PAGE_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x26, _PAGE_SHIFT@GOTPAGE
Lloh5:
	ldr	x26, [x26, _PAGE_SHIFT@GOTPAGEOFF]
Lloh6:
	adrp	x27, _IOUNIT_DMA_BASE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _IOUNIT_DMA_BASE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_sg_next
	mov	x21, x0
	cbz	w19, LBB0_5
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	sub	w19, w19, #1
	ldr	w8, [x24]
	ldp	w9, w10, [x21]
	bic	w8, w9, w8
	ldr	w11, [x25]
	add	w8, w10, w8
	add	w8, w8, w11
	sub	w8, w8, #1
	ldr	w10, [x26]
	asr	w8, w8, w10
	sxtw	x28, w8
	ldr	w8, [x27]
	sub	w8, w9, w8
	asr	w8, w8, w10
	sxtw	x22, w8
	add	x23, x22, x28
	mov	x0, x23
	bl	_IOD
	cmp	x23, x22
	b.ls	LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x20, #4]
	mov	x0, x22
	bl	_clear_bit
	add	x22, x22, #1
	subs	x28, x28, #1
	b.ne	LBB0_4
	b	LBB0_2
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_IOUNIT_DMA_BASE,4,2            ; @IOUNIT_DMA_BASE
	.no_dead_strip	_iounit_release_scsi_sgl
.subsections_via_symbols
