	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gk104_fifo_intr
_gk104_fifo_intr:                       ## @gk104_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
	callq	_gk104_fifo
	movq	%rax, %r12
	movq	(%rax), %r15
	movq	%r15, %rdi
	movl	$8512, %esi                     ## imm = 0x2140
	callq	_nvkm_rd32
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	$8448, %esi                     ## imm = 0x2100
	callq	_nvkm_rd32
	movl	%eax, %r14d
	andl	%ebx, %r14d
	testb	$1, %r14b
	jne	LBB0_1
## %bb.2:
	testb	$16, %r14b
	jne	LBB0_3
LBB0_4:
	testl	$256, %r14d                     ## imm = 0x100
	jne	LBB0_5
LBB0_6:
	testl	$65536, %r14d                   ## imm = 0x10000
	jne	LBB0_7
LBB0_8:
	testl	$8388608, %r14d                 ## imm = 0x800000
	jne	LBB0_9
LBB0_10:
	testl	$16777216, %r14d                ## imm = 0x1000000
	jne	LBB0_11
LBB0_12:
	testl	$134217728, %r14d               ## imm = 0x8000000
	jne	LBB0_13
LBB0_14:
	testl	$268435456, %r14d               ## imm = 0x10000000
	jne	LBB0_15
LBB0_19:
	testl	$536870912, %r14d               ## imm = 0x20000000
	jne	LBB0_20
LBB0_24:
	testl	$1073741824, %r14d              ## imm = 0x40000000
	jne	LBB0_25
LBB0_26:
	testl	%r14d, %r14d
	js	LBB0_27
LBB0_28:
	testl	%r14d, %r14d
	je	LBB0_29
LBB0_30:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_nvkm_error
	movq	%r15, %rdi
	movl	$8512, %esi                     ## imm = 0x2140
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	movq	%r15, %rdi
	movl	$8448, %esi                     ## imm = 0x2100
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_wr32                      ## TAILCALL
LBB0_1:
	movq	%r12, %rdi
	callq	_gk104_fifo_intr_bind
	movq	%r15, %rdi
	movl	$8448, %esi                     ## imm = 0x2100
	movl	$1, %edx
	callq	_nvkm_wr32
	andl	$-2, %r14d
	testb	$16, %r14b
	je	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_nvkm_error
	movq	%r15, %rdi
	movl	$8448, %esi                     ## imm = 0x2100
	movl	$16, %edx
	callq	_nvkm_wr32
	andl	$-17, %r14d
	testl	$256, %r14d                     ## imm = 0x100
	je	LBB0_6
LBB0_5:
	movq	%r12, %rdi
	callq	_gk104_fifo_intr_sched
	movq	%r15, %rdi
	movl	$8448, %esi                     ## imm = 0x2100
	movl	$256, %edx                      ## imm = 0x100
	callq	_nvkm_wr32
	andl	$-257, %r14d                    ## imm = 0xFEFF
	testl	$65536, %r14d                   ## imm = 0x10000
	je	LBB0_8
LBB0_7:
	movq	%r12, %rdi
	callq	_gk104_fifo_intr_chsw
	movq	%r15, %rdi
	movl	$8448, %esi                     ## imm = 0x2100
	movl	$65536, %edx                    ## imm = 0x10000
	callq	_nvkm_wr32
	andl	$-65537, %r14d                  ## imm = 0xFFFEFFFF
	testl	$8388608, %r14d                 ## imm = 0x800000
	je	LBB0_10
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_nvkm_error
	movq	%r15, %rdi
	movl	$8448, %esi                     ## imm = 0x2100
	movl	$8388608, %edx                  ## imm = 0x800000
	callq	_nvkm_wr32
	andl	$-8388609, %r14d                ## imm = 0xFF7FFFFF
	testl	$16777216, %r14d                ## imm = 0x1000000
	je	LBB0_12
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_nvkm_error
	movq	%r15, %rdi
	movl	$8448, %esi                     ## imm = 0x2100
	movl	$16777216, %edx                 ## imm = 0x1000000
	callq	_nvkm_wr32
	andl	$-16777217, %r14d               ## imm = 0xFEFFFFFF
	testl	$134217728, %r14d               ## imm = 0x8000000
	je	LBB0_14
