	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv515_vram_get_type
_rv515_vram_get_type:                   ## @rv515_vram_get_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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movabsq	$4294967424, %rax               ## imm = 0x100000080
	movq	%rax, (%rdi)
	movq	_RV515_MC_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32_MC
	movq	_MEM_NUM_CHANNELS_MASK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	shll	$6, %edx
	addl	$64, %edx
	movl	%edx, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RV515_MC_CNTL,4,2              ## @RV515_MC_CNTL
	.comm	_MEM_NUM_CHANNELS_MASK,4,2      ## @MEM_NUM_CHANNELS_MASK
	.no_dead_strip	_rv515_vram_get_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function rv515_vram_get_type
lCPI0_0:
	.long	128                             ; 0x80
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_rv515_vram_get_type:                   ; @rv515_vram_get_type
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0]
Lloh2:
	adrp	x8, _RV515_MC_CNTL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RV515_MC_CNTL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_RREG32_MC
Lloh5:
	adrp	x8, _MEM_NUM_CHANNELS_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MEM_NUM_CHANNELS_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	mov	w8, #128
	mov	w9, #64
	csel	w8, w9, w8, eq
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RV515_MC_CNTL,4,2              ; @RV515_MC_CNTL
	.comm	_MEM_NUM_CHANNELS_MASK,4,2      ; @MEM_NUM_CHANNELS_MASK
	.no_dead_strip	_rv515_vram_get_type
.subsections_via_symbols
