	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function datum_write
_datum_write:                           ## @datum_write
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movl	%ecx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movsbl	%r12b, %esi
	movq	%r14, %rdi
	callq	_att_align_nominal
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_store_att_byval
	jmp	LBB0_17
LBB0_2:
	cmpl	$-2, %ebx
	je	LBB0_13
## %bb.3:
	cmpl	$-1, %ebx
	jne	LBB0_14
## %bb.4:
	movl	%r9d, %r13d
	movl	%r15d, %edi
	callq	_DatumGetPointer
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_VARATT_IS_EXTERNAL
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_13:
	xorl	%edi, %edi
	cmpb	$99, %r12b
	sete	%dil
	callq	_Assert
	movl	%r15d, %edi
	callq	_DatumGetCString
	movl	%eax, %edi
	callq	_strlen
	movl	%eax, %ebx
	incl	%ebx
	jmp	LBB0_15
LBB0_14:
	movsbl	%r12b, %esi
	movq	%r14, %rdi
	callq	_att_align_nominal
	movq	%rax, %r14
	xorl	%edi, %edi
	testl	%ebx, %ebx
	setg	%dil
	callq	_Assert
LBB0_15:
	movl	%r15d, %edi
	callq	_DatumGetPointer
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
LBB0_16:
	callq	_memcpy
LBB0_17:
	movslq	%ebx, %rax
	addq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r15, %rdi
	callq	_VARATT_IS_SHORT
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%r15, %rdi
	callq	_VARSIZE_SHORT
	jmp	LBB0_8
LBB0_9:
	movsbl	%r13b, %esi
	movl	$-1, %edi
	callq	_TYPE_IS_PACKABLE
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%r15, %rdi
	callq	_VARATT_CAN_MAKE_SHORT
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_VARATT_CONVERTED_SHORT_SIZE
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_SET_VARSIZE_SHORT
	leaq	1(%r14), %r12
	movq	%r15, %rdi
	callq	_VARDATA
	movl	%ebx, %edx
	decl	%edx
	movq	%r12, %rdi
	movq	%rax, %rsi
	jmp	LBB0_16
LBB0_12:
	movsbl	%r12b, %esi
	movq	%r14, %rdi
	callq	_att_align_nominal
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_VARSIZE
LBB0_8:
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot store a toast pointer inside a range"

	.no_dead_strip	_datum_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function datum_write
_datum_write:                           ; @datum_write
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x4
	mov	x22, x3
	mov	x21, x1
	mov	x19, x0
	cbz	w2, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	bl	_att_align_nominal
	mov	x19, x0
	mov	x1, x21
	mov	x2, x20
	bl	_store_att_byval
	b	LBB0_11
LBB0_2:
	cmn	w20, #2
	b.eq	LBB0_6
; %bb.3:
	cmn	w20, #1
	b.ne	LBB0_7
; %bb.4:
	mov	x23, x5
	mov	x0, x21
	bl	_DatumGetPointer
	mov	x21, x0
	bl	_VARATT_IS_EXTERNAL
	cbz	x0, LBB0_12
; %bb.5:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	mov	w20, #0
	b	LBB0_11
LBB0_6:
	cmp	w22, #99
	cset	w0, eq
	bl	_Assert
	mov	x0, x21
	bl	_DatumGetCString
	bl	_strlen
	add	w20, w0, #1
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	mov	x1, x22
	bl	_att_align_nominal
	mov	x19, x0
	cmp	w20, #0
	cset	w0, gt
	bl	_Assert
LBB0_8:
	mov	x0, x21
	bl	_DatumGetPointer
	mov	x1, x0
	mov	x0, x19
LBB0_9:
	mov	x2, x20
LBB0_10:
	bl	_memcpy
LBB0_11:
	add	x0, x19, w20, sxtw
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x0, x21
	bl	_VARATT_IS_SHORT
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x21
	bl	_VARSIZE_SHORT
	b	LBB0_18
LBB0_14:
	mov	w0, #-1
	mov	x1, x23
	bl	_TYPE_IS_PACKABLE
	cbz	x0, LBB0_17
; %bb.15:
	mov	x0, x21
	bl	_VARATT_CAN_MAKE_SHORT
	cbz	x0, LBB0_17
; %bb.16:
	mov	x0, x21
	bl	_VARATT_CONVERTED_SHORT_SIZE
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_SET_VARSIZE_SHORT
	add	x22, x19, #1
	mov	x0, x21
	bl	_VARDATA
	mov	x1, x0
	sub	w2, w20, #1
	mov	x0, x22
	b	LBB0_10
LBB0_17:
	mov	x0, x19
	mov	x1, x22
	bl	_att_align_nominal
	mov	x19, x0
	mov	x0, x21
	bl	_VARSIZE
LBB0_18:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	b	LBB0_9
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot store a toast pointer inside a range"

	.no_dead_strip	_datum_write
.subsections_via_symbols
