	.file	"extr_tl-utils.c_tl_int_array_append_string.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tl_int_array_append_string
	.type	tl_int_array_append_string, @function
tl_int_array_append_string:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	strlen@PLT
	cmp	eax, 16777215
	jg	.L12
	mov	ebp, eax
	mov	ecx, DWORD PTR 4[r12]
	movsx	rax, DWORD PTR [r12]
	cmp	ebp, 253
	jle	.L3
	lea	edx, 7[rbp]
	sar	edx, 2
	mov	r13d, edx
	lea	edx, [rdx+rax]
	cmp	edx, ecx
	jg	.L12
	mov	rdx, QWORD PTR 8[r12]
	lea	rax, [rdx+rax*4]
	mov	edx, ebp
	sal	edx, 8
	lea	rbx, 4[rax]
	add	edx, 254
	mov	DWORD PTR [rax], edx
.L7:
	mov	edx, ebp
	mov	rsi, r14
	mov	rdi, rbx
	call	memcpy@PLT
	movsx	rax, ebp
	add	rax, rbx
	test	al, 3
	je	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	add	rax, 1
	mov	BYTE PTR -1[rax], 0
	test	al, 3
	jne	.L6
.L5:
	mov	edx, DWORD PTR [r12]
	mov	rcx, QWORD PTR 8[r12]
	xor	edi, edi
	add	edx, r13d
	mov	DWORD PTR [r12], edx
	movsx	rdx, edx
	lea	rdx, [rcx+rdx*4]
	cmp	rax, rdx
	sete	dil
	call	assert@PLT
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	edx, 4[rbp]
	sar	edx, 2
	mov	r13d, edx
	lea	edx, [rdx+rax]
	cmp	edx, ecx
	jg	.L12
	mov	rdx, QWORD PTR 8[r12]
	lea	rax, [rdx+rax*4]
	mov	BYTE PTR [rax], bpl
	lea	rbx, 1[rax]
	jmp	.L7
.L12:
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	tl_int_array_append_string, .-tl_int_array_append_string
	.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_tl-utils.c_tl_int_array_append_string.c"
	.text
	.align	2
	.global	tl_int_array_append_string
	.syntax unified
	.arm
	.fpu softvfp
	.type	tl_int_array_append_string, %function
tl_int_array_append_string:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r0, r1
	mov	r7, r1
	bl	strlen
	cmp	r0, #16777216
	bge	.L12
	ldm	r5, {r2, r3}
	cmp	r0, #253
	mov	r4, r0
	ble	.L3
	add	r6, r0, #7
	add	r1, r2, r6, asr #2
	cmp	r1, r3
	asr	r6, r6, #2
	bgt	.L12
	ldr	r0, [r5, #8]
	lsl	r1, r4, #8
	add	r1, r1, #254
	add	r3, r0, r2, lsl #2
	str	r1, [r0, r2, lsl #2]
	add	r3, r3, #4
.L7:
	mov	r2, r4
	mov	r1, r7
	mov	r0, r3
	bl	memcpy
	add	r4, r0, r4
	tst	r4, #3
	beq	.L5
	mov	r3, #0
.L6:
	strb	r3, [r4], #1
	tst	r4, #3
	bne	.L6
.L5:
	ldr	r3, [r5]
	ldr	r0, [r5, #8]
	add	r6, r6, r3
	add	r0, r0, r6, lsl #2
	sub	r0, r4, r0
	clz	r0, r0
	str	r6, [r5]
	lsr	r0, r0, #5
	bl	assert
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	add	r6, r0, #4
	add	r1, r2, r6, asr #2
	cmp	r1, r3
	asr	r6, r6, #2
	bgt	.L12
	ldr	r1, [r5, #8]
	add	r3, r1, r2, lsl #2
	strb	r4, [r1, r2, lsl #2]
	add	r3, r3, #1
	b	.L7
.L12:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
	.size	tl_int_array_append_string, .-tl_int_array_append_string
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
