	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function txq_put_hdr_tso
_txq_put_hdr_tso:                       ## @txq_put_hdr_tso
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_txq_to_mp
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_skb_transport_offset
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_tcp_hdrlen
	movl	%eax, %r12d
	addl	%r13d, %r12d
	movl	$0, -44(%rbp)
	movl	$0, -56(%rbp)
	movslq	(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %r13
	leaq	-56(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_skb_tx_csum
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
LBB0_2:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rax,2), %rcx
	movq	$0, 16(%r13,%rcx,8)
	movl	%r12d, (%r13,%rcx,8)
	movslq	(%rbx), %rax
	movq	_TSO_HEADER_SIZE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	imulq	%rax, %rdx
	addq	8(%rbx), %rdx
	movq	%rdx, 8(%r13,%rcx,8)
	movq	_BUFFER_OWNED_BY_DMA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	-44(%rbp), %edx
	movq	_TX_FIRST_DESC@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movq	_GEN_CRC@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.3:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, (%rax)
	movl	(%rbx), %eax
	jmp	LBB0_5
LBB0_4:
	movl	%edx, 4(%r13,%rcx,8)
LBB0_5:
	incl	%eax
	xorl	%ecx, %ecx
	cmpl	4(%rbx), %eax
	cmovnel	%eax, %ecx
	movl	%ecx, (%rbx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to prepare checksum!"

	.comm	_TSO_HEADER_SIZE,4,2            ## @TSO_HEADER_SIZE
	.comm	_BUFFER_OWNED_BY_DMA,4,2        ## @BUFFER_OWNED_BY_DMA
	.comm	_TX_FIRST_DESC,4,2              ## @TX_FIRST_DESC
	.comm	_GEN_CRC,4,2                    ## @GEN_CRC
	.no_dead_strip	_txq_put_hdr_tso
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function txq_put_hdr_tso
_txq_put_hdr_tso:                       ; @txq_put_hdr_tso
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	mov	x0, x1
	bl	_txq_to_mp
	mov	x24, x0
	mov	x0, x23
	bl	_skb_transport_offset
	mov	x25, x0
	mov	x0, x23
	bl	_tcp_hdrlen
	add	w27, w0, w25
	str	xzr, [sp, #8]
	ldrsw	x25, [x19]
	ldr	x26, [x19, #16]
	add	x2, sp, #8
	add	x3, sp, #12
	mov	x0, x24
	mov	x1, x23
	mov	x4, x22
	bl	_skb_tx_csum
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
LBB0_2:
	mov	w8, #24
	madd	x9, x25, x8, x26
	str	w27, [x9]
	ldr	x10, [x19, #8]
Lloh2:
	adrp	x11, _TSO_HEADER_SIZE@GOTPAGE
Lloh3:
	ldr	x11, [x11, _TSO_HEADER_SIZE@GOTPAGEOFF]
	ldrsw	x8, [x19]
Lloh4:
	ldrsw	x11, [x11]
	madd	x10, x11, x8, x10
	stp	x10, xzr, [x9, #8]
	ldr	w9, [sp, #12]
Lloh5:
	adrp	x10, _BUFFER_OWNED_BY_DMA@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BUFFER_OWNED_BY_DMA@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh8:
	adrp	x10, _TX_FIRST_DESC@GOTPAGE
Lloh9:
	ldr	x10, [x10, _TX_FIRST_DESC@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh11:
	adrp	x10, _GEN_CRC@GOTPAGE
Lloh12:
	ldr	x10, [x10, _GEN_CRC@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w9, w10
	cbz	w21, LBB0_4
; %bb.3:
	str	w9, [x20]
	ldr	w8, [x19]
	b	LBB0_5
LBB0_4:
	mov	w10, #24
	madd	x10, x25, x10, x26
	str	w9, [x10, #4]
LBB0_5:
	add	w9, w8, #1
	ldr	w10, [x19, #4]
	cmp	w9, w10
	csinc	w8, wzr, w8, eq
	str	w8, [x19]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to prepare checksum!"

	.comm	_TSO_HEADER_SIZE,4,2            ; @TSO_HEADER_SIZE
	.comm	_BUFFER_OWNED_BY_DMA,4,2        ; @BUFFER_OWNED_BY_DMA
	.comm	_TX_FIRST_DESC,4,2              ; @TX_FIRST_DESC
	.comm	_GEN_CRC,4,2                    ; @GEN_CRC
	.no_dead_strip	_txq_put_hdr_tso
.subsections_via_symbols
