	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netdev_intr
_netdev_intr:                           ## @netdev_intr
	.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, %r12
	movl	$0, -44(%rbp)
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	8(%rax), %r14
	leaq	16(%r14), %rbx
	movq	%r14, %rdi
	callq	_spin_lock
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_hw_read_intr
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_hw_ack_intr
	movl	-44(%rbp), %edi
	andl	(%rbx), %edi
	movl	%edi, -44(%rbp)
	movq	_KS884X_INT_TX_MASK@GOTPCREL(%rip), %r13
	andl	(%r13), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_hw_dis_intr_bit
	leaq	8(%r14), %rdi
	callq	_tasklet_schedule
LBB0_4:
	movq	_KS884X_INT_RX@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	andl	-44(%rbp), %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_hw_dis_intr_bit
	leaq	4(%r14), %rdi
	callq	_tasklet_schedule
LBB0_6:
	movq	_KS884X_INT_RX_OVERRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	-44(%rbp), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	incl	(%r12)
	movq	%rbx, %rdi
	callq	_hw_resume_rx
LBB0_8:
	movq	_KS884X_INT_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	-44(%rbp), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_LINK_INT_WORKING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%r14)
	movq	%r15, %rdi
	callq	_port_get_link_speed
LBB0_10:
	movq	_KS884X_INT_RX_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	-44(%rbp), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_handle_rx_stop
LBB0_15:
	movq	%rbx, %rdi
	callq	_hw_ena_intr
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_1:
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_KS884X_INT_TX_STOPPED@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	andl	-44(%rbp), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, 16(%r14)
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_KS_DMA_TX_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r14), %rdi
	callq	_readl
	movq	_DMA_TX_ENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_15
## %bb.14:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_KS884X_INT_TX_MASK,4,2         ## @KS884X_INT_TX_MASK
	.comm	_KS884X_INT_RX,4,2              ## @KS884X_INT_RX
	.comm	_KS884X_INT_RX_OVERRUN,4,2      ## @KS884X_INT_RX_OVERRUN
	.comm	_KS884X_INT_PHY,4,2             ## @KS884X_INT_PHY
	.comm	_LINK_INT_WORKING,4,2           ## @LINK_INT_WORKING
	.comm	_KS884X_INT_RX_STOPPED,4,2      ## @KS884X_INT_RX_STOPPED
	.comm	_KS884X_INT_TX_STOPPED,4,2      ## @KS884X_INT_TX_STOPPED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tx stopped\n"

	.comm	_KS_DMA_TX_CTRL,8,3             ## @KS_DMA_TX_CTRL
	.comm	_DMA_TX_ENABLE,4,2              ## @DMA_TX_ENABLE
L_.str.1:                               ## @.str.1
	.asciz	"Tx disabled\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_netdev_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netdev_intr
_netdev_intr:                           ; @netdev_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x1
	str	wzr, [sp, #12]
	mov	x0, x1
	bl	_netdev_priv
	mov	x21, x0
	ldr	x19, [x0, #8]
	add	x20, x19, #16
	mov	x0, x19
	bl	_spin_lock
	add	x1, sp, #12
	mov	x0, x20
	bl	_hw_read_intr
	ldr	w1, [sp, #12]
	cbz	w1, LBB0_12
; %bb.1:
	mov	x0, x20
	bl	_hw_ack_intr
	ldr	w8, [x20]
	ldr	w9, [sp, #12]
	and	w8, w9, w8
	str	w8, [sp, #12]
Lloh0:
	adrp	x23, _KS884X_INT_TX_MASK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _KS884X_INT_TX_MASK@GOTPAGEOFF]
	ldr	w9, [x23]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_hw_dis_intr_bit
	add	x0, x19, #8
	bl	_tasklet_schedule
LBB0_3:
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x23, _KS884X_INT_RX@GOTPAGE
Lloh3:
	ldr	x23, [x23, _KS884X_INT_RX@GOTPAGEOFF]
	ldr	w9, [x23]
	and	w0, w9, w8
	bl	_likely
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_hw_dis_intr_bit
	add	x0, x19, #4
	bl	_tasklet_schedule
LBB0_5:
	ldr	w8, [sp, #12]
Lloh4:
	adrp	x9, _KS884X_INT_RX_OVERRUN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _KS884X_INT_RX_OVERRUN@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	mov	x0, x20
	bl	_hw_resume_rx
LBB0_7:
	ldr	w8, [sp, #12]
Lloh7:
	adrp	x9, _KS884X_INT_PHY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _KS884X_INT_PHY@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.8:
Lloh10:
	adrp	x8, _LINK_INT_WORKING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LINK_INT_WORKING@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
	mov	x0, x21
	bl	_port_get_link_speed
LBB0_9:
	ldr	w8, [sp, #12]
Lloh13:
	adrp	x9, _KS884X_INT_RX_STOPPED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _KS884X_INT_RX_STOPPED@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.10:
	mov	x0, x20
	bl	_handle_rx_stop
LBB0_11:
	mov	x0, x20
	bl	_hw_ena_intr
	mov	x0, x19
	bl	_spin_unlock
Lloh16:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
	mov	x0, x19
	bl	_spin_unlock
Lloh18:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
	ldr	w8, [sp, #12]
Lloh20:
	adrp	x21, _KS884X_INT_TX_STOPPED@GOTPAGE
Lloh21:
	ldr	x21, [x21, _KS884X_INT_TX_STOPPED@GOTPAGEOFF]
	ldr	w9, [x21]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_11
; %bb.15:
	ldr	w8, [x21]
	ldr	w9, [x19, #16]
	bic	w8, w9, w8
	str	w8, [x19, #16]
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	ldr	x8, [x19, #24]
Lloh24:
	adrp	x9, _KS_DMA_TX_CTRL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _KS_DMA_TX_CTRL@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh27:
	adrp	x8, _DMA_TX_ENABLE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DMA_TX_ENABLE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.16:
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_KS884X_INT_TX_MASK,4,2         ; @KS884X_INT_TX_MASK
	.comm	_KS884X_INT_RX,4,2              ; @KS884X_INT_RX
	.comm	_KS884X_INT_RX_OVERRUN,4,2      ; @KS884X_INT_RX_OVERRUN
	.comm	_KS884X_INT_PHY,4,2             ; @KS884X_INT_PHY
	.comm	_LINK_INT_WORKING,4,2           ; @LINK_INT_WORKING
	.comm	_KS884X_INT_RX_STOPPED,4,2      ; @KS884X_INT_RX_STOPPED
	.comm	_KS884X_INT_TX_STOPPED,4,2      ; @KS884X_INT_TX_STOPPED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tx stopped\n"

	.comm	_KS_DMA_TX_CTRL,8,3             ; @KS_DMA_TX_CTRL
	.comm	_DMA_TX_ENABLE,4,2              ; @DMA_TX_ENABLE
l_.str.1:                               ; @.str.1
	.asciz	"Tx disabled\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_netdev_intr
.subsections_via_symbols
