	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function lf_to_crlf
LCPI0_0:
	.byte	10                              ## 0xa
	.byte	10                              ## 0xa
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_1:
	.byte	13                              ## 0xd
	.byte	13                              ## 0xd
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_2:
	.quad	1                               ## 0x1
	.quad	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_lf_to_crlf:                            ## @lf_to_crlf
	.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, %r14
	movq	(%rdi), %r8
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	movq	8(%r14), %r9
	cmpq	$4, %r8
	jae	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	LBB0_8
LBB0_1:
	xorl	%edi, %edi
	jmp	LBB0_9
LBB0_4:
	movq	%r8, %rdx
	andq	$-4, %rdx
	pxor	%xmm0, %xmm0
	pxor	%xmm6, %xmm6
	xorl	%esi, %esi
	movdqa	LCPI0_0(%rip), %xmm8            ## xmm8 = <10,10,u,u,u,u,u,u,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_1(%rip), %xmm9            ## xmm9 = <13,13,u,u,u,u,u,u,u,u,u,u,u,u,u,u>
	pcmpeqd	%xmm4, %xmm4
	movdqa	LCPI0_2(%rip), %xmm10           ## xmm10 = [1,1]
	pxor	%xmm3, %xmm3
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzwl	(%r9,%rsi), %edi
	movd	%edi, %xmm2
	movzwl	2(%r9,%rsi), %edi
	psrlw	$8, %xmm6
	punpcklbw	%xmm2, %xmm6            ## xmm6 = xmm6[0],xmm2[0],xmm6[1],xmm2[1],xmm6[2],xmm2[2],xmm6[3],xmm2[3],xmm6[4],xmm2[4],xmm6[5],xmm2[5],xmm6[6],xmm2[6],xmm6[7],xmm2[7]
	pcmpeqb	%xmm9, %xmm6
	pxor	%xmm4, %xmm6
	pmovzxbq	%xmm6, %xmm1                    ## xmm1 = xmm6[0],zero,zero,zero,zero,zero,zero,zero,xmm6[1],zero,zero,zero,zero,zero,zero,zero
	movd	%edi, %xmm6
	movdqa	%xmm2, %xmm7
	psrlw	$8, %xmm7
	punpcklbw	%xmm6, %xmm7            ## xmm7 = xmm7[0],xmm6[0],xmm7[1],xmm6[1],xmm7[2],xmm6[2],xmm7[3],xmm6[3],xmm7[4],xmm6[4],xmm7[5],xmm6[5],xmm7[6],xmm6[6],xmm7[7],xmm6[7]
	pcmpeqb	%xmm8, %xmm2
	pmovzxbq	%xmm2, %xmm2                    ## xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
	movdqa	%xmm6, %xmm5
	pcmpeqb	%xmm8, %xmm5
	pmovzxbq	%xmm5, %xmm5                    ## xmm5 = xmm5[0],zero,zero,zero,zero,zero,zero,zero,xmm5[1],zero,zero,zero,zero,zero,zero,zero
	pcmpeqb	%xmm9, %xmm7
	pxor	%xmm4, %xmm7
	pmovzxbq	%xmm7, %xmm7                    ## xmm7 = xmm7[0],zero,zero,zero,zero,zero,zero,zero,xmm7[1],zero,zero,zero,zero,zero,zero,zero
	pand	%xmm10, %xmm2
	pand	%xmm1, %xmm2
	paddq	%xmm2, %xmm0
	pand	%xmm10, %xmm5
	pand	%xmm7, %xmm5
	paddq	%xmm5, %xmm3
	psubq	%xmm4, %xmm0
	psubq	%xmm4, %xmm3
	addq	$4, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_5
## %bb.6:
	paddq	%xmm0, %xmm3
	pshufd	$238, %xmm3, %xmm0              ## xmm0 = xmm3[2,3,2,3]
	paddq	%xmm3, %xmm0
	movq	%xmm0, %rdi
	cmpq	%rdx, %r8
	je	LBB0_9
## %bb.7:
	pextrb	$1, %xmm6, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r9,%rdx), %ebx
	cmpb	$10, %bl
	sete	%al
	cmpb	$13, %sil
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	addq	%rax, %rdi
	incq	%rdi
	incq	%rdx
	movl	%ebx, %esi
	cmpq	%rdx, %r8
	jne	LBB0_8
LBB0_9:
	callq	_xmallocz
	cmpq	$0, (%r14)
	je	LBB0_10
## %bb.11:
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movb	%bl, (%rax,%rdx)
	incq	%rdx
	incq	%rcx
	movl	%ebx, %esi
	cmpq	(%r14), %rcx
	jae	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	movzbl	(%rdi,%rcx), %ebx
	cmpb	$10, %bl
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpb	$13, %sil
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movb	$13, (%rax,%rdx)
	incq	%rdx
	movq	8(%r14), %rsi
	movzbl	(%rsi,%rcx), %ebx
	jmp	LBB0_15
LBB0_10:
	xorl	%edx, %edx
LBB0_16:
	leaq	1(%rdx), %rcx
	movq	%r14, %rdi
	movq	%rax, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_strbuf_attach                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lf_to_crlf
.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
_lf_to_crlf:                            ; @lf_to_crlf
	.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	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x19, #8]
	cmp	x8, #16
	b.hs	LBB0_4
