	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_strlen30
	movl	%eax, %r12d
	movl	(%r14), %eax
	testb	%r15b, %r15b
	je	LBB0_1
## %bb.2:
	leal	(%rax,%r12), %esi
	addl	$3, %esi
	testl	%r12d, %r12d
	jle	LBB0_13
## %bb.3:
	movl	%r12d, %ecx
	cmpl	$8, %r12d
	jae	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	jmp	LBB0_12
LBB0_1:
	leal	(%rax,%r12), %esi
	incl	%esi
	jmp	LBB0_13
LBB0_5:
	movl	%ecx, %edx
	andl	$-8, %edx
	movd	%esi, %xmm0
	movzbl	%r15b, %esi
	movd	%esi, %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(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.7:
	movq	%r8, %rsi
	andq	$-2, %rsi
	pxor	%xmm2, %xmm2
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [1,1,1,1]
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movd	(%rbx,%rdi), %xmm4              ## xmm4 = mem[0],zero,zero,zero
	movd	4(%rbx,%rdi), %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,%rdi), %xmm0             ## xmm0 = mem[0],zero,zero,zero
	movd	12(%rbx,%rdi), %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, %rdi
	addq	$-2, %rsi
	jne	LBB0_8
## %bb.9:
	testb	$1, %r8b
	je	LBB0_11
LBB0_10:
	movd	(%rbx,%rdi), %xmm3              ## xmm3 = mem[0],zero,zero,zero
	movd	4(%rbx,%rdi), %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_11:
	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, %esi
	cmpq	%rcx, %rdx
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpb	%r15b, (%rbx,%rdx)
	sete	%dil
	addl	%edi, %esi
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_12
LBB0_13:
	addl	%esi, %eax
	movl	4(%r14), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_16
## %bb.14:
	leal	(%rsi,%rcx,2), %esi
	addl	$20, %esi
	movl	%esi, 4(%r14)
	movq	8(%r14), %rdi
	callq	_realloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	callq	_shell_out_of_memory
LBB0_16:
	movslq	(%r14), %rdi
	addq	8(%r14), %rdi
	testb	%r15b, %r15b
	je	LBB0_33
## %bb.17:
	movb	%r15b, (%rdi)
	incq	%rdi
	testl	%r12d, %r12d
	jle	LBB0_32
## %bb.18:
	movl	%r12d, %esi
	cmpl	$1, %r12d
	jne	LBB0_20
## %bb.19:
	xorl	%ecx, %ecx
LBB0_28:
	testb	$1, %sil
	je	LBB0_32
## %bb.29:
	movb	(%rbx,%rcx), %al
	movb	%al, (%rdi)
	cmpb	%r15b, (%rbx,%rcx)
	jne	LBB0_30
## %bb.31:
	movb	%r15b, 1(%rdi)
	addq	$2, %rdi
	jmp	LBB0_32
LBB0_33:
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movslq	(%r14), %rax
	movslq	%r12d, %rdi
	addq	%rax, %rdi
	movl	%edi, (%r14)
	addq	8(%r14), %rdi
	jmp	LBB0_34
LBB0_20:
	movl	%esi, %edx
	andl	$-2, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_21 Depth=1
	movb	%r15b, 1(%rdi)
	addq	$2, %rdi
LBB0_27:                                ##   in Loop: Header=BB0_21 Depth=1
	addq	$2, %rcx
	cmpq	%rcx, %rdx
	je	LBB0_28
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rcx), %eax
	movb	%al, (%rdi)
	cmpb	%r15b, (%rbx,%rcx)
	jne	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	movb	%r15b, 1(%rdi)
	addq	$2, %rdi
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%rdi
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=1
	movzbl	1(%rbx,%rcx), %eax
	movb	%al, (%rdi)
	cmpb	%r15b, 1(%rbx,%rcx)
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_21 Depth=1
	incq	%rdi
	jmp	LBB0_27
LBB0_30:
	incq	%rdi
