	.file	"extr_dyn-string.c_dyn_string_substring.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dyn_string_substring
	.type	dyn_string_substring, @function
dyn_string_substring:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	sub	r13d, edx
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	ecx, edx
	jl	.L2
	cmp	DWORD PTR [rsi], ecx
	jge	.L3
.L2:
	xor	eax, eax
	call	abort@PLT
.L3:
	mov	esi, r13d
	mov	rdi, rbx
	call	dyn_string_resize@PLT
	test	rax, rax
	je	.L7
	mov	edx, r13d
	movsx	r8, r13d
	sub	edx, 1
	js	.L5
	movsx	r8, r13d
	movsx	rax, edx
	mov	edx, edx
	movsx	rsi, ebp
	lea	rdi, -2[r8]
	sub	rdi, rdx
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, QWORD PTR 8[r12]
	add	rdx, rax
	movzx	ecx, BYTE PTR [rdx+rsi]
	mov	rdx, QWORD PTR 8[rbx]
	mov	BYTE PTR [rdx+rax], cl
	sub	rax, 1
	cmp	rdi, rax
	jne	.L6
.L5:
	mov	rax, QWORD PTR 8[rbx]
	mov	BYTE PTR [rax+r8], 0
	mov	eax, 1
	mov	DWORD PTR [rbx], r13d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dyn_string_substring, .-dyn_string_substring
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dyn-string.c_dyn_string_substring.c"
	.text
	.align	2
	.global	dyn_string_substring
	.syntax unified
	.arm
	.fpu softvfp
	.type	dyn_string_substring, %function
dyn_string_substring:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r3, r2
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r2
	mov	r4, r0
	mov	r6, r1
	sub	r7, r3, r2
	blt	.L2
	ldr	r2, [r1]
	cmp	r2, r3
	bge	.L3
.L2:
	bl	abort
.L3:
	mov	r1, r7
	mov	r0, r4
	bl	dyn_string_resize
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	subs	r3, r7, #1
	bmi	.L5
.L6:
	ldr	ip, [r6, #4]
	ldr	lr, [r4, #4]
	add	ip, ip, r3
	ldrb	ip, [ip, r5]	@ zero_extendqisi2
	strb	ip, [lr, r3]
	subs	r3, r3, #1
	bcs	.L6
.L5:
	mov	r2, #0
	ldr	r3, [r4, #4]
	mov	r0, #1
	strb	r2, [r3, r7]
	str	r7, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
	.size	dyn_string_substring, .-dyn_string_substring
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
