	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_tx_csum
_ena_tx_csum:                           ## @ena_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_skb_shinfo
	movq	(%rax), %r15
	movq	(%r14), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	testq	%r15, %r15
	je	LBB0_19
LBB0_2:
	movl	$1, (%rbx)
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movl	$1, 4(%rbx)
	movq	%r14, %rdi
	callq	_tcp_hdr
	movq	(%rax), %rcx
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movl	$0, 4(%rbx)
	movl	$1, %eax
	xorl	%ecx, %ecx
LBB0_5:
	movq	%rcx, 48(%rbx)
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	callq	_ip_hdr
	movl	(%rax), %eax
	cmpl	$6, %eax
	je	LBB0_13
## %bb.6:
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.8:
	movq	_ENA_ETH_IO_L3_PROTO_IPV4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	%r14, %rdi
	callq	_ip_hdr
	movl	4(%rax), %r12d
	movq	_IP_DF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	testl	%r12d, %eax
	je	LBB0_10
## %bb.9:
	movl	$1, 12(%rbx)
LBB0_10:
	testq	%r15, %r15
	je	LBB0_12
## %bb.11:
	movl	$1, 16(%rbx)
LBB0_12:
	movq	%r14, %rdi
	callq	_ip_hdr
	addq	$8, %rax
	jmp	LBB0_14
LBB0_13:
	movq	_ENA_ETH_IO_L3_PROTO_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	%r14, %rdi
	callq	_ipv6_hdr
LBB0_14:
	movq	(%rax), %rax
	jmp	LBB0_15
LBB0_7:
	xorl	%eax, %eax
LBB0_15:
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.17:
	movq	_ENA_ETH_IO_L4_PROTO_TCP@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_16:
	movq	_ENA_ETH_IO_L4_PROTO_UDP@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r15, 40(%rbx)
	movq	%r14, %rdi
	callq	_skb_network_header_len
	movl	%eax, 36(%rbx)
	movq	%r14, %rdi
	callq	_skb_network_offset
	movl	%eax, 32(%rbx)
	movl	$1, %eax
LBB0_19:
	movl	%eax, 20(%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_ENA_ETH_IO_L3_PROTO_IPV4,4,2   ## @ENA_ETH_IO_L3_PROTO_IPV4
	.comm	_IP_DF,4,2                      ## @IP_DF
	.comm	_ENA_ETH_IO_L3_PROTO_IPV6,4,2   ## @ENA_ETH_IO_L3_PROTO_IPV6
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_ENA_ETH_IO_L4_PROTO_TCP,4,2    ## @ENA_ETH_IO_L4_PROTO_TCP
	.comm	_ENA_ETH_IO_L4_PROTO_UDP,4,2    ## @ENA_ETH_IO_L4_PROTO_UDP
	.no_dead_strip	_ena_tx_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ena_tx_csum
_ena_tx_csum:                           ; @ena_tx_csum
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_skb_shinfo
	ldr	x21, [x0]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	x21, #0, #0, ne
	b.eq	LBB0_3
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
	cbz	x21, LBB0_4
; %bb.2:
	str	w8, [x19, #4]
	mov	x0, x20
	bl	_tcp_hdr
	mov	w9, #0
	ldr	x8, [x0]
	b	LBB0_5
LBB0_3:
	mov	w8, #0
	b	LBB0_16
LBB0_4:
	mov	x8, #0
	str	wzr, [x19, #4]
	mov	w9, #1
LBB0_5:
	str	x8, [x19, #48]
	str	w9, [x19, #8]
	mov	x0, x20
	bl	_ip_hdr
	ldr	w8, [x0]
	cmp	w8, #6
	b.eq	LBB0_12
; %bb.6:
	cmp	w8, #128
	b.ne	LBB0_14
; %bb.7:
Lloh3:
	adrp	x8, _ENA_ETH_IO_L3_PROTO_IPV4@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENA_ETH_IO_L3_PROTO_IPV4@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	mov	x0, x20
	bl	_ip_hdr
	ldr	w22, [x0, #4]
Lloh6:
	adrp	x8, _IP_DF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IP_DF@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_htons
	tst	w0, w22
	b.eq	LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_9:
	cbz	x21, LBB0_11
; %bb.10:
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_11:
	mov	x0, x20
	bl	_ip_hdr
	add	x0, x0, #8
	b	LBB0_13
LBB0_12:
Lloh9:
	adrp	x8, _ENA_ETH_IO_L3_PROTO_IPV6@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENA_ETH_IO_L3_PROTO_IPV6@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	mov	x0, x20
	bl	_ipv6_hdr
LBB0_13:
	ldr	x8, [x0]
	b	LBB0_15
LBB0_14:
	mov	x8, #0
LBB0_15:
Lloh12:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh14:
	adrp	x10, _ENA_ETH_IO_L4_PROTO_TCP@GOTPAGE
Lloh15:
	ldr	x10, [x10, _ENA_ETH_IO_L4_PROTO_TCP@GOTPAGEOFF]
Lloh16:
	adrp	x11, _ENA_ETH_IO_L4_PROTO_UDP@GOTPAGE
Lloh17:
	ldr	x11, [x11, _ENA_ETH_IO_L4_PROTO_UDP@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x19, #24]
	str	x21, [x19, #40]
	mov	x0, x20
	bl	_skb_network_header_len
	str	w0, [x19, #36]
	mov	x0, x20
	bl	_skb_network_offset
	str	w0, [x19, #32]
	mov	w8, #1
LBB0_16:
	str	w8, [x19, #20]
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_ENA_ETH_IO_L3_PROTO_IPV4,4,2   ; @ENA_ETH_IO_L3_PROTO_IPV4
	.comm	_IP_DF,4,2                      ; @IP_DF
	.comm	_ENA_ETH_IO_L3_PROTO_IPV6,4,2   ; @ENA_ETH_IO_L3_PROTO_IPV6
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_ENA_ETH_IO_L4_PROTO_TCP,4,2    ; @ENA_ETH_IO_L4_PROTO_TCP
	.comm	_ENA_ETH_IO_L4_PROTO_UDP,4,2    ; @ENA_ETH_IO_L4_PROTO_UDP
	.no_dead_strip	_ena_tx_csum
.subsections_via_symbols