LBB0_13:
	movq	%r12, %rdi
	callq	_gk104_fifo_intr_dropped_fault
	movq	%r15, %rdi
	movl	$8448, %esi                     ## imm = 0x2100
	movl	$134217728, %edx                ## imm = 0x8000000
	callq	_nvkm_wr32
	andl	$-134217729, %r14d              ## imm = 0xF7FFFFFF
	testl	$268435456, %r14d               ## imm = 0x10000000
	je	LBB0_19
LBB0_15:
	movq	%r15, %rdi
	movl	$9628, %esi                     ## imm = 0x259C
	callq	_nvkm_rd32
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	___ffs
	movl	%eax, %r13d
	movq	8(%r12), %rax
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	*(%rax)
	movl	$1, %edx
	movl	%r13d, %ecx
	shll	%cl, %edx
	movq	%r15, %rdi
	movl	$9628, %esi                     ## imm = 0x259C
	callq	_nvkm_wr32
	movl	$-2, %eax
	movl	%r13d, %ecx
	roll	%cl, %eax
	andl	%eax, %ebx
	jne	LBB0_17
LBB0_18:
	andl	$-268435457, %r14d              ## imm = 0xEFFFFFFF
	testl	$536870912, %r14d               ## imm = 0x20000000
	je	LBB0_24
LBB0_20:
	movq	%r15, %rdi
	movl	$9632, %esi                     ## imm = 0x25A0
	callq	_nvkm_rd32
	testl	%eax, %eax
	je	LBB0_23
## %bb.21:
	movl	%eax, %r13d
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	callq	___ffs
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_gk104_fifo_intr_pbdma_0
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_gk104_fifo_intr_pbdma_1
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	movq	%r15, %rdi
	movl	$9632, %esi                     ## imm = 0x25A0
	callq	_nvkm_wr32
	movl	$-2, %eax
	movl	%ebx, %ecx
	roll	%cl, %eax
	andl	%eax, %r13d
	jne	LBB0_22
LBB0_23:
	andl	$-536870913, %r14d              ## imm = 0xDFFFFFFF
	testl	$1073741824, %r14d              ## imm = 0x40000000
	je	LBB0_26
LBB0_25:
	movq	%r12, %rdi
	callq	_gk104_fifo_intr_runlist
	andl	$-1073741825, %r14d             ## imm = 0xBFFFFFFF
	testl	%r14d, %r14d
	jns	LBB0_28
LBB0_27:
	movq	%r15, %rdi
	movl	$8448, %esi                     ## imm = 0x2100
	movl	$-2147483648, %edx              ## imm = 0x80000000
	callq	_nvkm_wr32
	movq	%r12, %rdi
	callq	_gk104_fifo_intr_engine
	andl	$2147483647, %r14d              ## imm = 0x7FFFFFFF
	testl	%r14d, %r14d
	jne	LBB0_30
LBB0_29:
	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	"PIO_ERROR\n"

L_.str.1:                               ## @.str.1
	.asciz	"FB_FLUSH_TIMEOUT\n"

L_.str.2:                               ## @.str.2
	.asciz	"LB_ERROR\n"

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

	.no_dead_strip	_gk104_fifo_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gk104_fifo_intr
_gk104_fifo_intr:                       ; @gk104_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
	bl	_gk104_fifo
	mov	x20, x0
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #8512
	bl	_nvkm_rd32
	mov	x21, x0
	mov	x0, x19
	mov	w1, #8448
	bl	_nvkm_rd32
	and	w21, w0, w21
	tbnz	w21, #0, LBB0_13
; %bb.1:
	tbnz	w21, #4, LBB0_14
LBB0_2:
	tbnz	w21, #8, LBB0_15
LBB0_3:
	tbnz	w21, #16, LBB0_16
LBB0_4:
	tbnz	w21, #23, LBB0_17
LBB0_5:
	tbnz	w21, #24, LBB0_18
LBB0_6:
	tbnz	w21, #27, LBB0_19
LBB0_7:
	tbnz	w21, #28, LBB0_20
LBB0_8:
	tbnz	w21, #29, LBB0_24
LBB0_9:
	tbnz	w21, #30, LBB0_28
LBB0_10:
	tbnz	w21, #31, LBB0_29
LBB0_11:
	cbz	w21, LBB0_30
LBB0_12:
	str	x21, [sp]
Lloh0:
	adrp	x1, l_.str.3@PAGE
