	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RichString_writeFrom
_RichString_writeFrom:                  ## @RichString_writeFrom
	.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
	movl	%r8d, %r12d
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leal	(%r12,%rcx), %r13d
	movl	%r13d, %esi
	callq	_RichString_setLen
	testl	%r12d, %r12d
	jle	LBB0_1
## %bb.3:
	movslq	-48(%rbp), %rcx                 ## 4-byte Folded Reload
	movslq	%r13d, %rax
	movl	$63, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %esi
	cmpb	$32, %sil
	cmovll	%edx, %esi
	orb	%r15b, %sil
	movq	(%r14), %rdi
	movb	%sil, (%rdi,%rcx)
	incq	%rcx
	incq	%rbx
	cmpq	%rax, %rcx
	jl	LBB0_4
	jmp	LBB0_2
LBB0_1:
	movslq	%r13d, %rax
LBB0_2:
	movq	(%r14), %rcx
	movb	$0, (%rcx,%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_RichString_writeFrom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RichString_writeFrom
_RichString_writeFrom:                  ; @RichString_writeFrom
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x24, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	w22, w4, w3
	mov	x1, x22
	bl	_RichString_setLen
	cmp	w24, #0
	b.le	LBB0_3
; %bb.1:
	sxtw	x9, w23
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x8, w22
	mov	w10, #63
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w11, [x20], #1
	cmp	w11, #31
	csel	w11, w11, w10, gt
	orr	w11, w11, w21
	ldr	x12, [x19]
	strb	w11, [x12, x9]
	add	x9, x9, #1
	cmp	x9, x8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	sxtw	x8, w22
LBB0_4:
	ldr	x9, [x19]
	strb	wzr, [x9, x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_RichString_writeFrom
.subsections_via_symbols
