	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skb_tx_csum
_skb_tx_csum:                           ## @skb_tx_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	(%rsi), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movl	%r8d, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rbx
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	je	LBB0_3
## %bb.2:
	movq	8(%r12), %rbx
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setne	%dil
LBB0_3:
	callq	_BUG_ON
	movq	%r12, %rdi
	callq	_ip_hdr
	movq	%rax, %rbx
	subl	16(%r12), %ebx
	subl	%ebx, %r13d
	movq	(%r14), %rax
	cmpl	(%rax), %r13d
	jg	LBB0_5
## %bb.4:
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %edi
	andl	$-13, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
LBB0_5:
	movq	%r12, %rdi
	callq	_skb_checksum_help
	testl	%eax, %eax
	jne	LBB0_13
LBB0_6:
	movq	_TX_IHL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$5, %r14d
	shll	%cl, %r14d
LBB0_12:
	movl	%r14d, (%r15)
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%ebx, %eax
	shll	$29, %eax
	sarl	$31, %eax
	movq	_MAC_HDR_EXTRA_4_BYTES@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	shll	$28, %ebx
	sarl	$31, %ebx
	movq	_MAC_HDR_EXTRA_8_BYTES@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	orl	%eax, %ebx
	movq	_GEN_TCP_UDP_CHECKSUM@GOTPCREL(%rip), %rax
	movq	_GEN_TCP_UDP_CHK_FULL@GOTPCREL(%rip), %rcx
	movq	_GEN_IP_V4_CHECKSUM@GOTPCREL(%rip), %rdx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	movq	%r12, %rdi
	callq	_ip_hdr
	movl	(%rax), %r14d
	movq	_TX_IHL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	orl	%ebx, %r14d
	movq	%r12, %rdi
	callq	_ip_hdr
	movl	4(%rax), %eax
	cmpl	$129, %eax
	je	LBB0_10
## %bb.8:
	cmpl	$128, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_11
## %bb.9:
	movq	_UDP_FRAME@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	$0, (%rcx)
	jmp	LBB0_12
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_MAC_HDR_EXTRA_4_BYTES,4,2      ## @MAC_HDR_EXTRA_4_BYTES
	.comm	_MAC_HDR_EXTRA_8_BYTES,4,2      ## @MAC_HDR_EXTRA_8_BYTES
	.comm	_GEN_TCP_UDP_CHECKSUM,4,2       ## @GEN_TCP_UDP_CHECKSUM
	.comm	_GEN_TCP_UDP_CHK_FULL,4,2       ## @GEN_TCP_UDP_CHK_FULL
	.comm	_GEN_IP_V4_CHECKSUM,4,2         ## @GEN_IP_V4_CHECKSUM
	.comm	_TX_IHL_SHIFT,4,2               ## @TX_IHL_SHIFT
	.comm	_UDP_FRAME,4,2                  ## @UDP_FRAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"protocol not supported"

	.no_dead_strip	_skb_tx_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skb_tx_csum
_skb_tx_csum:                           ; @skb_tx_csum
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	mov	x22, x4
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	ldr	x24, [x1, #8]
Lloh3:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_htons
	cmp	x24, x0
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	x24, [x21, #8]
Lloh6:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_htons
	cmp	x24, x0
	cset	w0, ne
LBB0_4:
	bl	_BUG_ON
	mov	x0, x21
	bl	_ip_hdr
	ldr	w8, [x21, #16]
	sub	w8, w0, w8
	sub	w9, w22, w8
	ldr	x10, [x23]
	ldr	w10, [x10]
	cmp	w9, w10
	b.gt	LBB0_6
; %bb.5:
Lloh9:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	sub	w22, w8, w9
	and	w0, w22, #0xfffffff3
	bl	_unlikely
	cbz	x0, LBB0_10
LBB0_6:
	mov	x0, x21
	bl	_skb_checksum_help
	cbnz	w0, LBB0_9
LBB0_7:
Lloh12:
	adrp	x8, _TX_IHL_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TX_IHL_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w9, #5
	lsl	w22, w9, w8
LBB0_8:
	mov	w0, #0
	str	w22, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	lsl	w8, w22, #29
Lloh15:
	adrp	x9, _MAC_HDR_EXTRA_4_BYTES@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MAC_HDR_EXTRA_4_BYTES@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w23, w9, w8, asr #31
Lloh18:
	adrp	x8, _MAC_HDR_EXTRA_8_BYTES@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAC_HDR_EXTRA_8_BYTES@GOTPAGEOFF]
	lsl	w9, w22, #28
Lloh20:
	ldr	w8, [x8]
	and	w22, w8, w9, asr #31
Lloh21:
	adrp	x8, _GEN_TCP_UDP_CHECKSUM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GEN_TCP_UDP_CHECKSUM@GOTPAGEOFF]
Lloh23:
	ldr	w24, [x8]
Lloh24:
	adrp	x8, _GEN_TCP_UDP_CHK_FULL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GEN_TCP_UDP_CHK_FULL@GOTPAGEOFF]
Lloh26:
	ldr	w25, [x8]
Lloh27:
	adrp	x8, _GEN_IP_V4_CHECKSUM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GEN_IP_V4_CHECKSUM@GOTPAGEOFF]
Lloh29:
	ldr	w26, [x8]
	mov	x0, x21
	bl	_ip_hdr
	ldr	w8, [x0]
Lloh30:
	adrp	x9, _TX_IHL_SHIFT@GOTPAGE
Lloh31:
	ldr	x9, [x9, _TX_IHL_SHIFT@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w9, w22, w23
	orr	w9, w9, w24
	orr	w9, w9, w25
	orr	w9, w9, w26
	orr	w22, w9, w8
	mov	x0, x21
	bl	_ip_hdr
	ldr	w8, [x0, #4]
	cmp	w8, #129
	b.eq	LBB0_13
; %bb.11:
	cmp	w8, #128
	b.ne	LBB0_14
; %bb.12:
Lloh33:
	adrp	x8, _UDP_FRAME@GOTPAGE
Lloh34:
	ldr	x8, [x8, _UDP_FRAME@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_13:
	str	wzr, [x20]
	b	LBB0_8
LBB0_14:
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_MAC_HDR_EXTRA_4_BYTES,4,2      ; @MAC_HDR_EXTRA_4_BYTES
	.comm	_MAC_HDR_EXTRA_8_BYTES,4,2      ; @MAC_HDR_EXTRA_8_BYTES
	.comm	_GEN_TCP_UDP_CHECKSUM,4,2       ; @GEN_TCP_UDP_CHECKSUM
	.comm	_GEN_TCP_UDP_CHK_FULL,4,2       ; @GEN_TCP_UDP_CHK_FULL
	.comm	_GEN_IP_V4_CHECKSUM,4,2         ; @GEN_IP_V4_CHECKSUM
	.comm	_TX_IHL_SHIFT,4,2               ; @TX_IHL_SHIFT
	.comm	_UDP_FRAME,4,2                  ; @UDP_FRAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"protocol not supported"

	.no_dead_strip	_skb_tx_csum
.subsections_via_symbols
