	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function net_rx
_net_rx:                                ## @net_rx
	.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, %r14
	movq	_PP_RxStatus@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_readreg
	movq	_RX_OK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.10:
	movq	_PP_RxLength@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_readreg
	movl	%eax, %r15d
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_alloc_skb
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_skb_put
	movq	_PP_RxFrame@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%r12), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_skb_copy_to_linear_data
	movq	_rx_status@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movq	_ETH_ALEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,8), %r9d
	shll	$8, %r9d
	orl	4(%rax,%rcx,8), %r9d
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movq	%r12, %rdx
	movl	%r15d, %r8d
	callq	_netif_dbg
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_eth_type_trans
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_netif_rx
	incl	4(%r12)
	addl	%r15d, (%r12)
	jmp	LBB0_13
LBB0_1:
	incl	24(%r12)
	movq	_RX_RUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_3
## %bb.2:
	incl	20(%r12)
LBB0_3:
	movq	_RX_EXTRA_DATA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%eax, %edx
	je	LBB0_5
## %bb.4:
	incl	20(%r12)
LBB0_5:
	movq	_RX_CRC_ERROR@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_8
## %bb.6:
	orl	%ecx, %edx
	testl	%eax, %edx
	jne	LBB0_8
## %bb.7:
	incl	16(%r12)
LBB0_8:
	movq	_RX_DRIBBLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.9:
	incl	12(%r12)
	jmp	LBB0_13
LBB0_11:
	incl	8(%r12)
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PP_RxStatus,4,2                ## @PP_RxStatus
	.comm	_RX_OK,4,2                      ## @RX_OK
	.comm	_RX_RUNT,4,2                    ## @RX_RUNT
	.comm	_RX_EXTRA_DATA,4,2              ## @RX_EXTRA_DATA
	.comm	_RX_CRC_ERROR,4,2               ## @RX_CRC_ERROR
	.comm	_RX_DRIBBLE,4,2                 ## @RX_DRIBBLE
	.comm	_PP_RxLength,4,2                ## @PP_RxLength
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_PP_RxFrame,8,3                 ## @PP_RxFrame
	.comm	_rx_status,4,2                  ## @rx_status
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"received %d byte packet of type %x\n"

	.comm	_ETH_ALEN,8,3                   ## @ETH_ALEN
	.no_dead_strip	_net_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function net_rx
_net_rx:                                ; @net_rx
	.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, _PP_RxStatus@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PP_RxStatus@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_readreg
Lloh3:
	adrp	x8, _RX_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RX_OK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _PP_RxLength@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PP_RxLength@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_readreg
	mov	x20, x0
Lloh9:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_alloc_skb
	cbz	x0, LBB0_11
; %bb.2:
	mov	x22, x0
	mov	x1, x20
	bl	_skb_put
	ldr	x8, [x19, #32]
Lloh12:
	adrp	x9, _PP_RxFrame@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PP_RxFrame@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x22
	mov	x2, x20
	bl	_skb_copy_to_linear_data
Lloh15:
	adrp	x8, _rx_status@GOTPAGE
Lloh16:
	ldr	x8, [x8, _rx_status@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh20:
	ldr	x8, [x8]
	add	x8, x9, x8, lsl #3
	ldp	w9, w8, [x8]
	orr	w5, w8, w9, lsl #8
Lloh21:
	adrp	x3, l_.str@PAGE
Lloh22:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	mov	x4, x20
	bl	_netif_dbg
	mov	x0, x22
	mov	x1, x19
	bl	_eth_type_trans
	str	w0, [x22, #8]
	mov	x0, x22
	bl	_netif_rx
	ldr	d0, [x19]
	movi.2s	v1, #1
	mov.s	v1[0], w20
	add.2s	v0, v0, v1
	str	d0, [x19]
	b	LBB0_12
LBB0_3:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
Lloh23:
	adrp	x8, _RX_RUNT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RX_RUNT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:
	ldr	w9, [x19, #20]
	add	w9, w9, #1
	str	w9, [x19, #20]
LBB0_5:
Lloh26:
	adrp	x9, _RX_EXTRA_DATA@GOTPAGE
Lloh27:
	ldr	x9, [x9, _RX_EXTRA_DATA@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_7
; %bb.6:
	ldr	w10, [x19, #20]
	add	w10, w10, #1
	str	w10, [x19, #20]
LBB0_7:
Lloh29:
	adrp	x10, _RX_CRC_ERROR@GOTPAGE
Lloh30:
	ldr	x10, [x10, _RX_CRC_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	and	w10, w10, w0
	cmp	w10, #0
	orr	w8, w9, w8
	and	w8, w8, w0
	ccmp	w8, #0, #0, ne
	b.ne	LBB0_9
; %bb.8:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_9:
Lloh32:
	adrp	x8, _RX_DRIBBLE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _RX_DRIBBLE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_12
; %bb.10:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	b	LBB0_12
LBB0_11:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_12:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_PP_RxStatus,4,2                ; @PP_RxStatus
	.comm	_RX_OK,4,2                      ; @RX_OK
	.comm	_RX_RUNT,4,2                    ; @RX_RUNT
	.comm	_RX_EXTRA_DATA,4,2              ; @RX_EXTRA_DATA
	.comm	_RX_CRC_ERROR,4,2               ; @RX_CRC_ERROR
	.comm	_RX_DRIBBLE,4,2                 ; @RX_DRIBBLE
	.comm	_PP_RxLength,4,2                ; @PP_RxLength
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_PP_RxFrame,8,3                 ; @PP_RxFrame
	.comm	_rx_status,4,2                  ; @rx_status
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"received %d byte packet of type %x\n"

	.comm	_ETH_ALEN,8,3                   ; @ETH_ALEN
	.no_dead_strip	_net_rx
.subsections_via_symbols
