	.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	%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	_INT_MASK_ALL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_ethoc_disable_irq
	movq	_INT_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ethoc_read
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r12), %esi
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
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	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	incl	4(%r15)
LBB0_4:
	movq	_INT_MASK_RX@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	testl	%ebx, %esi
	je	LBB0_7
## %bb.5:
	callq	_napi_schedule_prep
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	callq	___napi_schedule
	jmp	LBB0_8
LBB0_7:
	callq	_ethoc_enable_irq
LBB0_8:
	movq	_INT_MASK_TX@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_ethoc_tx
LBB0_10:
	movl	(%r13), %esi
	notl	%esi
	andl	(%r12), %esi
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
LBB0_11:
	movq	%r15, %rdi
	callq	_ethoc_enable_irq
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MASK_ALL,4,2               ## @INT_MASK_ALL
	.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_RX,4,2                ## @INT_MASK_RX
	.comm	_INT_MASK_TX,4,2                ## @INT_MASK_TX
	.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	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
Lloh0:
	adrp	x22, _INT_MASK_ALL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _INT_MASK_ALL@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_ethoc_disable_irq
Lloh2:
	adrp	x8, _INT_SOURCE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INT_SOURCE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ethoc_read
	mov	x21, x0
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x22]
Lloh5:
	adrp	x20, _IRQ_NONE@GOTPAGE
Lloh6:
	ldr	x20, [x20, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	bl	_ethoc_ack_irq
Lloh7:
	adrp	x8, _INT_MASK_BUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INT_MASK_BUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_4:
Lloh12:
	adrp	x23, _INT_MASK_RX@GOTPAGE
Lloh13:
	ldr	x23, [x23, _INT_MASK_RX@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	tst	w1, w21
	b.eq	LBB0_7
; %bb.5:
	bl	_napi_schedule_prep
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	___napi_schedule
	b	LBB0_8
LBB0_7:
	bl	_ethoc_enable_irq
LBB0_8:
Lloh14:
	adrp	x8, _INT_MASK_TX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INT_MASK_TX@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_ethoc_tx
LBB0_10:
	ldr	w8, [x22]
	ldr	w9, [x23]
	bic	w1, w8, w9
Lloh17:
	adrp	x20, _IRQ_HANDLED@GOTPAGE
Lloh18:
	ldr	x20, [x20, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_11:
	mov	x0, x19
	bl	_ethoc_enable_irq
	ldr	w0, [x20]
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MASK_ALL,4,2               ; @INT_MASK_ALL
	.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_RX,4,2                ; @INT_MASK_RX
	.comm	_INT_MASK_TX,4,2                ; @INT_MASK_TX
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_ethoc_interrupt
.subsections_via_symbols
