	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atombios_get_vram_width ## -- Begin function amdgpu_atombios_get_vram_width
	.p2align	4, 0x90
_amdgpu_atombios_get_vram_width:        ## @amdgpu_atombios_get_vram_width
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IntegratedSystemInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movq	(%rbx), %rdi
	leaq	-40(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	leaq	-12(%rbp), %r8
	leaq	-24(%rbp), %r9
	movl	%eax, %esi
	callq	_amdgpu_atom_parse_data_header
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	movl	-12(%rbp), %ecx
	andl	$-2, %ecx
	cmpl	$8, %ecx
	jne	LBB0_3
## %bb.2:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	-24(%rbp), %rcx
	movl	(%rcx,%rax), %eax
	shll	$6, %eax
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA,4,2                       ## @DATA
	.comm	_IntegratedSystemInfo,4,2       ## @IntegratedSystemInfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atombios_get_vram_width ; -- Begin function amdgpu_atombios_get_vram_width
	.p2align	2
_amdgpu_atombios_get_vram_width:        ; @amdgpu_atombios_get_vram_width
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _IntegratedSystemInfo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IntegratedSystemInfo@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x1, x0
	ldr	x0, [x19]
	add	x2, sp, #16
	add	x3, sp, #12
	add	x4, sp, #8
	add	x5, sp, #24
	bl	_amdgpu_atom_parse_data_header
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [sp, #8]
	and	w8, w8, #0xfffffffe
	cmp	w8, #8
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [sp, #24]
	ldr	w8, [x9, x8]
	lsl	w0, w8, #6
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA,4,2                       ; @DATA
	.comm	_IntegratedSystemInfo,4,2       ; @IntegratedSystemInfo
.subsections_via_symbols
