	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf100_ram_calc                 ## -- Begin function gf100_ram_calc
	.p2align	4, 0x90
_gf100_ram_calc:                        ## @gf100_ram_calc
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	callq	_gf100_ram
	movq	%rax, %r13
	movq	8(%rax), %r12
	movq	(%r12), %rax
	movq	(%rax), %rbx
	movq	8(%rax), %r14
	movslq	%r15d, %rax
	imulq	$274877907, %rax, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$38, %rsi
	addl	%eax, %esi
	leaq	-76(%rbp), %rcx
	leaq	-100(%rbp), %r9
	leaq	-112(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-48(%rbp), %rdx
	leaq	-72(%rbp), %r8
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_nvbios_rammapEm
	movl	%eax, -80(%rbp)
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$16, -48(%rbp)
	jne	LBB0_3
## %bb.2:
	cmpl	$13, -76(%rbp)
	jle	LBB0_3
## %bb.5:
	movq	%r12, %rdi
	callq	_nvbios_ramcfg_index
	cmpl	-72(%rbp), %eax
	jge	LBB0_6
## %bb.7:
	movl	-76(%rbp), %edx
	addl	-80(%rbp), %edx
	movl	-100(%rbp), %ecx
	imull	%ecx, %eax
	addl	%edx, %eax
	movl	%eax, -104(%rbp)
	je	LBB0_10
## %bb.8:
	cmpl	$16, -48(%rbp)
	jne	LBB0_10
## %bb.9:
	cmpl	$13, %ecx
	jle	LBB0_10
## %bb.11:
	incl	%eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nvbios_rd08
	cmpl	$255, %eax
	jne	LBB0_12
## %bb.16:
	movl	$0, -88(%rbp)
	jmp	LBB0_17
LBB0_3:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movq	%r12, %rdi
	callq	_nvkm_error
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_46:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	-84(%rbp), %rcx
	leaq	-48(%rbp), %rdx
	leaq	-72(%rbp), %r8
	leaq	-116(%rbp), %r9
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nvbios_timingEe
	movl	%eax, -88(%rbp)
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	cmpl	$16, -48(%rbp)
	jne	LBB0_15
## %bb.14:
	cmpl	$24, -84(%rbp)
	jle	LBB0_15
LBB0_17:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	leaq	16(%r13), %r15
	movq	8(%r13), %rsi
	movq	%r15, %rdi
	callq	_ram_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_46
## %bb.18:
	movq	%r15, %rdi
	movl	$1274864, %esi                  ## imm = 0x1373F0
	callq	_ram_rd32
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$1274624, %esi                  ## imm = 0x137300
	callq	_ram_rd32
	testl	$256, %eax                      ## imm = 0x100
	jne	LBB0_19
## %bb.20:
	movq	_nv_clk_src_sppll0@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_15:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_4
LBB0_19:
	movq	_nv_clk_src_sppll1@GOTPCREL(%rip), %rax
LBB0_21:
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nvkm_clk_read
	movl	%eax, %ebx
	addl	%eax, %ebx
	movl	%ebx, %eax
	cltd
	idivl	%r15d
	movl	%eax, %edi
	movl	$65, %esi
	callq	_min
	movl	%eax, %edi
	movl	$2, %esi
	callq	_max
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	$1274720, %esi                  ## imm = 0x137360
	movl	$2, %edx
	xorl	%ecx, %ecx
	callq	_ram_mask
	movq	%r14, %rdi
	movl	$1253376, %esi                  ## imm = 0x132000
	callq	_ram_rd32
	testb	$2, %al
	je	LBB0_23
## %bb.22:
	movq	%r14, %rdi
	movl	$1253376, %esi                  ## imm = 0x132000
	callq	_ram_nuke
	movq	%r14, %rdi
	movl	$1253376, %esi                  ## imm = 0x132000
	movl	$2, %edx
	movl	$2, %ecx
	callq	_ram_mask
	movq	%r14, %rdi
	movl	$1253376, %esi                  ## imm = 0x132000
	movl	$2, %edx
	xorl	%ecx, %ecx
	callq	_ram_mask
LBB0_23:
	cmpl	%r15d, -44(%rbp)                ## 4-byte Folded Reload
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_25
## %bb.24:
	movq	%r14, %rdi
	movl	$1113632, %esi                  ## imm = 0x10FE20
	callq	_ram_nuke
	movq	%r14, %rdi
	movl	$1113632, %esi                  ## imm = 0x10FE20
	movl	$2, %edx
	movl	$2, %ecx
	callq	_ram_mask
	movq	%r14, %rdi
	movl	$1113632, %esi                  ## imm = 0x10FE20
	movl	$2, %edx
	xorl	%ecx, %ecx
	callq	_ram_mask
LBB0_25:
	movq	%r14, %rdi
	movl	$1253632, %esi                  ## imm = 0x132100
	movl	$1, %edx
	callq	_ram_wr32
	cmpl	%r15d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_32
## %bb.26:
	movl	%ebx, %eax
	andl	$2, %eax
	jne	LBB0_32
## %bb.27:
	movq	%r13, %rsi
	addq	$4, %rsi
	movl	(%r13), %edx
	leaq	-56(%rbp), %rax
	movq	%rax, (%rsp)
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %rcx
	leaq	-60(%rbp), %r9
	movq	%r12, %rdi
	xorl	%r8d, %r8d
	callq	_gt215_pll_calc
	testl	%eax, %eax
	jle	LBB0_28
## %bb.29:
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	$1113632, %esi                  ## imm = 0x10FE20
	movl	$536936448, %edx                ## imm = 0x20010000
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1274656, %esi                  ## imm = 0x137320
	movl	$3, %edx
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1274672, %esi                  ## imm = 0x137330
	movl	$-2128609274, %edx              ## imm = 0x81200006
	callq	_ram_wr32
	movl	-56(%rbp), %eax
	shll	$16, %eax
	movl	-64(%rbp), %edx
	shll	$8, %edx
	orl	%eax, %edx
	orl	-60(%rbp), %edx
	movq	%r14, %rdi
	movl	$1113636, %esi                  ## imm = 0x10FE24
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1113632, %esi                  ## imm = 0x10FE20
	movl	$536936449, %edx                ## imm = 0x20010001
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1274768, %esi                  ## imm = 0x137390
	movl	$131072, %edx                   ## imm = 0x20000
	movl	$131072, %ecx                   ## imm = 0x20000
	movl	$64000, %r8d                    ## imm = 0xFA00
	callq	_ram_wait
	leaq	-56(%rbp), %rax
	movq	%rax, (%rsp)
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %rcx
	leaq	-60(%rbp), %r9
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	xorl	%r8d, %r8d
	callq	_gt215_pll_calc
	testl	%eax, %eax
	jle	LBB0_30
## %bb.31:
	movq	%r14, %rdi
	movl	$1113632, %esi                  ## imm = 0x10FE20
	movl	$536936453, %edx                ## imm = 0x20010005
	callq	_ram_wr32
	movl	-56(%rbp), %eax
	shll	$16, %eax
	movl	-64(%rbp), %edx
	shll	$8, %edx
	orl	%eax, %edx
	orl	-60(%rbp), %edx
	movq	%r14, %rdi
	movl	$1253380, %esi                  ## imm = 0x132004
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1253376, %esi                  ## imm = 0x132000
	movl	$402718977, %edx                ## imm = 0x18010101
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1274768, %esi                  ## imm = 0x137390
	movl	$2, %edx
	movl	$2, %ecx
	movl	$64000, %r8d                    ## imm = 0xFA00
	callq	_ram_wait
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_34
LBB0_32:
	cmpl	%r15d, -44(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_34
## %bb.33:
	movq	%r14, %rdi
	movl	$1274624, %esi                  ## imm = 0x137300
	movl	$3, %edx
	callq	_ram_wr32
LBB0_34:
	movq	%r14, %rdi
	testb	$2, %bl
	jne	LBB0_36
## %bb.35:
	movl	$1112836, %esi                  ## imm = 0x10FB04
	callq	_ram_nuke
	movq	%r14, %rdi
	movl	$1112836, %esi                  ## imm = 0x10FB04
	movl	$65535, %edx                    ## imm = 0xFFFF
	xorl	%ecx, %ecx
	callq	_ram_mask
	movq	%r14, %rdi
	movl	$1112840, %esi                  ## imm = 0x10FB08
	callq	_ram_nuke
	movq	%r14, %rdi
	movl	$1112840, %esi                  ## imm = 0x10FB08
	movl	$65535, %edx                    ## imm = 0xFFFF
	xorl	%ecx, %ecx
	callq	_ram_mask
	movq	%r14, %rdi
	movl	$1112456, %esi                  ## imm = 0x10F988
	movl	$537198336, %edx                ## imm = 0x2004FF00
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1112460, %esi                  ## imm = 0x10F98C
	movl	$4177984, %edx                  ## imm = 0x3FC040
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1112464, %esi                  ## imm = 0x10F990
	movl	$536944641, %edx                ## imm = 0x20012001
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1112472, %esi                  ## imm = 0x10F998
	movl	$72192, %edx                    ## imm = 0x11A00
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1300724, %esi                  ## imm = 0x13D8F4
	xorl	%edx, %edx
	jmp	LBB0_37
LBB0_36:
	movl	$1112456, %esi                  ## imm = 0x10F988
	movl	$536936448, %edx                ## imm = 0x20010000
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1112460, %esi                  ## imm = 0x10F98C
	xorl	%edx, %edx
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1112464, %esi                  ## imm = 0x10F990
	movl	$536944641, %edx                ## imm = 0x20012001
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1112472, %esi                  ## imm = 0x10F998
	movl	$68096, %edx                    ## imm = 0x10A00
LBB0_37:
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1051404, %esi                  ## imm = 0x100B0C
	movl	$524306, %edx                   ## imm = 0x80012
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$6361600, %esi                  ## imm = 0x611200
	movl	$13056, %edx                    ## imm = 0x3300
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110528, %esi                  ## imm = 0x10F200
	movl	$2048, %edx                     ## imm = 0x800
	xorl	%ecx, %ecx
	callq	_ram_mask
	movq	%r14, %rdi
	movl	$1110544, %esi                  ## imm = 0x10F210
	xorl	%edx, %edx
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_ram_nsec
	cmpl	%r15d, -44(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_39
## %bb.38:
	movq	%r14, %rdi
	movl	$790529, %esi                   ## imm = 0xC1001
	callq	_gf100_ram_train
LBB0_39:
	movq	%r14, %rdi
	movl	$1110800, %esi                  ## imm = 0x10F310
	movl	$1, %edx
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_ram_nsec
	movq	%r14, %rdi
	movl	$1110160, %esi                  ## imm = 0x10F090
	movl	$97, %edx
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110160, %esi                  ## imm = 0x10F090
	movl	$-1073741697, %edx              ## imm = 0xC000007F
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_ram_nsec
	movq	%r14, %rdi
	testb	$2, %bl
	jne	LBB0_41
## %bb.40:
	movl	$1112100, %esi                  ## imm = 0x10F824
	movl	$32724, %edx                    ## imm = 0x7FD4
	jmp	LBB0_42
LBB0_41:
	movl	$1274860, %esi                  ## imm = 0x1373EC
	movl	$132100, %edx                   ## imm = 0x20404
LBB0_42:
	callq	_ram_wr32
	cmpl	%r15d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_44
## %bb.43:
	movq	%r14, %rdi
	movl	$1112064, %esi                  ## imm = 0x10F800
	movl	$6144, %edx                     ## imm = 0x1800
	callq	_ram_wr32
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	$1300724, %esi                  ## imm = 0x13D8F4
	xorl	%edx, %edx
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1274860, %esi                  ## imm = 0x1373EC
	movl	$132100, %edx                   ## imm = 0x20404
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1274864, %esi                  ## imm = 0x1373F0
	movl	$3, %edx
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1112112, %esi                  ## imm = 0x10F830
	movl	$1081081872, %edx               ## imm = 0x40700010
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1112112, %esi                  ## imm = 0x10F830
	movl	$1078984720, %edx               ## imm = 0x40500010
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1300724, %esi                  ## imm = 0x13D8F4
	xorl	%edx, %edx
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1274872, %esi                  ## imm = 0x1373F8
	xorl	%edx, %edx
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1253632, %esi                  ## imm = 0x132100
	movl	$257, %edx                      ## imm = 0x101
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1274640, %esi                  ## imm = 0x137310
	movl	$-1994385898, %edx              ## imm = 0x89201616
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110096, %esi                  ## imm = 0x10F050
	movl	$-16777072, %edx                ## imm = 0xFF000090
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1274860, %esi                  ## imm = 0x1373EC
	movl	$197636, %edx                   ## imm = 0x30404
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1274864, %esi                  ## imm = 0x1373F0
	movl	$2, %edx
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1253632, %esi                  ## imm = 0x132100
	movl	$1, %edx
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1274872, %esi                  ## imm = 0x1373F8
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_ram_nsec
	movq	%r14, %rdi
	movl	$1112072, %esi                  ## imm = 0x10F808
	movl	$2057961552, %edx               ## imm = 0x7AAA0050
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1112112, %esi                  ## imm = 0x10F830
	movl	$5242896, %edx                  ## imm = 0x500010
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110528, %esi                  ## imm = 0x10F200
	movl	$13504512, %edx                 ## imm = 0xCE1000
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110160, %esi                  ## imm = 0x10F090
	movl	$1073741950, %edx               ## imm = 0x4000007E
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_ram_nsec
	movq	%r14, %rdi
	movl	$1110804, %esi                  ## imm = 0x10F314
	movl	$1, %edx
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110544, %esi                  ## imm = 0x10F210
	movl	$-2147483648, %edx              ## imm = 0x80000000
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110840, %esi                  ## imm = 0x10F338
	movl	$3146240, %edx                  ## imm = 0x300200
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110784, %esi                  ## imm = 0x10F300
	movl	$2125, %edx                     ## imm = 0x84D
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_ram_nsec
	movq	%r14, %rdi
	movl	$1110672, %esi                  ## imm = 0x10F290
	movl	$187971621, %edx                ## imm = 0xB343825
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110676, %esi                  ## imm = 0x10F294
	movl	$881001102, %edx                ## imm = 0x3483028E
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110680, %esi                  ## imm = 0x10F298
	movl	$1141638656, %edx               ## imm = 0x440C0600
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110684, %esi                  ## imm = 0x10F29C
	movl	$8524, %edx                     ## imm = 0x214C
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110688, %esi                  ## imm = 0x10F2A0
	movl	$1122107497, %edx               ## imm = 0x42E20069
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110528, %esi                  ## imm = 0x10F200
	movl	$13500416, %edx                 ## imm = 0xCE0000
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1111572, %esi                  ## imm = 0x10F614
	movl	$1610894967, %edx               ## imm = 0x60044E77
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1111568, %esi                  ## imm = 0x10F610
	movl	$1610894967, %edx               ## imm = 0x60044E77
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110848, %esi                  ## imm = 0x10F340
	movl	$5242880, %edx                  ## imm = 0x500000
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_ram_nsec
	movq	%r14, %rdi
	movl	$1110852, %esi                  ## imm = 0x10F344
	movl	$6292008, %edx                  ## imm = 0x600228
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_ram_nsec
	movq	%r14, %rdi
	movl	$1110856, %esi                  ## imm = 0x10F348
	movl	$7340032, %edx                  ## imm = 0x700000
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1300724, %esi                  ## imm = 0x13D8F4
	xorl	%edx, %edx
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$6406464, %esi                  ## imm = 0x61C140
	movl	$161742848, %edx                ## imm = 0x9A40000
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$-2146562040, %esi              ## imm = 0x800E1008
	callq	_gf100_ram_train
	movq	%r14, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_ram_nsec
	movq	%r14, %rdi
	movl	$1112064, %esi                  ## imm = 0x10F800
	movl	$6148, %edx                     ## imm = 0x1804
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1300724, %esi                  ## imm = 0x13D8F4
	xorl	%edx, %edx
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1051404, %esi                  ## imm = 0x100B0C
	movl	$524328, %edx                   ## imm = 0x80028
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$6361600, %esi                  ## imm = 0x611200
	movl	$13104, %edx                    ## imm = 0x3330
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$100000, %esi                   ## imm = 0x186A0
	callq	_ram_nsec
	movq	%r14, %rdi
	movl	$1112496, %esi                  ## imm = 0x10F9B0
	movl	$87113537, %edx                 ## imm = 0x5313F41
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1112500, %esi                  ## imm = 0x10F9B4
	movl	$12112, %edx                    ## imm = 0x2F50
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$17567745, %esi                 ## imm = 0x10C1001
	callq	_gf100_ram_train
	movq	%r14, %rdi
	movl	$1110528, %esi                  ## imm = 0x10F200
	movl	$2048, %edx                     ## imm = 0x800
	movl	$2048, %ecx                     ## imm = 0x800
	jmp	LBB0_45
LBB0_44:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	$1112072, %esi                  ## imm = 0x10F808
	movl	$524288, %edx                   ## imm = 0x80000
	xorl	%ecx, %ecx
	callq	_ram_mask
	movq	%r14, %rdi
	movl	$1110528, %esi                  ## imm = 0x10F200
	movl	$32768, %edx                    ## imm = 0x8000
	movl	$32768, %ecx                    ## imm = 0x8000
	callq	_ram_mask
	movq	%r14, %rdi
	movl	$1112112, %esi                  ## imm = 0x10F830
	movl	$1095761936, %edx               ## imm = 0x41500010
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1112112, %esi                  ## imm = 0x10F830
	movl	$16777216, %edx                 ## imm = 0x1000000
	xorl	%ecx, %ecx
	callq	_ram_mask
	movq	%r14, %rdi
	movl	$1253632, %esi                  ## imm = 0x132100
	movl	$256, %edx                      ## imm = 0x100
	movl	$256, %ecx                      ## imm = 0x100
	callq	_ram_mask
	movq	%r14, %rdi
	movl	$1110096, %esi                  ## imm = 0x10F050
	movl	$-16777072, %edx                ## imm = 0xFF000090
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1274860, %esi                  ## imm = 0x1373EC
	movl	$134927, %edx                   ## imm = 0x20F0F
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1274864, %esi                  ## imm = 0x1373F0
	movl	$3, %edx
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1274640, %esi                  ## imm = 0x137310
	movl	$-2128603626, %edx              ## imm = 0x81201616
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1253632, %esi                  ## imm = 0x132100
	movl	$1, %edx
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1112112, %esi                  ## imm = 0x10F830
	movl	$3145751, %edx                  ## imm = 0x300017
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1274864, %esi                  ## imm = 0x1373F0
	movl	$1, %edx
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1112100, %esi                  ## imm = 0x10F824
	movl	$32375, %edx                    ## imm = 0x7E77
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1253376, %esi                  ## imm = 0x132000
	movl	$402849793, %edx                ## imm = 0x18030001
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110160, %esi                  ## imm = 0x10F090
	movl	$1073741950, %edx               ## imm = 0x4000007E
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_ram_nsec
	movq	%r14, %rdi
	movl	$1110804, %esi                  ## imm = 0x10F314
	movl	$1, %edx
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110544, %esi                  ## imm = 0x10F210
	movl	$-2147483648, %edx              ## imm = 0x80000000
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110840, %esi                  ## imm = 0x10F338
	movl	$3146272, %edx                  ## imm = 0x300220
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110784, %esi                  ## imm = 0x10F300
	movl	$285, %edx                      ## imm = 0x11D
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_ram_nsec
	movq	%r14, %rdi
	movl	$1110672, %esi                  ## imm = 0x10F290
	movl	$33948933, %edx                 ## imm = 0x2060505
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110676, %esi                  ## imm = 0x10F294
	movl	$874545800, %edx                ## imm = 0x34208288
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110680, %esi                  ## imm = 0x10F298
	movl	$1141179409, %edx               ## imm = 0x44050411
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110684, %esi                  ## imm = 0x10F29C
	movl	$4428, %edx                     ## imm = 0x114C
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110688, %esi                  ## imm = 0x10F2A0
	movl	$1122041961, %edx               ## imm = 0x42E10069
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1111572, %esi                  ## imm = 0x10F614
	movl	$1074024311, %edx               ## imm = 0x40044F77
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1111568, %esi                  ## imm = 0x10F610
	movl	$1074024311, %edx               ## imm = 0x40044F77
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110852, %esi                  ## imm = 0x10F344
	movl	$6291465, %edx                  ## imm = 0x600009
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_ram_nsec
	movq	%r14, %rdi
	movl	$1110856, %esi                  ## imm = 0x10F348
	movl	$7340040, %edx                  ## imm = 0x700008
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$6406464, %esi                  ## imm = 0x61C140
	movl	$421789696, %edx                ## imm = 0x19240000
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1112112, %esi                  ## imm = 0x10F830
	movl	$3145751, %edx                  ## imm = 0x300017
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$-2147348479, %esi              ## imm = 0x80021001
	callq	_gf100_ram_train
	movq	%r14, %rdi
	movl	$-2146955263, %esi              ## imm = 0x80081001
	callq	_gf100_ram_train
	movq	%r14, %rdi
	movl	$1110848, %esi                  ## imm = 0x10F340
	movl	$5242884, %edx                  ## imm = 0x500004
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_ram_nsec
	movq	%r14, %rdi
	movl	$1112112, %esi                  ## imm = 0x10F830
	movl	$19922967, %edx                 ## imm = 0x1300017
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1112112, %esi                  ## imm = 0x10F830
	movl	$3145751, %edx                  ## imm = 0x300017
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1051404, %esi                  ## imm = 0x100B0C
	movl	$524328, %edx                   ## imm = 0x80028
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$6361600, %esi                  ## imm = 0x611200
	movl	$13104, %edx                    ## imm = 0x3330
	callq	_ram_wr32
	movq	%r14, %rdi
	movl	$1110528, %esi                  ## imm = 0x10F200
	movl	$2048, %edx                     ## imm = 0x800
	movl	$2048, %ecx                     ## imm = 0x800
	callq	_ram_mask
	movq	%r14, %rdi
	movl	$1253376, %esi                  ## imm = 0x132000
	movl	$1, %edx
	xorl	%ecx, %ecx
LBB0_45:
	callq	_ram_mask
	jmp	LBB0_46
LBB0_28:
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_nvkm_error
	movq	_ERANGE@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	testl	%r14d, %r14d
	cmovnel	%r14d, %ebx
	jmp	LBB0_46
LBB0_30:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_nvkm_error
	movq	_ERANGE@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	testl	%r15d, %r15d
	cmovnel	%r15d, %ebx
	jmp	LBB0_46
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid/missing rammap entry\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"invalid ramcfg strap\n"

L_.str.2:                               ## @.str.2
	.asciz	"invalid/missing ramcfg entry\n"

L_.str.3:                               ## @.str.3
	.asciz	"invalid/missing timing entry\n"

	.comm	_nv_clk_src_sppll0,4,2          ## @nv_clk_src_sppll0
	.comm	_nv_clk_src_sppll1,4,2          ## @nv_clk_src_sppll1
L_.str.4:                               ## @.str.4
	.asciz	"unable to calc refpll\n"

	.comm	_ERANGE,4,2                     ## @ERANGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf100_ram_calc                 ; -- Begin function gf100_ram_calc
	.p2align	2
_gf100_ram_calc:                        ; @gf100_ram_calc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	bl	_gf100_ram
	mov	x23, x0
	ldr	x20, [x0, #8]
	ldr	x8, [x20]
	ldp	x19, x24, [x8]
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w21, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w1, w8, w9
	add	x8, sp, #32
	orr	x3, x8, #0x4
	add	x8, sp, #24
	orr	x5, x8, #0x4
	add	x2, sp, #52
	add	x4, sp, #48
	add	x6, sp, #56
	mov	x0, x19
	bl	_nvbios_rammapEm
	str	w0, [sp, #32]
	ldr	w8, [sp, #52]
	ldr	w9, [sp, #36]
	cmp	w0, #0
	ccmp	w8, #16, #0, ne
	ccmp	w9, #13, #4, eq
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	mov	x0, x20
	bl	_nvbios_ramcfg_index
	ldr	w8, [sp, #48]
	cmp	w0, w8
	b.ge	LBB0_5
; %bb.3:
	ldp	w8, w9, [sp, #32]
	add	w8, w9, w8
	ldr	w9, [sp, #28]
	madd	w8, w9, w0, w8
	str	w8, [sp, #24]
	ldr	w10, [sp, #52]
	cmp	w8, #0
	ccmp	w10, #16, #0, ne
	ccmp	w9, #13, #4, eq
	b.gt	LBB0_8
; %bb.4:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_nvkm_error
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_8:
	add	w1, w8, #1
	mov	x0, x19
	bl	_nvbios_rd08
	cmp	w0, #255
	b.ne	LBB0_10
; %bb.9:
	str	wzr, [sp, #16]
	b	LBB0_12
LBB0_10:
	mov	x1, x0
	add	x8, sp, #16
	orr	x3, x8, #0x4
	add	x2, sp, #52
	add	x4, sp, #48
	add	x5, sp, #44
	mov	x0, x19
	bl	_nvbios_timingEe
	str	w0, [sp, #16]
	ldr	w8, [sp, #52]
	ldr	w9, [sp, #20]
	cmp	w0, #0
	ccmp	w8, #16, #0, ne
	ccmp	w9, #24, #4, eq
	b.gt	LBB0_12
; %bb.11:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_12:
	add	x19, x23, #16
	ldr	x1, [x23, #8]
	mov	x0, x19
	bl	_ram_init
	cbnz	w0, LBB0_7
; %bb.13:
	mov	w28, #29680
	movk	w28, #19, lsl #16
	mov	x0, x19
	mov	w1, #29680
	movk	w1, #19, lsl #16
	bl	_ram_rd32
	mov	x22, x0
	sub	w25, w28, #240
	mov	x0, x19
	mov	x1, x25
	bl	_ram_rd32
Lloh11:
	adrp	x8, _nv_clk_src_sppll0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _nv_clk_src_sppll0@GOTPAGEOFF]
Lloh13:
	adrp	x9, _nv_clk_src_sppll1@GOTPAGE
Lloh14:
	ldr	x9, [x9, _nv_clk_src_sppll1@GOTPAGEOFF]
	tst	w0, #0x100
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x24
	bl	_nvkm_clk_read
	lsl	w24, w0, #1
	sdiv	w0, w24, w21
	mov	w1, #65
	bl	_min
	mov	w1, #2
	bl	_max
	sub	w1, w28, #144
	sdiv	w26, w24, w0
	mov	x0, x19
	mov	w2, #2
	mov	w3, #0
	bl	_ram_mask
	mov	x0, x19
	mov	w1, #8192
	movk	w1, #19, lsl #16
	bl	_ram_rd32
	tbz	w0, #1, LBB0_15
; %bb.14:
	mov	x0, x19
	mov	w1, #8192
	movk	w1, #19, lsl #16
	bl	_ram_nuke
	mov	x0, x19
	mov	w1, #8192
	movk	w1, #19, lsl #16
	mov	w2, #2
	mov	w3, #2
	bl	_ram_mask
	mov	x0, x19
	mov	w1, #8192
	movk	w1, #19, lsl #16
	mov	w2, #2
	mov	w3, #0
	bl	_ram_mask
LBB0_15:
	mov	w27, #63536
	movk	w27, #16, lsl #16
	cmp	w26, w21
	b.eq	LBB0_17
; %bb.16:
	add	w24, w27, #1520
	mov	x0, x19
	mov	x1, x24
	bl	_ram_nuke
	mov	x0, x19
	mov	x1, x24
	mov	w2, #2
	mov	w3, #2
	bl	_ram_mask
	mov	x0, x19
	mov	x1, x24
	mov	w2, #2
	mov	w3, #0
	bl	_ram_mask
LBB0_17:
	mov	w8, #8192
	movk	w8, #19, lsl #16
	add	w1, w8, #256
	mov	x0, x19
	mov	w2, #1
	bl	_ram_wr32
	and	w8, w22, #0x2
	cmp	w26, w21
	ccmp	w8, #0, #0, ne
	b.eq	LBB0_20
; %bb.18:
	cmp	w26, w21
	b.ne	LBB0_23
; %bb.19:
	mov	x0, x19
	mov	x1, x25
	mov	w2, #3
	bl	_ram_wr32
	b	LBB0_23
LBB0_20:
	mov	x1, x23
	ldr	w2, [x1], #4
	add	x3, sp, #12
	add	x5, sp, #8
	add	x6, sp, #4
	mov	x0, x20
	mov	x4, #0
	bl	_gt215_pll_calc
	cmp	w0, #0
	b.le	LBB0_35
; %bb.21:
	mov	w25, #8193
	movk	w25, #8193, lsl #16
	add	w24, w27, #1520
	mov	x0, x19
	mov	x1, x24
	mov	w2, #536936448
	bl	_ram_wr32
	sub	w1, w28, #208
	mov	x0, x19
	mov	w2, #3
	bl	_ram_wr32
	sub	w1, w28, #192
	mov	x0, x19
	mov	w2, #6
	movk	w2, #33056, lsl #16
	bl	_ram_wr32
	ldr	w8, [sp, #4]
	ldr	w9, [sp, #12]
	lsl	w9, w9, #8
	orr	w8, w9, w8, lsl #16
	ldr	w9, [sp, #8]
	orr	w2, w8, w9
	add	w1, w27, #1524
	mov	x0, x19
	bl	_ram_wr32
	sub	w2, w25, #2, lsl #12            ; =8192
	mov	x0, x19
	mov	x1, x24
	bl	_ram_wr32
	sub	w25, w28, #96
	mov	x0, x19
	mov	x1, x25
	mov	w2, #131072
	mov	w3, #131072
	mov	w4, #64000
	bl	_ram_wait
	add	x3, sp, #12
	add	x5, sp, #8
	add	x6, sp, #4
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	mov	x4, #0
	bl	_gt215_pll_calc
	cmp	w0, #0
	b.le	LBB0_36
; %bb.22:
	mov	w8, #-8188
	mov	w9, #8193
	movk	w9, #8193, lsl #16
	add	w2, w9, w8
	mov	x0, x19
	mov	x1, x24
	bl	_ram_wr32
	ldr	w8, [sp, #4]
	ldr	w9, [sp, #12]
	lsl	w9, w9, #8
	orr	w8, w9, w8, lsl #16
	ldr	w9, [sp, #8]
	orr	w2, w8, w9
	mov	w8, #8192
	movk	w8, #19, lsl #16
	add	w1, w8, #4
	mov	x0, x19
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #8192
	movk	w1, #19, lsl #16
	mov	w2, #257
	movk	w2, #6145, lsl #16
	bl	_ram_wr32
	mov	x0, x19
	mov	x1, x25
	mov	w2, #2
	mov	w3, #2
	mov	w4, #64000
	bl	_ram_wait
LBB0_23:
	tbnz	w22, #1, LBB0_25
; %bb.24:
	add	w20, w27, #724
	mov	x0, x19
	mov	x1, x20
	bl	_ram_nuke
	mov	x0, x19
	mov	x1, x20
	mov	w2, #65535
	mov	w3, #0
	bl	_ram_mask
	add	w20, w27, #728
	mov	x0, x19
	mov	x1, x20
	bl	_ram_nuke
	mov	x0, x19
	mov	x1, x20
	mov	w2, #65535
	mov	w3, #0
	bl	_ram_mask
	add	w1, w27, #344
	mov	x0, x19
	mov	w2, #65280
	movk	w2, #8196, lsl #16
	bl	_ram_wr32
	add	w1, w27, #348
	mov	x0, x19
	mov	w2, #49216
	movk	w2, #63, lsl #16
	bl	_ram_wr32
	add	w1, w27, #352
	mov	x0, x19
	mov	w2, #8193
	movk	w2, #8193, lsl #16
	bl	_ram_wr32
	mov	w8, #2560
	movk	w8, #1, lsl #16
	orr	w2, w8, #0x1000
	add	w1, w27, #360
	mov	x0, x19
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #55540
	movk	w1, #19, lsl #16
	mov	w2, #0
	b	LBB0_26
LBB0_25:
	add	w1, w27, #344
	mov	x0, x19
	mov	w2, #536936448
	bl	_ram_wr32
	add	w1, w27, #348
	mov	x0, x19
	mov	w2, #0
	bl	_ram_wr32
	add	w1, w27, #352
	mov	x0, x19
	mov	w2, #8193
	movk	w2, #8193, lsl #16
	bl	_ram_wr32
	add	w1, w27, #360
	mov	x0, x19
	mov	w2, #2560
	movk	w2, #1, lsl #16
LBB0_26:
	bl	_ram_wr32
	mov	w8, #40
	movk	w8, #8, lsl #16
	sub	w2, w8, #22
	mov	x0, x19
	mov	w1, #2828
	movk	w1, #16, lsl #16
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #4608
	movk	w1, #97, lsl #16
	mov	w2, #13056
	bl	_ram_wr32
	sub	w20, w27, #1584
	mov	x0, x19
	mov	x1, x20
	mov	w2, #2048
	mov	w3, #0
	bl	_ram_mask
	sub	w23, w27, #1568
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #1000
	bl	_ram_nsec
	cmp	w26, w21
	b.ne	LBB0_28
; %bb.27:
	mov	x0, x19
	mov	w1, #4097
	movk	w1, #12, lsl #16
	bl	_gf100_ram_train
LBB0_28:
	mov	w25, #1028
	movk	w25, #2, lsl #16
	sub	w1, w27, #1312
	mov	x0, x19
	mov	w2, #1
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #1000
	bl	_ram_nsec
	sub	w24, w27, #1952
	mov	x0, x19
	mov	x1, x24
	mov	w2, #97
	bl	_ram_wr32
	mov	x0, x19
	mov	x1, x24
	mov	w2, #-1073741697
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #1000
	bl	_ram_nsec
	tbnz	w22, #1, LBB0_30
; %bb.29:
	sub	w1, w27, #12
	mov	x0, x19
	mov	w2, #32724
	b	LBB0_31
LBB0_30:
	sub	w1, w28, #4
	mov	x0, x19
	mov	w2, #1028
	movk	w2, #2, lsl #16
LBB0_31:
	bl	_ram_wr32
	cmp	w26, w21
	b.eq	LBB0_33
; %bb.32:
	sub	w1, w27, #48
	str	w1, [sp]                        ; 4-byte Folded Spill
	mov	x0, x19
	mov	w2, #6144
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #55540
	movk	w1, #19, lsl #16
	mov	w2, #0
	bl	_ram_wr32
	sub	w22, w28, #4
	mov	x0, x19
	mov	x1, x22
	mov	w2, #1028
	movk	w2, #2, lsl #16
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #29680
	movk	w1, #19, lsl #16
	mov	w2, #3
	bl	_ram_wr32
	mov	w8, #16
	movk	w8, #16464, lsl #16
	orr	w2, w8, #0x200000
	mov	x0, x19
	mov	w1, #63536
	movk	w1, #16, lsl #16
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #63536
	movk	w1, #16, lsl #16
	mov	w2, #16
	movk	w2, #16464, lsl #16
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #55540
	movk	w1, #19, lsl #16
	mov	w2, #0
	bl	_ram_wr32
	mov	w21, #1028
	movk	w21, #2, lsl #16
	add	w25, w28, #8
	mov	x0, x19
	mov	x1, x25
	mov	w2, #0
	bl	_ram_wr32
	mov	w8, #8192
	movk	w8, #19, lsl #16
	add	w26, w8, #256
	mov	x0, x19
	mov	x1, x26
	mov	w2, #257
	bl	_ram_wr32
	sub	w1, w28, #224
	mov	x0, x19
	mov	w2, #5654
	movk	w2, #35104, lsl #16
	bl	_ram_wr32
	sub	w1, w27, #2016
	mov	x0, x19
	mov	w2, #144
	movk	w2, #65280, lsl #16
	bl	_ram_wr32
	add	w2, w21, #16, lsl #12           ; =65536
	mov	x0, x19
	mov	x1, x22
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #29680
	movk	w1, #19, lsl #16
	mov	w2, #2
	bl	_ram_wr32
	mov	x0, x19
	mov	x1, x26
	mov	w2, #1
	bl	_ram_wr32
	mov	x0, x19
	mov	x1, x25
	mov	w2, #8192
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #2000
	bl	_ram_nsec
	sub	w1, w27, #40
	mov	x0, x19
	mov	w2, #80
	movk	w2, #31402, lsl #16
	bl	_ram_wr32
	mov	w8, #4
	movk	w8, #80, lsl #16
	add	w2, w8, #12
	mov	x0, x19
	mov	w1, #63536
	movk	w1, #16, lsl #16
	bl	_ram_wr32
	mov	x0, x19
	mov	x1, x20
	mov	w2, #4096
	movk	w2, #206, lsl #16
	bl	_ram_wr32
	mov	x0, x19
	mov	x1, x24
	mov	w2, #126
	movk	w2, #16384, lsl #16
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #2000
	bl	_ram_nsec
	sub	w1, w27, #1308
	mov	x0, x19
	mov	w2, #1
	bl	_ram_wr32
	mov	x0, x19
	mov	x1, x23
	mov	w2, #-2147483648
	bl	_ram_wr32
	sub	w1, w27, #1272
	mov	w8, #23
	movk	w8, #48, lsl #16
	add	w2, w8, #489
	mov	x0, x19
	bl	_ram_wr32
	sub	w1, w27, #1328
	mov	x0, x19
	mov	w2, #2125
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #1000
	bl	_ram_nsec
	sub	w1, w27, #1440
	mov	x0, x19
	mov	w2, #14373
	movk	w2, #2868, lsl #16
	bl	_ram_wr32
	sub	w1, w27, #1436
	mov	x0, x19
	mov	w2, #654
	movk	w2, #13443, lsl #16
	bl	_ram_wr32
	sub	w1, w27, #1432
	mov	x0, x19
	mov	w2, #1536
	movk	w2, #17420, lsl #16
	bl	_ram_wr32
	sub	w1, w27, #1428
	mov	x0, x19
	mov	w2, #8524
	bl	_ram_wr32
	sub	w1, w27, #1424
	mov	w8, #105
	movk	w8, #17121, lsl #16
	add	w2, w8, #16, lsl #12            ; =65536
	mov	x0, x19
	bl	_ram_wr32
	mov	x0, x19
	mov	x1, x20
	mov	w2, #13500416
	bl	_ram_wr32
	sub	w1, w27, #540
	mov	x0, x19
	mov	w2, #20087
	movk	w2, #24580, lsl #16
	bl	_ram_wr32
	sub	w1, w27, #544
	mov	x0, x19
	mov	w2, #20087
	movk	w2, #24580, lsl #16
	bl	_ram_wr32
	sub	w1, w27, #1264
	mov	x0, x19
	mov	w2, #5242880
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #1000
	bl	_ram_nsec
	sub	w1, w27, #1260
	mov	w8, #9
	movk	w8, #96, lsl #16
	add	w2, w8, #543
	mov	x0, x19
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #1000
	bl	_ram_nsec
	sub	w1, w27, #1256
	mov	x0, x19
	mov	w2, #7340032
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #55540
	movk	w1, #19, lsl #16
	mov	w2, #0
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #49472
	movk	w1, #97, lsl #16
	mov	w2, #161742848
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #4104
	movk	w1, #32782, lsl #16
	bl	_gf100_ram_train
	mov	x0, x19
	mov	w1, #1000
	bl	_ram_nsec
	mov	x0, x19
	ldr	w1, [sp]                        ; 4-byte Folded Reload
	mov	w2, #6148
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #55540
	movk	w1, #19, lsl #16
	mov	w2, #0
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #2828
	movk	w1, #16, lsl #16
	mov	w2, #40
	movk	w2, #8, lsl #16
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #4608
	movk	w1, #97, lsl #16
	mov	w2, #13104
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #34464
	movk	w1, #1, lsl #16
	bl	_ram_nsec
	add	w1, w27, #384
	mov	x0, x19
	mov	w2, #16193
	movk	w2, #1329, lsl #16
	bl	_ram_wr32
	add	w1, w27, #388
	mov	x0, x19
	mov	w2, #12112
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #4097
	movk	w1, #268, lsl #16
	bl	_gf100_ram_train
	mov	x0, x19
	mov	x1, x20
	mov	w2, #2048
	mov	w3, #2048
	b	LBB0_34
LBB0_33:
	sub	w1, w27, #40
	mov	x0, x19
	mov	w2, #524288
	mov	w3, #0
	bl	_ram_mask
	mov	x0, x19
	mov	x1, x20
	mov	w2, #32768
	mov	w3, #32768
	bl	_ram_mask
	mov	x0, x19
	mov	w1, #63536
	movk	w1, #16, lsl #16
	mov	w2, #16
	movk	w2, #16720, lsl #16
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #63536
	movk	w1, #16, lsl #16
	mov	w2, #16777216
	mov	w3, #0
	bl	_ram_mask
	mov	w8, #8192
	movk	w8, #19, lsl #16
	add	w21, w8, #256
	mov	x0, x19
	mov	x1, x21
	mov	w2, #256
	mov	w3, #256
	bl	_ram_mask
	sub	w1, w27, #2016
	mov	x0, x19
	mov	w2, #144
	movk	w2, #65280, lsl #16
	bl	_ram_wr32
	add	w2, w25, #2827
	sub	w1, w28, #4
	mov	x0, x19
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #29680
	movk	w1, #19, lsl #16
	mov	w2, #3
	bl	_ram_wr32
	sub	w1, w28, #224
	mov	x0, x19
	mov	w2, #5654
	movk	w2, #33056, lsl #16
	bl	_ram_wr32
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_ram_wr32
	mov	w21, #23
	movk	w21, #48, lsl #16
	mov	x0, x19
	mov	w1, #63536
	movk	w1, #16, lsl #16
	mov	w2, #23
	movk	w2, #48, lsl #16
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #29680
	movk	w1, #19, lsl #16
	mov	w2, #1
	bl	_ram_wr32
	sub	w1, w27, #12
	mov	x0, x19
	mov	w2, #32375
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #8192
	movk	w1, #19, lsl #16
	mov	w2, #1
	movk	w2, #6147, lsl #16
	bl	_ram_wr32
	mov	x0, x19
	mov	x1, x24
	mov	w2, #126
	movk	w2, #16384, lsl #16
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #2000
	bl	_ram_nsec
	sub	w1, w27, #1308
	mov	x0, x19
	mov	w2, #1
	bl	_ram_wr32
	mov	x0, x19
	mov	x1, x23
	mov	w2, #-2147483648
	bl	_ram_wr32
	sub	w1, w27, #1272
	add	w2, w21, #521
	mov	x0, x19
	bl	_ram_wr32
	sub	w1, w27, #1328
	mov	x0, x19
	mov	w2, #285
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #1000
	bl	_ram_nsec
	sub	w1, w27, #1440
	mov	x0, x19
	mov	w2, #1285
	movk	w2, #518, lsl #16
	bl	_ram_wr32
	sub	w1, w27, #1436
	mov	x0, x19
	mov	w2, #33416
	movk	w2, #13344, lsl #16
	bl	_ram_wr32
	sub	w1, w27, #1432
	mov	x0, x19
	mov	w2, #1041
	movk	w2, #17413, lsl #16
	bl	_ram_wr32
	sub	w1, w27, #1428
	mov	x0, x19
	mov	w2, #4428
	bl	_ram_wr32
	sub	w1, w27, #1424
	mov	x0, x19
	mov	w2, #105
	movk	w2, #17121, lsl #16
	bl	_ram_wr32
	sub	w1, w27, #540
	mov	x0, x19
	mov	w2, #20343
	movk	w2, #16388, lsl #16
	bl	_ram_wr32
	sub	w1, w27, #544
	mov	x0, x19
	mov	w2, #20343
	movk	w2, #16388, lsl #16
	bl	_ram_wr32
	sub	w1, w27, #1260
	mov	x0, x19
	mov	w2, #9
	movk	w2, #96, lsl #16
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #1000
	bl	_ram_nsec
	sub	w1, w27, #1256
	mov	x0, x19
	mov	w2, #8
	movk	w2, #112, lsl #16
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #49472
	movk	w1, #97, lsl #16
	mov	w2, #421789696
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #63536
	movk	w1, #16, lsl #16
	mov	w2, #23
	movk	w2, #48, lsl #16
	bl	_ram_wr32
	mov	w21, #4097
	movk	w21, #32770, lsl #16
	mov	x0, x19
	mov	w1, #4097
	movk	w1, #32770, lsl #16
	bl	_gf100_ram_train
	add	w1, w21, #96, lsl #12           ; =393216
	mov	x0, x19
	bl	_gf100_ram_train
	sub	w1, w27, #1264
	mov	x0, x19
	mov	w2, #4
	movk	w2, #80, lsl #16
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #1000
	bl	_ram_nsec
	mov	x0, x19
	mov	w1, #63536
	movk	w1, #16, lsl #16
	mov	w2, #23
	movk	w2, #304, lsl #16
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #63536
	movk	w1, #16, lsl #16
	mov	w2, #23
	movk	w2, #48, lsl #16
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #2828
	movk	w1, #16, lsl #16
	mov	w2, #40
	movk	w2, #8, lsl #16
	bl	_ram_wr32
	mov	x0, x19
	mov	w1, #4608
	movk	w1, #97, lsl #16
	mov	w2, #13104
	bl	_ram_wr32
	mov	x0, x19
	mov	x1, x20
	mov	w2, #2048
	mov	w3, #2048
	bl	_ram_mask
	mov	x0, x19
	mov	w1, #8192
	movk	w1, #19, lsl #16
	mov	w2, #1
	mov	w3, #0
LBB0_34:
	bl	_ram_mask
	mov	w0, #0
	b	LBB0_7
LBB0_35:
	mov	x24, x0
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_nvkm_error
Lloh17:
	adrp	x8, _ERANGE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w24, #0
	csneg	w0, w24, w8, ne
	b	LBB0_7
LBB0_36:
	mov	x23, x0
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_nvkm_error
Lloh22:
	adrp	x8, _ERANGE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w23, #0
	csneg	w0, w23, w8, ne
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid/missing rammap entry\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"invalid ramcfg strap\n"

l_.str.2:                               ; @.str.2
	.asciz	"invalid/missing ramcfg entry\n"

l_.str.3:                               ; @.str.3
	.asciz	"invalid/missing timing entry\n"

	.comm	_nv_clk_src_sppll0,4,2          ; @nv_clk_src_sppll0
	.comm	_nv_clk_src_sppll1,4,2          ; @nv_clk_src_sppll1
l_.str.4:                               ; @.str.4
	.asciz	"unable to calc refpll\n"

	.comm	_ERANGE,4,2                     ; @ERANGE
.subsections_via_symbols
