	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_gr_init                   ## -- Begin function nv50_gr_init
	.p2align	4, 0x90
_nv50_gr_init:                          ## @nv50_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	%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
	callq	_nv50_gr
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r12
	movq	%r12, %rdi
	movl	$4194444, %esi                  ## imm = 0x40008C
	movl	$4, %edx
	callq	_nvkm_wr32
	movq	%r12, %rdi
	movl	$4196356, %esi                  ## imm = 0x400804
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nvkm_wr32
	movq	%r12, %rdi
	movl	$4220928, %esi                  ## imm = 0x406800
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nvkm_wr32
	movq	%r12, %rdi
	movl	$4197380, %esi                  ## imm = 0x400C04
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nvkm_wr32
	movq	%r12, %rdi
	movl	$4200448, %esi                  ## imm = 0x401800
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nvkm_wr32
	movq	%r12, %rdi
	movl	$4214808, %esi                  ## imm = 0x405018
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nvkm_wr32
	movq	%r12, %rdi
	movl	$4202496, %esi                  ## imm = 0x402000
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nvkm_wr32
	movq	%r12, %rdi
	movl	$5440, %esi                     ## imm = 0x1540
	callq	_nvkm_rd32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	movl	$4229376, %ebx                  ## imm = 0x408900
	movl	$4227868, %r15d                 ## imm = 0x40831C
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	leal	740(%r15), %esi
	movq	%r12, %rdi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nvkm_wr32
	leal	1004(%r15), %esi
	movq	%r12, %rdi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nvkm_wr32
	movl	%r15d, %r14d
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nvkm_wr32
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r13d
	addl	$4096, %ebx                     ## imm = 0x1000
	addl	$2048, %r15d                    ## imm = 0x800
	cmpl	$4294912, %ebx                  ## imm = 0x418900
	je	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	btl	%r13d, %eax
	jae	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$159, (%r12)
	jg	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %r14d
	shll	$12, %r14d
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nvkm_wr32
	leal	1288(%rbx), %esi
	movq	%r12, %rdi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nvkm_wr32
	addl	$4227860, %r14d                 ## imm = 0x408314
	jmp	LBB0_5
LBB0_7:
	movq	%r12, %rdi
	movl	$4194568, %esi                  ## imm = 0x400108
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	%r12, %rdi
	movl	$4194616, %esi                  ## imm = 0x400138
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	%r12, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	%r12, %rdi
	movl	$4194620, %esi                  ## imm = 0x40013C
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	%r12, %rdi
	movl	$4195584, %esi                  ## imm = 0x400500
	movl	$65537, %edx                    ## imm = 0x10001
	callq	_nvkm_wr32
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_nv50_grctx_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.8:
	movq	%r12, %rdi
	movl	$4196388, %esi                  ## imm = 0x400824
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movq	%r12, %rdi
	movl	$4196392, %esi                  ## imm = 0x400828
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movq	%r12, %rdi
	movl	$4196396, %esi                  ## imm = 0x40082C
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movq	%r12, %rdi
	movl	$4196400, %esi                  ## imm = 0x400830
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movq	%r12, %rdi
	movl	$4195116, %esi                  ## imm = 0x40032C
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movq	%r12, %rdi
	movl	$4195120, %esi                  ## imm = 0x400330
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movl	(%r12), %eax
	movl	%eax, %ecx
	andl	$240, %ecx
	addl	$-80, %ecx
	shrl	$4, %ecx
	cmpl	$4, %ecx
	ja	LBB0_10
## %bb.9:
	movl	$2048, %edx                     ## imm = 0x800
	movl	$25, %esi
	btl	%ecx, %esi
	jb	LBB0_13
LBB0_10:
	addl	$-160, %eax
	cmpl	$12, %eax
	ja	LBB0_12
## %bb.11:
	movl	$2050, %edx                     ## imm = 0x802
	movl	$5121, %ecx                     ## imm = 0x1401
	btl	%eax, %ecx
	jb	LBB0_13
LBB0_12:
	movq	%r12, %rdi
	movl	$4205760, %esi                  ## imm = 0x402CC0
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movl	$2, %edx
LBB0_13:
	movq	%r12, %rdi
	movl	$4205736, %esi                  ## imm = 0x402CA8
	callq	_nvkm_wr32
	movl	$4205600, %ebx                  ## imm = 0x402C20
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_nvkm_wr32
	leal	4(%rbx), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_nvkm_wr32
	leal	8(%rbx), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_nvkm_wr32
	leal	12(%rbx), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_nvkm_wr32
	addl	$16, %ebx
	cmpl	$4205728, %ebx                  ## imm = 0x402CA0
	jne	LBB0_14
