	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_amdkfd_gpuvm_get_process_page_dir ## -- Begin function amdgpu_amdkfd_gpuvm_get_process_page_dir
	.p2align	4, 0x90
_amdgpu_amdkfd_gpuvm_get_process_page_dir: ## @amdgpu_amdkfd_gpuvm_get_process_page_dir
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	callq	_amdgpu_ttm_adev
	movq	(%rax), %rdx
	movq	_CHIP_VEGA10@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	movl	(%rbx), %eax
	cmpq	(%rsi), %rdx
	jge	LBB0_2
## %bb.1:
	movq	_AMDGPU_GPU_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_VEGA10,8,3                ## @CHIP_VEGA10
	.comm	_AMDGPU_GPU_PAGE_SHIFT,4,2      ## @AMDGPU_GPU_PAGE_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_amdkfd_gpuvm_get_process_page_dir ; -- Begin function amdgpu_amdkfd_gpuvm_get_process_page_dir
	.p2align	2
_amdgpu_amdkfd_gpuvm_get_process_page_dir: ; @amdgpu_amdkfd_gpuvm_get_process_page_dir
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_amdgpu_ttm_adev
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CHIP_VEGA10@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHIP_VEGA10@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _AMDGPU_GPU_PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AMDGPU_GPU_PAGE_SHIFT@GOTPAGEOFF]
	ldr	w11, [x19]
Lloh5:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w8, w10, wzr, lt
	asr	w0, w11, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_VEGA10,8,3                ; @CHIP_VEGA10
	.comm	_AMDGPU_GPU_PAGE_SHIFT,4,2      ; @AMDGPU_GPU_PAGE_SHIFT
.subsections_via_symbols
