	.file	"extr_execTuples.c_tts_virtual_materialize.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tts_virtual_materialize, @function
tts_virtual_materialize:
.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
	mov	r13, rdi
	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, 24
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR 24[rdi]
	call	TTS_SHOULDFREE@PLT
	test	rax, rax
	jne	.L1
	mov	edx, DWORD PTR [r12]
	test	edx, edx
	jle	.L1
	mov	r14, rax
	xor	ebp, ebp
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, r14
	call	att_align_nominal@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdx, r15
	mov	rdi, rax
	call	att_addlength_datum@PLT
	mov	r14, rax
.L4:
	add	rbp, 1
	cmp	DWORD PTR [r12], ebp
	jle	.L23
.L6:
	mov	esi, ebp
	mov	rdi, r12
	call	TupleDescAttr@PLT
	cmp	QWORD PTR 8[rax], 0
	mov	rbx, rax
	jne	.L4
	mov	rax, QWORD PTR 8[r13]
	cmp	QWORD PTR [rax+rbp*8], 0
	jne	.L4
	mov	rax, QWORD PTR 0[r13]
	cmp	DWORD PTR [rbx], -1
	mov	r15, QWORD PTR [rax+rbp*8]
	jne	.L5
	mov	rdi, r15
	call	DatumGetPointer@PLT
	mov	edi, eax
	call	VARATT_IS_EXTERNAL_EXPANDED@PLT
	test	rax, rax
	je	.L5
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, r14
	add	rbp, 1
	call	att_align_nominal@PLT
	mov	rdi, r15
	mov	r14, rax
	call	DatumGetEOHP@PLT
	mov	rdi, rax
	call	EOH_get_flat_size@PLT
	add	r14, rax
	cmp	DWORD PTR [r12], ebp
	jg	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	test	r14, r14
	je	.L1
	mov	edi, DWORD PTR 20[r13]
	mov	rsi, r14
	call	MemoryContextAlloc@PLT
	mov	QWORD PTR 0[r13], rax
	mov	r14, rax
	mov	eax, DWORD PTR TTS_FLAG_SHOULDFREE[rip]
	or	DWORD PTR 16[r13], eax
	mov	eax, DWORD PTR [r12]
	test	eax, eax
	jle	.L1
	xor	ebp, ebp
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, r14
	call	att_align_nominal@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdx, r15
	xor	edi, edi
	mov	r14, rax
	call	att_addlength_datum@PLT
	mov	rdi, r15
	lea	r15, 0[0+rbp*8]
	mov	rbx, rax
	call	DatumGetPointer@PLT
	mov	rdi, r14
	mov	rdx, rbx
	mov	esi, eax
	call	memcpy@PLT
	mov	rdi, r14
	add	r15, QWORD PTR 0[r13]
	add	r14, rbx
	call	PointerGetDatum@PLT
	mov	QWORD PTR [r15], rax
.L7:
	add	rbp, 1
	cmp	DWORD PTR [r12], ebp
	jle	.L1
.L9:
	mov	esi, ebp
	mov	rdi, r12
	call	TupleDescAttr@PLT
	cmp	QWORD PTR 8[rax], 0
	mov	rbx, rax
	jne	.L7
	lea	rax, 0[0+rbp*8]
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR 8[r13]
	cmp	QWORD PTR [rax+rbp*8], 0
	jne	.L7
	mov	rax, QWORD PTR 0[r13]
	cmp	DWORD PTR [rbx], -1
	mov	r15, QWORD PTR [rax+rbp*8]
	jne	.L8
	mov	rdi, r15
	call	DatumGetPointer@PLT
	mov	edi, eax
	call	VARATT_IS_EXTERNAL_EXPANDED@PLT
	test	rax, rax
	je	.L8
	mov	rdi, r15
	call	DatumGetEOHP@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, r14
	mov	r15, rax
	call	att_align_nominal@PLT
	mov	rdi, r15
	mov	rbx, rax
	call	EOH_get_flat_size@PLT
	mov	rdi, r15
	mov	rsi, rbx
	lea	r15, 0[0+rbp*8]
	mov	rdx, rax
	mov	r14, rax
	add	rbp, 1
	call	EOH_flatten_into@PLT
	mov	rdi, rbx
	add	r15, QWORD PTR 0[r13]
	add	r14, rbx
	call	PointerGetDatum@PLT
	mov	QWORD PTR [r15], rax
	cmp	DWORD PTR [r12], ebp
	jg	.L9
.L1:
	add	rsp, 24
	.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
	.cfi_endproc
