	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dyn_string_substring           ## -- Begin function dyn_string_substring
	.p2align	4, 0x90
_dyn_string_substring:                  ## @dyn_string_substring
	.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
	movl	%ecx, %r14d
	subl	%edx, %r14d
	jl	LBB0_14
## %bb.1:
	movl	%edx, %r12d
	movq	%rsi, %r13
	movl	(%rsi), %eax
	cmpl	%edx, %eax
	jl	LBB0_14
## %bb.2:
	cmpl	%ecx, %eax
	jl	LBB0_14
## %bb.3:
	movq	%rdi, %r15
	movl	%r14d, %esi
	callq	_dyn_string_resize
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	testl	%r14d, %r14d
	jle	LBB0_6
## %bb.7:
	movl	%r14d, %r9d
	movslq	%r12d, %rcx
	movq	%r9, %rdx
	testb	$1, %r9b
	je	LBB0_9
## %bb.8:
	leaq	-1(%r9), %rdx
	movq	8(%r13), %rsi
	leaq	(%r9,%rcx), %rdi
	decq	%rdi
	movb	(%rsi,%rdi), %r8b
	movq	8(%r15), %rdi
	movl	%edx, %esi
	movb	%r8b, (%rdi,%rsi)
LBB0_9:
	cmpl	$1, %r14d
	je	LBB0_12
## %bb.10:
	addq	$-2, %rdx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leaq	1(%rdx), %rsi
	movq	8(%r13), %rdi
	addq	%rcx, %rdi
	movzbl	1(%rdx,%rdi), %eax
	movq	8(%r15), %rdi
	movl	%esi, %ebx
	movb	%al, (%rdi,%rbx)
	movq	8(%r13), %rax
	addq	%rcx, %rax
	movzbl	(%rdx,%rax), %eax
	movq	8(%r15), %rdi
	movl	%edx, %ebx
	movb	%al, (%rdi,%rbx)
	addq	$-2, %rdx
	cmpq	$1, %rsi
	ja	LBB0_11
	jmp	LBB0_12
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_6:
	movslq	%r14d, %r9
LBB0_12:
	movq	8(%r15), %rax
	movb	$0, (%rax,%r9)
	movl	%r14d, (%r15)
	movl	$1, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	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_substring           ; -- Begin function dyn_string_substring
	.p2align	2
_dyn_string_substring:                  ; @dyn_string_substring
	.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
	subs	w20, w3, w2
	b.lt	LBB0_10
; %bb.1:
	mov	x22, x2
	mov	x21, x1
	ldr	w8, [x1]
	cmp	w8, w2
	ccmp	w8, w3, #8, ge
	b.lt	LBB0_10
; %bb.2:
	mov	x19, x0
	mov	x1, x20
	bl	_dyn_string_resize
	cbz	x0, LBB0_9
; %bb.3:
	cmp	w20, #0
	b.le	LBB0_7
; %bb.4:
	sxtw	x8, w22
	sub	x9, x20, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x21, #8]
	add	x10, x10, x8
	ldrb	w10, [x10, x9]
	ldr	x11, [x19, #8]
	strb	w10, [x11, w9, uxtw]
	add	x10, x9, #1
	sub	x9, x9, #1
	cmp	x10, #1
	b.hi	LBB0_5
; %bb.6:
	mov	x8, x20
	b	LBB0_8
LBB0_7:
	mov	x8, x20
	sxtw	x8, w8
LBB0_8:
	ldr	x9, [x19, #8]
	strb	wzr, [x9, x8]
	str	w20, [x19]
	mov	w0, #1
LBB0_9:
	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_10:
	bl	_abort
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
