	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_sec2_intr
_nvkm_sec2_intr:                        ## @nvkm_sec2_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
	movq	%rdi, %r14
	callq	_nvkm_sec2
	movq	%rax, %r12
	movq	(%r14), %r15
	movq	(%rax), %rsi
	addq	$28, %rsi
	movq	%r15, %rdi
	callq	_nvkm_rd32
	movl	%eax, %r13d
	movq	(%r12), %rsi
	addq	$8, %rsi
	movq	%r15, %rdi
	callq	_nvkm_rd32
	movl	%eax, %ebx
	movl	%r13d, %eax
	sarl	$16, %eax
	notl	%eax
	andl	%r13d, %ebx
	andl	%eax, %ebx
	testb	$64, %bl
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	addq	$8, %rdi
	callq	_schedule_work
	movq	(%r12), %rsi
	addq	$4, %rsi
	movq	%r15, %rdi
	movl	$64, %edx
	callq	_nvkm_wr32
	andl	$-65, %ebx
LBB0_2:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_nvkm_error
	movq	(%r12), %rsi
	addq	$4, %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_wr32                      ## TAILCALL
LBB0_3:
	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	"unhandled intr %08x\n"

	.no_dead_strip	_nvkm_sec2_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_sec2_intr
_nvkm_sec2_intr:                        ; @nvkm_sec2_intr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
	bl	_nvkm_sec2
	mov	x19, x0
	ldr	x20, [x21]
	ldr	x8, [x0]
	add	x1, x8, #28
	mov	x0, x20
	bl	_nvkm_rd32
	mov	x22, x0
	ldr	x8, [x19]
	add	x1, x8, #8
	mov	x0, x20
	bl	_nvkm_rd32
	bic	w8, w22, w22, asr #16
	and	w22, w8, w0
	tbz	w22, #6, LBB0_2
; %bb.1:
	add	x0, x19, #8
	bl	_schedule_work
	ldr	x8, [x19]
	add	x1, x8, #4
	mov	x0, x20
	mov	w2, #64
	bl	_nvkm_wr32
	and	w22, w22, #0xffffffbf
LBB0_2:
	cbz	w22, LBB0_4
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_nvkm_error
	ldr	x8, [x19]
	add	x1, x8, #4
	mov	x0, x20
	mov	x2, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_nvkm_wr32
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unhandled intr %08x\n"

	.no_dead_strip	_nvkm_sec2_intr
.subsections_via_symbols
