	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function heapam_tuple_lock
_heapam_tuple_lock:                     ## @heapam_tuple_lock
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movq	%r8, %r12
	movq	%rcx, %r14
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	32(%rbp), %rcx
	movq	_TUPLE_LOCK_FLAG_LOCK_UPDATE_IN_PROGRESS@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	movl	(%rax), %eax
	andl	24(%rbp), %eax
	setne	%r13b
	movl	$0, (%rcx)
	movq	%r14, %rdi
	callq	_TTS_IS_BUFFERTUPLE
	movl	%eax, %edi
	callq	_Assert
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	(%rbx), %rax
	movq	%rax, 16(%r14)
	leaq	-44(%rbp), %rax
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	16(%rbp), %r8d
	movl	%r13d, -84(%rbp)                ## 4-byte Spill
	movl	%r13d, %r9d
	pushq	32(%rbp)
	pushq	%rax
	callq	_heap_lock_tuple
	addq	$16, %rsp
	movq	%rax, %r12
	movq	_TM_Updated@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_28
## %bb.1:
	movq	_TUPLE_LOCK_FLAG_FIND_LAST_VERSION@GOTPCREL(%rip), %rax
	movl	24(%rbp), %ecx
	testl	%ecx, (%rax)
	movq	-104(%rbp), %r13                ## 8-byte Reload
	je	LBB0_28
## %bb.2:
	leaq	16(%r14), %rcx
	movq	32(%rbp), %rax
	addq	$24, %rax
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%rax, %r12
	movl	-44(%rbp), %edi
	movq	%rcx, %rbx
	callq	_ReleaseBuffer
	movq	8(%r14), %rdi
	callq	_HeapTupleHeaderIsSpeculative
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ItemPointerEquals
	testq	%rax, %rax
	jne	LBB0_34
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%rbp), %rcx
	movq	24(%rcx), %rax
	movq	%rax, (%r13)
	movl	16(%rcx), %r12d
	movl	$1, (%rcx)
	callq	_InitDirtySnapshot
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=2
	movl	-56(%rbp), %edi
	callq	_ConditionalXactLockTableWait
	testl	%eax, %eax
	je	LBB0_33
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	_ItemPointerIndicatesMovedPartitions
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%r15d, %ebx
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%ebx, %r15d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	(%r13), %rax
	movq	%rax, 16(%r14)
	movl	%r15d, %edi
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdx
	leaq	-44(%rbp), %rcx
	callq	_heap_fetch
	movq	8(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	callq	_HeapTupleHeaderGetXmin
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_TransactionIdEquals
	testl	%eax, %eax
	je	LBB0_29
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	movl	-52(%rbp), %edi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DATA_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg_internal
	movl	%ebx, %edi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	-56(%rbp), %edi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_24
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=2
	movl	-44(%rbp), %edi
	callq	_ReleaseBuffer
	movl	16(%rbp), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$129, %eax
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$130, %eax
	jne	LBB0_6
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=2
	movl	-56(%rbp), %edi
	movq	_XLTW_FetchUpdated@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_XactLockTableWait
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	-56(%rbp), %edi
	callq	_ConditionalXactLockTableWait
	testl	%eax, %eax
	jne	LBB0_6
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_LOCK_NOT_AVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	%r15d, %edi
	callq	_RelationGetRelationName
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_6
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=2
	testq	%rdi, %rdi
	je	LBB0_37
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=2
	callq	_HeapTupleHeaderGetXmin
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_TransactionIdEquals
	testl	%eax, %eax
	je	LBB0_35
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	8(%r14), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_ItemPointerEquals
	testq	%rax, %rax
	jne	LBB0_35
## %bb.22:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movq	8(%r14), %rdi
	callq	_HeapTupleHeaderGetUpdateXid
	movl	%eax, %r12d
	movl	-44(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_6
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=2
	movl	-44(%rbp), %edi
	callq	_ReleaseBuffer
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %edi
	callq	_TransactionIdIsCurrentTransactionId
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14), %rdi
	callq	_HeapTupleHeaderGetCmin
	cmpq	%rbx, %rax
	jge	LBB0_38
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %edi
	callq	_ReleaseBuffer
	movq	(%r13), %rax
	movq	%rax, 16(%r14)
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	16(%rbp), %r8d
	movl	-84(%rbp), %r9d                 ## 4-byte Reload
	pushq	32(%rbp)
	leaq	-44(%rbp), %rax
	pushq	%rax
	callq	_heap_lock_tuple
	addq	$16, %rsp
	movq	%rax, %r12
	movq	_TM_Updated@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%rbp), %eax
	movq	_TUPLE_LOCK_FLAG_FIND_LAST_VERSION@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_3
