	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dyn_string_insert_cstr         ## -- Begin function dyn_string_insert_cstr
	.p2align	4, 0x90
_dyn_string_insert_cstr:                ## @dyn_string_insert_cstr
	.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	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	%rdx, %rdi
	callq	_strlen
	movl	%eax, %r15d
	movl	(%r12), %esi
	addl	%eax, %esi
	movq	%r12, %rdi
	callq	_dyn_string_resize
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movslq	(%r12), %rdi
	movq	8(%r12), %rcx
	cmpl	%ebx, %edi
	jge	LBB0_4
## %bb.3:
	movslq	%ebx, %rsi
	jmp	LBB0_21
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_4:
	movslq	%r15d, %r8
	movslq	%ebx, %rsi
	movq	%rdi, %rax
	subq	%rsi, %rax
	leaq	1(%rax), %r13
	cmpq	$8, %r13
	jae	LBB0_5
LBB0_19:
	incq	%rdi
	leaq	(%rcx,%r8,4), %rax
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%rcx,%rdi,4), %edx
	movl	%edx, -4(%rax,%rdi,4)
	decq	%rdi
	cmpq	%rsi, %rdi
	jg	LBB0_20
LBB0_21:
	leaq	(%rcx,%rsi,4), %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_strncpy
	addl	%r15d, (%r12)
	movl	$1, %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	(%r8,%rdi), %r9
	movl	$4, %edx
	mulq	%rdx
	leaq	(%rcx,%r9,4), %r11
	seto	%r10b
	movq	%r11, %rdx
	subq	%rax, %rdx
	cmpq	%r11, %rdx
	ja	LBB0_19
## %bb.6:
	testb	%r10b, %r10b
	jne	LBB0_19
## %bb.7:
	leaq	(%rcx,%rdi,4), %rbx
	movq	%rbx, %rdx
	subq	%rax, %rdx
	cmpq	%rbx, %rdx
	ja	LBB0_19
## %bb.8:
	testb	%r10b, %r10b
	jne	LBB0_19
## %bb.9:
	subq	%r11, %rbx
	cmpq	$32, %rbx
	jb	LBB0_19
## %bb.10:
	movq	%r13, %r10
	andq	$-8, %r10
	leaq	-8(%r10), %rax
	movq	%rax, %r11
	shrq	$3, %r11
	incq	%r11
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%r11, %rdx
	andq	$-2, %rdx
	leaq	(%rcx,%r9,4), %r9
	addq	$-12, %r9
	leaq	(%rcx,%rdi,4), %rbx
	addq	$-12, %rbx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rbx,%rax,4), %xmm0
	movups	(%rbx,%rax,4), %xmm1
	movups	%xmm1, (%r9,%rax,4)
	movups	%xmm0, -16(%r9,%rax,4)
	movups	-48(%rbx,%rax,4), %xmm0
	movups	-32(%rbx,%rax,4), %xmm1
	movups	%xmm1, -32(%r9,%rax,4)
	movups	%xmm0, -48(%r9,%rax,4)
	addq	$-16, %rax
	addq	$-2, %rdx
	jne	LBB0_13
## %bb.14:
	negq	%rax
	jmp	LBB0_15
LBB0_11:
	xorl	%eax, %eax
LBB0_15:
	testb	$1, %r11b
	je	LBB0_17
## %bb.16:
	movq	%rdi, %rdx
	subq	%rax, %rdx
	movups	-28(%rcx,%rdx,4), %xmm0
	movups	-12(%rcx,%rdx,4), %xmm1
	addq	%r8, %rdx
	movups	%xmm1, -12(%rcx,%rdx,4)
	movups	%xmm0, -28(%rcx,%rdx,4)
LBB0_17:
	cmpq	%r10, %r13
	je	LBB0_21
## %bb.18:
	subq	%r10, %rdi
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dyn_string_insert_cstr         ; -- Begin function dyn_string_insert_cstr
	.p2align	2
_dyn_string_insert_cstr:                ; @dyn_string_insert_cstr
	.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	x22, x1
	mov	x19, x0
	mov	x0, x2
	bl	_strlen
	mov	x21, x0
	ldr	w8, [x19]
	add	w1, w8, w0
	mov	x0, x19
	bl	_dyn_string_resize
	cbz	x0, LBB0_7
; %bb.1:
	ldrsw	x10, [x19]
	ldr	x8, [x19, #8]
	cmp	w10, w22
	b.ge	LBB0_3
; %bb.2:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x9, w22
	b	LBB0_6
LBB0_3:
	sxtw	x11, w21
	sxtw	x9, w22
	sub	x14, x10, x9
	add	x12, x14, #1
	cmp	x12, #16
	b.hs	LBB0_8
LBB0_4:
	add	x11, x8, x11, lsl #2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x10, #2
	ldr	w13, [x8, x12]
	str	w13, [x11, x12]
	sub	x12, x10, #1
	cmp	x10, x9
	mov	x10, x12
	b.gt	LBB0_5
LBB0_6:
	add	x0, x8, x9, lsl #2
	mov	x1, x20
	mov	x2, x21
	bl	_strncpy
	ldr	w8, [x19]
	add	w8, w8, w21
	str	w8, [x19]
	mov	w0, #1
LBB0_7:
	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
LBB0_8:
	add	x13, x11, x10
	add	x15, x8, x13, lsl #2
	cmp	xzr, x14, lsr #62
	cset	w13, ne
	lsl	x14, x14, #2
	sub	x16, x15, x14
	cmp	x16, x15
	b.hi	LBB0_4
; %bb.9:
	tbnz	w13, #0, LBB0_4
; %bb.10:
	add	x15, x8, x10, lsl #2
	sub	x14, x15, x14
	cmp	x14, x15
	b.hi	LBB0_4
; %bb.11:
	tbnz	w13, #0, LBB0_4
; %bb.12:
	add	x15, x8, x10, lsl #2
	add	x13, x11, x10
	add	x14, x8, x13, lsl #2
	sub	x13, x15, x14
	cmp	x13, #64
	b.lo	LBB0_4
; %bb.13:
	and	x13, x12, #0xfffffffffffffff0
	sub	x10, x10, x13
	sub	x14, x14, #28
	sub	x15, x15, #28
	mov	x16, x13
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q0, [x15]
	ldp	q3, q2, [x15, #-32]
	stp	q1, q0, [x14]
	stp	q3, q2, [x14, #-32]
	sub	x14, x14, #64
	sub	x15, x15, #64
	sub	x16, x16, #16
	cbnz	x16, LBB0_14
; %bb.15:
	cmp	x12, x13
	b.ne	LBB0_4
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
