	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cp_interrupt
_cp_interrupt:                          ## @cp_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	xorl	%edi, %edi
	testq	%rsi, %rsi
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_2:
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_spin_lock
	movq	_IntrMask@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpr16
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_16
## %bb.3:
	movq	_IntrStatus@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_cpr16
	testl	%eax, %eax
	je	LBB0_16
## %bb.4:
	movl	%eax, %r15d
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	je	LBB0_16
## %bb.5:
	movq	_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_Cmd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpr8
	movl	%eax, %r12d
	movq	_CpCmd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpr16
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rdx
	movl	%r15d, %r8d
	movl	%r12d, %r9d
	callq	_netif_dbg
	movl	(%r13), %edi
	movq	_cp_rx_intr_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%r15d, %esi
	callq	_cpw16
	movq	%rbx, %rdi
	callq	_netif_running
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_IntrMask@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_cpw16
	movl	$1, %r12d
	jmp	LBB0_16
LBB0_7:
	movq	_RxOK@GOTPCREL(%rip), %rax
	movq	_RxErr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_RxEmpty@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_RxFIFOOvr@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_10
## %bb.8:
	leaq	12(%r14), %r12
	movq	%r12, %rdi
	callq	_napi_schedule_prep
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_IntrMask@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_cp_norx_intr_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cpw16_f
	movq	%r12, %rdi
	callq	___napi_schedule
LBB0_10:
	movq	_TxOK@GOTPCREL(%rip), %rax
	movq	_TxErr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_TxEmpty@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_SWInt@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_cp_tx
LBB0_12:
	movq	_LinkChg@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_14
## %bb.13:
	movq	%r14, %r12
	addq	$8, %r12
	movq	%r14, %rdi
	callq	_netif_msg_link
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_mii_check_media
LBB0_14:
	movq	_PciErr@GOTPCREL(%rip), %rax
	movl	$1, %r12d
	testl	%r15d, (%rax)
	je	LBB0_16
