	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv40_graph_tile_prog
_nv40_graph_tile_prog:                  ## @nv40_graph_tile_prog
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_nouveau_fb
	movq	(%rax), %r13
	movq	%rbx, %rdi
	callq	_nouveau_fifo
	movq	%rax, %r14
	leaq	-56(%rbp), %rsi
	movq	%rax, %rdi
	callq	*8(%rax)
	movq	%rbx, %rdi
	callq	_nv04_graph_idle
	movq	%rbx, %rdi
	callq	_nv_device
	movl	(%rax), %eax
	addl	$-64, %eax
	cmpl	$40, %eax
	ja	LBB0_14
## %bb.1:
	movslq	%r15d, %r12
	shlq	$4, %r12
	leaq	(%r12,%r13), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movabsq	$1683627186880, %rcx            ## imm = 0x18800001AC0
	btq	%rax, %rcx
	jb	LBB0_10
## %bb.2:
	movl	$16431, %ecx                    ## imm = 0x402F
	btq	%rax, %rcx
	jae	LBB0_3
## %bb.5:
	movl	%r15d, %edi
	callq	_NV20_PGRAPH_TSIZE
	movl	12(%r13,%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nv_wr32
	movl	%r15d, %edi
	callq	_NV20_PGRAPH_TLIMIT
	movl	8(%r13,%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nv_wr32
	movl	%r15d, %edi
	callq	_NV20_PGRAPH_TILE
	movl	4(%r13,%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nv_wr32
	movl	%r15d, %edi
	callq	_NV40_PGRAPH_TSIZE1
	movl	12(%r13,%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nv_wr32
	movl	%r15d, %edi
	callq	_NV40_PGRAPH_TLIMIT1
	movl	8(%r13,%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nv_wr32
	movl	%r15d, %edi
	callq	_NV40_PGRAPH_TILE1
	movl	4(%r13,%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nv_wr32
	movq	%rbx, %rdi
	callq	_nv_device
	movl	(%rax), %eax
	leal	-65(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_6
## %bb.9:
	movl	%r15d, %edi
	callq	_NV41_PGRAPH_ZCOMP0
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nv_wr32
	movl	%r15d, %edi
	callq	_NV41_PGRAPH_ZCOMP1
	jmp	LBB0_13
LBB0_10:
	movl	%r15d, %edi
	callq	_NV47_PGRAPH_TSIZE
	movl	12(%r13,%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nv_wr32
	movl	%r15d, %edi
	callq	_NV47_PGRAPH_TLIMIT
	movl	8(%r13,%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nv_wr32
	movl	%r15d, %edi
	callq	_NV47_PGRAPH_TILE
	movl	4(%r13,%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nv_wr32
	movl	%r15d, %edi
	callq	_NV40_PGRAPH_TSIZE1
	movl	12(%r13,%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nv_wr32
	movl	%r15d, %edi
	callq	_NV40_PGRAPH_TLIMIT1
	movl	8(%r13,%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nv_wr32
	movl	%r15d, %edi
	callq	_NV40_PGRAPH_TILE1
	movl	4(%r13,%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nv_wr32
	movq	%rbx, %rdi
	callq	_nv_device
	movl	(%rax), %eax
	addl	$-71, %eax
	cmpl	$4, %eax
	ja	LBB0_14
## %bb.11:
	movl	$21, %ecx
	btl	%eax, %ecx
	jae	LBB0_14
## %bb.12:
	movl	%r15d, %edi
	callq	_NV47_PGRAPH_ZCOMP0
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nv_wr32
	movl	%r15d, %edi
	callq	_NV47_PGRAPH_ZCOMP1
	jmp	LBB0_13
LBB0_6:
	cmpl	$69, %eax
	je	LBB0_8
## %bb.7:
	cmpl	$64, %eax
	jne	LBB0_14
LBB0_8:
	movl	%r15d, %edi
	callq	_NV20_PGRAPH_ZCOMP
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nv_wr32
	movl	%r15d, %edi
	callq	_NV40_PGRAPH_ZCOMP1
	jmp	LBB0_13
LBB0_3:
	movl	$1040, %ecx                     ## imm = 0x410
	btq	%rax, %rcx
	jae	LBB0_14
## %bb.4:
	movl	%r15d, %edi
	callq	_NV20_PGRAPH_TSIZE
	movl	12(%r13,%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nv_wr32
	movl	%r15d, %edi
	callq	_NV20_PGRAPH_TLIMIT
	movl	8(%r13,%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nv_wr32
	movl	%r15d, %edi
	callq	_NV20_PGRAPH_TILE
	addq	%r13, %r12
	addq	$4, %r12
LBB0_13:
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nv_wr32
LBB0_14:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	*(%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv40_graph_tile_prog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv40_graph_tile_prog
_nv40_graph_tile_prog:                  ; @nv40_graph_tile_prog
	.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	x21, x1
	mov	x19, x0
	bl	_nouveau_fb
	ldr	x23, [x0]
	mov	x0, x19
	bl	_nouveau_fifo
	mov	x20, x0
	ldr	x8, [x0, #8]
	add	x1, sp, #8
	blr	x8
	mov	x0, x19
	bl	_nv04_graph_idle
	mov	x0, x19
	bl	_nv_device
	ldr	w8, [x0]
	sub	w8, w8, #64
	cmp	w8, #40
	b.hi	LBB0_13
; %bb.1:
	sxtw	x24, w21
	add	x22, x23, w21, sxtw #4
	mov	w9, #1
	lsl	x9, x9, x8
	mov	x10, #6848
	movk	x10, #392, lsl #32
	tst	x9, x10
	b.ne	LBB0_5
; %bb.2:
	mov	w9, #1
	lsl	x9, x9, x8
	mov	w10, #16431
	tst	x9, x10
	b.eq	LBB0_14
; %bb.3:
	mov	x0, x21
	bl	_NV20_PGRAPH_TSIZE
	mov	x1, x0
	add	x23, x23, x24, lsl #4
	ldr	w2, [x23, #12]
	mov	x0, x19
	bl	_nv_wr32
	mov	x0, x21
	bl	_NV20_PGRAPH_TLIMIT
	mov	x1, x0
	ldr	w2, [x23, #8]
	mov	x0, x19
	bl	_nv_wr32
	mov	x0, x21
	bl	_NV20_PGRAPH_TILE
	mov	x1, x0
	ldr	w2, [x23, #4]
	mov	x0, x19
	bl	_nv_wr32
	mov	x0, x21
	bl	_NV40_PGRAPH_TSIZE1
	mov	x1, x0
	ldr	w2, [x23, #12]
	mov	x0, x19
	bl	_nv_wr32
	mov	x0, x21
	bl	_NV40_PGRAPH_TLIMIT1
	mov	x1, x0
	ldr	w2, [x23, #8]
	mov	x0, x19
	bl	_nv_wr32
	mov	x0, x21
	bl	_NV40_PGRAPH_TILE1
	mov	x1, x0
	ldr	w2, [x23, #4]
	mov	x0, x19
	bl	_nv_wr32
	mov	x0, x19
	bl	_nv_device
	ldr	w8, [x0]
	sub	w9, w8, #65
	cmp	w9, #3
	b.hs	LBB0_8
; %bb.4:
	mov	x0, x21
	bl	_NV41_PGRAPH_ZCOMP0
	mov	x1, x0
	ldr	w2, [x22]
	mov	x0, x19
	bl	_nv_wr32
	mov	x0, x21
	bl	_NV41_PGRAPH_ZCOMP1
	b	LBB0_11
LBB0_5:
	mov	x0, x21
	bl	_NV47_PGRAPH_TSIZE
	mov	x1, x0
	add	x23, x23, x24, lsl #4
	ldr	w2, [x23, #12]
	mov	x0, x19
	bl	_nv_wr32
	mov	x0, x21
	bl	_NV47_PGRAPH_TLIMIT
	mov	x1, x0
	ldr	w2, [x23, #8]
	mov	x0, x19
	bl	_nv_wr32
	mov	x0, x21
	bl	_NV47_PGRAPH_TILE
	mov	x1, x0
	ldr	w2, [x23, #4]
	mov	x0, x19
	bl	_nv_wr32
	mov	x0, x21
	bl	_NV40_PGRAPH_TSIZE1
	mov	x1, x0
	ldr	w2, [x23, #12]
	mov	x0, x19
	bl	_nv_wr32
	mov	x0, x21
	bl	_NV40_PGRAPH_TLIMIT1
	mov	x1, x0
	ldr	w2, [x23, #8]
	mov	x0, x19
	bl	_nv_wr32
	mov	x0, x21
	bl	_NV40_PGRAPH_TILE1
	mov	x1, x0
	ldr	w2, [x23, #4]
	mov	x0, x19
	bl	_nv_wr32
	mov	x0, x19
	bl	_nv_device
	ldr	w8, [x0]
	sub	w8, w8, #71
	cmp	w8, #4
	b.hi	LBB0_13
; %bb.6:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #21
	tst	w8, w9
	b.eq	LBB0_13
; %bb.7:
	mov	x0, x21
	bl	_NV47_PGRAPH_ZCOMP0
	mov	x1, x0
	ldr	w2, [x22]
	mov	x0, x19
	bl	_nv_wr32
	mov	x0, x21
	bl	_NV47_PGRAPH_ZCOMP1
	b	LBB0_11
LBB0_8:
	cmp	w8, #69
	b.eq	LBB0_10
; %bb.9:
	cmp	w8, #64
	b.ne	LBB0_13
LBB0_10:
	mov	x0, x21
	bl	_NV20_PGRAPH_ZCOMP
	mov	x1, x0
	ldr	w2, [x22]
	mov	x0, x19
	bl	_nv_wr32
	mov	x0, x21
	bl	_NV40_PGRAPH_ZCOMP1
LBB0_11:
	mov	x1, x0
LBB0_12:
	ldr	w2, [x22]
	mov	x0, x19
	bl	_nv_wr32
LBB0_13:
	ldr	x8, [x20]
	add	x1, sp, #8
	mov	x0, x20
	blr	x8
	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_14:
	mov	w9, #1
	lsl	x8, x9, x8
	mov	w9, #1040
	tst	x8, x9
	b.eq	LBB0_13
; %bb.15:
	mov	x0, x21
	bl	_NV20_PGRAPH_TSIZE
	mov	x1, x0
	add	x22, x23, x24, lsl #4
	ldr	w2, [x22, #12]
	mov	x0, x19
	bl	_nv_wr32
	mov	x0, x21
	bl	_NV20_PGRAPH_TLIMIT
	mov	x1, x0
	ldr	w2, [x22, #8]
	mov	x0, x19
	bl	_nv_wr32
	mov	x0, x21
	bl	_NV20_PGRAPH_TILE
	mov	x1, x0
	add	x22, x22, #4
	b	LBB0_12
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv40_graph_tile_prog
.subsections_via_symbols
