	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_napi_check
_stmmac_napi_check:                     ## @stmmac_napi_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	%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	%rdi, %rbx
	movl	8(%rdi), %esi
	leaq	24(%rdi), %rdx
	movq	%r14, %rcx
	callq	_stmmac_dma_interrupt_status
	movl	%eax, %r15d
	movq	16(%rbx), %r13
	movq	_handle_rx@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rax
	cmpq	%r14, (%rax)
	jbe	LBB0_4
## %bb.2:
	leaq	4(,%r14,8), %r12
	addq	%r13, %r12
	movq	%r12, %rdi
	callq	_napi_schedule_prep
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_stmmac_disable_dma_irq
	movq	%r12, %rdi
	callq	___napi_schedule_irqoff
	movq	_handle_tx@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, %r15d
LBB0_4:
	movq	_handle_tx@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_7
## %bb.5:
	movq	(%rbx), %rax
	cmpq	%r14, 8(%rax)
	jbe	LBB0_7
## %bb.6:
	leaq	(,%r14,8), %rdi
	addq	%r13, %rdi
	callq	_napi_schedule_irqoff
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_handle_rx,4,2                  ## @handle_rx
	.comm	_handle_tx,4,2                  ## @handle_tx
	.no_dead_strip	_stmmac_napi_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_napi_check
_stmmac_napi_check:                     ; @stmmac_napi_check
	.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	x21, x0
	ldr	w1, [x0, #8]
	add	x2, x0, #24
	mov	x3, x19
	bl	_stmmac_dma_interrupt_status
	mov	x20, x0
	ldr	x23, [x21, #16]
Lloh0:
	adrp	x8, _handle_rx@GOTPAGE
Lloh1:
	ldr	x8, [x8, _handle_rx@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x24, _handle_tx@GOTPAGE
Lloh4:
	ldr	x24, [x24, _handle_tx@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x21]
	ldr	x8, [x8]
	cmp	x8, x19
	b.ls	LBB0_4
; %bb.2:
	add	x8, x23, x19, lsl #3
	add	x22, x8, #4
	mov	x0, x22
	bl	_napi_schedule_prep
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x21, #8]
	mov	x0, x21
	mov	x2, x19
	bl	_stmmac_disable_dma_irq
	mov	x0, x22
	bl	___napi_schedule_irqoff
	ldr	w8, [x24]
	orr	w20, w8, w20
LBB0_4:
	ldr	w8, [x24]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.5:
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	cmp	x8, x19
	b.ls	LBB0_7
; %bb.6:
	add	x0, x23, x19, lsl #3
	bl	_napi_schedule_irqoff
LBB0_7:
	mov	x0, x20
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_handle_rx,4,2                  ; @handle_rx
	.comm	_handle_tx,4,2                  ; @handle_tx
	.no_dead_strip	_stmmac_napi_check
.subsections_via_symbols
