	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_inplace_update            ## -- Begin function heap_inplace_update
	.p2align	4, 0x90
_heap_inplace_update:                   ## @heap_inplace_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_IsInParallelMode
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movq	%rbx, %r14
	movl	(%rax), %ebx
	movq	_ERRCODE_INVALID_TRANSACTION_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movq	%r14, %rbx
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_ItemPointerGetBlockNumber
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ReadBuffer
	movl	%eax, %r12d
	movq	_BUFFER_LOCK_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_LockBuffer
	movl	%r12d, %edi
	callq	_BufferGetPage
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ItemPointerGetOffsetNumber
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_PageGetMaxOffsetNumber
	cmpq	%rbx, %rax
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	jge	LBB0_4
## %bb.3:
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_4:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_PageGetItemId
	movq	%rax, %r15
LBB0_5:
	movq	%r13, %rdi
	callq	_PageGetMaxOffsetNumber
	cmpq	%rbx, %rax
	jl	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_ItemIdIsNormal
	testl	%eax, %eax
	jne	LBB0_8
LBB0_7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_8:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_PageGetItem
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_ItemIdGetLength
	movq	(%r14), %rcx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %r15
	movq	16(%rbx), %rdx
	movq	(%rdx), %rdx
	subq	%rdx, %r15
	cmpq	%rdx, %rcx
	jne	LBB0_10
## %bb.9:
	subq	%rcx, %rax
	cmpq	%r15, %rax
	je	LBB0_11
LBB0_10:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_elog
LBB0_11:
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movq	(%r14), %rdi
	addq	%r14, %rdi
	movq	16(%rbx), %rsi
	addq	(%rsi), %rsi
	movq	%r15, %rdx
	callq	_memcpy
	movl	%r12d, %edi
	callq	_MarkBufferDirty
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ItemPointerGetOffsetNumber
	movq	%rax, -72(%rbp)
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	movq	_SizeOfHeapInplace@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdi
	callq	_XLogRegisterData
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	%r12d, %esi
	callq	_XLogRegisterBuffer
	movq	(%r14), %rsi
	addq	%r14, %rsi
	xorl	%edi, %edi
	movq	%r15, %rdx
	callq	_XLogRegisterBufData
	movq	_RM_HEAP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XLOG_HEAP_INPLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogInsert
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_PageSetLSN
LBB0_13:
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	movl	%r12d, %edi
	callq	_UnlockReleaseBuffer
	xorl	%eax, %eax
	callq	_IsBootstrapProcessingMode
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_CacheInvalidateHeapTuple
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_TRANSACTION_STATE,4,2 ## @ERRCODE_INVALID_TRANSACTION_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot update tuples during a parallel operation"

	.comm	_BUFFER_LOCK_EXCLUSIVE,4,2      ## @BUFFER_LOCK_EXCLUSIVE
L_.str.1:                               ## @.str.1
	.asciz	"invalid lp"

L_.str.2:                               ## @.str.2
	.asciz	"wrong tuple length"

	.comm	_SizeOfHeapInplace,4,2          ## @SizeOfHeapInplace
	.comm	_REGBUF_STANDARD,4,2            ## @REGBUF_STANDARD
	.comm	_RM_HEAP_ID,4,2                 ## @RM_HEAP_ID
	.comm	_XLOG_HEAP_INPLACE,4,2          ## @XLOG_HEAP_INPLACE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_inplace_update            ; -- Begin function heap_inplace_update
	.p2align	2
_heap_inplace_update:                   ; @heap_inplace_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_IsInParallelMode
Lloh0:
	adrp	x26, _ERROR@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ERROR@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w21, [x26]
Lloh2:
	adrp	x8, _ERRCODE_INVALID_TRANSACTION_STATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERRCODE_INVALID_TRANSACTION_STATE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_errcode
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_2:
	add	x23, x19, #8
	mov	x0, x23
	bl	_ItemPointerGetBlockNumber
	mov	x1, x0
	mov	x0, x20
	bl	_ReadBuffer
	mov	x21, x0
