	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gf100_gr_trap_gpc_rop
_gf100_gr_trap_gpc_rop:                 ## @gf100_gr_trap_gpc_rop
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, -192(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r14
	movl	%esi, %edi
	movl	$1056, %esi                     ## imm = 0x420
	callq	_GPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_nvkm_rd32
	movl	%eax, %r12d
	andl	$1073741823, %r12d              ## imm = 0x3FFFFFFF
	movl	%r13d, %edi
	movl	$1076, %esi                     ## imm = 0x434
	callq	_GPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_nvkm_rd32
	movl	%eax, %ebx
	movl	%r13d, %edi
	movl	$1080, %esi                     ## imm = 0x438
	callq	_GPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_nvkm_rd32
	movl	%eax, %r15d
	movl	%r13d, %edi
	movl	$1084, %esi                     ## imm = 0x43C
	callq	_GPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_nvkm_rd32
	movl	%eax, -180(%rbp)                ## 4-byte Spill
	movq	_gf100_gpc_rop_error@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-176(%rbp), %rdi
	movl	$128, %esi
	movl	%r12d, %ecx
	callq	_nvkm_snprintbf
	movzwl	%bx, %r9d
	sarl	$16, %ebx
	shrl	$8, %r15d
	andl	$63, %r15d
	movzbl	-180(%rbp), %eax                ## 1-byte Folded Reload
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movq	-192(%rbp), %rdi                ## 8-byte Reload
	movl	%r13d, %edx
	movl	%r12d, %ecx
	leaq	-176(%rbp), %r8
	pushq	%rax
	pushq	%r15
	pushq	%rbx
	callq	_nvkm_error
	addq	$32, %rsp
	movl	%r13d, %edi
	movl	$1056, %esi                     ## imm = 0x420
	callq	_GPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nvkm_wr32
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_gf100_gpc_rop_error,4,2        ## @gf100_gpc_rop_error
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPC%d/PROP trap: %08x [%s] x = %u, y = %u, format = %x, storage type = %x\n"

	.no_dead_strip	_gf100_gr_trap_gpc_rop
.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_rop
_gf100_gr_trap_gpc_rop:                 ; @gf100_gr_trap_gpc_rop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x19, [x0]
	mov	x0, x1
	mov	w1, #1056
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x19
	bl	_nvkm_rd32
	and	w22, w0, #0x3fffffff
	mov	x0, x20
	mov	w1, #1076
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x23, x0
	mov	x0, x20
	mov	w1, #1080
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x24, x0
	mov	x0, x20
	mov	w1, #1084
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x25, x0
Lloh3:
	adrp	x8, _gf100_gpc_rop_error@GOTPAGE
Lloh4:
	ldr	x8, [x8, _gf100_gpc_rop_error@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	w1, #128
	mov	x3, x22
	bl	_nvkm_snprintbf
	and	w5, w23, #0xffff
	asr	w6, w23, #16
	ubfx	w7, w24, #8, #6
	and	w8, w25, #0xff
	str	w8, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x4, sp, #8
	mov	x0, x21
	mov	x2, x20
	mov	x3, x22
	bl	_nvkm_error
	mov	x0, x20
	mov	w1, #1056
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nvkm_wr32
	ldur	x8, [x29, #-72]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_gf100_gpc_rop_error,4,2        ; @gf100_gpc_rop_error
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPC%d/PROP trap: %08x [%s] x = %u, y = %u, format = %x, storage type = %x\n"

	.no_dead_strip	_gf100_gr_trap_gpc_rop
.subsections_via_symbols
