	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPI_returntuple                ## -- Begin function SPI_returntuple
	.p2align	4, 0x90
_SPI_returntuple:                       ## @SPI_returntuple
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.4:
	movq	__SPI_current@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rdi, %r14
	movq	(%rbx), %rcx
	movq	_RECORDOID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.7:
	cmpq	$0, 8(%rbx)
	jns	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_assign_record_type_typmod
	movq	(%r15), %rax
LBB0_9:
	movl	(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r15d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_heap_copy_tuple_as_datum
	movl	%eax, %edi
	callq	_DatumGetHeapTupleHeader
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_MemoryContextSwitchTo
	movq	%rbx, %rax
	jmp	LBB0_10
LBB0_2:
	movq	_SPI_ERROR_ARGUMENT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_SPI_ERROR_UNCONNECTED@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	_SPI_result@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_ERROR_ARGUMENT,4,2         ## @SPI_ERROR_ARGUMENT
	.comm	_SPI_result,4,2                 ## @SPI_result
	.comm	__SPI_current,8,3               ## @_SPI_current
	.comm	_SPI_ERROR_UNCONNECTED,4,2      ## @SPI_ERROR_UNCONNECTED
	.comm	_RECORDOID,8,3                  ## @RECORDOID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPI_returntuple                ; -- Begin function SPI_returntuple
	.p2align	2
_SPI_returntuple:                       ; @SPI_returntuple
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_7
; %bb.2:
Lloh0:
	adrp	x21, __SPI_current@GOTPAGE
Lloh1:
	ldr	x21, [x21, __SPI_current@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.3:
	mov	x20, x0
	ldr	x9, [x19]
Lloh2:
	adrp	x10, _RECORDOID@GOTPAGE
Lloh3:
	ldr	x10, [x10, _RECORDOID@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.4:
	ldr	x9, [x19, #8]
	tbz	x9, #63, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_assign_record_type_typmod
	ldr	x8, [x21]
LBB0_6:
	ldr	w0, [x8]
	bl	_MemoryContextSwitchTo
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_heap_copy_tuple_as_datum
	bl	_DatumGetHeapTupleHeader
	mov	x19, x0
	mov	x0, x21
	bl	_MemoryContextSwitchTo
	mov	x0, x19
	b	LBB0_10
LBB0_7:
Lloh5:
	adrp	x8, _SPI_ERROR_ARGUMENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SPI_ERROR_ARGUMENT@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh7:
	adrp	x8, _SPI_ERROR_UNCONNECTED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SPI_ERROR_UNCONNECTED@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SPI_result@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SPI_result@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	mov	x0, #0
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_ERROR_ARGUMENT,4,2         ; @SPI_ERROR_ARGUMENT
	.comm	_SPI_result,4,2                 ; @SPI_result
	.comm	__SPI_current,8,3               ; @_SPI_current
	.comm	_SPI_ERROR_UNCONNECTED,4,2      ; @SPI_ERROR_UNCONNECTED
	.comm	_RECORDOID,8,3                  ; @RECORDOID
.subsections_via_symbols
