	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RelationFindReplTupleByIndex   ## -- Begin function RelationFindReplTupleByIndex
	.p2align	4, 0x90
_RelationFindReplTupleByIndex:          ## @RelationFindReplTupleByIndex
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movl	%edi, %r13d
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_INDEX_MAX_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_index_open
	movl	%eax, %r14d
	callq	_InitDirtySnapshot
	movl	%r14d, %edi
	callq	_IndexRelationGetNumberOfKeyAttributes
	leaq	-80(%rbp), %rdx
	xorl	%r12d, %r12d
	movl	%r13d, %edi
	movl	%r14d, %esi
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_index_beginscan
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_build_replindex_scan_key
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_IndexRelationGetNumberOfKeyAttributes
	movl	%r13d, %edi
	movq	%rbx, %r14
	movq	%rbx, %rsi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_XLTW_None@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_XactLockTableWait
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_IndexRelationGetNumberOfKeyAttributes
	xorl	%r12d, %r12d
	movl	%r13d, %edi
	movq	%r14, %rsi
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_index_rescan
	movq	_ForwardScanDirection@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	movq	%r15, %rdx
	callq	_index_getnext_slot
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_ExecMaterializeSlot
	movl	-76(%rbp), %edi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	leaq	-76(%rbp), %rax
	leaq	-80(%rbp), %rcx
	cmoveq	%rcx, %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	jne	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_GetLatestSnapshot
	movl	%eax, %edi
	callq	_PushActiveSnapshot
	xorl	%eax, %eax
	callq	_GetLatestSnapshot
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_GetCurrentCommandId
	movq	_LockWaitBlock@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	subq	$8, %rsp
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	movl	%ebx, %edx
	movq	%r15, %rcx
	movl	%eax, %r8d
	movl	-84(%rbp), %r9d                 ## 4-byte Reload
	leaq	-72(%rbp), %rax
	pushq	%rax
	pushq	$0
	pushq	%r10
	callq	_table_tuple_lock
	addq	$32, %rsp
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_PopActiveSnapshot
	leal	-128(%rbx), %eax
	cmpl	$3, %eax
	ja	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	-72(%rbp), %rdi
	callq	_ItemPointerIndicatesMovedPartitions
	movl	%eax, %r12d
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	testl	%r12d, %r12d
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rax, %rdi
	jmp	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_2
LBB0_10:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_elog
	jmp	LBB0_13
LBB0_12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_13:
	movl	$1, %r12d
LBB0_14:
	movl	%r13d, %edi
	callq	_index_endscan
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_index_close
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_INDEX_MAX_KEYS,4,2             ## @INDEX_MAX_KEYS
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_ForwardScanDirection,4,2       ## @ForwardScanDirection
	.comm	_XLTW_None,4,2                  ## @XLTW_None
	.comm	_LockWaitBlock,4,2              ## @LockWaitBlock
	.comm	_LOG,4,2                        ## @LOG
	.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, retrying"

L_.str.1:                               ## @.str.1
	.asciz	"concurrent update, retrying"

L_.str.2:                               ## @.str.2
	.asciz	"concurrent delete, retrying"

	.comm	_ERROR,4,2                      ## @ERROR
L_.str.3:                               ## @.str.3
	.asciz	"attempted to lock invisible tuple"

L_.str.4:                               ## @.str.4
	.asciz	"unexpected table_tuple_lock status: %u"

	.comm	_NoLock,4,2                     ## @NoLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RelationFindReplTupleByIndex   ; -- Begin function RelationFindReplTupleByIndex
	.p2align	2
_RelationFindReplTupleByIndex:          ; @RelationFindReplTupleByIndex
	.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, #32
	mov	x20, x4
	mov	x25, x3
	mov	x26, x2
	mov	x12, x1
	mov	x22, 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, _INDEX_MAX_KEYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INDEX_MAX_KEYS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
Lloh8:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x12
	bl	_index_open
	mov	x19, x0
	bl	_InitDirtySnapshot
	mov	x0, x19
	bl	_IndexRelationGetNumberOfKeyAttributes
	mov	x3, x0
	sub	x27, x29, #96
	sub	x2, x29, #96
	mov	x0, x22
	mov	x1, x19
	mov	w4, #0
	bl	_index_beginscan
	mov	x23, x0
	mov	x0, x24
	mov	x1, x22
	mov	x2, x19
	mov	x3, x25
	bl	_build_replindex_scan_key
	mov	x0, x19
	bl	_IndexRelationGetNumberOfKeyAttributes
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	mov	x3, #0
	mov	w4, #0
	bl	_index_rescan
Lloh11:
	adrp	x28, _ForwardScanDirection@GOTPAGE
