	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_fb_vram_rblock
_nv50_fb_vram_rblock:                   ## @nv50_fb_vram_rblock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$1049088, %esi                  ## imm = 0x100200
	callq	_nv_rd32
	movl	%eax, %r12d
	movq	%r15, %rdi
	movl	$1049092, %esi                  ## imm = 0x100204
	callq	_nv_rd32
	movl	%eax, %r13d
	movq	%r15, %rdi
	movl	$1049168, %esi                  ## imm = 0x100250
	callq	_nv_rd32
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	$5440, %esi                     ## imm = 0x1540
	callq	_nv_rd32
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_nv_debug
	movl	%ebx, %eax
	shrl	$16, %eax
	andl	$1, %eax
	btl	$17, %ebx
	adcl	$0, %eax
	movl	%ebx, %ecx
	shrl	$18, %ecx
	andl	$1, %ecx
	btl	$19, %ebx
	adcl	%eax, %ecx
	movl	%ebx, %eax
	shrl	$20, %eax
	andl	$1, %eax
	btl	$21, %ebx
	adcl	%ecx, %eax
	movl	%ebx, %esi
	shrl	$22, %esi
	andl	$1, %esi
	btl	$23, %ebx
	adcl	%eax, %esi
	movl	%r13d, %eax
	shrl	$12, %eax
	movl	%r13d, %edx
	movl	%r13d, %ecx
	shrl	$24, %ecx
	andb	$3, %cl
	movl	$4, %r14d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r14d
	imull	%esi, %r14d
	andb	$15, %al
	movl	%eax, %ecx
	shll	%cl, %r14d
	shrl	$16, %edx
	shll	$3, %r14d
	andb	$15, %dl
	addb	$8, %dl
	movl	%r14d, %eax
	movl	%edx, %ecx
	shll	%cl, %eax
	testb	$4, %r12b
	je	LBB0_2
## %bb.1:
	shrl	$20, %r13d
	andb	$15, %r13b
	addb	$8, %r13b
	movl	%r14d, %edx
	movl	%r13d, %ecx
	shll	%cl, %edx
	addl	%edx, %eax
LBB0_2:
	movl	(%r15), %edx
	cmpl	%edx, %eax
	je	LBB0_4
## %bb.3:
	sarl	$20, %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_nv_warn
LBB0_4:
	testb	$1, -44(%rbp)                   ## 1-byte Folded Reload
	leal	(%r14,%r14,2), %ebx
	cmovel	%r14d, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_nv_debug
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memcfg 0x%08x 0x%08x 0x%08x 0x%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"memory controller reports %d MiB VRAM\n"

L_.str.2:                               ## @.str.2
	.asciz	"rblock %d bytes\n"

	.no_dead_strip	_nv50_fb_vram_rblock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function nv50_fb_vram_rblock
lCPI0_0:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967279                      ; 0xffffffef
	.long	4294967278                      ; 0xffffffee
	.long	4294967277                      ; 0xffffffed
lCPI0_1:
	.long	4294967276                      ; 0xffffffec
	.long	4294967275                      ; 0xffffffeb
	.long	4294967274                      ; 0xffffffea
	.long	4294967273                      ; 0xffffffe9
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_nv50_fb_vram_rblock:                   ; @nv50_fb_vram_rblock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w20, #512
	movk	w20, #16, lsl #16
	mov	w1, #512
	movk	w1, #16, lsl #16
	bl	_nv_rd32
	mov	x21, x0
	orr	w1, w20, #0x4
	mov	x0, x19
	bl	_nv_rd32
	mov	x22, x0
	mov	w8, #80
	orr	w1, w20, w8
	mov	x0, x19
	bl	_nv_rd32
	mov	x20, x0
	mov	x0, x19
	mov	w1, #5440
	bl	_nv_rd32
	mov	x23, x0
	stp	x20, x23, [sp, #8]
	str	x22, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_nv_debug
	dup.4s	v0, w23
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	q1, [x8, lCPI0_0@PAGEOFF]
	ushl.4s	v1, v0, v1
Lloh4:
	adrp	x8, lCPI0_1@PAGE
Lloh5:
	ldr	q2, [x8, lCPI0_1@PAGEOFF]
	ushl.4s	v0, v0, v2
	movi.4s	v2, #1
	and.16b	v0, v0, v2
	and.16b	v1, v1, v2
	add.4s	v0, v1, v0
	addv.4s	s0, v0
	fmov	w8, s0
	ubfx	w9, w22, #12, #4
	ubfx	w10, w22, #16, #4
	add	w10, w10, #8
	ubfx	w11, w22, #24, #2
	mov	w12, #4
	lsl	w11, w12, w11
	mul	w8, w8, w11
	lsl	w24, w8, w9
	lsl	w23, w24, #3
	lsl	w8, w23, w10
	ubfx	w9, w22, #20, #4
	add	w9, w9, #8
	lsl	w9, w23, w9
	add	w9, w8, w9
	tst	w21, #0x4
	csel	w9, w8, w9, eq
	ldr	w8, [x19]
	cmp	w9, w8
	b.eq	LBB0_2
; %bb.1:
	asr	w2, w8, #20
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_nv_warn
LBB0_2:
	add	w8, w24, w24, lsl #1
	lsl	w8, w8, #3
	tst	w20, #0x1
	csel	w20, w23, w8, eq
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_nv_debug
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memcfg 0x%08x 0x%08x 0x%08x 0x%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"memory controller reports %d MiB VRAM\n"

l_.str.2:                               ; @.str.2
	.asciz	"rblock %d bytes\n"

	.no_dead_strip	_nv50_fb_vram_rblock
.subsections_via_symbols
