	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function next_line
_next_line:                             ## @next_line
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movl	8(%rdi), %edx
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rcx
	subq	%r14, %rcx
	testq	%rcx, %rcx
	jle	LBB0_4
## %bb.2:
	cmpb	$13, -1(%rax)
	jne	LBB0_4
## %bb.3:
	leaq	-1(%rax), %rcx
	jmp	LBB0_5
LBB0_4:
	movq	%rax, %rcx
LBB0_5:
	movb	$0, (%rcx)
	incq	%rax
	movq	%rax, (%rbx)
	movl	%r14d, %ecx
	subl	%eax, %ecx
	addl	8(%rbx), %ecx
	jmp	LBB0_9
LBB0_6:
	movslq	8(%rbx), %rdx
	movq	16(%rbx), %rax
	xorl	%ecx, %ecx
	cmpq	%rdx, %rax
	jbe	LBB0_8
## %bb.7:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_8:
	movb	$0, (%r14,%rax)
	movq	$0, (%rbx)
LBB0_9:
	movl	%ecx, 8(%rbx)
LBB0_10:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_next_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function next_line
_next_line:                             ; @next_line
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	x19, [x0]
	ldr	w2, [x0, #8]
	mov	x0, x19
	mov	w1, #10
	bl	_memchr
	cbz	x0, LBB0_5
; %bb.1:
	sub	x8, x0, x19
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.2:
	mov	x8, x0
	ldrb	w9, [x8, #-1]!
	cmp	w9, #13
	b.eq	LBB0_4
LBB0_3:
	mov	x8, x0
LBB0_4:
	strb	wzr, [x8]
	add	x8, x0, #1
	str	x8, [x20]
	ldr	w9, [x20, #8]
	sub	w8, w19, w8
	add	w8, w9, w8
	b	LBB0_8
LBB0_5:
	ldrsw	x8, [x20, #8]
	ldr	x9, [x20, #16]
	cmp	x9, x8
	b.ls	LBB0_7
; %bb.6:
	mov	x19, #0
	b	LBB0_9
LBB0_7:
	mov	w8, #0
	strb	wzr, [x19, x9]
	str	xzr, [x20]
LBB0_8:
	str	w8, [x20, #8]
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_next_line
.subsections_via_symbols
