	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atomfirmware_get_vram_type ## -- Begin function amdgpu_atomfirmware_get_vram_type
	.p2align	4, 0x90
_amdgpu_atomfirmware_get_vram_type:     ## @amdgpu_atomfirmware_get_vram_type
	.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	_atom_master_list_of_data_tables_v2_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_integratedsysteminfo@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_get_index_into_master_table
	movq	8(%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_8
## %bb.1:
	movq	_AMD_IS_APU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_4
## %bb.2:
	cmpl	$11, -12(%rbp)
	jne	LBB0_8
## %bb.3:
	movq	8(%rbx), %rcx
	movq	-24(%rbp), %rax
	addq	(%rcx), %rax
	jmp	LBB0_7
LBB0_4:
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	-24(%rbp), %rdx
	movl	-12(%rbp), %esi
	cmpl	$4, %esi
	je	LBB0_6
## %bb.5:
	cmpl	$3, %esi
	jne	LBB0_8
LBB0_6:
	movq	(%rcx,%rdx), %rax
LBB0_7:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_convert_atom_mem_type_to_vram_type
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMD_IS_APU,4,2                 ## @AMD_IS_APU
	.comm	_atom_master_list_of_data_tables_v2_1,4,2 ## @atom_master_list_of_data_tables_v2_1
	.comm	_integratedsysteminfo,8,3       ## @integratedsysteminfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atomfirmware_get_vram_type ; -- Begin function amdgpu_atomfirmware_get_vram_type
	.p2align	2
_amdgpu_atomfirmware_get_vram_type:     ; @amdgpu_atomfirmware_get_vram_type
	.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, _atom_master_list_of_data_tables_v2_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _atom_master_list_of_data_tables_v2_1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _integratedsysteminfo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _integratedsysteminfo@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	bl	_get_index_into_master_table
	mov	x1, x0
	ldr	x0, [x19, #8]
	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_9
; %bb.1:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _AMD_IS_APU@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AMD_IS_APU@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [sp, #8]
	cmp	w8, #11
	b.ne	LBB0_8
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x9, [sp, #24]
	add	x8, x9, x8
	b	LBB0_7
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x9, [sp, #24]
	ldr	w10, [sp, #8]
	cmp	w10, #4
	b.eq	LBB0_6
; %bb.5:
	cmp	w10, #3
	b.ne	LBB0_8
LBB0_6:
	ldr	x8, [x8, x9]
LBB0_7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_convert_atom_mem_type_to_vram_type
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AMD_IS_APU,4,2                 ; @AMD_IS_APU
	.comm	_atom_master_list_of_data_tables_v2_1,4,2 ; @atom_master_list_of_data_tables_v2_1
	.comm	_integratedsysteminfo,8,3       ; @integratedsysteminfo
.subsections_via_symbols
