	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_vm_num_ats_entries
_amdgpu_vm_num_ats_entries:             ## @amdgpu_vm_num_ats_entries
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %esi
	callq	_amdgpu_vm_level_shift
	movq	_AMDGPU_GMC_HOLE_START@GOTPCREL(%rip), %rcx
	movq	_AMDGPU_GPU_PAGE_SHIFT@GOTPCREL(%rip), %rdx
	addl	(%rdx), %eax
	movl	(%rcx), %edx
	movl	%eax, %ecx
	shrl	%cl, %edx
	movl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_GMC_HOLE_START,4,2      ## @AMDGPU_GMC_HOLE_START
	.comm	_AMDGPU_GPU_PAGE_SHIFT,4,2      ## @AMDGPU_GPU_PAGE_SHIFT
	.no_dead_strip	_amdgpu_vm_num_ats_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_vm_num_ats_entries
_amdgpu_vm_num_ats_entries:             ; @amdgpu_vm_num_ats_entries
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w1, [x0]
	bl	_amdgpu_vm_level_shift
Lloh0:
	adrp	x8, _AMDGPU_GMC_HOLE_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMDGPU_GMC_HOLE_START@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AMDGPU_GPU_PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AMDGPU_GPU_PAGE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w9, w9, w0
	lsr	w0, w8, w9
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_GMC_HOLE_START,4,2      ; @AMDGPU_GMC_HOLE_START
	.comm	_AMDGPU_GPU_PAGE_SHIFT,4,2      ; @AMDGPU_GPU_PAGE_SHIFT
	.no_dead_strip	_amdgpu_vm_num_ats_entries
.subsections_via_symbols
