	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc95xx_rx_fixup
_smsc95xx_rx_fixup:                     ## @smsc95xx_rx_fixup
	.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	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rsi), %rax
	testq	%rax, %rax
	jle	LBB0_27
## %bb.1:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %r15
	movq	8(%r13), %rsi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_le32_to_cpus
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	addl	$4, %esi
	movq	%r13, %rdi
	callq	_skb_pull
	movq	8(%r13), %r14
	movl	-44(%rbp), %edi
	movq	_RX_STS_FL_@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%edi, %ebx
	sarl	$16, %ebx
	movl	(%r12), %r12d
	addl	%ebx, %r12d
	movq	_RX_STS_ES_@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %r14
	movq	%r15, %rdi
	callq	_netif_msg_rx_err
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_devdbg
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rax
	incl	16(%rax)
	incl	12(%rax)
	movl	-44(%rbp), %ecx
	movq	_RX_STS_CRC_@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	8(%rax)
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	_ETH_FRAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$12, %eax
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rsi
	movslq	%ebx, %r14
	cmpq	%r14, %rsi
	je	LBB0_16
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_skb_clone
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, (%r15)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_skb_set_tail_pointer
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_smsc95xx_rx_csum_offload
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %esi
	addl	$-4, %esi
	movq	%r15, %rdi
	callq	_skb_trim
	leal	24(%rbx), %eax
	movl	%eax, 16(%r15)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_usbnet_skb_return
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_RX_STS_RF_@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_RX_STS_TL_@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	testl	%ecx, %edx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	4(%rax)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_RX_STS_LE_@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_24
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_RX_STS_FT_@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_24
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	(%rax)
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_skb_pull
	cmpq	$0, (%r13)
	je	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	negl	%r12d
	andl	$3, %r12d
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_skb_pull
	movq	(%r13), %rax
	testq	%rax, %rax
	jg	LBB0_2
	jmp	LBB0_27
LBB0_25:
	xorl	%eax, %eax
LBB0_27:
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_28
## %bb.29:
	movq	(%r13), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_devwarn
	jmp	LBB0_30
LBB0_28:
	movl	$1, %ebx
	jmp	LBB0_30
