	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lf_to_crlf_filter_fn
_lf_to_crlf_filter_fn:                  ## @lf_to_crlf_filter_fn
	.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
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movb	4(%rdi), %al
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	cmpb	$13, %al
	jne	LBB0_4
## %bb.7:
	movq	(%rdx), %r11
	movl	$0, (%rdi)
	movl	$1, %r9d
	xorl	%r10d, %r10d
	jmp	LBB0_9
LBB0_1:
	xorl	%r10d, %r10d
	testq	%rsi, %rsi
	jne	LBB0_8
LBB0_6:
	subq	%r10, (%r8)
	jmp	LBB0_26
LBB0_4:
	movb	%al, (%rcx)
	movl	$0, (%rdi)
	movl	$1, %r10d
	testq	%rsi, %rsi
	je	LBB0_6
LBB0_8:
	movq	(%rdx), %r11
	xorl	%r9d, %r9d
	testq	%r11, %r11
	je	LBB0_26
LBB0_9:
	movq	(%r8), %r14
	xorl	%eax, %eax
	movb	$1, %bl
	cmpq	%r10, %r14
	jbe	LBB0_23
## %bb.10:
	testq	%r11, %r11
	je	LBB0_23
## %bb.11:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi,%rax), %ebx
	cmpb	$10, %bl
	jne	LBB0_13
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	movb	$13, (%rcx,%r10)
	incq	%r10
	movq	(%r8), %r14
	cmpq	%r10, %r14
	ja	LBB0_17
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_12 Depth=1
	testl	%r9d, %r9d
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movb	$13, (%rcx,%r10)
	incq	%r10
	movq	(%r8), %r14
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpq	%r10, %r14
	jbe	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	$1, %r9d
	cmpb	$13, %bl
	je	LBB0_20
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	movb	%bl, (%rcx,%r10)
	incq	%r10
	movq	(%r8), %r14
	xorl	%r9d, %r9d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	$1, (%rdi)
	movb	%bl, 4(%rdi)
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rax
	cmpq	%r10, %r14
	jbe	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	%r11, %rax
	jb	LBB0_12
LBB0_22:
	cmpl	$0, (%rdi)
	sete	%bl
LBB0_23:
	subq	%r10, %r14
	movq	%r14, (%r8)
	subq	%rax, (%rdx)
	testb	%bl, %bl
	je	LBB0_26
## %bb.24:
	testl	%r9d, %r9d
	je	LBB0_26
## %bb.25:
	movl	$1, (%rdi)
	movb	$13, 4(%rdi)
LBB0_26:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lf_to_crlf_filter_fn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lf_to_crlf_filter_fn
_lf_to_crlf_filter_fn:                  ; @lf_to_crlf_filter_fn
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	ldrb	w8, [x0, #4]
	cbz	x1, LBB0_6
; %bb.2:
	cmp	w8, #13
	b.ne	LBB0_6
; %bb.3:
	mov	x8, #0
	ldr	x11, [x2]
	str	wzr, [x0]
	mov	w9, #1
	b	LBB0_9
LBB0_4:
	mov	x8, #0
	cbnz	x1, LBB0_7
LBB0_5:
	ldr	x9, [x4]
	sub	x8, x9, x8
	str	x8, [x4]
	mov	w0, #0
	ret
LBB0_6:
	strb	w8, [x3]
	str	wzr, [x0]
	mov	w8, #1
	cbz	x1, LBB0_5
LBB0_7:
	ldr	x11, [x2]
	cbz	x11, LBB0_26
; %bb.8:
	mov	w9, #0
LBB0_9:
	ldr	x13, [x4]
	mov	w10, #1
	cmp	x13, x8
	mov	x12, #0
	ccmp	x11, #0, #4, hi
	b.eq	LBB0_23
; %bb.10:
	mov	w14, #13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w15, [x1, x12]
	cmp	w15, #10
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	strb	w14, [x3, x8]
	add	x16, x8, #1
	ldr	x13, [x4]
	mov	x8, x16
	cmp	x13, x16
	b.ls	LBB0_18
	b	LBB0_19
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	cbz	w9, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	strb	w14, [x3, x8]
	add	x8, x8, #1
	ldr	x13, [x4]
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	x13, x8
	b.ls	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w15, #13
	b.ne	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w9, #1
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=1
	str	w10, [x0]
	strb	w15, [x0, #4]
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w9, #0
	strb	w15, [x3, x8]
	add	x8, x8, #1
	ldr	x13, [x4]
LBB0_20:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x12, x12, #1
	cmp	x13, x8
	b.ls	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	x12, x11
	b.lo	LBB0_11
LBB0_22:
	ldr	w10, [x0]
	cmp	w10, #0
	cset	w10, eq
LBB0_23:
	sub	x8, x13, x8
	str	x8, [x4]
	ldr	x8, [x2]
	sub	x8, x8, x12
	str	x8, [x2]
	cbz	w10, LBB0_26
; %bb.24:
	cbz	w9, LBB0_26
; %bb.25:
	mov	w8, #1
	str	w8, [x0]
	mov	w8, #13
	strb	w8, [x0, #4]
LBB0_26:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lf_to_crlf_filter_fn
.subsections_via_symbols
