	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPI_copytuple                  ## -- Begin function SPI_copytuple
	.p2align	4, 0x90
_SPI_copytuple:                         ## @SPI_copytuple
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	__SPI_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rdi, %rbx
	movl	(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_heap_copytuple
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	movq	%rbx, %rax
	jmp	LBB0_6
LBB0_1:
	movq	_SPI_ERROR_ARGUMENT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_SPI_ERROR_UNCONNECTED@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	movq	_SPI_result@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPI_copytuple                  ; -- Begin function SPI_copytuple
	.p2align	2
_SPI_copytuple:                         ; @SPI_copytuple
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, __SPI_current@GOTPAGE
Lloh1:
	ldr	x8, [x8, __SPI_current@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x19, x0
	ldr	w0, [x8]
	bl	_MemoryContextSwitchTo
	mov	x20, x0
	mov	x0, x19
	bl	_heap_copytuple
	mov	x19, x0
	mov	x0, x20
	bl	_MemoryContextSwitchTo
	mov	x0, x19
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _SPI_ERROR_ARGUMENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPI_ERROR_ARGUMENT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _SPI_ERROR_UNCONNECTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SPI_ERROR_UNCONNECTED@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _SPI_result@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SPI_result@GOTPAGEOFF]
Lloh9:
	str	w8, [x9]
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.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
.subsections_via_symbols
