	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_si_dma_vm_copy_pages           ## -- Begin function si_dma_vm_copy_pages
	.p2align	4, 0x90
_si_dma_vm_copy_pages:                  ## @si_dma_vm_copy_pages
	.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
	testl	%r8d, %r8d
	je	LBB0_3
## %bb.1:
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(,%r14,8), %r13d
	cmpl	$1048568, %r13d                 ## imm = 0xFFFF8
	movl	$1048568, %eax                  ## imm = 0xFFFF8
	cmovael	%eax, %r13d
	movq	_DMA_PACKET_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r13d, %r8d
	callq	_DMA_PACKET
	movq	(%rbx), %rcx
	movslq	8(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 8(%rbx)
	movl	%eax, (%rcx,%rdx,4)
	movl	%r12d, %edi
	callq	_lower_32_bits
	movq	(%rbx), %rcx
	movslq	8(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 8(%rbx)
	movl	%eax, (%rcx,%rdx,4)
	movl	%r15d, %edi
	callq	_lower_32_bits
	movq	(%rbx), %rcx
	movslq	8(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 8(%rbx)
	movl	%eax, (%rcx,%rdx,4)
	movl	%r12d, %edi
	callq	_upper_32_bits
	movzbl	%al, %eax
	movq	(%rbx), %rcx
	movslq	8(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 8(%rbx)
	movl	%eax, (%rcx,%rdx,4)
	movl	%r15d, %edi
	callq	_upper_32_bits
	movzbl	%al, %eax
	movq	(%rbx), %rcx
	movslq	8(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 8(%rbx)
	movl	%eax, (%rcx,%rdx,4)
	addl	%r13d, %r12d
	addl	%r13d, %r15d
	shrl	$3, %r13d
	subl	%r13d, %r14d
	jne	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_PACKET_COPY,4,2            ## @DMA_PACKET_COPY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_si_dma_vm_copy_pages           ; -- Begin function si_dma_vm_copy_pages
	.p2align	2
_si_dma_vm_copy_pages:                  ; @si_dma_vm_copy_pages
	.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
	cbz	w4, LBB0_3
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	w24, #1048568
Lloh0:
	adrp	x25, _DMA_PACKET_COPY@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DMA_PACKET_COPY@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w19, #3
	cmp	w8, w24
	csel	w23, w8, w24, lo
	ldr	w0, [x25]
	mov	w1, #1
	mov	w2, #0
	mov	w3, #0
	mov	x4, x23
	bl	_DMA_PACKET
	ldr	x8, [x22]
	ldrsw	x9, [x22, #8]
	add	w10, w9, #1
	str	w10, [x22, #8]
	str	w0, [x8, x9, lsl #2]
	mov	x0, x21
	bl	_lower_32_bits
	ldr	x8, [x22]
	ldrsw	x9, [x22, #8]
	add	w10, w9, #1
	str	w10, [x22, #8]
	str	w0, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_lower_32_bits
	ldr	x8, [x22]
	ldrsw	x9, [x22, #8]
	add	w10, w9, #1
	str	w10, [x22, #8]
	str	w0, [x8, x9, lsl #2]
	mov	x0, x21
	bl	_upper_32_bits
	and	w8, w0, #0xff
	ldr	x9, [x22]
	ldrsw	x10, [x22, #8]
	add	w11, w10, #1
	str	w11, [x22, #8]
	str	w8, [x9, x10, lsl #2]
	mov	x0, x20
	bl	_upper_32_bits
	and	w8, w0, #0xff
	ldr	x9, [x22]
	ldrsw	x10, [x22, #8]
	add	w11, w10, #1
	str	w11, [x22, #8]
	str	w8, [x9, x10, lsl #2]
	add	w21, w23, w21
	add	w20, w23, w20
	subs	w19, w19, w23, lsr #3
	b.ne	LBB0_2
LBB0_3:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_PACKET_COPY,4,2            ; @DMA_PACKET_COPY
.subsections_via_symbols
