	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv98_crypt_intr
_nv98_crypt_intr:                       ## @nv98_crypt_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, %r14
	callq	_nouveau_fifo
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_nv_engine
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	$552988, %esi                   ## imm = 0x8701C
	callq	_nv_rd32
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$552968, %esi                   ## imm = 0x87008
	callq	_nv_rd32
	andl	%ebx, %eax
	sarl	$16, %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	%r14, %rdi
	movl	$553040, %esi                   ## imm = 0x87050
	callq	_nv_rd32
	movl	%eax, %r12d
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	andl	$1073741823, %r12d              ## imm = 0x3FFFFFFF
	movq	%r14, %rdi
	movl	$553024, %esi                   ## imm = 0x87040
	callq	_nv_rd32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	$553024, %esi                   ## imm = 0x87040
	callq	_nv_rd32
	movl	%eax, %r13d
	movq	%r14, %rdi
	movl	$553028, %esi                   ## imm = 0x87044
	callq	_nv_rd32
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_nouveau_engctx_get
	movq	%r15, %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	*(%r15)
	testb	$64, %bl
	je	LBB0_2
## %bb.1:
	sarl	$16, %r13d
	movl	%r13d, %r15d
	shrl	$11, %r15d
	andl	$7, %r15d
	shll	$2, %r13d
	andl	$8188, %r13d                    ## imm = 0x1FFC
	movzwl	-44(%rbp), %r12d                ## 2-byte Folded Reload
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_nv_error
	movq	_nv98_crypt_isr_error_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_nouveau_enum_print
	movl	-64(%rbp), %r12d                ## 4-byte Reload
	shll	$12, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_nouveau_client_name
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rsp)
	leaq	L_.str.1(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%eax, %ecx
	movl	%r15d, %r8d
	movl	%r13d, %r9d
	callq	_pr_cont
	movq	%r14, %rdi
	movl	$552964, %esi                   ## imm = 0x87004
	movl	$64, %edx
	callq	_nv_wr32
	andl	$-65, %ebx
LBB0_2:
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_nv_error
	movq	%r14, %rdi
	movl	$552964, %esi                   ## imm = 0x87004
	movl	%ebx, %edx
	callq	_nv_wr32
LBB0_4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nouveau_engctx_put             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DISPATCH_ERROR ["

	.comm	_nv98_crypt_isr_error_name,4,2  ## @nv98_crypt_isr_error_name
L_.str.1:                               ## @.str.1
	.asciz	"] ch %d [0x%010llx %s] subc %d mthd 0x%04x data 0x%08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"unhandled intr 0x%08x\n"

	.no_dead_strip	_nv98_crypt_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv98_crypt_intr
_nv98_crypt_intr:                       ; @nv98_crypt_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	w28, #28676
	movk	w28, #8, lsl #16
	bl	_nouveau_fifo
	mov	x22, x0
	mov	x0, x19
	bl	_nv_engine
	mov	x21, x0
	orr	w1, w28, #0x18
	mov	x0, x19
	bl	_nv_rd32
	mov	x20, x0
	add	w1, w28, #4
	mov	x0, x19
	bl	_nv_rd32
	and	w8, w0, w20
	bic	w20, w8, w20, asr #16
	add	w1, w28, #76
	mov	x0, x19
	bl	_nv_rd32
	mov	x23, x0
	and	w27, w0, #0x3fffffff
	add	w24, w28, #60
	mov	x0, x19
	mov	x1, x24
	bl	_nv_rd32
	mov	x25, x0
	mov	x0, x19
	mov	x1, x24
	bl	_nv_rd32
	mov	x26, x0
	orr	w1, w28, #0x40
	mov	x0, x19
	bl	_nv_rd32
	mov	x24, x0
	mov	x0, x21
	mov	x1, x27
	bl	_nouveau_engctx_get
	mov	x21, x0
	ldr	x8, [x22]
	mov	x0, x22
	mov	x1, x21
	blr	x8
	tbz	w20, #6, LBB0_2
; %bb.1:
	mov	x22, x0
	asr	w8, w26, #16
	ubfx	w26, w8, #11, #3
	ubfiz	w27, w8, #2, #11
	and	w25, w25, #0xffff
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nv_error
Lloh2:
	adrp	x8, _nv98_crypt_isr_error_name@GOTPAGE
Lloh3:
	ldr	x8, [x8, _nv98_crypt_isr_error_name@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x25
	bl	_nouveau_enum_print
	lsl	w23, w23, #12
	mov	x0, x21
	bl	_nouveau_client_name
	mov	x3, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	mov	x4, x26
	mov	x5, x27
	mov	x6, x24
	bl	_pr_cont
	mov	x0, x19
	mov	w1, #28676
	movk	w1, #8, lsl #16
	mov	w2, #64
	bl	_nv_wr32
	and	w20, w20, #0xffffffbf
LBB0_2:
	cbz	w20, LBB0_4
; %bb.3:
	str	x20, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_nv_error
	mov	x0, x19
	mov	w1, #28676
	movk	w1, #8, lsl #16
	mov	x2, x20
	bl	_nv_wr32
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_nouveau_engctx_put
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DISPATCH_ERROR ["

	.comm	_nv98_crypt_isr_error_name,4,2  ; @nv98_crypt_isr_error_name
l_.str.1:                               ; @.str.1
	.asciz	"] ch %d [0x%010llx %s] subc %d mthd 0x%04x data 0x%08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"unhandled intr 0x%08x\n"

	.no_dead_strip	_nv98_crypt_intr
.subsections_via_symbols
