	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function appendText
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_appendText:                            ## @appendText
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_strlen30
	movl	%eax, %esi
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movq	%rsi, %r15
	callq	_strlen30
	movq	%r15, %rsi
	movl	%eax, %r15d
	jmp	LBB0_3
LBB0_2:
	xorl	%r15d, %r15d
LBB0_3:
	leal	(%r15,%rsi), %r12d
	testb	%r14b, %r14b
	je	LBB0_7
## %bb.4:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	addl	$3, %r12d
	movl	%esi, %r15d
	testl	%esi, %esi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_16
## %bb.5:
	cmpl	$8, %esi
	jae	LBB0_9
## %bb.6:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_7:
	movq	%rsi, %r14
	leal	1(%r12), %esi
	movq	%r13, %rdi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_24
## %bb.8:
	movq	%rax, %r13
	movslq	%r15d, %rdi
	addq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movslq	%r12d, %rax
	movb	$0, (%r13,%rax)
	jmp	LBB0_36
LBB0_9:
	movl	%r15d, %eax
	andl	$-8, %eax
	movd	%r12d, %xmm0
	movzbl	%r14b, %ecx
	movd	%ecx, %xmm1
	punpcklbw	%xmm1, %xmm1            ## xmm1 = xmm1[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
	pshuflw	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0,4,5,6,7]
	leaq	-8(%rax), %rdx
	movq	%rdx, %rcx
	shrq	$3, %rcx
	incq	%rcx
	testq	%rdx, %rdx
	je	LBB0_33
## %bb.10:
	movq	%rcx, %rsi
	andq	$-2, %rsi
	pxor	%xmm2, %xmm2
	xorl	%edx, %edx
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [1,1,1,1]
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movd	(%rbx,%rdx), %xmm4              ## xmm4 = mem[0],zero,zero,zero
	movd	4(%rbx,%rdx), %xmm5             ## xmm5 = mem[0],zero,zero,zero
	pcmpeqb	%xmm1, %xmm4
	pmovzxbd	%xmm4, %xmm4                    ## xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero,xmm4[2],zero,zero,zero,xmm4[3],zero,zero,zero
	pand	%xmm3, %xmm4
	paddd	%xmm0, %xmm4
	pcmpeqb	%xmm1, %xmm5
	pmovzxbd	%xmm5, %xmm5                    ## xmm5 = xmm5[0],zero,zero,zero,xmm5[1],zero,zero,zero,xmm5[2],zero,zero,zero,xmm5[3],zero,zero,zero
	pand	%xmm3, %xmm5
	paddd	%xmm2, %xmm5
	movd	8(%rbx,%rdx), %xmm0             ## xmm0 = mem[0],zero,zero,zero
	movd	12(%rbx,%rdx), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	pcmpeqb	%xmm1, %xmm0
	pmovzxbd	%xmm0, %xmm0                    ## xmm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero,xmm0[2],zero,zero,zero,xmm0[3],zero,zero,zero
	pand	%xmm3, %xmm0
	paddd	%xmm4, %xmm0
	pcmpeqb	%xmm1, %xmm2
	pmovzxbd	%xmm2, %xmm2                    ## xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero,xmm2[2],zero,zero,zero,xmm2[3],zero,zero,zero
	pand	%xmm3, %xmm2
	paddd	%xmm5, %xmm2
	addq	$16, %rdx
	addq	$-2, %rsi
	jne	LBB0_11
## %bb.12:
	testb	$1, %cl
	je	LBB0_14
LBB0_13:
	movd	(%rbx,%rdx), %xmm3              ## xmm3 = mem[0],zero,zero,zero
	movd	4(%rbx,%rdx), %xmm4             ## xmm4 = mem[0],zero,zero,zero
	pcmpeqb	%xmm1, %xmm3
	pmovzxbd	%xmm3, %xmm3                    ## xmm3 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero,xmm3[2],zero,zero,zero,xmm3[3],zero,zero,zero
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [1,1,1,1]
	pand	%xmm5, %xmm3
	paddd	%xmm3, %xmm0
	pcmpeqb	%xmm1, %xmm4
	pmovzxbd	%xmm4, %xmm1                    ## xmm1 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero,xmm4[2],zero,zero,zero,xmm4[3],zero,zero,zero
	pand	%xmm5, %xmm1
	paddd	%xmm1, %xmm2
