	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ave_irq_handler
_ave_irq_handler:                       ## @ave_irq_handler
	.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, %r15
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_ave_irq_disable_all
	movl	%eax, %r14d
	movq	_AVE_GISR@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	8(%r12), %rdi
	callq	_readl
	movl	%eax, %ebx
	movq	_AVE_GI_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%ebx, %edi
	je	LBB0_2
## %bb.1:
	movq	(%r13), %rsi
	addq	8(%r12), %rsi
	callq	_writel
LBB0_2:
	movq	_AVE_GI_RXERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%ebx, %edi
	je	LBB0_4
## %bb.3:
	movq	(%r13), %rsi
	addq	8(%r12), %rsi
	callq	_writel
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_err
LBB0_4:
	andl	%r14d, %ebx
	je	LBB0_13
## %bb.5:
	movq	_AVE_GI_RXOVF@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	incl	20(%r12)
	movq	%r15, %rdi
	callq	_ave_rxfifo_reset
	jmp	LBB0_13
LBB0_7:
	movq	_AVE_GI_RXDROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%ebx, %edi
	je	LBB0_9
## %bb.8:
	incl	16(%r12)
	movq	(%r13), %rsi
	addq	8(%r12), %rsi
	callq	_writel
LBB0_9:
	movq	_AVE_GI_RXIINT@GOTPCREL(%rip), %r13
	testl	%ebx, (%r13)
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	addq	$4, %rdi
	callq	_napi_schedule
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, %r14d
LBB0_11:
	movq	_AVE_GI_TX@GOTPCREL(%rip), %r13
	testl	%ebx, (%r13)
	je	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_napi_schedule
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, %r14d
LBB0_13:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ave_irq_restore
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVE_GISR,8,3                   ## @AVE_GISR
	.comm	_AVE_GI_PHY,4,2                 ## @AVE_GI_PHY
	.comm	_AVE_GI_RXERR,4,2               ## @AVE_GI_RXERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"receive a packet exceeding frame buffer\n"

	.comm	_AVE_GI_RXOVF,4,2               ## @AVE_GI_RXOVF
	.comm	_AVE_GI_RXDROP,4,2              ## @AVE_GI_RXDROP
	.comm	_AVE_GI_RXIINT,4,2              ## @AVE_GI_RXIINT
	.comm	_AVE_GI_TX,4,2                  ## @AVE_GI_TX
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_ave_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ave_irq_handler
_ave_irq_handler:                       ; @ave_irq_handler
	.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	x19, x1
	mov	x0, x1
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x19
	bl	_ave_irq_disable_all
	mov	x20, x0
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x23, _AVE_GISR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AVE_GISR@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	mov	x22, x0
Lloh2:
	adrp	x8, _AVE_GI_PHY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVE_GI_PHY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	tst	w0, w22
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
LBB0_2:
Lloh5:
	adrp	x8, _AVE_GI_RXERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVE_GI_RXERR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	tst	w0, w22
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x21, #8]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
LBB0_4:
	ands	w22, w22, w20
	b.eq	LBB0_13
; %bb.5:
Lloh10:
	adrp	x8, _AVE_GI_RXOVF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVE_GI_RXOVF@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.6:
	ldr	w8, [x21, #20]
	add	w8, w8, #1
	str	w8, [x21, #20]
	mov	x0, x19
	bl	_ave_rxfifo_reset
	b	LBB0_13
LBB0_7:
Lloh13:
	adrp	x8, _AVE_GI_RXDROP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVE_GI_RXDROP@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	tst	w0, w22
	b.eq	LBB0_9
; %bb.8:
	ldr	w8, [x21, #16]
	add	w8, w8, #1
	str	w8, [x21, #16]
	ldr	x8, [x21, #8]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
LBB0_9:
Lloh16:
	adrp	x23, _AVE_GI_RXIINT@GOTPAGE
Lloh17:
	ldr	x23, [x23, _AVE_GI_RXIINT@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w22
	b.eq	LBB0_11
; %bb.10:
	add	x0, x21, #4
	bl	_napi_schedule
	ldr	w8, [x23]
	bic	w20, w20, w8
LBB0_11:
Lloh18:
	adrp	x23, _AVE_GI_TX@GOTPAGE
Lloh19:
	ldr	x23, [x23, _AVE_GI_TX@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w22
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x21
	bl	_napi_schedule
	ldr	w8, [x23]
	bic	w20, w20, w8
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_ave_irq_restore
Lloh20:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AVE_GISR,8,3                   ; @AVE_GISR
	.comm	_AVE_GI_PHY,4,2                 ; @AVE_GI_PHY
	.comm	_AVE_GI_RXERR,4,2               ; @AVE_GI_RXERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"receive a packet exceeding frame buffer\n"

	.comm	_AVE_GI_RXOVF,4,2               ; @AVE_GI_RXOVF
	.comm	_AVE_GI_RXDROP,4,2              ; @AVE_GI_RXDROP
	.comm	_AVE_GI_RXIINT,4,2              ; @AVE_GI_RXIINT
	.comm	_AVE_GI_TX,4,2                  ; @AVE_GI_TX
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_ave_irq_handler
.subsections_via_symbols
