	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_multi_insert              ## -- Begin function heap_multi_insert
	.p2align	4, 0x90
_heap_multi_insert:                     ## @heap_multi_insert
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -92(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movl	%edi, %r12d
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	callq	_GetCurrentTransactionId
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_RelationIsLogicallyLogged
	movl	%r12d, %edi
	callq	_RelationIsAccessibleInLogicalDecoding
	movl	%eax, %r13d
	movq	_HEAP_INSERT_NO_LOGICAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	andl	%r14d, %eax
	sete	%dil
	callq	_AssertArg
	movq	_HEAP_INSERT_SKIP_WAL@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	%r12d, %edi
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	setne	%al
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
LBB0_2:
	movq	_HEAP_DEFAULT_FILLFACTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_RelationGetTargetPageFreeSpace
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leal	(,%rbx,8), %edi
	callq	_palloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	jle	LBB0_3
## %bb.4:
	movl	%r13d, -84(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	movl	%r15d, -64(%rbp)                ## 4-byte Spill
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movl	%r14d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_ExecFetchSlotHeapTuple
	movq	%rax, %r14
	movl	%r12d, %edi
	callq	_RelationGetRelid
	movq	(%r15,%rbx,8), %rcx
	movl	%eax, 4(%rcx)
	movl	%eax, 16(%r14)
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	callq	_heap_prepare_insert
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, -112(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_5
## %bb.6:
	movl	%r13d, -88(%rbp)                ## 4-byte Spill
	movq	_InvalidBuffer@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_CheckForSerializableConflictIn
	cmpl	$0, -84(%rbp)                   ## 4-byte Folded Reload
	setne	%al
	andb	-60(%rbp), %al                  ## 1-byte Folded Reload
	movb	%al, -64(%rbp)                  ## 1-byte Spill
	xorl	%r14d, %r14d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	cmpl	%r15d, %r14d
	jge	LBB0_24
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	(%r13), %rax
	movq	%rax, -80(%rbp)
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movl	%r14d, %ebx
	movq	(%r12,%rbx,8), %rax
	movl	(%rax), %esi
	movq	(%r13), %rdx
	movq	$0, (%rsp)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	movl	-92(%rbp), %r8d                 ## 4-byte Reload
	leaq	-80(%rbp), %r9
	callq	_RelationGetBufferForTuple
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_BufferGetPage
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movq	(%r12,%rbx,8), %rdx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	callq	_RelationPutHeapTuple
	leal	1(%r14), %r12d
	cmpl	%r15d, %r12d
	jge	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
                                        ## kill: def $r15d killed $r15d killed $r15 def $r15
	subl	%r14d, %r15d
	decq	%r15
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=2
	incl	%r12d
	decq	%r15
	je	LBB0_15
LBB0_10:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %r14
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_PageGetHeapFreeSpace
	movq	%rax, %rbx
	movl	(%r14), %edi
	callq	_MAXALIGN
	addq	-120(%rbp), %rax                ## 8-byte Folded Reload
	cmpq	%rax, %rbx
	jl	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movq	%r13, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_RelationPutHeapTuple
	cmpb	$0, -64(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_log_heap_new_cid
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	%r12d, %r14d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r12d, %r14d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %r14                 ## 8-byte Reload
                                        ## kill: def $r14d killed $r14d killed $r14 def $r14
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_PageIsAllVisible
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%r15d, %edi
	callq	_PageClearAllVisible
	movq	%r13, %rdi
	callq	_BufferGetBlockNumber
	movq	-80(%rbp), %rdx
	movq	_VISIBILITYMAP_VALID_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_visibilitymap_clear
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	callq	_MarkBufferDirty
	cmpb	$0, -60(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	movq	%r13, %rdi
	callq	_UnlockReleaseBuffer
	movq	-80(%rbp), %rdi
	movq	_InvalidBuffer@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rdi
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_7 Depth=1
	callq	_ReleaseBuffer
	jmp	LBB0_23
LBB0_3:
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_CheckForSerializableConflictIn
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	%r12d, %ebx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_24:
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_CheckForSerializableConflictIn
	movl	%ebx, %edi
	callq	_IsCatalogRelation
	testq	%rax, %rax
	movq	-112(%rbp), %r13                ## 8-byte Reload
	je	LBB0_28
## %bb.25:
	testl	%r15d, %r15d
	jle	LBB0_28
## %bb.26:
	movl	%ebx, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx,8), %rsi
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_CacheInvalidateHeapTuple
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_27
LBB0_28:
	testl	%r15d, %r15d
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	jle	LBB0_36
## %bb.29:
	leaq	-1(%r13), %rcx
	movl	%r13d, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_31
## %bb.30:
	xorl	%ecx, %ecx
	jmp	LBB0_33
LBB0_31:
	andl	$-4, %r13d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rcx,8), %rdx
	movl	4(%rdx), %edx
	movq	(%rdi,%rcx,8), %rsi
	movl	%edx, (%rsi)
	movq	8(%r12,%rcx,8), %rdx
	movl	4(%rdx), %edx
	movq	8(%rdi,%rcx,8), %rsi
	movl	%edx, (%rsi)
	movq	16(%r12,%rcx,8), %rdx
	movl	4(%rdx), %edx
	movq	16(%rdi,%rcx,8), %rsi
	movl	%edx, (%rsi)
	movq	24(%r12,%rcx,8), %rdx
	movl	4(%rdx), %edx
	movq	24(%rdi,%rcx,8), %rsi
	movl	%edx, (%rsi)
	addq	$4, %rcx
	cmpq	%rcx, %r13
	jne	LBB0_32
LBB0_33:
	testq	%rax, %rax
	je	LBB0_36
## %bb.34:
	leaq	(%rdi,%rcx,8), %rdx
	leaq	(%r12,%rcx,8), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	movl	4(%rdi), %edi
	movq	(%rdx,%rsi,8), %rbx
	movl	%edi, (%rbx)
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_35
LBB0_36:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	callq	_pgstat_count_heap_insert
LBB0_20:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_heap_multi_insert.cold.1
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function heap_multi_insert.cold.1
_heap_multi_insert.cold.1:              ## @heap_multi_insert.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movq	(%rdi), %rdi
	addq	$4, %rdi
	callq	_ItemPointerGetOffsetNumber
	movl	%ebx, %edi
	callq	_PageGetMaxOffsetNumber
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_HEAP_INSERT_NO_LOGICAL,4,2     ## @HEAP_INSERT_NO_LOGICAL
	.comm	_HEAP_INSERT_SKIP_WAL,4,2       ## @HEAP_INSERT_SKIP_WAL
	.comm	_HEAP_DEFAULT_FILLFACTOR,4,2    ## @HEAP_DEFAULT_FILLFACTOR
	.comm	_InvalidBuffer,8,3              ## @InvalidBuffer
	.comm	_VISIBILITYMAP_VALID_BITS,4,2   ## @VISIBILITYMAP_VALID_BITS
	.comm	_XLOG_HEAP2_MULTI_INSERT,4,2    ## @XLOG_HEAP2_MULTI_INSERT
	.comm	_FirstOffsetNumber,4,2          ## @FirstOffsetNumber
	.comm	_SizeOfHeapMultiInsert,4,2      ## @SizeOfHeapMultiInsert
	.comm	_XLH_INSERT_ALL_VISIBLE_CLEARED,4,2 ## @XLH_INSERT_ALL_VISIBLE_CLEARED
	.comm	_SizeOfMultiInsertTuple,4,2     ## @SizeOfMultiInsertTuple
	.comm	_SizeofHeapTupleHeader,4,2      ## @SizeofHeapTupleHeader
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
	.comm	_XLH_INSERT_CONTAINS_NEW_TUPLE,4,2 ## @XLH_INSERT_CONTAINS_NEW_TUPLE
	.comm	_XLH_INSERT_LAST_IN_MULTI,4,2   ## @XLH_INSERT_LAST_IN_MULTI
	.comm	_XLOG_HEAP_INIT_PAGE,4,2        ## @XLOG_HEAP_INIT_PAGE
	.comm	_REGBUF_WILL_INIT,4,2           ## @REGBUF_WILL_INIT
	.comm	_REGBUF_KEEP_DATA,4,2           ## @REGBUF_KEEP_DATA
	.comm	_REGBUF_STANDARD,4,2            ## @REGBUF_STANDARD
	.comm	_XLOG_INCLUDE_ORIGIN,4,2        ## @XLOG_INCLUDE_ORIGIN
	.comm	_RM_HEAP2_ID,4,2                ## @RM_HEAP2_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_multi_insert              ; -- Begin function heap_multi_insert
	.p2align	2
_heap_multi_insert:                     ; @heap_multi_insert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	str	w5, [sp, #44]                   ; 4-byte Folded Spill
	mov	x27, x4
	mov	x26, x3
	mov	x24, x2
	mov	x23, x1
	mov	x20, x0
	bl	_GetCurrentTransactionId
	mov	x28, x0
	mov	x0, x20
	bl	_RelationIsLogicallyLogged
	mov	x0, x20
	bl	_RelationIsAccessibleInLogicalDecoding
	mov	x21, x0
Lloh0:
	adrp	x8, _HEAP_INSERT_NO_LOGICAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HEAP_INSERT_NO_LOGICAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w27
	cset	w0, eq
	bl	_AssertArg
Lloh3:
	adrp	x8, _HEAP_INSERT_SKIP_WAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HEAP_INSERT_SKIP_WAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w27
	b.eq	LBB0_2
; %bb.1:
	str	wzr, [sp, #48]                  ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_RelationNeedsWAL
	cmp	x0, #0
	cset	w8, ne
	str	w8, [sp, #48]                   ; 4-byte Folded Spill
LBB0_3:
Lloh6:
	adrp	x8, _HEAP_DEFAULT_FILLFACTOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HEAP_DEFAULT_FILLFACTOR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_RelationGetTargetPageFreeSpace
	mov	x25, x0
	lsl	w0, w24, #3
	bl	_palloc
	mov	x22, x0
Lloh9:
	adrp	x19, _InvalidBuffer@GOTPAGE
Lloh10:
	ldr	x19, [x19, _InvalidBuffer@GOTPAGEOFF]
	mov	w8, w24
	cmp	w24, #0
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	b.le	LBB0_22
; %bb.4:
	str	w21, [sp, #12]                  ; 4-byte Folded Spill
	mov	x19, #0
	lsl	x21, x8, #3
	str	w27, [sp, #52]                  ; 4-byte Folded Spill
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23, x19]
	mov	w1, #1
	mov	x2, #0
	bl	_ExecFetchSlotHeapTuple
	mov	x27, x0
	mov	x0, x20
	bl	_RelationGetRelid
	ldr	x8, [x23, x19]
	str	w0, [x8, #4]
	str	w0, [x27, #16]
	mov	x0, x20
	mov	x1, x27
	ldr	w27, [sp, #52]                  ; 4-byte Folded Reload
	mov	x2, x28
	mov	x3, x26
	mov	x4, x27
	bl	_heap_prepare_insert
	str	x0, [x22, x19]
	add	x19, x19, #8
	cmp	x21, x19
	b.ne	LBB0_5
; %bb.6:
Lloh11:
	adrp	x26, _InvalidBuffer@GOTPAGE
Lloh12:
	ldr	x26, [x26, _InvalidBuffer@GOTPAGEOFF]
	ldr	x2, [x26]
	mov	x0, x20
	mov	x1, #0
	bl	_CheckForSerializableConflictIn
	mov	w28, #0
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #0
	cset	w8, ne
	ldr	w9, [sp, #48]                   ; 4-byte Folded Reload
	and	w21, w9, w8
	str	w24, [sp, #28]                  ; 4-byte Folded Spill
	str	x23, [sp, #32]                  ; 8-byte Folded Spill
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	cmp	w28, w24
	ldr	w27, [sp, #52]                  ; 4-byte Folded Reload
	b.ge	LBB0_23
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [x26]
	str	x8, [sp, #56]
	bl	_CHECK_FOR_INTERRUPTS
	mov	w8, w28
	lsl	x19, x8, #3
	ldr	x8, [x22, x19]
	ldr	w1, [x8]
	ldr	x2, [x26]
	add	x5, sp, #56
	mov	x0, x20
	mov	x3, x27
	ldr	w4, [sp, #44]                   ; 4-byte Folded Reload
	mov	x6, #0
	bl	_RelationGetBufferForTuple
	mov	x26, x0
	bl	_BufferGetPage
	mov	x27, x0
	bl	_START_CRIT_SECTION
	ldr	x2, [x22, x19]
	mov	x0, x20
	mov	x1, x26
	mov	w3, #0
	bl	_RelationPutHeapTuple
	add	w23, w28, #1
	cmp	w23, w24
	b.ge	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	w8, w24, w28
	sub	x24, x8, #1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	w23, w23, #1
	subs	x24, x24, #1
	b.eq	LBB0_16
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x28, [x22, w23, uxtw #3]
	mov	x0, x27
	bl	_PageGetHeapFreeSpace
	mov	x19, x0
	ldr	w0, [x28]
	bl	_MAXALIGN
	add	x8, x0, x25
	cmp	x19, x8
	b.lt	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x20
	mov	x1, x26
	mov	x2, x28
	mov	w3, #0
	bl	_RelationPutHeapTuple
	cbz	w21, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x20
	mov	x1, x28
	bl	_log_heap_new_cid
	b	LBB0_10
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x28, x23
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x28, x23
	ldr	w24, [sp, #28]                  ; 4-byte Folded Reload
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w24, [sp, #28]                  ; 4-byte Folded Reload
	mov	x28, x24
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x27
	bl	_PageIsAllVisible
	ldr	x23, [sp, #32]                  ; 8-byte Folded Reload
	cbz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x27
	bl	_PageClearAllVisible
	mov	x0, x26
	bl	_BufferGetBlockNumber
	mov	x1, x0
	ldr	x2, [sp, #56]
Lloh13:
	adrp	x8, _VISIBILITYMAP_VALID_BITS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VISIBILITYMAP_VALID_BITS@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_visibilitymap_clear
LBB0_19:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x26
	bl	_MarkBufferDirty
	ldr	w8, [sp, #48]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_36
; %bb.20:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_END_CRIT_SECTION
	mov	x0, x26
	bl	_UnlockReleaseBuffer
	ldr	x0, [sp, #56]
Lloh16:
	adrp	x26, _InvalidBuffer@GOTPAGE
Lloh17:
	ldr	x26, [x26, _InvalidBuffer@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.21:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_ReleaseBuffer
	b	LBB0_7
LBB0_22:
	ldr	x2, [x19]
	mov	x0, x20
	mov	x1, #0
	bl	_CheckForSerializableConflictIn
	mov	x26, x19
LBB0_23:
	ldr	x2, [x26]
	mov	x0, x20
	mov	x1, #0
	bl	_CheckForSerializableConflictIn
	mov	x0, x20
	bl	_IsCatalogRelation
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
	cbz	x0, LBB0_27
; %bb.24:
	cmp	w24, #1
	b.lt	LBB0_27
; %bb.25:
	mov	x19, x25
	mov	x21, x22
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x21], #8
	mov	x0, x20
	mov	x2, #0
	bl	_CacheInvalidateHeapTuple
	subs	x19, x19, #1
	b.ne	LBB0_26
LBB0_27:
	cmp	w24, #1
	b.lt	LBB0_35
; %bb.28:
	cmp	w24, #4
	b.hs	LBB0_30
; %bb.29:
	mov	x8, #0
	b	LBB0_33
LBB0_30:
	and	x8, x25, #0xfffffffc
	add	x9, x23, #16
	add	x10, x22, #16
	mov	x11, x8
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldp	x12, x13, [x10, #-16]
	ldp	x14, x15, [x10], #32
	ldr	w12, [x12, #4]
	ldr	w13, [x13, #4]
	ldr	w14, [x14, #4]
	ldr	w15, [x15, #4]
	ldp	x16, x17, [x9, #-16]
	ldp	x0, x1, [x9], #32
	str	w12, [x16]
	str	w13, [x17]
	str	w14, [x0]
	str	w15, [x1]
	subs	x11, x11, #4
	b.ne	LBB0_31
; %bb.32:
	cmp	x8, x25
	b.eq	LBB0_35
LBB0_33:
	lsl	x10, x8, #3
	add	x9, x23, x10
	add	x10, x22, x10
	sub	x8, x25, x8
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	ldr	w11, [x11, #4]
	ldr	x12, [x9], #8
	str	w11, [x12]
	subs	x8, x8, #1
	b.ne	LBB0_34
LBB0_35:
	mov	x0, x20
	mov	x1, x24
	bl	_pgstat_count_heap_insert
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_36:
	mov	x0, x22
	mov	x1, x27
	bl	_heap_multi_insert.cold.1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function heap_multi_insert.cold.1
_heap_multi_insert.cold.1:              ; @heap_multi_insert.cold.1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x8, [x0]
	add	x0, x8, #4
	bl	_ItemPointerGetOffsetNumber
	mov	x0, x19
	bl	_PageGetMaxOffsetNumber
	brk	#0x1
	.cfi_endproc
                                        ; -- End function
	.comm	_HEAP_INSERT_NO_LOGICAL,4,2     ; @HEAP_INSERT_NO_LOGICAL
	.comm	_HEAP_INSERT_SKIP_WAL,4,2       ; @HEAP_INSERT_SKIP_WAL
	.comm	_HEAP_DEFAULT_FILLFACTOR,4,2    ; @HEAP_DEFAULT_FILLFACTOR
	.comm	_InvalidBuffer,8,3              ; @InvalidBuffer
	.comm	_VISIBILITYMAP_VALID_BITS,4,2   ; @VISIBILITYMAP_VALID_BITS
	.comm	_XLOG_HEAP2_MULTI_INSERT,4,2    ; @XLOG_HEAP2_MULTI_INSERT
	.comm	_FirstOffsetNumber,4,2          ; @FirstOffsetNumber
	.comm	_SizeOfHeapMultiInsert,4,2      ; @SizeOfHeapMultiInsert
	.comm	_XLH_INSERT_ALL_VISIBLE_CLEARED,4,2 ; @XLH_INSERT_ALL_VISIBLE_CLEARED
	.comm	_SizeOfMultiInsertTuple,4,2     ; @SizeOfMultiInsertTuple
	.comm	_SizeofHeapTupleHeader,4,2      ; @SizeofHeapTupleHeader
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
	.comm	_XLH_INSERT_CONTAINS_NEW_TUPLE,4,2 ; @XLH_INSERT_CONTAINS_NEW_TUPLE
	.comm	_XLH_INSERT_LAST_IN_MULTI,4,2   ; @XLH_INSERT_LAST_IN_MULTI
	.comm	_XLOG_HEAP_INIT_PAGE,4,2        ; @XLOG_HEAP_INIT_PAGE
	.comm	_REGBUF_WILL_INIT,4,2           ; @REGBUF_WILL_INIT
	.comm	_REGBUF_KEEP_DATA,4,2           ; @REGBUF_KEEP_DATA
	.comm	_REGBUF_STANDARD,4,2            ; @REGBUF_STANDARD
	.comm	_XLOG_INCLUDE_ORIGIN,4,2        ; @XLOG_INCLUDE_ORIGIN
	.comm	_RM_HEAP2_ID,4,2                ; @RM_HEAP2_ID
.subsections_via_symbols
