	.file	"extr_amdgpu_atomfirmware.c_convert_atom_mem_type_to_vram_type.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	convert_atom_mem_type_to_vram_type, @function
convert_atom_mem_type_to_vram_type:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR AMD_IS_APU[rip], eax
	jne	.L15
	cmp	esi, 135
	je	.L9
	mov	eax, DWORD PTR AMDGPU_VRAM_TYPE_GDDR5[rip]
	cmp	esi, 136
	je	.L1
	mov	eax, DWORD PTR AMDGPU_VRAM_TYPE_HBM[rip]
	cmp	esi, 134
	je	.L16
.L3:
	mov	eax, DWORD PTR AMDGPU_VRAM_TYPE_UNKNOWN[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR AMDGPU_VRAM_TYPE_GDDR6[rip]
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	add	esi, -128
	cmp	esi, 5
	ja	.L3
	lea	rdx, .L5[rip]
	movsx	rax, DWORD PTR [rdx+rsi*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L7-.L5
	.long	.L6-.L5
	.long	.L4-.L5
	.long	.L7-.L5
	.long	.L6-.L5
	.long	.L4-.L5
	.text
.L6:
	mov	eax, DWORD PTR AMDGPU_VRAM_TYPE_DDR3[rip]
	ret
.L4:
	mov	eax, DWORD PTR AMDGPU_VRAM_TYPE_DDR2[rip]
	ret
.L7:
	mov	eax, DWORD PTR AMDGPU_VRAM_TYPE_DDR4[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	ret
	.cfi_endproc
.LFE0:
	.size	convert_atom_mem_type_to_vram_type, .-convert_atom_mem_type_to_vram_type
	.comm	AMD_IS_APU,4,4
	.comm	AMDGPU_VRAM_TYPE_UNKNOWN,4,4
	.comm	AMDGPU_VRAM_TYPE_HBM,4,4
	.comm	AMDGPU_VRAM_TYPE_GDDR6,4,4
	.comm	AMDGPU_VRAM_TYPE_GDDR5,4,4
	.comm	AMDGPU_VRAM_TYPE_DDR4,4,4
	.comm	AMDGPU_VRAM_TYPE_DDR3,4,4
	.comm	AMDGPU_VRAM_TYPE_DDR2,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_amdgpu_atomfirmware.c_convert_atom_mem_type_to_vram_type.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert_atom_mem_type_to_vram_type, %function
convert_atom_mem_type_to_vram_type:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, .L15
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L13
	cmp	r1, #135
	beq	.L9
	cmp	r1, #136
	beq	.L10
	cmp	r1, #134
	beq	.L14
.L3:
	ldr	r3, .L15+4
	ldr	r0, [r3]
	bx	lr
.L13:
	sub	r1, r1, #128
	cmp	r1, #5
	ldrls	pc, [pc, r1, asl #2]
	b	.L3
.L5:
	.word	.L7
	.word	.L6
	.word	.L4
	.word	.L7
	.word	.L6
	.word	.L4
.L4:
	ldr	r3, .L15+8
	ldr	r0, [r3]
	bx	lr
.L7:
	ldr	r3, .L15+12
	ldr	r0, [r3]
	bx	lr
.L6:
	ldr	r3, .L15+16
	ldr	r0, [r3]
	bx	lr
.L10:
	ldr	r3, .L15+20
	ldr	r0, [r3]
	bx	lr
.L14:
	ldr	r3, .L15+24
	ldr	r0, [r3]
	bx	lr
.L9:
	ldr	r3, .L15+28
	ldr	r0, [r3]
	bx	lr
.L16:
	.align	2
.L15:
	.word	AMD_IS_APU
	.word	AMDGPU_VRAM_TYPE_UNKNOWN
	.word	AMDGPU_VRAM_TYPE_DDR2
	.word	AMDGPU_VRAM_TYPE_DDR4
	.word	AMDGPU_VRAM_TYPE_DDR3
	.word	AMDGPU_VRAM_TYPE_GDDR5
	.word	AMDGPU_VRAM_TYPE_HBM
	.word	AMDGPU_VRAM_TYPE_GDDR6
	.size	convert_atom_mem_type_to_vram_type, .-convert_atom_mem_type_to_vram_type
	.comm	AMD_IS_APU,4,4
	.comm	AMDGPU_VRAM_TYPE_UNKNOWN,4,4
	.comm	AMDGPU_VRAM_TYPE_HBM,4,4
	.comm	AMDGPU_VRAM_TYPE_GDDR6,4,4
	.comm	AMDGPU_VRAM_TYPE_GDDR5,4,4
	.comm	AMDGPU_VRAM_TYPE_DDR4,4,4
	.comm	AMDGPU_VRAM_TYPE_DDR3,4,4
	.comm	AMDGPU_VRAM_TYPE_DDR2,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
