	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_check_tunn_csum
_qede_check_tunn_csum:                  ## @qede_check_tunn_csum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMWASCALCULATED_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMWASCALCULATED_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMERROR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMERROR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r8d
	andl	%edi, %eax
	testl	%eax, %eax
	cmovel	%eax, %r8d
	movq	_PARSING_AND_ERR_FLAGS_L4CHKSMWASCALCULATED_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PARSING_AND_ERR_FLAGS_L4CHKSMWASCALCULATED_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	testl	%edi, %eax
	je	LBB0_1
## %bb.2:
	movq	_PARSING_AND_ERR_FLAGS_L4CHKSMERROR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PARSING_AND_ERR_FLAGS_L4CHKSMERROR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, %r8d
	movq	_QEDE_TUNN_CSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	_PARSING_AND_ERR_FLAGS_TUNNELIPHDRERROR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_PARSING_AND_ERR_FLAGS_TUNNELIPHDRERROR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	_PARSING_AND_ERR_FLAGS_IPHDRERROR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_PARSING_AND_ERR_FLAGS_IPHDRERROR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%r8d, %edx
	orl	%esi, %edx
	testl	%edi, %edx
	je	LBB0_4
## %bb.5:
	movq	_QEDE_CSUM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_4:
	movq	_QEDE_CSUM_UNNECESSARY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMWASCALCULATED_MASK,4,2 ## @PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMWASCALCULATED_MASK
	.comm	_PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMWASCALCULATED_SHIFT,4,2 ## @PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMWASCALCULATED_SHIFT
	.comm	_PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMERROR_MASK,4,2 ## @PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMERROR_MASK
	.comm	_PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMERROR_SHIFT,4,2 ## @PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMERROR_SHIFT
	.comm	_PARSING_AND_ERR_FLAGS_L4CHKSMWASCALCULATED_MASK,4,2 ## @PARSING_AND_ERR_FLAGS_L4CHKSMWASCALCULATED_MASK
	.comm	_PARSING_AND_ERR_FLAGS_L4CHKSMWASCALCULATED_SHIFT,4,2 ## @PARSING_AND_ERR_FLAGS_L4CHKSMWASCALCULATED_SHIFT
	.comm	_PARSING_AND_ERR_FLAGS_L4CHKSMERROR_MASK,4,2 ## @PARSING_AND_ERR_FLAGS_L4CHKSMERROR_MASK
	.comm	_PARSING_AND_ERR_FLAGS_L4CHKSMERROR_SHIFT,4,2 ## @PARSING_AND_ERR_FLAGS_L4CHKSMERROR_SHIFT
	.comm	_QEDE_TUNN_CSUM_UNNECESSARY,4,2 ## @QEDE_TUNN_CSUM_UNNECESSARY
	.comm	_PARSING_AND_ERR_FLAGS_TUNNELIPHDRERROR_MASK,4,2 ## @PARSING_AND_ERR_FLAGS_TUNNELIPHDRERROR_MASK
	.comm	_PARSING_AND_ERR_FLAGS_TUNNELIPHDRERROR_SHIFT,4,2 ## @PARSING_AND_ERR_FLAGS_TUNNELIPHDRERROR_SHIFT
	.comm	_PARSING_AND_ERR_FLAGS_IPHDRERROR_MASK,4,2 ## @PARSING_AND_ERR_FLAGS_IPHDRERROR_MASK
	.comm	_PARSING_AND_ERR_FLAGS_IPHDRERROR_SHIFT,4,2 ## @PARSING_AND_ERR_FLAGS_IPHDRERROR_SHIFT
	.comm	_QEDE_CSUM_ERROR,4,2            ## @QEDE_CSUM_ERROR
	.comm	_QEDE_CSUM_UNNECESSARY,4,2      ## @QEDE_CSUM_UNNECESSARY
	.no_dead_strip	_qede_check_tunn_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qede_check_tunn_csum
_qede_check_tunn_csum:                  ; @qede_check_tunn_csum
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMWASCALCULATED_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMWASCALCULATED_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMWASCALCULATED_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMWASCALCULATED_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh6:
	adrp	x9, _PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMERROR_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMERROR_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMERROR_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMERROR_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	tst	w8, w0
	csel	w8, wzr, w9, eq
Lloh12:
	adrp	x9, _PARSING_AND_ERR_FLAGS_L4CHKSMWASCALCULATED_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PARSING_AND_ERR_FLAGS_L4CHKSMWASCALCULATED_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _PARSING_AND_ERR_FLAGS_L4CHKSMWASCALCULATED_SHIFT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _PARSING_AND_ERR_FLAGS_L4CHKSMWASCALCULATED_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	tst	w9, w0
	b.eq	LBB0_2
; %bb.1:
Lloh18:
	adrp	x9, _PARSING_AND_ERR_FLAGS_L4CHKSMERROR_MASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PARSING_AND_ERR_FLAGS_L4CHKSMERROR_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _PARSING_AND_ERR_FLAGS_L4CHKSMERROR_SHIFT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _PARSING_AND_ERR_FLAGS_L4CHKSMERROR_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _QEDE_TUNN_CSUM_UNNECESSARY@GOTPAGE
