	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_set_gro_and_checksum
_hns3_set_gro_and_checksum:             ## @hns3_set_gro_and_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
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	_HNS3_RXD_GRO_SIZE_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS3_RXD_GRO_SIZE_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rcx, %rdi
	callq	_hnae3_get_field
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movq	%r15, 8(%rax)
	movq	%rbx, %rdi
	callq	_skb_shinfo
	cmpq	$0, 8(%rax)
	je	LBB0_1
## %bb.2:
	movq	_HNS3_RXD_GRO_COUNT_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS3_RXD_GRO_COUNT_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_hnae3_get_field
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_NAPI_GRO_CB
	movq	%r15, (%rax)
	movq	_HNS3_RXD_L3ID_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS3_RXD_L3ID_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_hnae3_get_field
	movq	_HNS3_L3_TYPE_IPV4@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_SKB_GSO_TCPV4@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_hns3_rx_checksum
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movq	_HNS3_L3_TYPE_IPV6@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_7
## %bb.5:
	movq	_SKB_GSO_TCPV6@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movl	%r15d, (%rax)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hns3_gro_complete              ## TAILCALL
LBB0_7:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS3_RXD_GRO_SIZE_M,4,2        ## @HNS3_RXD_GRO_SIZE_M
	.comm	_HNS3_RXD_GRO_SIZE_S,4,2        ## @HNS3_RXD_GRO_SIZE_S
	.comm	_HNS3_RXD_GRO_COUNT_M,4,2       ## @HNS3_RXD_GRO_COUNT_M
	.comm	_HNS3_RXD_GRO_COUNT_S,4,2       ## @HNS3_RXD_GRO_COUNT_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_L3_TYPE_IPV4,8,3          ## @HNS3_L3_TYPE_IPV4
	.comm	_SKB_GSO_TCPV4,4,2              ## @SKB_GSO_TCPV4
	.comm	_HNS3_L3_TYPE_IPV6,8,3          ## @HNS3_L3_TYPE_IPV6
	.comm	_SKB_GSO_TCPV6,4,2              ## @SKB_GSO_TCPV6
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_hns3_set_gro_and_checksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_set_gro_and_checksum
_hns3_set_gro_and_checksum:             ; @hns3_set_gro_and_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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _HNS3_RXD_GRO_SIZE_M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNS3_RXD_GRO_SIZE_M@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _HNS3_RXD_GRO_SIZE_S@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HNS3_RXD_GRO_SIZE_S@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x3
	bl	_hnae3_get_field
	mov	x24, x0
	mov	x0, x20
	bl	_skb_shinfo
	str	x24, [x0, #8]
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _HNS3_RXD_GRO_COUNT_M@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HNS3_RXD_GRO_COUNT_M@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _HNS3_RXD_GRO_COUNT_S@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HNS3_RXD_GRO_COUNT_S@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hnae3_get_field
	mov	x21, x0
	mov	x0, x20
	bl	_NAPI_GRO_CB
	str	x21, [x0]
Lloh12:
	adrp	x8, _HNS3_RXD_L3ID_M@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HNS3_RXD_L3ID_M@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _HNS3_RXD_L3ID_S@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HNS3_RXD_L3ID_S@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hnae3_get_field
Lloh18:
	adrp	x8, _HNS3_L3_TYPE_IPV4@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HNS3_L3_TYPE_IPV4@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_4
; %bb.2:
Lloh21:
	adrp	x8, _SKB_GSO_TCPV4@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SKB_GSO_TCPV4@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	mov	x4, x21
	bl	_hns3_rx_checksum
	mov	w0, #0
	b	LBB0_8
LBB0_4:
Lloh23:
	adrp	x8, _HNS3_L3_TYPE_IPV6@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HNS3_L3_TYPE_IPV6@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_7
; %bb.5:
Lloh26:
	adrp	x8, _SKB_GSO_TCPV6@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SKB_GSO_TCPV6@GOTPAGEOFF]
LBB0_6:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_skb_shinfo
	str	w21, [x0]
	mov	x0, x20
	mov	x1, x19
	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	_hns3_gro_complete
LBB0_7:
Lloh28:
	adrp	x8, _EFAULT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS3_RXD_GRO_SIZE_M,4,2        ; @HNS3_RXD_GRO_SIZE_M
	.comm	_HNS3_RXD_GRO_SIZE_S,4,2        ; @HNS3_RXD_GRO_SIZE_S
	.comm	_HNS3_RXD_GRO_COUNT_M,4,2       ; @HNS3_RXD_GRO_COUNT_M
	.comm	_HNS3_RXD_GRO_COUNT_S,4,2       ; @HNS3_RXD_GRO_COUNT_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_L3_TYPE_IPV4,8,3          ; @HNS3_L3_TYPE_IPV4
	.comm	_SKB_GSO_TCPV4,4,2              ; @SKB_GSO_TCPV4
	.comm	_HNS3_L3_TYPE_IPV6,8,3          ; @HNS3_L3_TYPE_IPV6
	.comm	_SKB_GSO_TCPV6,4,2              ; @SKB_GSO_TCPV6
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_hns3_set_gro_and_checksum
.subsections_via_symbols
