	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtip_hw_get_scatterlist
_mtip_hw_get_scatterlist:               ## @mtip_hw_get_scatterlist
	.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	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%eax, %eax
	testl	%edx, %edx
	setne	%al
	movq	(%rdi), %rcx
	leaq	(%rcx,%rax,4), %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_down
	movq	(%rbx), %rdi
	callq	_get_slot
	movl	%eax, (%r14)
	movq	_MTIP_DDF_REMOVE_PENDING_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_bit
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movl	(%r14), %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	%r15, %rdi
	callq	_up
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movslq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_MTIP_DDF_REMOVE_PENDING_BIT,4,2 ## @MTIP_DDF_REMOVE_PENDING_BIT
	.no_dead_strip	_mtip_hw_get_scatterlist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtip_hw_get_scatterlist
_mtip_hw_get_scatterlist:               ; @mtip_hw_get_scatterlist
	.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, x1
	mov	x20, x0
	ldr	x8, [x0]
	add	x9, x8, #12
	add	x8, x8, #8
	cmp	w2, #0
	csel	x21, x8, x9, eq
	mov	x0, x21
	bl	_down
	mov	x22, x20
	ldr	x0, [x22], #8
	bl	_get_slot
	str	w0, [x19]
Lloh0:
	adrp	x8, _MTIP_DDF_REMOVE_PENDING_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTIP_DDF_REMOVE_PENDING_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	lsr	w0, w8, #31
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, x21
	bl	_up
	mov	x0, #0
LBB0_3:
	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
LBB0_4:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldrsw	x9, [x19]
	ldr	x0, [x8, x9, lsl #3]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MTIP_DDF_REMOVE_PENDING_BIT,4,2 ; @MTIP_DDF_REMOVE_PENDING_BIT
	.no_dead_strip	_mtip_hw_get_scatterlist
.subsections_via_symbols
