	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_bus_task_dmamap
_dmar_bus_task_dmamap:                  ## @dmar_bus_task_dmamap
	.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
	movq	%rdi, %r14
	callq	_DMAR_LOCK
	movq	%r14, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	_delay_link@GOTPCREL(%rip), %r12
	movq	_BUS_DMA_WAITOK@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, 4(%rbx)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, (%rbx)
	movq	%r14, %rdi
	callq	_DMAR_LOCK
	movq	%r14, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	%r14, %rdi
	callq	_DMAR_UNLOCK
	movq	24(%rbx), %r15
	movq	$1, (%rbx)
	leaq	16(%rbx), %rdx
	movl	8(%rbx), %r8d
	movl	12(%rbx), %ecx
	movl	(%r13), %r9d
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_bus_dmamap_load_mem
	movl	$0, (%rbx)
	cmpl	$0, 4(%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	movq	_BUS_DMA_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	*8(%r15)
	jmp	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DMAR_UNLOCK                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_delay_link,4,2                 ## @delay_link
	.comm	_BUS_DMA_WAITOK,4,2             ## @BUS_DMA_WAITOK
	.comm	_BUS_DMA_UNLOCK,4,2             ## @BUS_DMA_UNLOCK
	.no_dead_strip	_dmar_bus_task_dmamap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dmar_bus_task_dmamap
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dmar_bus_task_dmamap:                  ; @dmar_bus_task_dmamap
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -88
	.cfi_offset b9, -96
	mov	x19, x0
	bl	_DMAR_LOCK
	mov	x0, x19
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x22, _delay_link@GOTPAGE
Lloh1:
	ldr	x22, [x22, _delay_link@GOTPAGEOFF]
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
Lloh4:
	adrp	x23, _BUS_DMA_WAITOK@GOTPAGE
Lloh5:
	ldr	x23, [x23, _BUS_DMA_WAITOK@GOTPAGEOFF]
	mov	w24, #1
Lloh6:
	adrp	x25, _BUS_DMA_UNLOCK@GOTPAGE
Lloh7:
	ldr	x25, [x25, _BUS_DMA_UNLOCK@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w24, [x20, #4]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [x20]
	mov	x0, x19
	bl	_DMAR_LOCK
	mov	x0, x19
	bl	_TAILQ_FIRST
	mov	x20, x0
	cbz	x0, LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_TAILQ_REMOVE
	mov	x0, x19
	bl	_DMAR_UNLOCK
	ldr	x21, [x20, #24]
	str	d8, [x20]
	add	x2, x20, #16
	ldp	w4, w3, [x20, #8]
	ldr	w5, [x23]
	mov	x0, x21
	mov	x1, x20
	bl	_bus_dmamap_load_mem
	str	wzr, [x20]
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #8]
	ldr	w0, [x21]
	ldr	w1, [x25]
	blr	x8
	b	LBB0_3
LBB0_6:
	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	d9, d8, [sp], #96               ; 16-byte Folded Reload
	b	_DMAR_UNLOCK
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_delay_link,4,2                 ; @delay_link
	.comm	_BUS_DMA_WAITOK,4,2             ; @BUS_DMA_WAITOK
	.comm	_BUS_DMA_UNLOCK,4,2             ; @BUS_DMA_UNLOCK
	.no_dead_strip	_dmar_bus_task_dmamap
.subsections_via_symbols