LBB0_13:
	movq	%r15, %rdi
	callq	_netif_msg_rx_err
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_30
## %bb.14:
	movl	-44(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_devdbg
	jmp	LBB0_30
LBB0_16:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.17:
	movq	%r13, %rdi
	callq	_smsc95xx_rx_csum_offload
	movq	(%r13), %rsi
LBB0_18:
	addl	$-4, %esi
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_skb_trim
	addl	$24, %ebx
	movl	%ebx, 16(%r13)
	movl	$1, %ebx
	jmp	LBB0_30
LBB0_20:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_devwarn
LBB0_30:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NET_IP_ALIGN,4,2               ## @NET_IP_ALIGN
	.comm	_RX_STS_FL_,4,2                 ## @RX_STS_FL_
	.comm	_RX_STS_ES_,4,2                 ## @RX_STS_ES_
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error header=0x%08x"

	.comm	_RX_STS_CRC_,4,2                ## @RX_STS_CRC_
	.comm	_RX_STS_TL_,4,2                 ## @RX_STS_TL_
	.comm	_RX_STS_RF_,4,2                 ## @RX_STS_RF_
	.comm	_RX_STS_LE_,4,2                 ## @RX_STS_LE_
	.comm	_RX_STS_FT_,4,2                 ## @RX_STS_FT_
	.comm	_ETH_FRAME_LEN,4,2              ## @ETH_FRAME_LEN
L_.str.1:                               ## @.str.1
	.asciz	"size err header=0x%08x"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.2:                               ## @.str.2
	.asciz	"Error allocating skb"

L_.str.3:                               ## @.str.3
	.asciz	"invalid rx length<0 %d"

	.no_dead_strip	_smsc95xx_rx_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc95xx_rx_fixup
_smsc95xx_rx_fixup:                     ; @smsc95xx_rx_fixup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x1
	mov	x26, x0
	ldr	x8, [x1]
	cmp	x8, #1
	b.lt	LBB0_20
; %bb.1:
	ldr	x8, [x26, #8]
Lloh0:
	adrp	x24, _NET_IP_ALIGN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh2:
	adrp	x25, _RX_STS_FL_@GOTPAGE
Lloh3:
	ldr	x25, [x25, _RX_STS_FL_@GOTPAGEOFF]
Lloh4:
	adrp	x27, _RX_STS_ES_@GOTPAGE
Lloh5:
	ldr	x27, [x27, _RX_STS_ES_@GOTPAGEOFF]
	ldr	x8, [x8]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	movi.2s	v8, #1
Lloh6:
	adrp	x23, _RX_STS_CRC_@GOTPAGE
Lloh7:
	ldr	x23, [x23, _RX_STS_CRC_@GOTPAGEOFF]
	str	x26, [sp, #8]                   ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x19, #8]
	add	x0, sp, #28
	mov	w2, #4
	bl	_memcpy
	add	x0, sp, #28
	bl	_le32_to_cpus
	ldr	w8, [x24]
	add	w1, w8, #4
	mov	x0, x19
	bl	_skb_pull
	ldr	x28, [x19, #8]
	ldr	w8, [sp, #28]
	ldr	w9, [x25]
	and	w9, w9, w8
	asr	w22, w9, #16
	ldr	w21, [x24]
	ldr	w9, [x27]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x26
	bl	_netif_msg_rx_err
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [sp, #28]
	mov	x0, x26
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_devdbg
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
	ldur	d0, [x8, #12]
	add.2s	v0, v0, v8
	stur	d0, [x8, #12]
	ldr	w9, [sp, #28]
	ldr	w10, [x23]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	b	LBB0_18
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh10:
	adrp	x8, _ETH_FRAME_LEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETH_FRAME_LEN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	add	w8, w8, #12
	cmp	w22, w8
	cset	w0, gt
	bl	_unlikely
	cbnz	x0, LBB0_24
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	sxtw	x26, w22
	cmp	x8, x26
	b.eq	LBB0_26
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x24
	mov	x24, x27
	mov	x27, x25
	mov	x25, x23
Lloh13:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skb_clone
	mov	x23, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_31
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	stp	x26, x28, [x23]
	mov	x0, x23
	mov	x1, x22
	bl	_skb_set_tail_pointer
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_smsc95xx_rx_csum_offload
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	sub	w1, w8, #4
	mov	x0, x23
	bl	_skb_trim
	add	w8, w22, #24
	str	w8, [x23, #16]
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x26
	mov	x1, x23
	bl	_usbnet_skb_return
	mov	x23, x25
	mov	x25, x27
	mov	x27, x24
	mov	x24, x20
	b	LBB0_18
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh16:
	adrp	x10, _RX_STS_TL_@GOTPAGE
Lloh17:
	ldr	x10, [x10, _RX_STS_TL_@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
Lloh19:
	adrp	x11, _RX_STS_RF_@GOTPAGE
Lloh20:
	ldr	x11, [x11, _RX_STS_RF_@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w9
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w10, [x8, #4]
	add	w10, w10, #1
	str	w10, [x8, #4]
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh22:
	adrp	x10, _RX_STS_LE_@GOTPAGE
Lloh23:
	ldr	x10, [x10, _RX_STS_LE_@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh25:
	adrp	x10, _RX_STS_FT_@GOTPAGE
Lloh26:
	ldr	x10, [x10, _RX_STS_FT_@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_skb_pull
	ldr	x8, [x19]
	cbz	x8, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w21, w22
	neg	w8, w8
	and	w1, w8, #0x3
	mov	x0, x19
	bl	_skb_pull
	ldr	x8, [x19]
	cmp	x8, #0
	b.gt	LBB0_2
LBB0_20:
	cmp	x8, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_29
; %bb.21:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x26
LBB0_22:
	bl	_devwarn
LBB0_23:
	mov	w0, #0
	b	LBB0_30
LBB0_24:
	mov	x0, x26
	bl	_netif_msg_rx_err
	cbz	x0, LBB0_30
; %bb.25:
	ldr	w2, [sp, #28]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x26
	bl	_devdbg
	b	LBB0_23
LBB0_26:
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x9, [x9]
	cbz	x9, LBB0_28
; %bb.27:
	mov	x0, x19
	bl	_smsc95xx_rx_csum_offload
	ldr	x8, [x19]
LBB0_28:
	sub	w1, w8, #4
	mov	x0, x19
	bl	_skb_trim
	add	w8, w22, #24
	str	w8, [x19, #16]
LBB0_29:
	mov	w0, #1
LBB0_30:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_31:
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	b	LBB0_22
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_NET_IP_ALIGN,4,2               ; @NET_IP_ALIGN
	.comm	_RX_STS_FL_,4,2                 ; @RX_STS_FL_
	.comm	_RX_STS_ES_,4,2                 ; @RX_STS_ES_
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error header=0x%08x"

	.comm	_RX_STS_CRC_,4,2                ; @RX_STS_CRC_
	.comm	_RX_STS_TL_,4,2                 ; @RX_STS_TL_
	.comm	_RX_STS_RF_,4,2                 ; @RX_STS_RF_
	.comm	_RX_STS_LE_,4,2                 ; @RX_STS_LE_
	.comm	_RX_STS_FT_,4,2                 ; @RX_STS_FT_
	.comm	_ETH_FRAME_LEN,4,2              ; @ETH_FRAME_LEN
l_.str.1:                               ; @.str.1
	.asciz	"size err header=0x%08x"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.2:                               ; @.str.2
	.asciz	"Error allocating skb"

l_.str.3:                               ; @.str.3
	.asciz	"invalid rx length<0 %d"

	.no_dead_strip	_smsc95xx_rx_fixup
.subsections_via_symbols
