	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dyn_string_insert              ## -- Begin function dyn_string_insert
	.p2align	4, 0x90
_dyn_string_insert:                     ## @dyn_string_insert
	.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
	cmpq	%rdi, %rdx
	je	LBB0_12
## %bb.1:
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	(%rdx), %esi
	addl	(%rdi), %esi
	callq	_dyn_string_resize
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movslq	(%r14), %rdx
	movq	8(%r14), %rax
	cmpl	%r15d, %edx
	jge	LBB0_5
## %bb.4:
	movslq	%r15d, %r9
	jmp	LBB0_10
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_5:
	movslq	%r15d, %r9
	movl	%edx, %edi
	subl	%r15d, %edi
	incl	%edi
	movq	%rdx, %r8
	subq	%r9, %r8
	andq	$3, %rdi
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %esi
	movslq	(%rbx), %rcx
	addq	%rdx, %rcx
	movl	%esi, (%rax,%rcx,4)
	decq	%rdx
	decq	%rdi
	jne	LBB0_6
LBB0_7:
	cmpq	$3, %r8
	jb	LBB0_10
## %bb.8:
	decq	%rdx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rax,%rdx,4), %ecx
	movslq	(%rbx), %rsi
	addq	%rdx, %rsi
	movl	%ecx, 4(%rax,%rsi,4)
	movl	(%rax,%rdx,4), %ecx
	movslq	(%rbx), %rsi
	addq	%rdx, %rsi
	movl	%ecx, (%rax,%rsi,4)
	movl	-4(%rax,%rdx,4), %ecx
	movslq	(%rbx), %rsi
	addq	%rdx, %rsi
	movl	%ecx, -4(%rax,%rsi,4)
	movl	-8(%rax,%rdx,4), %ecx
	movslq	(%rbx), %rsi
	addq	%rdx, %rsi
	movl	%ecx, -8(%rax,%rsi,4)
	leaq	-4(%rdx), %rcx
	addq	$-2, %rdx
	cmpq	%r9, %rdx
	movq	%rcx, %rdx
	jg	LBB0_9
LBB0_10:
	leaq	(%rax,%r9,4), %rdi
	movq	8(%rbx), %rsi
	movl	(%rbx), %edx
	callq	_strncpy
	movl	(%rbx), %eax
	addl	%eax, (%r14)
	movl	$1, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%eax, %eax
	callq	_abort
	.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              ; -- Begin function dyn_string_insert
	.p2align	2
_dyn_string_insert:                     ; @dyn_string_insert
	.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
	cmp	x2, x0
	b.eq	LBB0_8
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x0]
	ldr	w9, [x2]
	add	w1, w9, w8
	bl	_dyn_string_resize
	cbz	x0, LBB0_7
; %bb.2:
	ldrsw	x9, [x19]
	ldr	x8, [x19, #8]
	cmp	w9, w21
	b.ge	LBB0_4
; %bb.3:
	sxtw	x10, w21
	b	LBB0_6
LBB0_4:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sxtw	x10, w21
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8, x9, lsl #2]
	ldrsw	x12, [x20]
	add	x12, x9, x12
	str	w11, [x8, x12, lsl #2]
	sub	x11, x9, #1
	cmp	x9, x10
	mov	x9, x11
	b.gt	LBB0_5
LBB0_6:
	add	x0, x8, x10, lsl #2
	ldr	x1, [x20, #8]
	ldr	w2, [x20]
	bl	_strncpy
	ldr	w8, [x20]
	ldr	w9, [x19]
	add	w8, w9, w8
	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:
	bl	_abort
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
