	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_interrupt
_cas_interrupt:                         ## @cas_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, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_REG_INTR_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_INTR_TX_ALL@GOTPCREL(%rip), %r12
	movq	_INTR_TX_INTME@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	orl	(%r12), %eax
	testl	%ebx, %eax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_cas_tx
	movl	(%r13), %eax
	orl	(%r12), %eax
	notl	%eax
	andl	%eax, %ebx
LBB0_4:
	movq	_INTR_RX_DONE@GOTPCREL(%rip), %r12
	testl	%ebx, (%r12)
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_cas_rx_ringN
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, %ebx
LBB0_6:
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_cas_handle_irq
LBB0_8:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_INTR_STATUS,8,3            ## @REG_INTR_STATUS
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_INTR_TX_ALL,4,2                ## @INTR_TX_ALL
	.comm	_INTR_TX_INTME,4,2              ## @INTR_TX_INTME
	.comm	_INTR_RX_DONE,4,2               ## @INTR_RX_DONE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_cas_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_interrupt
_cas_interrupt:                         ; @cas_interrupt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _REG_INTR_STATUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REG_INTR_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	cbz	w0, LBB0_8
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x22, _INTR_TX_ALL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _INTR_TX_ALL@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh5:
	adrp	x23, _INTR_TX_INTME@GOTPAGE
Lloh6:
	ldr	x23, [x23, _INTR_TX_INTME@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_cas_tx
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	bic	w21, w21, w8
LBB0_3:
Lloh7:
	adrp	x22, _INTR_RX_DONE@GOTPAGE
Lloh8:
	ldr	x22, [x22, _INTR_RX_DONE@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_cas_rx_ringN
	ldr	w8, [x22]
	bic	w21, w21, w8
LBB0_5:
	cbz	w21, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_cas_handle_irq
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh9:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_INTR_STATUS,8,3            ; @REG_INTR_STATUS
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_INTR_TX_ALL,4,2                ; @INTR_TX_ALL
	.comm	_INTR_TX_INTME,4,2              ; @INTR_TX_INTME
	.comm	_INTR_RX_DONE,4,2               ; @INTR_RX_DONE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_cas_interrupt
.subsections_via_symbols
