	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validatePartitionedIndex
_validatePartitionedIndex:              ## @validatePartitionedIndex
	.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, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	_RELKIND_PARTITIONED_INDEX@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	_InheritsRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movq	%rax, %r12
	movq	_Anum_pg_inherits_inhparent@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_F_OIDEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_RelationGetRelid
	movl	%eax, %edi
	callq	_ObjectIdGetDatum
	leaq	-68(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_ScanKeyInit
	movq	_InheritsParentIndexId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movq	%rbx, %r9
	callq	_systable_beginscan
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_systable_getnext
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_GETSTRUCT
	cmpl	$1, (%rax)
	sbbl	$-1, %r13d
	movq	%r14, %rdi
	callq	_ReleaseSysCache
	movl	%r12d, %edi
	callq	_systable_getnext
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	_GETSTRUCT
	movq	%rax, %r15
	movq	_INDEXRELID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r15), %edi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	callq	_elog
	jmp	LBB0_4
LBB0_5:
	movl	%r12d, %edi
	callq	_systable_endscan
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_table_close
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_RelationGetPartitionDesc
	cmpl	(%rax), %r13d
	jne	LBB0_8
## %bb.6:
	movq	_IndexRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_table_open
	movq	%rax, %r14
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	16(%r13), %rdi
	callq	_heap_copytuple
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_GETSTRUCT
	movl	$1, (%rax)
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_CatalogTupleUpdate
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_table_close
	movq	8(%r13), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_CommandCounterIncrement
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_RelationGetRelid
	movl	%eax, %edi
	callq	_get_partition_parent
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_RelationGetRelid
	movl	%eax, %edi
	callq	_get_partition_parent
	movl	%eax, %r15d
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%r14d, %edi
	callq	_relation_open
	movq	%rax, %rbx
	movl	(%r12), %esi
	movl	%r15d, %edi
	callq	_relation_open
	movq	%rax, %r14
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_Assert
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_validatePartitionedIndex
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_relation_close
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_relation_close
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RELKIND_PARTITIONED_INDEX,8,3  ## @RELKIND_PARTITIONED_INDEX
	.comm	_InheritsRelationId,4,2         ## @InheritsRelationId
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_Anum_pg_inherits_inhparent,4,2 ## @Anum_pg_inherits_inhparent
	.comm	_BTEqualStrategyNumber,4,2      ## @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ## @F_OIDEQ
	.comm	_InheritsParentIndexId,4,2      ## @InheritsParentIndexId
	.comm	_INDEXRELID,4,2                 ## @INDEXRELID
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache lookup failed for index %u"

	.comm	_IndexRelationId,4,2            ## @IndexRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_AccessExclusiveLock,4,2        ## @AccessExclusiveLock
	.no_dead_strip	_validatePartitionedIndex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validatePartitionedIndex
_validatePartitionedIndex:              ; @validatePartitionedIndex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _RELKIND_PARTITIONED_INDEX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RELKIND_PARTITIONED_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
Lloh3:
	adrp	x8, _InheritsRelationId@GOTPAGE
Lloh4:
	ldr	x8, [x8, _InheritsRelationId@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _AccessShareLock@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AccessShareLock@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_table_open
	mov	x21, x0
Lloh9:
	adrp	x8, _Anum_pg_inherits_inhparent@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Anum_pg_inherits_inhparent@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
Lloh12:
	adrp	x8, _BTEqualStrategyNumber@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BTEqualStrategyNumber@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
Lloh15:
	adrp	x8, _F_OIDEQ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _F_OIDEQ@GOTPAGEOFF]
Lloh17:
	ldr	w24, [x8]
	mov	x0, x20
	bl	_RelationGetRelid
	bl	_ObjectIdGetDatum
	mov	x4, x0
	add	x0, sp, #12
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_ScanKeyInit
Lloh18:
	adrp	x8, _InheritsParentIndexId@GOTPAGE
