	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv20_gr_tile                   ## -- Begin function nv20_gr_tile
	.p2align	4, 0x90
_nv20_gr_tile:                          ## @nv20_gr_tile
	.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
	movq	%rdx, %r15
	movl	%esi, %r12d
	callq	_nv20_gr
	movq	%rax, %r13
	movq	(%rax), %rbx
	movq	8(%rbx), %rdi
	leaq	-56(%rbp), %rsi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_nvkm_fifo_pause
	movq	%r13, %rdi
	callq	_nv04_gr_idle
	movl	%r12d, %edi
	callq	_NV20_PGRAPH_TLIMIT
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nvkm_wr32
	movl	%r12d, %edi
	callq	_NV20_PGRAPH_TSIZE
	movl	4(%r15), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nvkm_wr32
	movl	%r12d, %edi
	callq	_NV20_PGRAPH_TILE
	movl	8(%r15), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nvkm_wr32
	movq	_NV10_PGRAPH_RDI_INDEX@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leal	15335472(,%r12,4), %edx
	movq	%rbx, %rdi
	callq	_nvkm_wr32
	movq	_NV10_PGRAPH_RDI_DATA@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_nvkm_wr32
	movl	(%r13), %esi
	leal	15335504(,%r12,4), %edx
	movq	%rbx, %rdi
	callq	_nvkm_wr32
	movl	(%r14), %esi
	movl	4(%r15), %edx
	movq	%rbx, %rdi
	callq	_nvkm_wr32
	movl	(%r13), %esi
	leal	15335440(,%r12,4), %edx
	movq	%rbx, %rdi
	callq	_nvkm_wr32
	movl	(%r14), %esi
	movl	8(%r15), %edx
	movq	%rbx, %rdi
	callq	_nvkm_wr32
	cmpl	$52, (%rbx)
	je	LBB0_2
## %bb.1:
	leal	(,%r12,4), %r13d
	movl	%r12d, %edi
	callq	_NV20_PGRAPH_ZCOMP
	movl	12(%r15), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nvkm_wr32
	movq	_NV10_PGRAPH_RDI_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	$15335568, %r13d                ## imm = 0xEA0090
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_nvkm_wr32
	movl	(%r14), %esi
	movl	12(%r15), %edx
	movq	%rbx, %rdi
	callq	_nvkm_wr32
LBB0_2:
	leaq	-56(%rbp), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvkm_fifo_start
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV10_PGRAPH_RDI_INDEX,4,2      ## @NV10_PGRAPH_RDI_INDEX
	.comm	_NV10_PGRAPH_RDI_DATA,4,2       ## @NV10_PGRAPH_RDI_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv20_gr_tile                   ; -- Begin function nv20_gr_tile
	.p2align	2
_nv20_gr_tile:                          ; @nv20_gr_tile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x2
	mov	x22, x1
	mov	w24, #16
	movk	w24, #234, lsl #16
	bl	_nv20_gr
	mov	x23, x0
	ldr	x21, [x0]
	ldr	x19, [x21, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_nvkm_fifo_pause
	mov	x0, x23
	bl	_nv04_gr_idle
	mov	x0, x22
	bl	_NV20_PGRAPH_TLIMIT
	mov	x1, x0
	ldr	w2, [x20]
	mov	x0, x21
	bl	_nvkm_wr32
	mov	x0, x22
	bl	_NV20_PGRAPH_TSIZE
	mov	x1, x0
	ldr	w2, [x20, #4]
	mov	x0, x21
	bl	_nvkm_wr32
	mov	x0, x22
	bl	_NV20_PGRAPH_TILE
	mov	x1, x0
	ldr	w2, [x20, #8]
	mov	x0, x21
	bl	_nvkm_wr32
Lloh0:
	adrp	x25, _NV10_PGRAPH_RDI_INDEX@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NV10_PGRAPH_RDI_INDEX@GOTPAGEOFF]
	ldr	w1, [x25]
	lsl	w26, w22, #2
	add	w23, w26, w24
	add	w2, w23, #32
	mov	x0, x21
	bl	_nvkm_wr32
Lloh2:
	adrp	x27, _NV10_PGRAPH_RDI_DATA@GOTPAGE
Lloh3:
	ldr	x27, [x27, _NV10_PGRAPH_RDI_DATA@GOTPAGEOFF]
	ldr	w1, [x27]
	ldr	w2, [x20]
	mov	x0, x21
	bl	_nvkm_wr32
	ldr	w1, [x25]
	add	w2, w23, #64
	mov	x0, x21
	bl	_nvkm_wr32
	ldr	w1, [x27]
	ldr	w2, [x20, #4]
	mov	x0, x21
	bl	_nvkm_wr32
	ldr	w1, [x25]
	mov	x0, x21
	mov	x2, x23
	bl	_nvkm_wr32
	ldr	w1, [x27]
	ldr	w2, [x20, #8]
	mov	x0, x21
	bl	_nvkm_wr32
	ldr	w8, [x21]
	cmp	w8, #52
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_NV20_PGRAPH_ZCOMP
	mov	x1, x0
	ldr	w2, [x20, #12]
	mov	x0, x21
	bl	_nvkm_wr32
	ldr	w1, [x25]
	add	w8, w24, w26
	add	w2, w8, #128
	mov	x0, x21
	bl	_nvkm_wr32
	ldr	w1, [x27]
	ldr	w2, [x20, #12]
	mov	x0, x21
	bl	_nvkm_wr32
LBB0_2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_nvkm_fifo_start
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NV10_PGRAPH_RDI_INDEX,4,2      ; @NV10_PGRAPH_RDI_INDEX
	.comm	_NV10_PGRAPH_RDI_DATA,4,2       ; @NV10_PGRAPH_RDI_DATA
.subsections_via_symbols
