	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bus_dmamap_complete           ## -- Begin function _bus_dmamap_complete
	.p2align	4, 0x90
__bus_dmamap_complete:                  ## @_bus_dmamap_complete
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	%ecx, (%rsi)
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	8(%r15), %rdi
	shll	$2, %ecx
	movq	%r14, %rsi
	movl	%ecx, %edx
	callq	_memcpy
LBB0_2:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	8(%r15), %rsi
	movl	16(%rbx), %ecx
	movl	12(%rbx), %r8d
	movl	8(%rbx), %r9d
	movl	(%rbx), %eax
	movl	4(%rbx), %ebx
	movq	%r15, %rdx
	pushq	%rax
	pushq	%rbx
	callq	_IOMMU_MAP
	addq	$16, %rsp
LBB0_4:
	movq	8(%r15), %rsi
	testq	%r14, %r14
	je	LBB0_5
## %bb.6:
	movl	(%r15), %edx
	shll	$2, %edx
	movq	%r14, %rdi
	callq	_memcpy
	jmp	LBB0_7
LBB0_5:
	movq	%rsi, %r14
LBB0_7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bus_dmamap_complete           ; -- Begin function _bus_dmamap_complete
	.p2align	2
__bus_dmamap_complete:                  ; @_bus_dmamap_complete
	.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, x2
	mov	x20, x1
	mov	x21, x0
	str	w3, [x1]
	cbz	x2, LBB0_2
; %bb.1:
	ldr	x0, [x20, #8]
	lsl	w2, w3, #2
	mov	x1, x19
	bl	_memcpy
LBB0_2:
	ldr	x0, [x21, #24]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x1, [x20, #8]
	ldp	w4, w3, [x21, #12]
	ldp	w6, w5, [x21, #4]
	ldr	w7, [x21]
	mov	x2, x20
	bl	_IOMMU_MAP
LBB0_4:
	ldr	x1, [x20, #8]
	cbz	x19, LBB0_6
; %bb.5:
	ldr	w8, [x20]
	lsl	w2, w8, #2
	mov	x0, x19
	bl	_memcpy
	b	LBB0_7
LBB0_6:
	mov	x19, x1
LBB0_7:
	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
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
