	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gk104_ram_train_init_0
_gk104_ram_train_init_0:                ## @gk104_ram_train_init_0
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rdi
	movl	(%rsi), %eax
	notl	%eax
	testl	$979, %eax                      ## imm = 0x3D3
	jne	LBB0_8
## %bb.1:
	movq	%rsi, %r14
	movq	(%rdi), %r12
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$1112424, %esi                  ## imm = 0x10F968
	movl	%r15d, %edx
	callq	_nvkm_wr32
	movq	48(%r14), %rax
	movq	56(%r14), %rcx
	movl	(%rcx,%rbx), %edx
	shll	$4, %edx
	orl	(%rax,%rbx), %edx
	movq	%r12, %rdi
	movl	$1112352, %esi                  ## imm = 0x10F920
	callq	_nvkm_wr32
	movq	40(%r14), %rax
	movl	(%rax,%rbx), %edx
	movq	%r12, %rdi
	movl	$1112344, %esi                  ## imm = 0x10F918
	callq	_nvkm_wr32
	movq	24(%r14), %rax
	movq	32(%r14), %rcx
	movl	(%rcx,%rbx), %edx
	shll	$4, %edx
	orl	(%rax,%rbx), %edx
	orl	$256, %edx                      ## imm = 0x100
	movq	%r12, %rdi
	movl	$1112352, %esi                  ## imm = 0x10F920
	callq	_nvkm_wr32
	movq	16(%r14), %rax
	movl	(%rax,%rbx), %edx
	movq	%r12, %rdi
	movl	$1112344, %esi                  ## imm = 0x10F918
	callq	_nvkm_wr32
	movq	%r12, %rdi
	movl	$1112428, %esi                  ## imm = 0x10F96C
	movl	%r15d, %edx
	callq	_nvkm_wr32
	movq	48(%r14), %rax
	movq	56(%r14), %rcx
	movl	(%rcx,%rbx), %edx
	shll	$4, %edx
	orl	(%rax,%rbx), %edx
	movq	%r12, %rdi
	movl	$1112356, %esi                  ## imm = 0x10F924
	callq	_nvkm_wr32
	movq	40(%r14), %rax
	movl	(%rax,%rbx), %edx
	movq	%r12, %rdi
	movl	$1112348, %esi                  ## imm = 0x10F91C
	callq	_nvkm_wr32
	movq	24(%r14), %rax
	movq	32(%r14), %rcx
	movl	(%rcx,%rbx), %edx
	shll	$4, %edx
	orl	(%rax,%rbx), %edx
	orl	$256, %edx                      ## imm = 0x100
	movq	%r12, %rdi
	movl	$1112356, %esi                  ## imm = 0x10F924
	callq	_nvkm_wr32
	movq	16(%r14), %rax
	movl	(%rax,%rbx), %edx
	movq	%r12, %rdi
	movl	$1112348, %esi                  ## imm = 0x10F91C
	callq	_nvkm_wr32
	addl	$256, %r15d                     ## imm = 0x100
	addq	$4, %rbx
	cmpq	$192, %rbx
	jne	LBB0_2
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$1112424, %esi                  ## imm = 0x10F968
	movl	%ebx, %edx
	callq	_nvkm_wr32
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r12, %rdi
	movl	$1112320, %esi                  ## imm = 0x10F900
	callq	_nvkm_wr32
	incq	%rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_4
## %bb.5:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$1112428, %esi                  ## imm = 0x10F96C
	movl	%ebx, %edx
	callq	_nvkm_wr32
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r12, %rdi
	movl	$1112324, %esi                  ## imm = 0x10F904
	callq	_nvkm_wr32
	incq	%rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_6
	jmp	LBB0_7
LBB0_8:
	leaq	L_.str(%rip), %rsi
	callq	_nvkm_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing link training data\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_gk104_ram_train_init_0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gk104_ram_train_init_0
_gk104_ram_train_init_0:                ; @gk104_ram_train_init_0
	.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
	ldr	x0, [x0]
	ldr	w8, [x1]
	mov	w9, #979
	bics	wzr, w9, w8
	b.ne	LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x25, #0
	mov	w21, #0
	ldr	x20, [x0]
	mov	w24, #63768
	movk	w24, #16, lsl #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w24, #80
	mov	x0, x20
	mov	x2, x21
	bl	_nvkm_wr32
	ldp	x9, x8, [x19, #48]
	ldr	w8, [x8, x25]
	ldr	w9, [x9, x25]
	orr	w2, w9, w8, lsl #4
	add	w22, w24, #8
	mov	x0, x20
	mov	x1, x22
	bl	_nvkm_wr32
	ldr	x8, [x19, #40]
	ldr	w2, [x8, x25]
	mov	x0, x20
	mov	w1, #63768
	movk	w1, #16, lsl #16
	bl	_nvkm_wr32
	ldp	x9, x8, [x19, #24]
	ldr	w8, [x8, x25]
	ldr	w9, [x9, x25]
	orr	w8, w9, w8, lsl #4
	orr	w2, w8, #0x100
	mov	x0, x20
	mov	x1, x22
	bl	_nvkm_wr32
	ldr	x8, [x19, #16]
	ldr	w2, [x8, x25]
	mov	x0, x20
	mov	w1, #63768
	movk	w1, #16, lsl #16
	bl	_nvkm_wr32
	add	w1, w24, #84
	mov	x0, x20
	mov	x2, x21
	bl	_nvkm_wr32
	ldp	x9, x8, [x19, #48]
	ldr	w8, [x8, x25]
	ldr	w9, [x9, x25]
	orr	w2, w9, w8, lsl #4
	add	w22, w24, #12
	mov	x0, x20
	mov	x1, x22
	bl	_nvkm_wr32
	ldr	x8, [x19, #40]
	ldr	w2, [x8, x25]
	add	w23, w24, #4
	mov	x0, x20
	mov	x1, x23
	bl	_nvkm_wr32
	ldp	x9, x8, [x19, #24]
	ldr	w8, [x8, x25]
	ldr	w9, [x9, x25]
	orr	w8, w9, w8, lsl #4
	orr	w2, w8, #0x100
	mov	x0, x20
	mov	x1, x22
	bl	_nvkm_wr32
	ldr	x8, [x19, #16]
	ldr	w2, [x8, x25]
	mov	x0, x20
	mov	x1, x23
	bl	_nvkm_wr32
	add	w21, w21, #256
	add	x25, x25, #4
	cmp	x25, #192
	b.ne	LBB0_2
; %bb.3:
	mov	x21, #0
	sub	w22, w24, #24
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w24, #80
	mov	x0, x20
	mov	x2, x21
	bl	_nvkm_wr32
	ldr	x8, [x19, #8]
	ldr	w2, [x8, x21, lsl #2]
	mov	x0, x20
	mov	x1, x22
	bl	_nvkm_wr32
	add	x21, x21, #1
	cmp	x21, #256
	b.ne	LBB0_4
; %bb.5:
	mov	x21, #0
	sub	w22, w24, #20
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w24, #84
	mov	x0, x20
	mov	x2, x21
	bl	_nvkm_wr32
	ldr	x8, [x19, #8]
	ldr	w2, [x8, x21, lsl #2]
	mov	x0, x20
	mov	x1, x22
	bl	_nvkm_wr32
	add	x21, x21, #1
	cmp	x21, #256
	b.ne	LBB0_6
; %bb.7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nvkm_warn
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing link training data\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_gk104_ram_train_init_0
.subsections_via_symbols
