	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tso_start_new_packet
_tso_start_new_packet:                  ## @tso_start_new_packet
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	andq	(%rdi), %r15
	shlq	$2, %r15
	addq	24(%rdi), %r15
	movl	52(%rdx), %edx
	movq	%r15, %rsi
	callq	_efx_tsoh_get_buffer
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movslq	(%r12), %r14
	leaq	(%rax,%r14,4), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	(%r13), %esi
	movl	52(%r12), %edx
	movq	%rax, %rdi
	movq	%rax, %rbx
	callq	_memcpy
	movl	48(%r12), %edi
	callq	_htonl
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, 16(%rbx,%r14,4)
	movq	%r13, %rdi
	callq	_skb_shinfo
	movl	(%rax), %eax
	addl	%eax, 48(%r12)
	movq	8(%r12), %r14
	movq	%r13, %rdi
	callq	_skb_shinfo
	cmpq	(%rax), %r14
	jle	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_skb_shinfo
	movq	(%rax), %r13
	movq	%r13, 16(%r12)
	xorps	%xmm0, %xmm0
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movups	%xmm0, (%rax)
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_4:
	movq	8(%r12), %rax
	movq	%rax, 16(%r12)
	movq	%r13, %rdi
	callq	_tcp_hdr
	movq	8(%rax), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movq	%r13, %rdi
	callq	_tcp_hdr
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	16(%r12), %r13
LBB0_5:
	addl	24(%r12), %r13d
	movq	32(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, %r14
	movslq	40(%r12), %rbx
	movl	%r13d, %edi
	callq	_htons
	cmpq	%r14, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_6
## %bb.7:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx,%rbx,4)
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 8(%rbx,%r14,4)
	movl	44(%r12), %edi
	callq	_htons
	movq	%rax, (%rbx,%r14,4)
	movq	%rbx, %rdx
	incl	44(%r12)
LBB0_8:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_efx_tso_put_header
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	incl	16(%r14)
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.no_dead_strip	_tso_start_new_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tso_start_new_packet
_tso_start_new_packet:                  ; @tso_start_new_packet
	.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	x20, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldp	x9, x10, [x0]
	and	x9, x10, x9
	add	x21, x8, x9, lsl #2
	ldr	w2, [x2, #52]
	mov	x1, x21
	bl	_efx_tsoh_get_buffer
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	ldrsw	x8, [x20]
	add	x24, x0, x8, lsl #2
	ldr	w1, [x23]
	ldr	w2, [x20, #52]
	bl	_memcpy
	ldr	w0, [x20, #48]
	bl	_htonl
	str	w0, [x24, #16]
	mov	x0, x23
	bl	_skb_shinfo
	ldr	w8, [x0]
	ldr	w9, [x20, #48]
	add	w8, w9, w8
	str	w8, [x20, #48]
	ldr	x25, [x20, #8]
	mov	x0, x23
	bl	_skb_shinfo
	ldr	x8, [x0]
	cmp	x25, x8
	b.le	LBB0_4
; %bb.2:
	mov	x0, x23
	bl	_skb_shinfo
	ldr	x8, [x0]
	str	x8, [x20, #16]
	stp	xzr, xzr, [x24]
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_4:
	ldr	x8, [x20, #8]
	str	x8, [x20, #16]
	mov	x0, x23
	bl	_tcp_hdr
	ldr	x8, [x0, #8]
	str	x8, [x24, #8]
	mov	x0, x23
	bl	_tcp_hdr
	ldr	x8, [x0]
	str	x8, [x24]
	ldr	x8, [x20, #16]
LBB0_5:
	ldr	w9, [x20, #24]
	add	w23, w9, w8
	ldr	x26, [x20, #32]
Lloh3:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_htons
	mov	x24, x0
	ldrsw	x8, [x20, #40]
	add	x25, x22, x8, lsl #2
	mov	x0, x23
	bl	_htons
	cmp	x26, x24
	b.eq	LBB0_7
; %bb.6:
	str	x0, [x25]
	b	LBB0_8
LBB0_7:
	str	x0, [x25, #8]
	ldr	w0, [x20, #44]
	bl	_htons
	str	x0, [x25]
	ldr	w8, [x20, #44]
	add	w8, w8, #1
	str	w8, [x20, #44]
LBB0_8:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_efx_tso_put_header
	mov	x20, x0
	bl	_unlikely
	cbnz	x0, LBB0_10
; %bb.9:
	mov	w20, #0
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_10:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.no_dead_strip	_tso_start_new_packet
.subsections_via_symbols
