	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpmac_irq
_cpmac_irq:                             ## @cpmac_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
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movl	(%rax), %edi
	movq	_CPMAC_MAC_INT_VECTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cpmac_read
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_netif_msg_intr
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_netdev_dbg
LBB0_2:
	movq	_MAC_INT_TX@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_4
## %bb.3:
	movl	%r12d, %esi
	andl	$7, %esi
	movq	%r14, %rdi
	callq	_cpmac_end_xmit
LBB0_4:
	movq	_MAC_INT_RX@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_7
## %bb.5:
	movq	%r15, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_napi_schedule_prep
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	%r12d, %ecx
	shrl	$8, %ecx
	movl	(%r15), %edi
	movq	_CPMAC_RX_INT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andb	$7, %cl
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	callq	_cpmac_write
	movq	%rbx, %rdi
	callq	___napi_schedule
LBB0_7:
	movl	(%r15), %edi
	movq	_CPMAC_MAC_EOI_VECTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movq	_MAC_INT_HOST@GOTPCREL(%rip), %rax
	movq	_MAC_INT_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	andl	%r12d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_cpmac_check_status
LBB0_9:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPMAC_MAC_INT_VECTOR,4,2       ## @CPMAC_MAC_INT_VECTOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interrupt status: 0x%08x\n"

	.comm	_MAC_INT_TX,4,2                 ## @MAC_INT_TX
	.comm	_MAC_INT_RX,4,2                 ## @MAC_INT_RX
	.comm	_CPMAC_RX_INT_CLEAR,4,2         ## @CPMAC_RX_INT_CLEAR
	.comm	_CPMAC_MAC_EOI_VECTOR,4,2       ## @CPMAC_MAC_EOI_VECTOR
	.comm	_MAC_INT_HOST,4,2               ## @MAC_INT_HOST
	.comm	_MAC_INT_STATUS,4,2             ## @MAC_INT_STATUS
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_cpmac_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpmac_irq
_cpmac_irq:                             ; @cpmac_irq
	.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	x19, x1
	mov	x0, x1
	bl	_netdev_priv
	mov	x21, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _CPMAC_MAC_INT_VECTOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPMAC_MAC_INT_VECTOR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_cpmac_read
	mov	x20, x0
	mov	x0, x21
	bl	_netif_msg_intr
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_netdev_dbg
LBB0_2:
Lloh5:
	adrp	x8, _MAC_INT_TX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAC_INT_TX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	and	w1, w20, #0x7
	mov	x0, x19
	bl	_cpmac_end_xmit
LBB0_4:
Lloh8:
	adrp	x8, _MAC_INT_RX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAC_INT_RX@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.5:
	add	x22, x21, #4
	mov	x0, x22
	bl	_napi_schedule_prep
	cbz	x0, LBB0_7
; %bb.6:
	ubfx	w8, w20, #8, #3
	ldr	w0, [x21]
Lloh11:
	adrp	x9, _CPMAC_RX_INT_CLEAR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CPMAC_RX_INT_CLEAR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	mov	w9, #1
	lsl	w2, w9, w8
	bl	_cpmac_write
	mov	x0, x22
	bl	___napi_schedule
LBB0_7:
	ldr	w0, [x21]
Lloh14:
	adrp	x8, _CPMAC_MAC_EOI_VECTOR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CPMAC_MAC_EOI_VECTOR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_cpmac_write
Lloh17:
	adrp	x8, _MAC_INT_HOST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAC_INT_HOST@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _MAC_INT_STATUS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MAC_INT_STATUS@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w0, w8, w20
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_cpmac_check_status
LBB0_9:
Lloh23:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_CPMAC_MAC_INT_VECTOR,4,2       ; @CPMAC_MAC_INT_VECTOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupt status: 0x%08x\n"

	.comm	_MAC_INT_TX,4,2                 ; @MAC_INT_TX
	.comm	_MAC_INT_RX,4,2                 ; @MAC_INT_RX
	.comm	_CPMAC_RX_INT_CLEAR,4,2         ; @CPMAC_RX_INT_CLEAR
	.comm	_CPMAC_MAC_EOI_VECTOR,4,2       ; @CPMAC_MAC_EOI_VECTOR
	.comm	_MAC_INT_HOST,4,2               ; @MAC_INT_HOST
	.comm	_MAC_INT_STATUS,4,2             ; @MAC_INT_STATUS
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_cpmac_irq
.subsections_via_symbols
