	.file	"extr_mcs7830.c_mcs7830_rx_fixup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unexpected empty rx frame\n"
.LC1:
	.string	"rx fixup status %x\n"
	.text
	.p2align 4
	.type	mcs7830_rx_fixup, @function
mcs7830_rx_fixup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12d, DWORD PTR [rsi]
	test	r12d, r12d
	je	.L10
	mov	rbx, rsi
	lea	esi, -1[r12]
	mov	rdi, rbx
	call	skb_trim@PLT
	movsx	rcx, DWORD PTR [rbx]
	mov	rdx, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR [rdx+rcx*4]
	mov	rax, rcx
	cmp	edx, 32
	jne	.L11
.L4:
	xor	r12d, r12d
	test	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	setg	r12b
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, QWORD PTR 0[rbp]
	lea	rsi, .LC1[rip]
	call	dev_dbg@PLT
	mov	eax, DWORD PTR [rbx]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR [rdi]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mcs7830_rx_fixup, .-mcs7830_rx_fixup
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mcs7830.c_mcs7830_rx_fixup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unexpected empty rx frame\012\000"
	.align	2
.LC1:
	.ascii	"rx fixup status %x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcs7830_rx_fixup, %function
mcs7830_rx_fixup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, [r1]
	mov	r6, r0
	cmp	r4, #0
	beq	.L10
	mov	r5, r1
	sub	r1, r4, #1
	mov	r0, r5
	bl	skb_trim
	ldr	r4, [r5]
	ldr	r3, [r5, #4]
	ldr	r2, [r3, r4, lsl #2]
	cmp	r2, #32
	bne	.L11
.L4:
	cmp	r4, #0
	movle	r4, #0
	movgt	r4, #1
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r0, [r6]
	ldr	r1, .L12
	bl	dev_dbg
	ldr	r4, [r5]
	b	.L4
.L10:
	ldr	r1, .L12+4
	ldr	r0, [r0]
	bl	dev_err
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	.LC0
	.size	mcs7830_rx_fixup, .-mcs7830_rx_fixup
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