LBB0_32:
	movb	%r15b, (%rdi)
	incq	%rdi
	movl	8(%r14), %eax
	movl	%edi, %ecx
	subl	%eax, %ecx
	movl	%ecx, (%r14)
LBB0_34:
	movb	$0, (%rdi)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	pxor	%xmm2, %xmm2
	xorl	%edi, %edi
	testb	$1, %r8b
	jne	LBB0_10
	jmp	LBB0_11
	.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	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	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_strlen30
	mov	x22, x0
	ldr	w8, [x19]
	add	w9, w8, w0
	cbz	w20, LBB0_4
; %bb.1:
	add	w11, w9, #3
	cmp	w22, #1
	b.lt	LBB0_16
; %bb.2:
	mov	w9, w22
	cmp	w22, #8
	b.hs	LBB0_5
; %bb.3:
	mov	x10, #0
	b	LBB0_14
LBB0_4:
	add	w11, w9, #1
	b	LBB0_16
LBB0_5:
	cmp	w22, #32
	b.hs	LBB0_7
; %bb.6:
	mov	x10, #0
	b	LBB0_11
LBB0_7:
	and	x10, x9, #0xffffffe0
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w11
	movi.2d	v1, #0000000000000000
	dup.16b	v2, w20
	add	x11, x21, #16
	movi.4s	v3, #1
	mov	x12, x10
	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_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q18, q19, [x11, #-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	x11, x11, #32
	subs	x12, x12, #32
	b.ne	LBB0_8
; %bb.9:
	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	w11, s0
	cmp	x10, x9
	b.eq	LBB0_16
; %bb.10:
	tst	x9, #0x18
	b.eq	LBB0_14
LBB0_11:
	mov	x12, x10
	and	x10, x9, #0xfffffff8
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w11
	movi.2d	v1, #0000000000000000
	dup.8b	v2, w20
	add	x11, x21, x12
	sub	x12, x12, x10
	movi.4s	v3, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	d4, [x11], #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	x12, x12, #8
	b.ne	LBB0_12
; %bb.13:
	add.4s	v0, v0, v1
	addv.4s	s0, v0
	fmov	w11, s0
	cmp	x10, x9
	b.eq	LBB0_16
LBB0_14:
	add	x12, x21, x10
	sub	x9, x9, x10
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x12], #1
	cmp	w10, w20, uxtb
	cinc	w11, w11, eq
	subs	x9, x9, #1
	b.ne	LBB0_15
LBB0_16:
	ldr	w9, [x19, #4]
	add	w8, w11, w8
	cmp	w8, w9
	b.lt	LBB0_19
; %bb.17:
	add	w8, w11, w9, lsl #1
	add	w1, w8, #20
	str	w1, [x19, #4]
	ldr	x0, [x19, #8]
	bl	_realloc
	str	x0, [x19, #8]
	cbnz	x0, LBB0_19
; %bb.18:
	bl	_shell_out_of_memory
LBB0_19:
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x0, x8, x9
	cbz	w20, LBB0_27
; %bb.20:
	strb	w20, [x0], #1
	cmp	w22, #1
	b.lt	LBB0_26
; %bb.21:
	mov	w8, w22
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_24 Depth=1
	strb	w20, [x0, #1]
	add	x0, x0, #2
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x21, x21, #1
	subs	x8, x8, #1
	b.eq	LBB0_26
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x21]
	mov	x9, x0
	strb	w10, [x9], #1
	ldrb	w10, [x21]
	cmp	w10, w20, uxtb
	b.eq	LBB0_22
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x9
	b	LBB0_23
LBB0_26:
	strb	w20, [x0], #1
	ldr	w8, [x19, #8]
	sub	w8, w0, w8
	str	w8, [x19]
	b	LBB0_28
LBB0_27:
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	ldrsw	x8, [x19]
	add	x8, x8, w22, sxtw
	str	w8, [x19]
	ldr	x9, [x19, #8]
	add	x0, x9, x8
LBB0_28:
	strb	wzr, [x0]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_appendText
.subsections_via_symbols