LBB0_14:
	paddd	%xmm2, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r12d
	cmpq	%r15, %rax
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	xorl	%ecx, %ecx
	cmpb	%r14b, (%rbx,%rax)
	sete	%cl
	addl	%ecx, %r12d
	incq	%rax
	cmpq	%rax, %r15
	jne	LBB0_15
LBB0_16:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_24
## %bb.17:
	movq	%rax, %r13
	movslq	-48(%rbp), %rcx                 ## 4-byte Folded Reload
	addq	%rcx, %rax
	incq	%rax
	movb	%r14b, (%r13,%rcx)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testl	%ecx, %ecx
	jle	LBB0_35
## %bb.18:
	cmpl	$1, %ecx
	jne	LBB0_25
## %bb.19:
	xorl	%ecx, %ecx
LBB0_20:
	testb	$1, %r15b
	je	LBB0_35
## %bb.21:
	movb	(%rbx,%rcx), %dl
	movb	%dl, (%rax)
	cmpb	%r14b, (%rbx,%rcx)
	jne	LBB0_34
## %bb.22:
	movb	%r14b, 1(%rax)
	addq	$2, %rax
	jmp	LBB0_35
LBB0_24:
	xorl	%r13d, %r13d
	jmp	LBB0_36
LBB0_25:
	movl	%r15d, %esi
	andl	$-2, %esi
	xorl	%ecx, %ecx
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_28 Depth=1
	movb	%r14b, 1(%rax)
	addq	$2, %rax
LBB0_27:                                ##   in Loop: Header=BB0_28 Depth=1
	addq	$2, %rcx
	cmpq	%rcx, %rsi
	je	LBB0_20
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rcx), %edx
	movb	%dl, (%rax)
	cmpb	%r14b, (%rbx,%rcx)
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movb	%r14b, 1(%rax)
	addq	$2, %rax
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=1
	incq	%rax
LBB0_31:                                ##   in Loop: Header=BB0_28 Depth=1
	movzbl	1(%rbx,%rcx), %edx
	movb	%dl, (%rax)
	cmpb	%r14b, 1(%rbx,%rcx)
	je	LBB0_26
## %bb.32:                              ##   in Loop: Header=BB0_28 Depth=1
	incq	%rax
	jmp	LBB0_27
LBB0_33:
	pxor	%xmm2, %xmm2
	xorl	%edx, %edx
	testb	$1, %cl
	jne	LBB0_13
	jmp	LBB0_14
LBB0_34:
	incq	%rax
LBB0_35:
	movb	%r14b, (%rax)
	movb	$0, 1(%rax)
	subq	%r13, %rax
	addq	$2, %rax
	movslq	%r12d, %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	sete	%dil
	callq	_assert
LBB0_36:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_appendText
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function appendText
_appendText:                            ; @appendText
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_strlen30
	mov	x21, x0
	cbz	x22, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_strlen30
                                        ; kill: def $w0 killed $w0 def $x0
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	sxtw	x25, w0
	add	x23, x25, w21, sxtw
	cbz	w20, LBB0_7
; %bb.4:
	add	w23, w23, #3
	mov	w24, w21
	cmp	w21, #1
	b.lt	LBB0_20
; %bb.5:
	cmp	w21, #8
	b.hs	LBB0_9
; %bb.6:
	mov	x8, #0
	b	LBB0_18
LBB0_7:
	add	w1, w23, #1
	mov	x0, x22
	bl	_realloc
	mov	x22, x0
	cbz	x0, LBB0_23
; %bb.8:
	add	x0, x22, x25
	mov	x1, x19
	mov	x2, x21
	bl	_memcpy
	strb	wzr, [x22, x23]
	b	LBB0_23
LBB0_9:
	cmp	w21, #32
	b.hs	LBB0_11
; %bb.10:
	mov	x8, #0
	b	LBB0_15
