	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvc0_fifo_intr
_nvc0_fifo_intr:                        ## @nvc0_fifo_intr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	$8512, %esi                     ## imm = 0x2140
	callq	_nv_rd32
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	$8448, %esi                     ## imm = 0x2100
	callq	_nv_rd32
	movl	%eax, %r14d
	andl	%r15d, %r14d
	testb	$1, %r14b
	jne	LBB0_1
## %bb.2:
	testl	$256, %r14d                     ## imm = 0x100
	jne	LBB0_3
LBB0_4:
	testl	$65536, %r14d                   ## imm = 0x10000
	jne	LBB0_5
LBB0_6:
	testl	$16777216, %r14d                ## imm = 0x1000000
	jne	LBB0_7
LBB0_8:
	testl	$268435456, %r14d               ## imm = 0x10000000
	jne	LBB0_9
LBB0_13:
	testl	$536870912, %r14d               ## imm = 0x20000000
	jne	LBB0_14
LBB0_18:
	testl	$1073741824, %r14d              ## imm = 0x40000000
	jne	LBB0_19
LBB0_20:
	testl	%r14d, %r14d
	js	LBB0_21
LBB0_22:
	testl	%r14d, %r14d
	je	LBB0_23
LBB0_24:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_nv_fatal
	movq	%r12, %rdi
	movl	$8448, %esi                     ## imm = 0x2100
	movl	%r14d, %edx
	callq	_nv_wr32
	movq	%r12, %rdi
	movl	$8512, %esi                     ## imm = 0x2140
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_wr32                        ## TAILCALL
LBB0_1:
	movq	%r12, %rdi
	movl	$9516, %esi                     ## imm = 0x252C
	callq	_nv_rd32
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_nv_warn
	movq	%r12, %rdi
	movl	$8448, %esi                     ## imm = 0x2100
	movl	$1, %edx
	callq	_nv_wr32
	andl	$-2, %r14d
	testl	$256, %r14d                     ## imm = 0x100
	je	LBB0_4
LBB0_3:
	movq	%r12, %rdi
	movl	$9548, %esi                     ## imm = 0x254C
	callq	_nv_rd32
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_nv_warn
	movq	%r12, %rdi
	movl	$8448, %esi                     ## imm = 0x2100
	movl	$256, %edx                      ## imm = 0x100
	callq	_nv_wr32
	andl	$-257, %r14d                    ## imm = 0xFEFF
	testl	$65536, %r14d                   ## imm = 0x10000
	je	LBB0_6
LBB0_5:
	movq	%r12, %rdi
	movl	$9580, %esi                     ## imm = 0x256C
	callq	_nv_rd32
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_nv_warn
	movq	%r12, %rdi
	movl	$8448, %esi                     ## imm = 0x2100
	movl	$65536, %edx                    ## imm = 0x10000
	callq	_nv_wr32
	andl	$-65537, %r14d                  ## imm = 0xFFFEFFFF
	testl	$16777216, %r14d                ## imm = 0x1000000
	je	LBB0_8
LBB0_7:
	movq	%r12, %rdi
	movl	$9612, %esi                     ## imm = 0x258C
	callq	_nv_rd32
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_nv_warn
	movq	%r12, %rdi
	movl	$8448, %esi                     ## imm = 0x2100
	movl	$16777216, %edx                 ## imm = 0x1000000
	callq	_nv_wr32
	andl	$-16777217, %r14d               ## imm = 0xFEFFFFFF
	testl	$268435456, %r14d               ## imm = 0x10000000
	je	LBB0_13
LBB0_9:
	movq	%r12, %rdi
	movl	$9628, %esi                     ## imm = 0x259C
	callq	_nv_rd32
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%r15d, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	bsfl	%ebx, %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_nvc0_fifo_isr_vm_fault
	movl	$-2, %eax
	movl	%r13d, %ecx
	roll	%cl, %eax
	andl	%eax, %ebx
	jne	LBB0_11
