	.file	"extr_fe-exec.c_pqAddTuple.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"PGresult cannot support more than INT_MAX tuples"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"size_t overflow"
	.text
	.p2align 4
	.type	pqAddTuple, @function
pqAddTuple:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rcx, QWORD PTR [rdi]
	mov	rsi, QWORD PTR 8[rdi]
	cmp	rcx, rsi
	jnb	.L2
	mov	rax, QWORD PTR 24[rdi]
.L3:
	mov	QWORD PTR [rax+rcx*8], r12
	add	rcx, 1
	mov	eax, 1
	mov	QWORD PTR [rbx], rcx
.L1:
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	movsx	rbp, DWORD PTR INT_MAX[rip]
	mov	eax, ebp
	shr	eax, 31
	add	eax, ebp
	sar	eax
	cdqe
	cmp	rsi, rax
	ja	.L4
	lea	ebp, [rsi+rsi]
	test	rsi, rsi
	mov	eax, 128
	movsx	rbp, ebp
	cmove	rbp, rax
.L5:
	movsx	rax, DWORD PTR SIZE_MAX[rip]
	shr	rax, 3
	cmp	rax, rbp
	jb	.L14
	mov	rdi, QWORD PTR 24[rbx]
	lea	esi, 0[0+rbp*8]
	test	rdi, rdi
	je	.L15
	call	realloc@PLT
.L9:
	test	rax, rax
	je	.L11
	mov	rdx, rbp
	sub	rdx, QWORD PTR 8[rbx]
	mov	rcx, QWORD PTR [rbx]
	mov	QWORD PTR 8[rbx], rbp
	sal	edx, 3
	mov	QWORD PTR 24[rbx], rax
	add	DWORD PTR 16[rbx], edx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	rsi, rbp
	jb	.L5
	lea	rdi, .LC0[rip]
	mov	QWORD PTR 8[rsp], rdx
	call	libpq_gettext@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	QWORD PTR [rdx], rax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, esi
	call	malloc@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rdi, .LC1[rip]
	mov	QWORD PTR 8[rsp], rdx
	call	libpq_gettext@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	QWORD PTR [rdx], rax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	pqAddTuple, .-pqAddTuple
	.comm	SIZE_MAX,4,4
	.comm	INT_MAX,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_fe-exec.c_pqAddTuple.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PGresult cannot support more than INT_MAX tuples\000"
	.align	2
.LC1:
	.ascii	"size_t overflow\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pqAddTuple, %function
pqAddTuple:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r0]
	mov	r4, r0
	ldr	r0, [r0, #4]
	mov	r6, r1
	cmp	r3, r0
	bcs	.L2
	ldr	r0, [r4, #12]
.L3:
	add	r2, r3, #1
	str	r6, [r0, r3, lsl #2]
	mov	r0, #1
	str	r2, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L18
	mov	r7, r2
	ldr	r5, [r3]
	add	r3, r5, r5, lsr #31
	cmp	r0, r3, asr #1
	bhi	.L4
	cmp	r0, #0
	lslne	r5, r0, #1
	beq	.L14
.L5:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	cmp	r5, r3, lsr #2
	bhi	.L15
	ldr	r0, [r4, #12]
	lsl	r1, r5, #2
	cmp	r0, #0
	beq	.L16
	bl	realloc
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #8]
	sub	r3, r5, r3
	add	r2, r2, r3, lsl #2
	str	r0, [r4, #12]
	ldr	r3, [r4]
	str	r5, [r4, #4]
	str	r2, [r4, #8]
	b	.L3
.L4:
	cmp	r0, r5
	bcc	.L5
	ldr	r0, .L18+8
	bl	libpq_gettext
	mov	r3, r0
	mov	r0, #0
	str	r3, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r5, #128
	b	.L5
.L16:
	mov	r0, r1
	bl	malloc
	cmp	r0, #0
	bne	.L17
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r0, .L18+12
	bl	libpq_gettext
	mov	r3, r0
	mov	r0, #0
	str	r3, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	.align	2
.L18:
	.word	INT_MAX
	.word	SIZE_MAX
	.word	.LC0
	.word	.LC1
	.size	pqAddTuple, .-pqAddTuple
	.comm	SIZE_MAX,4,4
	.comm	INT_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
