	.file	"extr_fe-exec.c_PQescapeInternal.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"incomplete multibyte character\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"out of memory\n"
	.text
	.p2align 4
	.type	PQescapeInternal, @function
PQescapeInternal:
.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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	cmp	ecx, 1
	sbb	ebx, ebx
	mov	QWORD PTR 24[rsp], rdi
	and	ebx, 5
	mov	DWORD PTR 36[rsp], ecx
	add	ebx, 34
	test	rdi, rdi
	je	.L58
	mov	r13, rsi
	mov	r14, rdx
	test	rdx, rdx
	je	.L60
	mov	DWORD PTR 8[rsp], 0
	mov	r15, rsi
	xor	ebp, ebp
	xor	r12d, r12d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	dil, 92
	jne	.L8
	add	ebp, 1
.L7:
	add	r15, 1
	mov	r12, r15
	sub	r12, r13
	cmp	r12, r14
	jnb	.L11
.L4:
	movsx	edi, BYTE PTR [r15]
	test	dil, dil
	je	.L11
	cmp	dil, bl
	jne	.L6
	add	r15, 1
	add	DWORD PTR 8[rsp], 1
	mov	r12, r15
	sub	r12, r13
	cmp	r12, r14
	jb	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR 36[rsp]
	mov	eax, DWORD PTR 8[rsp]
	mov	DWORD PTR 40[rsp], r12d
	test	esi, esi
	lea	edi, 3[rax+r12]
	sete	BYTE PTR 16[rsp]
	test	ebp, ebp
	movzx	ecx, BYTE PTR 16[rsp]
	setg	al
	and	al, cl
	mov	BYTE PTR 47[rsp], al
	je	.L13
	lea	edi, 2[rbp+rdi]
	call	malloc@PLT
	movzx	edx, BYTE PTR 47[rsp]
	test	rax, rax
	mov	r14, rax
	je	.L25
	mov	ecx, 17696
	mov	BYTE PTR 2[rax], bl
	lea	r15, 3[rax]
	mov	WORD PTR [rax], cx
	mov	BYTE PTR 16[rsp], dl
.L15:
	movsx	rbp, DWORD PTR 40[rsp]
	mov	r12, r13
	test	rbp, rbp
	jg	.L17
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L61:
	cmp	dil, 92
	jne	.L21
	cmp	BYTE PTR 16[rsp], 0
	jne	.L20
.L21:
	call	IS_HIGHBIT_SET@PLT
	lea	r9, 1[r15]
	test	rax, rax
	jne	.L23
	movzx	eax, BYTE PTR [r12]
	mov	BYTE PTR [r15], al
	mov	r15, r9
.L22:
	add	r12, 1
	mov	rax, r12
	sub	rax, r13
	cmp	rax, rbp
	jge	.L18
.L17:
	movsx	edi, BYTE PTR [r12]
	cmp	dil, bl
	jne	.L61
.L20:
	mov	BYTE PTR [r15], dil
	movzx	eax, BYTE PTR [r12]
	add	r12, 1
	add	r15, 2
	mov	BYTE PTR -1[r15], al
	mov	rax, r12
	sub	rax, r13
	cmp	rax, rbp
	jl	.L17
.L18:
	mov	BYTE PTR [r15], bl
	mov	BYTE PTR 1[r15], 0
.L1:
	add	rsp, 56
	.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
.L8:
	.cfi_restore_state
	call	IS_HIGHBIT_SET@PLT
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR 24[rsp]
	mov	rsi, r15
	mov	edi, DWORD PTR [rax]
	call	pg_encoding_mblen@PLT
	movsx	r9, eax
	lea	rcx, [r9+r12]
	mov	rdx, r9
	cmp	rcx, r14
	ja	.L10
	xor	esi, esi
	mov	rdi, r15
	mov	QWORD PTR 16[rsp], r9
	call	memchr@PLT
	test	rax, rax
	jne	.L10
	mov	r9, QWORD PTR 16[rsp]
	lea	r15, -1[r15+r9]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	call	malloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L25
	mov	edx, DWORD PTR 8[rsp]
	mov	BYTE PTR [r14], bl
	lea	r15, 1[r14]
	test	edx, edx
	jne	.L15
	test	ebp, ebp
	je	.L27
	mov	eax, DWORD PTR 36[rsp]
	test	eax, eax
	je	.L15