LBB0_28:
	movl	%r15d, %edi
	callq	_RelationGetRelid
	movl	%eax, (%r14)
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_ExecStorePinnedBufferHeapTuple
	jmp	LBB0_32
LBB0_29:
	movq	_TM_Deleted@GOTPCREL(%rip), %rbx
LBB0_30:
	movl	-44(%rbp), %edi
	callq	_ReleaseBuffer
LBB0_31:
	movq	(%rbx), %r12
LBB0_32:
	movq	%r12, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	movq	_TM_WouldBlock@GOTPCREL(%rip), %rbx
	jmp	LBB0_31
LBB0_34:
	movq	_TM_Deleted@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_32
LBB0_35:
	movl	-44(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	movq	_TM_Deleted@GOTPCREL(%rip), %rbx
	jne	LBB0_30
	jmp	LBB0_31
LBB0_37:
	movq	_TM_Deleted@GOTPCREL(%rip), %rbx
	jmp	LBB0_31
LBB0_38:
	movq	32(%rbp), %rbx
	movl	%r12d, 16(%rbx)
	movq	8(%r14), %rdi
	callq	_HeapTupleHeaderGetCmin
	movq	%rax, 8(%rbx)
	movq	_TM_SelfModified@GOTPCREL(%rip), %rbx
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_TUPLE_LOCK_FLAG_LOCK_UPDATE_IN_PROGRESS,4,2 ## @TUPLE_LOCK_FLAG_LOCK_UPDATE_IN_PROGRESS
	.comm	_TM_Updated,8,3                 ## @TM_Updated
	.comm	_TUPLE_LOCK_FLAG_FIND_LAST_VERSION,4,2 ## @TUPLE_LOCK_FLAG_FIND_LAST_VERSION
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_T_R_SERIALIZATION_FAILURE,4,2 ## @ERRCODE_T_R_SERIALIZATION_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tuple to be locked was already moved to another partition due to concurrent update"

	.comm	_TM_Deleted,8,3                 ## @TM_Deleted
	.comm	_ERRCODE_DATA_CORRUPTED,4,2     ## @ERRCODE_DATA_CORRUPTED
L_.str.1:                               ## @.str.1
	.asciz	"t_xmin is uncommitted in tuple to be updated"

	.comm	_XLTW_FetchUpdated,4,2          ## @XLTW_FetchUpdated
	.comm	_TM_WouldBlock,8,3              ## @TM_WouldBlock
	.comm	_ERRCODE_LOCK_NOT_AVAILABLE,4,2 ## @ERRCODE_LOCK_NOT_AVAILABLE
L_.str.2:                               ## @.str.2
	.asciz	"could not obtain lock on row in relation \"%s\""

	.comm	_TM_SelfModified,8,3            ## @TM_SelfModified
	.no_dead_strip	_heapam_tuple_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function heapam_tuple_lock
_heapam_tuple_lock:                     ; @heapam_tuple_lock
	.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
	mov	x22, x7
	mov	x23, x6
	mov	x24, x5
	mov	x27, x4
	mov	x19, x3
	mov	x26, x1
	mov	x20, x0
	ldr	x21, [x29, #16]
Lloh0:
	adrp	x8, _TUPLE_LOCK_FLAG_LOCK_UPDATE_IN_PROGRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TUPLE_LOCK_FLAG_LOCK_UPDATE_IN_PROGRESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w7
	cset	w25, ne
	str	wzr, [x21]
	mov	x0, x3
	bl	_TTS_IS_BUFFERTUPLE
	bl	_Assert
	ldr	x8, [x26]
	mov	x28, x19
	str	x8, [x28, #16]!
	add	x6, sp, #60
	mov	x0, x20
	mov	x1, x19
	mov	x2, x27
	mov	x3, x24
	mov	x4, x23
	str	w25, [sp, #44]                  ; 4-byte Folded Spill
	mov	x5, x25
	mov	x7, x21
	bl	_heap_lock_tuple
	mov	x25, x0
Lloh3:
	adrp	x8, _TM_Updated@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TM_Updated@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_28
; %bb.1:
	str	x27, [sp, #32]                  ; 8-byte Folded Spill
	str	w24, [sp, #28]                  ; 4-byte Folded Spill
Lloh6:
	adrp	x8, _TUPLE_LOCK_FLAG_FIND_LAST_VERSION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TUPLE_LOCK_FLAG_FIND_LAST_VERSION@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w22, [sp, #24]                  ; 4-byte Folded Spill
	tst	w8, w22
	b.eq	LBB0_28
; %bb.2:
	add	x24, x21, #24
Lloh9:
	adrp	x22, _ERROR@GOTPAGE
Lloh10:
	ldr	x22, [x22, _ERROR@GOTPAGEOFF]
Lloh11:
	adrp	x27, l_.str@PAGE
Lloh12:
	add	x27, x27, l_.str@PAGEOFF
	str	x24, [sp, #16]                  ; 8-byte Folded Spill
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w0, [sp, #60]
	bl	_ReleaseBuffer
	ldr	x0, [x19, #8]
	bl	_HeapTupleHeaderIsSpeculative
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x24
	mov	x1, x28
	bl	_ItemPointerEquals
	cbnz	x0, LBB0_34
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #24]
	str	x8, [x26]
	ldr	w25, [x21, #16]
	mov	w8, #1
	str	w8, [x21]
	bl	_InitDirtySnapshot
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	w0, [sp, #48]
	bl	_ConditionalXactLockTableWait
	cbz	w0, LBB0_33
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x26
	bl	_ItemPointerIndicatesMovedPartitions
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w24, [x22]
Lloh13:
	adrp	x8, _ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x27
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x26]
	str	x8, [x19, #16]
	add	x1, sp, #48
	add	x3, sp, #60
	mov	x0, x20
	mov	x2, x19
	bl	_heap_fetch
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	bl	_HeapTupleHeaderGetXmin
	mov	x1, x25
	bl	_TransactionIdEquals
	cbz	w0, LBB0_29
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w0, [sp, #52]
	bl	_TransactionIdIsValid
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w24, [x22]
Lloh16:
	adrp	x8, _ERRCODE_DATA_CORRUPTED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERRCODE_DATA_CORRUPTED@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_errcode
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w0, [sp, #48]
	bl	_TransactionIdIsValid
	cbz	x0, LBB0_24
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w0, [sp, #60]
	bl	_ReleaseBuffer
	cmp	w23, #128
	b.eq	LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=2
	cmp	w23, #129
	b.eq	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=2
	cmp	w23, #130
	b.ne	LBB0_6
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w0, [sp, #48]
Lloh21:
	adrp	x8, _XLTW_FetchUpdated@GOTPAGE
Lloh22:
	ldr	x8, [x8, _XLTW_FetchUpdated@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x1, x20
	mov	x2, x28
	bl	_XactLockTableWait
	b	LBB0_6
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w0, [sp, #48]
	bl	_ConditionalXactLockTableWait
	cbnz	w0, LBB0_6
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w24, [x22]
Lloh24:
	adrp	x8, _ERRCODE_LOCK_NOT_AVAILABLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERRCODE_LOCK_NOT_AVAILABLE@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x20
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
	b	LBB0_6
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=2
	cbz	x0, LBB0_36
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=2
	bl	_HeapTupleHeaderGetXmin
	mov	x1, x25
	bl	_TransactionIdEquals
	cbz	w0, LBB0_35
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x1, [x19, #8]
	mov	x0, x28
	bl	_ItemPointerEquals
	cbnz	x0, LBB0_35
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	str	x8, [x26]
	ldr	x0, [x19, #8]
	bl	_HeapTupleHeaderGetUpdateXid
	mov	x25, x0
	ldr	w0, [sp, #60]
	bl	_BufferIsValid
	cbz	x0, LBB0_6
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w0, [sp, #60]
	bl	_ReleaseBuffer
	b	LBB0_6
LBB0_24:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	bl	_TransactionIdIsCurrentTransactionId
	ldr	x24, [sp, #32]                  ; 8-byte Folded Reload
	cbz	x0, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19, #8]
	bl	_HeapTupleHeaderGetCmin
	cmp	x0, x24
	b.ge	LBB0_37
LBB0_26:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #60]
	bl	_ReleaseBuffer
	ldr	x8, [x26]
	str	x8, [x19, #16]
	add	x6, sp, #60
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	ldr	w3, [sp, #28]                   ; 4-byte Folded Reload
	mov	x4, x23
	ldr	w5, [sp, #44]                   ; 4-byte Folded Reload
	mov	x7, x21
	bl	_heap_lock_tuple
	mov	x25, x0
Lloh29:
	adrp	x8, _TM_Updated@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TM_Updated@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh32:
	adrp	x8, _TUPLE_LOCK_FLAG_FIND_LAST_VERSION@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TUPLE_LOCK_FLAG_FIND_LAST_VERSION@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldr	w9, [sp, #24]                   ; 4-byte Folded Reload
	tst	w8, w9
	ldr	x24, [sp, #16]                  ; 8-byte Folded Reload
	b.ne	LBB0_3
LBB0_28:
	mov	x0, x20
	bl	_RelationGetRelid
	str	w0, [x19]
	ldr	w2, [sp, #60]
	mov	x0, x19
	mov	x1, x19
	bl	_ExecStorePinnedBufferHeapTuple
	b	LBB0_32
LBB0_29:
Lloh35:
	adrp	x19, _TM_Deleted@GOTPAGE
Lloh36:
	ldr	x19, [x19, _TM_Deleted@GOTPAGEOFF]
LBB0_30:
	ldr	w0, [sp, #60]
	bl	_ReleaseBuffer
LBB0_31:
	ldr	x25, [x19]
LBB0_32:
	mov	x0, x25
	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_33:
Lloh37:
	adrp	x19, _TM_WouldBlock@GOTPAGE
Lloh38:
	ldr	x19, [x19, _TM_WouldBlock@GOTPAGEOFF]
	b	LBB0_31
LBB0_34:
Lloh39:
	adrp	x8, _TM_Deleted@GOTPAGE
Lloh40:
	ldr	x8, [x8, _TM_Deleted@GOTPAGEOFF]
Lloh41:
	ldr	x25, [x8]
	b	LBB0_32
LBB0_35:
	ldr	w0, [sp, #60]
	bl	_BufferIsValid
Lloh42:
	adrp	x19, _TM_Deleted@GOTPAGE
Lloh43:
	ldr	x19, [x19, _TM_Deleted@GOTPAGEOFF]
	cbnz	x0, LBB0_30
	b	LBB0_31
LBB0_36:
Lloh44:
	adrp	x19, _TM_Deleted@GOTPAGE
Lloh45:
	ldr	x19, [x19, _TM_Deleted@GOTPAGEOFF]
	b	LBB0_31
LBB0_37:
	str	w25, [x21, #16]
	ldr	x0, [x19, #8]
	bl	_HeapTupleHeaderGetCmin
	str	x0, [x21, #8]
Lloh46:
	adrp	x19, _TM_SelfModified@GOTPAGE
Lloh47:
	ldr	x19, [x19, _TM_SelfModified@GOTPAGEOFF]
	b	LBB0_30
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_TUPLE_LOCK_FLAG_LOCK_UPDATE_IN_PROGRESS,4,2 ; @TUPLE_LOCK_FLAG_LOCK_UPDATE_IN_PROGRESS
	.comm	_TM_Updated,8,3                 ; @TM_Updated
	.comm	_TUPLE_LOCK_FLAG_FIND_LAST_VERSION,4,2 ; @TUPLE_LOCK_FLAG_FIND_LAST_VERSION
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_T_R_SERIALIZATION_FAILURE,4,2 ; @ERRCODE_T_R_SERIALIZATION_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tuple to be locked was already moved to another partition due to concurrent update"

	.comm	_TM_Deleted,8,3                 ; @TM_Deleted
	.comm	_ERRCODE_DATA_CORRUPTED,4,2     ; @ERRCODE_DATA_CORRUPTED
l_.str.1:                               ; @.str.1
	.asciz	"t_xmin is uncommitted in tuple to be updated"

	.comm	_XLTW_FetchUpdated,4,2          ; @XLTW_FetchUpdated
	.comm	_TM_WouldBlock,8,3              ; @TM_WouldBlock
	.comm	_ERRCODE_LOCK_NOT_AVAILABLE,4,2 ; @ERRCODE_LOCK_NOT_AVAILABLE
l_.str.2:                               ; @.str.2
	.asciz	"could not obtain lock on row in relation \"%s\""

	.comm	_TM_SelfModified,8,3            ; @TM_SelfModified
	.no_dead_strip	_heapam_tuple_lock
.subsections_via_symbols
