	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_gr_tp_trap
_nv50_gr_tp_trap:                       ## @nv50_gr_tp_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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -208(%rbp)                 ## 8-byte Spill
	movl	%r8d, %r15d
	movl	%ecx, -228(%rbp)                ## 4-byte Spill
	movl	%edx, -224(%rbp)                ## 4-byte Spill
	movl	%esi, -220(%rbp)                ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -184(%rbp)                ## 8-byte Spill
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$5440, %esi                     ## imm = 0x1540
	callq	_nvkm_rd32
	movl	%eax, -232(%rbp)                ## 4-byte Spill
	xorl	%r14d, %r14d
	movl	$0, -196(%rbp)                  ## 4-byte Folded Spill
	movl	%r15d, -212(%rbp)               ## 4-byte Spill
	movq	%rbx, -240(%rbp)                ## 8-byte Spill
	jmp	LBB0_5
LBB0_1:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_nv50_mpc_traps@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-176(%rbp), %r12
	movq	%r12, %rdi
	movl	$128, %esi
	movl	%r8d, %ecx
	movl	%r8d, %r13d
	callq	_nvkm_snprintbf
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movq	-208(%rbp), %rdx                ## 8-byte Reload
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	movq	%r12, %r9
	xorl	%eax, %eax
	callq	_nvkm_error
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-192(%rbp), %r13                ## 8-byte Reload
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	-196(%rbp)                      ## 4-byte Folded Spill
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nvkm_wr32
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r14d
	cmpl	$16, %r14d
	je	LBB0_25
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movl	-232(%rbp), %eax                ## 4-byte Reload
	btl	%r14d, %eax
	jae	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %eax
	shll	$12, %eax
	addl	-224(%rbp), %eax                ## 4-byte Folded Reload
	movl	%r14d, %esi
	shll	$11, %esi
	addl	-228(%rbp), %esi                ## 4-byte Folded Reload
	cmpl	$160, (%rbx)
	cmovll	%eax, %esi
	movq	%rbx, %r13
	movq	%rbx, %rdi
	movq	%rsi, -192(%rbp)                ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_nvkm_rd32
	movl	%eax, %r8d
	andl	$2147483647, %r8d               ## imm = 0x7FFFFFFF
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r12d
	movl	-220(%rbp), %eax                ## 4-byte Reload
	cmpl	$8, %eax
	je	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$7, %eax
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$6, %eax
	movq	%r13, %rbx
	jne	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%r15d, %r15d
	movq	-192(%rbp), %r13                ## 8-byte Reload
	je	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r8d, -216(%rbp)                ## 4-byte Spill
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_nvkm_error
	leal	8(%r13), %r12d
	leal	-4(%r13), %r15d
	leaq	L_.str.1(%rip), %r13
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	8(%r15), %ebx
	movq	-240(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, %esi
	callq	_nvkm_rd32
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_nvkm_error
	addl	$4, %r15d
	cmpl	%r12d, %r15d
	jle	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_nv50_tex_traps@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-176(%rbp), %r15
	movq	%r15, %rdi
	movl	$128, %esi
	movl	-216(%rbp), %ebx                ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_nvkm_snprintbf
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movq	-208(%rbp), %rdx                ## 8-byte Reload
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	movq	%r15, %r9
	xorl	%eax, %eax
	callq	_nvkm_error
	movl	-212(%rbp), %r15d               ## 4-byte Reload
	movq	-240(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rbx
	jmp	LBB0_4
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	$67305472, %r12d                ## imm = 0x4030000
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_nv50_gr_mp_trap
	andl	$2080178175, %r12d              ## imm = 0x7BFCFFFF
	movl	%r12d, %r8d
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%r15d, %r15d
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%r8d, %r8d
	movq	%r13, %rbx
	jne	LBB0_1
	jmp	LBB0_22
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%r15d, %r15d
	movq	%r13, %rbx
	movq	-192(%rbp), %r13                ## 8-byte Reload
	je	LBB0_3
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	movl	%r13d, %esi
	movl	%r8d, %edx
	movl	%r14d, %ecx
	callq	_nv50_gr_prop_trap
	jmp	LBB0_3
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rbx
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-192(%rbp), %r13                ## 8-byte Reload
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%r8d, %r8d
	je	LBB0_3
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	leaq	L_.str.3(%rip), %rsi
	movq	-208(%rbp), %rdx                ## 8-byte Reload
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_nvkm_error
	jmp	LBB0_3
LBB0_25:
	testl	%r15d, %r15d
	je	LBB0_28
## %bb.26:
	cmpl	$0, -196(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_28
## %bb.27:
	leaq	L_.str.4(%rip), %rsi
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	movq	-208(%rbp), %rdx                ## 8-byte Reload
	callq	_nvkm_warn
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.29:
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"magic set %d:\n"

L_.str.1:                               ## @.str.1
	.asciz	"\t%08x: %08x\n"

	.comm	_nv50_tex_traps,4,2             ## @nv50_tex_traps
L_.str.2:                               ## @.str.2
	.asciz	"%s - TP%d: %08x [%s]\n"

	.comm	_nv50_mpc_traps,4,2             ## @nv50_mpc_traps
L_.str.3:                               ## @.str.3
	.asciz	"%s - TP%d: Unhandled ustatus %08x\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s - No TPs claiming errors?\n"

	.no_dead_strip	_nv50_gr_tp_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_tp_trap
_nv50_gr_tp_trap:                       ; @nv50_gr_tp_trap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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	x23, x5
	mov	x24, x4
	stp	w2, w3, [sp, #52]               ; 8-byte Folded Spill
	str	w1, [sp, #48]                   ; 4-byte Folded Spill
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x25, [x0]
	mov	x0, x25
	mov	w1, #5440
	bl	_nvkm_rd32
	mov	x26, x0
	mov	w27, #0
	str	wzr, [sp, #60]                  ; 4-byte Folded Spill
Lloh3:
	adrp	x28, l_.str.1@PAGE
Lloh4:
	add	x28, x28, l_.str.1@PAGEOFF
	str	x23, [sp, #40]                  ; 8-byte Folded Spill
	str	w24, [sp, #36]                  ; 4-byte Folded Spill
	b	LBB0_5
LBB0_1:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh5:
	adrp	x8, _nv50_mpc_traps@GOTPAGE
Lloh6:
	ldr	x8, [x8, _nv50_mpc_traps@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x0, sp, #64
	mov	w1, #128
	mov	x3, x21
	bl	_nvkm_snprintbf
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	add	x8, sp, #64
	stp	x21, x8, [sp, #16]
	mov	x8, x27
	stp	x23, x8, [sp]
	mov	x0, x20
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_nvkm_error
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	mov	x0, x25
	mov	x1, x19
	mov	w2, #-1073741824
	bl	_nvkm_wr32
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w27, w27, #1
	cmp	w27, #16
	b.eq	LBB0_23
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	lsr	w8, w26, w27
	tbz	w8, #0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	ldp	w9, w10, [sp, #52]              ; 8-byte Folded Reload
	add	w9, w9, w27, lsl #12
	add	w10, w10, w27, lsl #11
	cmp	w8, #160
	csel	w19, w9, w10, lt
	mov	x0, x25
	mov	x1, x19
	bl	_nvkm_rd32
	ands	w21, w0, #0x7fffffff
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #48]                   ; 4-byte Folded Reload
	cmp	w8, #8
	b.eq	LBB0_21
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #7
	b.eq	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #6
	b.ne	LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	cbz	w24, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	str	x27, [sp]
	mov	x0, x20
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nvkm_error
	add	w23, w19, #8
	sub	w24, w19, #4
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w22, w24, #8
	mov	x0, x25
	mov	x1, x22
	bl	_nvkm_rd32
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp]
	mov	x0, x20
	mov	x1, x28
	bl	_nvkm_error
	add	w24, w24, #4
	cmp	w24, w23
	b.le	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh12:
	adrp	x8, _nv50_tex_traps@GOTPAGE
Lloh13:
	ldr	x8, [x8, _nv50_tex_traps@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x0, sp, #64
	mov	w1, #128
	mov	x3, x21
	bl	_nvkm_snprintbf
	add	x8, sp, #64
	stp	x21, x8, [sp, #16]
	mov	x8, x27
	ldr	x23, [sp, #40]                  ; 8-byte Folded Reload
	stp	x23, x8, [sp]
	mov	x0, x20
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_nvkm_error
	ldr	w24, [sp, #36]                  ; 4-byte Folded Reload
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x0
	mov	w8, #67305472
	tst	w0, w8
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x27
	mov	x2, x24
	bl	_nv50_gr_mp_trap
	mov	w8, #2080178175
	and	w21, w22, w8
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w24, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w21, LBB0_1
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w24, LBB0_3
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	cbz	w21, LBB0_3
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	mov	x8, x27
	stp	x8, x21, [sp, #8]
	str	x23, [sp]
	mov	x0, x20
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w24, LBB0_3
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x27
	bl	_nv50_gr_prop_trap
	b	LBB0_3
LBB0_23:
	cbz	w24, LBB0_26
; %bb.24:
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_26
; %bb.25:
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_nvkm_warn
LBB0_26:
	ldur	x8, [x29, #-96]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.27:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"magic set %d:\n"

l_.str.1:                               ; @.str.1
	.asciz	"\t%08x: %08x\n"

	.comm	_nv50_tex_traps,4,2             ; @nv50_tex_traps
l_.str.2:                               ; @.str.2
	.asciz	"%s - TP%d: %08x [%s]\n"

	.comm	_nv50_mpc_traps,4,2             ; @nv50_mpc_traps
l_.str.3:                               ; @.str.3
	.asciz	"%s - TP%d: Unhandled ustatus %08x\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s - No TPs claiming errors?\n"

	.no_dead_strip	_nv50_gr_tp_trap
.subsections_via_symbols
