	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arc_emac_rx_stall_check
_arc_emac_rx_stall_check:               ## @arc_emac_rx_stall_check
	.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
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	testl	%ebx, %ebx
	je	LBB0_1
LBB0_5:
	movq	$0, 8(%r12)
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.2:
	cmpq	$0, 8(%r12)
	je	LBB0_6
## %bb.3:
	movq	(%r12), %rax
	movq	16(%r12), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_le32_to_cpu
	movq	_FOR_EMAC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_arc_emac_restart
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_FOR_EMAC,4,2                   ## @FOR_EMAC
	.no_dead_strip	_arc_emac_rx_stall_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arc_emac_rx_stall_check
_arc_emac_rx_stall_check:               ; @arc_emac_rx_stall_check
	.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	x22, x2
	mov	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	cbz	w22, LBB0_3
LBB0_1:
	str	xzr, [x19, #8]
LBB0_2:
	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
LBB0_3:
	cbz	w21, LBB0_2
; %bb.4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
Lloh0:
	adrp	x8, _FOR_EMAC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FOR_EMAC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.6:
	mov	x0, x20
	bl	_arc_emac_restart
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FOR_EMAC,4,2                   ; @FOR_EMAC
	.no_dead_strip	_arc_emac_rx_stall_check
.subsections_via_symbols