## %bb.15:
	movl	4(%r14), %edi
	movq	_PCI_STATUS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	callq	_pci_read_config_word
	movl	4(%r14), %edi
	movl	(%r13), %esi
	movl	-44(%rbp), %edx
	callq	_pci_write_config_word
	movl	-44(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_netdev_err
LBB0_16:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	%r12d, %edi
	callq	_IRQ_RETVAL
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IntrMask,4,2                   ## @IntrMask
	.comm	_IntrStatus,4,2                 ## @IntrStatus
	.comm	_intr,4,2                       ## @intr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"intr, status %04x cmd %02x cpcmd %04x\n"

	.comm	_Cmd,4,2                        ## @Cmd
	.comm	_CpCmd,4,2                      ## @CpCmd
	.comm	_cp_rx_intr_mask,4,2            ## @cp_rx_intr_mask
	.comm	_RxOK,4,2                       ## @RxOK
	.comm	_RxErr,4,2                      ## @RxErr
	.comm	_RxEmpty,4,2                    ## @RxEmpty
	.comm	_RxFIFOOvr,4,2                  ## @RxFIFOOvr
	.comm	_cp_norx_intr_mask,4,2          ## @cp_norx_intr_mask
	.comm	_TxOK,4,2                       ## @TxOK
	.comm	_TxErr,4,2                      ## @TxErr
	.comm	_TxEmpty,4,2                    ## @TxEmpty
	.comm	_SWInt,4,2                      ## @SWInt
	.comm	_LinkChg,4,2                    ## @LinkChg
	.comm	_PciErr,4,2                     ## @PciErr
	.comm	_PCI_STATUS,4,2                 ## @PCI_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"PCI bus error, status=%04x, PCI status=%04x\n"

	.no_dead_strip	_cp_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cp_interrupt
_cp_interrupt:                          ; @cp_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cmp	x1, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_18
LBB0_2:
	mov	x0, x20
	bl	_netdev_priv
	mov	x19, x0
	bl	_spin_lock
Lloh3:
	adrp	x24, _IntrMask@GOTPAGE
Lloh4:
	ldr	x24, [x24, _IntrMask@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_cpr16
	cbz	w0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x25, _IntrStatus@GOTPAGE
Lloh6:
	ldr	x25, [x25, _IntrStatus@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_cpr16
	cmp	w0, #0
	mov	w8, #65535
	ccmp	w0, w8, #4, ne
	b.ne	LBB0_5
LBB0_4:
	mov	w20, #0
	b	LBB0_17
LBB0_5:
	mov	x21, x0
Lloh7:
	adrp	x8, _intr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _intr@GOTPAGEOFF]
Lloh9:
	ldr	w22, [x8]
Lloh10:
	adrp	x8, _Cmd@GOTPAGE
Lloh11:
	ldr	x8, [x8, _Cmd@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_cpr8
	mov	x23, x0
Lloh13:
	adrp	x8, _CpCmd@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CpCmd@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_cpr16
	mov	x6, x0
Lloh16:
	adrp	x3, l_.str@PAGE
Lloh17:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x4, x21
	mov	x5, x23
	bl	_netif_dbg
	ldr	w0, [x25]
Lloh18:
	adrp	x8, _cp_rx_intr_mask@GOTPAGE
Lloh19:
	ldr	x8, [x8, _cp_rx_intr_mask@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	bic	w1, w21, w8
	bl	_cpw16
	mov	x0, x20
	bl	_netif_running
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x24]
	mov	w1, #0
	bl	_cpw16
	b	LBB0_16
LBB0_7:
Lloh21:
	adrp	x8, _RxOK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RxOK@GOTPAGEOFF]
Lloh23:
	adrp	x9, _RxErr@GOTPAGE
Lloh24:
	ldr	x9, [x9, _RxErr@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh27:
	adrp	x9, _RxEmpty@GOTPAGE
Lloh28:
	ldr	x9, [x9, _RxEmpty@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh30:
	adrp	x9, _RxFIFOOvr@GOTPAGE
Lloh31:
	ldr	x9, [x9, _RxFIFOOvr@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w21
	b.eq	LBB0_10
; %bb.8:
	add	x22, x19, #12
	mov	x0, x22
	bl	_napi_schedule_prep
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w0, [x24]
Lloh33:
	adrp	x8, _cp_norx_intr_mask@GOTPAGE
Lloh34:
	ldr	x8, [x8, _cp_norx_intr_mask@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	bl	_cpw16_f
	mov	x0, x22
	bl	___napi_schedule
LBB0_10:
Lloh36:
	adrp	x8, _TxOK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _TxOK@GOTPAGEOFF]
Lloh38:
	adrp	x9, _TxErr@GOTPAGE
Lloh39:
	ldr	x9, [x9, _TxErr@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh42:
	adrp	x9, _TxEmpty@GOTPAGE
Lloh43:
	ldr	x9, [x9, _TxEmpty@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh45:
	adrp	x9, _SWInt@GOTPAGE
Lloh46:
	ldr	x9, [x9, _SWInt@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w21
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_cp_tx
LBB0_12:
Lloh48:
	adrp	x8, _LinkChg@GOTPAGE
Lloh49:
	ldr	x8, [x8, _LinkChg@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_14
; %bb.13:
	add	x22, x19, #8
	mov	x0, x19
	bl	_netif_msg_link
	mov	x1, x0
	mov	x0, x22
	mov	w2, #0
	bl	_mii_check_media
LBB0_14:
Lloh51:
	adrp	x8, _PciErr@GOTPAGE
Lloh52:
	ldr	x8, [x8, _PciErr@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_16
; %bb.15:
	ldr	w0, [x19, #4]
Lloh54:
	adrp	x22, _PCI_STATUS@GOTPAGE
Lloh55:
	ldr	x22, [x22, _PCI_STATUS@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	bl	_pci_read_config_word
	ldr	w0, [x19, #4]
	ldr	w1, [x22]
	ldr	w2, [sp, #12]
	bl	_pci_write_config_word
	ldr	w3, [sp, #12]
Lloh56:
	adrp	x1, l_.str.1@PAGE
Lloh57:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_netdev_err
LBB0_16:
	mov	w20, #1
LBB0_17:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	bl	_IRQ_RETVAL
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh40
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IntrMask,4,2                   ; @IntrMask
	.comm	_IntrStatus,4,2                 ; @IntrStatus
	.comm	_intr,4,2                       ; @intr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"intr, status %04x cmd %02x cpcmd %04x\n"

	.comm	_Cmd,4,2                        ; @Cmd
	.comm	_CpCmd,4,2                      ; @CpCmd
	.comm	_cp_rx_intr_mask,4,2            ; @cp_rx_intr_mask
	.comm	_RxOK,4,2                       ; @RxOK
	.comm	_RxErr,4,2                      ; @RxErr
	.comm	_RxEmpty,4,2                    ; @RxEmpty
	.comm	_RxFIFOOvr,4,2                  ; @RxFIFOOvr
	.comm	_cp_norx_intr_mask,4,2          ; @cp_norx_intr_mask
	.comm	_TxOK,4,2                       ; @TxOK
	.comm	_TxErr,4,2                      ; @TxErr
	.comm	_TxEmpty,4,2                    ; @TxEmpty
	.comm	_SWInt,4,2                      ; @SWInt
	.comm	_LinkChg,4,2                    ; @LinkChg
	.comm	_PciErr,4,2                     ; @PciErr
	.comm	_PCI_STATUS,4,2                 ; @PCI_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"PCI bus error, status=%04x, PCI status=%04x\n"

	.no_dead_strip	_cp_interrupt
.subsections_via_symbols
