	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvc0_graph_trap_gpc
_nvc0_graph_trap_gpc:                   ## @nvc0_graph_trap_gpc
	.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, %ebx
	movq	%rdi, %r15
	movl	%esi, %edi
	movl	$11408, %esi                    ## imm = 0x2C90
	callq	_GPC_UNIT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_nv_rd32
	movl	%eax, %r14d
	testb	$1, %r14b
	jne	LBB0_1
## %bb.2:
	testb	$2, %r14b
	jne	LBB0_3
LBB0_4:
	testb	$4, %r14b
	jne	LBB0_5
LBB0_6:
	testb	$8, %r14b
	je	LBB0_8
LBB0_7:
	movl	%ebx, %edi
	movl	$2084, %esi                     ## imm = 0x824
	callq	_GPC_UNIT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_nv_rd32
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_nv_error
	movl	%ebx, %edi
	movl	$2084, %esi                     ## imm = 0x824
	callq	_GPC_UNIT
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movl	%ebx, %edi
	movl	$11408, %esi                    ## imm = 0x2C90
	callq	_GPC_UNIT
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$8, %edx
	callq	_nv_wr32
	andl	$-10, %r14d
LBB0_8:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %rcx
	movq	(%r15), %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rax,%rcx,4)
	jle	LBB0_13
## %bb.9:
	xorl	%r13d, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	%r13d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rax,%rcx,4), %r13d
	jge	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	$65536, %ebx                    ## imm = 0x10000
	movl	%r13d, %ecx
	shll	%cl, %ebx
	testl	%ebx, %r14d
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	movq	%r15, %r12
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_nvc0_graph_trap_tpc
	movl	%r15d, %edi
	movq	%r12, %r15
	movl	$11408, %esi                    ## imm = 0x2C90
	callq	_GPC_UNIT
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_nv_wr32
	notl	%ebx
	andl	%ebx, %r14d
	movq	(%r12), %rax
	jmp	LBB0_12
LBB0_13:
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.15:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_nv_error
	movl	%ebx, %edi
	movl	$11408, %esi                    ## imm = 0x2C90
	callq	_GPC_UNIT
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_wr32                        ## TAILCALL
LBB0_1:
	movl	%ebx, %edi
	movl	$1056, %esi                     ## imm = 0x420
	callq	_GPC_UNIT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_nv_rd32
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_nv_error
	movl	%ebx, %edi
	movl	$1056, %esi                     ## imm = 0x420
	callq	_GPC_UNIT
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movl	%ebx, %edi
	movl	$11408, %esi                    ## imm = 0x2C90
	callq	_GPC_UNIT
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_nv_wr32
	andl	$-2, %r14d
	testb	$2, %r14b
	je	LBB0_4
LBB0_3:
	movl	%ebx, %edi
	movl	$2304, %esi                     ## imm = 0x900
	callq	_GPC_UNIT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_nv_rd32
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_nv_error
	movl	%ebx, %edi
	movl	$2304, %esi                     ## imm = 0x900
	callq	_GPC_UNIT
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movl	%ebx, %edi
	movl	$11408, %esi                    ## imm = 0x2C90
	callq	_GPC_UNIT
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$2, %edx
	callq	_nv_wr32
	andl	$-3, %r14d
	testb	$4, %r14b
	je	LBB0_6
LBB0_5:
	movl	%ebx, %edi
	movl	$4136, %esi                     ## imm = 0x1028
	callq	_GPC_UNIT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_nv_rd32
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_nv_error
	movl	%ebx, %edi
	movl	$4136, %esi                     ## imm = 0x1028
	callq	_GPC_UNIT
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movl	%ebx, %edi
	movl	$11408, %esi                    ## imm = 0x2C90
	callq	_GPC_UNIT
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_nv_wr32
	andl	$-5, %r14d
	testb	$8, %r14b
	jne	LBB0_7
	jmp	LBB0_8
LBB0_14:
	addq	$24, %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/PROP: 0x%08x\n"

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

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

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

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

	.no_dead_strip	_nvc0_graph_trap_gpc
.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_gpc
_nvc0_graph_trap_gpc:                   ; @nvc0_graph_trap_gpc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #11408
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x19
	bl	_nv_rd32
	mov	x21, x0
	tbnz	w0, #0, LBB0_12
; %bb.1:
	tbnz	w21, #1, LBB0_13
LBB0_2:
	tbnz	w21, #2, LBB0_14
LBB0_3:
	tbz	w21, #3, LBB0_5
LBB0_4:
	mov	x0, x20
	mov	w1, #2084
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x19
	bl	_nv_rd32
	mov	x3, x0
Lloh0:
	adrp	x1, l_.str.3@PAGE
Lloh1:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_nv_error
	mov	x0, x20
	mov	w1, #2084
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nv_wr32
	mov	x0, x20
	mov	w1, #11408
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #8
	bl	_nv_wr32
	mov	w8, #-10
	and	w21, w21, w8
LBB0_5:
	ldr	x8, [x19]
	ldr	w9, [x8, w20, sxtw #2]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.6:
	mov	w22, #0
	sxtw	x24, w20
	mov	w25, #65536
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w22, w22, #1
	ldr	w9, [x8, x24, lsl #2]
	cmp	w22, w9
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w23, w25, w22
	tst	w21, w23
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_nvc0_graph_trap_tpc
	mov	x0, x20
	mov	w1, #11408
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_nv_wr32
	bic	w21, w21, w23
	ldr	x8, [x19]
	b	LBB0_7
LBB0_10:
	cbz	w21, LBB0_15
; %bb.11:
Lloh2:
	adrp	x1, l_.str.4@PAGE
Lloh3:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_nv_error
	mov	x0, x20
	mov	w1, #11408
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_nv_wr32
LBB0_12:
	mov	x0, x20
	mov	w1, #1056
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x19
	bl	_nv_rd32
	mov	x3, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_nv_error
	mov	x0, x20
	mov	w1, #1056
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nv_wr32
	mov	x0, x20
	mov	w1, #11408
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_nv_wr32
	and	w21, w21, #0xfffffffe
	tbz	w21, #1, LBB0_2
LBB0_13:
	mov	x0, x20
	mov	w1, #2304
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x19
	bl	_nv_rd32
	mov	x3, x0
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_nv_error
	mov	x0, x20
	mov	w1, #2304
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nv_wr32
	mov	x0, x20
	mov	w1, #11408
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #2
	bl	_nv_wr32
	and	w21, w21, #0xfffffffd
	tbz	w21, #2, LBB0_3
LBB0_14:
	mov	x0, x20
	mov	w1, #4136
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x19
	bl	_nv_rd32
	mov	x3, x0
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_nv_error
	mov	x0, x20
	mov	w1, #4136
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nv_wr32
	mov	x0, x20
	mov	w1, #11408
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #4
	bl	_nv_wr32
	and	w21, w21, #0xfffffffb
	tbnz	w21, #3, LBB0_4
	b	LBB0_5
LBB0_15:
	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
	ldp	x26, x25, [sp], #80             ; 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/PROP: 0x%08x\n"

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

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

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

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

	.no_dead_strip	_nvc0_graph_trap_gpc
.subsections_via_symbols
