	.file	"extr_pg_stat_statements.c_generate_normalized_query.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"$%d"
	.text
	.p2align 4
	.type	generate_normalized_query, @function
generate_normalized_query:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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, 72
	.cfi_def_cfa_offset 128
	mov	ebx, DWORD PTR [rcx]
	mov	DWORD PTR 44[rsp], edx
	mov	QWORD PTR 56[rsp], rcx
	mov	QWORD PTR 8[rsp], rsi
	mov	DWORD PTR 48[rsp], ebx
	call	fill_in_constant_lengths@PLT
	mov	eax, DWORD PTR [r15]
	lea	eax, [rax+rax*4]
	lea	eax, [rbx+rax*2]
	lea	edi, 1[rax]
	mov	DWORD PTR 52[rsp], eax
	call	palloc@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	r14, rax
	mov	eax, DWORD PTR [r15]
	test	eax, eax
	jle	.L5
	xor	r11d, r11d
	xor	ebx, ebx
	mov	QWORD PTR 8[rsp], r14
	xor	r12d, r12d
	mov	r14, r15
	xor	edi, edi
	xor	edx, edx
	xor	eax, eax
	mov	r13d, r11d
	mov	r15d, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rcx, QWORD PTR 8[r14]
	movsx	rbp, r15d
	lea	r9d, 1[r12]
	lea	rsi, [r8+rax]
	add	rbp, QWORD PTR 8[rsp]
	mov	DWORD PTR 40[rsp], r9d
	lea	rbx, [rcx+r12*8]
	mov	ecx, DWORD PTR 4[rbx]
	test	ecx, ecx
	mov	DWORD PTR 20[rsp], ecx
	js	.L3
	mov	ebx, DWORD PTR [rbx]
	sub	ebx, DWORD PTR 44[rsp]
	mov	QWORD PTR 24[rsp], r8
	mov	eax, ebx
	mov	QWORD PTR 32[rsp], rsi
	sub	eax, edi
	sub	eax, r13d
	mov	edi, eax
	mov	r13d, eax
	not	edi
	add	r15d, r13d
	shr	edi, 31
	call	Assert@PLT
	mov	rsi, QWORD PTR 32[rsp]
	mov	edx, r13d
	mov	rdi, rbp
	call	memcpy@PLT
	mov	r13, QWORD PTR 8[rsp]
	mov	r9d, DWORD PTR 40[rsp]
	movsx	rdi, r15d
	mov	edx, DWORD PTR 4[r14]
	lea	rsi, .LC0[rip]
	add	rdi, r13
	add	edx, r9d
	call	sprintf@PLT
	mov	ecx, DWORD PTR 20[rsp]
	mov	r8, QWORD PTR 24[rsp]
	mov	edi, ebx
	add	r15d, eax
	lea	edx, [rbx+rcx]
	movsx	rbp, r15d
	movsx	rax, edx
	add	rbp, r13
	mov	r13d, ecx
	lea	rsi, [r8+rax]
.L3:
	add	r12, 1
	cmp	DWORD PTR [r14], r12d
	jg	.L4
	sub	DWORD PTR 48[rsp], edx
	mov	eax, DWORD PTR 48[rsp]
	mov	ebx, r15d
	mov	r14, QWORD PTR 8[rsp]
	add	ebx, eax
.L2:
	mov	r15d, DWORD PTR 48[rsp]
	mov	QWORD PTR 8[rsp], rsi
	mov	edi, r15d
	not	edi
	shr	edi, 31
	call	Assert@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	edx, r15d
	mov	rdi, rbp
	call	memcpy@PLT
	xor	edi, edi
	cmp	DWORD PTR 52[rsp], ebx
	setge	dil
	call	Assert@PLT
	movsx	rax, ebx
	mov	BYTE PTR [r14+rax], 0
	mov	rax, QWORD PTR 56[rsp]
	mov	DWORD PTR [rax], ebx
	add	rsp, 72
	.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
.L5:
	.cfi_restore_state
	mov	ebx, DWORD PTR 48[rsp]
	mov	rbp, r14
	mov	rsi, r8
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	generate_normalized_query, .-generate_normalized_query
	.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_pg_stat_statements.c_generate_normalized_query.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"$%d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	generate_normalized_query, %function
generate_normalized_query:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r0
	ldr	r4, [r3]
	sub	sp, sp, #28
	mov	r8, r1
	stmib	sp, {r1, r2}
	str	r3, [sp, #20]
	str	r4, [sp, #12]
	bl	fill_in_constant_lengths
	ldr	r3, [r10]
	add	r3, r3, r3, lsl #2
	add	r3, r4, r3, lsl #1
	add	r0, r3, #1
	str	r3, [sp, #16]
	bl	palloc
	ldr	r1, [r10]
	str	r0, [sp]
	cmp	r1, #0
	ble	.L5
	mov	r3, #0
	mov	r9, r0
	mov	r5, r3
	mov	r0, r3
	mov	ip, r3
	mov	r4, r3
.L4:
	ldr	lr, [r10, #8]
	lsl	r2, r4, #3
	add	r6, lr, r4, lsl #3
	ldr	r7, [r6, #4]
	mov	fp, r9
	cmp	r7, #0
	mov	r6, r8
	add	r4, r4, #1
	blt	.L3
	ldr	r6, [lr, r2]
	ldr	r2, [sp, #8]
	sub	r6, r6, r2
	sub	r0, r6, r0
	sub	fp, r0, r3
	mvn	r0, fp
	lsr	r0, r0, #31
	bl	Assert
	mov	r2, fp
	mov	r1, r8
	mov	r0, r9
	bl	memcpy
	ldr	r8, [sp]
	ldr	r2, [r10, #4]
	add	r5, fp, r5
	add	r0, r8, r5
	ldr	r1, .L9
	add	r2, r4, r2
	bl	sprintf
	ldr	r3, [sp, #4]
	add	ip, r6, r7
	add	r5, r5, r0
	add	r9, r8, r5
	add	r8, r3, ip
	mov	r0, r6
	mov	fp, r9
	mov	r3, r7
	mov	r6, r8
	ldr	r1, [r10]
.L3:
	cmp	r1, r4
	bgt	.L4
	ldr	r3, [sp, #12]
	sub	r3, r3, ip
	str	r3, [sp, #12]
	add	r5, r5, r3
.L2:
	ldr	r4, [sp, #12]
	mvn	r0, r4
	lsr	r0, r0, #31
	bl	Assert
	mov	r2, r4
	mov	r1, r6
	mov	r0, fp
	bl	memcpy
	ldr	r3, [sp, #16]
	cmp	r3, r5
	movlt	r0, #0
	movge	r0, #1
	bl	Assert
	ldr	r2, [sp]
	mov	r3, #0
	mov	r0, r2
	strb	r3, [r2, r5]
	ldr	r3, [sp, #20]
	str	r5, [r3]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	ldr	r6, [sp, #4]
	ldr	r5, [sp, #12]
	ldr	fp, [sp]
	b	.L2
.L10:
	.align	2
.L9:
	.word	.LC0
	.size	generate_normalized_query, .-generate_normalized_query
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
