	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gf100_gr_trap_tpc
_gf100_gr_trap_tpc:                     ## @gf100_gr_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, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	leaq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movl	%esi, %edi
	movl	%edx, %esi
	movl	$1288, %edx                     ## imm = 0x508
	callq	_TPC_UNIT
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_rd32
	movl	%eax, %ebx
	testb	$1, %bl
	je	LBB0_2
## %bb.1:
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	$548, %edx                      ## imm = 0x224
	callq	_TPC_UNIT
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_rd32
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_nvkm_error
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	$548, %edx                      ## imm = 0x224
	callq	_TPC_UNIT
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nvkm_wr32
	andl	$-2, %ebx
LBB0_2:
	testb	$2, %bl
	je	LBB0_4
## %bb.3:
	movq	(%r15), %rax
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	*(%rax)
	andl	$-3, %ebx
LBB0_4:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	testb	$4, %bl
	jne	LBB0_5
## %bb.6:
	testb	$8, %bl
	jne	LBB0_7
LBB0_8:
	testb	$16, %bl
	jne	LBB0_9
LBB0_10:
	testl	%ebx, %ebx
	je	LBB0_11
LBB0_12:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_error                     ## TAILCALL
LBB0_5:
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	$132, %edx
	callq	_TPC_UNIT
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_rd32
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_nvkm_error
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	$132, %edx
	callq	_TPC_UNIT
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nvkm_wr32
	andl	$-5, %ebx
	testb	$8, %bl
	je	LBB0_8
LBB0_7:
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	$1164, %edx                     ## imm = 0x48C
	callq	_TPC_UNIT
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_rd32
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_nvkm_error
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	$1164, %edx                     ## imm = 0x48C
	callq	_TPC_UNIT
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nvkm_wr32
	andl	$-9, %ebx
	testb	$16, %bl
	je	LBB0_10
LBB0_9:
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	$1072, %edx                     ## imm = 0x430
	callq	_TPC_UNIT
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvkm_rd32
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_nvkm_error
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	$1072, %edx                     ## imm = 0x430
	callq	_TPC_UNIT
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nvkm_wr32
	andl	$-17, %ebx
	testl	%ebx, %ebx
	jne	LBB0_12
LBB0_11:
	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: %08x\n"

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

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

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

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

	.no_dead_strip	_gf100_gr_trap_tpc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gf100_gr_trap_tpc
_gf100_gr_trap_tpc:                     ; @gf100_gr_trap_tpc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x20, x1
	mov	x24, x0
	mov	x21, x0
	ldr	x23, [x21, #8]!
	mov	x0, x1
	mov	x1, x2
	mov	w2, #1288
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x23
	bl	_nvkm_rd32
	mov	x22, x0
	tbnz	w0, #0, LBB0_7
; %bb.1:
	tbnz	w22, #1, LBB0_8
LBB0_2:
	tbnz	w22, #2, LBB0_9
LBB0_3:
	tbnz	w22, #3, LBB0_10
LBB0_4:
	tbnz	w22, #4, LBB0_11
LBB0_5:
	cbz	w22, LBB0_12
LBB0_6:
Lloh0:
	adrp	x1, l_.str.4@PAGE
Lloh1:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	mov	x4, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nvkm_error
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #548
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x23
	bl	_nvkm_rd32
	mov	x4, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_nvkm_error
	mov	x0, x20
	mov	x1, x19
	mov	w2, #548
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x23
	mov	w2, #-1073741824
	bl	_nvkm_wr32
	and	w22, w22, #0xfffffffe
	tbz	w22, #1, LBB0_2
LBB0_8:
	ldr	x8, [x24]
	ldr	x8, [x8]
	mov	x0, x24
	mov	x1, x20
	mov	x2, x19
	blr	x8
	and	w22, w22, #0xfffffffd
	tbz	w22, #2, LBB0_3
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #132
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x23
	bl	_nvkm_rd32
	mov	x4, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_nvkm_error
	mov	x0, x20
	mov	x1, x19
	mov	w2, #132
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x23
	mov	w2, #-1073741824
	bl	_nvkm_wr32
	and	w22, w22, #0xfffffffb
	tbz	w22, #3, LBB0_4
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1164
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x23
	bl	_nvkm_rd32
	mov	x4, x0
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_nvkm_error
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1164
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x23
	mov	w2, #-1073741824
	bl	_nvkm_wr32
	and	w22, w22, #0xfffffff7
	tbz	w22, #4, LBB0_5
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1072
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x23
	bl	_nvkm_rd32
	mov	x4, x0
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_nvkm_error
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1072
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x23
	mov	w2, #-1073741824
	bl	_nvkm_wr32
	and	w22, w22, #0xffffffef
	cbnz	w22, LBB0_6
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	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: %08x\n"

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

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

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

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

	.no_dead_strip	_gf100_gr_trap_tpc
.subsections_via_symbols
