	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_toast_tuple_try_compression    ## -- Begin function toast_tuple_try_compression
	.p2align	4, 0x90
_toast_tuple_try_compression:           ## @toast_tuple_try_compression
	.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, %r14
	movq	16(%rdi), %r13
	movslq	%esi, %rbx
	movl	(%r13,%rbx,4), %edi
	callq	_toast_compress_datum
	movl	%eax, %r15d
	movq	8(%r14), %r12
	movl	%eax, %edi
	callq	_DatumGetPointer
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_TOASTCOL_NEEDS_FREE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	testl	%eax, (%r12,%rbx,8)
	je	LBB0_3
## %bb.2:
	movl	(%r13,%rbx,4), %edi
	callq	_DatumGetPointer
	movq	%rax, %rdi
	callq	_pfree
	movq	_TOASTCOL_NEEDS_FREE@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	%r15d, (%r13,%rbx,4)
	movl	(%rcx), %eax
	orl	%eax, (%r12,%rbx,8)
	movl	(%r13,%rbx,4), %edi
	callq	_DatumGetPointer
	movq	%rax, %rdi
	callq	_VARSIZE
	movl	%eax, 4(%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, (%r14)
	jmp	LBB0_5
LBB0_4:
	movq	_TOASTCOL_INCOMPRESSIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12,%rbx,8)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_TOASTCOL_INCOMPRESSIBLE,4,2    ## @TOASTCOL_INCOMPRESSIBLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_toast_tuple_try_compression    ; -- Begin function toast_tuple_try_compression
	.p2align	2
_toast_tuple_try_compression:           ; @toast_tuple_try_compression
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x0, #16]
	ldr	w0, [x23, w1, sxtw #2]
	bl	_toast_compress_datum
	mov	x20, x0
	ldr	x22, [x19, #8]
	add	x24, x22, w21, sxtw #3
	bl	_DatumGetPointer
	cbz	x0, LBB0_4
; %bb.1:
	sxtw	x21, w21
	ldr	w8, [x24]
Lloh0:
	adrp	x25, _TOASTCOL_NEEDS_FREE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TOASTCOL_NEEDS_FREE@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x23, x21, lsl #2]
	bl	_DatumGetPointer
	bl	_pfree
LBB0_3:
	lsl	x8, x21, #2
	str	w20, [x23, x8]
	ldr	w9, [x25]
	ldr	w10, [x24]
	orr	w9, w10, w9
	str	w9, [x24]
	ldr	w0, [x23, x8]
	bl	_DatumGetPointer
	bl	_VARSIZE
	add	x8, x22, x21, lsl #3
	str	w0, [x8, #4]
Lloh2:
	adrp	x8, _TOAST_NEEDS_CHANGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TOAST_NEEDS_CHANGE@GOTPAGEOFF]
Lloh4:
	adrp	x9, _TOAST_NEEDS_FREE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TOAST_NEEDS_FREE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _TOASTCOL_INCOMPRESSIBLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TOASTCOL_INCOMPRESSIBLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x24]
	orr	w8, w9, w8
	str	w8, [x24]
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_TOASTCOL_INCOMPRESSIBLE,4,2    ; @TOASTCOL_INCOMPRESSIBLE
.subsections_via_symbols
