	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_rx_checksum
_hns3_rx_checksum:                      ## @hns3_rx_checksum
	.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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rsi)
	movq	%rsi, %rdi
	callq	_skb_checksum_none_assert
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_13
## %bb.1:
	movq	_HNS3_RXD_L3L4P_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_13
## %bb.2:
	movq	_HNS3_RXD_L3E_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_HNS3_RXD_L4E_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	_HNS3_RXD_OL3E_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	_HNS3_RXD_OL4E_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %r15d
	orl	%ebx, %r15d
	andl	%r14d, %r15d
	movl	%r15d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.14:
	movq	%r13, %rdi
	callq	_u64_stats_update_begin
	incl	4(%r13)
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_u64_stats_update_end           ## TAILCALL
LBB0_3:
	movq	_HNS3_RXD_OL4ID_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS3_RXD_OL4ID_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_hnae3_get_field
	cmpl	$130, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$129, %eax
	je	LBB0_7
## %bb.5:
	cmpl	$128, %eax
	jne	LBB0_13
LBB0_6:
	movl	$1, (%r12)
LBB0_7:
	movq	_HNS3_RXD_L3ID_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS3_RXD_L3ID_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_hnae3_get_field
	movl	%eax, %ebx
	movq	_HNS3_RXD_L4ID_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS3_RXD_L4ID_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_hnae3_get_field
	movq	_HNS3_L3_TYPE_IPV4@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	je	LBB0_9
## %bb.8:
	movq	_HNS3_L3_TYPE_IPV6@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jne	LBB0_13
LBB0_9:
	movq	_HNS3_L4_TYPE_UDP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.10:
	movq	_HNS3_L4_TYPE_TCP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.11:
	movq	_HNS3_L4_TYPE_SCTP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
LBB0_12:
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKSUM_NONE,4,2              ## @CHECKSUM_NONE
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_HNS3_RXD_L3L4P_B,4,2           ## @HNS3_RXD_L3L4P_B
	.comm	_HNS3_RXD_L3E_B,4,2             ## @HNS3_RXD_L3E_B
	.comm	_HNS3_RXD_L4E_B,4,2             ## @HNS3_RXD_L4E_B
	.comm	_HNS3_RXD_OL3E_B,4,2            ## @HNS3_RXD_OL3E_B
	.comm	_HNS3_RXD_OL4E_B,4,2            ## @HNS3_RXD_OL4E_B
	.comm	_HNS3_RXD_OL4ID_M,4,2           ## @HNS3_RXD_OL4ID_M
	.comm	_HNS3_RXD_OL4ID_S,4,2           ## @HNS3_RXD_OL4ID_S
	.comm	_HNS3_RXD_L3ID_M,4,2            ## @HNS3_RXD_L3ID_M
	.comm	_HNS3_RXD_L3ID_S,4,2            ## @HNS3_RXD_L3ID_S
	.comm	_HNS3_RXD_L4ID_M,4,2            ## @HNS3_RXD_L4ID_M
	.comm	_HNS3_RXD_L4ID_S,4,2            ## @HNS3_RXD_L4ID_S
	.comm	_HNS3_L3_TYPE_IPV4,4,2          ## @HNS3_L3_TYPE_IPV4
	.comm	_HNS3_L3_TYPE_IPV6,4,2          ## @HNS3_L3_TYPE_IPV6
	.comm	_HNS3_L4_TYPE_UDP,4,2           ## @HNS3_L4_TYPE_UDP
	.comm	_HNS3_L4_TYPE_TCP,4,2           ## @HNS3_L4_TYPE_TCP
	.comm	_HNS3_L4_TYPE_SCTP,4,2          ## @HNS3_L4_TYPE_SCTP
	.comm	_CHECKSUM_UNNECESSARY,4,2       ## @CHECKSUM_UNNECESSARY
	.no_dead_strip	_hns3_rx_checksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_rx_checksum
_hns3_rx_checksum:                      ; @hns3_rx_checksum
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x4
	mov	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x24, [x8]
Lloh0:
	adrp	x8, _CHECKSUM_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHECKSUM_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1, #4]
	mov	x0, x1
	bl	_skb_checksum_none_assert
	ldr	w8, [x24]
Lloh3:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.1:
Lloh6:
	adrp	x8, _HNS3_RXD_L3L4P_B@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HNS3_RXD_L3L4P_B@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w23
	b.eq	LBB0_14
; %bb.2:
Lloh9:
	adrp	x8, _HNS3_RXD_L3E_B@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HNS3_RXD_L3E_B@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_BIT
	mov	x23, x0
Lloh12:
	adrp	x8, _HNS3_RXD_L4E_B@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HNS3_RXD_L4E_B@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_BIT
	orr	w23, w0, w23
Lloh15:
	adrp	x8, _HNS3_RXD_OL3E_B@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HNS3_RXD_OL3E_B@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_BIT
	orr	w23, w23, w0
