	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enc28j60_rx_interrupt
_enc28j60_rx_interrupt:                 ## @enc28j60_rx_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	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_EPKTCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_locked_regb_read
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_netif_msg_intr
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rsi
	movl	%r14d, %ecx
	callq	_netdev_printk
LBB0_3:
	cmpl	(%r15), %r14d
	jle	LBB0_7
## %bb.4:
	movl	%r14d, (%r15)
	movq	%r15, %rdi
	callq	_netif_msg_rx_status
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	(%r15), %ecx
	cmpl	$2, %ecx
	jl	LBB0_7
## %bb.6:
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rsi
	callq	_netdev_printk
LBB0_7:
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.8:
	movl	%r14d, %ebx
	incl	%ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_enc28j60_hw_rx
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_9
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPKTCNT,4,2                    ## @EPKTCNT
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"intRX, pk_cnt: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"RX max_pk_cnt: %d\n"

	.no_dead_strip	_enc28j60_rx_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enc28j60_rx_interrupt
_enc28j60_rx_interrupt:                 ; @enc28j60_rx_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	x19, x0
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _EPKTCNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPKTCNT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_locked_regb_read
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_netif_msg_intr
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x19
	mov	x3, x20
	bl	_netdev_printk
LBB0_3:
	ldr	w8, [x21]
	cmp	w20, w8
	b.le	LBB0_7
; %bb.4:
	str	w20, [x21]
	mov	x0, x21
	bl	_netif_msg_rx_status
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w3, [x21]
	cmp	w3, #1
	b.le	LBB0_7
; %bb.6:
Lloh8:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_netdev_printk
LBB0_7:
	cmp	w20, #1
	b.lt	LBB0_10
; %bb.8:
	add	w21, w20, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_enc28j60_hw_rx
	sub	w21, w21, #1
	cmp	w21, #1
	b.hi	LBB0_9
LBB0_10:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EPKTCNT,4,2                    ; @EPKTCNT
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"intRX, pk_cnt: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"RX max_pk_cnt: %d\n"

	.no_dead_strip	_enc28j60_rx_interrupt
.subsections_via_symbols
