	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_toast_tuple_externalize        ## -- Begin function toast_tuple_externalize
	.p2align	4, 0x90
_toast_tuple_externalize:               ## @toast_tuple_externalize
	.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
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movq	16(%rdi), %r13
	movslq	%esi, %rbx
	movl	(%r13,%rbx,4), %r14d
	movq	_TOASTCOL_IGNORE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12,%rbx,8)
	movl	%edx, %ecx
	movl	4(%rdi), %edi
	movl	4(%r12,%rbx,8), %edx
	movl	%r14d, %esi
	callq	_toast_save_datum
	movl	%eax, (%r13,%rbx,4)
	movl	(%r12,%rbx,8), %eax
	movq	_TOASTCOL_NEEDS_FREE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	testl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_DatumGetPointer
	movl	%eax, %edi
	callq	_pfree
	movl	(%r13), %ecx
	movl	(%r12,%rbx,8), %eax
LBB0_2:
	orl	%ecx, %eax
	movl	%eax, (%r12,%rbx,8)
	movq	_TOAST_NEEDS_CHANGE@GOTPCREL(%rip), %rax
	movq	_TOAST_NEEDS_FREE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TOASTCOL_IGNORE,4,2            ## @TOASTCOL_IGNORE
	.comm	_TOASTCOL_NEEDS_FREE,4,2        ## @TOASTCOL_NEEDS_FREE
	.comm	_TOAST_NEEDS_CHANGE,4,2         ## @TOAST_NEEDS_CHANGE
	.comm	_TOAST_NEEDS_FREE,4,2           ## @TOAST_NEEDS_FREE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_toast_tuple_externalize        ; -- Begin function toast_tuple_externalize
	.p2align	2
_toast_tuple_externalize:               ; @toast_tuple_externalize
	.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	x3, x2
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	sbfiz	x22, x1, #2, #32
	ldp	x8, x23, [x0, #8]
Lloh0:
	adrp	x9, _TOASTCOL_IGNORE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TOASTCOL_IGNORE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	x21, x8, w1, sxtw #3
	ldp	w8, w2, [x21]
	orr	w8, w8, w9
	ldr	w20, [x23, x22]
	str	w8, [x21]
	ldr	w0, [x0, #4]
	mov	x1, x20
	bl	_toast_save_datum
	str	w0, [x23, x22]
	ldr	w8, [x21]
Lloh3:
	adrp	x22, _TOASTCOL_NEEDS_FREE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _TOASTCOL_NEEDS_FREE@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_DatumGetPointer
	bl	_pfree
	ldr	w9, [x22]
	ldr	w8, [x21]
LBB0_2:
	orr	w8, w8, w9
	str	w8, [x21]
Lloh5:
	adrp	x8, _TOAST_NEEDS_CHANGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TOAST_NEEDS_CHANGE@GOTPAGEOFF]
Lloh7:
	adrp	x9, _TOAST_NEEDS_FREE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TOAST_NEEDS_FREE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TOASTCOL_IGNORE,4,2            ; @TOASTCOL_IGNORE
	.comm	_TOASTCOL_NEEDS_FREE,4,2        ; @TOASTCOL_NEEDS_FREE
	.comm	_TOAST_NEEDS_CHANGE,4,2         ; @TOAST_NEEDS_CHANGE
	.comm	_TOAST_NEEDS_FREE,4,2           ; @TOAST_NEEDS_FREE
.subsections_via_symbols
