	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv05_devinit_meminit
_nv05_devinit_meminit:                  ## @nv05_devinit_meminit
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_nouveau_bios
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_nv_device
	movl	(%rax), %edi
	callq	_fbmem_init
	testq	%rax, %rax
	je	LBB0_23
## %bb.1:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	$1052672, %esi                  ## imm = 0x101000
	callq	_nv_rd32
	movl	%eax, %ebx
	shrl	$2, %ebx
	andl	$15, %ebx
	movq	%r15, %rdi
	callq	_bmp_mem_init_table
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	%ebx, %ebx
	leaq	(,%rbx,2), %rsi
	addq	%r13, %rsi
	movq	%r15, %rdi
	callq	_nv_ro08
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	1(,%rbx,2), %rsi
	addq	%r13, %rsi
	movq	%r15, %rdi
	callq	_nv_ro08
	movl	%eax, %r12d
	jmp	LBB0_4
LBB0_23:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_error                       ## TAILCALL
LBB0_3:
	movl	%ebx, %eax
	leaq	_nv05_devinit_meminit.default_config_tab(%rip), %rcx
	movl	(%rcx,%rax,8), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rcx,%rax,8), %r12d
LBB0_4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_nv_rdvgas
	orl	$32, %eax
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	%eax, %ecx
	callq	_nv_wrvgas
	movq	_NV04_PFB_BOOT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nv_rd32
	movq	_NV04_PFB_BOOT_0_UMA_ENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_22
## %bb.5:
	movq	_NV04_PFB_DEBUG_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NV04_PFB_DEBUG_0_REFRESH_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_nv_mask
	testq	%r13, %r13
	je	LBB0_7
## %bb.6:
	leaq	16(%r13), %rsi
	movq	%r15, %rdi
	callq	_nv_ro32
	movq	%rax, %rbx
	xorl	%edi, %edi
	callq	_NV04_PFB_SCRAMBLE
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_nv_wr32
	leaq	20(%r13), %rsi
	movq	%r15, %rdi
	callq	_nv_ro32
	movq	%rax, %rbx
	movl	$1, %edi
	callq	_NV04_PFB_SCRAMBLE
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_nv_wr32
	leaq	24(%r13), %rsi
	movq	%r15, %rdi
	callq	_nv_ro32
	movq	%rax, %rbx
	movl	$2, %edi
	callq	_NV04_PFB_SCRAMBLE
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_nv_wr32
	leaq	28(%r13), %rsi
	movq	%r15, %rdi
	callq	_nv_ro32
	movq	%rax, %rbx
	movl	$3, %edi
	callq	_NV04_PFB_SCRAMBLE
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_nv_wr32
	leaq	32(%r13), %rsi
	movq	%r15, %rdi
	callq	_nv_ro32
	movq	%rax, %rbx
	movl	$4, %edi
	callq	_NV04_PFB_SCRAMBLE
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_nv_wr32
	leaq	36(%r13), %rsi
	movq	%r15, %rdi
	callq	_nv_ro32
	movq	%rax, %rbx
	movl	$5, %edi
	callq	_NV04_PFB_SCRAMBLE
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_nv_wr32
	leaq	40(%r13), %rsi
	movq	%r15, %rdi
	callq	_nv_ro32
	movq	%rax, %rbx
	movl	$6, %edi
	callq	_NV04_PFB_SCRAMBLE
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_nv_wr32
	addq	$44, %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_nv_ro32
	movq	%rax, %rbx
	movl	$7, %edi
	callq	_NV04_PFB_SCRAMBLE
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_nv_wr32
LBB0_7:
	movq	_NV04_PFB_BOOT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$63, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_nv_mask
	testb	$-128, %r12b
	je	LBB0_9
## %bb.8:
	movq	_NV04_PFB_CFG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NV04_PFB_CFG0_SCRAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_nv_mask
