	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_toast_insert_or_update    ## -- Begin function heap_toast_insert_or_update
	.p2align	4, 0x90
_heap_toast_insert_or_update:           ## @heap_toast_insert_or_update
	.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
	subq	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MaxHeapAttributeNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	(,%r15,4), %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -176(%rbp)                ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	shlq	$4, %r15
	movq	%r15, %rax
	movq	%r12, %r15
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -112(%rbp)                ## 8-byte Spill
	movq	_HEAP_INSERT_SPECULATIVE@GOTPCREL(%rip), %rax
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	movq	_RELKIND_RELATION@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	sete	%dl
	movq	_RELKIND_MATVIEW@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	sete	%al
	orb	%dl, %al
	movzbl	%al, %edi
	callq	_Assert
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %r12
	movl	(%r12), %r14d
	xorl	%edi, %edi
	movq	_MaxHeapAttributeNumber@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	setle	%dil
	callq	_Assert
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_heap_deform_tuple
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%r12, %rsi
	movq	%rbx, %r13
	movq	%rbx, %rdx
	movq	-176(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_heap_deform_tuple
	jmp	LBB0_3
LBB0_1:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
LBB0_3:
	notl	-64(%rbp)                       ## 4-byte Folded Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -120(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -128(%rbp)
	movq	%r15, -168(%rbp)
	movq	%r13, -136(%rbp)
	movq	%rbx, -160(%rbp)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -144(%rbp)
	leaq	-168(%rbp), %rdi
	callq	_toast_tuple_init
	movq	_SizeofHeapTupleHeader@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_TOAST_HAS_NULLS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -152(%rbp)
	movl	%r14d, -84(%rbp)                ## 4-byte Spill
	je	LBB0_5
## %bb.4:
	movl	%r14d, %edi
	callq	_BITMAPLEN
	movl	%eax, %eax
	addq	%rax, %rbx
LBB0_5:
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	andl	%eax, -64(%rbp)                 ## 4-byte Folded Spill
	movl	%ebx, %edi
	callq	_MAXALIGN
	movq	%rax, %rbx
	movq	_TOAST_TUPLE_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_RelationGetToastTupleTarget
	movq	%rax, %r13
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	subq	%rbx, %r13
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdx
	callq	_heap_compute_data_size
	cmpq	%r13, %rax
	jle	LBB0_15
## %bb.6:
	leaq	-168(%rbp), %r14
	movq	_TOASTCOL_INCOMPRESSIBLE@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_heap_compute_data_size
	cmpq	%r13, %rax
	jle	LBB0_15
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_toast_tuple_find_biggest_attribute
	testl	%eax, %eax
	js	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_TupleDescAttr
	cmpb	$120, (%rax)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_toast_tuple_try_compression
	movl	%r15d, %eax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rbx), %ecx
	movl	%r15d, %eax
	movq	%rax, %rdx
	shlq	$4, %rdx
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	orl	%ecx, 8(%rsi,%rdx)
	movq	%rsi, %rcx
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	shlq	$4, %rax
	cmpq	%r13, (%rcx,%rax)
	jle	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movq	_InvalidOid@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_toast_tuple_externalize
	jmp	LBB0_14
LBB0_15:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_heap_compute_data_size
	cmpq	%r13, %rax
	jle	LBB0_20
## %bb.16:
	movq	_InvalidOid@GOTPCREL(%rip), %rbx
	leaq	-168(%rbp), %r14
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	8(%rax), %rax
	cmpq	(%rbx), %rax
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_toast_tuple_find_biggest_attribute
	testl	%eax, %eax
	js	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_toast_tuple_externalize
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_heap_compute_data_size
	cmpq	%r13, %rax
	jg	LBB0_17
LBB0_20:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_heap_compute_data_size
	cmpq	%r13, %rax
	jle	LBB0_24
## %bb.21:
	leaq	-168(%rbp), %rbx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_toast_tuple_find_biggest_attribute
	testl	%eax, %eax
	js	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_toast_tuple_try_compression
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_heap_compute_data_size
	cmpq	%r13, %rax
	jg	LBB0_22
