	.file	"extr_shell.c_appendText.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	appendText, @function
appendText:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	mov	rdi, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 8[rsp], edx
	call	strlen30@PLT
	test	r14, r14
	mov	edx, DWORD PTR 8[rsp]
	mov	r8d, eax
	je	.L17
	mov	rdi, r14
	mov	DWORD PTR 12[rsp], edx
	mov	DWORD PTR 8[rsp], eax
	call	strlen30@PLT
	mov	r8d, DWORD PTR 8[rsp]
	mov	edx, DWORD PTR 12[rsp]
	movsx	r15, eax
	lea	r12d, [r8+r15]
.L2:
	test	dl, dl
	je	.L3
	add	r12d, 3
	test	r8d, r8d
	jle	.L4
	mov	rbx, rbp
	lea	eax, -1[r8]
	lea	rbp, 1[rbp+rax]
	mov	rax, rbx
	.p2align 4,,10
	.p2align 3
.L6:
	xor	ecx, ecx
	cmp	BYTE PTR [rax], r13b
	sete	cl
	add	rax, 1
	add	r12d, ecx
	cmp	rax, rbp
	jne	.L6
	mov	rdi, r14
	mov	esi, r12d
	mov	DWORD PTR 8[rsp], edx
	call	realloc@PLT
	mov	edx, DWORD PTR 8[rsp]
	test	rax, rax
	mov	r14, rax
	je	.L13
	add	r15, r14
	mov	BYTE PTR [r15], dl
	lea	rax, 1[r15]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L31:
	add	rbx, 1
	add	rax, 1
	cmp	rbx, rbp
	je	.L15
.L10:
	movzx	ecx, BYTE PTR [rbx]
	mov	BYTE PTR [rax], cl
	cmp	BYTE PTR [rbx], r13b
	jne	.L31
	add	rbx, 1
	mov	BYTE PTR 1[rax], r13b
	add	rax, 2
	cmp	rbx, rbp
	jne	.L10
.L15:
	mov	BYTE PTR [rax], dl
	add	rax, 2
	movsx	r12, r12d
	xor	edi, edi
	mov	BYTE PTR -1[rax], 0
	sub	rax, r14
	cmp	rax, r12
	sete	dil
	call	assert@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	add	r12d, 1
	mov	rdi, r14
	mov	DWORD PTR 8[rsp], r8d
	mov	esi, r12d
	call	realloc@PLT
	mov	r8d, DWORD PTR 8[rsp]
	test	rax, rax
	je	.L13
	movsx	rdi, r15d
	mov	r14, rax
	mov	edx, r8d
	mov	rsi, rbp
	add	rdi, rax
	movsx	r12, r12d
	call	memcpy@PLT
	mov	BYTE PTR -1[r14+r12], 0
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r14
	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
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	xor	r14d, r14d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	r12d, eax
	xor	r15d, r15d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r14
	mov	esi, r12d
	mov	DWORD PTR 8[rsp], edx
	call	realloc@PLT
	mov	edx, DWORD PTR 8[rsp]
	test	rax, rax
	mov	r14, rax
	je	.L13
	movsx	rcx, r15d
	add	rcx, r14
	mov	BYTE PTR [rcx], dl
	lea	rax, 1[rcx]
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	appendText, .-appendText
	.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_shell.c_appendText.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	appendText, %function
appendText:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	mov	r0, r1
	mov	r4, r1
	mov	r5, r2
	bl	strlen30
	cmp	r7, #0
	mov	r6, r0
	moveq	r8, r0
	moveq	r9, r7
	beq	.L2
	mov	r0, r7
	bl	strlen30
	mov	r9, r0
	add	r8, r6, r0
.L2:
	cmp	r5, #0
	beq	.L3
	cmp	r6, #0
	add	r8, r8, #3
	ble	.L4
	sub	r4, r4, #1
	mov	r3, r4
	add	r6, r4, r6
.L6:
	ldrb	r2, [r3, #1]!	@ zero_extendqisi2
	cmp	r2, r5
	addeq	r8, r8, #1
	cmp	r3, r6
	bne	.L6
	mov	r0, r7
	mov	r1, r8
	bl	realloc
	subs	r7, r0, #0
	addne	r3, r7, r9
	strbne	r5, [r7, r9]
	addne	r3, r3, #1
	beq	.L13
.L10:
	ldrb	r2, [r4, #1]!	@ zero_extendqisi2
	strb	r2, [r3]
	ldrb	r2, [r4]	@ zero_extendqisi2
	cmp	r2, r5
	strbeq	r5, [r3, #1]
	addne	r3, r3, #1
	addeq	r3, r3, #2
	cmp	r4, r6
	bne	.L10
.L15:
	add	r0, r3, #2
	sub	r0, r0, r7
	sub	r0, r0, r8
	mov	r2, #0
	clz	r0, r0
	strb	r5, [r3]
	strb	r2, [r3, #1]
	lsr	r0, r0, #5
	bl	assert
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	mov	r0, r7
	add	r1, r8, #1
	bl	realloc
	subs	r7, r0, #0
	beq	.L13
	mov	r2, r6
	mov	r1, r4
	add	r0, r7, r9
	bl	memcpy
	mov	r0, r7
	strb	r5, [r7, r8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	mov	r0, r7
	mov	r1, r8
	bl	realloc
	subs	r7, r0, #0
	addne	r3, r7, r9
	strbne	r5, [r7, r9]
	addne	r3, r3, #1
	bne	.L15
.L13:
	mov	r7, #0
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	appendText, .-appendText
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
