	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gk20a_gr_init                  ## -- Begin function gk20a_gr_init
	.p2align	4, 0x90
_gk20a_gr_init:                         ## @gk20a_gr_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	movq	%r14, %rdi
	movl	$4227116, %esi                  ## imm = 0x40802C
	movl	$1, %edx
	callq	_nvkm_wr32
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	callq	_gf100_gr_mmio
	movq	%rbx, %rdi
	callq	_gk20a_gr_wait_mem_scrubbing
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	callq	_gf100_gr_wait_idle
	testl	%eax, %eax
	je	LBB0_2
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	8(%rbx), %rax
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_4:
	movq	%r14, %rdi
	movl	$5255192, %esi                  ## imm = 0x503018
	movl	$1, %edx
	movl	$1, %ecx
	callq	_nvkm_mask
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*16(%rax)
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	movq	%r14, %rdi
	movl	$4195584, %esi                  ## imm = 0x400500
	movl	$65537, %edx                    ## imm = 0x10001
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	$4194620, %esi                  ## imm = 0x40013C
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	$4234276, %esi                  ## imm = 0x409C24
	movl	$983040, %edx                   ## imm = 0xF0000
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	$4210688, %esi                  ## imm = 0x404000
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	$4212224, %esi                  ## imm = 0x404600
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nvkm_wr32
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_6:
	movq	%r14, %rdi
	movl	$4300044, %esi                  ## imm = 0x419D0C
	movl	$2, %edx
	callq	_nvkm_wr32
	movb	(%rbx), %cl
	movl	$-65536, %edx                   ## imm = 0xFFFF0000
	shll	%cl, %edx
	notl	%edx
	andl	$16711680, %edx                 ## imm = 0xFF0000
	movq	%r14, %rdi
	movl	$4304020, %esi                  ## imm = 0x41AC94
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	$4194568, %esi                  ## imm = 0x400108
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	$4194616, %esi                  ## imm = 0x400138
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	$4194584, %esi                  ## imm = 0x400118
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	$4194608, %esi                  ## imm = 0x400130
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	$4194588, %esi                  ## imm = 0x40011C
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	$4194612, %esi                  ## imm = 0x400134
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	callq	_gf100_gr_zbc_init
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gf100_gr_init_ctxctl           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gk20a_gr_init                  ; -- Begin function gk20a_gr_init
	.p2align	2
_gk20a_gr_init:                         ; @gk20a_gr_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x20, [x0, #24]
	mov	x0, x20
	mov	w1, #32812
	movk	w1, #64, lsl #16
	mov	w2, #1
	bl	_nvkm_wr32
	ldr	w1, [x19, #16]
	mov	x0, x19
	bl	_gf100_gr_mmio
	mov	x0, x19
	bl	_gk20a_gr_wait_mem_scrubbing
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_gf100_gr_wait_idle
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	blr	x8
LBB0_5:
	mov	w21, #256
	movk	w21, #64, lsl #16
	mov	x0, x20
	mov	w1, #12312
	movk	w1, #80, lsl #16
	mov	w2, #1
	mov	w3, #1
	bl	_nvkm_mask
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	orr	w1, w21, #0x400
	mov	x0, x20
	mov	w2, #65537
	bl	_nvkm_wr32
	mov	x0, x20
	mov	w1, #256
	movk	w1, #64, lsl #16
	mov	w2, #-1
	bl	_nvkm_wr32
	orr	w1, w21, #0x3c
	mov	x0, x20
	mov	w2, #-1
	bl	_nvkm_wr32
	mov	x0, x20
	mov	w1, #39972
	movk	w1, #64, lsl #16
	mov	w2, #983040
	bl	_nvkm_wr32
	mov	w22, #16384
	movk	w22, #64, lsl #16
	mov	x0, x20
	mov	w1, #16384
	movk	w1, #64, lsl #16
	mov	w2, #-1073741824
	bl	_nvkm_wr32
	orr	w1, w22, #0x600
	mov	x0, x20
	mov	w2, #-1073741824
	bl	_nvkm_wr32
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	blr	x8
LBB0_7:
	mov	w22, #40204
	movk	w22, #65, lsl #16
	mov	x0, x20
	mov	w1, #40204
	movk	w1, #65, lsl #16
	mov	w2, #2
	bl	_nvkm_wr32
	ldr	w8, [x19]
	mov	w9, #-65536
	lsl	w8, w9, w8
	mvn	w8, w8
	and	w2, w8, #0xff0000
	add	w1, w22, #3976
	mov	x0, x20
	bl	_nvkm_wr32
	add	w1, w21, #8
	mov	x0, x20
	mov	w2, #-1
	bl	_nvkm_wr32
	add	w1, w21, #56
	mov	x0, x20
	mov	w2, #-1
	bl	_nvkm_wr32
	add	w1, w21, #24
	mov	x0, x20
	mov	w2, #-1
	bl	_nvkm_wr32
	add	w1, w21, #48
	mov	x0, x20
	mov	w2, #-1
	bl	_nvkm_wr32
	add	w1, w21, #28
	mov	x0, x20
	mov	w2, #-1
	bl	_nvkm_wr32
	add	w1, w21, #52
	mov	x0, x20
	mov	w2, #-1
	bl	_nvkm_wr32
	mov	x0, x19
	bl	_gf100_gr_zbc_init
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_gf100_gr_init_ctxctl
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
