	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_gmc_vram_location       ## -- Begin function amdgpu_gmc_vram_location
	.p2align	4, 0x90
_amdgpu_gmc_vram_location:              ## @amdgpu_gmc_vram_location
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdx, %rcx
	movq	_amdgpu_vram_limit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$20, %eax
	movq	%rdx, 16(%rsi)
	movslq	(%rsi), %rdx
	leaq	-1(%rcx,%rdx), %r8
	movq	%r8, 8(%rsi)
	je	LBB0_3
## %bb.1:
	cmpl	4(%rsi), %eax
	jge	LBB0_3
## %bb.2:
	movl	%eax, 4(%rsi)
LBB0_3:
	cmpq	$0, 40(%rsi)
	jne	LBB0_5
## %bb.4:
	movq	%rcx, 32(%rsi)
	movq	%r8, 24(%rsi)
LBB0_5:
	movl	(%rdi), %edi
	sarl	$20, %edx
	movl	4(%rsi), %r9d
	sarl	$20, %r9d
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_amdgpu_vram_limit,8,3          ## @amdgpu_vram_limit
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VRAM: %lluM 0x%016llX - 0x%016llX (%lluM used)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_gmc_vram_location       ; -- Begin function amdgpu_gmc_vram_location
	.p2align	2
_amdgpu_gmc_vram_location:              ; @amdgpu_gmc_vram_location
	.cfi_startproc
; %bb.0:
	mov	x3, x2
Lloh0:
	adrp	x8, _amdgpu_vram_limit@GOTPAGE
Lloh1:
	ldr	x8, [x8, _amdgpu_vram_limit@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w9, w8, #20
	ldrsw	x8, [x1]
	add	x10, x2, x8
	sub	x4, x10, #1
	stp	x4, x2, [x1, #8]
	cbz	w9, LBB0_3
; %bb.1:
	ldr	w10, [x1, #4]
	cmp	w9, w10
	b.ge	LBB0_3
; %bb.2:
	str	w9, [x1, #4]
LBB0_3:
	ldr	x9, [x1, #40]
	cbnz	x9, LBB0_5
; %bb.4:
	stp	x4, x3, [x1, #24]
LBB0_5:
	ldr	w0, [x0]
	asr	w2, w8, #20
	ldr	w8, [x1, #4]
	asr	w5, w8, #20
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	_dev_info
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_amdgpu_vram_limit,8,3          ; @amdgpu_vram_limit
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VRAM: %lluM 0x%016llX - 0x%016llX (%lluM used)\n"

.subsections_via_symbols
