	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_datumCopy                      ## -- Begin function datumCopy
	.p2align	4, 0x90
_datumCopy:                             ## @datumCopy
	.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
	movl	%edi, %ebx
	testl	%esi, %esi
	je	LBB0_1
## %bb.8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%ebx, %edi
	cmpl	$-1, %edx
	je	LBB0_2
## %bb.5:
	xorl	%esi, %esi
	callq	_datumGetSize
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_palloc
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_DatumGetPointer
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
LBB0_6:
	callq	_memcpy
	jmp	LBB0_7
LBB0_2:
	callq	_DatumGetPointer
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_VARATT_IS_EXTERNAL_EXPANDED
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	%ebx, %edi
	callq	_DatumGetEOHP
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_EOH_get_flat_size
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_palloc
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_EOH_flatten_into
LBB0_7:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PointerGetDatum                ## TAILCALL
LBB0_4:
	movq	%r15, %rdi
	callq	_VARSIZE_ANY
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_palloc
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_datumCopy                      ; -- Begin function datumCopy
	.p2align	2
_datumCopy:                             ; @datumCopy
	.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
	mov	x19, x0
	cbz	w1, LBB0_2
; %bb.1:
	mov	x0, x19
	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
LBB0_2:
	mov	x0, x19
	cmn	w2, #1
	b.eq	LBB0_5
; %bb.3:
	mov	w1, #0
	bl	_datumGetSize
	mov	x21, x0
	bl	_palloc
	mov	x20, x0
	mov	x0, x19
	bl	_DatumGetPointer
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
LBB0_4:
	bl	_memcpy
	b	LBB0_7
LBB0_5:
	bl	_DatumGetPointer
	mov	x21, x0
	bl	_VARATT_IS_EXTERNAL_EXPANDED
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_DatumGetEOHP
	mov	x19, x0
	bl	_EOH_get_flat_size
	mov	x21, x0
	bl	_palloc
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_EOH_flatten_into
LBB0_7:
	mov	x0, x20
	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
	b	_PointerGetDatum
LBB0_8:
	mov	x0, x21
	bl	_VARSIZE_ANY
	mov	x19, x0
	bl	_palloc
	mov	x20, x0
	mov	x1, x21
	mov	x2, x19
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
