	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_v3_0_vm_write_pte
_sdma_v3_0_vm_write_pte:                ## @sdma_v3_0_vm_write_pte
	.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	%r8, %r14
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	addl	%ecx, %r15d
	movq	_SDMA_OP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDMA_PKT_HEADER_OP
	movl	%eax, %r13d
	movq	_SDMA_SUBOP_WRITE_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDMA_PKT_HEADER_SUB_OP
	orl	%r13d, %eax
	movq	(%r12), %rcx
	movslq	8(%r12), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 8(%r12)
	movl	%eax, (%rcx,%rdx,4)
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	callq	_lower_32_bits
	movq	(%r12), %rcx
	movslq	8(%r12), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 8(%r12)
	movl	%eax, (%rcx,%rdx,4)
	movl	%r13d, %edi
	callq	_upper_32_bits
	movq	(%r12), %rcx
	movslq	8(%r12), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 8(%r12)
	movl	%eax, (%rcx,%rdx,4)
	movslq	8(%r12), %rax
	leal	1(%rax), %edx
	movl	%edx, 8(%r12)
	movl	%r15d, (%rcx,%rax,4)
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.1:
	negl	%r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_lower_32_bits
	movq	(%r12), %rcx
	movslq	8(%r12), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 8(%r12)
	movl	%eax, (%rcx,%rdx,4)
	movl	%ebx, %edi
	callq	_upper_32_bits
	movq	(%r12), %rcx
	movslq	8(%r12), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 8(%r12)
	movl	%eax, (%rcx,%rdx,4)
	addl	%r14d, %ebx
	addl	$2, %r15d
	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	_SDMA_OP_WRITE,4,2              ## @SDMA_OP_WRITE
	.comm	_SDMA_SUBOP_WRITE_LINEAR,4,2    ## @SDMA_SUBOP_WRITE_LINEAR
	.no_dead_strip	_sdma_v3_0_vm_write_pte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdma_v3_0_vm_write_pte
_sdma_v3_0_vm_write_pte:                ; @sdma_v3_0_vm_write_pte
	.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
	mov	x19, x4
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	lsl	w25, w3, #1
Lloh0:
	adrp	x8, _SDMA_OP_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDMA_OP_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_SDMA_PKT_HEADER_OP
	mov	x24, x0
Lloh3:
	adrp	x8, _SDMA_SUBOP_WRITE_LINEAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDMA_SUBOP_WRITE_LINEAR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_SDMA_PKT_HEADER_SUB_OP
	orr	w8, w0, w24
	ldr	x9, [x21]
	ldrsw	x10, [x21, #8]
	add	w11, w10, #1
	str	w11, [x21, #8]
	str	w8, [x9, x10, lsl #2]
	mov	x0, x23
	bl	_lower_32_bits
	ldr	x8, [x21]
	ldrsw	x9, [x21, #8]
	add	w10, w9, #1
	str	w10, [x21, #8]
	str	w0, [x8, x9, lsl #2]
	mov	x0, x23
	bl	_upper_32_bits
	ldr	x8, [x21]
	ldrsw	x9, [x21, #8]
	add	w10, w9, #1
	str	w10, [x21, #8]
	str	w0, [x8, x9, lsl #2]
	ldrsw	x9, [x21, #8]
	add	w10, w9, #1
	str	w10, [x21, #8]
	str	w25, [x8, x9, lsl #2]
	cbz	w25, LBB0_3
; %bb.1:
	neg	w22, w22, lsl #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_lower_32_bits
	ldr	x8, [x21]
	ldrsw	x9, [x21, #8]
	add	w10, w9, #1
	str	w10, [x21, #8]
	str	w0, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_upper_32_bits
	ldr	x8, [x21]
	ldrsw	x9, [x21, #8]
	add	w10, w9, #1
	str	w10, [x21, #8]
	str	w0, [x8, x9, lsl #2]
	add	w20, w20, w19
	adds	w22, w22, #2
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SDMA_OP_WRITE,4,2              ; @SDMA_OP_WRITE
	.comm	_SDMA_SUBOP_WRITE_LINEAR,4,2    ; @SDMA_SUBOP_WRITE_LINEAR
	.no_dead_strip	_sdma_v3_0_vm_write_pte
.subsections_via_symbols
