	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gv100_gr_trap_sm
_gv100_gr_trap_sm:                      ## @gv100_gr_trap_sm
	.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	$168, %rsp
	.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, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -208(%rbp)                ## 8-byte Spill
	movq	(%rdi), %rbx
	movl	%ecx, -180(%rbp)                ## 4-byte Spill
	movl	%ecx, %r13d
	shll	$7, %r13d
	leal	1840(%r13), %edx
	movl	%esi, %edi
	movl	%r15d, %esi
	movl	%edx, -184(%rbp)                ## 4-byte Spill
	callq	_TPC_UNIT
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nvkm_rd32
	movl	%eax, %r14d
	addl	$1844, %r13d                    ## imm = 0x734
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_TPC_UNIT
	movq	%rbx, -192(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nvkm_rd32
	movl	%eax, %ebx
	movq	_gf100_mp_global_error@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-176(%rbp), %rdi
	movl	$128, %esi
	movl	%ebx, %ecx
	callq	_nvkm_snprintbf
	movq	_gf100_mp_warp_error@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, -200(%rbp)                ## 8-byte Spill
	movzwl	%r14w, %esi
	callq	_nvkm_enum_find
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.1(%rip), %rax
LBB0_3:
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movq	-208(%rbp), %rdi                ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	-180(%rbp), %r8d                ## 4-byte Reload
	movl	%ebx, %r9d
	pushq	%rax
	pushq	-200(%rbp)                      ## 8-byte Folded Reload
	leaq	-176(%rbp), %rax
	pushq	%rax
	callq	_nvkm_error
	addq	$32, %rsp
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	-184(%rbp), %edx                ## 4-byte Reload
	callq	_TPC_UNIT
	movl	%ebx, %r14d
	movq	-192(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_TPC_UNIT
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_nvkm_wr32
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_gf100_mp_global_error,4,2      ## @gf100_mp_global_error
	.comm	_gf100_mp_warp_error,4,2        ## @gf100_mp_warp_error
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPC%i/TPC%i/SM%d trap: global %08x [%s] warp %04x [%s]\n"

L_.str.1:                               ## @.str.1
	.space	1

	.no_dead_strip	_gv100_gr_trap_sm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gv100_gr_trap_sm
_gv100_gr_trap_sm:                      ; @gv100_gr_trap_sm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x19, [x0]
	lsl	w25, w3, #7
	add	w23, w25, #1840
	mov	x0, x1
	mov	x1, x2
	mov	x2, x23
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x27, x0
	add	w25, w25, #1844
	mov	x0, x21
	mov	x1, x20
	mov	x2, x25
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x26, x0
Lloh3:
	adrp	x8, _gf100_mp_global_error@GOTPAGE
Lloh4:
	ldr	x8, [x8, _gf100_mp_global_error@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	w1, #128
	mov	x3, x26
	bl	_nvkm_snprintbf
Lloh6:
	adrp	x8, _gf100_mp_warp_error@GOTPAGE
Lloh7:
	ldr	x8, [x8, _gf100_mp_warp_error@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	and	w1, w27, #0xffff
	bl	_nvkm_enum_find
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0]
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, l_.str.1@PAGE
Lloh10:
	add	x8, x8, l_.str.1@PAGEOFF
LBB0_3:
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	add	x6, sp, #8
	mov	x0, x24
	mov	x2, x21
	mov	x3, x20
	mov	x4, x22
	mov	x5, x26
	mov	x7, x27
	bl	_nvkm_error
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	mov	x0, x21
	mov	x1, x20
	mov	x2, x25
	bl	_TPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	x2, x26
	bl	_nvkm_wr32
	ldur	x8, [x29, #-88]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_gf100_mp_global_error,4,2      ; @gf100_mp_global_error
	.comm	_gf100_mp_warp_error,4,2        ; @gf100_mp_warp_error
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPC%i/TPC%i/SM%d trap: global %08x [%s] warp %04x [%s]\n"

l_.str.1:                               ; @.str.1
	.space	1

	.no_dead_strip	_gv100_gr_trap_sm
.subsections_via_symbols
