	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_atom_mem_type_to_vram_type
_convert_atom_mem_type_to_vram_type:    ## @convert_atom_mem_type_to_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
	movq	_AMD_IS_APU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_3
## %bb.1:
	addl	$-128, %esi
	cmpl	$6, %esi
	jae	LBB0_7
## %bb.2:
	movslq	%esi, %rax
	leaq	l_switch.table.convert_atom_mem_type_to_vram_type(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	addl	$-134, %esi
	cmpl	$3, %esi
	jae	LBB0_7
## %bb.4:
	movslq	%esi, %rax
	leaq	l_switch.table.convert_atom_mem_type_to_vram_type.1(%rip), %rcx
LBB0_5:
	leaq	(%rcx,%rax,8), %rax
	movq	(%rax), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_AMDGPU_VRAM_TYPE_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMD_IS_APU,4,2                 ## @AMD_IS_APU
	.comm	_AMDGPU_VRAM_TYPE_DDR2,4,2      ## @AMDGPU_VRAM_TYPE_DDR2
	.comm	_AMDGPU_VRAM_TYPE_DDR3,4,2      ## @AMDGPU_VRAM_TYPE_DDR3
	.comm	_AMDGPU_VRAM_TYPE_DDR4,4,2      ## @AMDGPU_VRAM_TYPE_DDR4
	.comm	_AMDGPU_VRAM_TYPE_UNKNOWN,4,2   ## @AMDGPU_VRAM_TYPE_UNKNOWN
	.comm	_AMDGPU_VRAM_TYPE_GDDR5,4,2     ## @AMDGPU_VRAM_TYPE_GDDR5
	.comm	_AMDGPU_VRAM_TYPE_HBM,4,2       ## @AMDGPU_VRAM_TYPE_HBM
	.comm	_AMDGPU_VRAM_TYPE_GDDR6,4,2     ## @AMDGPU_VRAM_TYPE_GDDR6
	.no_dead_strip	_convert_atom_mem_type_to_vram_type
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.convert_atom_mem_type_to_vram_type
l_switch.table.convert_atom_mem_type_to_vram_type:
	.quad	_AMDGPU_VRAM_TYPE_DDR4
	.quad	_AMDGPU_VRAM_TYPE_DDR3
	.quad	_AMDGPU_VRAM_TYPE_DDR2
	.quad	_AMDGPU_VRAM_TYPE_DDR4
	.quad	_AMDGPU_VRAM_TYPE_DDR3
	.quad	_AMDGPU_VRAM_TYPE_DDR2

	.p2align	3                               ## @switch.table.convert_atom_mem_type_to_vram_type.1
l_switch.table.convert_atom_mem_type_to_vram_type.1:
	.quad	_AMDGPU_VRAM_TYPE_HBM
	.quad	_AMDGPU_VRAM_TYPE_GDDR6
	.quad	_AMDGPU_VRAM_TYPE_GDDR5

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_atom_mem_type_to_vram_type
_convert_atom_mem_type_to_vram_type:    ; @convert_atom_mem_type_to_vram_type
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _AMD_IS_APU@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AMD_IS_APU@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	sub	w8, w1, #128
	cmp	w8, #6
	b.hs	LBB0_6
; %bb.2:
Lloh3:
	adrp	x9, l_switch.table.convert_atom_mem_type_to_vram_type@PAGE
Lloh4:
	add	x9, x9, l_switch.table.convert_atom_mem_type_to_vram_type@PAGEOFF
	b	LBB0_5
LBB0_3:
	sub	w8, w1, #134
	cmp	w8, #3
	b.hs	LBB0_6
; %bb.4:
Lloh5:
	adrp	x9, l_switch.table.convert_atom_mem_type_to_vram_type.1@PAGE
Lloh6:
	add	x9, x9, l_switch.table.convert_atom_mem_type_to_vram_type.1@PAGEOFF
LBB0_5:
	add	x8, x9, w8, sxtw #3
	ldr	x8, [x8]
	ldr	w0, [x8]
	ret
LBB0_6:
Lloh7:
	adrp	x8, _AMDGPU_VRAM_TYPE_UNKNOWN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AMDGPU_VRAM_TYPE_UNKNOWN@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AMD_IS_APU,4,2                 ; @AMD_IS_APU
	.comm	_AMDGPU_VRAM_TYPE_DDR2,4,2      ; @AMDGPU_VRAM_TYPE_DDR2
	.comm	_AMDGPU_VRAM_TYPE_DDR3,4,2      ; @AMDGPU_VRAM_TYPE_DDR3
	.comm	_AMDGPU_VRAM_TYPE_DDR4,4,2      ; @AMDGPU_VRAM_TYPE_DDR4
	.comm	_AMDGPU_VRAM_TYPE_UNKNOWN,4,2   ; @AMDGPU_VRAM_TYPE_UNKNOWN
	.comm	_AMDGPU_VRAM_TYPE_GDDR5,4,2     ; @AMDGPU_VRAM_TYPE_GDDR5
	.comm	_AMDGPU_VRAM_TYPE_HBM,4,2       ; @AMDGPU_VRAM_TYPE_HBM
	.comm	_AMDGPU_VRAM_TYPE_GDDR6,4,2     ; @AMDGPU_VRAM_TYPE_GDDR6
	.no_dead_strip	_convert_atom_mem_type_to_vram_type
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.convert_atom_mem_type_to_vram_type
l_switch.table.convert_atom_mem_type_to_vram_type:
	.quad	_AMDGPU_VRAM_TYPE_DDR4
	.quad	_AMDGPU_VRAM_TYPE_DDR3
	.quad	_AMDGPU_VRAM_TYPE_DDR2
	.quad	_AMDGPU_VRAM_TYPE_DDR4
	.quad	_AMDGPU_VRAM_TYPE_DDR3
	.quad	_AMDGPU_VRAM_TYPE_DDR2

	.p2align	3                               ; @switch.table.convert_atom_mem_type_to_vram_type.1
l_switch.table.convert_atom_mem_type_to_vram_type.1:
	.quad	_AMDGPU_VRAM_TYPE_HBM
	.quad	_AMDGPU_VRAM_TYPE_GDDR6
	.quad	_AMDGPU_VRAM_TYPE_GDDR5

.subsections_via_symbols
