	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function log_heap_update
_log_heap_update:                       ## @log_heap_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	$232, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	movq	%r8, %r12
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	%rdx, -160(%rbp)                ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_BufferGetPage
	movl	%eax, -132(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_RelationIsLogicallyLogged
	movl	%eax, %r13d
	movq	%rbx, -232(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_RelationNeedsWAL
	movl	%eax, %edi
	callq	_Assert
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	_HeapTupleIsHeapOnly
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_XLOG_HEAP_UPDATE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_XLOG_HEAP_HOT_UPDATE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	16(%rbp), %ebx
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	%r14, -152(%rbp)                ## 8-byte Spill
	cmpq	-160(%rbp), %r14                ## 8-byte Folded Reload
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	movq	-104(%rbp), %r12                ## 8-byte Reload
	jne	LBB0_7
## %bb.4:
	movl	$0, %r14d
	testl	%r13d, %r13d
	jne	LBB0_21
## %bb.5:
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	callq	_XLogCheckBufferNeedsBackup
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	xorl	%r15d, %r15d
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_21
LBB0_8:
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movq	8(%rcx), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movslq	(%rax), %r15
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rdx
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movslq	(%rdx), %rbx
	movslq	(%rcx), %rcx
	movq	%rcx, -224(%rbp)                ## 8-byte Spill
	movl	%ecx, %r13d
	subl	%r15d, %r13d
	movslq	(%rax), %rax
	movq	%rax, -216(%rbp)                ## 8-byte Spill
	movl	%eax, %r12d
	subl	%ebx, %r12d
	movq	$0, -88(%rbp)
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_Min
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	addq	-120(%rbp), %rbx                ## 8-byte Folded Reload
	addq	-128(%rbp), %r15                ## 8-byte Folded Reload
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%r14), %eax
	cmpb	(%r15,%r14), %al
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%r14
	movq	%r14, -88(%rbp)
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_Min
	cmpq	%rax, %r14
	jb	LBB0_10
LBB0_12:
	cmpq	$2, %r14
	ja	LBB0_14
LBB0_13:
	movq	$0, -88(%rbp)
	xorl	%r14d, %r14d
LBB0_14:
	movq	$0, -80(%rbp)
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_Min
	cmpq	%r14, %rax
	je	LBB0_19
## %bb.15:
	movq	-224(%rbp), %rax                ## 8-byte Reload
	addq	%rax, -128(%rbp)                ## 8-byte Folded Spill
	movq	-216(%rbp), %rax                ## 8-byte Reload
	addq	%rax, -120(%rbp)                ## 8-byte Folded Spill
	movq	$-1, %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movzbl	(%rax,%rbx), %eax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	cmpb	(%rcx,%rbx), %al
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%r15
	movq	%r15, -80(%rbp)
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_Min
	subq	%r14, %rax
	decq	%rbx
	cmpq	%rax, %r15
	jb	LBB0_16
LBB0_18:
	cmpq	$2, %r15
	ja	LBB0_20
LBB0_19:
	movq	$0, -80(%rbp)
	xorl	%r15d, %r15d
LBB0_20:
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	movl	16(%rbp), %ebx
LBB0_21:
	movl	24(%rbp), %ecx
	movl	$0, -168(%rbp)
	testl	%ebx, %ebx
	je	LBB0_32
## %bb.22:
	movq	_XLH_UPDATE_OLD_ALL_VISIBLE_CLEARED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -168(%rbp)
	testl	%ecx, %ecx
	je	LBB0_24
LBB0_23:
	movq	_XLH_UPDATE_NEW_ALL_VISIBLE_CLEARED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -168(%rbp)
LBB0_24:
	testq	%r14, %r14
	je	LBB0_26
## %bb.25:
	movq	_XLH_UPDATE_PREFIX_FROM_OLD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -168(%rbp)
LBB0_26:
	testq	%r15, %r15
	je	LBB0_28
## %bb.27:
	movq	_XLH_UPDATE_SUFFIX_FROM_OLD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -168(%rbp)
LBB0_28:
	testl	%r13d, %r13d
	je	LBB0_35
## %bb.29:
	movq	_XLH_UPDATE_CONTAINS_NEW_TUPLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -168(%rbp)
	testq	%r12, %r12
	je	LBB0_35
## %bb.30:
	movq	-232(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	_REPLICA_IDENTITY_FULL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_33
## %bb.31:
	movq	_XLH_UPDATE_CONTAINS_OLD_TUPLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_34
LBB0_32:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_23
	jmp	LBB0_24
LBB0_33:
	movq	_XLH_UPDATE_CONTAINS_OLD_KEY@GOTPCREL(%rip), %rcx
LBB0_34:
	orl	(%rcx), %eax
	movl	%eax, -168(%rbp)
LBB0_35:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leaq	16(%rax), %r13
	movq	%r13, %rdi
	callq	_ItemPointerGetOffsetNumber
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rbx
	movb	$1, %r12b
	cmpq	(%rbx), %rax
	jne	LBB0_38
## %bb.36:
	movl	-132(%rbp), %edi                ## 4-byte Reload
	callq	_PageGetMaxOffsetNumber
	cmpq	(%rbx), %rax
	jne	LBB0_38
## %bb.37:
	movq	_XLOG_HEAP_INIT_PAGE@GOTPCREL(%rip), %rax
	movl	-92(%rbp), %ecx                 ## 4-byte Reload
	orl	(%rax), %ecx
	movl	%ecx, -92(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
LBB0_38:
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	leaq	16(%rbx), %rdi
	callq	_ItemPointerGetOffsetNumber
	movq	%rax, -176(%rbp)
	movq	8(%rbx), %rdi
	callq	_HeapTupleHeaderGetRawXmax
	movq	%rax, -184(%rbp)
	movq	8(%rbx), %rax
	movl	4(%rax), %edi
	movl	8(%rax), %esi
	callq	_compute_infobits
	movl	%eax, -192(%rbp)
	movq	%r13, %rdi
	callq	_ItemPointerGetOffsetNumber
	movq	%rax, -200(%rbp)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rdi
	callq	_HeapTupleHeaderGetRawXmax
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %r13
	movl	$0, %edx
	testb	%r12b, %r12b
	jne	LBB0_40
## %bb.39:
	movq	_REGBUF_WILL_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_40:
	orl	(%r13), %edx
	movq	%rax, -208(%rbp)
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %eax
	testl	%ecx, %ecx
	movq	-104(%rbp), %r12                ## 8-byte Reload
	je	LBB0_42
## %bb.41:
	movq	_REGBUF_KEEP_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_42:
	orl	%eax, %edx
	xorl	%edi, %edi
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_XLogRegisterBuffer
	movq	-152(%rbp), %rsi                ## 8-byte Reload
	cmpq	%rbx, %rsi
	je	LBB0_44
## %bb.43:
	movl	(%r13), %edx
	movl	$1, %edi
	callq	_XLogRegisterBuffer
LBB0_44:
	movq	_SizeOfHeapUpdate@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-208(%rbp), %rdi
	callq	_XLogRegisterData
	movq	%r14, %rax
	orq	%r15, %rax
	je	LBB0_48
## %bb.45:
	testq	%r14, %r14
	je	LBB0_49
## %bb.46:
	testq	%r15, %r15
	je	LBB0_49
## %bb.47:
	movq	%r14, -64(%rbp)
	movq	%r15, -56(%rbp)
	leaq	-64(%rbp), %rsi
	movl	$16, %edx
	xorl	%edi, %edi
	callq	_XLogRegisterBufData
	jmp	LBB0_52
LBB0_48:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_52
LBB0_49:
	testq	%r14, %r14
	je	LBB0_51
## %bb.50:
	leaq	-88(%rbp), %rsi
	movl	$8, %edx
	xorl	%edi, %edi
	callq	_XLogRegisterBufData
	movq	-88(%rbp), %r14
	jmp	LBB0_52
LBB0_51:
	xorl	%r14d, %r14d
	leaq	-80(%rbp), %rsi
	movl	$8, %edx
	xorl	%edi, %edi
	callq	_XLogRegisterBufData
	movq	-80(%rbp), %r15
LBB0_52:
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movq	8(%rdx), %rax
	movl	8(%rax), %ecx
	movl	%ecx, -252(%rbp)
	movl	4(%rax), %ecx
	movl	%ecx, -256(%rbp)
	movslq	(%rax), %rax
	movq	%rax, -264(%rbp)
	movq	_SizeofHeapTupleHeader@GOTPCREL(%rip), %r13
	addq	(%r13), %r14
	addq	%r15, %r14
	movq	%rdx, %r15
	movslq	(%rdx), %rax
	xorl	%edi, %edi
	cmpq	%rax, %r14
	setbe	%dil
	callq	_Assert
	movq	_SizeOfHeapHeader@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	leaq	-264(%rbp), %rsi
	xorl	%edi, %edi
	callq	_XLogRegisterBufData
	movq	-88(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_56
## %bb.53:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movslq	%edi, %rsi
	movq	(%r13), %rbx
	movq	%rsi, %rdx
	subq	%rbx, %rdx
	jle	LBB0_55
## %bb.54:
	addq	%rbx, %rax
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_XLogRegisterBufData
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movq	-88(%rbp), %rcx
	movslq	%edi, %rsi
LBB0_55:
	addq	%rax, %rsi
	addq	%rcx, %rsi
	movslq	(%r15), %rdx
	movslq	%edi, %rax
	subq	%rax, %rdx
	addq	-80(%rbp), %rcx
	subq	%rcx, %rdx
	jmp	LBB0_57
LBB0_56:
	movq	(%r13), %rax
	movq	8(%r15), %rsi
	addq	%rax, %rsi
	movslq	(%r15), %rdx
	addq	-80(%rbp), %rax
	subq	%rax, %rdx
LBB0_57:
	xorl	%edi, %edi
	callq	_XLogRegisterBufData
	testq	%r12, %r12
	je	LBB0_60
## %bb.58:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_60
## %bb.59:
	movq	8(%r12), %rax
	movl	8(%rax), %ecx
	movl	%ecx, -236(%rbp)
	movl	4(%rax), %ecx
	movl	%ecx, -240(%rbp)
	movslq	(%rax), %rax
	movq	%rax, -248(%rbp)
	movq	(%r14), %rsi
	leaq	-248(%rbp), %rdi
	callq	_XLogRegisterData
	movq	(%r13), %rax
	movq	8(%r12), %rdi
	addq	%rax, %rdi
	movslq	(%r12), %rsi
	subq	%rax, %rsi
	callq	_XLogRegisterData
LBB0_60:
	movq	_XLOG_INCLUDE_ORIGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_XLogSetRecordFlags
	movq	_RM_HEAP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-92(%rbp), %esi                 ## 4-byte Reload
	callq	_XLogInsert
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_62
## %bb.61:
	addq	$232, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_62:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_XLOG_HEAP_HOT_UPDATE,4,2       ## @XLOG_HEAP_HOT_UPDATE
	.comm	_XLOG_HEAP_UPDATE,4,2           ## @XLOG_HEAP_UPDATE
	.comm	_XLH_UPDATE_OLD_ALL_VISIBLE_CLEARED,4,2 ## @XLH_UPDATE_OLD_ALL_VISIBLE_CLEARED
	.comm	_XLH_UPDATE_NEW_ALL_VISIBLE_CLEARED,4,2 ## @XLH_UPDATE_NEW_ALL_VISIBLE_CLEARED
	.comm	_XLH_UPDATE_PREFIX_FROM_OLD,4,2 ## @XLH_UPDATE_PREFIX_FROM_OLD
	.comm	_XLH_UPDATE_SUFFIX_FROM_OLD,4,2 ## @XLH_UPDATE_SUFFIX_FROM_OLD
	.comm	_XLH_UPDATE_CONTAINS_NEW_TUPLE,4,2 ## @XLH_UPDATE_CONTAINS_NEW_TUPLE
	.comm	_REPLICA_IDENTITY_FULL,8,3      ## @REPLICA_IDENTITY_FULL
	.comm	_XLH_UPDATE_CONTAINS_OLD_TUPLE,4,2 ## @XLH_UPDATE_CONTAINS_OLD_TUPLE
	.comm	_XLH_UPDATE_CONTAINS_OLD_KEY,4,2 ## @XLH_UPDATE_CONTAINS_OLD_KEY
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.comm	_XLOG_HEAP_INIT_PAGE,4,2        ## @XLOG_HEAP_INIT_PAGE
	.comm	_REGBUF_STANDARD,4,2            ## @REGBUF_STANDARD
	.comm	_REGBUF_WILL_INIT,4,2           ## @REGBUF_WILL_INIT
	.comm	_REGBUF_KEEP_DATA,4,2           ## @REGBUF_KEEP_DATA
	.comm	_SizeOfHeapUpdate,8,3           ## @SizeOfHeapUpdate
	.comm	_SizeofHeapTupleHeader,8,3      ## @SizeofHeapTupleHeader
	.comm	_SizeOfHeapHeader,8,3           ## @SizeOfHeapHeader
	.comm	_XLOG_INCLUDE_ORIGIN,4,2        ## @XLOG_INCLUDE_ORIGIN
	.comm	_RM_HEAP_ID,4,2                 ## @RM_HEAP_ID
	.no_dead_strip	_log_heap_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function log_heap_update
_log_heap_update:                       ; @log_heap_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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
	stp	w6, w7, [sp, #56]               ; 8-byte Folded Spill
	mov	x23, x5
	mov	x22, x4
	mov	x25, x3
	mov	x24, x2
	mov	x20, x1
	mov	x27, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	stp	xzr, xzr, [sp, #80]
	mov	x0, x2
	bl	_BufferGetPage
	str	w0, [sp, #52]                   ; 4-byte Folded Spill
	mov	x0, x27
	bl	_RelationIsLogicallyLogged
	mov	x19, x0
	mov	x0, x27
	bl	_RelationNeedsWAL
	bl	_Assert
	bl	_XLogBeginInsert
	mov	x0, x22
	bl	_HeapTupleIsHeapOnly
	mov	x28, #0
Lloh3:
	adrp	x8, _XLOG_HEAP_UPDATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XLOG_HEAP_UPDATE@GOTPAGEOFF]
Lloh5:
	adrp	x9, _XLOG_HEAP_HOT_UPDATE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _XLOG_HEAP_HOT_UPDATE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w26, [x8]
	cmp	x20, x24
	str	w19, [sp, #76]                  ; 4-byte Folded Spill
	str	x20, [sp, #64]                  ; 8-byte Folded Spill
	mov	x21, x28
	b.ne	LBB0_17
; %bb.1:
	cbnz	w19, LBB0_17
; %bb.2:
	mov	x0, x20
	bl	_XLogCheckBufferNeedsBackup
	cbz	w0, LBB0_4
; %bb.3:
	mov	x28, #0
	mov	x21, #0
	b	LBB0_17
LBB0_4:
	str	w26, [sp, #28]                  ; 4-byte Folded Spill
	str	x23, [sp, #32]                  ; 8-byte Folded Spill
	ldr	x28, [x25, #8]
	ldrsw	x23, [x28]
	ldr	x8, [x22, #8]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	ldrsw	x20, [x8]
	ldrsw	x8, [x25]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	sub	w26, w8, w23
	ldrsw	x8, [x22]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	sub	w19, w8, w20
	str	xzr, [sp, #88]
	mov	x0, x26
	mov	x1, x19
	bl	_Min
	cbz	x0, LBB0_9
; %bb.5:
	mov	x21, #0
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x20, x8, x20
	add	x23, x28, x23
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20, x21]
	ldrb	w9, [x23, x21]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	str	x21, [sp, #88]
	mov	x0, x26
	mov	x1, x19
	bl	_Min
	cmp	x21, x0
	b.lo	LBB0_6
LBB0_8:
	cmp	x21, #2
	b.hi	LBB0_10
LBB0_9:
	mov	x21, #0
	str	xzr, [sp, #88]
LBB0_10:
	str	xzr, [sp, #80]
	mov	x0, x26
	mov	x1, x19
	bl	_Min
	cmp	x0, x21
	b.eq	LBB0_15
; %bb.11:
	mov	x8, x28
	mov	x28, #0
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x8, x9, x8
	sub	x20, x8, #1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x9, x8
	sub	x23, x8, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x23]
	ldrb	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x28, x28, #1
	str	x28, [sp, #80]
	mov	x0, x26
	mov	x1, x19
	bl	_Min
	sub	x20, x20, #1
	sub	x23, x23, #1
	sub	x8, x0, x21
	cmp	x28, x8
	b.lo	LBB0_12
LBB0_14:
	cmp	x28, #2
	b.hi	LBB0_16
LBB0_15:
	mov	x28, #0
	str	xzr, [sp, #80]
LBB0_16:
	ldr	x23, [sp, #32]                  ; 8-byte Folded Reload
	ldr	w26, [sp, #28]                  ; 4-byte Folded Reload
	ldr	w19, [sp, #76]                  ; 4-byte Folded Reload
LBB0_17:
	str	wzr, [sp, #168]
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_19
; %bb.18:
Lloh7:
	adrp	x8, _XLH_UPDATE_OLD_ALL_VISIBLE_CLEARED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XLH_UPDATE_OLD_ALL_VISIBLE_CLEARED@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [sp, #168]
LBB0_19:
	ldr	w9, [sp, #60]                   ; 4-byte Folded Reload
	cbz	w9, LBB0_21
; %bb.20:
Lloh10:
	adrp	x9, _XLH_UPDATE_NEW_ALL_VISIBLE_CLEARED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _XLH_UPDATE_NEW_ALL_VISIBLE_CLEARED@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #168]
LBB0_21:
	cbz	x21, LBB0_23
; %bb.22:
Lloh13:
	adrp	x9, _XLH_UPDATE_PREFIX_FROM_OLD@GOTPAGE
Lloh14:
	ldr	x9, [x9, _XLH_UPDATE_PREFIX_FROM_OLD@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #168]
LBB0_23:
	cbz	x28, LBB0_25
; %bb.24:
Lloh16:
	adrp	x9, _XLH_UPDATE_SUFFIX_FROM_OLD@GOTPAGE
Lloh17:
	ldr	x9, [x9, _XLH_UPDATE_SUFFIX_FROM_OLD@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #168]
LBB0_25:
	cbz	w19, LBB0_28
; %bb.26:
Lloh19:
	adrp	x9, _XLH_UPDATE_CONTAINS_NEW_TUPLE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _XLH_UPDATE_CONTAINS_NEW_TUPLE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #168]
	cbz	x23, LBB0_28
; %bb.27:
	ldr	x9, [x27]
	ldr	x9, [x9]
Lloh22:
	adrp	x10, _REPLICA_IDENTITY_FULL@GOTPAGE
Lloh23:
	ldr	x10, [x10, _REPLICA_IDENTITY_FULL@GOTPAGEOFF]
Lloh24:
	adrp	x11, _XLH_UPDATE_CONTAINS_OLD_TUPLE@GOTPAGE
Lloh25:
	ldr	x11, [x11, _XLH_UPDATE_CONTAINS_OLD_TUPLE@GOTPAGEOFF]
Lloh26:
	adrp	x12, _XLH_UPDATE_CONTAINS_OLD_KEY@GOTPAGE
Lloh27:
	ldr	x12, [x12, _XLH_UPDATE_CONTAINS_OLD_KEY@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
	cmp	x9, x10
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #168]
LBB0_28:
	add	x19, x22, #16
	mov	x0, x19
	bl	_ItemPointerGetOffsetNumber
Lloh29:
	adrp	x20, _FirstOffsetNumber@GOTPAGE
Lloh30:
	ldr	x20, [x20, _FirstOffsetNumber@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_31
; %bb.29:
	ldr	w0, [sp, #52]                   ; 4-byte Folded Reload
	bl	_PageGetMaxOffsetNumber
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_31
; %bb.30:
	mov	w20, #0
Lloh31:
	adrp	x8, _XLOG_HEAP_INIT_PAGE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _XLOG_HEAP_INIT_PAGE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	orr	w26, w8, w26
	b	LBB0_32
LBB0_31:
	mov	w20, #1
LBB0_32:
	add	x0, x25, #16
	bl	_ItemPointerGetOffsetNumber
	str	x0, [sp, #160]
	ldr	x0, [x25, #8]
	bl	_HeapTupleHeaderGetRawXmax
	str	x0, [sp, #152]
	ldr	x8, [x25, #8]
	ldp	w0, w1, [x8, #4]
	bl	_compute_infobits
	str	w0, [sp, #144]
	mov	x0, x19
	bl	_ItemPointerGetOffsetNumber
	str	x0, [sp, #136]
	ldr	x0, [x22, #8]
	bl	_HeapTupleHeaderGetRawXmax
	str	x0, [sp, #128]
Lloh34:
	adrp	x19, _REGBUF_STANDARD@GOTPAGE
Lloh35:
	ldr	x19, [x19, _REGBUF_STANDARD@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh36:
	adrp	x9, _REGBUF_WILL_INIT@GOTPAGE
Lloh37:
	ldr	x9, [x9, _REGBUF_WILL_INIT@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	cmp	w20, #0
	csel	w9, wzr, w9, ne
	orr	w8, w9, w8
Lloh39:
	adrp	x9, _REGBUF_KEEP_DATA@GOTPAGE
Lloh40:
	ldr	x9, [x9, _REGBUF_KEEP_DATA@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	ldr	w10, [sp, #76]                  ; 4-byte Folded Reload
	cmp	w10, #0
	csel	w9, w9, wzr, ne
	orr	w2, w8, w9
	mov	w0, #0
	mov	x1, x24
	bl	_XLogRegisterBuffer
	ldr	x1, [sp, #64]                   ; 8-byte Folded Reload
	cmp	x1, x24
	b.eq	LBB0_34
; %bb.33:
	ldr	w2, [x19]
	mov	w0, #1
	bl	_XLogRegisterBuffer
LBB0_34:
Lloh42:
	adrp	x8, _SizeOfHeapUpdate@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SizeOfHeapUpdate@GOTPAGEOFF]
Lloh44:
	ldr	x1, [x8]
	add	x0, sp, #128
	bl	_XLogRegisterData
	orr	x8, x21, x28
	cbz	x8, LBB0_38
; %bb.35:
	cbz	x21, LBB0_39
; %bb.36:
	cbz	x28, LBB0_39
; %bb.37:
	stp	x21, x28, [x29, #-112]
	sub	x1, x29, #112
	mov	w0, #0
	mov	w2, #16
	bl	_XLogRegisterBufData
	b	LBB0_42
LBB0_38:
	mov	x28, #0
	mov	x21, #0
	b	LBB0_42
LBB0_39:
	cbz	x21, LBB0_41
; %bb.40:
	add	x1, sp, #88
	mov	w0, #0
	mov	w2, #8
	bl	_XLogRegisterBufData
	ldr	x21, [sp, #88]
	b	LBB0_42
LBB0_41:
	add	x1, sp, #80
	mov	w0, #0
	mov	w2, #8
	bl	_XLogRegisterBufData
	ldr	x28, [sp, #80]
LBB0_42:
	ldr	x8, [x22, #8]
	ldur	d0, [x8, #4]
	str	d0, [sp, #120]
	ldrsw	x8, [x8]
	str	x8, [sp, #112]
Lloh45:
	adrp	x19, _SizeofHeapTupleHeader@GOTPAGE
Lloh46:
	ldr	x19, [x19, _SizeofHeapTupleHeader@GOTPAGEOFF]
	ldr	x8, [x19]
	add	x8, x21, x8
	add	x8, x8, x28
	ldrsw	x9, [x22]
	cmp	x8, x9
	cset	w0, ls
	bl	_Assert
Lloh47:
	adrp	x20, _SizeOfHeapHeader@GOTPAGE
Lloh48:
	ldr	x20, [x20, _SizeOfHeapHeader@GOTPAGEOFF]
	ldr	x2, [x20]
	add	x1, sp, #112
	mov	w0, #0
	bl	_XLogRegisterBufData
	ldr	x8, [sp, #88]
	cbz	x8, LBB0_46
; %bb.43:
	ldr	x9, [x22, #8]
	ldr	w10, [x9]
	sxtw	x11, w10
	ldr	x12, [x19]
	sub	x2, x11, x12
	cmp	x2, #1
	b.lt	LBB0_45
; %bb.44:
	add	x1, x9, x12
	mov	w0, #0
	bl	_XLogRegisterBufData
	ldr	x9, [x22, #8]
	ldr	w10, [x9]
	ldr	x8, [sp, #88]
	sxtw	x11, w10
                                        ; kill: def $w10 killed $w10 killed $x10 def $x10
LBB0_45:
	add	x9, x9, x11
	add	x1, x9, x8
	ldrsw	x9, [x22]
	sub	x9, x9, w10, sxtw
	ldr	x10, [sp, #80]
	add	x8, x10, x8
	sub	x2, x9, x8
	b	LBB0_47
LBB0_46:
	ldr	x8, [x22, #8]
	ldr	x9, [x19]
	add	x1, x8, x9
	ldrsw	x8, [x22]
	ldr	x10, [sp, #80]
	add	x9, x10, x9
	sub	x2, x8, x9
LBB0_47:
	mov	w0, #0
	bl	_XLogRegisterBufData
	cbz	x23, LBB0_50
; %bb.48:
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_50
; %bb.49:
	ldr	x8, [x23, #8]
	ldur	d0, [x8, #4]
	str	d0, [sp, #104]
	ldrsw	x8, [x8]
	str	x8, [sp, #96]
	ldr	x1, [x20]
	add	x0, sp, #96
	bl	_XLogRegisterData
	ldr	x8, [x23, #8]
	ldr	x9, [x19]
	add	x0, x8, x9
	ldrsw	x8, [x23]
	sub	x1, x8, x9
	bl	_XLogRegisterData
LBB0_50:
Lloh49:
	adrp	x8, _XLOG_INCLUDE_ORIGIN@GOTPAGE
Lloh50:
	ldr	x8, [x8, _XLOG_INCLUDE_ORIGIN@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	bl	_XLogSetRecordFlags
Lloh52:
	adrp	x8, _RM_HEAP_ID@GOTPAGE
Lloh53:
	ldr	x8, [x8, _RM_HEAP_ID@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
	mov	x1, x26
	bl	_XLogInsert
	ldur	x8, [x29, #-96]
Lloh55:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh56:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_52
; %bb.51:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_52:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_XLOG_HEAP_HOT_UPDATE,4,2       ; @XLOG_HEAP_HOT_UPDATE
	.comm	_XLOG_HEAP_UPDATE,4,2           ; @XLOG_HEAP_UPDATE
	.comm	_XLH_UPDATE_OLD_ALL_VISIBLE_CLEARED,4,2 ; @XLH_UPDATE_OLD_ALL_VISIBLE_CLEARED
	.comm	_XLH_UPDATE_NEW_ALL_VISIBLE_CLEARED,4,2 ; @XLH_UPDATE_NEW_ALL_VISIBLE_CLEARED
	.comm	_XLH_UPDATE_PREFIX_FROM_OLD,4,2 ; @XLH_UPDATE_PREFIX_FROM_OLD
	.comm	_XLH_UPDATE_SUFFIX_FROM_OLD,4,2 ; @XLH_UPDATE_SUFFIX_FROM_OLD
	.comm	_XLH_UPDATE_CONTAINS_NEW_TUPLE,4,2 ; @XLH_UPDATE_CONTAINS_NEW_TUPLE
	.comm	_REPLICA_IDENTITY_FULL,8,3      ; @REPLICA_IDENTITY_FULL
	.comm	_XLH_UPDATE_CONTAINS_OLD_TUPLE,4,2 ; @XLH_UPDATE_CONTAINS_OLD_TUPLE
	.comm	_XLH_UPDATE_CONTAINS_OLD_KEY,4,2 ; @XLH_UPDATE_CONTAINS_OLD_KEY
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.comm	_XLOG_HEAP_INIT_PAGE,4,2        ; @XLOG_HEAP_INIT_PAGE
	.comm	_REGBUF_STANDARD,4,2            ; @REGBUF_STANDARD
	.comm	_REGBUF_WILL_INIT,4,2           ; @REGBUF_WILL_INIT
	.comm	_REGBUF_KEEP_DATA,4,2           ; @REGBUF_KEEP_DATA
	.comm	_SizeOfHeapUpdate,8,3           ; @SizeOfHeapUpdate
	.comm	_SizeofHeapTupleHeader,8,3      ; @SizeofHeapTupleHeader
	.comm	_SizeOfHeapHeader,8,3           ; @SizeOfHeapHeader
	.comm	_XLOG_INCLUDE_ORIGIN,4,2        ; @XLOG_INCLUDE_ORIGIN
	.comm	_RM_HEAP_ID,4,2                 ; @RM_HEAP_ID
	.no_dead_strip	_log_heap_update
.subsections_via_symbols
