	.file	"extr_string_utils.c_appendStringLiteral.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	appendStringLiteral
	.type	appendStringLiteral, @function
appendStringLiteral:
.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
	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	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rdi
	mov	rdi, rsi
	mov	DWORD PTR 4[rsp], edx
	mov	DWORD PTR [rsp], ecx
	call	strlen@PLT
	mov	rdi, rbx
	lea	esi, 2[rax+rax]
	call	enlargePQExpBuffer@PLT
	test	eax, eax
	je	.L1
	movsx	rsi, DWORD PTR 8[rbx]
	add	rsi, QWORD PTR [rbx]
	mov	BYTE PTR [rsi], 39
	movzx	r12d, BYTE PTR 0[rbp]
	lea	r15, 1[rsi]
	test	r12b, r12b
	jne	.L11
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edx, DWORD PTR [rsp]
	xor	esi, esi
	mov	edi, r14d
	test	edx, edx
	sete	sil
	call	SQL_STR_DOUBLE@PLT
	lea	rsi, 2[r15]
	test	rax, rax
	je	.L12
	lea	rax, 3[r15]
	mov	BYTE PTR [r15], r12b
	mov	r15, rsi
	mov	rsi, rax
.L5:
	mov	BYTE PTR 0[r13], r12b
	add	rbp, 1
.L6:
	movzx	r12d, BYTE PTR 0[rbp]
	test	r12b, r12b
	je	.L9
.L11:
	movsx	r14d, r12b
	lea	rbx, 1[r15]
	mov	edi, r14d
	mov	r13, rbx
	call	IS_HIGHBIT_SET@PLT
	test	eax, eax
	je	.L23
	mov	esi, DWORD PTR 4[rsp]
	mov	rdi, rbp
	call	PQmblen@PLT
	test	eax, eax
	jle	.L13
	xor	edx, edx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L24:
	add	edx, 1
	mov	BYTE PTR -1[rbx], cl
	add	rbp, 1
	cmp	eax, edx
	je	.L20
	add	rbx, 1
.L8:
	movzx	ecx, BYTE PTR 0[rbp]
	mov	rsi, r15
	mov	r15, rbx
	test	cl, cl
	jne	.L24
	mov	rdi, QWORD PTR 8[rsp]
	sub	edx, esi
	movsx	rcx, DWORD PTR 12[rdi]
	mov	rdi, QWORD PTR [rdi]
	lea	rdi, -2[rdi+rcx]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r15, rsi
	add	rsi, 1
	lea	rcx, -1[rsi]
	cmp	rdi, rcx
	jbe	.L9
	lea	ecx, [rdx+rsi]
	mov	BYTE PTR -1[rsi], 32
	cmp	ecx, eax
	jl	.L10
	lea	rax, 2[r15]
	mov	r15, rsi
	mov	rsi, rax
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, 39
	mov	WORD PTR [r15], ax
	mov	rax, QWORD PTR 8[rsp]
	sub	rsi, QWORD PTR [rax]
	mov	DWORD PTR 8[rax], esi
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L12:
	.cfi_restore_state
	mov	r13, r15
	mov	r15, rbx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	add	rsi, 2
	jmp	.L6
.L13:
	mov	rsi, rbx
	jmp	.L6
.L3:
	add	rsi, 2
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	appendStringLiteral, .-appendStringLiteral
	.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_utils.c_appendStringLiteral.c"
	.text
	.align	2
	.global	appendStringLiteral
	.syntax unified
	.arm
	.fpu softvfp
	.type	appendStringLiteral, %function
appendStringLiteral:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	mov	r0, r1
	mov	r9, r1
	mov	r8, r2
	mov	r6, r3
	bl	strlen
	add	r1, r0, #1
	lsl	r1, r1, #1
	mov	r0, r7
	bl	enlargePQExpBuffer
	cmp	r0, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r1, #39
	ldr	r3, [r7]
	ldr	r2, [r7, #4]
	strb	r1, [r3, r2]
	ldrb	r10, [r9]	@ zero_extendqisi2
	add	r3, r3, r2
	cmp	r10, #0
	add	r5, r3, #1
	bne	.L11
	b	.L3
.L24:
	clz	r1, r6
	mov	r0, r10
	lsr	r1, r1, #5
	bl	SQL_STR_DOUBLE
	cmp	r0, #0
	movne	r2, r5
	add	r3, r5, #2
	moveq	fp, r5
	strbne	r10, [r2], #3
	movne	r5, r3
	moveq	r5, r4
	movne	r3, r2
	strb	r10, [fp]
	add	r9, r9, #1
.L6:
	ldrb	r10, [r9]	@ zero_extendqisi2
	cmp	r10, #0
	beq	.L9
.L11:
	mov	r0, r10
	bl	IS_HIGHBIT_SET
	add	fp, r5, #1
	cmp	r0, #0
	mov	r4, fp
	beq	.L24
	mov	r1, r8
	mov	r0, r9
	bl	PQmblen
	cmp	r0, #0
	ble	.L13
	mov	ip, r9
	mov	lr, #0
	b	.L8
.L25:
	add	lr, lr, #1
	cmp	r0, lr
	mov	r9, ip
	strb	r1, [r4, #-1]
	beq	.L21
	add	r4, r4, #1
.L8:
	ldrb	r1, [ip], #1	@ zero_extendqisi2
	mov	r3, r5
	cmp	r1, #0
	mov	r5, r4
	bne	.L25
	mov	r2, r3
	mov	r4, #32
	ldr	r3, [r7, #8]
	ldr	ip, [r7]
	sub	r3, r3, #2
	sub	lr, lr, r2
	add	ip, ip, r3
.L10:
	add	r3, r2, #1
	cmp	ip, r2
	mov	r5, r2
	add	r1, lr, r3
	mov	r2, r3
	bls	.L9
	cmp	r0, r1
	strb	r4, [r5]
	bgt	.L10
	mov	r5, r3
	add	r3, r3, #1
.L9:
	mov	r2, #0
	mov	r1, #39
	strb	r2, [r5, #1]
	strb	r1, [r5]
	ldr	r2, [r7]
	sub	r3, r3, r2
	str	r3, [r7, #4]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	add	r3, r3, #2
	b	.L6
.L13:
	mov	r3, fp
	b	.L6
.L3:
	add	r3, r3, #2
	b	.L9
	.size	appendStringLiteral, .-appendStringLiteral
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
