	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tso_fill_packet_with_fragment
_tso_fill_packet_with_fragment:         ## @tso_fill_packet_with_fragment
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rdx, %rbx
	cmpq	$0, 8(%rdx)
	je	LBB0_10
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	setle	%dil
	callq	_EFX_WARN_ON_ONCE_PARANOID
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	setle	%dil
	callq	_EFX_WARN_ON_ONCE_PARANOID
	movq	(%rbx), %rdi
	movq	8(%rbx), %rsi
	callq	_min
	movl	%eax, %r15d
	cltq
	subq	%rax, 16(%rbx)
	movdqu	(%rbx), %xmm0
	movq	%rax, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	psubq	%xmm1, %xmm0
	movdqu	%xmm0, (%rbx)
	movl	24(%rbx), %esi
	leaq	-40(%rbp), %rcx
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_efx_tx_queue_insert
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.4:
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.5:
	movq	_EFX_TX_BUF_CONT@GOTPCREL(%rip), %rcx
	movq	-40(%rbp), %rax
	jmp	LBB0_6
LBB0_3:
	movq	-40(%rbp), %rax
	movq	%r14, 32(%rax)
	movq	_EFX_TX_BUF_SKB@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
LBB0_7:
	cmpq	$0, (%rbx)
	jne	LBB0_9
## %bb.8:
	movq	32(%rbx), %rax
	movq	-40(%rbp), %rcx
	movq	%rax, 8(%rcx)
	subq	(%rcx), %rax
	movq	%rax, 16(%rcx)
	movq	$0, 32(%rbx)
LBB0_9:
	addl	%r15d, 24(%rbx)
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFX_TX_BUF_SKB,4,2             ## @EFX_TX_BUF_SKB
	.comm	_EFX_TX_BUF_CONT,4,2            ## @EFX_TX_BUF_CONT
	.no_dead_strip	_tso_fill_packet_with_fragment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tso_fill_packet_with_fragment
_tso_fill_packet_with_fragment:         ; @tso_fill_packet_with_fragment
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x2]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x19, x2
	ldr	x9, [x2, #8]
	cbz	x9, LBB0_10
; %bb.2:
	mov	x21, x1
	mov	x22, x0
	cmp	x8, #1
	cset	w0, lt
	bl	_EFX_WARN_ON_ONCE_PARANOID
	ldr	x8, [x19, #8]
	cmp	x8, #1
	cset	w0, lt
	bl	_EFX_WARN_ON_ONCE_PARANOID
	ldp	x0, x1, [x19]
	bl	_min
	mov	x20, x0
	sxtw	x8, w20
	ldr	x9, [x19, #16]
	sub	x9, x9, x8
	str	x9, [x19, #16]
	ldr	q0, [x19]
	dup.2d	v1, x8
	sub.2d	v0, v0, v1
	str	q0, [x19]
	ldr	w1, [x19, #24]
	add	x3, sp, #8
	mov	x0, x22
	mov	x2, x20
	bl	_efx_tx_queue_insert
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.4:
Lloh0:
	adrp	x9, _EFX_TX_BUF_CONT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EFX_TX_BUF_CONT@GOTPAGEOFF]
	ldr	x8, [sp, #8]
	b	LBB0_6
LBB0_5:
	ldr	x8, [sp, #8]
	str	x21, [x8, #32]
Lloh2:
	adrp	x9, _EFX_TX_BUF_SKB@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EFX_TX_BUF_SKB@GOTPAGEOFF]
LBB0_6:
	ldr	w9, [x9]
	str	w9, [x8, #24]
LBB0_7:
	ldr	x8, [x19]
	cbnz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x19, #32]
	ldr	x9, [sp, #8]
	ldr	x10, [x9]
	sub	x10, x8, x10
	stp	x8, x10, [x9, #8]
	str	xzr, [x19, #32]
LBB0_9:
	ldr	w8, [x19, #24]
	add	w8, w8, w20
	str	w8, [x19, #24]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EFX_TX_BUF_SKB,4,2             ; @EFX_TX_BUF_SKB
	.comm	_EFX_TX_BUF_CONT,4,2            ; @EFX_TX_BUF_CONT
	.no_dead_strip	_tso_fill_packet_with_fragment
.subsections_via_symbols
