	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvd0_disp_intr                 ## -- Begin function nvd0_disp_intr
	.p2align	4, 0x90
_nvd0_disp_intr:                        ## @nvd0_disp_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$6357128, %esi                  ## imm = 0x610088
	callq	_nv_rd32
	movl	%eax, %r14d
	testb	$1, %r14b
	jne	LBB0_1
## %bb.2:
	testb	$2, %r14b
	jne	LBB0_3
LBB0_6:
	testl	$1048576, %r14d                 ## imm = 0x100000
	jne	LBB0_7
	jmp	LBB0_12
LBB0_1:
	movq	%r15, %rdi
	movl	$6357132, %esi                  ## imm = 0x61008C
	callq	_nv_rd32
	movq	%r15, %rdi
	movl	$6357132, %esi                  ## imm = 0x61008C
	movl	%eax, %edx
	callq	_nv_wr32
	andl	$-2, %r14d
	testb	$2, %r14b
	je	LBB0_6
LBB0_3:
	movq	%r15, %rdi
	movl	$6357148, %esi                  ## imm = 0x61009C
	callq	_nv_rd32
	bsfl	%eax, %eax
	movl	$-1, %ebx
	cmovnel	%eax, %ebx
	testl	%ebx, %ebx
	js	LBB0_5
## %bb.4:
	leal	(,%rbx,4), %r12d
	leal	(%r12,%r12,2), %esi
	addl	$6357488, %esi                  ## imm = 0x6101F0
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_nv_rd32
	movl	%eax, %r13d
	leal	(%r12,%r12,2), %esi
	addl	$6357492, %esi                  ## imm = 0x6101F4
	movq	%r15, %rdi
	callq	_nv_rd32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leal	(%r12,%r12,2), %esi
	addl	$6357496, %esi                  ## imm = 0x6101F8
	movq	%r15, %rdi
	callq	_nv_rd32
	movl	%r13d, %ecx
	andl	$4092, %ecx                     ## imm = 0xFFC
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r13d, %r9d
	callq	_nv_error
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	movq	%r15, %rdi
	movl	$6357148, %esi                  ## imm = 0x61009C
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	$-1879048192, %edx              ## imm = 0x90000000
	callq	_nv_wr32
LBB0_5:
	andl	$-3, %r14d
	testl	$1048576, %r14d                 ## imm = 0x100000
	je	LBB0_12
LBB0_7:
	movq	%r15, %rdi
	movl	$6357164, %esi                  ## imm = 0x6100AC
	callq	_nv_rd32
	movl	%eax, %ebx
	andl	$7, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, (%r15)
	leaq	12(%r15), %rdi
	callq	_schedule_work
	movl	(%r15), %edx
	movq	%r15, %rdi
	movl	$6357164, %esi                  ## imm = 0x6100AC
	callq	_nv_wr32
	andl	$-8, %ebx
LBB0_9:
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_nv_info
	movq	%r15, %rdi
	movl	$6357164, %esi                  ## imm = 0x6100AC
	movl	%ebx, %edx
	callq	_nv_wr32
LBB0_11:
	andl	$-1048577, %r14d                ## imm = 0xFFEFFFFF
LBB0_12:
	movl	8(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_19
## %bb.13:
	xorl	%ebx, %ebx
	movl	$6357180, %r12d                 ## imm = 0x6100BC
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_nv_mask
	leal	4(%r12), %esi
	movq	%r15, %rdi
	callq	_nv_rd32
	movl	8(%r15), %eax
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%ebx
	addl	$2048, %r12d                    ## imm = 0x800
	cmpl	%eax, %ebx
	jge	LBB0_19
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edx
	movl	%ebx, %ecx
	shrl	%cl, %edx
	testl	$16777216, %edx                 ## imm = 0x1000000
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_nv_rd32
	testb	$1, %al
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	4(%r15), %edi
	movl	%ebx, %esi
	callq	_nouveau_event_trigger
	jmp	LBB0_17
LBB0_19:
	addq	$24, %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	"chid %d mthd 0x%04x data 0x%08x 0x%08x 0x%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"unknown intr24 0x%08x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvd0_disp_intr                 ; -- Begin function nvd0_disp_intr
	.p2align	2
_nvd0_disp_intr:                        ; @nvd0_disp_intr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	mov	w26, #172
	movk	w26, #97, lsl #16
	sub	w1, w26, #36
	bl	_nv_rd32
	mov	x20, x0
	tbnz	w0, #0, LBB0_3
; %bb.1:
	tbnz	w20, #1, LBB0_4
LBB0_2:
	tbnz	w20, #20, LBB0_7
	b	LBB0_12
LBB0_3:
	sub	w21, w26, #32
	mov	x0, x19
	mov	x1, x21
	bl	_nv_rd32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_nv_wr32
	and	w20, w20, #0xfffffffe
	tbz	w20, #1, LBB0_2
LBB0_4:
	sub	w21, w26, #16
	mov	x0, x19
	mov	x1, x21
	bl	_nv_rd32
	rbit	w8, w0
	clz	w8, w8
	cmp	w0, #0
	csinv	w22, w8, wzr, ne
	tbnz	w22, #31, LBB0_6
; %bb.5:
	mov	w8, #12
	madd	w27, w22, w8, w26
	add	w23, w27, #324
	mov	x0, x19
	mov	x1, x23
	bl	_nv_rd32
	mov	x24, x0
	add	w1, w27, #328
	mov	x0, x19
	bl	_nv_rd32
	mov	x25, x0
	add	w1, w27, #332
	mov	x0, x19
	bl	_nv_rd32
	mov	x6, x0
	and	w3, w24, #0xffc
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	mov	x4, x25
	mov	x5, x24
	bl	_nv_error
	mov	w8, #1
	lsl	w2, w8, w22
	mov	x0, x19
	mov	x1, x21
	bl	_nv_wr32
	mov	x0, x19
	mov	x1, x23
	mov	w2, #-1879048192
	bl	_nv_wr32
LBB0_6:
	and	w20, w20, #0xfffffffd
	tbz	w20, #20, LBB0_12
LBB0_7:
	mov	x0, x19
	mov	w1, #172
	movk	w1, #97, lsl #16
	bl	_nv_rd32
	mov	x21, x0
	ands	w8, w0, #0x7
	b.eq	LBB0_9
; %bb.8:
	str	w8, [x19]
	add	x0, x19, #12
	bl	_schedule_work
	ldr	w2, [x19]
	mov	x0, x19
	mov	w1, #172
	movk	w1, #97, lsl #16
	bl	_nv_wr32
	and	w21, w21, #0xfffffff8
LBB0_9:
	cbz	w21, LBB0_11
; %bb.10:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_nv_info
	mov	x0, x19
	mov	w1, #172
	movk	w1, #97, lsl #16
	mov	x2, x21
	bl	_nv_wr32
LBB0_11:
	and	w20, w20, #0xffefffff
LBB0_12:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.13:
	mov	w21, #0
	add	w22, w26, #16
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	mov	w3, #0
	bl	_nv_mask
	add	w1, w22, #4
	mov	x0, x19
	bl	_nv_rd32
	ldr	w8, [x19, #8]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	w21, w21, #1
	add	w22, w22, #2048
	cmp	w21, w8
	b.ge	LBB0_19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	lsr	w9, w20, w21
	tbz	w9, #24, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_nv_rd32
	tbz	w0, #0, LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_nouveau_event_trigger
	b	LBB0_14
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chid %d mthd 0x%04x data 0x%08x 0x%08x 0x%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"unknown intr24 0x%08x\n"

.subsections_via_symbols
