	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwcsum
_hwcsum:                                ## @hwcsum
	.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	%rsi, %rbx
	movl	%edi, %r14d
	cmpq	$0, 8(%rsi)
	je	LBB0_4
## %bb.1:
	movl	%r14d, %edi
	callq	_CHELSIO_CHIP_VERSION
	movq	_CHELSIO_T5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_inner_ip_hdr
	cmpl	$4, (%rax)
	jne	LBB0_11
## %bb.3:
	movq	%rbx, %rdi
	callq	_inner_ip_hdr
	addq	$4, %rax
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_ip_hdr
	cmpl	$4, (%rax)
	jne	LBB0_26
## %bb.5:
	movq	%rbx, %rdi
	callq	_ip_hdr
	addq	$4, %rax
	movb	$1, %r12b
LBB0_6:
	movl	(%rax), %eax
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.7:
	movq	_TX_CSUM_TCPIP@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_26:
	movq	%rbx, %rdi
	callq	_ipv6_hdr
	movb	$1, %r12b
	jmp	LBB0_12
LBB0_8:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	movq	_TX_CSUM_UDPIP@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_11:
	movq	%rbx, %rdi
	callq	_inner_ipv6_hdr
	xorl	%r12d, %r12d
LBB0_12:
	movl	(%rax), %eax
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.13:
	movq	_TX_CSUM_TCPIP6@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.15:
	movq	_TX_CSUM_UDPIP6@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %r15d
	movq	_TX_CSUM_TCPIP@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r15d
	setge	%dil
	callq	_likely
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_24
## %bb.17:
	testb	%r12b, %r12b
	je	LBB0_18
## %bb.19:
	callq	_skb_network_header_len
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_skb_network_offset
	jmp	LBB0_20
LBB0_24:
	callq	_skb_transport_offset
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_TXPKT_CSUM_TYPE_V
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_TXPKT_CSUM_START_V
	movl	%eax, %r12d
	movslq	%r14d, %rdi
	addq	(%rbx), %rdi
	callq	_TXPKT_CSUM_LOC_V
	orl	%r12d, %eax
	orl	%r15d, %eax
	jmp	LBB0_25
LBB0_10:
	movq	_TXPKT_L4CSUM_DIS_F@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_25
LBB0_18:
	callq	_skb_inner_network_header_len
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_skb_inner_network_offset
LBB0_20:
	movl	%eax, %ebx
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_TXPKT_IPHDR_LEN_V
	movl	%eax, %r12d
	movl	%r14d, %edi
	callq	_CHELSIO_CHIP_VERSION
	movq	_CHELSIO_T5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_21
## %bb.22:
	movl	%ebx, %edi
	callq	_T6_TXPKT_ETHHDR_LEN_V
	jmp	LBB0_23
LBB0_21:
	movl	%ebx, %edi
	callq	_TXPKT_ETHHDR_LEN_V
LBB0_23:
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movl	%r15d, %edi
	callq	_TXPKT_CSUM_TYPE_V
	orl	%ebx, %eax
LBB0_25:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHELSIO_T5,8,3                 ## @CHELSIO_T5
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_TX_CSUM_TCPIP,4,2              ## @TX_CSUM_TCPIP
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.comm	_TX_CSUM_UDPIP,4,2              ## @TX_CSUM_UDPIP
	.comm	_TXPKT_L4CSUM_DIS_F,4,2         ## @TXPKT_L4CSUM_DIS_F
	.comm	_TX_CSUM_TCPIP6,4,2             ## @TX_CSUM_TCPIP6
	.comm	_TX_CSUM_UDPIP6,4,2             ## @TX_CSUM_UDPIP6
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.no_dead_strip	_hwcsum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hwcsum
_hwcsum:                                ; @hwcsum
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x24, _CHELSIO_T5@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CHELSIO_T5@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_CHELSIO_CHIP_VERSION
	ldr	x8, [x24]
	cmp	x0, x8
	b.le	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_inner_ip_hdr
	ldr	w8, [x0]
	mov	x0, x20
	cmp	w8, #4
	b.ne	LBB0_11
; %bb.3:
	bl	_inner_ip_hdr
	mov	w22, #0
	add	x8, x0, #4
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_ip_hdr
	ldr	w8, [x0]
	mov	x0, x20
	cmp	w8, #4
	b.ne	LBB0_8
