	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gmc_v9_0_get_vm_pde
_gmc_v9_0_get_vm_pde:                   ## @gmc_v9_0_get_vm_pde
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	(%rcx), %eax
	movq	_AMDGPU_PDE_PTE@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	jne	LBB0_3
## %bb.1:
	movq	_AMDGPU_PTE_SYSTEM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.2:
	movl	(%rdx), %eax
	addl	8(%rbx), %eax
	subl	(%rbx), %eax
	movl	%eax, (%rdx)
LBB0_3:
	movl	(%rdx), %edi
	andl	$63, %edi
	callq	_BUG_ON
	cmpl	$0, 4(%rbx)
	je	LBB0_12
## %bb.4:
	movq	_AMDGPU_VM_PDB1@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_7
## %bb.5:
	movl	(%r12), %eax
	testl	%eax, (%r14)
	jne	LBB0_12
## %bb.6:
	movl	$9, %edi
	callq	_AMDGPU_PDE_BFS
	orl	(%r14), %eax
	jmp	LBB0_11
LBB0_7:
	movq	_AMDGPU_VM_PDB0@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_12
## %bb.8:
	movl	(%r14), %eax
	movl	(%r12), %ecx
	testl	%eax, %ecx
	je	LBB0_10
## %bb.9:
	notl	%ecx
	andl	%ecx, %eax
	jmp	LBB0_11
LBB0_10:
	movq	_AMDGPU_PTE_TF@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_11:
	movl	%eax, (%r14)
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_PDE_PTE,4,2             ## @AMDGPU_PDE_PTE
	.comm	_AMDGPU_PTE_SYSTEM,4,2          ## @AMDGPU_PTE_SYSTEM
	.comm	_AMDGPU_VM_PDB1,4,2             ## @AMDGPU_VM_PDB1
	.comm	_AMDGPU_VM_PDB0,4,2             ## @AMDGPU_VM_PDB0
	.comm	_AMDGPU_PTE_TF,4,2              ## @AMDGPU_PTE_TF
	.no_dead_strip	_gmc_v9_0_get_vm_pde
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gmc_v9_0_get_vm_pde
_gmc_v9_0_get_vm_pde:                   ; @gmc_v9_0_get_vm_pde
	.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, x3
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x3]
Lloh0:
	adrp	x22, _AMDGPU_PDE_PTE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AMDGPU_PDE_PTE@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, _AMDGPU_PTE_SYSTEM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AMDGPU_PTE_SYSTEM@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x21, #8]
	ldr	w9, [x2]
	ldr	w10, [x21]
	add	w8, w9, w8
	sub	w8, w8, w10
	str	w8, [x2]
LBB0_3:
	ldr	w8, [x2]
	and	w0, w8, #0x3f
	bl	_BUG_ON
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_12
; %bb.4:
Lloh5:
	adrp	x8, _AMDGPU_VM_PDB1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AMDGPU_VM_PDB1@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_7
; %bb.5:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.6:
	mov	w0, #9
	bl	_AMDGPU_PDE_BFS
	ldr	w8, [x19]
	orr	w8, w8, w0
	b	LBB0_11
LBB0_7:
Lloh8:
	adrp	x8, _AMDGPU_VM_PDB0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AMDGPU_VM_PDB0@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_12
; %bb.8:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	bic	w8, w8, w9
	b	LBB0_11
LBB0_10:
Lloh11:
	adrp	x9, _AMDGPU_PTE_TF@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AMDGPU_PTE_TF@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_11:
	str	w8, [x19]
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_PDE_PTE,4,2             ; @AMDGPU_PDE_PTE
	.comm	_AMDGPU_PTE_SYSTEM,4,2          ; @AMDGPU_PTE_SYSTEM
	.comm	_AMDGPU_VM_PDB1,4,2             ; @AMDGPU_VM_PDB1
	.comm	_AMDGPU_VM_PDB0,4,2             ; @AMDGPU_VM_PDB0
	.comm	_AMDGPU_PTE_TF,4,2              ; @AMDGPU_PTE_TF
	.no_dead_strip	_gmc_v9_0_get_vm_pde
.subsections_via_symbols