Lloh12:
	ldr	x28, [x28, _ForwardScanDirection@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x23
	mov	x2, x20
	bl	_index_getnext_slot
	cbz	x0, LBB0_10
; %bb.1:
Lloh13:
	adrp	x21, _LockWaitBlock@GOTPAGE
Lloh14:
	ldr	x21, [x21, _LockWaitBlock@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh15:
	adrp	x8, _XLTW_None@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XLTW_None@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x25
	mov	x1, #0
	mov	x2, #0
	bl	_XactLockTableWait
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_IndexRelationGetNumberOfKeyAttributes
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	mov	x3, #0
	mov	w4, #0
	bl	_index_rescan
	ldr	w1, [x28]
	mov	x0, x23
	mov	x2, x20
	bl	_index_getnext_slot
	cbz	x0, LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_ExecMaterializeSlot
	orr	x25, x27, #0x4
	ldur	w0, [x29, #-92]
	bl	_TransactionIdIsValid
	cmp	x0, #0
	csel	x8, x27, x25, eq
	ldr	w25, [x8]
	mov	x0, x25
	bl	_TransactionIdIsValid
	cbnz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_GetLatestSnapshot
	bl	_PushActiveSnapshot
	bl	_GetLatestSnapshot
	mov	x25, x0
	mov	w0, #0
	bl	_GetCurrentCommandId
	mov	x4, x0
	ldr	w6, [x21]
	sub	x8, x29, #104
	str	x8, [sp, #-16]!
	mov	x0, x22
	mov	x1, x20
	mov	x2, x25
	mov	x3, x20
	mov	x5, x26
	mov	w7, #0
	bl	_table_tuple_lock
	add	sp, sp, #16
	mov	x25, x0
	bl	_PopActiveSnapshot
	sub	w8, w25, #128
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh18:
	adrp	x11, lJTI0_0@PAGE
Lloh19:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_7
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x0, x29, #104
	bl	_ItemPointerIndicatesMovedPartitions
	mov	x27, x28
	mov	x28, x22
	mov	x22, x21
	mov	x21, x26
	mov	x26, x0
Lloh20:
	adrp	x8, _LOG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh22:
	ldr	w25, [x8]
Lloh23:
	adrp	x8, _ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_errcode
	cmp	w26, #0
	mov	x26, x21
	mov	x21, x22
	mov	x22, x28
	mov	x28, x27
	sub	x27, x29, #96
Lloh26:
	adrp	x8, l_.str@PAGE
Lloh27:
	add	x8, x8, l_.str@PAGEOFF
Lloh28:
	adrp	x9, l_.str.1@PAGE
Lloh29:
	add	x9, x9, l_.str.1@PAGEOFF
	csel	x0, x9, x8, eq
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh30:
	adrp	x8, _LOG@GOTPAGE
Lloh31:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh32:
	ldr	w25, [x8]
Lloh33:
	adrp	x8, _ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_errcode
Lloh36:
	adrp	x0, l_.str.2@PAGE
Lloh37:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
	b	LBB0_3
LBB0_10:
	mov	w20, #0
	b	LBB0_14
LBB0_11:
Lloh38:
	adrp	x8, _ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	str	x25, [sp, #-16]!
Lloh41:
	adrp	x1, l_.str.4@PAGE
Lloh42:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_elog
	add	sp, sp, #16
	b	LBB0_13
LBB0_12:
Lloh43:
	adrp	x8, _ERROR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
Lloh46:
	adrp	x1, l_.str.3@PAGE
Lloh47:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_elog
LBB0_13:
	mov	w20, #1
LBB0_14:
	mov	x0, x23
	bl	_index_endscan
Lloh48:
	adrp	x8, _NoLock@GOTPAGE
Lloh49:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_index_close
	ldur	x8, [x29, #-88]
Lloh51:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh52:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x20
	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_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
                                        ; -- End function
	.comm	_INDEX_MAX_KEYS,4,2             ; @INDEX_MAX_KEYS
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_ForwardScanDirection,4,2       ; @ForwardScanDirection
	.comm	_XLTW_None,4,2                  ; @XLTW_None
	.comm	_LockWaitBlock,4,2              ; @LockWaitBlock
	.comm	_LOG,4,2                        ; @LOG
	.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, retrying"

l_.str.1:                               ; @.str.1
	.asciz	"concurrent update, retrying"

l_.str.2:                               ; @.str.2
	.asciz	"concurrent delete, retrying"

	.comm	_ERROR,4,2                      ; @ERROR
l_.str.3:                               ; @.str.3
	.asciz	"attempted to lock invisible tuple"

l_.str.4:                               ; @.str.4
	.asciz	"unexpected table_tuple_lock status: %u"

	.comm	_NoLock,4,2                     ; @NoLock
.subsections_via_symbols