.L27:
	mov	ebp, DWORD PTR 40[rsp]
	mov	rdi, r15
	mov	rsi, r13
	mov	edx, ebp
	call	memcpy@PLT
	movsx	rax, ebp
	add	r15, rax
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rax, QWORD PTR 24[rsp]
	mov	rsi, r12
	mov	QWORD PTR 8[rsp], r9
	mov	edi, DWORD PTR [rax]
	call	pg_encoding_mblen@PLT
	movzx	edx, BYTE PTR [r12]
	mov	r9, QWORD PTR 8[rsp]
	cmp	eax, 1
	mov	BYTE PTR [r15], dl
	je	.L32
	lea	edi, -2[rax]
	mov	eax, 1
	mov	rsi, rdi
	add	rdi, 2
	.p2align 4,,10
	.p2align 3
.L24:
	movzx	edx, BYTE PTR [r12+rax]
	mov	BYTE PTR [r15+rax], dl
	add	rax, 1
	cmp	rdi, rax
	jne	.L24
	mov	ecx, esi
	add	rcx, 1
	add	r12, rcx
	lea	r15, [r9+rcx]
	jmp	.L22
.L10:
	lea	rdi, .LC0[rip]
.L57:
	call	libpq_gettext@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	esi, eax
	add	rdi, 4
	call	printfPQExpBuffer@PLT
.L58:
	xor	r14d, r14d
	jmp	.L1
.L25:
	lea	rdi, .LC1[rip]
	jmp	.L57
.L32:
	mov	r15, r9
	jmp	.L22
.L60:
	mov	edi, 3
	call	malloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L25
	mov	BYTE PTR [rax], bl
	lea	r15, 1[rax]
	mov	DWORD PTR 40[rsp], 0
	jmp	.L27
	.cfi_endproc
.LFE0:
	.size	PQescapeInternal, .-PQescapeInternal
	.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_fe-exec.c_PQescapeInternal.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"incomplete multibyte character\012\000"
	.align	2
.LC1:
	.ascii	"out of memory\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	PQescapeInternal, %function
