	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_output_datalen                 ## -- Begin function output_datalen
	.p2align	4, 0x90
_output_datalen:                        ## @output_datalen
	.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
	testl	%esi, %esi
	jle	LBB0_6
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_nfrontp@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	%eax, %r12d
	subl	%edi, %r12d
	movq	_netobuf@GOTPCREL(%rip), %rcx
	addl	(%rcx), %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, %r15d
	cmovll	%r15d, %eax
	cmpl	%r12d, %eax
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_netflush
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r13), %edi
	subl	%edi, %r12d
	movq	_netobuf@GOTPCREL(%rip), %rax
	addl	(%rax), %r12d
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r15d, %r12d
	movl	%r15d, %ebx
	cmovll	%r12d, %ebx
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memmove
	movl	(%r13), %edi
	addl	%ebx, %edi
	movl	%edi, (%r13)
	subl	%ebx, %r15d
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rax
	addq	%rax, %r14
	subl	%ebx, %r12d
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_2
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.comm	_nfrontp,4,2                    ## @nfrontp
	.comm	_netobuf,4,2                    ## @netobuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_output_datalen                 ; -- Begin function output_datalen
	.p2align	2
_output_datalen:                        ; @output_datalen
	.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
	cmp	w1, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _BUFSIZ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BUFSIZ@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x23, _nfrontp@GOTPAGE
Lloh3:
	ldr	x23, [x23, _nfrontp@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh4:
	adrp	x24, _netobuf@GOTPAGE
Lloh5:
	ldr	x24, [x24, _netobuf@GOTPAGEOFF]
	ldr	w9, [x24]
	sub	w10, w8, w0
	add	w25, w10, w9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w19, w8
	csel	w8, w19, w8, lt
	cmp	w8, w25
	b.le	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_netflush
	ldr	w8, [x22]
	ldr	w0, [x23]
	ldr	w9, [x24]
	sub	w8, w8, w0
	add	w25, w8, w9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, w19
	csel	w21, w25, w19, lt
	mov	x1, x20
	mov	x2, x21
	bl	_memmove
	ldr	w8, [x23]
	add	w0, w8, w21
	str	w0, [x23]
	sub	w19, w19, w21
	cmp	w19, #1
	b.lt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, w21, sxtw
	sub	w25, w25, w21
	ldr	w8, [x22]
	b	LBB0_2
LBB0_6:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.comm	_nfrontp,4,2                    ; @nfrontp
	.comm	_netobuf,4,2                    ; @netobuf
.subsections_via_symbols