LBB0_12:
	movq	%r12, %rdi
	movl	$9628, %esi                     ## imm = 0x259C
	movl	%r15d, %edx
	callq	_nv_wr32
	andl	$-268435457, %r14d              ## imm = 0xEFFFFFFF
	testl	$536870912, %r14d               ## imm = 0x20000000
	je	LBB0_18
LBB0_14:
	movq	%r12, %rdi
	movl	$9632, %esi                     ## imm = 0x25A0
	callq	_nv_rd32
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movl	%r15d, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	bsfl	%ebx, %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_nvc0_fifo_isr_subfifo_intr
	movl	$-2, %eax
	movl	%r13d, %ecx
	roll	%cl, %eax
	andl	%eax, %ebx
	jne	LBB0_16
LBB0_17:
	movq	%r12, %rdi
	movl	$9632, %esi                     ## imm = 0x25A0
	movl	%r15d, %edx
	callq	_nv_wr32
	andl	$-536870913, %r14d              ## imm = 0xDFFFFFFF
	testl	$1073741824, %r14d              ## imm = 0x40000000
	je	LBB0_20
LBB0_19:
	movq	%r12, %rdi
	movl	$9636, %esi                     ## imm = 0x25A4
	callq	_nv_rd32
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	$10752, %esi                    ## imm = 0x2A00
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_nv_mask
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_nv_debug
	andl	$-1073741825, %r14d             ## imm = 0xBFFFFFFF
	testl	%r14d, %r14d
	jns	LBB0_22
LBB0_21:
	movq	%r12, %rdi
	movl	$9640, %esi                     ## imm = 0x25A8
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_nv_mask
	movl	%eax, %ebx
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_nouveau_event_trigger
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_nv_debug
	andl	$2147483647, %r14d              ## imm = 0x7FFFFFFF
	testl	%r14d, %r14d
	jne	LBB0_24
LBB0_23:
	addq	$8, %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	"INTR 0x00000001: 0x%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"INTR 0x00000100: 0x%08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"INTR 0x00010000: 0x%08x\n"

L_.str.3:                               ## @.str.3
	.asciz	"INTR 0x01000000: 0x%08x\n"

L_.str.4:                               ## @.str.4
	.asciz	"INTR 0x40000000: 0x%08x 0x%08x\n"

L_.str.5:                               ## @.str.5
	.asciz	"INTR 0x80000000: 0x%08x\n"

L_.str.6:                               ## @.str.6
	.asciz	"unhandled status 0x%08x\n"

	.no_dead_strip	_nvc0_fifo_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvc0_fifo_intr
_nvc0_fifo_intr:                        ; @nvc0_fifo_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	mov	w1, #8512
	bl	_nv_rd32
	mov	x20, x0
	mov	x0, x19
	mov	w1, #8448
	bl	_nv_rd32
	and	w20, w0, w20
	tbnz	w20, #0, LBB0_10
; %bb.1:
	tbnz	w20, #8, LBB0_11
LBB0_2:
	tbnz	w20, #16, LBB0_12
LBB0_3:
	tbnz	w20, #24, LBB0_13
LBB0_4:
	tbnz	w20, #28, LBB0_14
LBB0_5:
	tbnz	w20, #29, LBB0_18
LBB0_6:
	tbnz	w20, #30, LBB0_22
LBB0_7:
	tbnz	w20, #31, LBB0_23
LBB0_8:
	cbz	w20, LBB0_24
LBB0_9:
Lloh0:
	adrp	x1, l_.str.6@PAGE
Lloh1:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_nv_fatal
	mov	x0, x19
	mov	w1, #8448
	mov	x2, x20
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #8512
	mov	w2, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_nv_wr32
LBB0_10:
	mov	x0, x19
	mov	w1, #9516
	bl	_nv_rd32
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nv_warn
	mov	x0, x19
	mov	w1, #8448
	mov	w2, #1
	bl	_nv_wr32
	and	w20, w20, #0xfffffffe
	tbz	w20, #8, LBB0_2