PQescapeInternal:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	cmp	r3, #0
	sub	sp, sp, #20
	movne	r6, #34
	moveq	r6, #39
	str	r3, [sp, #8]
	subs	r3, r0, #0
	str	r3, [sp]
	beq	.L27
	cmp	r2, #0
	mov	r5, r1
	mov	r7, r2
	beq	.L48
	mov	r8, #0
	mov	r4, r1
	mov	r9, r8
	mov	r3, r8
	mov	fp, r8
	b	.L4
.L7:
	add	r4, r4, #1
	sub	fp, r4, r5
	cmp	fp, r7
	mov	r3, fp
	bcs	.L11
.L4:
	ldrb	r0, [r4]	@ zero_extendqisi2
	cmp	r0, #0
	beq	.L11
	cmp	r0, r6
	addeq	r9, r9, #1
	beq	.L7
	cmp	r0, #92
	addeq	r8, r8, #1
	beq	.L7
	bl	IS_HIGHBIT_SET
	cmp	r0, #0
	beq	.L7
	ldr	r3, [sp]
	mov	r1, r4
	ldr	r0, [r3]
	bl	pg_encoding_mblen
	add	r2, fp, r0
	cmp	r2, r7
	mov	r10, r0
	bhi	.L9
	mov	r2, r0
	mov	r1, #0
	mov	r0, r4
	bl	memchr
	cmp	r0, #0
	bne	.L9
	sub	r10, r10, #1
	add	r4, r4, r10
	b	.L7
.L11:
	ldr	r2, [sp, #8]
	add	r0, fp, r9
	clz	r10, r2
	lsr	r10, r10, #5
	cmp	r8, #0
	movle	r1, #0
	andgt	r1, r10, #1
	cmp	r1, #0
	str	r1, [sp, #12]
	add	r0, r0, #3
	beq	.L13
	add	r8, r8, #2
	add	r0, r8, r0
	bl	malloc
	subs	r3, r0, #0
	ldr	r1, [sp, #12]
	str	r3, [sp, #4]
	beq	.L24
	ldr	r2, [sp, #4]
	ldr	r3, .L50
	mov	r7, r2
	mov	r10, r1
	strh	r3, [r7], #3	@ movhi
	strb	r6, [r2, #2]
	b	.L45
.L49:
	cmp	r0, #92
	movne	r3, #0
	andeq	r3, r10, #1
	cmp	r3, #0
	bne	.L19
	bl	IS_HIGHBIT_SET
	cmp	r0, #0
	add	r8, r7, #1
	bne	.L22
	ldrb	r3, [r5]	@ zero_extendqisi2
	strb	r3, [r7]
	mov	r7, r8
.L21:
	add	r5, r5, #1
.L45:
	cmp	r5, r4
	bcs	.L18
	ldrb	r0, [r5]	@ zero_extendqisi2
	cmp	r0, r6
	bne	.L49
.L19:
	mov	r3, r7
	strb	r0, [r3], #2
	strb	r0, [r7, #1]
	mov	r7, r3
	b	.L21
.L13:
	str	r3, [sp, #12]
	bl	malloc
	subs	r3, r0, #0
	str	r3, [sp, #4]
	ldr	r3, [sp, #12]
	beq	.L24
	ldr	r7, [sp, #4]
	cmp	r9, #0
	strb	r6, [r7], #1
	bne	.L45
	ldr	r2, [sp, #8]
	subs	r1, r2, #0
	movne	r1, #1
	cmp	r8, #0
	movne	r8, r1
	moveq	r8, #1
	cmp	r8, #0
	beq	.L45
.L16:
	mov	r0, r7
	mov	r2, fp
	mov	r1, r5
	str	r3, [sp]
	bl	memcpy
	ldr	r3, [sp]
	add	r7, r7, r3
.L18:
	mov	r3, #0
	strb	r6, [r7]
	strb	r3, [r7, #1]
.L1:
	ldr	r0, [sp, #4]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	ldr	r3, [sp]
	mov	r1, r5
	ldr	r0, [r3]
	bl	pg_encoding_mblen
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r0, #1
	strb	r3, [r7]
	beq	.L29
	mov	r3, r7
	sub	r1, r0, #1
	add	r1, r5, r1
.L23:
	ldrb	r2, [r5, #1]!	@ zero_extendqisi2
	cmp	r1, r5
	strb	r2, [r3, #1]!
	bne	.L23
	add	r7, r7, r0
	b	.L21
.L9:
	ldr	r0, .L50+4
.L46:
	bl	libpq_gettext
	ldr	r3, [sp]
	mov	r1, r0
	add	r0, r3, #4
	bl	printfPQExpBuffer
	mov	r3, #0
	str	r3, [sp, #4]
	b	.L1
.L27:
	ldr	r3, [sp]
	str	r3, [sp, #4]
	b	.L1
.L29:
	mov	r7, r8
	b	.L21
.L48:
	mov	r0, #3
	bl	malloc
	subs	r2, r0, #0
	str	r2, [sp, #4]
	beq	.L24
	mov	r3, r7
	mov	r7, r2
	mov	fp, r3
	strb	r6, [r7], #1
	b	.L16
.L24:
	ldr	r0, .L50+8
	b	.L46
.L51:
	.align	2
.L50:
	.word	17696
	.word	.LC0
	.word	.LC1
	.size	PQescapeInternal, .-PQescapeInternal
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
