	.file	"extr_string.c_String_concat.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\n"
	.text
	.p2align 4
	.type	String_concat, @function
String_concat:
.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, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	lea	rdi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	QWORD PTR 16[rsp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	TRACE@PLT
	mov	rsi, r12
	mov	rdi, r13
	lea	rdx, 40[rsp]
	call	get_string_val@PLT
	mov	edi, eax
	mov	r12d, eax
	call	FAILED@PLT
	test	rax, rax
	jne	.L1
	test	ebp, ebp
	je	.L3
	cmp	ebp, 1
	je	.L4
	lea	eax, 1[rbp]
	lea	edi, 0[0+rax*8]
	mov	DWORD PTR 28[rsp], eax
	call	heap_alloc_zero@PLT
	mov	r15, rax
	test	rax, rax
	je	.L45
	mov	rax, QWORD PTR 40[rsp]
	lea	rdx, 8[r15]
	xor	ebx, ebx
	mov	QWORD PTR [r15], rax
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, DWORD PTR [r14+rbx*4]
	mov	rdi, r13
	mov	DWORD PTR 24[rsp], ebx
	mov	QWORD PTR 8[rsp], rdx
	call	to_string@PLT
	mov	edi, eax
	mov	r12d, eax
	call	FAILED@PLT
	test	rax, rax
	jne	.L12
	mov	rdx, QWORD PTR 8[rsp]
	add	rbx, 1
	add	rdx, 8
	cmp	ebp, ebx
	ja	.L13
	mov	edi, r12d
	xor	r13d, r13d
	call	SUCCEEDED@PLT
	test	eax, eax
	je	.L22
.L28:
	mov	eax, DWORD PTR 28[rsp]
	test	eax, eax
	je	.L16
	mov	r14d, ebp
	xor	ebx, ebx
	xor	r13d, r13d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L17:
	lea	edx, 1[rbx]
	lea	rax, 1[rbx]
	cmp	rbx, r14
	je	.L46
	mov	rbx, rax
.L19:
	mov	rdi, QWORD PTR [r15+rbx*8]
	mov	DWORD PTR 28[rsp], ebx
	call	jsstr_length@PLT
	add	r13d, eax
	cmp	DWORD PTR JSSTR_MAX_LENGTH[rip], r13d
	jnb	.L17
	mov	r12d, DWORD PTR E_OUTOFMEMORY[rip]
	mov	edi, r12d
	call	SUCCEEDED@PLT
	test	eax, eax
	je	.L15
.L18:
	mov	edi, r13d
	lea	rsi, 48[rsp]
	call	jsstr_alloc_buf@PLT
	mov	r13, rax
	test	rax, rax
	je	.L29
	mov	rsi, QWORD PTR 48[rsp]
	mov	rbx, r15
	lea	r14, 8[r15+r14*8]
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, QWORD PTR [rbx]
	add	rbx, 8
	call	jsstr_flush@PLT
	mov	rcx, QWORD PTR 48[rsp]
	cdqe
	lea	rsi, [rcx+rax*4]
	mov	QWORD PTR 48[rsp], rsi
	cmp	rbx, r14
	jne	.L21
	mov	DWORD PTR 24[rsp], ebp
	.p2align 4,,10
	.p2align 3
.L22:
	mov	ebx, DWORD PTR 24[rsp]
	lea	rbx, [r15+rbx*8]
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, QWORD PTR [rbx]
	call	jsstr_release@PLT
	mov	rax, rbx
	sub	rbx, 8
	cmp	r15, rax
	jne	.L23
.L24:
	mov	rdi, r15
	call	heap_free@PLT
	mov	edi, r12d
	call	FAILED@PLT
	test	rax, rax
	je	.L6
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L47
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L4:
	.cfi_restore_state
	mov	esi, DWORD PTR [r14]
	mov	rdi, r13
	lea	rdx, 48[rsp]
	call	to_string@PLT
	mov	edi, eax
	mov	r12d, eax
	call	FAILED@PLT
	test	rax, rax
	jne	.L48
	mov	rdi, QWORD PTR 40[rsp]
	mov	rsi, QWORD PTR 48[rsp]
	call	jsstr_concat@PLT
	mov	rdi, QWORD PTR 40[rsp]
	mov	r13, rax
	call	jsstr_release@PLT
	test	r13, r13
	jne	.L6
.L43:
	mov	r12d, DWORD PTR E_OUTOFMEMORY[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r13, QWORD PTR 40[rsp]
.L6:
	mov	rbx, QWORD PTR 16[rsp]
	mov	rdi, r13
	test	rbx, rbx
	je	.L25
	call	jsval_string@PLT
	mov	DWORD PTR [rbx], eax
.L26:
	mov	r12d, DWORD PTR S_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L48:
	mov	rdi, QWORD PTR 40[rsp]
	call	jsstr_release@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	call	jsstr_release@PLT
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, r12d
	call	SUCCEEDED@PLT
	test	eax, eax
	jne	.L28
	mov	DWORD PTR 28[rsp], ebx
.L15:
	mov	eax, DWORD PTR 28[rsp]
	xor	r13d, r13d
	lea	ecx, -1[rax]
	mov	DWORD PTR 24[rsp], ecx
	test	eax, eax
	jne	.L22
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L45:
	mov	rdi, QWORD PTR 40[rsp]
	call	jsstr_release@PLT
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L46:
	mov	edi, r12d
	mov	DWORD PTR 8[rsp], edx
	call	SUCCEEDED@PLT
	mov	edx, DWORD PTR 8[rsp]
	test	eax, eax
	jne	.L35
	mov	DWORD PTR 24[rsp], ebx
	xor	r13d, r13d
	jmp	.L22
.L35:
	mov	DWORD PTR 28[rsp], edx
	jmp	.L18
.L16:
	mov	edi, r12d
	xor	r13d, r13d
	call	SUCCEEDED@PLT
	test	eax, eax
	je	.L24
	lea	rsi, 48[rsp]
	xor	edi, edi
	call	jsstr_alloc_buf@PLT
	mov	r13, rax
	test	rax, rax
	jne	.L24
.L29:
	mov	r12d, DWORD PTR E_OUTOFMEMORY[rip]
	jmp	.L15
.L47:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	String_concat, .-String_concat
	.comm	S_OK,4,4
	.comm	JSSTR_MAX_LENGTH,4,4
	.comm	E_OUTOFMEMORY,4,4
	.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_string.c_String_concat.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	String_concat, %function
String_concat:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	mov	r6, r0
	mov	r5, r3
	ldr	r3, .L50
	sub	sp, sp, #36
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r3, [sp, #76]
	ldr	r0, .L50+4
	str	r3, [sp, #4]
	ldr	r7, [sp, #72]
	bl	TRACE
	mov	r1, r4
	add	r2, sp, #20
	mov	r0, r6
	bl	get_string_val
	mov	r4, r0
	bl	FAILED
	subs	r10, r0, #0
	bne	.L1
	cmp	r5, #0
	beq	.L3
	cmp	r5, #1
	beq	.L4
	add	r8, r5, #1
	lsl	r3, r8, #2
	mov	r0, r3
	str	r3, [sp, #8]
	bl	heap_alloc_zero
	subs	r9, r0, #0
	beq	.L46
	mov	fp, r9
	ldr	r1, [sp, #20]
	sub	r7, r7, #4
	str	r1, [fp], #4
.L13:
	ldr	r1, [r7, #4]!
	mov	r2, fp
	mov	r0, r6
	bl	to_string
	mov	r4, r0
	bl	FAILED
	cmp	r0, #0
	mov	r1, r10
	add	r10, r10, #1
	bne	.L12
	cmp	r10, r5
	add	fp, fp, #4
	bcc	.L13
	mov	r0, r4
	str	r1, [sp, #12]
	bl	SUCCEEDED
	subs	r6, r0, #0
	bne	.L28
	ldr	r1, [sp, #12]
.L22:
	add	r5, r1, #1
	add	r5, r9, r5, lsl #2
.L23:
	ldr	r0, [r5, #-4]!
	bl	jsstr_release
	cmp	r5, r9
	bne	.L23
.L24:
	mov	r0, r9
	bl	heap_free
	mov	r0, r4
	bl	FAILED
	cmp	r0, #0
	beq	.L6
.L1:
	ldr	r3, .L50
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L47
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r1, [r7]
	add	r2, sp, #24
	mov	r0, r6
	bl	to_string
	mov	r4, r0
	bl	FAILED
	cmp	r0, #0
	bne	.L48
	ldr	r1, [sp, #24]
	ldr	r0, [sp, #20]
	bl	jsstr_concat
	mov	r6, r0
	ldr	r0, [sp, #20]
	bl	jsstr_release
	cmp	r6, #0
	bne	.L6
.L44:
	ldr	r3, .L50+8
	ldr	r4, [r3]
	b	.L1
.L3:
	ldr	r6, [sp, #20]
.L6:
	ldr	r4, [sp, #4]
	mov	r0, r6
	cmp	r4, #0
	beq	.L25
	bl	jsval_string
	str	r0, [r4]
.L26:
	ldr	r3, .L50+12
	ldr	r4, [r3]
	b	.L1
.L48:
	ldr	r0, [sp, #20]
	bl	jsstr_release
	b	.L1
.L25:
	bl	jsstr_release
	b	.L26
.L12:
	mov	r0, r4
	str	r1, [sp, #12]
	bl	SUCCEEDED
	cmp	r0, #0
	ldr	r1, [sp, #12]
	beq	.L32
.L28:
	cmp	r8, #0
	beq	.L16
	mov	r8, #0
	sub	r10, r9, #4
	mov	r6, r8
	mov	fp, r10
	ldr	r7, .L50+16
	b	.L19
.L17:
	cmp	r5, r8
	add	r8, r8, #1
	beq	.L49
.L19:
	ldr	r0, [fp, #4]!
	bl	jsstr_length
	ldr	r2, [r7]
	add	r6, r6, r0
	cmp	r2, r6
	bcs	.L17
	ldr	r3, .L50+8
	ldr	r4, [r3]
	mov	r0, r4
	bl	SUCCEEDED
	cmp	r0, #0
	beq	.L15
.L18:
	mov	r0, r6
	add	r1, sp, #24
	bl	jsstr_alloc_buf
	subs	r6, r0, #0
	beq	.L29
	mov	r7, r10
	ldr	r3, [sp, #8]
	ldr	r1, [sp, #24]
	sub	r8, r3, #4
	add	r8, r9, r8
.L21:
	ldr	r0, [r7, #4]!
	bl	jsstr_flush
	ldr	r1, [sp, #24]
	cmp	r8, r7
	add	r1, r1, r0, lsl #2
	str	r1, [sp, #24]
	bne	.L21
	mov	r1, r5
	b	.L22
.L32:
	mov	r8, r1
.L15:
	cmp	r8, #0
	movne	r6, #0
	sub	r1, r8, #1
	bne	.L22
.L43:
	mov	r6, r8
	b	.L24
.L46:
	ldr	r0, [sp, #20]
	bl	jsstr_release
	b	.L44
.L49:
	mov	r0, r4
	bl	SUCCEEDED
	cmp	r0, #0
	bne	.L18
	mov	r1, r5
	mov	r6, r0
	b	.L22
.L16:
	mov	r0, r4
	bl	SUCCEEDED
	cmp	r0, #0
	beq	.L43
	mov	r0, r8
	add	r1, sp, #24
	bl	jsstr_alloc_buf
	subs	r6, r0, #0
	bne	.L24
.L29:
	ldr	r3, .L50+8
	ldr	r4, [r3]
	b	.L15
.L47:
	bl	__stack_chk_fail
.L51:
	.align	2
.L50:
	.word	.LC1
	.word	.LC0
	.word	E_OUTOFMEMORY
	.word	S_OK
	.word	JSSTR_MAX_LENGTH
	.size	String_concat, .-String_concat
	.comm	S_OK,4,4
	.comm	JSSTR_MAX_LENGTH,4,4
	.comm	E_OUTOFMEMORY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
