	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mtip_command_cleanup
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mtip_command_cleanup:                  ## @mtip_command_cleanup
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpb	$0, _mtip_command_cleanup.in_progress(%rip)
	jne	LBB0_11
## %bb.1:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	movb	$1, _mtip_command_cleanup.in_progress(%rip)
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	cmpq	$4, %r15
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	%r15d, %eax
	shll	$5, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	movl	8(%r12,%r13,8), %esi
	movl	(%r12,%r13,8), %ecx
	movl	4(%r12,%r13,8), %edx
	callq	_dma_unmap_sg
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	incl	%r14d
	cmpl	$32, %r14d
	je	LBB0_9
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rax
	movl	(%rax,%r15,4), %eax
	btl	%r14d, %eax
	jae	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	%r14d, %eax
	orl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movq	24(%rbx), %r12
	cltq
	leaq	(%rax,%rax,4), %r13
	leaq	(%r12,%r13,8), %rdi
	addq	$32, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	24(%r12,%r13,8), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	16(%r12,%r13,8), %rdi
	xorl	%esi, %esi
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	subl	(%rcx), %esi
	callq	*%rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r12,%r13,8)
	jmp	LBB0_7
LBB0_10:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_up
	movq	_MTIP_DDF_CLEANUP_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_bit
	movb	$0, _mtip_command_cleanup.in_progress(%rip)
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_mtip_command_cleanup.in_progress,1,2 ## @mtip_command_cleanup.in_progress
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_MTIP_DDF_CLEANUP_BIT,4,2       ## @MTIP_DDF_CLEANUP_BIT
	.no_dead_strip	_mtip_command_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtip_command_cleanup
_mtip_command_cleanup:                  ; @mtip_command_cleanup
	.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
	adrp	x9, _mtip_command_cleanup.in_progress@PAGE
	ldrb	w8, [x9, _mtip_command_cleanup.in_progress@PAGEOFF]
	tbnz	w8, #0, LBB0_11
; %bb.1:
	mov	x19, x0
	mov	x22, #0
	ldr	x21, [x0, #8]
	mov	w8, #1
	strb	w8, [x9, _mtip_command_cleanup.in_progress@PAGEOFF]
	mov	w23, #40
Lloh0:
	adrp	x24, _ENODEV@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ENODEV@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	cmp	x22, #4
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	w25, #0
	lsl	w26, w22, #5
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x21, #16]
	ldr	x0, [x8]
	madd	x8, x28, x23, x27
	ldp	w2, w1, [x8, #4]
	ldr	w3, [x8]
	bl	_dma_unmap_sg
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	w25, w25, #1
	cmp	w25, #32
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21]
	ldr	w8, [x8, x22, lsl #2]
	lsr	w8, w8, w25
	tbz	w8, #0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	orr	w8, w25, w26
	ldr	x27, [x21, #24]
	sxtw	x28, w8
	smaddl	x8, w8, w23, x27
	add	x0, x8, #32
	bl	_atomic_read
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	madd	x8, x28, x23, x27
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	madd	x20, x28, x23, x27
	ldr	x0, [x20, #16]
	ldr	w9, [x24]
	neg	w1, w9
	blr	x8
	stp	xzr, xzr, [x20, #16]
	b	LBB0_4
LBB0_10:
	add	x0, x21, #8
	bl	_up
Lloh2:
	adrp	x8, _MTIP_DDF_CLEANUP_BIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MTIP_DDF_CLEANUP_BIT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
	adrp	x8, _mtip_command_cleanup.in_progress@PAGE
	strb	wzr, [x8, _mtip_command_cleanup.in_progress@PAGEOFF]
LBB0_11:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_mtip_command_cleanup.in_progress,1,2 ; @mtip_command_cleanup.in_progress
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_MTIP_DDF_CLEANUP_BIT,4,2       ; @MTIP_DDF_CLEANUP_BIT
	.no_dead_strip	_mtip_command_cleanup
.subsections_via_symbols
