	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_abnormal_irq
_cas_abnormal_irq:                      ## @cas_abnormal_irq
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_INTR_RX_TAG_ERROR@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %r8
	jmp	LBB0_2
LBB0_3:
	movq	_INTR_RX_LEN_MISMATCH@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %r8
LBB0_2:
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	32(%rbx), %ecx
	movq	%rbx, %rdi
	callq	_netif_printk
	movq	16(%rbx), %rdi
	callq	_spin_lock
	movq	24(%rbx), %rax
	incl	(%rax)
	movq	16(%rbx), %rdi
	callq	_spin_unlock
LBB0_17:
	leaq	4(%rbx), %rdi
	callq	_atomic_inc
	leaq	8(%rbx), %rdi
	callq	_atomic_inc
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	%rbx, %rdi
	callq	_schedule_work
	movl	$1, %r12d
LBB0_18:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_INTR_PCS_STATUS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_cas_pcs_interrupt
	testq	%rax, %rax
	jne	LBB0_17
LBB0_7:
	movq	_INTR_TX_MAC_STATUS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_cas_txmac_interrupt
	testq	%rax, %rax
	jne	LBB0_17
LBB0_9:
	movq	_INTR_RX_MAC_STATUS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_cas_rxmac_interrupt
	testq	%rax, %rax
	jne	LBB0_17
LBB0_11:
	movq	_INTR_MAC_CTRL_STATUS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_cas_mac_interrupt
	testq	%rax, %rax
	jne	LBB0_17
LBB0_13:
	movq	_INTR_MIF_STATUS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_cas_mif_interrupt
	testq	%rax, %rax
	jne	LBB0_17
LBB0_15:
	movq	_INTR_PCI_ERROR_STATUS@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	testl	%r14d, (%rax)
	je	LBB0_18
## %bb.16:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_cas_pci_interrupt
	testq	%rax, %rax
	jne	LBB0_17
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_INTR_RX_TAG_ERROR,4,2          ## @INTR_RX_TAG_ERROR
	.comm	_rx_err,4,2                     ## @rx_err
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"corrupt rx tag framing\n"

	.comm	_INTR_RX_LEN_MISMATCH,4,2       ## @INTR_RX_LEN_MISMATCH
L_.str.1:                               ## @.str.1
	.asciz	"length mismatch for rx frame\n"

	.comm	_INTR_PCS_STATUS,4,2            ## @INTR_PCS_STATUS
	.comm	_INTR_TX_MAC_STATUS,4,2         ## @INTR_TX_MAC_STATUS
	.comm	_INTR_RX_MAC_STATUS,4,2         ## @INTR_RX_MAC_STATUS
	.comm	_INTR_MAC_CTRL_STATUS,4,2       ## @INTR_MAC_CTRL_STATUS
	.comm	_INTR_MIF_STATUS,4,2            ## @INTR_MIF_STATUS
	.comm	_INTR_PCI_ERROR_STATUS,4,2      ## @INTR_PCI_ERROR_STATUS
L_.str.2:                               ## @.str.2
	.asciz	"reset called in cas_abnormal_irq [0x%x]\n"

	.comm	_CAS_RESET_ALL,4,2              ## @CAS_RESET_ALL
	.no_dead_strip	_cas_abnormal_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_abnormal_irq
_cas_abnormal_irq:                      ; @cas_abnormal_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _INTR_RX_TAG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTR_RX_TAG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x4, l_.str@PAGE
Lloh4:
	add	x4, x4, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x8, _INTR_RX_LEN_MISMATCH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INTR_RX_LEN_MISMATCH@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.3:
Lloh8:
	adrp	x4, l_.str.1@PAGE
Lloh9:
	add	x4, x4, l_.str.1@PAGEOFF
LBB0_4:
Lloh10:
	adrp	x8, _rx_err@GOTPAGE
Lloh11:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	w3, [x19, #32]
	mov	x0, x19
	bl	_netif_printk
	ldr	x0, [x19, #16]
	bl	_spin_lock
	ldp	x0, x8, [x19, #16]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	bl	_spin_unlock
LBB0_5:
	add	x0, x19, #4
	bl	_atomic_inc
	add	x0, x19, #8
	bl	_atomic_inc
	str	x21, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	mov	x0, x19
	bl	_schedule_work
	mov	w0, #1
LBB0_6:
	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
	add	sp, sp, #64
	ret
LBB0_7:
Lloh18:
	adrp	x8, _INTR_PCS_STATUS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INTR_PCS_STATUS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_cas_pcs_interrupt
	cbnz	x0, LBB0_5
LBB0_9:
Lloh21:
	adrp	x8, _INTR_TX_MAC_STATUS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _INTR_TX_MAC_STATUS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_cas_txmac_interrupt
	cbnz	x0, LBB0_5
LBB0_11:
Lloh24:
	adrp	x8, _INTR_RX_MAC_STATUS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _INTR_RX_MAC_STATUS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_cas_rxmac_interrupt
	cbnz	x0, LBB0_5
LBB0_13:
Lloh27:
	adrp	x8, _INTR_MAC_CTRL_STATUS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _INTR_MAC_CTRL_STATUS@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_15
; %bb.14:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_cas_mac_interrupt
	cbnz	x0, LBB0_5
LBB0_15:
Lloh30:
	adrp	x8, _INTR_MIF_STATUS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _INTR_MIF_STATUS@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_17
; %bb.16:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_cas_mif_interrupt
	cbnz	x0, LBB0_5
LBB0_17:
Lloh33:
	adrp	x8, _INTR_PCI_ERROR_STATUS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _INTR_PCI_ERROR_STATUS@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_19
; %bb.18:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_cas_pci_interrupt
	cbnz	x0, LBB0_5
	b	LBB0_6
LBB0_19:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_INTR_RX_TAG_ERROR,4,2          ; @INTR_RX_TAG_ERROR
	.comm	_rx_err,4,2                     ; @rx_err
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"corrupt rx tag framing\n"

	.comm	_INTR_RX_LEN_MISMATCH,4,2       ; @INTR_RX_LEN_MISMATCH
l_.str.1:                               ; @.str.1
	.asciz	"length mismatch for rx frame\n"

	.comm	_INTR_PCS_STATUS,4,2            ; @INTR_PCS_STATUS
	.comm	_INTR_TX_MAC_STATUS,4,2         ; @INTR_TX_MAC_STATUS
	.comm	_INTR_RX_MAC_STATUS,4,2         ; @INTR_RX_MAC_STATUS
	.comm	_INTR_MAC_CTRL_STATUS,4,2       ; @INTR_MAC_CTRL_STATUS
	.comm	_INTR_MIF_STATUS,4,2            ; @INTR_MIF_STATUS
	.comm	_INTR_PCI_ERROR_STATUS,4,2      ; @INTR_PCI_ERROR_STATUS
l_.str.2:                               ; @.str.2
	.asciz	"reset called in cas_abnormal_irq [0x%x]\n"

	.comm	_CAS_RESET_ALL,4,2              ; @CAS_RESET_ALL
	.no_dead_strip	_cas_abnormal_irq
.subsections_via_symbols