Lloh25:
	ldr	x9, [x9, _QEDE_TUNN_CSUM_UNNECESSARY@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	b	LBB0_3
LBB0_2:
	mov	w9, #0
LBB0_3:
Lloh27:
	adrp	x10, _PARSING_AND_ERR_FLAGS_TUNNELIPHDRERROR_MASK@GOTPAGE
Lloh28:
	ldr	x10, [x10, _PARSING_AND_ERR_FLAGS_TUNNELIPHDRERROR_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
Lloh30:
	adrp	x11, _PARSING_AND_ERR_FLAGS_TUNNELIPHDRERROR_SHIFT@GOTPAGE
Lloh31:
	ldr	x11, [x11, _PARSING_AND_ERR_FLAGS_TUNNELIPHDRERROR_SHIFT@GOTPAGEOFF]
Lloh32:
	ldr	w11, [x11]
Lloh33:
	adrp	x12, _PARSING_AND_ERR_FLAGS_IPHDRERROR_MASK@GOTPAGE
Lloh34:
	ldr	x12, [x12, _PARSING_AND_ERR_FLAGS_IPHDRERROR_MASK@GOTPAGEOFF]
	lsl	w10, w10, w11
Lloh35:
	ldr	w11, [x12]
Lloh36:
	adrp	x12, _PARSING_AND_ERR_FLAGS_IPHDRERROR_SHIFT@GOTPAGE
Lloh37:
	ldr	x12, [x12, _PARSING_AND_ERR_FLAGS_IPHDRERROR_SHIFT@GOTPAGEOFF]
Lloh38:
	ldr	w12, [x12]
	lsl	w11, w11, w12
	orr	w8, w10, w8
	orr	w8, w8, w11
Lloh39:
	adrp	x10, _QEDE_CSUM_ERROR@GOTPAGE
Lloh40:
	ldr	x10, [x10, _QEDE_CSUM_ERROR@GOTPAGEOFF]
Lloh41:
	adrp	x11, _QEDE_CSUM_UNNECESSARY@GOTPAGE
Lloh42:
	ldr	x11, [x11, _QEDE_CSUM_UNNECESSARY@GOTPAGEOFF]
Lloh43:
	ldr	w10, [x10]
Lloh44:
	ldr	w11, [x11]
	orr	w9, w11, w9
	tst	w8, w0
	csel	w0, w9, w10, eq
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh43
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMWASCALCULATED_MASK,4,2 ; @PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMWASCALCULATED_MASK
	.comm	_PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMWASCALCULATED_SHIFT,4,2 ; @PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMWASCALCULATED_SHIFT
	.comm	_PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMERROR_MASK,4,2 ; @PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMERROR_MASK
	.comm	_PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMERROR_SHIFT,4,2 ; @PARSING_AND_ERR_FLAGS_TUNNELL4CHKSMERROR_SHIFT
	.comm	_PARSING_AND_ERR_FLAGS_L4CHKSMWASCALCULATED_MASK,4,2 ; @PARSING_AND_ERR_FLAGS_L4CHKSMWASCALCULATED_MASK
	.comm	_PARSING_AND_ERR_FLAGS_L4CHKSMWASCALCULATED_SHIFT,4,2 ; @PARSING_AND_ERR_FLAGS_L4CHKSMWASCALCULATED_SHIFT
	.comm	_PARSING_AND_ERR_FLAGS_L4CHKSMERROR_MASK,4,2 ; @PARSING_AND_ERR_FLAGS_L4CHKSMERROR_MASK
	.comm	_PARSING_AND_ERR_FLAGS_L4CHKSMERROR_SHIFT,4,2 ; @PARSING_AND_ERR_FLAGS_L4CHKSMERROR_SHIFT
	.comm	_QEDE_TUNN_CSUM_UNNECESSARY,4,2 ; @QEDE_TUNN_CSUM_UNNECESSARY
	.comm	_PARSING_AND_ERR_FLAGS_TUNNELIPHDRERROR_MASK,4,2 ; @PARSING_AND_ERR_FLAGS_TUNNELIPHDRERROR_MASK
	.comm	_PARSING_AND_ERR_FLAGS_TUNNELIPHDRERROR_SHIFT,4,2 ; @PARSING_AND_ERR_FLAGS_TUNNELIPHDRERROR_SHIFT
	.comm	_PARSING_AND_ERR_FLAGS_IPHDRERROR_MASK,4,2 ; @PARSING_AND_ERR_FLAGS_IPHDRERROR_MASK
	.comm	_PARSING_AND_ERR_FLAGS_IPHDRERROR_SHIFT,4,2 ; @PARSING_AND_ERR_FLAGS_IPHDRERROR_SHIFT
	.comm	_QEDE_CSUM_ERROR,4,2            ; @QEDE_CSUM_ERROR
	.comm	_QEDE_CSUM_UNNECESSARY,4,2      ; @QEDE_CSUM_UNNECESSARY
	.no_dead_strip	_qede_check_tunn_csum
.subsections_via_symbols
