	.file	"extr_textedit_sample.c_insert_chars.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	insert_chars
	.type	insert_chars, @function
insert_chars:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movsx	r15, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rsi, QWORD PTR [rdi]
	mov	rdi, QWORD PTR 8[rdi]
	add	rsi, r15
	call	realloc@PLT
	mov	rcx, QWORD PTR [rbx]
	movsx	rdx, ebp
	add	ebp, r15d
	mov	QWORD PTR 8[rbx], rax
	lea	r13, 0[0+rdx*4]
	movsx	rbp, ebp
	sub	rcx, rdx
	lea	rsi, [rax+r13]
	lea	rdi, [rax+rbp*4]
	mov	rdx, rcx
	call	memmove@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	edx, r15d
	mov	rsi, r14
	add	rdi, r13
	call	memcpy@PLT
	add	QWORD PTR [rbx], r15
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	insert_chars, .-insert_chars
	.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_textedit_sample.c_insert_chars.c"
	.text
	.align	2
	.global	insert_chars
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert_chars, %function
insert_chars:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	ldr	r1, [r0]
	mov	r4, r0
	mov	r6, r3
	add	r1, r3, r1
	ldr	r0, [r0, #4]
	mov	r7, r2
	bl	realloc
	ldr	r2, [r4]
	add	r3, r6, r5
	add	r1, r0, r5, lsl #2
	str	r0, [r4, #4]
	sub	r2, r2, r5
	add	r0, r0, r3, lsl #2
	bl	memmove
	ldr	r0, [r4, #4]
	lsl	r5, r5, #2
	mov	r2, r6
	mov	r1, r7
	add	r0, r0, r5
	bl	memcpy
	ldr	r3, [r4]
	mov	r0, #1
	add	r6, r3, r6
	str	r6, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
	.size	insert_chars, .-insert_chars
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
