	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv40_fb_vram_init
_nv40_fb_vram_init:                     ## @nv40_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	$4632, %esi                     ## imm = 0x1218
	callq	_nv_rd32
                                        ## kill: def $eax killed $eax def $rax
	shrl	$8, %eax
	andl	$3, %eax
	leaq	l_switch.table.nv40_fb_vram_init(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	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
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_MEM_TYPE_SDRAM,4,2          ## @NV_MEM_TYPE_SDRAM
	.comm	_NV_MEM_TYPE_DDR1,4,2           ## @NV_MEM_TYPE_DDR1
	.comm	_NV_MEM_TYPE_GDDR3,4,2          ## @NV_MEM_TYPE_GDDR3
	.comm	_NV_MEM_TYPE_DDR2,4,2           ## @NV_MEM_TYPE_DDR2
	.no_dead_strip	_nv40_fb_vram_init
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.nv40_fb_vram_init
l_switch.table.nv40_fb_vram_init:
	.quad	_NV_MEM_TYPE_SDRAM
	.quad	_NV_MEM_TYPE_DDR1
	.quad	_NV_MEM_TYPE_GDDR3
	.quad	_NV_MEM_TYPE_DDR2

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv40_fb_vram_init
_nv40_fb_vram_init:                     ; @nv40_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	w1, #4632
	bl	_nv_rd32
	ubfx	w8, w0, #8, #2
Lloh0:
	adrp	x9, l_switch.table.nv40_fb_vram_init@PAGE
Lloh1:
	add	x9, x9, l_switch.table.nv40_fb_vram_init@PAGEOFF
	ldr	x8, [x9, w8, uxtw #3]
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	w20, #512
	movk	w20, #16, lsl #16
	orr	w1, w20, #0xc
	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]
	mov	w8, #288
	orr	w1, w20, w8
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nv_rd32
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_MEM_TYPE_SDRAM,4,2          ; @NV_MEM_TYPE_SDRAM
	.comm	_NV_MEM_TYPE_DDR1,4,2           ; @NV_MEM_TYPE_DDR1
	.comm	_NV_MEM_TYPE_GDDR3,4,2          ; @NV_MEM_TYPE_GDDR3
	.comm	_NV_MEM_TYPE_DDR2,4,2           ; @NV_MEM_TYPE_DDR2
	.no_dead_strip	_nv40_fb_vram_init
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.nv40_fb_vram_init
l_switch.table.nv40_fb_vram_init:
	.quad	_NV_MEM_TYPE_SDRAM
	.quad	_NV_MEM_TYPE_DDR1
	.quad	_NV_MEM_TYPE_GDDR3
	.quad	_NV_MEM_TYPE_DDR2

.subsections_via_symbols
