	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ethoc_interrupt
_ethoc_interrupt:                       ## @ethoc_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	%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
	movq	_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ethoc_read
	movl	%eax, %r12d
	movq	_INT_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ethoc_read
	movl	%eax, %ebx
	xorl	%edi, %edi
	andl	%r12d, %ebx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r14
	jmp	LBB0_6
LBB0_2:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ethoc_ack_irq
	movq	_INT_MASK_BUSY@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	4(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	incl	(%r14)
LBB0_4:
	movq	_INT_MASK_TX@GOTPCREL(%rip), %rax
	movq	_INT_MASK_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
	testl	%ebx, %esi
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_ethoc_disable_irq
	movq	%r15, %rdi
	callq	_napi_schedule
LBB0_6:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MASK,4,2                   ## @INT_MASK
	.comm	_INT_SOURCE,4,2                 ## @INT_SOURCE
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_INT_MASK_BUSY,4,2              ## @INT_MASK_BUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"packet dropped\n"

	.comm	_INT_MASK_TX,4,2                ## @INT_MASK_TX
	.comm	_INT_MASK_RX,4,2                ## @INT_MASK_RX
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_ethoc_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ethoc_interrupt
_ethoc_interrupt:                       ; @ethoc_interrupt
	.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	x20, x1
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _INT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ethoc_read
	mov	x21, x0
Lloh3:
	adrp	x8, _INT_SOURCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_SOURCE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ethoc_read
	ands	w21, w0, w21
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	bl	_ethoc_ack_irq
Lloh8:
	adrp	x8, _INT_MASK_BUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INT_MASK_BUSY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	add	x0, x20, #4
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_4:
Lloh13:
	adrp	x8, _INT_MASK_TX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INT_MASK_TX@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _INT_MASK_RX@GOTPAGE
Lloh17:
	ldr	x9, [x9, _INT_MASK_RX@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w1, w9, w8
	tst	w1, w21
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_ethoc_disable_irq
	mov	x0, x19
	bl	_napi_schedule
LBB0_6:
Lloh19:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_7:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MASK,4,2                   ; @INT_MASK
	.comm	_INT_SOURCE,4,2                 ; @INT_SOURCE
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_INT_MASK_BUSY,4,2              ; @INT_MASK_BUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"packet dropped\n"

	.comm	_INT_MASK_TX,4,2                ; @INT_MASK_TX
	.comm	_INT_MASK_RX,4,2                ; @INT_MASK_RX
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_ethoc_interrupt
.subsections_via_symbols
