	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encx24j600_receive_packet
_encx24j600_receive_packet:             ## @encx24j600_receive_packet
	.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, %r12
	movq	(%rdi), %r15
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	(%r13), %rsi
	movq	%rax, %rdi
	callq	_skb_reserve
	movq	_RRXDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_skb_put
	movq	(%r14), %rcx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_encx24j600_raw_read
	movq	%r12, %rdi
	callq	_netif_msg_pktdata
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	16(%rbx), %edx
	movl	20(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_dump_packet
LBB0_4:
	movq	%r15, 8(%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_eth_type_trans
	movl	%eax, 4(%rbx)
	movq	_CHECKSUM_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	incl	4(%r15)
	movl	(%r14), %eax
	addl	%eax, (%r15)
	movq	%rbx, %rdi
	callq	_netif_rx
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err_ratelimited
	incl	8(%r15)
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NET_IP_ALIGN,8,3               ## @NET_IP_ALIGN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RX: OOM: packet dropped\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RRXDATA,4,2                    ## @RRXDATA
L_.str.1:                               ## @.str.1
	.asciz	"RX"

	.comm	_CHECKSUM_COMPLETE,4,2          ## @CHECKSUM_COMPLETE
	.no_dead_strip	_encx24j600_receive_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encx24j600_receive_packet
_encx24j600_receive_packet:             ; @encx24j600_receive_packet
	.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	x20, x1
	mov	x22, x0
	ldr	x19, [x0]
	ldr	x8, [x1]
Lloh0:
	adrp	x23, _NET_IP_ALIGN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NET_IP_ALIGN@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	x0, x19
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	x1, [x23]
	bl	_skb_reserve
Lloh2:
	adrp	x8, _RRXDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RRXDATA@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
	ldr	x1, [x20]
	mov	x0, x21
	bl	_skb_put
	mov	x2, x0
	ldr	x3, [x20]
	mov	x0, x22
	mov	x1, x23
	bl	_encx24j600_raw_read
	mov	x0, x22
	bl	_netif_msg_pktdata
	cbz	x0, LBB0_3
; %bb.2:
	ldp	w2, w1, [x21, #16]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dump_packet
LBB0_3:
	str	x19, [x21, #8]
	mov	x0, x21
	mov	x1, x19
	bl	_eth_type_trans
Lloh7:
	adrp	x8, _CHECKSUM_COMPLETE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CHECKSUM_COMPLETE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	stp	w8, w0, [x21]
	ldr	d0, [x19]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x20]
	add.2s	v0, v0, v1
	str	d0, [x19]
	mov	x0, x21
	bl	_netif_rx
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err_ratelimited
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NET_IP_ALIGN,8,3               ; @NET_IP_ALIGN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RX: OOM: packet dropped\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RRXDATA,4,2                    ; @RRXDATA
l_.str.1:                               ; @.str.1
	.asciz	"RX"

	.comm	_CHECKSUM_COMPLETE,4,2          ; @CHECKSUM_COMPLETE
	.no_dead_strip	_encx24j600_receive_packet
.subsections_via_symbols
