	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_toast_tuple_cleanup            ## -- Begin function toast_tuple_cleanup
	.p2align	4, 0x90
_toast_tuple_cleanup:                   ## @toast_tuple_cleanup
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %r14d
	movl	(%rdi), %eax
	movq	_TOAST_NEEDS_FREE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.1:
	testl	%r14d, %r14d
	jle	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	movq	_TOASTCOL_NEEDS_FREE@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	(%r12), %ecx
	testl	%ecx, (%rax,%rbx,4)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_DatumGetPointer
	movl	%eax, %edi
	callq	_pfree
	jmp	LBB0_5
LBB0_6:
	movl	(%r15), %eax
LBB0_7:
	movq	_TOAST_NEEDS_DELETE_OLD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.8:
	testl	%r14d, %r14d
	jle	LBB0_13
## %bb.9:
	xorl	%ebx, %ebx
	movq	_TOASTCOL_NEEDS_DELETE_OLD@GOTPCREL(%rip), %r12
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	(%r12), %ecx
	testl	%ecx, (%rax,%rbx,4)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%r15), %rax
	movq	16(%r15), %rdi
	movl	(%rax,%rbx,4), %esi
	xorl	%edx, %edx
	callq	_toast_delete_datum
	jmp	LBB0_12
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TOAST_NEEDS_FREE,4,2           ## @TOAST_NEEDS_FREE
	.comm	_TOASTCOL_NEEDS_FREE,4,2        ## @TOASTCOL_NEEDS_FREE
	.comm	_TOAST_NEEDS_DELETE_OLD,4,2     ## @TOAST_NEEDS_DELETE_OLD
	.comm	_TOASTCOL_NEEDS_DELETE_OLD,4,2  ## @TOASTCOL_NEEDS_DELETE_OLD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_toast_tuple_cleanup            ; -- Begin function toast_tuple_cleanup
	.p2align	2
_toast_tuple_cleanup:                   ; @toast_tuple_cleanup
	.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	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	w20, [x8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _TOAST_NEEDS_FREE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TOAST_NEEDS_FREE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8
	cmp	w9, #0
	ccmp	w20, #1, #8, ne
	b.lt	LBB0_6
; %bb.1:
	mov	x21, #0
	lsl	x22, x20, #2
Lloh3:
	adrp	x23, _TOASTCOL_NEEDS_FREE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _TOASTCOL_NEEDS_FREE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #4
	cmp	x22, x21
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w8, [x8, x21]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x21]
	bl	_DatumGetPointer
	bl	_pfree
	b	LBB0_2
LBB0_5:
	ldr	w8, [x19]
LBB0_6:
Lloh5:
	adrp	x9, _TOAST_NEEDS_DELETE_OLD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TOAST_NEEDS_DELETE_OLD@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	w20, #1, #8, ne
	b.ge	LBB0_8
LBB0_7:
	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_8:
	mov	x21, #0
	lsl	x20, x20, #2
Lloh8:
	adrp	x22, _TOASTCOL_NEEDS_DELETE_OLD@GOTPAGE
Lloh9:
	ldr	x22, [x22, _TOASTCOL_NEEDS_DELETE_OLD@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #4
	cmp	x20, x21
	b.eq	LBB0_7
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w8, [x8, x21]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldp	x8, x0, [x19, #8]
	ldr	w1, [x8, x21]
	mov	w2, #0
	bl	_toast_delete_datum
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TOAST_NEEDS_FREE,4,2           ; @TOAST_NEEDS_FREE
	.comm	_TOASTCOL_NEEDS_FREE,4,2        ; @TOASTCOL_NEEDS_FREE
	.comm	_TOAST_NEEDS_DELETE_OLD,4,2     ; @TOAST_NEEDS_DELETE_OLD
	.comm	_TOASTCOL_NEEDS_DELETE_OLD,4,2  ; @TOASTCOL_NEEDS_DELETE_OLD
.subsections_via_symbols