; %bb.5:
	bl	_ip_hdr
	add	x8, x0, #4
	mov	w22, #1
LBB0_6:
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.7:
Lloh5:
	adrp	x8, _TX_CSUM_TCPIP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TX_CSUM_TCPIP@GOTPAGEOFF]
	b	LBB0_16
LBB0_8:
	bl	_ipv6_hdr
	mov	w22, #1
	b	LBB0_12
LBB0_9:
Lloh7:
	adrp	x9, _IPPROTO_UDP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IPPROTO_UDP@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_20
; %bb.10:
Lloh10:
	adrp	x8, _TX_CSUM_UDPIP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TX_CSUM_UDPIP@GOTPAGEOFF]
	b	LBB0_16
LBB0_11:
	bl	_inner_ipv6_hdr
	mov	w22, #0
LBB0_12:
	ldr	w8, [x0]
Lloh12:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.13:
Lloh15:
	adrp	x8, _TX_CSUM_TCPIP6@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TX_CSUM_TCPIP6@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
Lloh17:
	adrp	x9, _IPPROTO_UDP@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IPPROTO_UDP@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_20
; %bb.15:
Lloh20:
	adrp	x8, _TX_CSUM_UDPIP6@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TX_CSUM_UDPIP6@GOTPAGEOFF]
LBB0_16:
	ldr	w21, [x8]
Lloh22:
	adrp	x8, _TX_CSUM_TCPIP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TX_CSUM_TCPIP@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w21, w8
	cset	w0, ge
	bl	_likely
	cbz	x0, LBB0_19
; %bb.17:
	mov	x0, x20
	tbz	w22, #0, LBB0_21
; %bb.18:
	bl	_skb_network_header_len
	mov	x22, x0
	mov	x0, x20
	bl	_skb_network_offset
	b	LBB0_22
LBB0_19:
	mov	x0, x20
	bl	_skb_transport_offset
	mov	x19, x0
	mov	x0, x21
	bl	_TXPKT_CSUM_TYPE_V
	mov	x21, x0
	mov	x0, x19
	bl	_TXPKT_CSUM_START_V
	orr	w21, w0, w21
	ldr	x8, [x20]
	add	x0, x8, w19, sxtw
	bl	_TXPKT_CSUM_LOC_V
	orr	w0, w21, w0
	b	LBB0_26
LBB0_20:
Lloh25:
	adrp	x8, _TXPKT_L4CSUM_DIS_F@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TXPKT_L4CSUM_DIS_F@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	b	LBB0_26
LBB0_21:
	bl	_skb_inner_network_header_len
	mov	x22, x0
	mov	x0, x20
	bl	_skb_inner_network_offset
LBB0_22:
Lloh28:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	sub	w23, w0, w8
	mov	x0, x22
	bl	_TXPKT_IPHDR_LEN_V
	mov	x20, x0
	mov	x0, x19
	bl	_CHELSIO_CHIP_VERSION
	ldr	x8, [x24]
	cmp	x0, x8
	b.le	LBB0_24
; %bb.23:
	mov	x0, x23
	bl	_T6_TXPKT_ETHHDR_LEN_V
	b	LBB0_25
LBB0_24:
	mov	x0, x23
	bl	_TXPKT_ETHHDR_LEN_V
LBB0_25:
	orr	w19, w0, w20
	mov	x0, x21
	bl	_TXPKT_CSUM_TYPE_V
	orr	w0, w19, w0
LBB0_26:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_CHELSIO_T5,8,3                 ; @CHELSIO_T5
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_TX_CSUM_TCPIP,4,2              ; @TX_CSUM_TCPIP
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.comm	_TX_CSUM_UDPIP,4,2              ; @TX_CSUM_UDPIP
	.comm	_TXPKT_L4CSUM_DIS_F,4,2         ; @TXPKT_L4CSUM_DIS_F
	.comm	_TX_CSUM_TCPIP6,4,2             ; @TX_CSUM_TCPIP6
	.comm	_TX_CSUM_UDPIP6,4,2             ; @TX_CSUM_UDPIP6
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.no_dead_strip	_hwcsum
.subsections_via_symbols
