	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ExtractReplicaIdentity
_ExtractReplicaIdentity:                ## @ExtractReplicaIdentity
	.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	%rcx, %r13
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_RelationGetDescr
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	movb	(%rax), %r12b
	movq	_MaxHeapAttributeNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, %rax
	movq	%r13, %rbx
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movl	$0, (%r13)
	movq	%r15, %rdi
	callq	_RelationIsLogicallyLogged
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_18
## %bb.1:
	movq	_REPLICA_IDENTITY_NOTHING@GOTPCREL(%rip), %rax
	cmpb	(%rax), %r12b
	je	LBB0_18
## %bb.2:
	movq	_REPLICA_IDENTITY_FULL@GOTPCREL(%rip), %rax
	cmpb	(%rax), %r12b
	jne	LBB0_6
## %bb.3:
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_HeapTupleHasExternal
	testq	%rax, %rax
	je	LBB0_18
## %bb.4:
	movl	$1, (%rbx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.5:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_toast_flatten_tuple            ## TAILCALL
LBB0_6:
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.7:
	movq	_INDEX_ATTR_BITMAP_IDENTITY_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_RelationGetIndexAttrBitmap
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_bms_is_empty
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:
	xorl	%r13d, %r13d
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movq	%r13, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_heap_deform_tuple
	cmpl	$0, (%rbx)
	jle	LBB0_16
## %bb.11:
	xorl	%ebx, %ebx
	movq	_FirstLowInvalidHeapAttributeNumber@GOTPCREL(%rip), %r15
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	$1, (%r14,%rbx,4)
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	movq	%r13, %rbx
	cmpq	%rax, %r13
	jge	LBB0_16
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leaq	1(%rbx), %r13
	movq	%rbx, %rdi
	subq	(%r15), %rdi
	incq	%rdi
	movq	%r12, %rsi
	callq	_bms_is_member
	testq	%rax, %rax
	je	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	xorl	%edi, %edi
	cmpl	$0, (%r14,%rbx,4)
	sete	%dil
	callq	_Assert
	jmp	LBB0_13
LBB0_16:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_heap_form_tuple
	movq	%rax, %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	%r12, %rdi
	callq	_bms_free
	movq	%r13, %rdi
	callq	_HeapTupleHasExternal
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_toast_flatten_tuple
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_heap_freetuple
	movq	%rbx, %r13
	jmp	LBB0_18
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MaxHeapAttributeNumber,4,2     ## @MaxHeapAttributeNumber
	.comm	_REPLICA_IDENTITY_NOTHING,1,0   ## @REPLICA_IDENTITY_NOTHING
	.comm	_REPLICA_IDENTITY_FULL,1,0      ## @REPLICA_IDENTITY_FULL
	.comm	_INDEX_ATTR_BITMAP_IDENTITY_KEY,4,2 ## @INDEX_ATTR_BITMAP_IDENTITY_KEY
	.comm	_FirstLowInvalidHeapAttributeNumber,8,3 ## @FirstLowInvalidHeapAttributeNumber
	.no_dead_strip	_ExtractReplicaIdentity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ExtractReplicaIdentity
_ExtractReplicaIdentity:                ; @ExtractReplicaIdentity
	.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, #16
	mov	x20, x3
	mov	x25, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_RelationGetDescr
	mov	x19, x0
	ldr	x8, [x24]
	ldrb	w27, [x8]
Lloh3:
	adrp	x8, _MaxHeapAttributeNumber@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MaxHeapAttributeNumber@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	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x21, x9, x12
	mov	sp, x21
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x22, x8, x12
	mov	sp, x22
	str	wzr, [x20]
	mov	x0, x24
	bl	_RelationIsLogicallyLogged
	mov	x26, #0
	cbz	w0, LBB0_18
; %bb.1:
Lloh10:
	adrp	x8, _REPLICA_IDENTITY_NOTHING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _REPLICA_IDENTITY_NOTHING@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w27, w8
	b.eq	LBB0_18
; %bb.2:
Lloh12:
	adrp	x8, _REPLICA_IDENTITY_FULL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REPLICA_IDENTITY_FULL@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w27, w8
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x23
	bl	_HeapTupleHasExternal
	cbz	x0, LBB0_9
; %bb.4:
	mov	w8, #1
	str	w8, [x20]
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.5:
	mov	x0, x23
	mov	x1, x19
	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
	b	_toast_flatten_tuple
LBB0_6:
	cbz	w25, LBB0_8
; %bb.7:
Lloh17:
	adrp	x8, _INDEX_ATTR_BITMAP_IDENTITY_KEY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _INDEX_ATTR_BITMAP_IDENTITY_KEY@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_RelationGetIndexAttrBitmap
	mov	x24, x0
	bl	_bms_is_empty
	cbz	x0, LBB0_10
LBB0_8:
	mov	x26, #0
	b	LBB0_18
LBB0_9:
	mov	x26, x23
	b	LBB0_18
LBB0_10:
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_heap_deform_tuple
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.11:
	mov	x23, #0
Lloh20:
	adrp	x25, _FirstLowInvalidHeapAttributeNumber@GOTPAGE
Lloh21:
	ldr	x25, [x25, _FirstLowInvalidHeapAttributeNumber@GOTPAGEOFF]
	mov	w26, #1
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	str	w26, [x21, x23, lsl #2]
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.ge	LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	sub	x8, x23, x8
	add	x0, x8, #1
	mov	x1, x24
	bl	_bms_is_member
	cbz	x0, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x21, x23, lsl #2]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	b	LBB0_13
LBB0_16:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_heap_form_tuple
	mov	x26, x0
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x24
	bl	_bms_free
	mov	x0, x26
	bl	_HeapTupleHasExternal
	cbz	x0, LBB0_18
; %bb.17:
	mov	x0, x26
	mov	x1, x19
	bl	_toast_flatten_tuple
	mov	x19, x0
	mov	x0, x26
	bl	_heap_freetuple
	mov	x26, x19
LBB0_18:
	ldur	x8, [x29, #-88]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x26
	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_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxHeapAttributeNumber,4,2     ; @MaxHeapAttributeNumber
	.comm	_REPLICA_IDENTITY_NOTHING,1,0   ; @REPLICA_IDENTITY_NOTHING
	.comm	_REPLICA_IDENTITY_FULL,1,0      ; @REPLICA_IDENTITY_FULL
	.comm	_INDEX_ATTR_BITMAP_IDENTITY_KEY,4,2 ; @INDEX_ATTR_BITMAP_IDENTITY_KEY
	.comm	_FirstLowInvalidHeapAttributeNumber,8,3 ; @FirstLowInvalidHeapAttributeNumber
	.no_dead_strip	_ExtractReplicaIdentity
.subsections_via_symbols