LBB0_24:
	movq	_TOAST_TUPLE_TARGET_MAIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	subq	-96(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_heap_compute_data_size
	cmpq	%rbx, %rax
	jle	LBB0_29
## %bb.25:
	movq	_InvalidOid@GOTPCREL(%rip), %r15
	leaq	-168(%rbp), %r14
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	8(%rax), %rax
	cmpq	(%r15), %rax
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_toast_tuple_find_biggest_attribute
	testl	%eax, %eax
	js	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_toast_tuple_externalize
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_heap_compute_data_size
	cmpq	%rbx, %rax
	jg	LBB0_26
LBB0_29:
	movl	-152(%rbp), %eax
	movq	_TOAST_NEEDS_CHANGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-104(%rbp), %r13                ## 8-byte Reload
	je	LBB0_36
## %bb.30:
	movq	8(%r13), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	_SizeofHeapTupleHeader@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_TOAST_HAS_NULLS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_32
## %bb.31:
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	callq	_BITMAPLEN
	addl	%eax, %ebx
LBB0_32:
	movl	%ebx, %edi
	callq	_MAXALIGN
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_heap_compute_data_size
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leal	(%r15,%rax), %ebx
	movq	_HEAPTUPLESIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	addl	%ebx, %edi
	callq	_palloc0
	movq	%rax, %r13
	movl	%ebx, (%rax)
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	20(%rcx), %eax
	movl	%eax, 20(%r13)
	movl	16(%rcx), %eax
	movl	%eax, 16(%r13)
	movslq	(%r14), %r14
	leaq	(%r13,%r14), %rbx
	movq	%rbx, 8(%r13)
	movq	_SizeofHeapTupleHeader@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movq	%rbx, %rdi
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	callq	_HeapTupleHeaderSetNatts
	movl	%r15d, (%r13,%r14)
	movslq	%r15d, %rcx
	addq	%rbx, %rcx
	leaq	(%r14,%r13), %r9
	addq	$16, %r9
	movq	_TOAST_HAS_NULLS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -152(%rbp)
	je	LBB0_33
## %bb.34:
	movq	8(%rbx), %rax
	jmp	LBB0_35
LBB0_33:
	xorl	%eax, %eax
LBB0_35:
	subq	$8, %rsp
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	pushq	%rax
	callq	_heap_fill_tuple
	addq	$16, %rsp
LBB0_36:
	leaq	-168(%rbp), %rdi
	callq	_toast_tuple_cleanup
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.37:
	movq	%r13, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MaxHeapAttributeNumber,4,2     ## @MaxHeapAttributeNumber
	.comm	_HEAP_INSERT_SPECULATIVE,4,2    ## @HEAP_INSERT_SPECULATIVE
	.comm	_RELKIND_RELATION,8,3           ## @RELKIND_RELATION
	.comm	_RELKIND_MATVIEW,8,3            ## @RELKIND_MATVIEW
	.comm	_SizeofHeapTupleHeader,8,3      ## @SizeofHeapTupleHeader
	.comm	_TOAST_HAS_NULLS,4,2            ## @TOAST_HAS_NULLS
	.comm	_TOAST_TUPLE_TARGET,4,2         ## @TOAST_TUPLE_TARGET
	.comm	_TOASTCOL_INCOMPRESSIBLE,4,2    ## @TOASTCOL_INCOMPRESSIBLE
	.comm	_InvalidOid,8,3                 ## @InvalidOid
	.comm	_TOAST_TUPLE_TARGET_MAIN,8,3    ## @TOAST_TUPLE_TARGET_MAIN
	.comm	_TOAST_NEEDS_CHANGE,4,2         ## @TOAST_NEEDS_CHANGE
	.comm	_HEAPTUPLESIZE,4,2              ## @HEAPTUPLESIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_toast_insert_or_update    ; -- Begin function heap_toast_insert_or_update
	.p2align	2
_heap_toast_insert_or_update:           ; @heap_toast_insert_or_update
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #96
	stur	w3, [x29, #-168]                ; 4-byte Folded Spill
	mov	x26, x2
	mov	x20, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MaxHeapAttributeNumber@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MaxHeapAttributeNumber@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x13, x10, #0x7fffffff0
	sub	x19, x9, x13
	mov	sp, x19
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x27, x9, x13
	mov	sp, x27
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x21, x9, x13
	mov	sp, x21
	mov	x9, x8
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x28, x8, x13
	mov	sp, x28
	lsl	x8, x12, #4
	mov	x9, x8
Lloh14:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh15:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x23, x9, x8
	mov	sp, x23
Lloh16:
	adrp	x8, _HEAP_INSERT_SPECULATIVE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HEAP_INSERT_SPECULATIVE@GOTPAGEOFF]
Lloh18:
	ldr	w25, [x8]
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _RELKIND_RELATION@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RELKIND_RELATION@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh22:
	adrp	x9, _RELKIND_MATVIEW@GOTPAGE
Lloh23:
	ldr	x9, [x9, _RELKIND_MATVIEW@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_Assert
	ldr	x22, [x24, #8]
	ldr	w9, [x22]
Lloh25:
	adrp	x8, _MaxHeapAttributeNumber@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MaxHeapAttributeNumber@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	stur	w9, [x29, #-148]                ; 4-byte Folded Spill
	cmp	w9, w8
	cset	w0, le
	bl	_Assert
	stur	x20, [x29, #-160]               ; 8-byte Folded Spill
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	bl	_heap_deform_tuple
	cbz	x26, LBB0_2
; %bb.1:
	mov	x0, x26
	mov	x1, x22
	mov	x2, x28
	mov	x3, x27
	bl	_heap_deform_tuple
	b	LBB0_3
LBB0_2:
	mov	x28, #0
	mov	x27, #0
LBB0_3:
	ldur	w8, [x29, #-168]                ; 4-byte Folded Reload
	bic	w25, w8, w25
	stp	x21, x24, [x29, #-104]
	stp	x19, x27, [x29, #-144]
	stp	x23, x28, [x29, #-120]
	sub	x0, x29, #144
	bl	_toast_tuple_init
Lloh28:
	adrp	x8, _SizeofHeapTupleHeader@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SizeofHeapTupleHeader@GOTPAGEOFF]
Lloh30:
	ldr	x26, [x8]
	ldur	w8, [x29, #-128]
Lloh31:
	adrp	x9, _TOAST_HAS_NULLS@GOTPAGE
Lloh32:
	ldr	x9, [x9, _TOAST_HAS_NULLS@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	ldur	w0, [x29, #-148]                ; 4-byte Folded Reload
	b.eq	LBB0_5
; %bb.4:
	bl	_BITMAPLEN
	add	x26, x26, w0, uxtw
LBB0_5:
	mov	x0, x26
	bl	_MAXALIGN
	mov	x20, x0
Lloh34:
	adrp	x8, _TOAST_TUPLE_TARGET@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TOAST_TUPLE_TARGET@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_RelationGetToastTupleTarget
	stur	x20, [x29, #-168]               ; 8-byte Folded Spill
	sub	x20, x0, x20
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_heap_compute_data_size
Lloh37:
	adrp	x28, _InvalidOid@GOTPAGE
Lloh38:
	ldr	x28, [x28, _InvalidOid@GOTPAGEOFF]
	cmp	x0, x20
	b.le	LBB0_15
; %bb.6:
Lloh39:
	adrp	x26, _TOASTCOL_INCOMPRESSIBLE@GOTPAGE
Lloh40:
	ldr	x26, [x26, _TOASTCOL_INCOMPRESSIBLE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_heap_compute_data_size
	cmp	x0, x20
	b.le	LBB0_15
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #144
	mov	w1, #1
	mov	w2, #0
	bl	_toast_tuple_find_biggest_attribute
	tbnz	w0, #31, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x27, x0
	mov	x0, x22
	mov	x1, x27
	bl	_TupleDescAttr
	ldrb	w8, [x0]
	cmp	w8, #120
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	sub	x0, x29, #144
	mov	x1, x27
	bl	_toast_tuple_try_compression
	mov	w8, w27
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x26]
	mov	w8, w27
	add	x10, x23, w27, uxtw #4
	ldr	w11, [x10, #8]
	orr	w9, w11, w9
	str	w9, [x10, #8]
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	lsl	x8, x8, #4
	ldr	x8, [x23, x8]
	cmp	x8, x20
	b.le	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8, #8]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	sub	x0, x29, #144
	mov	x1, x27
	mov	x2, x25
	bl	_toast_tuple_externalize
	b	LBB0_7
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_heap_compute_data_size
	cmp	x0, x20
	b.le	LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8, #8]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	sub	x0, x29, #144
	mov	w1, #0
	mov	w2, #0
	bl	_toast_tuple_find_biggest_attribute
	tbnz	w0, #31, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x1, x0
	sub	x0, x29, #144
	mov	x2, x25
	bl	_toast_tuple_externalize
	b	LBB0_15
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	sub	x0, x29, #144
	mov	w1, #1
	mov	w2, #1
	bl	_toast_tuple_find_biggest_attribute
	tbnz	w0, #31, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x1, x0
	sub	x0, x29, #144
	bl	_toast_tuple_try_compression
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_heap_compute_data_size
	cmp	x0, x20
	b.gt	LBB0_19
LBB0_22:
Lloh41:
	adrp	x8, _TOAST_TUPLE_TARGET_MAIN@GOTPAGE
Lloh42:
	ldr	x8, [x8, _TOAST_TUPLE_TARGET_MAIN@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	ldur	x9, [x29, #-168]                ; 8-byte Folded Reload
	sub	x20, x8, x9
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_heap_compute_data_size
	cmp	x0, x20
	b.le	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8, #8]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	sub	x0, x29, #144
	mov	w1, #0
	mov	w2, #1
	bl	_toast_tuple_find_biggest_attribute
	tbnz	w0, #31, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x1, x0
	sub	x0, x29, #144
	mov	x2, x25
	bl	_toast_tuple_externalize
	b	LBB0_23
LBB0_27:
	ldur	w8, [x29, #-128]
Lloh44:
	adrp	x9, _TOAST_NEEDS_CHANGE@GOTPAGE
Lloh45:
	ldr	x9, [x9, _TOAST_NEEDS_CHANGE@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_30
; %bb.28:
	ldur	x28, [x29, #-160]               ; 8-byte Folded Reload
	ldr	x9, [x28, #8]
	stur	x9, [x29, #-168]                ; 8-byte Folded Spill
Lloh47:
	adrp	x9, _SizeofHeapTupleHeader@GOTPAGE
Lloh48:
	ldr	x9, [x9, _SizeofHeapTupleHeader@GOTPAGEOFF]
Lloh49:
	ldr	w24, [x9]
Lloh50:
	adrp	x9, _TOAST_HAS_NULLS@GOTPAGE
Lloh51:
	ldr	x9, [x9, _TOAST_HAS_NULLS@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_31
; %bb.29:
	ldur	w25, [x29, #-148]               ; 4-byte Folded Reload
	mov	x0, x25
	bl	_BITMAPLEN
	add	w24, w0, w24
	b	LBB0_32
LBB0_30:
	ldur	x26, [x29, #-160]               ; 8-byte Folded Reload
	b	LBB0_36
LBB0_31:
	ldur	w25, [x29, #-148]               ; 4-byte Folded Reload
LBB0_32:
	mov	x0, x24
	bl	_MAXALIGN
	mov	x27, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_heap_compute_data_size
	mov	x24, x0
Lloh53:
	adrp	x20, _HEAPTUPLESIZE@GOTPAGE
Lloh54:
	ldr	x20, [x20, _HEAPTUPLESIZE@GOTPAGEOFF]
	ldr	w8, [x20]
	add	w23, w27, w24
	add	w0, w23, w8
	bl	_palloc0
	mov	x26, x0
	str	w23, [x0]
	ldr	d0, [x28, #16]
	str	d0, [x0, #16]
	ldrsw	x8, [x20]
	add	x20, x0, x8
	str	x20, [x0, #8]
Lloh55:
	adrp	x8, _SizeofHeapTupleHeader@GOTPAGE
Lloh56:
	ldr	x8, [x8, _SizeofHeapTupleHeader@GOTPAGEOFF]
Lloh57:
	ldr	x2, [x8]
	mov	x0, x20
	ldur	x1, [x29, #-168]                ; 8-byte Folded Reload
	bl	_memcpy
	mov	x0, x20
	mov	x1, x25
	bl	_HeapTupleHeaderSetNatts
	mov	x5, x20
	str	w27, [x5], #16
	add	x3, x20, w27, sxtw
	ldur	w8, [x29, #-128]
Lloh58:
	adrp	x9, _TOAST_HAS_NULLS@GOTPAGE
Lloh59:
	ldr	x9, [x9, _TOAST_HAS_NULLS@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_34
; %bb.33:
	ldr	x6, [x20, #8]
	b	LBB0_35
LBB0_34:
	mov	x6, #0
LBB0_35:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	mov	x4, x24
	bl	_heap_fill_tuple
LBB0_36:
	sub	x0, x29, #144
	bl	_toast_tuple_cleanup
	ldur	x8, [x29, #-88]
Lloh61:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh62:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh63:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_38
; %bb.37:
	mov	x0, x26
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_38:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxHeapAttributeNumber,4,2     ; @MaxHeapAttributeNumber
	.comm	_HEAP_INSERT_SPECULATIVE,4,2    ; @HEAP_INSERT_SPECULATIVE
	.comm	_RELKIND_RELATION,8,3           ; @RELKIND_RELATION
	.comm	_RELKIND_MATVIEW,8,3            ; @RELKIND_MATVIEW
	.comm	_SizeofHeapTupleHeader,8,3      ; @SizeofHeapTupleHeader
	.comm	_TOAST_HAS_NULLS,4,2            ; @TOAST_HAS_NULLS
	.comm	_TOAST_TUPLE_TARGET,4,2         ; @TOAST_TUPLE_TARGET
	.comm	_TOASTCOL_INCOMPRESSIBLE,4,2    ; @TOASTCOL_INCOMPRESSIBLE
	.comm	_InvalidOid,8,3                 ; @InvalidOid
	.comm	_TOAST_TUPLE_TARGET_MAIN,8,3    ; @TOAST_TUPLE_TARGET_MAIN
	.comm	_TOAST_NEEDS_CHANGE,4,2         ; @TOAST_NEEDS_CHANGE
	.comm	_HEAPTUPLESIZE,4,2              ; @HEAPTUPLESIZE
.subsections_via_symbols