Lloh18:
	adrp	x8, _HNS3_RXD_OL4E_B@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HNS3_RXD_OL4E_B@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w23, w0
	and	w0, w8, w20
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_u64_stats_update_begin
	ldr	w8, [x22, #4]
	add	w8, w8, #1
	str	w8, [x22, #4]
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_u64_stats_update_end
LBB0_4:
Lloh21:
	adrp	x8, _HNS3_RXD_OL4ID_M@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HNS3_RXD_OL4ID_M@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _HNS3_RXD_OL4ID_S@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HNS3_RXD_OL4ID_S@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_hnae3_get_field
	cmp	w0, #130
	b.eq	LBB0_7
; %bb.5:
	cmp	w0, #129
	b.eq	LBB0_8
; %bb.6:
	cmp	w0, #128
	b.ne	LBB0_14
LBB0_7:
	mov	w8, #1
	str	w8, [x19]
LBB0_8:
Lloh27:
	adrp	x8, _HNS3_RXD_L3ID_M@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HNS3_RXD_L3ID_M@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _HNS3_RXD_L3ID_S@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HNS3_RXD_L3ID_S@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_hnae3_get_field
	mov	x21, x0
Lloh33:
	adrp	x8, _HNS3_RXD_L4ID_M@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HNS3_RXD_L4ID_M@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _HNS3_RXD_L4ID_S@GOTPAGE
Lloh37:
	ldr	x8, [x8, _HNS3_RXD_L4ID_S@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_hnae3_get_field
Lloh39:
	adrp	x8, _HNS3_L3_TYPE_IPV4@GOTPAGE
Lloh40:
	ldr	x8, [x8, _HNS3_L3_TYPE_IPV4@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	cmp	w21, w8
	b.eq	LBB0_10
; %bb.9:
Lloh42:
	adrp	x8, _HNS3_L3_TYPE_IPV6@GOTPAGE
Lloh43:
	ldr	x8, [x8, _HNS3_L3_TYPE_IPV6@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_14
LBB0_10:
Lloh45:
	adrp	x8, _HNS3_L4_TYPE_UDP@GOTPAGE
Lloh46:
	ldr	x8, [x8, _HNS3_L4_TYPE_UDP@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.11:
Lloh48:
	adrp	x8, _HNS3_L4_TYPE_TCP@GOTPAGE
Lloh49:
	ldr	x8, [x8, _HNS3_L4_TYPE_TCP@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.12:
Lloh51:
	adrp	x8, _HNS3_L4_TYPE_SCTP@GOTPAGE
Lloh52:
	ldr	x8, [x8, _HNS3_L4_TYPE_SCTP@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_14
LBB0_13:
Lloh54:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh55:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKSUM_NONE,4,2              ; @CHECKSUM_NONE
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_HNS3_RXD_L3L4P_B,4,2           ; @HNS3_RXD_L3L4P_B
	.comm	_HNS3_RXD_L3E_B,4,2             ; @HNS3_RXD_L3E_B
	.comm	_HNS3_RXD_L4E_B,4,2             ; @HNS3_RXD_L4E_B
	.comm	_HNS3_RXD_OL3E_B,4,2            ; @HNS3_RXD_OL3E_B
	.comm	_HNS3_RXD_OL4E_B,4,2            ; @HNS3_RXD_OL4E_B
	.comm	_HNS3_RXD_OL4ID_M,4,2           ; @HNS3_RXD_OL4ID_M
	.comm	_HNS3_RXD_OL4ID_S,4,2           ; @HNS3_RXD_OL4ID_S
	.comm	_HNS3_RXD_L3ID_M,4,2            ; @HNS3_RXD_L3ID_M
	.comm	_HNS3_RXD_L3ID_S,4,2            ; @HNS3_RXD_L3ID_S
	.comm	_HNS3_RXD_L4ID_M,4,2            ; @HNS3_RXD_L4ID_M
	.comm	_HNS3_RXD_L4ID_S,4,2            ; @HNS3_RXD_L4ID_S
	.comm	_HNS3_L3_TYPE_IPV4,4,2          ; @HNS3_L3_TYPE_IPV4
	.comm	_HNS3_L3_TYPE_IPV6,4,2          ; @HNS3_L3_TYPE_IPV6
	.comm	_HNS3_L4_TYPE_UDP,4,2           ; @HNS3_L4_TYPE_UDP
	.comm	_HNS3_L4_TYPE_TCP,4,2           ; @HNS3_L4_TYPE_TCP
	.comm	_HNS3_L4_TYPE_SCTP,4,2          ; @HNS3_L4_TYPE_SCTP
	.comm	_CHECKSUM_UNNECESSARY,4,2       ; @CHECKSUM_UNNECESSARY
	.no_dead_strip	_hns3_rx_checksum
.subsections_via_symbols
