	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_region_sync_for_device     ## -- Begin function dma_region_sync_for_device
	.p2align	4, 0x90
_dma_region_sync_for_device:            ## @dma_region_sync_for_device
	.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	%rdx, %r14
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r12
	xorl	%edx, %edx
	movq	%r12, %rcx
	callq	_dma_region_find
	movl	%eax, %r13d
	subq	$1, %r14
	cmovaeq	%r14, %rbx
	addq	-48(%rbp), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movq	%r12, %rcx
	callq	_dma_region_find
                                        ## kill: def $eax killed $eax def $rax
	movl	(%r15), %ecx
	movl	16(%r15), %edi
	movslq	%r13d, %rdx
	leaq	(,%rdx,4), %rsi
	addq	8(%r15), %rsi
	subl	%edx, %eax
	leal	1(%rax), %edx
	callq	_pci_dma_sync_sg_for_device
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_dma_region_sync_for_device     ; -- Begin function dma_region_sync_for_device
	.p2align	2
_dma_region_sync_for_device:            ; @dma_region_sync_for_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	str	xzr, [sp, #8]
	add	x3, sp, #8
	mov	w2, #0
	bl	_dma_region_find
	mov	x21, x0
	ldr	x8, [sp, #8]
	sub	x9, x19, #1
	cmp	x19, #0
	csel	x9, xzr, x9, eq
	add	x1, x9, x8
	add	x3, sp, #8
	mov	x0, x20
	mov	x2, x21
	bl	_dma_region_find
	ldr	w8, [x20, #16]
	ldr	x9, [x20, #8]
	add	x1, x9, w21, sxtw #2
	sub	w9, w0, w21
	add	w2, w9, #1
	ldr	w3, [x20]
	mov	x0, x8
	bl	_pci_dma_sync_sg_for_device
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
