	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function strip_cr
_strip_cr:                              ## @strip_cr
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_strlen
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	$13, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	incl	%r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rbx), %rsi
	movl	%r14d, %edx
	subl	%ebx, %edx
	addl	%r15d, %edx
	movq	%rbx, %rdi
	callq	_memmove
	movq	%rbx, %rdi
	movl	$13, %esi
	callq	_strchr
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_8
## %bb.4:
	movq	%r14, %rdi
	callq	_strlen
	cltq
	leaq	(%r14,%rax), %rbx
	decq	%rbx
	cmpq	%r14, %rbx
	jb	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movb	$0, (%rbx)
	decq	%rbx
	cmpq	%r14, %rbx
	jae	LBB0_6
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strcat                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.no_dead_strip	_strip_cr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function strip_cr
_strip_cr:                              ; @strip_cr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_strlen
	mov	x21, x0
	mov	x0, x19
	mov	w1, #13
	bl	_strchr
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	add	w21, w21, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x20, #1
	sub	w8, w19, w20
	add	w2, w21, w8
	mov	x0, x20
	bl	_memmove
	mov	x0, x20
	mov	w1, #13
	bl	_strchr
	mov	x20, x0
	cbnz	x0, LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_strlen
	add	x8, x19, w0, sxtw
	sub	x20, x8, #1
	cmp	x20, x19
	b.lo	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x20]
	bl	_isspace
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	wzr, [x20], #-1
	cmp	x20, x19
	b.hs	LBB0_5
LBB0_7:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_strcat
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.no_dead_strip	_strip_cr
.subsections_via_symbols