; %bb.2:
	mov	w11, #0
	mov	x0, #0
	mov	x10, #0
	b	LBB0_8
LBB0_3:
	mov	x0, #0
	b	LBB0_10
LBB0_4:
	and	x10, x8, #0xfffffffffffffff0
	movi.2d	v0, #0000000000000000
	movi.16b	v1, #10
	movi.16b	v2, #13
	mov	w11, #1
	dup.2d	v3, x11
	mov	x11, x10
	movi.2d	v6, #0000000000000000
	mov	x12, x9
	movi.2d	v4, #0000000000000000
	movi.2d	v7, #0000000000000000
	movi.2d	v5, #0000000000000000
	movi.2d	v18, #0000000000000000
	movi.2d	v16, #0000000000000000
	movi.2d	v19, #0000000000000000
	movi.2d	v17, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov.16b	v20, v0
	ldr	q0, [x12], #16
	ext.16b	v20, v20, v0, #15
	cmeq.16b	v21, v0, v1
	cmeq.16b	v20, v20, v2
	bic.16b	v22, v21, v20
	umov.b	w13, v22[0]
	fmov	s20, w13
	umov.b	w13, v22[1]
	mov.s	v20[1], w13
	ushll.2d	v20, v20, #0
	and.16b	v20, v20, v3
	umov.b	w13, v22[2]
	fmov	s21, w13
	umov.b	w13, v22[3]
	mov.s	v21[1], w13
	ushll.2d	v21, v21, #0
	and.16b	v21, v21, v3
	umov.b	w13, v22[4]
	fmov	s23, w13
	umov.b	w13, v22[5]
	mov.s	v23[1], w13
	ushll.2d	v23, v23, #0
	and.16b	v23, v23, v3
	umov.b	w13, v22[6]
	fmov	s24, w13
	umov.b	w13, v22[7]
	mov.s	v24[1], w13
	ushll.2d	v24, v24, #0
	and.16b	v24, v24, v3
	umov.b	w13, v22[8]
	fmov	s25, w13
	umov.b	w13, v22[9]
	mov.s	v25[1], w13
	ushll.2d	v25, v25, #0
	and.16b	v25, v25, v3
	umov.b	w13, v22[10]
	fmov	s26, w13
	umov.b	w13, v22[11]
	mov.s	v26[1], w13
	ushll.2d	v26, v26, #0
	and.16b	v26, v26, v3
	umov.b	w13, v22[12]
	fmov	s27, w13
	umov.b	w13, v22[13]
	mov.s	v27[1], w13
	ushll.2d	v27, v27, #0
	and.16b	v27, v27, v3
	umov.b	w13, v22[14]
	fmov	s28, w13
	umov.b	w13, v22[15]
	mov.s	v28[1], w13
	ushll.2d	v22, v28, #0
	and.16b	v22, v22, v3
	mvn.16b	v17, v17
	sub.2d	v17, v22, v17
	mvn.16b	v19, v19
	sub.2d	v19, v27, v19
	mvn.16b	v16, v16
	sub.2d	v16, v26, v16
	mvn.16b	v18, v18
	sub.2d	v18, v25, v18
	mvn.16b	v5, v5
	sub.2d	v5, v24, v5
	mvn.16b	v7, v7
	sub.2d	v7, v23, v7
	mvn.16b	v4, v4
	sub.2d	v4, v21, v4
	mvn.16b	v6, v6
	sub.2d	v6, v20, v6
	subs	x11, x11, #16
	b.ne	LBB0_5
; %bb.6:
	add.2d	v1, v6, v18
	add.2d	v2, v7, v19
	add.2d	v1, v1, v2
	add.2d	v2, v4, v16
	add.2d	v3, v5, v17
	add.2d	v2, v2, v3
	add.2d	v1, v1, v2
	addp.2d	d1, v1
	fmov	x0, d1
	cmp	x8, x10
	b.eq	LBB0_10
; %bb.7:
	umov.b	w11, v0[15]
LBB0_8:
	sub	x8, x8, x10
	add	x9, x9, x10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	and	w10, w11, #0xff
	ldrb	w11, [x9], #1
	cmp	w10, #13
	ccmp	w11, #10, #0, ne
	cinc	x10, x0, eq
	add	x0, x10, #1
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	bl	_xmallocz
	mov	x1, x0
	ldr	x8, [x19]
	cbz	x8, LBB0_15
; %bb.11:
	mov	w12, #0
	mov	x10, #0
	mov	x8, #0
	mov	w9, #13
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	strb	w11, [x1, x10]
	add	x2, x10, #1
	add	x8, x8, #1
	ldr	x13, [x19]
	mov	x12, x11
	mov	x10, x2
	cmp	x8, x13
	b.hs	LBB0_16
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x19, #8]
	ldrb	w11, [x11, x8]
	cmp	w11, #10
	ccmp	w12, #13, #4, eq
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	strb	w9, [x1, x10]
	add	x10, x10, #1
	ldr	x11, [x19, #8]
	ldrb	w11, [x11, x8]
	b	LBB0_12
LBB0_15:
	mov	x2, #0
LBB0_16:
	add	x3, x2, #1
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_strbuf_attach
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lf_to_crlf
.subsections_via_symbols
