	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_xtensa_intr
_nvkm_xtensa_intr:                      ## @nvkm_xtensa_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
	callq	_nvkm_xtensa
	movq	%rax, %r14
	addq	$16, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rbx
	movl	(%r14), %r15d
	leal	3332(%r15), %esi
	movq	%rbx, %rdi
	callq	_nvkm_rd32
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leal	3104(%r15), %r13d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_nvkm_rd32
	movl	%eax, %r12d
	leal	3112(%r15), %esi
	movq	%rbx, %rdi
	callq	_nvkm_rd32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addl	$3340, %r15d                    ## imm = 0xD0C
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_nvkm_rd32
	movl	%eax, %r15d
	testb	$16, %r12b
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvkm_warn
LBB0_2:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_nvkm_rd32
	cmpl	$65537, -48(%rbp)               ## 4-byte Folded Reload
                                        ## imm = 0x10001
	jne	LBB0_6
## %bb.3:
	cmpl	$512, %r15d                     ## imm = 0x200
	jne	LBB0_6
## %bb.4:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvkm_debug
	movl	$3476, %esi                     ## imm = 0xD94
	addl	(%r14), %esi
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_mask                      ## TAILCALL
LBB0_6:
	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	"Watchdog interrupt, engine hung.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Enabling FIFO_CTRL\n"

	.no_dead_strip	_nvkm_xtensa_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_xtensa_intr
_nvkm_xtensa_intr:                      ; @nvkm_xtensa_intr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	bl	_nvkm_xtensa
	mov	x20, x0
	mov	x21, x0
	ldr	x19, [x21, #16]!
	ldr	w26, [x0]
	add	w1, w26, #3332
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x22, x0
	add	w23, w26, #3104
	mov	x0, x19
	mov	x1, x23
	bl	_nvkm_rd32
	mov	x25, x0
	add	w1, w26, #3112
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x24, x0
	add	w1, w26, #3340
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x26, x0
	tbz	w25, #4, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_nvkm_warn
LBB0_2:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x25
	bl	_nvkm_wr32
	mov	x0, x19
	mov	x1, x23
	bl	_nvkm_rd32
	mov	w8, #65537
	cmp	w22, w8
	b.ne	LBB0_5
; %bb.3:
	cmp	w26, #512
	ccmp	w24, #0, #4, eq
	ccmp	w0, #0, #0, ne
	b.ne	LBB0_5
; %bb.4:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_nvkm_debug
	ldr	w8, [x20]
	add	w1, w8, #3476
	ldr	x8, [x20, #8]
	ldr	w3, [x8]
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_nvkm_mask
LBB0_5:
	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
	ldp	x26, x25, [sp], #80             ; 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	"Watchdog interrupt, engine hung.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Enabling FIFO_CTRL\n"

	.no_dead_strip	_nvkm_xtensa_intr
.subsections_via_symbols