Lloh19:
	ldr	x8, [x8, _InheritsParentIndexId@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x5, sp, #12
	mov	x0, x21
	mov	w2, #1
	mov	x3, #0
	mov	w4, #1
	bl	_systable_beginscan
	mov	x22, x0
	bl	_systable_getnext
	mov	w27, #0
	cbz	x0, LBB0_5
; %bb.1:
Lloh21:
	adrp	x28, _INDEXRELID@GOTPAGE
Lloh22:
	ldr	x28, [x28, _INDEXRELID@GOTPAGEOFF]
Lloh23:
	adrp	x26, _ERROR@GOTPAGE
Lloh24:
	ldr	x26, [x26, _ERROR@GOTPAGEOFF]
Lloh25:
	adrp	x23, l_.str@PAGE
Lloh26:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_GETSTRUCT
	ldr	w8, [x0]
	cmp	w8, #0
	cinc	w27, w27, ne
	mov	x0, x24
	bl	_ReleaseSysCache
	mov	x0, x22
	bl	_systable_getnext
	cbz	x0, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_GETSTRUCT
	mov	x25, x0
	ldr	w24, [x28]
	ldr	w0, [x0]
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x24
	bl	_SearchSysCache1
	mov	x24, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x26]
	ldr	w2, [x25]
	mov	x1, x23
	bl	_elog
	b	LBB0_2
LBB0_5:
	mov	x0, x22
	bl	_systable_endscan
Lloh27:
	adrp	x8, _AccessShareLock@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AccessShareLock@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_table_close
	mov	x0, x19
	bl	_RelationGetPartitionDesc
	ldr	w8, [x0]
	cmp	w27, w8
	b.ne	LBB0_8
; %bb.6:
Lloh30:
	adrp	x8, _IndexRelationId@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IndexRelationId@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x23, _RowExclusiveLock@GOTPAGE
Lloh34:
	ldr	x23, [x23, _RowExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_table_open
	mov	x21, x0
	ldr	x0, [x20, #16]
	bl	_heap_copytuple
	mov	x22, x0
	bl	_GETSTRUCT
	mov	w8, #1
	str	w8, [x0]
	ldr	x1, [x20, #16]
	mov	x0, x21
	mov	x2, x22
	bl	_CatalogTupleUpdate
	ldr	w1, [x23]
	mov	x0, x21
	bl	_table_close
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
; %bb.7:
	bl	_CommandCounterIncrement
	mov	x0, x20
	bl	_RelationGetRelid
	bl	_get_partition_parent
	mov	x20, x0
	mov	x0, x19
	bl	_RelationGetRelid
	bl	_get_partition_parent
	mov	x19, x0
Lloh35:
	adrp	x21, _AccessExclusiveLock@GOTPAGE
Lloh36:
	ldr	x21, [x21, _AccessExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_relation_open
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_relation_open
	mov	x19, x0
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x20
	mov	x1, x19
	bl	_validatePartitionedIndex
	ldr	w1, [x21]
	mov	x0, x20
	bl	_relation_close
	ldr	w1, [x21]
	mov	x0, x19
	bl	_relation_close
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_RELKIND_PARTITIONED_INDEX,8,3  ; @RELKIND_PARTITIONED_INDEX
	.comm	_InheritsRelationId,4,2         ; @InheritsRelationId
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_Anum_pg_inherits_inhparent,4,2 ; @Anum_pg_inherits_inhparent
	.comm	_BTEqualStrategyNumber,4,2      ; @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ; @F_OIDEQ
	.comm	_InheritsParentIndexId,4,2      ; @InheritsParentIndexId
	.comm	_INDEXRELID,4,2                 ; @INDEXRELID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache lookup failed for index %u"

	.comm	_IndexRelationId,4,2            ; @IndexRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_AccessExclusiveLock,4,2        ; @AccessExclusiveLock
	.no_dead_strip	_validatePartitionedIndex
.subsections_via_symbols
