	.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
	movq	%rsi, %rdi
	callq	_ip_hdr
	cmpl	$4, (%rax)
	jne	LBB0_6
## %bb.1:
	movq	8(%rax), %rax
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_TX_CSUM_TCPIP@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	(%rax), %rax
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_TX_CSUM_TCPIP6@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_TX_CSUM_UDPIP@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.9:
	movq	_TX_CSUM_UDPIP6@GOTPCREL(%rip), %rax
LBB0_10:
	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_15
## %bb.11:
	callq	_skb_network_header_len
	movl	%eax, %edi
	callq	_TXPKT_IPHDR_LEN_V
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_skb_network_offset
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movq	_CHELSIO_T5@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jae	LBB0_12
## %bb.13:
	movl	%eax, %edi
	callq	_T6_TXPKT_ETHHDR_LEN_V
	jmp	LBB0_14
LBB0_15:
	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_16
LBB0_5:
	movq	_TXPKT_L4CSUM_DIS_F@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_12:
	movl	%eax, %edi
	callq	_TXPKT_ETHHDR_LEN_V
LBB0_14:
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movl	%r15d, %edi
	callq	_TXPKT_CSUM_TYPE_V
	orl	%ebx, %eax
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_TX_CSUM_TCPIP,4,2              ## @TX_CSUM_TCPIP
	.comm	_IPPROTO_UDP,8,3                ## @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
	.comm	_CHELSIO_T5,4,2                 ## @CHELSIO_T5
	.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	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	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_ip_hdr
	ldr	w8, [x0]
	cmp	w8, #4
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _TX_CSUM_TCPIP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TX_CSUM_TCPIP@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
	ldr	x8, [x0]
Lloh5:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
Lloh8:
	adrp	x8, _TX_CSUM_TCPIP6@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TX_CSUM_TCPIP6@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh10:
	adrp	x9, _IPPROTO_UDP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IPPROTO_UDP@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.6:
Lloh13:
	adrp	x8, _TX_CSUM_UDPIP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TX_CSUM_UDPIP@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh15:
	adrp	x9, _IPPROTO_UDP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IPPROTO_UDP@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.8:
Lloh18:
	adrp	x8, _TX_CSUM_UDPIP6@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TX_CSUM_UDPIP6@GOTPAGEOFF]
LBB0_9:
	ldr	w21, [x8]
Lloh20:
	adrp	x8, _TX_CSUM_TCPIP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TX_CSUM_TCPIP@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w21, w8
	cset	w0, ge
	bl	_likely
	cbz	x0, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_skb_network_header_len
	bl	_TXPKT_IPHDR_LEN_V
	mov	x22, x0
	mov	x0, x19
	bl	_skb_network_offset
Lloh23:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	sub	w0, w0, w8
Lloh26:
	adrp	x8, _CHELSIO_T5@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CHELSIO_T5@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w8, w20
	b.hs	LBB0_14
; %bb.11:
	bl	_T6_TXPKT_ETHHDR_LEN_V
	b	LBB0_15
LBB0_12:
	mov	x0, x19
	bl	_skb_transport_offset
	mov	x20, x0
	mov	x0, x21
	bl	_TXPKT_CSUM_TYPE_V
	mov	x21, x0
	mov	x0, x20
	bl	_TXPKT_CSUM_START_V
	orr	w21, w0, w21
	ldr	x8, [x19]
	add	x0, x8, w20, sxtw
	bl	_TXPKT_CSUM_LOC_V
	orr	w0, w21, w0
	b	LBB0_16
LBB0_13:
Lloh29:
	adrp	x8, _TXPKT_L4CSUM_DIS_F@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TXPKT_L4CSUM_DIS_F@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	b	LBB0_16
LBB0_14:
	bl	_TXPKT_ETHHDR_LEN_V
LBB0_15:
	orr	w19, w0, w22
	mov	x0, x21
	bl	_TXPKT_CSUM_TYPE_V
	orr	w0, w19, w0
LBB0_16:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_TX_CSUM_TCPIP,4,2              ; @TX_CSUM_TCPIP
	.comm	_IPPROTO_UDP,8,3                ; @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
	.comm	_CHELSIO_T5,4,2                 ; @CHELSIO_T5
	.no_dead_strip	_hwcsum
.subsections_via_symbols
