	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_priv_mp_trap
_nv50_priv_mp_trap:                     ## @nv50_priv_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	$5440, %esi                     ## imm = 0x1540
	callq	_nv_rd32
	movl	%eax, %r15d
	movl	%ebx, %eax
	shll	$11, %eax
	addl	$4227328, %eax                  ## imm = 0x408100
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	shll	$12, %ebx
	addl	$4227584, %ebx                  ## imm = 0x408200
	movl	%ebx, -80(%rbp)                 ## 4-byte Spill
	movl	$116, %r12d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movl	-92(%rbp), %esi                 ## 4-byte Reload
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	callq	_nv_wr32
	movq	%r14, %rdi
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_nv_wr32
	incl	-48(%rbp)                       ## 4-byte Folded Spill
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r13d
	subl	$-128, %r12d
	cmpl	$628, %r12d                     ## imm = 0x274
	je	LBB0_9
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %eax
	movl	%r13d, %ecx
	shrl	%cl, %eax
	testl	$16777216, %eax                 ## imm = 0x1000000
	je	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_nv_device
	cmpl	$160, (%rax)
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ebx
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ebx
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	leal	(%rbx,%r12), %esi
	addl	$-100, %esi
	movq	%r14, %rdi
	movl	%esi, -92(%rbp)                 ## 4-byte Spill
	callq	_nv_rd32
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	leal	(%rbx,%r12), %esi
	addl	$-96, %esi
	movq	%r14, %rdi
	movl	%esi, -88(%rbp)                 ## 4-byte Spill
	callq	_nv_rd32
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %r15d
	addl	%r12d, %r15d
	leal	(%rbx,%r12), %esi
	addl	$-84, %esi
	movq	%r14, %rdi
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	callq	_nv_rd32
	leal	(%rbx,%r12), %esi
	addl	$-80, %esi
	movq	%r14, %rdi
	callq	_nv_rd32
	movl	%eax, %r14d
	leal	(%rbx,%r12), %esi
	addl	$-4, %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_nv_rd32
	movl	%eax, %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_nv_rd32
	movl	%eax, %r15d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_nv_error
	movq	_nv50_mp_exec_error_names@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_nouveau_enum_print
	movl	%r14d, %esi
	andl	$16777215, %esi                 ## imm = 0xFFFFFF
	sarl	$24, %r14d
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %edx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	callq	_pr_cont
	jmp	LBB0_7
LBB0_9:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.10:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_11
## %bb.12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_error                       ## TAILCALL
LBB0_11:
	addq	$56, %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	"TRAP_MP_EXEC - TP %d MP %d: "

	.comm	_nv50_mp_exec_error_names,4,2   ## @nv50_mp_exec_error_names
L_.str.1:                               ## @.str.1
	.asciz	" at %06x warp %d, opcode %08x %08x\n"

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

	.no_dead_strip	_nv50_priv_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_priv_mp_trap
_nv50_priv_mp_trap:                     ; @nv50_priv_mp_trap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, #12]                   ; 4-byte Folded Spill
	mov	x19, x1
	mov	x20, x0
	mov	w1, #5440
	bl	_nv_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, #24]               ; 8-byte Folded Spill
	str	w19, [sp, #8]                   ; 4-byte Folded Spill
	add	w8, w8, w19, lsl #12
	add	w8, w8, #256
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	mov	w22, #116
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x25
	mov	x2, x27
	bl	_nv_wr32
	mov	x0, x20
	mov	x1, x26
	mov	w2, #0
	bl	_nv_wr32
	add	w24, w24, #1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	add	w22, w22, #128
	cmp	w22, #628
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	lsr	w8, w8, w21
	tbz	w8, #24, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_nv_device
	ldr	w8, [x0]
	cmp	w8, #160
	ldp	w9, w8, [sp, #20]               ; 8-byte Folded Reload
	csel	w19, w9, w8, lt
	add	w23, w19, w22
	sub	w25, w23, #100
	mov	x0, x20
	mov	x1, x25
	bl	_nv_rd32
	mov	x27, x0
	sub	w26, w23, #96
	mov	x0, x20
	mov	x1, x26
	bl	_nv_rd32
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, x0
	add	w23, w19, w22
	sub	w1, w23, #84
	mov	x0, x20
	bl	_nv_rd32
	sub	w1, w23, #80
	mov	x0, x20
	bl	_nv_rd32
	str	w24, [sp, #16]                  ; 4-byte Folded Spill
	mov	x24, x0
	sub	w1, w23, #4
	mov	x0, x20
	bl	_nv_rd32
	mov	x19, x0
	mov	x0, x20
	mov	x1, x23
	bl	_nv_rd32
	mov	x23, x0
	str	x21, [sp]
	mov	x0, x20
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	ldr	w2, [sp, #8]                    ; 4-byte Folded Reload
	bl	_nv_error
Lloh2:
	adrp	x8, _nv50_mp_exec_error_names@GOTPAGE
Lloh3:
	ldr	x8, [x8, _nv50_mp_exec_error_names@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x28
	bl	_nouveau_enum_print
	and	w1, w24, #0xffffff
	asr	w2, w24, #24
	ldr	w24, [sp, #16]                  ; 4-byte Folded Reload
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x3, x19
	mov	x4, x23
	bl	_pr_cont
	b	LBB0_1
LBB0_7:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_10
; %bb.8:
	cbnz	w24, LBB0_10
; %bb.9:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	ldr	w2, [sp, #8]                    ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_nv_error
LBB0_10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TRAP_MP_EXEC - TP %d MP %d: "

	.comm	_nv50_mp_exec_error_names,4,2   ; @nv50_mp_exec_error_names
l_.str.1:                               ; @.str.1
	.asciz	" at %06x warp %d, opcode %08x %08x\n"

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

	.no_dead_strip	_nv50_priv_mp_trap
.subsections_via_symbols
