	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv41_fb_vram_init              ## -- Begin function nv41_fb_vram_init
	.p2align	4, 0x90
_nv41_fb_vram_init:                     ## @nv41_fb_vram_init
	.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
	movl	$1049716, %esi                  ## imm = 0x100474
	callq	_nv_rd32
	testb	$4, %al
	jne	LBB0_1
## %bb.2:
	testb	$2, %al
	jne	LBB0_3
LBB0_4:
	testb	$1, %al
	je	LBB0_6
LBB0_5:
	movq	_NV_MEM_TYPE_DDR1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_6:
	movq	%rbx, %rdi
	movl	$1049100, %esi                  ## imm = 0x10020C
	callq	_nv_rd32
	andl	$-16777216, %eax                ## imm = 0xFF000000
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	movl	$1049088, %esi                  ## imm = 0x100200
	callq	_nv_rd32
	andl	$3, %eax
	incl	%eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	movl	$1049376, %esi                  ## imm = 0x100320
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_nv_rd32                        ## TAILCALL
LBB0_1:
	movq	_NV_MEM_TYPE_GDDR3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	testb	$2, %al
	je	LBB0_4
LBB0_3:
	movq	_NV_MEM_TYPE_DDR2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	testb	$1, %al
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_MEM_TYPE_GDDR3,4,2          ## @NV_MEM_TYPE_GDDR3
	.comm	_NV_MEM_TYPE_DDR2,4,2           ## @NV_MEM_TYPE_DDR2
	.comm	_NV_MEM_TYPE_DDR1,4,2           ## @NV_MEM_TYPE_DDR1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv41_fb_vram_init              ; -- Begin function nv41_fb_vram_init
	.p2align	2
_nv41_fb_vram_init:                     ; @nv41_fb_vram_init
	.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
	mov	w20, #512
	movk	w20, #16, lsl #16
	add	w1, w20, #628
	bl	_nv_rd32
	tbnz	w0, #2, LBB0_5
; %bb.1:
	tbnz	w0, #1, LBB0_6
LBB0_2:
	tbz	w0, #0, LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _NV_MEM_TYPE_DDR1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV_MEM_TYPE_DDR1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_4:
	add	w1, w20, #12
	mov	x0, x19
	bl	_nv_rd32
	and	w8, w0, #0xff000000
	str	w8, [x19]
	mov	x0, x19
	mov	w1, #512
	movk	w1, #16, lsl #16
	bl	_nv_rd32
	and	w8, w0, #0x3
	add	w8, w8, #1
	str	w8, [x19, #4]
	add	w1, w20, #288
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nv_rd32
LBB0_5:
Lloh3:
	adrp	x8, _NV_MEM_TYPE_GDDR3@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NV_MEM_TYPE_GDDR3@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	tbz	w0, #1, LBB0_2
LBB0_6:
Lloh6:
	adrp	x8, _NV_MEM_TYPE_DDR2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NV_MEM_TYPE_DDR2@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	tbnz	w0, #0, LBB0_3
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_MEM_TYPE_GDDR3,4,2          ; @NV_MEM_TYPE_GDDR3
	.comm	_NV_MEM_TYPE_DDR2,4,2           ; @NV_MEM_TYPE_DDR2
	.comm	_NV_MEM_TYPE_DDR1,4,2           ; @NV_MEM_TYPE_DDR1
.subsections_via_symbols