Lloh1:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_nvkm_error
	mov	x0, x19
	mov	w1, #8512
	mov	x2, x21
	mov	w3, #0
	bl	_nvkm_mask
	mov	x0, x19
	mov	w1, #8448
	mov	x2, x21
	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	_nvkm_wr32
LBB0_13:
	mov	x0, x20
	bl	_gk104_fifo_intr_bind
	mov	x0, x19
	mov	w1, #8448
	mov	w2, #1
	bl	_nvkm_wr32
	and	w21, w21, #0xfffffffe
	tbz	w21, #4, LBB0_2
LBB0_14:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_nvkm_error
	mov	x0, x19
	mov	w1, #8448
	mov	w2, #16
	bl	_nvkm_wr32
	and	w21, w21, #0xffffffef
	tbz	w21, #8, LBB0_3
LBB0_15:
	mov	x0, x20
	bl	_gk104_fifo_intr_sched
	mov	x0, x19
	mov	w1, #8448
	mov	w2, #256
	bl	_nvkm_wr32
	and	w21, w21, #0xfffffeff
	tbz	w21, #16, LBB0_4
LBB0_16:
	mov	x0, x20
	bl	_gk104_fifo_intr_chsw
	mov	x0, x19
	mov	w1, #8448
	mov	w2, #65536
	bl	_nvkm_wr32
	and	w21, w21, #0xfffeffff
	tbz	w21, #23, LBB0_5
LBB0_17:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_nvkm_error
	mov	x0, x19
	mov	w1, #8448
	mov	w2, #8388608
	bl	_nvkm_wr32
	and	w21, w21, #0xff7fffff
	tbz	w21, #24, LBB0_6
LBB0_18:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_nvkm_error
	mov	x0, x19
	mov	w1, #8448
	mov	w2, #16777216
	bl	_nvkm_wr32
	and	w21, w21, #0xfeffffff
	tbz	w21, #27, LBB0_7
LBB0_19:
	mov	x0, x20
	bl	_gk104_fifo_intr_dropped_fault
	mov	x0, x19
	mov	w1, #8448
	mov	w2, #134217728
	bl	_nvkm_wr32
	and	w21, w21, #0xf7ffffff
	tbz	w21, #28, LBB0_8
LBB0_20:
	mov	x0, x19
	mov	w1, #9628
	bl	_nvkm_rd32
	cbz	w0, LBB0_23
; %bb.21:
	mov	x22, x0
	mov	w24, #1
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	___ffs
	mov	x23, x0
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x23
	blr	x8
	lsl	w23, w24, w23
	mov	x0, x19
	mov	w1, #9628
	mov	x2, x23
	bl	_nvkm_wr32
	bics	w22, w22, w23
	b.ne	LBB0_22
LBB0_23:
	and	w21, w21, #0xefffffff
	tbz	w21, #29, LBB0_9
LBB0_24:
	mov	x0, x19
	mov	w1, #9632
	bl	_nvkm_rd32
	cbz	w0, LBB0_27
; %bb.25:
	mov	x22, x0
	mov	w24, #1
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	___ffs
	mov	x23, x0
	mov	x0, x20
	mov	x1, x23
	bl	_gk104_fifo_intr_pbdma_0
	mov	x0, x20
	mov	x1, x23
	bl	_gk104_fifo_intr_pbdma_1
	lsl	w23, w24, w23
	mov	x0, x19
	mov	w1, #9632
	mov	x2, x23
	bl	_nvkm_wr32
	bics	w22, w22, w23
	b.ne	LBB0_26
LBB0_27:
	and	w21, w21, #0xdfffffff
	tbz	w21, #30, LBB0_10
LBB0_28:
	mov	x0, x20
	bl	_gk104_fifo_intr_runlist
	and	w21, w21, #0xbfffffff
	tbz	w21, #31, LBB0_11
LBB0_29:
	mov	x0, x19
	mov	w1, #8448
	mov	w2, #-2147483648
	bl	_nvkm_wr32
	mov	x0, x20
	bl	_gk104_fifo_intr_engine
	and	w21, w21, #0x7fffffff
	cbnz	w21, LBB0_12
LBB0_30:
	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
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PIO_ERROR\n"

l_.str.1:                               ; @.str.1
	.asciz	"FB_FLUSH_TIMEOUT\n"

l_.str.2:                               ; @.str.2
	.asciz	"LB_ERROR\n"

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

	.no_dead_strip	_gk104_fifo_intr
.subsections_via_symbols