LBB0_9:
	movl	$3735928559, %r15d              ## imm = 0xDEADBEEF
	movq	_NV04_PFB_CFG1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	andl	$1, %r12d
	shll	$20, %r12d
	movq	%r14, %rdi
	movl	$7340033, %edx                  ## imm = 0x700001
	movl	%r12d, %ecx
	callq	_nv_mask
	movl	(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_nv_mask
	movl	$3735928559, %edx               ## imm = 0xDEADBEEF
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_fbmem_poke
	movl	$3735928559, %edx               ## imm = 0xDEADBEEF
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_fbmem_poke
	movl	$3735928559, %edx               ## imm = 0xDEADBEEF
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_fbmem_poke
	movl	$3735928559, %edx               ## imm = 0xDEADBEEF
	movq	%rbx, %rdi
	movl	$12, %esi
	callq	_fbmem_poke
	movq	%rbx, %rdi
	movl	$12, %esi
	callq	_fbmem_peek
	cmpq	%r15, %rax
	je	LBB0_11
## %bb.10:
	movq	_NV04_PFB_BOOT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NV04_PFB_BOOT_0_RAM_WIDTH_128@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_nv_mask
LBB0_11:
	movq	_NV04_PFB_BOOT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nv_rd32
	movl	%eax, %r12d
	movq	_NV04_PFB_BOOT_0_RAM_AMOUNT@GOTPCREL(%rip), %r13
	andl	(%r13), %r12d
	movq	_NV04_PFB_BOOT_0_RAM_AMOUNT_32MB@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_17
## %bb.12:
	leaq	1(%r15), %r13
	movq	%rbx, %rdi
	movl	$16777216, %esi                 ## imm = 0x1000000
	movq	%r13, %rdx
	callq	_fbmem_readback
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	addq	$2, %r15
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_fbmem_readback
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:
	movq	%r15, %r13
LBB0_15:
	movq	_NV04_PFB_BOOT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NV04_PFB_BOOT_0_RAM_AMOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NV04_PFB_BOOT_0_RAM_AMOUNT_16MB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_nv_mask
	movq	%r13, %r15
LBB0_16:
	movq	_NV04_PFB_BOOT_0_RAM_AMOUNT@GOTPCREL(%rip), %r13
LBB0_17:
	movq	_NV04_PFB_BOOT_0_RAM_AMOUNT_16MB@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_20
## %bb.18:
	incq	%r15
	movq	%rbx, %rdi
	movl	$8388608, %esi                  ## imm = 0x800000
	movq	%r15, %rdx
	callq	_fbmem_readback
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:
	movq	_NV04_PFB_BOOT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	_NV04_PFB_BOOT_0_RAM_AMOUNT_8MB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_nv_mask
LBB0_20:
	incq	%r15
	movq	%rbx, %rdi
	movl	$4194304, %esi                  ## imm = 0x400000
	movq	%r15, %rdx
	callq	_fbmem_readback
	testl	%eax, %eax
	jne	LBB0_22
## %bb.21:
	movq	_NV04_PFB_BOOT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	_NV04_PFB_BOOT_0_RAM_AMOUNT_4MB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_nv_mask
LBB0_22:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_nv_rdvgas
	andl	$-33, %eax
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	%eax, %ecx
	callq	_nv_wrvgas
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fbmem_fini                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @nv05_devinit_meminit.default_config_tab
_nv05_devinit_meminit.default_config_tab:
	.long	36                              ## 0x24
	.long	0                               ## 0x0
	.long	40                              ## 0x28
	.long	0                               ## 0x0
	.long	36                              ## 0x24
	.long	1                               ## 0x1
	.long	31                              ## 0x1f
	.long	0                               ## 0x0
	.long	15                              ## 0xf
	.long	0                               ## 0x0
	.long	23                              ## 0x17
	.long	0                               ## 0x0
	.long	6                               ## 0x6
	.long	0                               ## 0x0
	.space	8

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to map fb\n"

	.comm	_NV04_PFB_BOOT_0,4,2            ## @NV04_PFB_BOOT_0
	.comm	_NV04_PFB_BOOT_0_UMA_ENABLE,4,2 ## @NV04_PFB_BOOT_0_UMA_ENABLE
	.comm	_NV04_PFB_DEBUG_0,4,2           ## @NV04_PFB_DEBUG_0
	.comm	_NV04_PFB_DEBUG_0_REFRESH_OFF,4,2 ## @NV04_PFB_DEBUG_0_REFRESH_OFF
	.comm	_NV04_PFB_CFG0,4,2              ## @NV04_PFB_CFG0
	.comm	_NV04_PFB_CFG0_SCRAMBLE,4,2     ## @NV04_PFB_CFG0_SCRAMBLE
	.comm	_NV04_PFB_CFG1,4,2              ## @NV04_PFB_CFG1
	.comm	_NV04_PFB_BOOT_0_RAM_WIDTH_128,4,2 ## @NV04_PFB_BOOT_0_RAM_WIDTH_128
	.comm	_NV04_PFB_BOOT_0_RAM_AMOUNT,4,2 ## @NV04_PFB_BOOT_0_RAM_AMOUNT
	.comm	_NV04_PFB_BOOT_0_RAM_AMOUNT_32MB,4,2 ## @NV04_PFB_BOOT_0_RAM_AMOUNT_32MB
	.comm	_NV04_PFB_BOOT_0_RAM_AMOUNT_16MB,4,2 ## @NV04_PFB_BOOT_0_RAM_AMOUNT_16MB
	.comm	_NV04_PFB_BOOT_0_RAM_AMOUNT_8MB,4,2 ## @NV04_PFB_BOOT_0_RAM_AMOUNT_8MB
	.comm	_NV04_PFB_BOOT_0_RAM_AMOUNT_4MB,4,2 ## @NV04_PFB_BOOT_0_RAM_AMOUNT_4MB
	.no_dead_strip	_nv05_devinit_meminit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv05_devinit_meminit
_nv05_devinit_meminit:                  ; @nv05_devinit_meminit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_nouveau_bios
	mov	x21, x0
	mov	x0, x19
	bl	_nv_device
	ldr	w0, [x0]
	bl	_fbmem_init
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #4096
	movk	w1, #16, lsl #16
	bl	_nv_rd32
	ubfx	w22, w0, #2, #4
	mov	x0, x21
	bl	_bmp_mem_init_table
	mov	x24, x0
	cbz	x0, LBB0_4
; %bb.2:
	lsl	w8, w22, #1
	add	x22, x24, x8
	mov	x0, x21
	mov	x1, x22
	bl	_nv_ro08
	mov	x23, x0
	add	x1, x22, #1
	mov	x0, x21
	bl	_nv_ro08
	mov	x22, x0
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_nv_error
LBB0_4:
Lloh2:
	adrp	x8, _nv05_devinit_meminit.default_config_tab@PAGE
Lloh3:
	add	x8, x8, _nv05_devinit_meminit.default_config_tab@PAGEOFF
	add	x8, x8, w22, uxtw #3
	ldp	w23, w22, [x8]
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_nv_rdvgas
	orr	w3, w0, #0x20
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_nv_wrvgas
Lloh4:
	adrp	x26, _NV04_PFB_BOOT_0@GOTPAGE
Lloh5:
	ldr	x26, [x26, _NV04_PFB_BOOT_0@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_nv_rd32
Lloh6:
	adrp	x8, _NV04_PFB_BOOT_0_UMA_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NV04_PFB_BOOT_0_UMA_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_22
; %bb.6:
Lloh9:
	adrp	x8, _NV04_PFB_DEBUG_0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NV04_PFB_DEBUG_0@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _NV04_PFB_DEBUG_0_REFRESH_OFF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NV04_PFB_DEBUG_0_REFRESH_OFF@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_nv_mask
	cbz	x24, LBB0_8
; %bb.7:
	add	x1, x24, #16
	mov	x0, x21
	bl	_nv_ro32
	mov	x25, x0
	mov	w0, #0
	bl	_NV04_PFB_SCRAMBLE
	mov	x1, x0
	mov	x0, x19
	mov	x2, x25
	bl	_nv_wr32
	add	x1, x24, #20
	mov	x0, x21
	bl	_nv_ro32
	mov	x25, x0
	mov	w0, #1
	bl	_NV04_PFB_SCRAMBLE
	mov	x1, x0
	mov	x0, x19
	mov	x2, x25
	bl	_nv_wr32
	add	x1, x24, #24
	mov	x0, x21
	bl	_nv_ro32
	mov	x25, x0
	mov	w0, #2
	bl	_NV04_PFB_SCRAMBLE
	mov	x1, x0
	mov	x0, x19
	mov	x2, x25
	bl	_nv_wr32
	add	x1, x24, #28
	mov	x0, x21
	bl	_nv_ro32
	mov	x25, x0
	mov	w0, #3
	bl	_NV04_PFB_SCRAMBLE
	mov	x1, x0
	mov	x0, x19
	mov	x2, x25
	bl	_nv_wr32
	add	x1, x24, #32
	mov	x0, x21
	bl	_nv_ro32
	mov	x25, x0
	mov	w0, #4
	bl	_NV04_PFB_SCRAMBLE
	mov	x1, x0
	mov	x0, x19
	mov	x2, x25
	bl	_nv_wr32
	add	x1, x24, #36
	mov	x0, x21
	bl	_nv_ro32
	mov	x25, x0
	mov	w0, #5
	bl	_NV04_PFB_SCRAMBLE
	mov	x1, x0
	mov	x0, x19
	mov	x2, x25
	bl	_nv_wr32
	add	x1, x24, #40
	mov	x0, x21
	bl	_nv_ro32
	mov	x25, x0
	mov	w0, #6
	bl	_NV04_PFB_SCRAMBLE
	mov	x1, x0
	mov	x0, x19
	mov	x2, x25
	bl	_nv_wr32
	add	x1, x24, #44
	mov	x0, x21
	bl	_nv_ro32
	mov	x21, x0
	mov	w0, #7
	bl	_NV04_PFB_SCRAMBLE
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_nv_wr32
LBB0_8:
	ldr	w1, [x26]
	mov	x0, x19
	mov	w2, #63
	mov	x3, x23
	bl	_nv_mask
	tbz	w22, #7, LBB0_10
; %bb.9:
Lloh15:
	adrp	x8, _NV04_PFB_CFG0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NV04_PFB_CFG0@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _NV04_PFB_CFG0_SCRAMBLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NV04_PFB_CFG0_SCRAMBLE@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_nv_mask
LBB0_10:
	mov	w21, #48879
	movk	w21, #57005, lsl #16
Lloh21:
	adrp	x23, _NV04_PFB_CFG1@GOTPAGE
Lloh22:
	ldr	x23, [x23, _NV04_PFB_CFG1@GOTPAGEOFF]
	ldr	w1, [x23]
	ubfiz	w3, w22, #20, #1
	mov	x0, x19
	mov	w2, #1
	movk	w2, #112, lsl #16
	bl	_nv_mask
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1
	bl	_nv_mask
	mov	x0, x20
	mov	w1, #0
	mov	w2, #48879
	movk	w2, #57005, lsl #16
	bl	_fbmem_poke
	mov	x0, x20
	mov	w1, #4
	mov	w2, #48879
	movk	w2, #57005, lsl #16
	bl	_fbmem_poke
	mov	x0, x20
	mov	w1, #8
	mov	w2, #48879
	movk	w2, #57005, lsl #16
	bl	_fbmem_poke
	mov	x0, x20
	mov	w1, #12
	mov	w2, #48879
	movk	w2, #57005, lsl #16
	bl	_fbmem_poke
	mov	x0, x20
	mov	w1, #12
	bl	_fbmem_peek
	cmp	x0, x21
	b.eq	LBB0_12
; %bb.11:
	ldr	w1, [x26]
Lloh23:
	adrp	x8, _NV04_PFB_BOOT_0_RAM_WIDTH_128@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NV04_PFB_BOOT_0_RAM_WIDTH_128@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_nv_mask
LBB0_12:
	ldr	w1, [x26]
	mov	x0, x19
	bl	_nv_rd32
Lloh26:
	adrp	x23, _NV04_PFB_BOOT_0_RAM_AMOUNT@GOTPAGE
Lloh27:
	ldr	x23, [x23, _NV04_PFB_BOOT_0_RAM_AMOUNT@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w24, w8, w0
Lloh28:
	adrp	x8, _NV04_PFB_BOOT_0_RAM_AMOUNT_32MB@GOTPAGE
Lloh29:
	ldr	x8, [x8, _NV04_PFB_BOOT_0_RAM_AMOUNT_32MB@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x25, _NV04_PFB_BOOT_0_RAM_AMOUNT_16MB@GOTPAGE
Lloh32:
	ldr	x25, [x25, _NV04_PFB_BOOT_0_RAM_AMOUNT_16MB@GOTPAGEOFF]
	cmp	w24, w8
	b.ne	LBB0_17
; %bb.13:
	add	x22, x21, #1
	mov	x0, x20
	mov	w1, #16777216
	mov	x2, x22
	bl	_fbmem_readback
	cbz	w0, LBB0_15
; %bb.14:
	add	x21, x21, #2
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_fbmem_readback
	cbnz	w0, LBB0_17
	b	LBB0_16
LBB0_15:
	mov	x21, x22
LBB0_16:
	ldr	w1, [x26]
	ldr	w2, [x23]
	ldr	w3, [x25]
	mov	x0, x19
	bl	_nv_mask
LBB0_17:
	ldr	w8, [x25]
	cmp	w24, w8
	b.ne	LBB0_20
; %bb.18:
	add	x21, x21, #1
	mov	x0, x20
	mov	w1, #8388608
	mov	x2, x21
	bl	_fbmem_readback
	cbnz	w0, LBB0_20
; %bb.19:
	ldr	w1, [x26]
	ldr	w2, [x23]
Lloh33:
	adrp	x8, _NV04_PFB_BOOT_0_RAM_AMOUNT_8MB@GOTPAGE
Lloh34:
	ldr	x8, [x8, _NV04_PFB_BOOT_0_RAM_AMOUNT_8MB@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_nv_mask
LBB0_20:
	add	x2, x21, #1
	mov	x0, x20
	mov	w1, #4194304
	bl	_fbmem_readback
	cbnz	w0, LBB0_22
; %bb.21:
	ldr	w1, [x26]
	ldr	w2, [x23]
Lloh36:
	adrp	x8, _NV04_PFB_BOOT_0_RAM_AMOUNT_4MB@GOTPAGE
Lloh37:
	ldr	x8, [x8, _NV04_PFB_BOOT_0_RAM_AMOUNT_4MB@GOTPAGEOFF]
Lloh38:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_nv_mask
LBB0_22:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_nv_rdvgas
	and	w3, w0, #0xffffffdf
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_nv_wrvgas
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_fbmem_fini
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @nv05_devinit_meminit.default_config_tab
_nv05_devinit_meminit.default_config_tab:
	.long	36                              ; 0x24
	.long	0                               ; 0x0
	.long	40                              ; 0x28
	.long	0                               ; 0x0
	.long	36                              ; 0x24
	.long	1                               ; 0x1
	.long	31                              ; 0x1f
	.long	0                               ; 0x0
	.long	15                              ; 0xf
	.long	0                               ; 0x0
	.long	23                              ; 0x17
	.long	0                               ; 0x0
	.long	6                               ; 0x6
	.long	0                               ; 0x0
	.space	8

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to map fb\n"

	.comm	_NV04_PFB_BOOT_0,4,2            ; @NV04_PFB_BOOT_0
	.comm	_NV04_PFB_BOOT_0_UMA_ENABLE,4,2 ; @NV04_PFB_BOOT_0_UMA_ENABLE
	.comm	_NV04_PFB_DEBUG_0,4,2           ; @NV04_PFB_DEBUG_0
	.comm	_NV04_PFB_DEBUG_0_REFRESH_OFF,4,2 ; @NV04_PFB_DEBUG_0_REFRESH_OFF
	.comm	_NV04_PFB_CFG0,4,2              ; @NV04_PFB_CFG0
	.comm	_NV04_PFB_CFG0_SCRAMBLE,4,2     ; @NV04_PFB_CFG0_SCRAMBLE
	.comm	_NV04_PFB_CFG1,4,2              ; @NV04_PFB_CFG1
	.comm	_NV04_PFB_BOOT_0_RAM_WIDTH_128,4,2 ; @NV04_PFB_BOOT_0_RAM_WIDTH_128
	.comm	_NV04_PFB_BOOT_0_RAM_AMOUNT,4,2 ; @NV04_PFB_BOOT_0_RAM_AMOUNT
	.comm	_NV04_PFB_BOOT_0_RAM_AMOUNT_32MB,4,2 ; @NV04_PFB_BOOT_0_RAM_AMOUNT_32MB
	.comm	_NV04_PFB_BOOT_0_RAM_AMOUNT_16MB,4,2 ; @NV04_PFB_BOOT_0_RAM_AMOUNT_16MB
	.comm	_NV04_PFB_BOOT_0_RAM_AMOUNT_8MB,4,2 ; @NV04_PFB_BOOT_0_RAM_AMOUNT_8MB
	.comm	_NV04_PFB_BOOT_0_RAM_AMOUNT_4MB,4,2 ; @NV04_PFB_BOOT_0_RAM_AMOUNT_4MB
	.no_dead_strip	_nv05_devinit_meminit
.subsections_via_symbols
