	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_falcon_intr
_nvkm_falcon_intr:                      ## @nvkm_falcon_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_nvkm_falcon
	movq	%rax, %r12
	movq	16(%rax), %r15
	movl	(%rax), %r14d
	leal	28(%r14), %esi
	movq	%r15, %rdi
	callq	_nvkm_rd32
	movl	%eax, %ebx
	leal	8(%r14), %esi
	movq	%r15, %rdi
	callq	_nvkm_rd32
	andl	%ebx, %eax
	sarl	$16, %ebx
	notl	%ebx
	andl	%eax, %ebx
	leal	80(%r14), %esi
	movq	%r15, %rdi
	callq	_nvkm_rd32
	movl	(%r15), %edi
	shll	$12, %eax
	leaq	-40(%rbp), %rdx
	movl	%eax, %esi
	callq	_nvkm_fifo_chan_inst
	movq	%rax, -48(%rbp)
	testb	$64, %bl
	je	LBB0_3
## %bb.1:
	movq	8(%r12), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	*%rcx
	leal	4(%r14), %esi
	movq	%r15, %rdi
	movl	$64, %edx
	callq	_nvkm_wr32
	andl	$-65, %ebx
LBB0_3:
	addq	$16, %r12
	testb	$16, %bl
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_nvkm_debug
	leal	4(%r14), %esi
	movq	%r15, %rdi
	movl	$16, %edx
	callq	_nvkm_wr32
	andl	$-17, %ebx
LBB0_5:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_nvkm_error
	addl	$4, %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_nvkm_wr32
LBB0_7:
	movl	(%r15), %edi
	movq	-40(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_nvkm_fifo_chan_put
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ucode halted\n"

L_.str.1:                               ## @.str.1
	.asciz	"intr %08x\n"

	.no_dead_strip	_nvkm_falcon_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_falcon_intr
_nvkm_falcon_intr:                      ; @nvkm_falcon_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	_nvkm_falcon
	mov	x22, x0
	mov	x20, x0
	ldr	x19, [x20, #16]!
	ldr	w23, [x0]
	add	w1, w23, #28
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x21, x0
	add	w1, w23, #8
	mov	x0, x19
	bl	_nvkm_rd32
	and	w8, w0, w21
	bic	w21, w8, w21, asr #16
	add	w1, w23, #80
	mov	x0, x19
	bl	_nvkm_rd32
	ldr	w8, [x19]
	lsl	w1, w0, #12
	mov	x2, sp
	mov	x0, x8
	bl	_nvkm_fifo_chan_inst
	str	x0, [sp, #8]
	tbz	w21, #6, LBB0_3
; %bb.1:
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x1, x0
	mov	x0, x22
	blr	x8
	add	w1, w23, #4
	mov	x0, x19
	mov	w2, #64
	bl	_nvkm_wr32
	and	w21, w21, #0xffffffbf
LBB0_3:
	tbz	w21, #4, LBB0_5
; %bb.4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_nvkm_debug
	add	w1, w23, #4
	mov	x0, x19
	mov	w2, #16
	bl	_nvkm_wr32
	and	w21, w21, #0xffffffef
LBB0_5:
	cbz	w21, LBB0_7
; %bb.6:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_nvkm_error
	add	w1, w23, #4
	mov	x0, x19
	mov	x2, x21
	bl	_nvkm_wr32
LBB0_7:
	ldr	w0, [x19]
	ldr	x1, [sp]
	add	x2, sp, #8
	bl	_nvkm_fifo_chan_put
	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
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ucode halted\n"

l_.str.1:                               ; @.str.1
	.asciz	"intr %08x\n"

	.no_dead_strip	_nvkm_falcon_intr
.subsections_via_symbols
