	.file	"extr_tuplesort.c_tuplesort_getdatum.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tuplesort_getdatum
	.type	tuplesort_getdatum, @function
tuplesort_getdatum:
.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
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	MemoryContextSwitchTo@PLT
	lea	rdx, 12[rsp]
	mov	esi, r12d
	mov	rdi, rbx
	mov	r15d, eax
	call	tuplesort_gettuple_common@PLT
	test	eax, eax
	je	.L16
	mov	edi, r15d
	call	MemoryContextSwitchTo@PLT
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR [rax], 0
	je	.L4
	test	rbp, rbp
	je	.L4
	mov	eax, DWORD PTR 20[rsp]
	mov	DWORD PTR 0[rbp], eax
.L4:
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L17
.L5:
	mov	edx, DWORD PTR 20[rsp]
	mov	r12d, 1
	mov	DWORD PTR [r14], edx
	mov	DWORD PTR 0[r13], eax
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L17:
	.cfi_restore_state
	mov	edx, DWORD PTR 4[rbx]
	test	edx, edx
	je	.L5
	mov	edi, DWORD PTR 16[rsp]
	mov	r12d, DWORD PTR [rbx]
	call	PointerGetDatum@PLT
	mov	edx, r12d
	xor	esi, esi
	mov	r12d, 1
	mov	edi, eax
	call	datumCopy@PLT
	mov	DWORD PTR [r14], eax
	mov	DWORD PTR 0[r13], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, r15d
	mov	r12d, eax
	call	MemoryContextSwitchTo@PLT
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tuplesort_getdatum, .-tuplesort_getdatum
	.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_tuplesort.c_tuplesort_getdatum.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tuplesort_getdatum
	.syntax unified
	.arm
	.fpu softvfp
	.type	tuplesort_getdatum, %function
tuplesort_getdatum:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r7, r3
	ldr	r3, .L16
	sub	sp, sp, #20
	mov	r4, r0
	ldr	r0, [r0, #12]
	mov	r5, r1
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r9, [sp, #48]
	bl	MemoryContextSwitchTo
	mov	r1, r5
	mov	r6, r0
	mov	r2, sp
	mov	r0, r4
	bl	tuplesort_gettuple_common
	subs	r5, r0, #0
	mov	r0, r6
	beq	.L13
	bl	MemoryContextSwitchTo
	ldr	r3, [r4, #8]
	ldr	r6, [sp]
	ldr	r3, [r3]
	cmp	r3, #0
	cmpne	r9, #0
	ldrne	r3, [sp, #8]
	strne	r3, [r9]
	cmp	r6, #0
	beq	.L14
.L5:
	mov	r5, #1
	ldr	r3, [sp, #8]
	str	r3, [r8]
	str	r6, [r7]
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L14:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L5
	ldr	r0, [sp, #4]
	bl	PointerGetDatum
	mov	r1, r6
	ldr	r2, [r4]
	bl	datumCopy
	mov	r5, #1
	str	r0, [r8]
	str	r6, [r7]
	b	.L1
.L13:
	bl	MemoryContextSwitchTo
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.size	tuplesort_getdatum, .-tuplesort_getdatum
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
