	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_rx_csum
_iwl_mvm_rx_csum:                       ## @iwl_mvm_rx_csum
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	callq	_iwl_mvm_sta_from_mac80211
	movl	(%rax), %edi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_le16_to_cpu
	movq	_IWL_RX_L3L4_L3_PROTO_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_IWL_RX_L3_PROTO_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r15)
	je	LBB0_6
## %bb.1:
	movq	_IWL_RX_L3L4_TCP_UDP_CSUM_OK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.2:
	movq	_IWL_RX_L3L4_IP_HDR_CSUM_OK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.3:
	movslq	%edx, %rax
	movq	_IWL_RX_L3_TYPE_IPV6@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_IWL_RX_L3_TYPE_IPV6_FRAG@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_6
LBB0_5:
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_RX_L3L4_L3_PROTO_MASK,4,2  ## @IWL_RX_L3L4_L3_PROTO_MASK
	.comm	_IWL_RX_L3_PROTO_POS,4,2        ## @IWL_RX_L3_PROTO_POS
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_IWL_RX_L3L4_TCP_UDP_CSUM_OK,4,2 ## @IWL_RX_L3L4_TCP_UDP_CSUM_OK
	.comm	_IWL_RX_L3L4_IP_HDR_CSUM_OK,4,2 ## @IWL_RX_L3L4_IP_HDR_CSUM_OK
	.comm	_IWL_RX_L3_TYPE_IPV6,8,3        ## @IWL_RX_L3_TYPE_IPV6
	.comm	_IWL_RX_L3_TYPE_IPV6_FRAG,8,3   ## @IWL_RX_L3_TYPE_IPV6_FRAG
	.comm	_CHECKSUM_UNNECESSARY,4,2       ## @CHECKSUM_UNNECESSARY
	.no_dead_strip	_iwl_mvm_rx_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_rx_csum
_iwl_mvm_rx_csum:                       ; @iwl_mvm_rx_csum
	.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, x2
	mov	x19, x1
	bl	_iwl_mvm_sta_from_mac80211
	ldr	w0, [x0]
	bl	_iwl_mvm_vif_from_mac80211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10, x8, #4, eq
	ccmp	x11, x8, #4, ne
	b.ne	LBB0_4
; %bb.3:
Lloh21:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_4:
	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 AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_RX_L3L4_L3_PROTO_MASK,4,2  ; @IWL_RX_L3L4_L3_PROTO_MASK
	.comm	_IWL_RX_L3_PROTO_POS,4,2        ; @IWL_RX_L3_PROTO_POS
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_IWL_RX_L3L4_TCP_UDP_CSUM_OK,4,2 ; @IWL_RX_L3L4_TCP_UDP_CSUM_OK
	.comm	_IWL_RX_L3L4_IP_HDR_CSUM_OK,4,2 ; @IWL_RX_L3L4_IP_HDR_CSUM_OK
	.comm	_IWL_RX_L3_TYPE_IPV6,8,3        ; @IWL_RX_L3_TYPE_IPV6
	.comm	_IWL_RX_L3_TYPE_IPV6_FRAG,8,3   ; @IWL_RX_L3_TYPE_IPV6_FRAG
	.comm	_CHECKSUM_UNNECESSARY,4,2       ; @CHECKSUM_UNNECESSARY
	.no_dead_strip	_iwl_mvm_rx_csum
.subsections_via_symbols
