	.file	"extr_rx.c_i2400m_rx_msg_hdr_check.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"RX: HW BUG? message with short header (%zu vs %zu bytes expected)\n"
	.align 8
.LC1:
	.string	"RX: HW BUG? message received with unknown barker 0x%08x (buf_size %zu bytes)\n"
	.align 8
.LC2:
	.string	"RX: HW BUG? zero payload packets in message\n"
	.align 8
.LC3:
	.string	"RX: HW BUG? message contains more payload than maximum; ignoring.\n"
	.text
	.p2align 4
	.type	i2400m_rx_msg_hdr_check, @function
i2400m_rx_msg_hdr_check:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, DWORD PTR EIO[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	neg	r13d
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	call	i2400m_dev@PLT
	mov	rbp, rax
	cmp	r12, 15
	jbe	.L9
	mov	edi, DWORD PTR I2400M_D2H_MSG_BARKER[rip]
	mov	r14, QWORD PTR [rbx]
	call	cpu_to_le32@PLT
	cmp	r14, rax
	jne	.L10
	mov	rdi, QWORD PTR 8[rbx]
	test	rdi, rdi
	je	.L11
	call	le16_to_cpu@PLT
	cmp	rax, QWORD PTR I2400M_MAX_PLS_IN_MSG[rip]
	jg	.L12
	xor	r13d, r13d
.L3:
	endbr64
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
	call	le32_to_cpu@PLT
	mov	rcx, r12
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	mov	edx, eax
	xor	eax, eax
	call	dev_err@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdx, r12
	mov	rdi, rax
	xor	eax, eax
	mov	ecx, 16
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	dev_err@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	i2400m_rx_msg_hdr_check, .-i2400m_rx_msg_hdr_check
	.comm	I2400M_MAX_PLS_IN_MSG,8,8
	.comm	I2400M_D2H_MSG_BARKER,4,4
	.comm	EIO,4,4
	.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_rx.c_i2400m_rx_msg_hdr_check.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"RX: HW BUG? message with short header (%zu vs %zu b"
	.ascii	"ytes expected)\012\000"
	.align	2
.LC1:
	.ascii	"RX: HW BUG? message received with unknown barker 0x"
	.ascii	"%08x (buf_size %zu bytes)\012\000"
	.align	2
.LC2:
	.ascii	"RX: HW BUG? zero payload packets in message\012\000"
	.align	2
.LC3:
	.ascii	"RX: HW BUG? message contains more payload than maxi"
	.ascii	"mum; ignoring.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	i2400m_rx_msg_hdr_check, %function
i2400m_rx_msg_hdr_check:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	ldr	r3, .L13
	mov	r5, r1
	ldr	r6, [r3]
	bl	i2400m_dev
	cmp	r4, #7
	rsb	r6, r6, #0
	bls	.L9
	ldr	r3, .L13+4
	mov	r7, r0
	ldr	r0, [r3]
	ldr	r8, [r5]
	bl	cpu_to_le32
	cmp	r8, r0
	bne	.L10
	ldr	r0, [r5, #4]
	cmp	r0, #0
	beq	.L11
.L3:
	bl	le16_to_cpu
	ldr	r3, .L13+8
	ldr	r3, [r3]
	cmp	r0, r3
	movle	r6, #0
	bgt	.L12
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r0, [r5]
	bl	le32_to_cpu
	mov	r3, r4
	mov	r2, r0
	ldr	r1, .L13+12
	mov	r0, r7
	bl	dev_err
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	mov	r2, r4
	mov	r3, #8
	ldr	r1, .L13+16
	bl	dev_err
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r0, r7
	ldr	r1, .L13+20
	bl	dev_err
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r0, r7
	ldr	r1, .L13+24
	bl	dev_err
	b	.L1
.L14:
	.align	2
.L13:
	.word	EIO
	.word	I2400M_D2H_MSG_BARKER
	.word	I2400M_MAX_PLS_IN_MSG
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.size	i2400m_rx_msg_hdr_check, .-i2400m_rx_msg_hdr_check
	.comm	I2400M_MAX_PLS_IN_MSG,4,4
	.comm	I2400M_D2H_MSG_BARKER,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
