	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvc0_graph_trap_tpc
_nvc0_graph_trap_tpc:                   ## @nvc0_graph_trap_tpc
	.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
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %edi
	movl	%edx, %esi
	movl	$1288, %edx                     ## imm = 0x508
	callq	_TPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_nv_rd32
	movl	%eax, %r12d
	testb	$1, %r12b
	jne	LBB0_1
## %bb.2:
	testb	$2, %r12b
	jne	LBB0_3
LBB0_4:
	testb	$4, %r12b
	jne	LBB0_5
LBB0_6:
	testb	$8, %r12b
	jne	LBB0_7
LBB0_8:
	testl	%r12d, %r12d
	je	LBB0_9
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_nv_error
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	$1288, %edx                     ## imm = 0x508
	callq	_TPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_wr32                        ## TAILCALL
LBB0_1:
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	$548, %edx                      ## imm = 0x224
	callq	_TPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_nv_rd32
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_nv_error
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	$548, %edx                      ## imm = 0x224
	callq	_TPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	$1288, %edx                     ## imm = 0x508
	callq	_TPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_nv_wr32
	andl	$-2, %r12d
	testb	$2, %r12b
	je	LBB0_4
LBB0_3:
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	$1604, %edx                     ## imm = 0x644
	callq	_TPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_nv_rd32
	movl	%eax, %r13d
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	$1612, %edx                     ## imm = 0x64C
	callq	_TPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_nv_rd32
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%r13d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_nv_error
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	$1604, %edx                     ## imm = 0x644
	callq	_TPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$2097150, %edx                  ## imm = 0x1FFFFE
	callq	_nv_wr32
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	$1612, %edx                     ## imm = 0x64C
	callq	_TPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$15, %edx
	callq	_nv_wr32
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	$1288, %edx                     ## imm = 0x508
	callq	_TPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$2, %edx
	callq	_nv_wr32
	andl	$-3, %r12d
	testb	$4, %r12b
	je	LBB0_6
LBB0_5:
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	$132, %edx
	callq	_TPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_nv_rd32
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_nv_error
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	$132, %edx
	callq	_TPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	$1288, %edx                     ## imm = 0x508
	callq	_TPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_nv_wr32
	andl	$-5, %r12d
	testb	$8, %r12b
	je	LBB0_8
LBB0_7:
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	$1164, %edx                     ## imm = 0x48C
	callq	_TPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_nv_rd32
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_nv_error
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	$1164, %edx                     ## imm = 0x48C
	callq	_TPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	$1288, %edx                     ## imm = 0x508
	callq	_TPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$8, %edx
	callq	_nv_wr32
	andl	$-9, %r12d
	testl	%r12d, %r12d
	jne	LBB0_10
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPC%d/TPC%d/TEX: 0x%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"GPC%d/TPC%d/MP: 0x%08x 0x%08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"GPC%d/TPC%d/POLY: 0x%08x\n"

L_.str.3:                               ## @.str.3
	.asciz	"GPC%d/TPC%d/L1C: 0x%08x\n"

L_.str.4:                               ## @.str.4
	.asciz	"GPC%d/TPC%d/0x%08x: unknown\n"

	.no_dead_strip	_nvc0_graph_trap_tpc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvc0_graph_trap_tpc
_nvc0_graph_trap_tpc:                   ; @nvc0_graph_trap_tpc
	.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	x21, x1
	mov	x19, x0
	mov	x0, x1
	mov	x1, x2
	mov	w2, #1288
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x19
	bl	_nv_rd32
	mov	x22, x0
	tbnz	w0, #0, LBB0_6
; %bb.1:
	tbnz	w22, #1, LBB0_7
LBB0_2:
	tbnz	w22, #2, LBB0_8
LBB0_3:
	tbnz	w22, #3, LBB0_9
LBB0_4:
	cbz	w22, LBB0_10
LBB0_5:
Lloh0:
	adrp	x1, l_.str.4@PAGE
Lloh1:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	mov	x4, x22
	bl	_nv_error
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1288
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	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
	b	_nv_wr32
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #548
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x19
	bl	_nv_rd32
	mov	x4, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	_nv_error
	mov	x0, x21
	mov	x1, x20
	mov	w2, #548
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nv_wr32
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1288
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_nv_wr32
	and	w22, w22, #0xfffffffe
	tbz	w22, #1, LBB0_2
LBB0_7:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1604
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x19
	bl	_nv_rd32
	mov	x23, x0
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1612
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x19
	bl	_nv_rd32
                                        ; kill: def $w0 killed $w0 def $x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x0, [sp]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	mov	x4, x23
	bl	_nv_error
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1604
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #2097150
	bl	_nv_wr32
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1612
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #15
	bl	_nv_wr32
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1288
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #2
	bl	_nv_wr32
	and	w22, w22, #0xfffffffd
	tbz	w22, #2, LBB0_3
LBB0_8:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #132
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x19
	bl	_nv_rd32
	mov	x4, x0
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	_nv_error
	mov	x0, x21
	mov	x1, x20
	mov	w2, #132
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nv_wr32
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1288
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #4
	bl	_nv_wr32
	and	w22, w22, #0xfffffffb
	tbz	w22, #3, LBB0_4
LBB0_9:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1164
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x19
	bl	_nv_rd32
	mov	x4, x0
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	_nv_error
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1164
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nv_wr32
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1288
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #8
	bl	_nv_wr32
	and	w22, w22, #0xfffffff7
	cbnz	w22, LBB0_5
LBB0_10:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPC%d/TPC%d/TEX: 0x%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"GPC%d/TPC%d/MP: 0x%08x 0x%08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"GPC%d/TPC%d/POLY: 0x%08x\n"

l_.str.3:                               ; @.str.3
	.asciz	"GPC%d/TPC%d/L1C: 0x%08x\n"

l_.str.4:                               ; @.str.4
	.asciz	"GPC%d/TPC%d/0x%08x: unknown\n"

	.no_dead_strip	_nvc0_graph_trap_tpc
.subsections_via_symbols
