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

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

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

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

	.no_dead_strip	_gf100_gr_trap_gpc
.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_gpc
_gf100_gr_trap_gpc:                     ; @gf100_gr_trap_gpc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x21, x0
	mov	x20, x0
	ldr	x22, [x20, #8]!
	mov	x0, x1
	mov	w1, #11408
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x22
	bl	_nvkm_rd32
	mov	x23, x0
	tbnz	w0, #0, LBB0_12
; %bb.1:
	tbnz	w23, #1, LBB0_13
LBB0_2:
	tbnz	w23, #2, LBB0_14
LBB0_3:
	tbz	w23, #3, LBB0_5
LBB0_4:
	mov	x0, x19
	mov	w1, #2084
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x22
	bl	_nvkm_rd32
	mov	x3, x0
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_nvkm_error
	mov	x0, x19
	mov	w1, #2084
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x22
	mov	w2, #-1073741824
	bl	_nvkm_wr32
	mov	w8, #-10
	and	w23, w23, w8
LBB0_5:
	ldr	x8, [x21]
	ldr	w9, [x8, w19, sxtw #2]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.6:
	mov	w24, #0
	sxtw	x26, w19
	mov	w27, #65536
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w24, w24, #1
	ldr	w9, [x8, x26, lsl #2]
	cmp	w24, w9
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w25, w27, w24
	tst	w23, w25
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	bl	_gf100_gr_trap_tpc
	mov	x0, x19
	mov	w1, #11408
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x22
	mov	x2, x25
	bl	_nvkm_wr32
	bic	w23, w23, w25
	ldr	x8, [x21]
	b	LBB0_7
LBB0_10:
	cbz	w23, LBB0_15
; %bb.11:
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_nvkm_error
LBB0_12:
	mov	x0, x21
	mov	x1, x19
	bl	_gf100_gr_trap_gpc_rop
	and	w23, w23, #0xfffffffe
	tbz	w23, #1, LBB0_2
LBB0_13:
	mov	x0, x19
	mov	w1, #2304
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x22
	bl	_nvkm_rd32
	mov	x3, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_nvkm_error
	mov	x0, x19
	mov	w1, #2304
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x22
	mov	w2, #-1073741824
	bl	_nvkm_wr32
	and	w23, w23, #0xfffffffd
	tbz	w23, #2, LBB0_3
LBB0_14:
	mov	x0, x19
	mov	w1, #4136
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x22
	bl	_nvkm_rd32
	mov	x3, x0
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_nvkm_error
	mov	x0, x19
	mov	w1, #4136
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x22
	mov	w2, #-1073741824
	bl	_nvkm_wr32
	and	w23, w23, #0xfffffffb
	tbnz	w23, #3, LBB0_4
	b	LBB0_5
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPC%d/ZCULL: %08x\n"

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

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

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

	.no_dead_strip	_gf100_gr_trap_gpc
.subsections_via_symbols