LBB0_11:
	and	x8, x24, #0xffffffe0
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w23
	movi.2d	v1, #0000000000000000
	dup.16b	v2, w20
	add	x9, x19, #16
	movi.4s	v3, #1
	mov	x10, x8
	movi.2d	v4, #0000000000000000
	movi.2d	v5, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.2d	v16, #0000000000000000
	movi.2d	v7, #0000000000000000
	movi.2d	v17, #0000000000000000
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldp	q18, q19, [x9, #-16]
	cmeq.16b	v18, v18, v2
	ushll.8h	v20, v18, #0
	ushll.4s	v21, v20, #0
	and.16b	v21, v21, v3
	ushll2.4s	v20, v20, #0
	and.16b	v20, v20, v3
	ushll2.8h	v18, v18, #0
	ushll.4s	v22, v18, #0
	and.16b	v22, v22, v3
	ushll2.4s	v18, v18, #0
	and.16b	v18, v18, v3
	cmeq.16b	v19, v19, v2
	ushll.8h	v23, v19, #0
	ushll.4s	v24, v23, #0
	and.16b	v24, v24, v3
	ushll2.4s	v23, v23, #0
	and.16b	v23, v23, v3
	ushll2.8h	v19, v19, #0
	ushll.4s	v25, v19, #0
	and.16b	v25, v25, v3
	ushll2.4s	v19, v19, #0
	and.16b	v19, v19, v3
	add.4s	v5, v5, v18
	add.4s	v4, v4, v22
	add.4s	v1, v1, v20
	add.4s	v0, v0, v21
	add.4s	v17, v17, v19
	add.4s	v7, v7, v25
	add.4s	v16, v16, v23
	add.4s	v6, v6, v24
	add	x9, x9, #32
	subs	x10, x10, #32
	b.ne	LBB0_12
; %bb.13:
	add.4s	v1, v16, v1
	add.4s	v2, v17, v5
	add.4s	v0, v6, v0
	add.4s	v3, v7, v4
	add.4s	v0, v0, v3
	add.4s	v1, v1, v2
	add.4s	v0, v0, v1
	addv.4s	s0, v0
	fmov	w23, s0
	cmp	x8, x24
	b.eq	LBB0_20
; %bb.14:
	tst	x24, #0x18
	b.eq	LBB0_18
LBB0_15:
	mov	x10, x8
	and	x8, x24, #0xfffffff8
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w23
	movi.2d	v1, #0000000000000000
	dup.8b	v2, w20
	add	x9, x19, x10
	sub	x10, x10, x8
	movi.4s	v3, #1
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	d4, [x9], #8
	cmeq.8b	v4, v4, v2
	ushll.8h	v4, v4, #0
	ushll.4s	v5, v4, #0
	and.16b	v5, v5, v3
	ushll2.4s	v4, v4, #0
	and.16b	v4, v4, v3
	add.4s	v1, v1, v4
	add.4s	v0, v0, v5
	adds	x10, x10, #8
	b.ne	LBB0_16
; %bb.17:
	add.4s	v0, v0, v1
	addv.4s	s0, v0
	fmov	w23, s0
	cmp	x8, x24
	b.eq	LBB0_20
LBB0_18:
	add	x9, x19, x8
	sub	x8, x24, x8
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9], #1
	cmp	w10, w20, uxtb
	cinc	w23, w23, eq
	subs	x8, x8, #1
	b.ne	LBB0_19
LBB0_20:
	mov	x0, x22
	mov	x1, x23
	bl	_realloc
	mov	x22, x0
	cbz	x0, LBB0_23
; %bb.21:
	add	x8, x22, x25
	strb	w20, [x8], #1
	cmp	w21, #1
	b.ge	LBB0_26
LBB0_22:
	strb	w20, [x8]
	strb	wzr, [x8, #1]
	sub	x8, x8, x22
	add	x8, x8, #2
	cmp	x8, w23, sxtw
	cset	w0, eq
	bl	_assert
LBB0_23:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_24:                                ;   in Loop: Header=BB0_26 Depth=1
	strb	w20, [x8, #1]
	add	x8, x8, #2
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	add	x19, x19, #1
	subs	x24, x24, #1
	b.eq	LBB0_22
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x19]
	mov	x9, x8
	strb	w10, [x9], #1
	ldrb	w10, [x19]
	cmp	w10, w20, uxtb
	b.eq	LBB0_24
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	x8, x9
	b	LBB0_25
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_appendText
.subsections_via_symbols
