	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_vm_set_pages
_radeon_vm_set_pages:                   ## @radeon_vm_set_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movl	16(%rbp), %r12d
	movl	%edx, %edi
	movl	%ecx, %esi
	movl	%r8d, %edx
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r9d, %ecx
	movl	%r12d, %r8d
	callq	_trace_radeon_vm_set_page
	movq	_R600_PTE_GART_MASK@GOTPCREL(%rip), %rax
	movl	%r12d, %ecx
	notl	%ecx
	testl	%ecx, (%rax)
	jne	LBB0_1
## %bb.4:
	sarl	$9, %ebx
	andl	$-8, %ebx
	addl	(%r13), %ebx
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_radeon_asic_vm_copy_pages      ## TAILCALL
LBB0_1:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	cmpl	$3, %r14d
	jb	LBB0_5
## %bb.2:
	movq	_R600_PTE_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	jne	LBB0_5
## %bb.3:
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_radeon_asic_vm_set_pages       ## TAILCALL
LBB0_5:
	movl	%r12d, (%rsp)
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_radeon_asic_vm_write_pages
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R600_PTE_GART_MASK,4,2         ## @R600_PTE_GART_MASK
	.comm	_R600_PTE_SYSTEM,4,2            ## @R600_PTE_SYSTEM
	.no_dead_strip	_radeon_vm_set_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_vm_set_pages
_radeon_vm_set_pages:                   ; @radeon_vm_set_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
	mov	x20, x6
	mov	x21, x5
	mov	x19, x4
	mov	x23, x3
	mov	x22, x2
	mov	x24, x1
	mov	x25, x0
	mov	x0, x2
	mov	x1, x3
	mov	x2, x4
	mov	x3, x5
	mov	x4, x6
	bl	_trace_radeon_vm_set_page
Lloh0:
	adrp	x8, _R600_PTE_GART_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R600_PTE_GART_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bics	wzr, w8, w20
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x25]
	asr	w9, w23, #9
	and	w9, w9, #0xfffffff8
	add	w3, w8, w9
	mov	x0, x25
	mov	x1, x24
	mov	x2, x22
	mov	x4, x19
	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	_radeon_asic_vm_copy_pages
LBB0_2:
	cmp	w19, #3
	b.lo	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _R600_PTE_SYSTEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R600_PTE_SYSTEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w20
	cbnz	w8, LBB0_5
; %bb.4:
	mov	x0, x25
	mov	x1, x24
	mov	x2, x22
	mov	x3, x23
	mov	x4, x19
	mov	x5, x21
	mov	x6, x20
	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	_radeon_asic_vm_set_pages
LBB0_5:
	mov	x0, x25
	mov	x1, x24
	mov	x2, x22
	mov	x3, x23
	mov	x4, x19
	mov	x5, x21
	mov	x6, x20
	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	_radeon_asic_vm_write_pages
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_R600_PTE_GART_MASK,4,2         ; @R600_PTE_GART_MASK
	.comm	_R600_PTE_SYSTEM,4,2            ; @R600_PTE_SYSTEM
	.no_dead_strip	_radeon_vm_set_pages
.subsections_via_symbols
