	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_gr_mp_trap
_nv50_gr_mp_trap:                       ## @nv50_gr_mp_trap
	.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	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -188(%rbp)                ## 4-byte Spill
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -232(%rbp)                ## 8-byte Spill
	movq	(%rdi), %r13
	movq	%r13, %rdi
	movl	$5440, %esi                     ## imm = 0x1540
	callq	_nvkm_rd32
	movl	%eax, -224(%rbp)                ## 4-byte Spill
	movl	%ebx, %eax
	shll	$11, %eax
	addl	$4227328, %eax                  ## imm = 0x408100
	movl	%eax, -208(%rbp)                ## 4-byte Spill
	movl	%ebx, -180(%rbp)                ## 4-byte Spill
	shll	$12, %ebx
	addl	$4227584, %ebx                  ## imm = 0x408200
	movl	%ebx, -204(%rbp)                ## 4-byte Spill
	movl	$116, %r15d
	movl	$0, -184(%rbp)                  ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %r13
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r14d
	subl	$-128, %r15d
	cmpl	$628, %r15d                     ## imm = 0x274
	je	LBB0_8
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	-224(%rbp), %eax                ## 4-byte Reload
	movl	%r14d, %ecx
	shrl	%cl, %eax
	testl	$16777216, %eax                 ## imm = 0x1000000
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$160, (%r13)
	movl	-208(%rbp), %eax                ## 4-byte Reload
	movl	%eax, %r12d
	cmovll	-204(%rbp), %r12d               ## 4-byte Folded Reload
	leal	(%r12,%r15), %esi
	addl	$-100, %esi
	movq	%r13, %rdi
	movl	%esi, -220(%rbp)                ## 4-byte Spill
	callq	_nvkm_rd32
	movl	%eax, -212(%rbp)                ## 4-byte Spill
	leal	(%r12,%r15), %esi
	addl	$-96, %esi
	movq	%r13, %rbx
	movq	%r13, %rdi
	movl	%esi, -216(%rbp)                ## 4-byte Spill
	callq	_nvkm_rd32
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -188(%rbp)                  ## 4-byte Folded Reload
	movq	%rbx, %r13
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r12d, %ecx
	addl	%r15d, %ecx
	movl	%ecx, -200(%rbp)                ## 4-byte Spill
	leal	(%r12,%r15), %esi
	addl	$-84, %esi
	movq	%r13, %rdi
	movl	%eax, %ebx
	callq	_nvkm_rd32
	leal	(%r12,%r15), %esi
	addl	$-80, %esi
	movq	%r13, %rdi
	callq	_nvkm_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -240(%rbp)                ## 8-byte Spill
	leal	(%r12,%r15), %esi
	addl	$-4, %esi
	movq	%r13, %rdi
	callq	_nvkm_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -248(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	movl	-200(%rbp), %esi                ## 4-byte Reload
	callq	_nvkm_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movq	_nv50_mp_exec_errors@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-176(%rbp), %rdi
	movl	$128, %esi
	movl	%ebx, %ecx
	movl	%ebx, %r12d
	callq	_nvkm_snprintbf
	movq	-240(%rbp), %rax                ## 8-byte Reload
	movl	%eax, %ebx
	andl	$16777215, %ebx                 ## imm = 0xFFFFFF
	sarl	$24, %eax
	movq	%rax, %r10
	movq	-232(%rbp), %rdi                ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	-180(%rbp), %edx                ## 4-byte Reload
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	leaq	-176(%rbp), %r9
	xorl	%eax, %eax
	pushq	-200(%rbp)                      ## 8-byte Folded Reload
	pushq	-248(%rbp)                      ## 8-byte Folded Reload
	pushq	%r10
	pushq	%rbx
	callq	_nvkm_error
	addq	$32, %rsp
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movl	-220(%rbp), %esi                ## 4-byte Reload
	movl	-212(%rbp), %edx                ## 4-byte Reload
	callq	_nvkm_wr32
	movq	%r13, %rdi
	movl	-216(%rbp), %esi                ## 4-byte Reload
	xorl	%edx, %edx
	callq	_nvkm_wr32
	incl	-184(%rbp)                      ## 4-byte Folded Spill
	jmp	LBB0_7
LBB0_8:
	cmpl	$0, -188(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_11
## %bb.9:
	cmpl	$0, -184(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	-232(%rbp), %rdi                ## 8-byte Reload
	movl	-180(%rbp), %edx                ## 4-byte Reload
	xorl	%eax, %eax
	callq	_nvkm_error
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_nv50_mp_exec_errors,4,2        ## @nv50_mp_exec_errors
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TRAP_MP_EXEC - TP %d MP %d: %08x [%s] at %06x warp %d, opcode %08x %08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"TRAP_MP_EXEC - TP %d: No MPs claiming errors?\n"

	.no_dead_strip	_nv50_gr_mp_trap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_gr_mp_trap
_nv50_gr_mp_trap:                       ; @nv50_gr_mp_trap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x28, x27, [sp, #240]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #256]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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
	str	w2, [sp, #76]                   ; 4-byte Folded Spill
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	str	x0, [sp, #64]                   ; 8-byte Folded Spill
	ldr	x22, [x0]
	mov	x0, x22
	mov	w1, #5440
	bl	_nvkm_rd32
	mov	w24, #0
	mov	w21, #0
	mov	w8, #33024
	movk	w8, #64, lsl #16
	add	w9, w8, w19, lsl #11
	stp	w9, w0, [sp, #88]               ; 8-byte Folded Spill
	str	w19, [sp, #72]                  ; 4-byte Folded Spill
	add	w8, w8, w19, lsl #12
	add	w8, w8, #256
	str	w8, [sp, #84]                   ; 4-byte Folded Spill
	mov	w23, #116
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x25
	mov	x2, x27
	bl	_nvkm_wr32
	mov	x0, x22
	mov	x1, x26
	mov	w2, #0
	bl	_nvkm_wr32
	add	w24, w24, #1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	add	w23, w23, #128
	cmp	w23, #628
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #92]                   ; 4-byte Folded Reload
	lsr	w8, w8, w21
	tbz	w8, #24, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22]
	cmp	w8, #160
	ldp	w9, w8, [sp, #84]               ; 8-byte Folded Reload
	csel	w19, w9, w8, lt
	add	w20, w19, w23
	sub	w25, w20, #100
	mov	x0, x22
	mov	x1, x25
	bl	_nvkm_rd32
	mov	x27, x0
	sub	w26, w20, #96
	mov	x0, x22
	mov	x1, x26
	bl	_nvkm_rd32
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, x0
	str	w24, [sp, #80]                  ; 4-byte Folded Spill
	add	w24, w19, w23
	sub	w1, w24, #84
	mov	x0, x22
	bl	_nvkm_rd32
	sub	w1, w24, #80
	mov	x0, x22
	bl	_nvkm_rd32
	mov	x20, x0
	sub	w1, w24, #4
	mov	x0, x22
	bl	_nvkm_rd32
	mov	x19, x0
	mov	x0, x22
	mov	x1, x24
	bl	_nvkm_rd32
	mov	x24, x0
Lloh3:
	adrp	x8, _nv50_mp_exec_errors@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nv50_mp_exec_errors@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #96
	mov	w1, #128
	mov	x3, x28
	bl	_nvkm_snprintbf
	and	w8, w20, #0xffffff
	asr	w9, w20, #24
	stp	x19, x24, [sp, #40]
	ldr	w24, [sp, #80]                  ; 4-byte Folded Reload
	stp	x8, x9, [sp, #24]
	add	x8, sp, #96
	stp	x28, x8, [sp, #8]
	str	x21, [sp]
	ldr	x0, [sp, #64]                   ; 8-byte Folded Reload
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	ldr	w2, [sp, #72]                   ; 4-byte Folded Reload
	bl	_nvkm_error
	b	LBB0_1
LBB0_7:
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_10
; %bb.8:
	cbnz	w24, LBB0_10
; %bb.9:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	ldr	x0, [sp, #64]                   ; 8-byte Folded Reload
	ldr	w2, [sp, #72]                   ; 4-byte Folded Reload
	bl	_nvkm_error
LBB0_10:
	ldur	x8, [x29, #-96]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #272]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #256]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #240]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_nv50_mp_exec_errors,4,2        ; @nv50_mp_exec_errors
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TRAP_MP_EXEC - TP %d MP %d: %08x [%s] at %06x warp %d, opcode %08x %08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"TRAP_MP_EXEC - TP %d: No MPs claiming errors?\n"

	.no_dead_strip	_nv50_gr_mp_trap
.subsections_via_symbols
