	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_swncq_interrupt
_nv_swncq_interrupt:                    ## @nv_swncq_interrupt
	.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	%rsi, %r15
	leaq	4(%rsi), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	16(%r15), %rax
	movq	_NV_MMIO_BAR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_NV_INT_STATUS_MCP55@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	addq	(%rax,%rcx,8), %rdi
	callq	_readl
	cmpl	$0, (%r15)
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_nv_swncq_host_interrupt
	movl	$1, %r12d
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_NV_INT_PORT_SHIFT_MCP55@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %ebx
	incq	%r14
	movl	(%r15), %eax
	cmpq	%rax, %r14
	jae	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%r14,8), %r13
	cmpq	$0, (%r13)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movl	$65520, %esi                    ## imm = 0xFFF0
	callq	_nv_swncq_irq_clear
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_nv_host_intr
	addl	%eax, %r12d
	jmp	LBB0_8
LBB0_1:
	xorl	%r12d, %r12d
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movl	%r12d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IRQ_RETVAL                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_MMIO_BAR,8,3                ## @NV_MMIO_BAR
	.comm	_NV_INT_STATUS_MCP55,8,3        ## @NV_INT_STATUS_MCP55
	.comm	_NV_INT_PORT_SHIFT_MCP55,4,2    ## @NV_INT_PORT_SHIFT_MCP55
	.no_dead_strip	_nv_swncq_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv_swncq_interrupt
_nv_swncq_interrupt:                    ; @nv_swncq_interrupt
	.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
	mov	x20, x1
	add	x19, x1, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #16]
Lloh0:
	adrp	x9, _NV_MMIO_BAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NV_MMIO_BAR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh3:
	adrp	x9, _NV_INT_STATUS_MCP55@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NV_INT_STATUS_MCP55@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x20]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x21, x0
	mov	x24, #0
	mov	w22, #0
Lloh6:
	adrp	x25, _NV_INT_PORT_SHIFT_MCP55@GOTPAGE
Lloh7:
	ldr	x25, [x25, _NV_INT_PORT_SHIFT_MCP55@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x21
	bl	_nv_swncq_host_interrupt
	mov	w22, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	asr	w21, w21, w8
	add	x24, x24, #1
	ldr	w8, [x20]
	cmp	x24, x8
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x23, [x8, x24, lsl #3]
	ldr	x8, [x23]
	cbnz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w21, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	w1, #65520
	bl	_nv_swncq_irq_clear
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x21
	bl	_nv_host_intr
	add	w22, w22, w0
	b	LBB0_3
LBB0_8:
	mov	w22, #0
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x22
	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	_IRQ_RETVAL
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_MMIO_BAR,8,3                ; @NV_MMIO_BAR
	.comm	_NV_INT_STATUS_MCP55,8,3        ; @NV_INT_STATUS_MCP55
	.comm	_NV_INT_PORT_SHIFT_MCP55,4,2    ; @NV_INT_PORT_SHIFT_MCP55
	.no_dead_strip	_nv_swncq_interrupt
.subsections_via_symbols
