	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioat1_dma_start_null_desc
_ioat1_dma_start_null_desc:             ## @ioat1_dma_start_null_desc
	.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	%rdi, %r15
	leaq	8(%rdi), %r14
	callq	_spin_lock_bh
	movq	%r15, %rdi
	callq	_ioat1_dma_get_next_descriptor
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	8(%rax), %rbx
	movq	$0, 40(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 28(%rbx)
	movl	$1, 36(%rbx)
	movq	_NULL_DESC_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	%r12, %rdi
	callq	_async_tx_ack
	movq	$0, (%rbx)
	movq	%r12, %rdi
	addq	$4, %rdi
	leaq	4(%r15), %rsi
	callq	_list_add_tail
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_dump_desc_dbg
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_ioat_set_chainaddr
	movq	%r14, %rdi
	callq	_ioat_start
	jmp	LBB0_3
LBB0_1:
	movq	%r14, %rdi
	callq	_to_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_err
LBB0_3:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to start null desc - get next desc failed\n"

	.comm	_NULL_DESC_BUFFER_SIZE,4,2      ## @NULL_DESC_BUFFER_SIZE
	.no_dead_strip	_ioat1_dma_start_null_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioat1_dma_start_null_desc
_ioat1_dma_start_null_desc:             ; @ioat1_dma_start_null_desc
	.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, x0
	add	x20, x0, #8
	bl	_spin_lock_bh
	mov	x0, x19
	bl	_ioat1_dma_get_next_descriptor
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x22, [x0, #8]
	str	xzr, [x22, #40]
	movi.2s	v0, #1
	stur	d0, [x22, #28]
	mov	w8, #1
	str	w8, [x22, #36]
Lloh0:
	adrp	x8, _NULL_DESC_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NULL_DESC_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22, #24]
	stp	xzr, xzr, [x22, #8]
	bl	_async_tx_ack
	str	xzr, [x22]
	add	x0, x21, #4
	add	x1, x19, #4
	bl	_list_add_tail
	mov	x0, x19
	mov	x1, x21
	bl	_dump_desc_dbg
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ioat_set_chainaddr
	mov	x0, x20
	bl	_ioat_start
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_to_dev
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_3:
	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_bh
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to start null desc - get next desc failed\n"

	.comm	_NULL_DESC_BUFFER_SIZE,4,2      ; @NULL_DESC_BUFFER_SIZE
	.no_dead_strip	_ioat1_dma_start_null_desc
.subsections_via_symbols
