	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_busdma_swi                     ## -- Begin function busdma_swi
	.p2align	4, 0x90
_busdma_swi:                            ## @busdma_swi
	.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	_bounce_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_bounce_map_callbacklist@GOTPCREL(%rip), %rdi
	callq	_STAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	_bounce_map_callbacklist@GOTPCREL(%rip), %r14
	movq	_bounce_lock@GOTPCREL(%rip), %r15
	movq	_BUS_DMA_UNLOCK@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_links@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_STAILQ_REMOVE_HEAD
	movq	%r15, %rdi
	callq	_mtx_unlock
	movq	16(%rbx), %r12
	movl	(%r12), %edi
	movq	_BUS_DMA_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	*8(%r12)
	movq	16(%rbx), %rdi
	leaq	8(%rbx), %rdx
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	movq	_BUS_DMA_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rsi
	callq	_bus_dmamap_load_mem
	movl	(%r12), %edi
	movl	(%r13), %esi
	callq	*8(%r12)
	movq	%r15, %rdi
	callq	_mtx_lock
	movq	%r14, %rdi
	callq	_STAILQ_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	movq	_bounce_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_bounce_lock,4,2                ## @bounce_lock
	.comm	_bounce_map_callbacklist,4,2    ## @bounce_map_callbacklist
	.comm	_links,4,2                      ## @links
	.comm	_BUS_DMA_LOCK,4,2               ## @BUS_DMA_LOCK
	.comm	_BUS_DMA_WAITOK,4,2             ## @BUS_DMA_WAITOK
	.comm	_BUS_DMA_UNLOCK,4,2             ## @BUS_DMA_UNLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_busdma_swi                     ; -- Begin function busdma_swi
	.p2align	2
_busdma_swi:                            ; @busdma_swi
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x0, _bounce_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _bounce_lock@GOTPAGEOFF]
	bl	_mtx_lock
Lloh2:
	adrp	x0, _bounce_map_callbacklist@GOTPAGE
Lloh3:
	ldr	x0, [x0, _bounce_map_callbacklist@GOTPAGEOFF]
	bl	_STAILQ_FIRST
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh4:
	adrp	x22, _links@GOTPAGE
Lloh5:
	ldr	x22, [x22, _links@GOTPAGEOFF]
Lloh6:
	adrp	x19, _bounce_map_callbacklist@GOTPAGE
Lloh7:
	ldr	x19, [x19, _bounce_map_callbacklist@GOTPAGEOFF]
Lloh8:
	adrp	x20, _bounce_lock@GOTPAGE
Lloh9:
	ldr	x20, [x20, _bounce_lock@GOTPAGEOFF]
Lloh10:
	adrp	x23, _BUS_DMA_LOCK@GOTPAGE
Lloh11:
	ldr	x23, [x23, _BUS_DMA_LOCK@GOTPAGEOFF]
Lloh12:
	adrp	x24, _BUS_DMA_WAITOK@GOTPAGE
Lloh13:
	ldr	x24, [x24, _BUS_DMA_WAITOK@GOTPAGEOFF]
Lloh14:
	adrp	x25, _BUS_DMA_UNLOCK@GOTPAGE
Lloh15:
	ldr	x25, [x25, _BUS_DMA_UNLOCK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_STAILQ_REMOVE_HEAD
	mov	x0, x20
	bl	_mtx_unlock
	ldr	x26, [x21, #16]
	ldr	x8, [x26, #8]
	ldr	w0, [x26]
	ldr	w1, [x23]
	blr	x8
	ldr	x0, [x21, #16]
	add	x2, x21, #8
	ldp	w4, w3, [x21]
	ldr	w5, [x24]
	mov	x1, x21
	bl	_bus_dmamap_load_mem
	ldr	x8, [x26, #8]
	ldr	w0, [x26]
	ldr	w1, [x25]
	blr	x8
	mov	x0, x20
	bl	_mtx_lock
	mov	x0, x19
	bl	_STAILQ_FIRST
	mov	x21, x0
	cbnz	x0, LBB0_2
LBB0_3:
Lloh16:
	adrp	x0, _bounce_lock@GOTPAGE
Lloh17:
	ldr	x0, [x0, _bounce_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mtx_unlock
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_bounce_lock,4,2                ; @bounce_lock
	.comm	_bounce_map_callbacklist,4,2    ; @bounce_map_callbacklist
	.comm	_links,4,2                      ; @links
	.comm	_BUS_DMA_LOCK,4,2               ; @BUS_DMA_LOCK
	.comm	_BUS_DMA_WAITOK,4,2             ; @BUS_DMA_WAITOK
	.comm	_BUS_DMA_UNLOCK,4,2             ; @BUS_DMA_UNLOCK
.subsections_via_symbols
