	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_text
_prepare_text:                          ## @prepare_text
	.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
	movq	%rdi, %r14
	movq	(%rdi), %r15
	callq	_FILE_BUFFER
	movq	%rax, %r13
	movq	%rax, %r12
	testq	%r15, %r15
	je	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	cmpb	$10, -1(%r15,%r12)
	je	LBB0_3
## %bb.2:
	movb	$10, (%r12,%r15)
	incq	%r15
	movl	$1, %eax
LBB0_3:
	movl	%eax, 8(%r14)
	jmp	LBB0_6
LBB0_4:
	movl	$0, 8(%r14)
	testq	%r13, %r13
	je	LBB0_15
## %bb.5:
	xorl	%r15d, %r15d
LBB0_6:
	addq	%r15, %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_strip_trailing_cr@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.7:
	movq	%r12, %rdi
	movl	$13, %esi
	movq	%r15, %rdx
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	%rax, %rcx
	subq	%r15, %rcx
	movq	%rax, %rsi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$10, 1(%rsi)
	sete	%sil
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	xorb	$1, %sil
	movzbl	%sil, %esi
	addq	%rsi, %rax
	incq	%rcx
	movq	%rdx, %rsi
	cmpq	%r13, %rdx
	jae	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rsi), %rdx
	movzbl	(%rsi), %ebx
	movb	%bl, (%rax)
	cmpb	$13, %bl
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_12
LBB0_13:
	subq	%rcx, %rax
	movq	%rax, %r15
LBB0_14:
	movq	%r15, (%r14)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_strip_trailing_cr,8,3          ## @strip_trailing_cr
	.no_dead_strip	_prepare_text
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_text
_prepare_text:                          ; @prepare_text
	.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
	ldr	x20, [x0]
	bl	_FILE_BUFFER
	mov	x22, x0
	cbz	x20, LBB0_3
; %bb.1:
	add	x8, x20, x22
	ldurb	w8, [x8, #-1]
	cmp	w8, #10
	b.ne	LBB0_5
; %bb.2:
	mov	w8, #0
	b	LBB0_6
LBB0_3:
	str	wzr, [x19, #8]
	cbz	x22, LBB0_16
; %bb.4:
	mov	x20, #0
	b	LBB0_7
LBB0_5:
	mov	w8, #10
	strb	w8, [x22, x20]
	add	x20, x20, #1
	mov	w8, #1
LBB0_6:
	str	w8, [x19, #8]
LBB0_7:
	add	x21, x22, x20
	mov	x0, x21
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _strip_trailing_cr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _strip_trailing_cr@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.8:
	mov	x0, x22
	mov	w1, #13
	mov	x2, x20
	bl	_memchr
	cbz	x0, LBB0_15
; %bb.9:
	sub	x8, x0, x20
	mov	x10, x0
	mov	x9, x0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	ldrb	w10, [x10, #1]
	cmp	w10, #10
	cset	w10, eq
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	eor	w10, w10, #0x1
	add	x0, x0, x10
	add	x8, x8, #1
	mov	x10, x9
	cmp	x9, x21
	b.hs	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x9], #1
	strb	w11, [x0]
	cmp	w11, #13
	b.eq	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w10, #0
	b	LBB0_11
LBB0_14:
	sub	x20, x0, x8
LBB0_15:
	str	x20, [x19]
LBB0_16:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_strip_trailing_cr,8,3          ; @strip_trailing_cr
	.no_dead_strip	_prepare_text
.subsections_via_symbols
