	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_mbx_validate_msg_hdr
_fm10k_mbx_validate_msg_hdr:            ## @fm10k_mbx_validate_msg_hdr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	movq	_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FM10K_MSG_HDR_FIELD_GET
	movl	%eax, %r12d
	movl	16(%rbx), %edi
	movq	_RSVD0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FM10K_MSG_HDR_FIELD_GET
	movl	%eax, %r13d
	movl	16(%rbx), %edi
	movq	_TAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FM10K_MSG_HDR_FIELD_GET
	movl	%eax, %r15d
	movl	16(%rbx), %edi
	movq	_HEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FM10K_MSG_HDR_FIELD_GET
	movl	%eax, %r14d
	movl	16(%rbx), %edi
	movq	_CONNECT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FM10K_MSG_HDR_FIELD_GET
                                        ## kill: def $eax killed $eax def $rax
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.1:
	movq	_FM10K_MBX_ERR_RSVD0@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_HEAD@GOTPCREL(%rip), %rsi
	addl	$-128, %r12d
	cmpl	$3, %r12d
	ja	LBB0_10
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%r12,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_6:
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.7:
	movl	(%rsi), %edi
	callq	_FM10K_MSG_HDR_MASK
	cmpl	%eax, %r14d
	je	LBB0_15
## %bb.8:
	testl	%r15d, %r15d
	je	LBB0_3
	jmp	LBB0_21
LBB0_10:
	movq	_FM10K_MBX_ERR_TYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	cmpl	(%rbx), %r15d
	jne	LBB0_21
LBB0_12:
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.13:
	movl	(%rsi), %edi
	callq	_FM10K_MSG_HDR_MASK
	cmpl	%eax, %r14d
	je	LBB0_15
## %bb.14:
	movl	4(%rbx), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_fm10k_mbx_index_len
	cmpl	12(%rbx), %eax
	jle	LBB0_19
LBB0_15:
	movq	_FM10K_MBX_ERR_HEAD@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_16:
	movq	_FM10K_VFMBX_MSG_MTU@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_18
## %bb.17:
	leal	1(%rax), %ecx
	testl	%eax, %ecx
	je	LBB0_6
LBB0_18:
	movq	_FM10K_MBX_ERR_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_19:
	testl	%r15d, %r15d
	je	LBB0_21
## %bb.20:
	movq	_TAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FM10K_MSG_HDR_MASK
	cmpl	%eax, %r15d
	je	LBB0_21
## %bb.22:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_fm10k_mbx_index_len
	xorl	%r15d, %r15d
	cmpl	8(%rbx), %eax
	jl	LBB0_3
LBB0_21:
	movq	_FM10K_MBX_ERR_TAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_TYPE,4,2                       ## @TYPE
	.comm	_RSVD0,4,2                      ## @RSVD0
	.comm	_TAIL,4,2                       ## @TAIL
	.comm	_HEAD,4,2                       ## @HEAD
	.comm	_CONNECT_SIZE,4,2               ## @CONNECT_SIZE
	.comm	_FM10K_MBX_ERR_RSVD0,4,2        ## @FM10K_MBX_ERR_RSVD0
	.comm	_FM10K_MBX_ERR_TAIL,4,2         ## @FM10K_MBX_ERR_TAIL
	.comm	_FM10K_MBX_ERR_HEAD,4,2         ## @FM10K_MBX_ERR_HEAD
	.comm	_FM10K_VFMBX_MSG_MTU,4,2        ## @FM10K_VFMBX_MSG_MTU
	.comm	_FM10K_MBX_ERR_SIZE,4,2         ## @FM10K_MBX_ERR_SIZE
	.comm	_FM10K_MBX_ERR_TYPE,4,2         ## @FM10K_MBX_ERR_TYPE
	.no_dead_strip	_fm10k_mbx_validate_msg_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_mbx_validate_msg_hdr
