	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf100_ltc_oneinit_tag_ram      ## -- Begin function gf100_ltc_oneinit_tag_ram
	.p2align	4, 0x90
_gf100_ltc_oneinit_tag_ram:             ## @gf100_ltc_oneinit_tag_ram
	.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, %r12
	movq	16(%rdi), %r15
	movq	(%r15), %r14
	movq	8(%r14), %rbx
	movq	%r15, %rdi
	movl	$1051776, %esi                  ## imm = 0x100C80
	callq	_nvkm_rd32
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %eax
	sarl	$17, %eax
	leal	3(%rax), %ecx
	testw	%ax, %ax
	cmovnsl	%eax, %ecx
	movswl	%cx, %eax
	sarl	$2, %eax
	addl	$63, %eax
	movl	%eax, %ecx
	andl	$-64, %ecx
	movswl	%cx, %edx
	movl	%edx, (%r12)
	movl	4(%r12), %r13d
	shll	$11, %r13d
	cmpl	$24577, %r13d                   ## imm = 0x6001
	movl	$24576, %ebx                    ## imm = 0x6000
	cmovgel	%r13d, %ebx
	testw	%dx, %dx
	cmovsl	%eax, %ecx
	movswl	%cx, %eax
	sarl	$6, %eax
	leal	(%rax,%rax,2), %r8d
	shll	$13, %r8d
	addl	%r13d, %ebx
	addl	%ebx, %r8d
	movq	_NVKM_RAM_MM_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	12(%r12), %rax
	movq	%r15, %rdi
	movl	$1, %edx
	movl	$12, %ecx
	movl	$1, %r9d
	pushq	%rax
	pushq	$1
	callq	_nvkm_ram_get
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	movl	$0, (%r12)
	jmp	LBB0_5
LBB0_4:
	movl	12(%r12), %edi
	callq	_nvkm_memory_addr
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax), %r15d
	decl	%r15d
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_do_div
	movl	%r15d, 8(%r12)
LBB0_5:
	movq	%r14, %rdi
	callq	_nvkm_mm_fini
	movl	(%r12), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$1, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_mm_init                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVKM_RAM_MM_NORMAL,4,2         ## @NVKM_RAM_MM_NORMAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf100_ltc_oneinit_tag_ram      ; -- Begin function gf100_ltc_oneinit_tag_ram
	.p2align	2
_gf100_ltc_oneinit_tag_ram:             ; @gf100_ltc_oneinit_tag_ram
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	ldr	x22, [x0, #16]
	ldr	x19, [x22]
	ldr	x21, [x19, #8]
	mov	x0, x22
	mov	w1, #3200
	movk	w1, #16, lsl #16
	bl	_nvkm_rd32
	cbz	x21, LBB0_2
; %bb.1:
	ldr	w8, [x21]
	asr	w8, w8, #17
	ubfx	w9, w8, #14, #2
	add	w8, w8, w9
	asr	w8, w8, #2
	add	w8, w8, #63
	and	w9, w8, #0xffffffc0
	str	w9, [x20]
	ldr	w9, [x20, #4]
	lsl	w21, w9, #11
	mov	w9, #24576
	cmp	w21, #6, lsl #12                ; =24576
	csel	w10, w21, w9, gt
	asr	w8, w8, #6
	add	w23, w10, w21
	madd	w4, w8, w9, w23
Lloh0:
	adrp	x8, _NVKM_RAM_MM_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVKM_RAM_MM_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x7, x20, #12
	mov	x0, x22
	mov	w2, #1
	mov	w3, #12
	mov	w5, #1
	mov	w6, #1
	bl	_nvkm_ram_get
	cbz	w0, LBB0_3
LBB0_2:
	str	wzr, [x20]
	b	LBB0_4
LBB0_3:
	ldr	w0, [x20, #12]
	bl	_nvkm_memory_addr
	add	w8, w23, w0
	sub	w22, w8, #1
	mov	x0, x22
	mov	x1, x21
	bl	_do_div
	str	w22, [x20, #8]
LBB0_4:
	mov	x0, x19
	bl	_nvkm_mm_fini
	ldr	w3, [x20]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w4, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nvkm_mm_init
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NVKM_RAM_MM_NORMAL,4,2         ; @NVKM_RAM_MM_NORMAL
.subsections_via_symbols
