	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_nic_rx_checksum
_hns_nic_rx_checksum:                   ## @hns_nic_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	andl	(%rax), %ecx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movq	_HNS_RXD_L3ID_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS_RXD_L3ID_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_hnae_get_field
	movq	%rax, %rbx
	movq	_HNS_RXD_L4ID_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS_RXD_L4ID_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_hnae_get_field
	movq	%rax, %r15
	movq	_HNS_RX_FLAG_L3ID_IPV4@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_3
## %bb.2:
	movq	_HNS_RX_FLAG_L3ID_IPV6@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_10
LBB0_3:
	movq	_HNS_RXD_L3E_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_hnae_get_bit
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.4:
	movq	_HNS_RXD_FRAG_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_hnae_get_bit
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.5:
	movq	_HNS_RX_FLAG_L4ID_TCP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_8
## %bb.6:
	movq	_HNS_RX_FLAG_L4ID_UDP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_8
## %bb.7:
	movq	_HNS_RX_FLAG_L4ID_SCTP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_10
LBB0_8:
	movq	_HNS_RXD_L4E_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_hnae_get_bit
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_HNS_RXD_L3ID_M,4,2             ## @HNS_RXD_L3ID_M
	.comm	_HNS_RXD_L3ID_S,4,2             ## @HNS_RXD_L3ID_S
	.comm	_HNS_RXD_L4ID_M,4,2             ## @HNS_RXD_L4ID_M
	.comm	_HNS_RXD_L4ID_S,4,2             ## @HNS_RXD_L4ID_S
	.comm	_HNS_RX_FLAG_L3ID_IPV4,8,3      ## @HNS_RX_FLAG_L3ID_IPV4
	.comm	_HNS_RX_FLAG_L3ID_IPV6,8,3      ## @HNS_RX_FLAG_L3ID_IPV6
	.comm	_HNS_RXD_L3E_B,4,2              ## @HNS_RXD_L3E_B
	.comm	_HNS_RXD_FRAG_B,4,2             ## @HNS_RXD_FRAG_B
	.comm	_HNS_RX_FLAG_L4ID_TCP,8,3       ## @HNS_RX_FLAG_L4ID_TCP
	.comm	_HNS_RX_FLAG_L4ID_UDP,8,3       ## @HNS_RX_FLAG_L4ID_UDP
	.comm	_HNS_RX_FLAG_L4ID_SCTP,8,3      ## @HNS_RX_FLAG_L4ID_SCTP
	.comm	_HNS_RXD_L4E_B,4,2              ## @HNS_RXD_L4E_B
	.comm	_CHECKSUM_UNNECESSARY,4,2       ## @CHECKSUM_UNNECESSARY
	.no_dead_strip	_hns_nic_rx_checksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_nic_rx_checksum
_hns_nic_rx_checksum:                   ; @hns_nic_rx_checksum
	.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
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.1:
Lloh3:
	adrp	x8, _HNS_RXD_L3ID_M@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HNS_RXD_L3ID_M@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _HNS_RXD_L3ID_S@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HNS_RXD_L3ID_S@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_hnae_get_field
	mov	x22, x0
Lloh9:
	adrp	x8, _HNS_RXD_L4ID_M@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HNS_RXD_L4ID_M@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _HNS_RXD_L4ID_S@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HNS_RXD_L4ID_S@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_hnae_get_field
Lloh15:
	adrp	x8, _HNS_RX_FLAG_L3ID_IPV4@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HNS_RX_FLAG_L3ID_IPV4@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _HNS_RX_FLAG_L3ID_IPV6@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HNS_RX_FLAG_L3ID_IPV6@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x22, x8
	ccmp	x22, x9, #4, ne
	b.ne	LBB0_9
; %bb.2:
	mov	x21, x0
Lloh21:
	adrp	x8, _HNS_RXD_L3E_B@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HNS_RXD_L3E_B@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hnae_get_bit
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.3:
Lloh24:
	adrp	x8, _HNS_RXD_FRAG_B@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HNS_RXD_FRAG_B@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hnae_get_bit
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.4:
Lloh27:
	adrp	x8, _HNS_RX_FLAG_L4ID_TCP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HNS_RX_FLAG_L4ID_TCP@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x21, x8
	b.eq	LBB0_7
; %bb.5:
Lloh30:
	adrp	x8, _HNS_RX_FLAG_L4ID_UDP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HNS_RX_FLAG_L4ID_UDP@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x21, x8
	b.eq	LBB0_7
; %bb.6:
Lloh33:
	adrp	x8, _HNS_RX_FLAG_L4ID_SCTP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HNS_RX_FLAG_L4ID_SCTP@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_9
LBB0_7:
Lloh36:
	adrp	x8, _HNS_RXD_L4E_B@GOTPAGE
Lloh37:
	ldr	x8, [x8, _HNS_RXD_L4E_B@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hnae_get_bit
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.8:
Lloh39:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_9:
	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	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_HNS_RXD_L3ID_M,4,2             ; @HNS_RXD_L3ID_M
	.comm	_HNS_RXD_L3ID_S,4,2             ; @HNS_RXD_L3ID_S
	.comm	_HNS_RXD_L4ID_M,4,2             ; @HNS_RXD_L4ID_M
	.comm	_HNS_RXD_L4ID_S,4,2             ; @HNS_RXD_L4ID_S
	.comm	_HNS_RX_FLAG_L3ID_IPV4,8,3      ; @HNS_RX_FLAG_L3ID_IPV4
	.comm	_HNS_RX_FLAG_L3ID_IPV6,8,3      ; @HNS_RX_FLAG_L3ID_IPV6
	.comm	_HNS_RXD_L3E_B,4,2              ; @HNS_RXD_L3E_B
	.comm	_HNS_RXD_FRAG_B,4,2             ; @HNS_RXD_FRAG_B
	.comm	_HNS_RX_FLAG_L4ID_TCP,8,3       ; @HNS_RX_FLAG_L4ID_TCP
	.comm	_HNS_RX_FLAG_L4ID_UDP,8,3       ; @HNS_RX_FLAG_L4ID_UDP
	.comm	_HNS_RX_FLAG_L4ID_SCTP,8,3      ; @HNS_RX_FLAG_L4ID_SCTP
	.comm	_HNS_RXD_L4E_B,4,2              ; @HNS_RXD_L4E_B
	.comm	_CHECKSUM_UNNECESSARY,4,2       ; @CHECKSUM_UNNECESSARY
	.no_dead_strip	_hns_nic_rx_checksum
.subsections_via_symbols
