	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dyn_string_insert_char         ## -- Begin function dyn_string_insert_char
	.p2align	4, 0x90
_dyn_string_insert_char:                ## @dyn_string_insert_char
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	(%rdi), %esi
	incl	%esi
	callq	_dyn_string_resize
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movslq	(%r15), %rdx
	movq	8(%r15), %rax
	cmpl	%ebx, %edx
	jge	LBB0_4
## %bb.3:
	movslq	%ebx, %rcx
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_4:
	movslq	%ebx, %rcx
	movl	%edx, %edi
	subl	%ebx, %edi
	incl	%edi
	movq	%rdx, %rsi
	subq	%rcx, %rsi
	andq	$3, %rdi
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %ebx
	movl	%ebx, 4(%rax,%rdx,4)
	decq	%rdx
	decq	%rdi
	jne	LBB0_5
LBB0_6:
	cmpq	$3, %rsi
	jb	LBB0_9
## %bb.7:
	incq	%rdx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movups	-16(%rax,%rdx,4), %xmm0
	movups	%xmm0, -12(%rax,%rdx,4)
	addq	$-4, %rdx
	cmpq	%rcx, %rdx
	jg	LBB0_8
LBB0_9:
	movl	%r14d, (%rax,%rcx,4)
	incl	(%r15)
	movl	$1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_char         ; -- Begin function dyn_string_insert_char
	.p2align	2
_dyn_string_insert_char:                ; @dyn_string_insert_char
	.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
	ldr	w8, [x0]
	add	w1, w8, #1
	bl	_dyn_string_resize
	cbz	x0, LBB0_6
; %bb.1:
	ldrsw	x9, [x19]
	ldr	x8, [x19, #8]
	cmp	w9, w21
	b.ge	LBB0_3
; %bb.2:
	sxtw	x10, w21
	b	LBB0_5
LBB0_3:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sxtw	x10, w21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x11, x8, x9, lsl #2
	ldr	w12, [x11]
	str	w12, [x11, #4]
	sub	x11, x9, #1
	cmp	x9, x10
	mov	x9, x11
	b.gt	LBB0_4
LBB0_5:
	str	w20, [x8, x10, lsl #2]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	w0, #1
LBB0_6:
	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
.subsections_via_symbols
