	.file	"extr_fm10k_mbx.c_fm10k_mbx_validate_msg_hdr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fm10k_mbx_validate_msg_hdr, @function
fm10k_mbx_validate_msg_hdr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	esi, DWORD PTR TYPE[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	edi, DWORD PTR 16[rdi]
	call	FM10K_MSG_HDR_FIELD_GET@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR RSVD0[rip]
	mov	ebp, eax
	call	FM10K_MSG_HDR_FIELD_GET@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR TAIL[rip]
	mov	r12d, eax
	call	FM10K_MSG_HDR_FIELD_GET@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR HEAD[rip]
	mov	r14d, eax
	call	FM10K_MSG_HDR_FIELD_GET@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR CONNECT_SIZE[rip]
	mov	r13d, eax
	call	FM10K_MSG_HDR_FIELD_GET@PLT
	test	r12d, r12d
	jne	.L34
	cmp	ebp, 130
	je	.L4
	jg	.L5
	cmp	ebp, 128
	je	.L6
	cmp	ebp, 129
	jne	.L8
	cmp	DWORD PTR [rbx], r14d
	jne	.L32
.L4:
	test	r13d, r13d
	je	.L18
	mov	edi, DWORD PTR HEAD[rip]
	call	FM10K_MSG_HDR_MASK@PLT
	cmp	eax, r13d
	je	.L18
	mov	edx, DWORD PTR 4[rbx]
	mov	esi, r13d
	mov	rdi, rbx
	call	fm10k_mbx_index_len@PLT
	cmp	eax, DWORD PTR 12[rbx]
	jg	.L18
	test	r14d, r14d
	je	.L32
	mov	edi, DWORD PTR TAIL[rip]
	call	FM10K_MSG_HDR_MASK@PLT
	cmp	eax, r14d
	je	.L32
	mov	esi, DWORD PTR [rbx]
	mov	edx, r14d
	mov	rdi, rbx
	call	fm10k_mbx_index_len@PLT
	cmp	eax, DWORD PTR 8[rbx]
	jl	.L1
.L32:
	mov	r12d, DWORD PTR FM10K_MBX_ERR_TAIL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L5:
	.cfi_restore_state
	cmp	ebp, 131
	jne	.L8
	cmp	DWORD PTR FM10K_VFMBX_MSG_MTU[rip], eax
	jg	.L16
	lea	edx, 1[rax]
	test	edx, eax
	jne	.L16
	.p2align 4,,10
	.p2align 3
.L6:
	test	r13d, r13d
	je	.L18
	mov	edi, DWORD PTR HEAD[rip]
	call	FM10K_MSG_HDR_MASK@PLT
	cmp	eax, r13d
	je	.L18
	test	r14d, r14d
	cmovne	r12d, DWORD PTR FM10K_MBX_ERR_TAIL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L34:
	mov	r12d, DWORD PTR FM10K_MBX_ERR_RSVD0[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L8:
	.cfi_restore_state
	mov	r12d, DWORD PTR FM10K_MBX_ERR_TYPE[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L18:
	.cfi_restore_state
	mov	r12d, DWORD PTR FM10K_MBX_ERR_HEAD[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L16:
	.cfi_restore_state
	mov	r12d, DWORD PTR FM10K_MBX_ERR_SIZE[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	fm10k_mbx_validate_msg_hdr, .-fm10k_mbx_validate_msg_hdr
	.comm	TYPE,4,4
	.comm	TAIL,4,4
	.comm	RSVD0,4,4
	.comm	HEAD,4,4
	.comm	FM10K_VFMBX_MSG_MTU,4,4
	.comm	FM10K_MBX_ERR_TYPE,4,4
	.comm	FM10K_MBX_ERR_TAIL,4,4
	.comm	FM10K_MBX_ERR_SIZE,4,4
	.comm	FM10K_MBX_ERR_RSVD0,4,4
	.comm	FM10K_MBX_ERR_HEAD,4,4
	.comm	CONNECT_SIZE,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_fm10k_mbx.c_fm10k_mbx_validate_msg_hdr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fm10k_mbx_validate_msg_hdr, %function
fm10k_mbx_validate_msg_hdr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L30
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r1, [r3]
	mov	r4, r0
	ldr	r0, [r0, #16]
	bl	FM10K_MSG_HDR_FIELD_GET
	ldr	r2, .L30+4
	mov	r5, r0
	ldr	r1, [r2]
	ldr	r0, [r4, #16]
	bl	FM10K_MSG_HDR_FIELD_GET
	ldr	r9, .L30+8
	mov	r6, r0
	ldr	r1, [r9]
	ldr	r0, [r4, #16]
	bl	FM10K_MSG_HDR_FIELD_GET
	ldr	r10, .L30+12
	mov	r8, r0
	ldr	r1, [r10]
	ldr	r0, [r4, #16]
	bl	FM10K_MSG_HDR_FIELD_GET
	ldr	r3, .L30+16
	mov	r7, r0
	ldr	r1, [r3]
	ldr	r0, [r4, #16]
	bl	FM10K_MSG_HDR_FIELD_GET
	cmp	r6, #0
	bne	.L29
	sub	r3, r5, #128
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L29:
	ldr	r3, .L30+20
	ldr	r6, [r3]
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	cmp	r7, #0
	beq	.L18
	ldr	r0, [r10]
	bl	FM10K_MSG_HDR_MASK
	cmp	r0, r7
	beq	.L18
	mov	r1, r7
	mov	r0, r4
	ldr	r2, [r4, #4]
	bl	fm10k_mbx_index_len
	ldr	r3, [r4, #12]
	cmp	r0, r3
	bgt	.L18
	cmp	r8, #0
	beq	.L27
	ldr	r0, [r9]
	bl	FM10K_MSG_HDR_MASK
	cmp	r0, r8
	beq	.L27
	mov	r2, r8
	mov	r0, r4
	ldr	r1, [r4]
	bl	fm10k_mbx_index_len
	ldr	r3, [r4, #8]
	cmp	r0, r3
	blt	.L1
	b	.L27
.L5:
	ldr	r3, .L30+24
	ldr	r3, [r3]
	cmp	r3, r0
	bgt	.L16
	add	r3, r0, #1
	tst	r3, r0
	bne	.L16
.L9:
	cmp	r7, #0
	beq	.L18
	ldr	r0, [r10]
	bl	FM10K_MSG_HDR_MASK
	cmp	r0, r7
	beq	.L18
	cmp	r8, #0
	beq	.L1
	b	.L27
.L8:
	ldr	r3, [r4]
	cmp	r3, r8
	beq	.L7
.L27:
	ldr	r3, .L30+28
	ldr	r6, [r3]
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	ldr	r3, .L30+32
	ldr	r6, [r3]
	b	.L1
.L18:
	ldr	r3, .L30+36
	ldr	r6, [r3]
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r3, .L30+40
	ldr	r6, [r3]
	b	.L1
.L31:
	.align	2
.L30:
	.word	TYPE
	.word	RSVD0
	.word	TAIL
	.word	HEAD
	.word	CONNECT_SIZE
	.word	FM10K_MBX_ERR_RSVD0
	.word	FM10K_VFMBX_MSG_MTU
	.word	FM10K_MBX_ERR_TAIL
	.word	FM10K_MBX_ERR_SIZE
	.word	FM10K_MBX_ERR_HEAD
	.word	FM10K_MBX_ERR_TYPE
	.size	fm10k_mbx_validate_msg_hdr, .-fm10k_mbx_validate_msg_hdr
	.comm	TYPE,4,4
	.comm	TAIL,4,4
	.comm	RSVD0,4,4
	.comm	HEAD,4,4
	.comm	FM10K_VFMBX_MSG_MTU,4,4
	.comm	FM10K_MBX_ERR_TYPE,4,4
	.comm	FM10K_MBX_ERR_TAIL,4,4
	.comm	FM10K_MBX_ERR_SIZE,4,4
	.comm	FM10K_MBX_ERR_RSVD0,4,4
	.comm	FM10K_MBX_ERR_HEAD,4,4
	.comm	CONNECT_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
