	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtip_process_sdbf
_mtip_process_sdbf:                     ## @mtip_process_sdbf
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rdi)
	jle	LBB0_12
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r14
	xorl	%ecx, %ecx
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	cmpq	%rax, %rcx
	jge	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	8(%r14), %rax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rcx,4), %edi
	callq	_readl
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	movq	8(%r14), %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	(%rax,%r15,4), %esi
	movl	%ebx, %edi
	callq	_writel
	movl	%r15d, %eax
	movq	_MTIP_TAG_INTERNAL@GOTPCREL(%rip), %r15
	shll	$5, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testb	$1, %bl
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%r13d, %r12d
	orl	-52(%rbp), %r12d                ## 4-byte Folded Reload
	xorl	%edi, %edi
	cmpl	(%r15), %r12d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r14), %r15
	movslq	%r12d, %r14
	shlq	$4, %r14
	movq	8(%r15,%r14), %rdi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	(%r15,%r14), %rax
	addq	$8, %rax
	movl	(%r15,%r14), %edx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	callq	*(%rax)
	movq	_MTIP_TAG_INTERNAL@GOTPCREL(%rip), %r15
	jmp	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_warn
	movq	8(%r14), %rdi
	callq	_mtip_check_surprise_removal
	testq	%rax, %rax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	_MTIP_TAG_INTERNAL@GOTPCREL(%rip), %r15
	jne	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$30, %r13d
	ja	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	incl	%r13d
	movl	%ebx, %eax
	sarl	%eax
	cmpl	$1, %ebx
	movl	%eax, %ebx
	ja	LBB0_4
	jmp	LBB0_11
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtip_command_cleanup           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MTIP_TAG_INTERNAL,4,2          ## @MTIP_TAG_INTERNAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Null completion for tag %d"

	.no_dead_strip	_mtip_process_sdbf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtip_process_sdbf
_mtip_process_sdbf:                     ; @mtip_process_sdbf
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x0
	mov	x24, #0
	ldr	x20, [x0, #16]
Lloh0:
	adrp	x25, _MTIP_TAG_INTERNAL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MTIP_TAG_INTERNAL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19]
	cmp	x24, x8
	b.ge	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x24, lsl #2]
	bl	_readl
	cbz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	ldr	x8, [x20, #8]
	ldr	w1, [x8, x24, lsl #2]
	bl	_writel
	mov	w26, #0
	lsl	w27, w24, #5
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	tbz	w22, #0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	orr	w23, w26, w27
	ldr	w8, [x25]
	cmp	w23, w8
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x28, [x20]
	add	x21, x28, w23, sxtw #4
	ldr	x0, [x21, #8]!
	bl	_likely
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	sxtw	x8, w23
	ldr	x9, [x21]
	lsl	x8, x8, #4
	ldr	w2, [x28, x8]
	mov	x0, x20
	mov	x1, x23
	mov	w3, #0
	blr	x9
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_dev_warn
	ldr	x0, [x19, #8]
	bl	_mtip_check_surprise_removal
	cbnz	x0, LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w26, #30
	b.hi	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=2
	add	w26, w26, #1
	asr	w8, w22, #1
	cmp	w22, #1
	mov	x22, x8
	b.hi	LBB0_5
	b	LBB0_2
LBB0_12:
	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
LBB0_13:
	mov	x0, x19
	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	_mtip_command_cleanup
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MTIP_TAG_INTERNAL,4,2          ; @MTIP_TAG_INTERNAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Null completion for tag %d"

	.no_dead_strip	_mtip_process_sdbf
.subsections_via_symbols