_fm10k_mbx_validate_msg_hdr:            ; @fm10k_mbx_validate_msg_hdr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x8, _TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_FM10K_MSG_HDR_FIELD_GET
	mov	x22, x0
	ldr	w0, [x19, #16]
Lloh3:
	adrp	x8, _RSVD0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RSVD0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_FM10K_MSG_HDR_FIELD_GET
	mov	x23, x0
	ldr	w0, [x19, #16]
Lloh6:
	adrp	x24, _TAIL@GOTPAGE
Lloh7:
	ldr	x24, [x24, _TAIL@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_FM10K_MSG_HDR_FIELD_GET
	mov	x20, x0
	ldr	w0, [x19, #16]
Lloh8:
	adrp	x25, _HEAD@GOTPAGE
Lloh9:
	ldr	x25, [x25, _HEAD@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_FM10K_MSG_HDR_FIELD_GET
	mov	x21, x0
	ldr	w0, [x19, #16]
Lloh10:
	adrp	x8, _CONNECT_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CONNECT_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_FM10K_MSG_HDR_FIELD_GET
	cbz	w23, LBB0_4
; %bb.1:
Lloh13:
	adrp	x8, _FM10K_MBX_ERR_RSVD0@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FM10K_MBX_ERR_RSVD0@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_9
; %bb.5:
Lloh15:
	adrp	x9, lJTI0_0@PAGE
Lloh16:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	cbz	w21, LBB0_14
; %bb.7:
	ldr	w0, [x25]
	bl	_FM10K_MSG_HDR_MASK
	cmp	w21, w0
	b.eq	LBB0_14
; %bb.8:
Lloh17:
	adrp	x8, _FM10K_MBX_ERR_TAIL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FM10K_MBX_ERR_TAIL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w20, #0
	csel	w0, wzr, w8, eq
	b	LBB0_3
LBB0_9:
Lloh20:
	adrp	x8, _FM10K_MBX_ERR_TYPE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FM10K_MBX_ERR_TYPE@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
	ldr	w8, [x19]
	cmp	w20, w8
	b.ne	LBB0_19
LBB0_11:
	cbz	w21, LBB0_14
; %bb.12:
	ldr	w0, [x25]
	bl	_FM10K_MSG_HDR_MASK
	cmp	w21, w0
	b.eq	LBB0_14
; %bb.13:
	ldr	w2, [x19, #4]
	mov	x0, x19
	mov	x1, x21
	bl	_fm10k_mbx_index_len
	ldr	w8, [x19, #12]
	cmp	w0, w8
	b.le	LBB0_17
LBB0_14:
Lloh22:
	adrp	x8, _FM10K_MBX_ERR_HEAD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FM10K_MBX_ERR_HEAD@GOTPAGEOFF]
	b	LBB0_2
LBB0_15:
Lloh24:
	adrp	x8, _FM10K_VFMBX_MSG_MTU@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FM10K_VFMBX_MSG_MTU@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w0, w8
	add	w8, w0, #1
	and	w8, w8, w0
	ccmp	w8, #0, #0, ge
	b.eq	LBB0_6
; %bb.16:
Lloh27:
	adrp	x8, _FM10K_MBX_ERR_SIZE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FM10K_MBX_ERR_SIZE@GOTPAGEOFF]
	b	LBB0_2
LBB0_17:
	cbz	w20, LBB0_19
; %bb.18:
	ldr	w0, [x24]
	bl	_FM10K_MSG_HDR_MASK
	cmp	w20, w0
	b.ne	LBB0_20
LBB0_19:
Lloh29:
	adrp	x8, _FM10K_MBX_ERR_TAIL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FM10K_MBX_ERR_TAIL@GOTPAGEOFF]
	b	LBB0_2
LBB0_20:
	ldr	w1, [x19]
	mov	x0, x19
	mov	x2, x20
	bl	_fm10k_mbx_index_len
	ldr	w8, [x19, #8]
Lloh31:
	adrp	x9, _FM10K_MBX_ERR_TAIL@GOTPAGE
Lloh32:
	ldr	x9, [x9, _FM10K_MBX_ERR_TAIL@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	cmp	w0, w8
	csel	w0, wzr, w9, lt
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_15-LBB0_6)>>2
                                        ; -- End function
	.comm	_TYPE,4,2                       ; @TYPE
	.comm	_RSVD0,4,2                      ; @RSVD0
	.comm	_TAIL,4,2                       ; @TAIL
	.comm	_HEAD,4,2                       ; @HEAD
	.comm	_CONNECT_SIZE,4,2               ; @CONNECT_SIZE
	.comm	_FM10K_MBX_ERR_RSVD0,4,2        ; @FM10K_MBX_ERR_RSVD0
	.comm	_FM10K_MBX_ERR_TAIL,4,2         ; @FM10K_MBX_ERR_TAIL
	.comm	_FM10K_MBX_ERR_HEAD,4,2         ; @FM10K_MBX_ERR_HEAD
	.comm	_FM10K_VFMBX_MSG_MTU,4,2        ; @FM10K_VFMBX_MSG_MTU
	.comm	_FM10K_MBX_ERR_SIZE,4,2         ; @FM10K_MBX_ERR_SIZE
	.comm	_FM10K_MBX_ERR_TYPE,4,2         ; @FM10K_MBX_ERR_TYPE
	.no_dead_strip	_fm10k_mbx_validate_msg_hdr
.subsections_via_symbols
