	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function offload_csum
_offload_csum:                          ## @offload_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	(%rdx), %rcx
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.1:
	movq	%rdi, %r15
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r12
	movq	%rbx, %rdi
	callq	_skb_network_header
	testq	%r12, %r12
	je	LBB0_8
## %bb.2:
	movl	(%rax), %eax
	cmpl	$6, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$4, %eax
	jne	LBB0_6
## %bb.4:
	movq	_IPV4_PKT_NO_CHKSUM_OFFLOAD@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_8:
	movq	%rax, -64(%rbp)
	movq	%rbx, %rdi
	callq	_skb_transport_header
	movl	%eax, -48(%rbp)
	movq	%rbx, %rdi
	callq	_skb_network_header_len
	jmp	LBB0_9
LBB0_5:
	movq	_IPV6_PKT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_L3TYPE_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r12d
	movl	%r12d, -44(%rbp)
	movq	%rbx, %rdi
	callq	_skb_network_header_len
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rax, %rdx
	callq	_hinic_task_set_outter_l3
	movq	%rbx, %rdi
	callq	_skb_inner_network_offset
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_skb_transport_offset
	subq	%rax, %r12
	movq	_TUNNEL_UDP_NO_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_hinic_task_set_tunnel_l4
	movq	%rbx, %rdi
	callq	_skb_inner_network_header
	movq	%rax, -64(%rbp)
	movq	%rbx, %rdi
	callq	_skb_inner_transport_header
	movl	%eax, -48(%rbp)
	movq	%rbx, %rdi
	callq	_skb_inner_network_header_len
LBB0_9:
	movq	%rax, %r12
	movq	_TX_OFFLOAD_CSUM@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	leaq	-64(%rbp), %rsi
	leaq	-48(%rbp), %r13
	leaq	-44(%rbp), %r8
	leaq	-52(%rbp), %r9
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_get_inner_l3_l4_type
	movl	-44(%rbp), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_hinic_task_set_inner_l3
	movl	(%r14), %edx
	movl	-52(%rbp), %ecx
	leaq	-88(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-56(%rbp), %r8
	leaq	-80(%rbp), %r9
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_get_inner_l4_info
	movl	-56(%rbp), %edx
	movq	-80(%rbp), %rcx
	movq	-88(%rbp), %r8
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_hinic_set_cs_inner_l4
	movl	$1, %eax
LBB0_10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_IPV4_PKT_NO_CHKSUM_OFFLOAD,4,2 ## @IPV4_PKT_NO_CHKSUM_OFFLOAD
	.comm	_IPV6_PKT,4,2                   ## @IPV6_PKT
	.comm	_L3TYPE_UNKNOWN,4,2             ## @L3TYPE_UNKNOWN
	.comm	_TUNNEL_UDP_NO_CSUM,4,2         ## @TUNNEL_UDP_NO_CSUM
	.comm	_TX_OFFLOAD_CSUM,4,2            ## @TX_OFFLOAD_CSUM
	.no_dead_strip	_offload_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function offload_csum
_offload_csum:                          ; @offload_csum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x2, #8]
	mov	x0, x2
	bl	_skb_network_header
	cbz	x22, LBB0_6
; %bb.2:
	ldr	w8, [x0]
	cmp	w8, #6
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #4
	b.ne	LBB0_8
; %bb.4:
Lloh3:
	adrp	x8, _IPV4_PKT_NO_CHKSUM_OFFLOAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPV4_PKT_NO_CHKSUM_OFFLOAD@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	mov	w0, #0
	b	LBB0_11
LBB0_6:
	str	x0, [sp, #24]
	mov	x0, x21
	bl	_skb_transport_header
	str	w0, [sp, #16]
	mov	x0, x21
	bl	_skb_network_header_len
	b	LBB0_10
LBB0_7:
Lloh5:
	adrp	x8, _IPV6_PKT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IPV6_PKT@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh7:
	adrp	x8, _L3TYPE_UNKNOWN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _L3TYPE_UNKNOWN@GOTPAGEOFF]
LBB0_9:
	ldr	w22, [x8]
	str	w22, [sp, #36]
	mov	x0, x21
	bl	_skb_network_header_len
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_hinic_task_set_outter_l3
	mov	x0, x21
	bl	_skb_inner_network_offset
	mov	x22, x0
	mov	x0, x21
	bl	_skb_transport_offset
	sub	x2, x22, x0
Lloh9:
	adrp	x8, _TUNNEL_UDP_NO_CSUM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TUNNEL_UDP_NO_CSUM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hinic_task_set_tunnel_l4
	mov	x0, x21
	bl	_skb_inner_network_header
	str	x0, [sp, #24]
	mov	x0, x21
	bl	_skb_inner_transport_header
	str	w0, [sp, #16]
	mov	x0, x21
	bl	_skb_inner_network_header_len
LBB0_10:
	mov	x22, x0
Lloh12:
	adrp	x23, _TX_OFFLOAD_CSUM@GOTPAGE
Lloh13:
	ldr	x23, [x23, _TX_OFFLOAD_CSUM@GOTPAGEOFF]
	ldr	w3, [x23]
	add	x1, sp, #24
	add	x2, sp, #16
	add	x4, sp, #36
	add	x5, sp, #12
	mov	x0, x21
	bl	_get_inner_l3_l4_type
	ldr	w1, [sp, #36]
	mov	x0, x20
	mov	x2, x22
	bl	_hinic_task_set_inner_l3
	ldr	w2, [x23]
	ldr	w3, [sp, #12]
	add	x1, sp, #16
	sub	x4, x29, #52
	add	x5, sp, #40
	add	x6, sp, #48
	mov	x0, x21
	bl	_get_inner_l4_info
	ldur	w2, [x29, #-52]
	ldp	x3, x4, [sp, #40]
	mov	x0, x20
	mov	x1, x19
	bl	_hinic_set_cs_inner_l4
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_IPV4_PKT_NO_CHKSUM_OFFLOAD,4,2 ; @IPV4_PKT_NO_CHKSUM_OFFLOAD
	.comm	_IPV6_PKT,4,2                   ; @IPV6_PKT
	.comm	_L3TYPE_UNKNOWN,4,2             ; @L3TYPE_UNKNOWN
	.comm	_TUNNEL_UDP_NO_CSUM,4,2         ; @TUNNEL_UDP_NO_CSUM
	.comm	_TX_OFFLOAD_CSUM,4,2            ; @TX_OFFLOAD_CSUM
	.no_dead_strip	_offload_csum
.subsections_via_symbols
