	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcs7830_rx_fixup
_mcs7830_rx_fixup:                      ## @mcs7830_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rsi), %esi
	movq	(%rdi), %rax
	cmpl	(%rax), %esi
	jge	LBB0_2
## %bb.1:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_2:
	decl	%esi
	movq	%r15, %rdi
	callq	_skb_trim
	movq	8(%r15), %rax
	movslq	(%r15), %rcx
	movl	(%rax,%rcx,4), %r14d
	movq	_MCS7830_RX_FRAME_CORRECT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_9
## %bb.3:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_dbg
	movq	(%rbx), %rax
	incl	16(%rax)
	movq	_MCS7830_RX_SHORT_FRAME@GOTPCREL(%rip), %rcx
	movq	_MCS7830_RX_LENGTH_ERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_MCS7830_RX_LARGE_FRAME@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	testl	%r14d, %edx
	je	LBB0_5
## %bb.4:
	incl	12(%rax)
LBB0_5:
	movq	_MCS7830_RX_ALIGNMENT_ERROR@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_7
## %bb.6:
	incl	8(%rax)
LBB0_7:
	movq	_MCS7830_RX_CRC_ERROR@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_9
## %bb.8:
	incl	4(%rax)
LBB0_9:
	xorl	%eax, %eax
	cmpl	$0, (%r15)
	setg	%al
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected tiny rx frame\n"

	.comm	_MCS7830_RX_FRAME_CORRECT,4,2   ## @MCS7830_RX_FRAME_CORRECT
L_.str.1:                               ## @.str.1
	.asciz	"rx fixup status %x\n"

	.comm	_MCS7830_RX_SHORT_FRAME,4,2     ## @MCS7830_RX_SHORT_FRAME
	.comm	_MCS7830_RX_LENGTH_ERROR,4,2    ## @MCS7830_RX_LENGTH_ERROR
	.comm	_MCS7830_RX_LARGE_FRAME,4,2     ## @MCS7830_RX_LARGE_FRAME
	.comm	_MCS7830_RX_ALIGNMENT_ERROR,4,2 ## @MCS7830_RX_ALIGNMENT_ERROR
	.comm	_MCS7830_RX_CRC_ERROR,4,2       ## @MCS7830_RX_CRC_ERROR
	.no_dead_strip	_mcs7830_rx_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcs7830_rx_fixup
_mcs7830_rx_fixup:                      ; @mcs7830_rx_fixup
	.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	x21, x0
	ldr	w8, [x1]
	ldr	x9, [x0]
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.1:
	ldr	x0, [x21, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	w0, #0
	b	LBB0_10
LBB0_2:
	mov	x19, x1
	sub	w1, w8, #1
	mov	x0, x19
	bl	_skb_trim
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	ldr	w20, [x8, x9, lsl #2]
Lloh2:
	adrp	x8, _MCS7830_RX_FRAME_CORRECT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MCS7830_RX_FRAME_CORRECT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w20, w8
	b.eq	LBB0_9
; %bb.3:
	ldr	x0, [x21, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	ldr	x8, [x21]
	ldr	w9, [x8, #16]
	add	w9, w9, #1
	str	w9, [x8, #16]
Lloh7:
	adrp	x9, _MCS7830_RX_SHORT_FRAME@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MCS7830_RX_SHORT_FRAME@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _MCS7830_RX_LENGTH_ERROR@GOTPAGE
Lloh11:
	ldr	x10, [x10, _MCS7830_RX_LENGTH_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh13:
	adrp	x10, _MCS7830_RX_LARGE_FRAME@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MCS7830_RX_LARGE_FRAME@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w20
	b.eq	LBB0_5
; %bb.4:
	ldr	w9, [x8, #12]
	add	w9, w9, #1
	str	w9, [x8, #12]
LBB0_5:
Lloh16:
	adrp	x9, _MCS7830_RX_ALIGNMENT_ERROR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MCS7830_RX_ALIGNMENT_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_7
; %bb.6:
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
LBB0_7:
Lloh19:
	adrp	x9, _MCS7830_RX_CRC_ERROR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MCS7830_RX_CRC_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_9
; %bb.8:
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
LBB0_9:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, gt
LBB0_10:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected tiny rx frame\n"

	.comm	_MCS7830_RX_FRAME_CORRECT,4,2   ; @MCS7830_RX_FRAME_CORRECT
l_.str.1:                               ; @.str.1
	.asciz	"rx fixup status %x\n"

	.comm	_MCS7830_RX_SHORT_FRAME,4,2     ; @MCS7830_RX_SHORT_FRAME
	.comm	_MCS7830_RX_LENGTH_ERROR,4,2    ; @MCS7830_RX_LENGTH_ERROR
	.comm	_MCS7830_RX_LARGE_FRAME,4,2     ; @MCS7830_RX_LARGE_FRAME
	.comm	_MCS7830_RX_ALIGNMENT_ERROR,4,2 ; @MCS7830_RX_ALIGNMENT_ERROR
	.comm	_MCS7830_RX_CRC_ERROR,4,2       ; @MCS7830_RX_CRC_ERROR
	.no_dead_strip	_mcs7830_rx_fixup
.subsections_via_symbols