LBB0_15:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_gr_init                   ; -- Begin function nv50_gr_init
	.p2align	2
_nv50_gr_init:                          ; @nv50_gr_init
	.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	w24, #33556
	movk	w24, #64, lsl #16
	mov	w23, #140
	movk	w23, #64, lsl #16
	bl	_nv50_gr
	mov	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	mov	w1, #140
	movk	w1, #64, lsl #16
	mov	w2, #4
	bl	_nvkm_wr32
	add	w1, w23, #1912
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nvkm_wr32
	mov	x0, x19
	mov	w1, #26624
	movk	w1, #64, lsl #16
	mov	w2, #-1073741824
	bl	_nvkm_wr32
	add	w1, w23, #2936
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nvkm_wr32
	mov	w21, #6144
	movk	w21, #64, lsl #16
	mov	x0, x19
	mov	w1, #6144
	movk	w1, #64, lsl #16
	mov	w2, #-1073741824
	bl	_nvkm_wr32
	mov	x0, x19
	mov	w1, #20504
	movk	w1, #64, lsl #16
	mov	w2, #-1073741824
	bl	_nvkm_wr32
	add	w1, w21, #2048
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nvkm_wr32
	mov	x0, x19
	mov	w1, #5440
	bl	_nvkm_rd32
	mov	x21, x0
	mov	w25, #0
	orr	w26, w24, #0x8
	add	w22, w24, #2804
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w1, w26, #740
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nvkm_wr32
	add	w1, w26, #1004
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nvkm_wr32
	mov	x1, x26
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nvkm_wr32
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w25, #1
	add	w26, w26, #2048
	add	w22, w22, #1, lsl #12           ; =4096
	cmp	w25, #16
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w21, w25
	tbz	w8, #0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	cmp	w8, #159
	b.gt	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w1, w22, #1288
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nvkm_wr32
	mov	x0, x19
	mov	x1, x22
	mov	w2, #-1073741824
	bl	_nvkm_wr32
	add	w1, w24, w25, lsl #12
	b	LBB0_2
LBB0_7:
	add	w1, w23, #124
	mov	x0, x19
	mov	w2, #-1
	bl	_nvkm_wr32
	add	w1, w23, #172
	mov	x0, x19
	mov	w2, #-1
	bl	_nvkm_wr32
	add	w1, w23, #116
	mov	x0, x19
	mov	w2, #-1
	bl	_nvkm_wr32
	add	w1, w23, #176
	mov	x0, x19
	mov	w2, #-1
	bl	_nvkm_wr32
	add	w1, w23, #1140
	mov	x0, x19
	mov	w2, #65537
	bl	_nvkm_wr32
	mov	x0, x19
	mov	x1, x20
	bl	_nv50_grctx_init
	cbnz	w0, LBB0_18
; %bb.8:
	mov	w21, #11304
	movk	w21, #64, lsl #16
	add	w1, w23, #1944
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	add	w1, w23, #1948
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	add	w1, w23, #1952
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	add	w1, w23, #1956
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	add	w1, w23, #672
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	add	w1, w23, #676
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	ldr	w8, [x19]
	and	w9, w8, #0xf0
	sub	w9, w9, #80
	lsr	w9, w9, #4
	cmp	w9, #4
	b.hi	LBB0_11
; %bb.9:
	mov	w10, #1
	lsl	w9, w10, w9
	mov	w10, #25
	tst	w9, w10
	b.eq	LBB0_11
; %bb.10:
	mov	w2, #2048
	b	LBB0_15
LBB0_11:
	sub	w8, w8, #160
	cmp	w8, #12
	b.hi	LBB0_14
; %bb.12:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #5121
	tst	w8, w9
	b.eq	LBB0_14
; %bb.13:
	mov	w2, #2050
	b	LBB0_15
LBB0_14:
	add	w1, w21, #152
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	mov	w2, #2
LBB0_15:
	add	w1, w21, #128
	mov	x0, x19
	bl	_nvkm_wr32
	mov	w22, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	w20, w22, w21
	sub	w1, w20, #8
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	sub	w1, w20, #4
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_nvkm_wr32
	add	w1, w20, #4
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	add	w22, w22, #16
	cmp	w22, #128
	b.ne	LBB0_16
; %bb.17:
	mov	w0, #0
LBB0_18:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