LBB0_11:
	mov	x0, x19
	mov	w1, #9548
	bl	_nv_rd32
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_nv_warn
	mov	x0, x19
	mov	w1, #8448
	mov	w2, #256
	bl	_nv_wr32
	and	w20, w20, #0xfffffeff
	tbz	w20, #16, LBB0_3
LBB0_12:
	mov	x0, x19
	mov	w1, #9580
	bl	_nv_rd32
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_nv_warn
	mov	x0, x19
	mov	w1, #8448
	mov	w2, #65536
	bl	_nv_wr32
	and	w20, w20, #0xfffeffff
	tbz	w20, #24, LBB0_4
LBB0_13:
	mov	x0, x19
	mov	w1, #9612
	bl	_nv_rd32
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_nv_warn
	mov	x0, x19
	mov	w1, #8448
	mov	w2, #16777216
	bl	_nv_wr32
	and	w20, w20, #0xfeffffff
	tbz	w20, #28, LBB0_5
LBB0_14:
	mov	x0, x19
	mov	w1, #9628
	bl	_nv_rd32
	mov	x21, x0
	cbz	w0, LBB0_17
; %bb.15:
	mov	w23, #1
	mov	x24, x21
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	rbit	w8, w24
	clz	w22, w8
	mov	x0, x19
	mov	x1, x22
	bl	_nvc0_fifo_isr_vm_fault
	lsl	w8, w23, w22
	bics	w24, w24, w8
	b.ne	LBB0_16
LBB0_17:
	mov	x0, x19
	mov	w1, #9628
	mov	x2, x21
	bl	_nv_wr32
	and	w20, w20, #0xefffffff
	tbz	w20, #29, LBB0_6
LBB0_18:
	mov	x0, x19
	mov	w1, #9632
	bl	_nv_rd32
	mov	x21, x0
	cbz	w0, LBB0_21
; %bb.19:
	mov	w23, #1
	mov	x24, x21
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	rbit	w8, w24
	clz	w22, w8
	mov	x0, x19
	mov	x1, x22
	bl	_nvc0_fifo_isr_subfifo_intr
	lsl	w8, w23, w22
	bics	w24, w24, w8
	b.ne	LBB0_20
LBB0_21:
	mov	x0, x19
	mov	w1, #9632
	mov	x2, x21
	bl	_nv_wr32
	and	w20, w20, #0xdfffffff
	tbz	w20, #30, LBB0_7
LBB0_22:
	mov	x0, x19
	mov	w1, #9636
	bl	_nv_rd32
	mov	x21, x0
	mov	x0, x19
	mov	w1, #10752
	mov	w2, #0
	mov	w3, #0
	bl	_nv_mask
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_nv_debug
	and	w20, w20, #0xbfffffff
	tbz	w20, #31, LBB0_8
LBB0_23:
	mov	x0, x19
	mov	w1, #9640
	mov	w2, #0
	mov	w3, #0
	bl	_nv_mask
	mov	x21, x0
	ldr	w0, [x19]
	mov	w1, #0
	bl	_nouveau_event_trigger
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_nv_debug
	and	w20, w20, #0x7fffffff
	cbnz	w20, LBB0_9
LBB0_24:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"INTR 0x00000001: 0x%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"INTR 0x00000100: 0x%08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"INTR 0x00010000: 0x%08x\n"

l_.str.3:                               ; @.str.3
	.asciz	"INTR 0x01000000: 0x%08x\n"

l_.str.4:                               ; @.str.4
	.asciz	"INTR 0x40000000: 0x%08x 0x%08x\n"

l_.str.5:                               ; @.str.5
	.asciz	"INTR 0x80000000: 0x%08x\n"

l_.str.6:                               ; @.str.6
	.asciz	"unhandled status 0x%08x\n"

	.no_dead_strip	_nvc0_fifo_intr
.subsections_via_symbols
