	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_datumSerialize                 ## -- Begin function datumSerialize
	.p2align	4, 0x90
_datumSerialize:                        ## @datumSerialize
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%esi, %r15d
	movl	%edi, %r14d
	movb	%r14b, -45(%rbp)
	testl	%esi, %esi
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	je	LBB0_2
## %bb.1:
	movl	$-2, -44(%rbp)
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_2:
	testl	%edx, %edx
	je	LBB0_4
## %bb.3:
	movl	$-1, -44(%rbp)
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_4:
	movl	%ecx, %r13d
	cmpl	$-1, %ecx
	je	LBB0_5
LBB0_7:
	movsbl	%r14b, %edi
	xorl	%esi, %esi
	movl	%r13d, %edx
	xorl	%r13d, %r13d
	callq	_datumGetSize
	jmp	LBB0_8
LBB0_5:
	movsbl	%r14b, %ebx
	movl	%ebx, %edi
	callq	_DatumGetPointer
	movq	%rax, %rdi
	callq	_VARATT_IS_EXTERNAL_EXPANDED
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	%ebx, %edi
	callq	_DatumGetEOHP
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_EOH_get_flat_size
LBB0_8:
	movl	%eax, -44(%rbp)
LBB0_9:
	movq	(%r12), %rdi
	leaq	-44(%rbp), %rsi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_memcpy
	movq	(%r12), %rbx
	addq	$4, %rbx
	movq	%rbx, (%r12)
	testl	%r15d, %r15d
	jne	LBB0_15
## %bb.10:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.11:
	leaq	-45(%rbp), %rsi
	movl	$1, %edx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_memcpy
	incq	(%r12)
	jmp	LBB0_15
LBB0_12:
	testq	%r13, %r13
	je	LBB0_14
## %bb.13:
	movl	-44(%rbp), %edi
	callq	_palloc
	movq	%rax, %rbx
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_EOH_flatten_into
	movq	(%r12), %rdi
	movl	-44(%rbp), %edx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_memcpy
	movslq	-44(%rbp), %rax
	addq	%rax, (%r12)
	movq	%rbx, %rdi
	callq	_pfree
	jmp	LBB0_15
LBB0_14:
	movsbl	%r14b, %edi
	callq	_DatumGetPointer
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_memcpy
	movslq	-44(%rbp), %rax
	addq	%rax, (%r12)
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_datumSerialize                 ; -- Begin function datumSerialize
	.p2align	2
_datumSerialize:                        ; @datumSerialize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	strb	w0, [sp, #31]
	cbz	w1, LBB0_2
; %bb.1:
	mov	x23, #0
	mov	w8, #-2
	str	w8, [sp, #24]
	b	LBB0_9
LBB0_2:
	cbz	w21, LBB0_4
; %bb.3:
	mov	x23, #0
	mov	w8, #-1
	str	w8, [sp, #24]
	b	LBB0_9
LBB0_4:
	mov	x23, x3
	cmn	w3, #1
	b.eq	LBB0_6
LBB0_5:
	mov	x0, x20
	mov	w1, #0
	mov	x2, x23
	bl	_datumGetSize
	mov	x23, #0
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	bl	_DatumGetPointer
	bl	_VARATT_IS_EXTERNAL_EXPANDED
	cbz	x0, LBB0_5
; %bb.7:
	mov	x0, x20
	bl	_DatumGetEOHP
	mov	x23, x0
	bl	_EOH_get_flat_size
LBB0_8:
	str	w0, [sp, #24]
LBB0_9:
	ldr	x0, [x19]
	mov	w8, #4
	add	x9, sp, #24
	stp	x9, x8, [sp]
	bl	_memcpy
	ldr	x8, [x19]
	add	x24, x8, #4
	str	x24, [x19]
	cbnz	w22, LBB0_15
; %bb.10:
	cbz	w21, LBB0_13
; %bb.11:
	mov	w8, #1
	add	x9, sp, #31
	stp	x9, x8, [sp]
	mov	x0, x24
	bl	_memcpy
	ldr	x8, [x19]
	add	x8, x8, #1
LBB0_12:
	str	x8, [x19]
	b	LBB0_15
LBB0_13:
	cbz	x23, LBB0_16
; %bb.14:
	ldr	w0, [sp, #24]
	bl	_palloc
	mov	x20, x0
	ldr	w2, [sp, #24]
	mov	x0, x23
	mov	x1, x20
	bl	_EOH_flatten_into
	ldr	x0, [x19]
	ldr	w8, [sp, #24]
	stp	x20, x8, [sp]
	bl	_memcpy
	ldrsw	x8, [sp, #24]
	ldr	x9, [x19]
	add	x8, x9, x8
	str	x8, [x19]
	mov	x0, x20
	bl	_pfree
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
	mov	x0, x20
	bl	_DatumGetPointer
	ldr	w8, [sp, #24]
	stp	x0, x8, [sp]
	mov	x0, x24
	bl	_memcpy
	ldrsw	x8, [sp, #24]
	ldr	x9, [x19]
	add	x8, x9, x8
	b	LBB0_12
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
