	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvc0_fifo_isr_subfifo_intr
_nvc0_fifo_isr_subfifo_intr:            ## @nvc0_fifo_isr_subfifo_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	shll	$13, %ebx
	leal	262408(%rbx), %esi
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	callq	_nv_rd32
	movl	%eax, %r14d
	leal	262336(%rbx), %esi
	movq	%r12, %rdi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	callq	_nv_rd32
	movl	%eax, %r15d
	leal	262340(%rbx), %esi
	movq	%r12, %rdi
	callq	_nv_rd32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	addl	$262432, %ebx                   ## imm = 0x40120
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_nv_rd32
	movl	%eax, %r13d
	andl	$127, %r13d
	movl	%r15d, %ebx
	movl	%r15d, %edx
	andl	$16380, %edx                    ## imm = 0x3FFC
	movl	%r14d, %r15d
	testl	$2097152, %r14d                 ## imm = 0x200000
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.1:
	movl	%r14d, %r15d
	cmpl	$84, %edx
	jne	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	$1280, %edx                     ## imm = 0x500
	xorl	%ecx, %ecx
	callq	_nvc0_fifo_swmthd
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %r15d
	andl	$-2097153, %r15d                ## imm = 0xFFDFFFFF
	testl	%eax, %eax
	cmovnel	%r14d, %r15d
LBB0_3:
	testl	$8388608, %r14d                 ## imm = 0x800000
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movl	%r13d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_nvc0_fifo_swmthd
	movl	%r15d, %ecx
	andl	$-8388609, %ecx                 ## imm = 0xFF7FFFFF
	testl	%eax, %eax
	cmovel	%ecx, %r15d
LBB0_5:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:
	shrl	$16, %ebx
	andl	$7, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_nv_error
	movq	_nvc0_fifo_subfifo_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_nouveau_bitfield_print
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_cont
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_nouveau_client_name_for_fifo_chid
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	%eax, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_nv_error
	addq	$16, %rsp
LBB0_7:
	movq	%r12, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	$-2141192184, %edx              ## imm = 0x80600008
	callq	_nv_wr32
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_wr32                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SUBFIFO%d:"

	.comm	_nvc0_fifo_subfifo_intr,4,2     ## @nvc0_fifo_subfifo_intr
L_.str.1:                               ## @.str.1
	.asciz	"\n"

L_.str.2:                               ## @.str.2
	.asciz	"SUBFIFO%d: ch %d [%s] subc %d mthd 0x%04x data 0x%08x\n"

	.no_dead_strip	_nvc0_fifo_isr_subfifo_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_isr_subfifo_intr
_nvc0_fifo_isr_subfifo_intr:            ; @nvc0_fifo_isr_subfifo_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x1
	mov	x19, x0
	mov	w8, #192
	movk	w8, #4, lsl #16
	add	w21, w8, w1, lsl #13
	add	w20, w21, #72
	mov	x1, x20
	bl	_nv_rd32
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	bl	_nv_rd32
	mov	x27, x0
	orr	w1, w21, #0x4
	mov	x0, x19
	bl	_nv_rd32
	mov	x24, x0
	add	w1, w21, #96
	mov	x0, x19
	bl	_nv_rd32
	and	w25, w0, #0x7f
	and	w26, w27, #0x3ffc
	mov	x28, x22
	tbz	w22, #21, LBB0_3
; %bb.1:
	mov	x28, x22
	cmp	w26, #84
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x25
	mov	w2, #1280
	mov	w3, #0
	bl	_nvc0_fifo_swmthd
	and	w8, w22, #0xffdfffff
	cmp	w0, #0
	csel	w28, w8, w22, eq
LBB0_3:
	tbz	w22, #23, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x25
	mov	x2, x26
	mov	x3, x24
	bl	_nvc0_fifo_swmthd
	and	w8, w28, #0xff7fffff
	cmp	w0, #0
	csel	w28, w8, w28, eq
LBB0_5:
	cbz	w28, LBB0_7
; %bb.6:
	ubfx	w27, w27, #16, #3
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_nv_error
Lloh2:
	adrp	x8, _nvc0_fifo_subfifo_intr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _nvc0_fifo_subfifo_intr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x28
	bl	_nouveau_bitfield_print
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_cont
	mov	x0, x19
	mov	x1, x25
	bl	_nouveau_client_name_for_fifo_chid
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x26, x24, [sp, #24]
	stp	x0, x27, [sp, #8]
	str	x25, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_nv_error
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #8
	movk	w2, #32864, lsl #16
	bl	_nv_wr32
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_nv_wr32
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SUBFIFO%d:"

	.comm	_nvc0_fifo_subfifo_intr,4,2     ; @nvc0_fifo_subfifo_intr
l_.str.1:                               ; @.str.1
	.asciz	"\n"

l_.str.2:                               ; @.str.2
	.asciz	"SUBFIFO%d: ch %d [%s] subc %d mthd 0x%04x data 0x%08x\n"

	.no_dead_strip	_nvc0_fifo_isr_subfifo_intr
.subsections_via_symbols
