	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arc_emac_intr
_arc_emac_intr:                         ## @arc_emac_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, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_R_STATUS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_arc_reg_get
	movq	_MDIO_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_arc_reg_set
	movq	_RXINT_MASK@GOTPCREL(%rip), %rcx
	movq	_TXINT_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	orl	(%rcx), %eax
	testl	%ebx, %eax
	je	LBB0_3
## %bb.1:
	leaq	4(%r15), %r12
	movq	%r12, %rdi
	callq	_napi_schedule_prep
	movl	%eax, %edi
	callq	_likely
	movq	_RXINT_MASK@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_R_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	orl	(%rcx), %edx
	movq	%r15, %rdi
	callq	_arc_reg_clr
	movq	%r12, %rdi
	callq	___napi_schedule
LBB0_3:
	movq	_ERR_MASK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_12
## %bb.4:
	movq	_MSER_MASK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	addl	$256, (%r14)                    ## imm = 0x100
	addl	$256, 4(%r14)                   ## imm = 0x100
	addl	$256, (%r15)                    ## imm = 0x100
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_napi_schedule
LBB0_6:
	movq	_RXCR_MASK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:
	addl	$256, 8(%r14)                   ## imm = 0x100
	addl	$256, 4(%r14)                   ## imm = 0x100
LBB0_8:
	movq	_RXFR_MASK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:
	addl	$256, 12(%r14)                  ## imm = 0x100
	addl	$256, 4(%r14)                   ## imm = 0x100
LBB0_10:
	movq	_RXFL_MASK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_12
## %bb.11:
	addl	$256, 16(%r14)                  ## imm = 0x100
	addl	$256, 4(%r14)                   ## imm = 0x100
LBB0_12:
	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	_R_STATUS,4,2                   ## @R_STATUS
	.comm	_MDIO_MASK,4,2                  ## @MDIO_MASK
	.comm	_RXINT_MASK,4,2                 ## @RXINT_MASK
	.comm	_TXINT_MASK,4,2                 ## @TXINT_MASK
	.comm	_R_ENABLE,4,2                   ## @R_ENABLE
	.comm	_ERR_MASK,4,2                   ## @ERR_MASK
	.comm	_MSER_MASK,4,2                  ## @MSER_MASK
	.comm	_RXCR_MASK,4,2                  ## @RXCR_MASK
	.comm	_RXFR_MASK,4,2                  ## @RXFR_MASK
	.comm	_RXFL_MASK,4,2                  ## @RXFL_MASK
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_arc_emac_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arc_emac_intr
_arc_emac_intr:                         ; @arc_emac_intr
	.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
Lloh0:
	adrp	x22, _R_STATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _R_STATUS@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_arc_reg_get
Lloh2:
	adrp	x8, _MDIO_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MDIO_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w20, w0, w8
	ldr	w1, [x22]
	mov	x0, x21
	mov	x2, x20
	bl	_arc_reg_set
Lloh5:
	adrp	x23, _RXINT_MASK@GOTPAGE
Lloh6:
	ldr	x23, [x23, _RXINT_MASK@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh7:
	adrp	x24, _TXINT_MASK@GOTPAGE
Lloh8:
	ldr	x24, [x24, _TXINT_MASK@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_3
; %bb.1:
	add	x22, x21, #4
	mov	x0, x22
	bl	_napi_schedule_prep
	bl	_likely
	cbz	x0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _R_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w2, w9, w8
	mov	x0, x21
	bl	_arc_reg_clr
	mov	x0, x22
	bl	___napi_schedule
LBB0_3:
Lloh12:
	adrp	x8, _ERR_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.4:
Lloh15:
	adrp	x8, _MSER_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSER_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	d0, [x19]
	movi.2s	v1, #1, lsl #8
	add.2s	v0, v0, v1
	str	d0, [x19]
	ldr	w8, [x21]
	add	w8, w8, #256
	str	w8, [x21], #4
	mov	x0, x21
	bl	_napi_schedule
LBB0_6:
Lloh18:
	adrp	x8, _RXCR_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RXCR_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
	ldur	d0, [x19, #4]
	movi.2s	v1, #1, lsl #8
	add.2s	v0, v0, v1
	stur	d0, [x19, #4]
LBB0_8:
Lloh21:
	adrp	x8, _RXFR_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RXFR_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	ldr	w8, [x19, #12]
	add	w8, w8, #256
	str	w8, [x19, #12]
	ldr	w8, [x19, #4]
	add	w8, w8, #256
	str	w8, [x19, #4]
LBB0_10:
Lloh24:
	adrp	x8, _RXFL_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RXFL_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.11:
	ldr	w8, [x19, #16]
	add	w8, w8, #256
	str	w8, [x19, #16]
	ldr	w8, [x19, #4]
	add	w8, w8, #256
	str	w8, [x19, #4]
LBB0_12:
Lloh27:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh29:
	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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_R_STATUS,4,2                   ; @R_STATUS
	.comm	_MDIO_MASK,4,2                  ; @MDIO_MASK
	.comm	_RXINT_MASK,4,2                 ; @RXINT_MASK
	.comm	_TXINT_MASK,4,2                 ; @TXINT_MASK
	.comm	_R_ENABLE,4,2                   ; @R_ENABLE
	.comm	_ERR_MASK,4,2                   ; @ERR_MASK
	.comm	_MSER_MASK,4,2                  ; @MSER_MASK
	.comm	_RXCR_MASK,4,2                  ; @RXCR_MASK
	.comm	_RXFR_MASK,4,2                  ; @RXFR_MASK
	.comm	_RXFL_MASK,4,2                  ; @RXFL_MASK
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_arc_emac_intr
.subsections_via_symbols