.LFE0:
	.size	tts_virtual_materialize, .-tts_virtual_materialize
	.comm	TTS_FLAG_SHOULDFREE,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_execTuples.c_tts_virtual_materialize.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tts_virtual_materialize, %function
tts_virtual_materialize:
	@ 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
	ldr	r6, [r0, #16]
	bl	TTS_SHOULDFREE
	subs	r5, r0, #0
	popne	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r3, [r6]
	cmp	r3, #0
	pople	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r9, r5
	mov	r8, r5
	b	.L6
.L5:
	mov	r0, r8
	ldr	r1, [r4, #4]
	bl	att_align_nominal
	mov	r2, r10
	ldr	r1, [r4]
	bl	att_addlength_datum
	mov	r8, r0
.L4:
	ldr	r3, [r6]
	add	r9, r9, #1
	cmp	r3, r9
	ble	.L23
.L6:
	mov	r1, r9
	mov	r0, r6
	bl	TupleDescAttr
	ldr	r3, [r0, #8]
	mov	r4, r0
	cmp	r3, #0
	bne	.L4
	ldr	r3, [r7, #4]
	ldr	r3, [r3, r9, lsl #2]
	cmp	r3, #0
	bne	.L4
	ldr	r2, [r0]
	ldr	r3, [r7]
	cmn	r2, #1
	ldr	r10, [r3, r9, lsl #2]
	bne	.L5
	mov	r0, r10
	bl	DatumGetPointer
	bl	VARATT_IS_EXTERNAL_EXPANDED
	cmp	r0, #0
	beq	.L5
	ldr	r1, [r4, #4]
	mov	r0, r8
	bl	att_align_nominal
	mov	r8, r0
	mov	r0, r10
	bl	DatumGetEOHP
	bl	EOH_get_flat_size
	ldr	r3, [r6]
	add	r9, r9, #1
	cmp	r3, r9
	add	r8, r8, r0
	bgt	.L6
.L23:
	cmp	r8, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r1, r8
	ldr	r0, [r7, #12]
	bl	MemoryContextAlloc
	ldr	r2, .L24
	ldr	r3, [r7, #8]
	ldr	r1, [r2]
	ldr	r2, [r6]
	orr	r3, r3, r1
	cmp	r2, #0
	mov	r8, r0
	str	r0, [r7]
	str	r3, [r7, #8]
	bgt	.L9
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	ldr	r1, [r4, #4]
	mov	r0, r8
	bl	att_align_nominal
	mov	r3, r0
	mov	r2, r10
	ldr	r1, [r4]
	mov	r0, #0
	mov	r4, r3
	bl	att_addlength_datum
	mov	r8, r0
	mov	r0, r10
	bl	DatumGetPointer
	mov	r2, r8
	mov	r1, r0
	mov	r0, r4
	bl	memcpy
	mov	r0, r4
	ldr	r10, [r7]
	bl	PointerGetDatum
	add	r8, r4, r8
	str	r0, [r10, r9]
.L7:
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r5
	pople	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	mov	r1, r5
	mov	r0, r6
	bl	TupleDescAttr
	ldr	r3, [r0, #8]
	mov	r4, r0
	cmp	r3, #0
	lsl	r9, r5, #2
	bne	.L7
	ldr	r3, [r7, #4]
	ldr	r3, [r3, r5, lsl #2]
	cmp	r3, #0
	bne	.L7
	ldr	r2, [r0]
	ldr	r3, [r7]
	cmn	r2, #1
	ldr	r10, [r3, r5, lsl #2]
	bne	.L8
	mov	r0, r10
	bl	DatumGetPointer
	bl	VARATT_IS_EXTERNAL_EXPANDED
	cmp	r0, #0
	beq	.L8
	mov	r0, r10
	bl	DatumGetEOHP
	ldr	r1, [r4, #4]
	mov	fp, r0
	mov	r0, r8
	bl	att_align_nominal
	mov	r10, r0
	mov	r0, fp
	bl	EOH_get_flat_size
	mov	r8, r0
	mov	r1, r10
	mov	r2, r8
	mov	r0, fp
	bl	EOH_flatten_into
	mov	r0, r10
	ldr	fp, [r7]
	bl	PointerGetDatum
	add	r8, r10, r8
	str	r0, [fp, r9]
	b	.L7
.L25:
	.align	2
.L24:
	.word	TTS_FLAG_SHOULDFREE
	.size	tts_virtual_materialize, .-tts_virtual_materialize
	.comm	TTS_FLAG_SHOULDFREE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
