	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rdx
	movq	(%rdi), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rdx
	jl	LBB0_25
## %bb.1:
	movl	$1, %eax
	testq	%rdx, %rdx
	jle	LBB0_25
## %bb.2:
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	callq	_get_unaligned_le32
	movl	%eax, %r14d
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	addl	$4, %esi
	movq	%r13, %rdi
	callq	_skb_pull
	movq	8(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_RX_STS_FL_@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	%r14d, %r15d
	sarl	$16, %r15d
	movl	(%rbx), %r12d
	addl	%r15d, %r12d
	movq	_RX_STS_ES_@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r14d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdx
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rcx
	movl	%r14d, %r8d
	callq	_netif_dbg
	movq	(%rbx), %rax
	incl	28(%rax)
	incl	24(%rax)
	movq	_RX_STS_CRC_@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	20(%rax)
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_ETH_FRAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$12, %eax
	xorl	%edi, %edi
	cmpl	%eax, %r15d
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rsi
	movslq	%r15d, %r14
	cmpq	%r14, %rsi
	je	LBB0_14
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_skb_clone
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, (%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_skb_set_tail_pointer
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_smsc95xx_rx_csum_offload
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %esi
	addl	$-4, %esi
	movq	%rbx, %rdi
	callq	_skb_trim
	leal	24(%r15), %eax
	movl	%eax, 16(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_usbnet_skb_return
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_RX_STS_RF_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_RX_STS_TL_@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%r14d, %ecx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	16(%rax)
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_RX_STS_LE_@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_22
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_RX_STS_FT_@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	jne	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	12(%rax)
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_skb_pull
	cmpq	$0, (%r13)
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	negl	%r12d
	andl	$3, %r12d
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_skb_pull
	cmpq	$0, (%r13)
	jg	LBB0_3
	jmp	LBB0_24
LBB0_12:
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rdx
	leaq	L_.str.1(%rip), %rcx
	movl	%r14d, %r8d
	callq	_netif_dbg
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_16
## %bb.15:
	movq	%r13, %rdi
	callq	_smsc95xx_rx_csum_offload
	movq	(%r13), %rsi
LBB0_16:
	addl	$-4, %esi
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_skb_trim
	addl	$24, %r15d
	movl	%r15d, 16(%r13)
LBB0_24:
	movl	$1, %eax
LBB0_25:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_netdev_warn
	xorl	%eax, %eax
	jmp	LBB0_25
	.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_
	.comm	_rx_err,4,2                     ## @rx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error header=0x%08x\n"

	.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\n"

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

	.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, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	x8, [x1]
	str	x0, [sp]                        ; 8-byte Folded Spill
	ldr	x9, [x0]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_25
LBB0_2:
	cmp	x8, #1
	b.lt	LBB0_24
; %bb.3:
	mov	x19, x1
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]
Lloh6:
	adrp	x21, _rx_err@GOTPAGE
Lloh7:
	ldr	x21, [x21, _rx_err@GOTPAGEOFF]
Lloh8:
	adrp	x26, l_.str@PAGE
Lloh9:
	add	x26, x26, l_.str@PAGEOFF
	movi.2s	v8, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	bl	_get_unaligned_le32
	mov	x23, x0
	ldr	w8, [x24]
	add	w1, w8, #4
	mov	x0, x19
	bl	_skb_pull
	ldr	x28, [x19, #8]
	ldr	w8, [x25]
	and	w8, w8, w23
	asr	w22, w8, #16
	ldr	w8, [x24]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w8, [x27]
	and	w0, w8, w23
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x21]
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	ldr	x2, [x20]
	mov	x0, x20
	mov	x3, x26
	mov	x4, x23
	bl	_netif_dbg
	ldr	x8, [x20]
	ldr	d0, [x8, #24]
	add.2s	v0, v0, v8
	str	d0, [x8, #24]
Lloh10:
	adrp	x9, _RX_STS_CRC_@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RX_STS_CRC_@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w23
	b.eq	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x8, #20]
	add	w9, w9, #1
	str	w9, [x8, #20]
	b	LBB0_18
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh13:
	adrp	x8, _ETH_FRAME_LEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETH_FRAME_LEN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	add	w8, w8, #12
	cmp	w22, w8
	cset	w0, gt
	bl	_unlikely
	cbnz	x0, LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x26
	mov	x26, x24
	mov	x24, x27
	mov	x27, x25
	mov	x25, x21
	ldr	x8, [x19]
	sxtw	x21, w22
	cmp	x8, x21
	b.eq	LBB0_21
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh16:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skb_clone
	mov	x23, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_26
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	stp	x21, x28, [x23]
	mov	x0, x23
	mov	x1, x22
	bl	_skb_set_tail_pointer
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	w8, [x8, #8]
Lloh19:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh20:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_smsc95xx_rx_csum_offload
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	sub	w1, w8, #4
	mov	x0, x23
	bl	_skb_trim
	add	w8, w22, #24
	str	w8, [x23, #16]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x1, x23
	bl	_usbnet_skb_return
	mov	x21, x25
	mov	x25, x27
	mov	x27, x24
	mov	x24, x26
	mov	x26, x20
	b	LBB0_18
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh22:
	adrp	x9, _RX_STS_TL_@GOTPAGE
Lloh23:
	ldr	x9, [x9, _RX_STS_TL_@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _RX_STS_RF_@GOTPAGE
Lloh26:
	ldr	x10, [x10, _RX_STS_RF_@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w23
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x8, #16]
	add	w9, w9, #1
	str	w9, [x8, #16]
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh28:
	adrp	x9, _RX_STS_LE_@GOTPAGE
Lloh29:
	ldr	x9, [x9, _RX_STS_LE_@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w23
	b.eq	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh31:
	adrp	x9, _RX_STS_FT_@GOTPAGE
Lloh32:
	ldr	x9, [x9, _RX_STS_FT_@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w23
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x8, #12]
	add	w9, w9, #1
	str	w9, [x8, #12]
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_skb_pull
	ldr	x8, [x19]
	cbz	x8, LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	add	w8, w8, w22
	neg	w8, w8
	and	w1, w8, #0x3
	mov	x0, x19
	bl	_skb_pull
	ldr	x8, [x19]
	cmp	x8, #0
	b.gt	LBB0_4
	b	LBB0_24
LBB0_20:
	ldr	w1, [x21]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	ldr	x2, [x0]
Lloh34:
	adrp	x3, l_.str.1@PAGE
Lloh35:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x4, x23
	bl	_netif_dbg
	mov	w0, #0
	b	LBB0_25
LBB0_21:
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	ldr	x9, [x9]
	ldr	w9, [x9, #8]
Lloh36:
	adrp	x10, _NETIF_F_RXCSUM@GOTPAGE
Lloh37:
	ldr	x10, [x10, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_23
; %bb.22:
	mov	x0, x19
	bl	_smsc95xx_rx_csum_offload
	ldr	x8, [x19]
LBB0_23:
	sub	w1, w8, #4
	mov	x0, x19
	bl	_skb_trim
	add	w8, w22, #24
	str	w8, [x19, #16]
LBB0_24:
	mov	w0, #1
LBB0_25:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_26:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x0, [x8]
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_netdev_warn
	mov	w0, #0
	b	LBB0_25
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.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_
	.comm	_rx_err,4,2                     ; @rx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error header=0x%08x\n"

	.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\n"

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

	.no_dead_strip	_smsc95xx_rx_fixup
.subsections_via_symbols
