	.file	"extr_toast_helper.c_toast_tuple_externalize.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	toast_tuple_externalize
	.type	toast_tuple_externalize, @function
toast_tuple_externalize:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movsx	rsi, esi
	mov	ecx, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 16[rdi]
	lea	r12, [rax+rsi*4]
	mov	rax, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR 4[rdi]
	mov	r13d, DWORD PTR [r12]
	lea	rbp, [rax+rsi*8]
	mov	eax, DWORD PTR TOASTCOL_IGNORE[rip]
	or	DWORD PTR 0[rbp], eax
	mov	edx, DWORD PTR 4[rbp]
	mov	esi, r13d
	call	toast_save_datum@PLT
	mov	DWORD PTR [r12], eax
	mov	eax, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR TOASTCOL_NEEDS_FREE[rip]
	test	eax, edx
	jne	.L8
.L2:
	or	eax, edx
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR TOAST_NEEDS_CHANGE[rip]
	or	eax, DWORD PTR TOAST_NEEDS_FREE[rip]
	or	DWORD PTR [rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, r13d
	call	DatumGetPointer@PLT
	mov	edi, eax
	call	pfree@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR TOASTCOL_NEEDS_FREE[rip]
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	toast_tuple_externalize, .-toast_tuple_externalize
	.comm	TOAST_NEEDS_FREE,4,4
	.comm	TOAST_NEEDS_CHANGE,4,4
	.comm	TOASTCOL_NEEDS_FREE,4,4
	.comm	TOASTCOL_IGNORE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_toast_helper.c_toast_tuple_externalize.c"
	.text
	.align	2
	.global	toast_tuple_externalize
	.syntax unified
	.arm
	.fpu softvfp
	.type	toast_tuple_externalize, %function
toast_tuple_externalize:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r6, [r0, #8]
	mov	r3, r2
	ldr	r2, .L9
	ldr	r7, [r0, #12]
	ldr	r2, [r2]
	ldr	r0, [r6, r1, lsl #3]
	ldr	r8, [r7, r1, lsl #2]
	orr	r0, r0, r2
	add	ip, r6, r1, lsl #3
	mov	r4, r1
	str	r0, [r6, r1, lsl #3]
	ldr	r2, [ip, #4]
	mov	r1, r8
	ldr	r0, [r5, #4]
	bl	toast_save_datum
	ldr	r9, .L9+4
	str	r0, [r7, r4, lsl #2]
	ldr	r3, [r6, r4, lsl #3]
	ldr	r2, [r9]
	tst	r3, r2
	bne	.L8
.L2:
	ldr	r1, .L9+8
	ldr	r0, .L9+12
	ldr	r1, [r1]
	ldr	r0, [r0]
	orr	r3, r3, r2
	ldr	r2, [r5]
	orr	r1, r1, r0
	str	r3, [r6, r4, lsl #3]
	orr	r3, r2, r1
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	mov	r0, r8
	bl	DatumGetPointer
	bl	pfree
	ldr	r2, [r9]
	ldr	r3, [r6, r4, lsl #3]
	b	.L2
.L10:
	.align	2
.L9:
	.word	TOASTCOL_IGNORE
	.word	TOASTCOL_NEEDS_FREE
	.word	TOAST_NEEDS_CHANGE
	.word	TOAST_NEEDS_FREE
	.size	toast_tuple_externalize, .-toast_tuple_externalize
	.comm	TOAST_NEEDS_FREE,4,4
	.comm	TOAST_NEEDS_CHANGE,4,4
	.comm	TOASTCOL_NEEDS_FREE,4,4
	.comm	TOASTCOL_IGNORE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
