	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_tso_check_protocol
_efx_tso_check_protocol:                ## @efx_tso_check_protocol
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %r14
	movq	8(%rdi), %rax
	xorl	%edi, %edi
	cmpq	%r14, (%rax)
	setne	%dil
	callq	_EFX_WARN_ON_ONCE_PARANOID
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r14
	jne	LBB0_2
## %bb.1:
	movq	8(%r12), %rax
	movq	(%rax), %r14
LBB0_2:
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r14
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_ip_hdr
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	movq	_ETH_P_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	xorl	%edi, %edi
	cmpq	%rax, %r14
	setne	%dil
	callq	_EFX_WARN_ON_ONCE_PARANOID
	movq	%r12, %rdi
	callq	_ipv6_hdr
	movq	_NEXTHDR_TCP@GOTPCREL(%rip), %rcx
LBB0_5:
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_EFX_WARN_ON_ONCE_PARANOID
	movq	%r12, %rdi
	callq	_tcp_hdr
	movq	8(%r12), %rsi
	movq	%rax, %rdi
	callq	_PTR_DIFF
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_tcp_hdr
	movl	(%rax), %ebx
	shll	$2, %ebx
	addq	%r15, %rbx
	movq	%r12, %rdi
	callq	_skb_headlen
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setg	%dil
	callq	_EFX_WARN_ON_ONCE_PARANOID
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_ETH_P_IPV6,4,2                 ## @ETH_P_IPV6
	.comm	_NEXTHDR_TCP,8,3                ## @NEXTHDR_TCP
	.no_dead_strip	_efx_tso_check_protocol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_tso_check_protocol
_efx_tso_check_protocol:                ; @efx_tso_check_protocol
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldp	x19, x8, [x0]
	ldr	x8, [x8]
	cmp	x8, x19
	cset	w0, ne
	bl	_EFX_WARN_ON_ONCE_PARANOID
Lloh0:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	cmp	x19, x0
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x19, [x8]
LBB0_2:
Lloh3:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_htons
	cmp	x19, x0
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_ip_hdr
Lloh6:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _ETH_P_IPV6@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETH_P_IPV6@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_htons
	cmp	x19, x0
	cset	w0, ne
	bl	_EFX_WARN_ON_ONCE_PARANOID
	mov	x0, x20
	bl	_ipv6_hdr
Lloh11:
	adrp	x8, _NEXTHDR_TCP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NEXTHDR_TCP@GOTPAGEOFF]
LBB0_5:
	ldr	x9, [x0]
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w0, ne
	bl	_EFX_WARN_ON_ONCE_PARANOID
	mov	x0, x20
	bl	_tcp_hdr
	ldr	x1, [x20, #8]
	bl	_PTR_DIFF
	mov	x21, x0
	mov	x0, x20
	bl	_tcp_hdr
	ldr	w8, [x0]
	lsl	w8, w8, #2
	add	x21, x21, x8
	mov	x0, x20
	bl	_skb_headlen
	cmp	x21, x0
	cset	w0, gt
	bl	_EFX_WARN_ON_ONCE_PARANOID
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_ETH_P_IPV6,4,2                 ; @ETH_P_IPV6
	.comm	_NEXTHDR_TCP,8,3                ; @NEXTHDR_TCP
	.no_dead_strip	_efx_tso_check_protocol
.subsections_via_symbols
