	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv40_gr_tile
_nv40_gr_tile:                          ## @nv40_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
	pushq	%rax
	.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	_nv40_gr
	movq	%rax, %rbx
	movq	(%rax), %r13
	movq	8(%r13), %r14
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_nvkm_fifo_pause
	movq	%rbx, %rdi
	callq	_nv04_gr_idle
	movl	(%r13), %eax
	addl	$-64, %eax
	cmpl	$11, %eax
	ja	LBB0_10
## %bb.1:
	movl	$47, %ecx
	btl	%eax, %ecx
	jae	LBB0_2
## %bb.4:
	movl	%r12d, %edi
	callq	_NV20_PGRAPH_TSIZE
	movl	12(%r15), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_wr32
	movl	%r12d, %edi
	callq	_NV20_PGRAPH_TLIMIT
	movl	8(%r15), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_wr32
	movl	%r12d, %edi
	callq	_NV20_PGRAPH_TILE
	movl	4(%r15), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_wr32
	movl	%r12d, %edi
	callq	_NV40_PGRAPH_TSIZE1
	movl	12(%r15), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_wr32
	movl	%r12d, %edi
	callq	_NV40_PGRAPH_TLIMIT1
	movl	8(%r15), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_wr32
	movl	%r12d, %edi
	callq	_NV40_PGRAPH_TILE1
	movl	4(%r15), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_wr32
	movl	(%r13), %eax
	leal	-65(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_5
## %bb.9:
	movl	%r12d, %edi
	callq	_NV41_PGRAPH_ZCOMP0
	movl	(%r15), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_wr32
	movl	%r12d, %edi
	callq	_NV41_PGRAPH_ZCOMP1
	jmp	LBB0_8
LBB0_2:
	movl	$2688, %ecx                     ## imm = 0xA80
	btl	%eax, %ecx
	jae	LBB0_10
## %bb.3:
	movl	%r12d, %edi
	callq	_NV47_PGRAPH_TSIZE
	movl	12(%r15), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_wr32
	movl	%r12d, %edi
	callq	_NV47_PGRAPH_TLIMIT
	movl	8(%r15), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_wr32
	movl	%r12d, %edi
	callq	_NV47_PGRAPH_TILE
	movl	4(%r15), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_wr32
	movl	%r12d, %edi
	callq	_NV40_PGRAPH_TSIZE1
	movl	12(%r15), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_wr32
	movl	%r12d, %edi
	callq	_NV40_PGRAPH_TLIMIT1
	movl	8(%r15), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_wr32
	movl	%r12d, %edi
	callq	_NV40_PGRAPH_TILE1
	movl	4(%r15), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_wr32
	movl	%r12d, %edi
	callq	_NV47_PGRAPH_ZCOMP0
	movl	(%r15), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_wr32
	movl	%r12d, %edi
	callq	_NV47_PGRAPH_ZCOMP1
	jmp	LBB0_8
LBB0_5:
	cmpl	$69, %eax
	je	LBB0_7
## %bb.6:
	cmpl	$64, %eax
	jne	LBB0_11
LBB0_7:
	movl	%r12d, %edi
	callq	_NV20_PGRAPH_ZCOMP
	movl	(%r15), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_wr32
	movl	%r12d, %edi
	callq	_NV40_PGRAPH_ZCOMP1
LBB0_8:
	movl	(%r15), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_wr32
LBB0_11:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_nvkm_fifo_start
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	$1, %edi
	callq	_WARN_ON
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv40_gr_tile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv40_gr_tile
_nv40_gr_tile:                          ; @nv40_gr_tile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x22, x1
	bl	_nv40_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
	ldr	w8, [x21]
	sub	w8, w8, #64
	cmp	w8, #11
	b.hi	LBB0_11
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #47
	tst	w8, w9
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x22
	bl	_NV20_PGRAPH_TSIZE
	mov	x1, x0
	ldr	w2, [x20, #12]
	mov	x0, x21
	bl	_nvkm_wr32
	mov	x0, x22
	bl	_NV20_PGRAPH_TLIMIT
	mov	x1, x0
	ldr	w2, [x20, #8]
	mov	x0, x21
	bl	_nvkm_wr32
	mov	x0, x22
	bl	_NV20_PGRAPH_TILE
	mov	x1, x0
	ldr	w2, [x20, #4]
	mov	x0, x21
	bl	_nvkm_wr32
	mov	x0, x22
	bl	_NV40_PGRAPH_TSIZE1
	mov	x1, x0
	ldr	w2, [x20, #12]
	mov	x0, x21
	bl	_nvkm_wr32
	mov	x0, x22
	bl	_NV40_PGRAPH_TLIMIT1
	mov	x1, x0
	ldr	w2, [x20, #8]
	mov	x0, x21
	bl	_nvkm_wr32
	mov	x0, x22
	bl	_NV40_PGRAPH_TILE1
	mov	x1, x0
	ldr	w2, [x20, #4]
	mov	x0, x21
	bl	_nvkm_wr32
	ldr	w8, [x21]
	sub	w9, w8, #65
	cmp	w9, #3
	b.hs	LBB0_6
; %bb.3:
	mov	x0, x22
	bl	_NV41_PGRAPH_ZCOMP0
	mov	x1, x0
	ldr	w2, [x20]
	mov	x0, x21
	bl	_nvkm_wr32
	mov	x0, x22
	bl	_NV41_PGRAPH_ZCOMP1
	b	LBB0_9
LBB0_4:
	mov	w9, #2688
	tst	w8, w9
	b.eq	LBB0_11
; %bb.5:
	mov	x0, x22
	bl	_NV47_PGRAPH_TSIZE
	mov	x1, x0
	ldr	w2, [x20, #12]
	mov	x0, x21
	bl	_nvkm_wr32
	mov	x0, x22
	bl	_NV47_PGRAPH_TLIMIT
	mov	x1, x0
	ldr	w2, [x20, #8]
	mov	x0, x21
	bl	_nvkm_wr32
	mov	x0, x22
	bl	_NV47_PGRAPH_TILE
	mov	x1, x0
	ldr	w2, [x20, #4]
	mov	x0, x21
	bl	_nvkm_wr32
	mov	x0, x22
	bl	_NV40_PGRAPH_TSIZE1
	mov	x1, x0
	ldr	w2, [x20, #12]
	mov	x0, x21
	bl	_nvkm_wr32
	mov	x0, x22
	bl	_NV40_PGRAPH_TLIMIT1
	mov	x1, x0
	ldr	w2, [x20, #8]
	mov	x0, x21
	bl	_nvkm_wr32
	mov	x0, x22
	bl	_NV40_PGRAPH_TILE1
	mov	x1, x0
	ldr	w2, [x20, #4]
	mov	x0, x21
	bl	_nvkm_wr32
	mov	x0, x22
	bl	_NV47_PGRAPH_ZCOMP0
	mov	x1, x0
	ldr	w2, [x20]
	mov	x0, x21
	bl	_nvkm_wr32
	mov	x0, x22
	bl	_NV47_PGRAPH_ZCOMP1
	b	LBB0_9
LBB0_6:
	cmp	w8, #69
	b.eq	LBB0_8
; %bb.7:
	cmp	w8, #64
	b.ne	LBB0_10
LBB0_8:
	mov	x0, x22
	bl	_NV20_PGRAPH_ZCOMP
	mov	x1, x0
	ldr	w2, [x20]
	mov	x0, x21
	bl	_nvkm_wr32
	mov	x0, x22
	bl	_NV40_PGRAPH_ZCOMP1
LBB0_9:
	mov	x1, x0
	ldr	w2, [x20]
	mov	x0, x21
	bl	_nvkm_wr32
LBB0_10:
	add	x1, sp, #8
	mov	x0, x19
	bl	_nvkm_fifo_start
	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
	add	sp, sp, #80
	ret
LBB0_11:
	mov	w0, #1
	bl	_WARN_ON
	b	LBB0_10
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv40_gr_tile
.subsections_via_symbols
