	.file	"extr_spi.c_SPI_returntuple.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	SPI_returntuple
	.type	SPI_returntuple, @function
SPI_returntuple:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rdi, rdi
	je	.L7
	mov	rbp, rsi
	test	rsi, rsi
	je	.L7
	mov	r12, QWORD PTR _SPI_current[rip]
	test	r12, r12
	je	.L10
	mov	rax, QWORD PTR RECORDOID[rip]
	mov	r13, rdi
	cmp	QWORD PTR [rsi], rax
	je	.L11
.L6:
	mov	edi, DWORD PTR [r12]
	call	MemoryContextSwitchTo@PLT
	mov	rsi, rbp
	mov	rdi, r13
	mov	r14d, eax
	call	heap_copy_tuple_as_datum@PLT
	mov	edi, eax
	call	DatumGetHeapTupleHeader@PLT
	mov	edi, r14d
	mov	r12, rax
	call	MemoryContextSwitchTo@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	cmp	QWORD PTR 8[rsi], 0
	jns	.L6
	mov	rdi, rsi
	call	assign_record_type_typmod@PLT
	mov	r12, QWORD PTR _SPI_current[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR SPI_ERROR_ARGUMENT[rip]
	xor	r12d, r12d
	mov	DWORD PTR SPI_result[rip], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR SPI_ERROR_UNCONNECTED[rip]
	mov	DWORD PTR SPI_result[rip], eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	SPI_returntuple, .-SPI_returntuple
	.comm	_SPI_current,8,8
	.comm	SPI_result,4,4
	.comm	SPI_ERROR_UNCONNECTED,4,4
	.comm	SPI_ERROR_ARGUMENT,4,4
	.comm	RECORDOID,8,8
	.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_spi.c_SPI_returntuple.c"
	.text
	.align	2
	.global	SPI_returntuple
	.syntax unified
	.arm
	.fpu softvfp
	.type	SPI_returntuple, %function
SPI_returntuple:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	cmpne	r0, #0
	push	{r4, r5, r6, r7, r8, lr}
	beq	.L8
	ldr	r7, .L11
	ldr	r4, [r7]
	cmp	r4, #0
	beq	.L9
	ldr	r3, .L11+4
	ldr	r2, [r1]
	ldr	r3, [r3]
	mov	r6, r0
	cmp	r2, r3
	mov	r5, r1
	beq	.L10
.L5:
	ldr	r0, [r4]
	bl	MemoryContextSwitchTo
	mov	r3, r0
	mov	r1, r5
	mov	r0, r6
	mov	r5, r3
	bl	heap_copy_tuple_as_datum
	bl	DatumGetHeapTupleHeader
	mov	r4, r0
	mov	r0, r5
	bl	MemoryContextSwitchTo
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, [r1, #4]
	cmp	r3, #0
	bge	.L5
	mov	r0, r1
	bl	assign_record_type_typmod
	ldr	r4, [r7]
	b	.L5
.L8:
	mov	r4, #0
	ldr	r2, .L11+8
	ldr	r3, .L11+12
	ldr	r2, [r2]
	mov	r0, r4
	str	r2, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r2, .L11+16
	ldr	r3, .L11+12
	ldr	r2, [r2]
	str	r2, [r3]
	b	.L1
.L12:
	.align	2
.L11:
	.word	_SPI_current
	.word	RECORDOID
	.word	SPI_ERROR_ARGUMENT
	.word	SPI_result
	.word	SPI_ERROR_UNCONNECTED
	.size	SPI_returntuple, .-SPI_returntuple
	.comm	_SPI_current,4,4
	.comm	SPI_result,4,4
	.comm	SPI_ERROR_UNCONNECTED,4,4
	.comm	SPI_ERROR_ARGUMENT,4,4
	.comm	RECORDOID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
