	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_replindex_scan_key
_build_replindex_scan_key:              ## @build_replindex_scan_key
	.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
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rdi, %r15
	movq	16(%rdx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_RelationGetReplicaIndex
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_RelationGetRelid
	xorl	%edi, %edi
	cmpq	%rax, %r14
	sete	%dil
	callq	_Assert
	movq	_INDEXRELID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	movq	_Anum_pg_index_indclass@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %rcx
	callq	_SysCacheGetAttr
	movl	%eax, %r14d
	xorl	%edi, %edi
	cmpl	$0, -52(%rbp)
	sete	%dil
	callq	_Assert
	movl	%r14d, %edi
	callq	_DatumGetPointer
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_IndexRelationGetNumberOfKeyAttributes
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %r12
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdx, %rbx
	movq	%rdx, %rdi
	callq	_IndexRelationGetNumberOfKeyAttributes
	cltq
	addq	$8, %r15
	movq	%r13, %r14
	cmpq	%rax, %r13
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %r12
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	(%rax,%r14,4), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movl	(%rax,%r14,4), %edi
	callq	_get_opclass_input_type
	movl	%eax, %r13d
	movq	(%rbx), %rax
	movl	(%rax,%r14,4), %edi
	callq	_get_opclass_family
	movl	(%r12), %ecx
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	movl	%r13d, %esi
	movl	%r13d, %edx
	callq	_get_opfamily_member
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_OidIsValid
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %ecx
	movl	%r13d, %r8d
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_elog
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%r14), %r13
	movl	%ebx, %edi
	callq	_get_opcode
	movl	(%r12), %edx
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12), %rcx
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	-4(%rcx,%rbx,4), %r8d
	leal	1(%r14), %esi
	movq	%r15, %rdi
	movl	%eax, %ecx
	callq	_ScanKeyInit
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rdx
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx,%r14,8)
	movq	(%r12), %rax
	cmpq	$0, -8(%rax,%rbx,8)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_SK_ISNULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rcx,%r14,8)
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_7
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_8:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INDEXRELID,4,2                 ## @INDEXRELID
	.comm	_Anum_pg_index_indclass,4,2     ## @Anum_pg_index_indclass
	.comm	_BTEqualStrategyNumber,4,2      ## @BTEqualStrategyNumber
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing operator %d(%u,%u) in opfamily %u"

	.comm	_SK_ISNULL,4,2                  ## @SK_ISNULL
	.no_dead_strip	_build_replindex_scan_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_replindex_scan_key
_build_replindex_scan_key:              ; @build_replindex_scan_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x3
	mov	x20, x2
	mov	x21, x0
	ldr	x8, [x2, #16]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	mov	x0, x1
	bl	_RelationGetReplicaIndex
	mov	x22, x0
	mov	x0, x20
	bl	_RelationGetRelid
	cmp	x22, x0
	cset	w0, eq
	bl	_Assert
Lloh0:
	adrp	x8, _INDEXRELID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INDEXRELID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
Lloh3:
	adrp	x8, _Anum_pg_index_indclass@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Anum_pg_index_indclass@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #28
	bl	_SysCacheGetAttr
	mov	x22, x0
	ldr	w8, [sp, #28]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x22
	bl	_DatumGetPointer
	mov	x22, x0
	mov	x0, x20
	bl	_IndexRelationGetNumberOfKeyAttributes
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x24, #0
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
Lloh6:
	adrp	x23, _BTEqualStrategyNumber@GOTPAGE
Lloh7:
	ldr	x23, [x23, _BTEqualStrategyNumber@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	mov	x0, x20
	bl	_IndexRelationGetNumberOfKeyAttributes
	add	x21, x21, #8
	cmp	x24, w0, sxtw
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	lsl	x26, x24, #2
	ldrsw	x28, [x8, x26]
	ldr	x8, [x22]
	ldr	w0, [x8, x26]
	bl	_get_opclass_input_type
	mov	x25, x0
	ldr	x8, [x22]
	ldr	w0, [x8, x26]
	bl	_get_opclass_family
	mov	x26, x0
	ldr	w3, [x23]
	mov	x1, x25
	mov	x2, x25
	bl	_get_opfamily_member
	mov	x27, x0
	bl	_OidIsValid
	cbnz	w0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w2, [x23]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x25
	mov	x4, x25
	mov	x5, x26
	bl	_elog
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x27
	bl	_get_opcode
	mov	x3, x0
	ldr	w2, [x23]
	ldr	x8, [x19, #8]
	sub	x25, x28, #1
	ldr	w4, [x8, x25, lsl #2]
	add	w1, w24, #1
	mov	x0, x21
	bl	_ScanKeyInit
	ldr	x8, [x20]
	ldr	w8, [x8, x24, lsl #2]
	str	w8, [x21, #4]
	ldr	x8, [x19]
	ldr	x8, [x8, x25, lsl #3]
	cbz	x8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh13:
	adrp	x8, _SK_ISNULL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SK_ISNULL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_2
LBB0_7:
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
LBB0_8:
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_INDEXRELID,4,2                 ; @INDEXRELID
	.comm	_Anum_pg_index_indclass,4,2     ; @Anum_pg_index_indclass
	.comm	_BTEqualStrategyNumber,4,2      ; @BTEqualStrategyNumber
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing operator %d(%u,%u) in opfamily %u"

	.comm	_SK_ISNULL,4,2                  ; @SK_ISNULL
	.no_dead_strip	_build_replindex_scan_key
.subsections_via_symbols