Lloh7:
	adrp	x8, _BUFFER_LOCK_EXCLUSIVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BUFFER_LOCK_EXCLUSIVE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_LockBuffer
	mov	x0, x21
	bl	_BufferGetPage
	mov	x22, x0
	mov	x0, x23
	bl	_ItemPointerGetOffsetNumber
	mov	x24, x0
	mov	x0, x22
	bl	_PageGetMaxOffsetNumber
	cmp	x0, x24
	b.ge	LBB0_4
; %bb.3:
	mov	x25, #0
	b	LBB0_5
LBB0_4:
	mov	x0, x22
	mov	x1, x24
	bl	_PageGetItemId
	mov	x25, x0
LBB0_5:
	mov	x0, x22
	bl	_PageGetMaxOffsetNumber
	cmp	x0, x24
	b.lt	LBB0_7
; %bb.6:
	mov	x0, x25
	bl	_ItemIdIsNormal
	cbnz	w0, LBB0_8
LBB0_7:
	ldr	w0, [x26]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_8:
	mov	x0, x22
	mov	x1, x25
	bl	_PageGetItem
	mov	x24, x0
	mov	x0, x25
	bl	_ItemIdGetLength
	ldr	x8, [x24]
	ldr	x9, [x19]
	ldr	x10, [x19, #16]
	ldr	x10, [x10]
	sub	x25, x9, x10
	cmp	x8, x10
	b.ne	LBB0_10
; %bb.9:
	sub	x8, x0, x8
	cmp	x8, x25
	b.eq	LBB0_11
LBB0_10:
	ldr	w0, [x26]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
LBB0_11:
	bl	_START_CRIT_SECTION
	ldr	x8, [x24]
	add	x0, x24, x8
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
	add	x1, x8, x9
	mov	x2, x25
	bl	_memcpy
	mov	x0, x21
	bl	_MarkBufferDirty
	mov	x0, x20
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x23
	bl	_ItemPointerGetOffsetNumber
	str	x0, [sp, #8]
	bl	_XLogBeginInsert
Lloh14:
	adrp	x8, _SizeOfHeapInplace@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SizeOfHeapInplace@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_XLogRegisterData
Lloh17:
	adrp	x8, _REGBUF_STANDARD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REGBUF_STANDARD@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	w0, #0
	mov	x1, x21
	bl	_XLogRegisterBuffer
	ldr	x8, [x24]
	add	x1, x24, x8
	mov	w0, #0
	mov	x2, x25
	bl	_XLogRegisterBufData
Lloh20:
	adrp	x8, _RM_HEAP_ID@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RM_HEAP_ID@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _XLOG_HEAP_INPLACE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _XLOG_HEAP_INPLACE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_XLogInsert
	mov	x1, x0
	mov	x0, x22
	bl	_PageSetLSN
LBB0_13:
	bl	_END_CRIT_SECTION
	mov	x0, x21
	bl	_UnlockReleaseBuffer
	bl	_IsBootstrapProcessingMode
	cbnz	w0, LBB0_15
; %bb.14:
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	bl	_CacheInvalidateHeapTuple
LBB0_15:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_TRANSACTION_STATE,4,2 ; @ERRCODE_INVALID_TRANSACTION_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot update tuples during a parallel operation"

	.comm	_BUFFER_LOCK_EXCLUSIVE,4,2      ; @BUFFER_LOCK_EXCLUSIVE
l_.str.1:                               ; @.str.1
	.asciz	"invalid lp"

l_.str.2:                               ; @.str.2
	.asciz	"wrong tuple length"

	.comm	_SizeOfHeapInplace,4,2          ; @SizeOfHeapInplace
	.comm	_REGBUF_STANDARD,4,2            ; @REGBUF_STANDARD
	.comm	_RM_HEAP_ID,4,2                 ; @RM_HEAP_ID
	.comm	_XLOG_HEAP_INPLACE,4,2          ; @XLOG_HEAP_INPLACE
.subsections_via_symbols
