	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ag71xx_interrupt
_ag71xx_interrupt:                      ## @ag71xx_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, %r15
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_AG71XX_REG_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ag71xx_rr
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_ag71xx_dump_intr
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movq	_AG71XX_INT_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_AG71XX_INT_TX_BE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_AG71XX_REG_TX_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX_STATUS_BE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ag71xx_wr
	leaq	4(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_5:
	movq	_AG71XX_INT_RX_BE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_AG71XX_REG_RX_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RX_STATUS_BE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ag71xx_wr
	leaq	4(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
LBB0_7:
	movq	_AG71XX_INT_POLL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	andl	%ebx, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ag71xx_int_disable
	movl	(%r15), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_DBG
	movq	%r14, %rdi
	callq	_napi_schedule
LBB0_9:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ag71xx_debugfs_update_int_stats
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AG71XX_REG_INT_STATUS,4,2      ## @AG71XX_REG_INT_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"raw"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_AG71XX_INT_ERR,4,2             ## @AG71XX_INT_ERR
	.comm	_AG71XX_INT_TX_BE,4,2           ## @AG71XX_INT_TX_BE
	.comm	_AG71XX_REG_TX_STATUS,4,2       ## @AG71XX_REG_TX_STATUS
	.comm	_TX_STATUS_BE,4,2               ## @TX_STATUS_BE
L_.str.1:                               ## @.str.1
	.asciz	"TX BUS error\n"

	.comm	_AG71XX_INT_RX_BE,4,2           ## @AG71XX_INT_RX_BE
	.comm	_AG71XX_REG_RX_STATUS,4,2       ## @AG71XX_REG_RX_STATUS
	.comm	_RX_STATUS_BE,4,2               ## @RX_STATUS_BE
L_.str.2:                               ## @.str.2
	.asciz	"RX BUS error\n"

	.comm	_AG71XX_INT_POLL,4,2            ## @AG71XX_INT_POLL
L_.str.3:                               ## @.str.3
	.asciz	"%s: enable polling mode\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ag71xx_interrupt
_ag71xx_interrupt:                      ; @ag71xx_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	x21, x1
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _AG71XX_REG_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AG71XX_REG_INT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ag71xx_rr
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_ag71xx_dump_intr
	cmp	w20, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
Lloh7:
	adrp	x8, _AG71XX_INT_ERR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AG71XX_INT_ERR@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	and	w0, w8, w20
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.3:
Lloh10:
	adrp	x8, _AG71XX_INT_TX_BE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AG71XX_INT_TX_BE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
Lloh13:
	adrp	x8, _AG71XX_REG_TX_STATUS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AG71XX_REG_TX_STATUS@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _TX_STATUS_BE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TX_STATUS_BE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ag71xx_wr
	add	x0, x21, #4
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_5:
Lloh21:
	adrp	x8, _AG71XX_INT_RX_BE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AG71XX_INT_RX_BE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
Lloh24:
	adrp	x8, _AG71XX_REG_RX_STATUS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AG71XX_REG_RX_STATUS@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _RX_STATUS_BE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RX_STATUS_BE@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ag71xx_wr
	add	x0, x21, #4
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
LBB0_7:
Lloh32:
	adrp	x22, _AG71XX_INT_POLL@GOTPAGE
Lloh33:
	ldr	x22, [x22, _AG71XX_INT_POLL@GOTPAGEOFF]
	ldr	w8, [x22]
	and	w0, w8, w20
	bl	_likely
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ag71xx_int_disable
	ldr	w1, [x21]
Lloh34:
	adrp	x0, l_.str.3@PAGE
Lloh35:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DBG
	mov	x0, x19
	bl	_napi_schedule
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_ag71xx_debugfs_update_int_stats
Lloh36:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_10:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_AG71XX_REG_INT_STATUS,4,2      ; @AG71XX_REG_INT_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"raw"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_AG71XX_INT_ERR,4,2             ; @AG71XX_INT_ERR
	.comm	_AG71XX_INT_TX_BE,4,2           ; @AG71XX_INT_TX_BE
	.comm	_AG71XX_REG_TX_STATUS,4,2       ; @AG71XX_REG_TX_STATUS
	.comm	_TX_STATUS_BE,4,2               ; @TX_STATUS_BE
l_.str.1:                               ; @.str.1
	.asciz	"TX BUS error\n"

	.comm	_AG71XX_INT_RX_BE,4,2           ; @AG71XX_INT_RX_BE
	.comm	_AG71XX_REG_RX_STATUS,4,2       ; @AG71XX_REG_RX_STATUS
	.comm	_RX_STATUS_BE,4,2               ; @RX_STATUS_BE
l_.str.2:                               ; @.str.2
	.asciz	"RX BUS error\n"

	.comm	_AG71XX_INT_POLL,4,2            ; @AG71XX_INT_POLL
l_.str.3:                               ; @.str.3
	.asciz	"%s: enable polling mode\n"

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