	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w5100_rx_skb
_w5100_rx_skb:                          ## @w5100_rx_skb
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_W5100_S0_RX_RSR
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_w5100_read16
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_W5100_S0_RX_RD
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_w5100_read16
	movq	%rax, %r12
	leaq	-56(%rbp), %r14
	movl	$2, %ecx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_w5100_readbuf
	movq	%r14, %rdi
	callq	_get_unaligned_be16
	movq	%rax, %r14
	leaq	-2(%rax), %rsi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	callq	_netdev_alloc_skb_ip_align
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_W5100_S0_RX_RD
	addq	%r13, %r12
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_w5100_write16
	movq	_S0_CR_RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_w5100_command
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incl	12(%rax)
LBB0_3:
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_4:
	movq	%r15, %rdi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_skb_put
	leaq	2(%r12), %rsi
	movq	8(%r15), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rcx
	callq	_w5100_readbuf
	movq	%rbx, %rdi
	callq	_W5100_S0_RX_RD
	addq	%r12, %r14
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_w5100_write16
	movq	_S0_CR_RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_w5100_command
	movq	%r15, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_eth_type_trans
	movl	%eax, (%r15)
	incl	8(%rbx)
	addq	%r13, (%rbx)
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_S0_CR_RECV,4,2                 ## @S0_CR_RECV
	.no_dead_strip	_w5100_rx_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w5100_rx_skb
_w5100_rx_skb:                          ; @w5100_rx_skb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_netdev_priv
	mov	x20, x0
	bl	_W5100_S0_RX_RSR
	mov	x1, x0
	mov	x0, x20
	bl	_w5100_read16
	cbz	x0, LBB0_3
; %bb.1:
	mov	x24, x0
	mov	x0, x20
	bl	_W5100_S0_RX_RD
	mov	x1, x0
	mov	x0, x20
	bl	_w5100_read16
	mov	x23, x0
	mov	x2, sp
	mov	x0, x20
	mov	x1, x23
	mov	w3, #2
	bl	_w5100_readbuf
	mov	x0, sp
	bl	_get_unaligned_be16
	mov	x25, x0
	sub	x22, x0, #2
	mov	x0, x19
	mov	x1, x22
	bl	_netdev_alloc_skb_ip_align
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_W5100_S0_RX_RD
	mov	x1, x0
	add	x2, x23, x24
	mov	x0, x20
	bl	_w5100_write16
Lloh3:
	adrp	x8, _S0_CR_RECV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S0_CR_RECV@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_w5100_command
	mov	x21, #0
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	b	LBB0_5
LBB0_3:
	mov	x21, #0
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	mov	x1, x22
	bl	_skb_put
	add	x1, x23, #2
	ldr	x2, [x21, #8]
	mov	x0, x20
	mov	x3, x22
	bl	_w5100_readbuf
	mov	x0, x20
	bl	_W5100_S0_RX_RD
	mov	x1, x0
	add	x2, x25, x23
	mov	x0, x20
	bl	_w5100_write16
Lloh6:
	adrp	x8, _S0_CR_RECV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S0_CR_RECV@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_w5100_command
	mov	x0, x21
	mov	x1, x19
	bl	_eth_type_trans
	str	w0, [x21]
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	ldr	x8, [x19]
	add	x8, x8, x22
	str	x8, [x19]
LBB0_5:
	ldr	x8, [sp, #8]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_S0_CR_RECV,4,2                 ; @S0_CR_RECV
	.no_dead_strip	_w5100_rx_skb
.subsections_via_symbols
