	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_index_drop                     ## -- Begin function index_drop
	.p2align	4, 0x90
_index_drop:                            ## @index_drop
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movl	%edi, %r13d
	xorl	%esi, %esi
	callq	_IndexGetRelation
	movl	%eax, %r12d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	orl	%ebx, %r14d
	jne	LBB0_1
## %bb.2:
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ShareUpdateExclusiveLock@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_table_open
	movq	%rax, %r15
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_index_open
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_CheckTableNotInUse
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.4:
	xorl	%eax, %eax
	callq	_GetTopTransactionIdIfAny
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	movq	_INDEX_DROP_CLEAR_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_index_set_state_flags
	movq	%r15, %rdi
	callq	_CacheInvalidateRelcache
	movq	8(%r15), %rdx
	movq	%rdx, -64(%rbp)
	movq	%rdx, %rsi
	shrq	$32, %rsi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_SET_LOCKTAG_RELATION
	movq	8(%rbx), %rax
	movq	%rax, -56(%rbp)
	movq	_NoLock@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_table_close
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_index_close
	movq	_ShareUpdateExclusiveLock@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-64(%rbp), %rdi
	callq	_LockRelationIdForSession
	movl	(%r14), %esi
	leaq	-56(%rbp), %rdi
	callq	_LockRelationIdForSession
	xorl	%eax, %eax
	callq	_PopActiveSnapshot
	xorl	%eax, %eax
	callq	_CommitTransactionCommand
	xorl	%eax, %eax
	callq	_StartTransactionCommand
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$1, %edx
	callq	_WaitForLockers
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_index_concurrently_set_dead
	xorl	%eax, %eax
	callq	_CommitTransactionCommand
	xorl	%eax, %eax
	callq	_StartTransactionCommand
	movl	(%rbx), %esi
	movl	$1, %edx
	callq	_WaitForLockers
	movl	(%r14), %esi
	movl	%r12d, %edi
	callq	_table_open
	movq	%rax, %r15
	movl	(%rbx), %esi
	movl	%r13d, %edi
	callq	_index_open
	movq	%rax, %rbx
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	callq	_TransferPredicateLocksToHeapRelation
LBB0_8:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_RELKIND_PARTITIONED_INDEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_RelationDropStorage
LBB0_10:
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_index_close
	movl	%r13d, %edi
	callq	_RelationForgetRelation
	movq	_IndexRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movq	%rax, %r12
	movq	_INDEXRELID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edx
	callq	_elog
LBB0_12:
	movq	_Anum_pg_index_indexprs@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r12, %rdi
	callq	_RelationGetDescr
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_heap_attisnull
	movl	%eax, %r14d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_CatalogTupleDelete
	movq	%rbx, %rdi
	callq	_ReleaseSysCache
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_table_close
	testl	%r14d, %r14d
	jne	LBB0_14
## %bb.13:
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_RemoveStatistics
LBB0_14:
	movl	%r13d, %edi
	callq	_DeleteAttributeTuples
	movl	%r13d, %edi
	callq	_DeleteRelationTuple
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_DeleteInheritsTuple
	movq	%r15, %rdi
	callq	_CacheInvalidateRelcache
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_table_close
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.15:
	movq	_ShareUpdateExclusiveLock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-64(%rbp), %rdi
	callq	_UnlockRelationIdForSession
	movl	(%rbx), %esi
	leaq	-56(%rbp), %rdi
	callq	_UnlockRelationIdForSession
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ShareUpdateExclusiveLock,4,2   ## @ShareUpdateExclusiveLock
	.comm	_AccessExclusiveLock,4,2        ## @AccessExclusiveLock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DROP INDEX"

	.comm	_InvalidTransactionId,8,3       ## @InvalidTransactionId
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.1:                               ## @.str.1
	.asciz	"DROP INDEX CONCURRENTLY must be first action in transaction"

	.comm	_INDEX_DROP_CLEAR_VALID,4,2     ## @INDEX_DROP_CLEAR_VALID
	.comm	_NoLock,4,2                     ## @NoLock
	.comm	_RELKIND_PARTITIONED_INDEX,8,3  ## @RELKIND_PARTITIONED_INDEX
	.comm	_IndexRelationId,4,2            ## @IndexRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_INDEXRELID,4,2                 ## @INDEXRELID
L_.str.2:                               ## @.str.2
	.asciz	"cache lookup failed for index %u"

	.comm	_Anum_pg_index_indexprs,4,2     ## @Anum_pg_index_indexprs
	.comm	_InvalidOid,4,2                 ## @InvalidOid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_index_drop                     ; -- Begin function index_drop
	.p2align	2
_index_drop:                            ; @index_drop
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	w1, #0
	bl	_IndexGetRelation
	mov	x22, x0
Lloh0:
	adrp	x25, _ShareUpdateExclusiveLock@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ShareUpdateExclusiveLock@GOTPAGEOFF]
	orr	w8, w21, w19
Lloh2:
	adrp	x27, _AccessExclusiveLock@GOTPAGE
Lloh3:
	ldr	x27, [x27, _AccessExclusiveLock@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x27, x25, eq
	ldr	w23, [x8]
	mov	x1, x23
	bl	_table_open
	mov	x21, x0
	mov	x0, x20
	mov	x1, x23
	bl	_index_open
	mov	x23, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_CheckTableNotInUse
Lloh6:
	adrp	x26, _NoLock@GOTPAGE
Lloh7:
	ldr	x26, [x26, _NoLock@GOTPAGEOFF]
	cbz	w19, LBB0_4
; %bb.1:
	bl	_GetTopTransactionIdIfAny
Lloh8:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh9:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w24, [x8]
Lloh14:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_errcode
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_3:
Lloh19:
	adrp	x8, _INDEX_DROP_CLEAR_VALID@GOTPAGE
Lloh20:
	ldr	x8, [x8, _INDEX_DROP_CLEAR_VALID@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_index_set_state_flags
	mov	x0, x21
	bl	_CacheInvalidateRelcache
	ldr	x2, [x21, #8]
	str	x2, [sp, #8]
	lsr	x1, x2, #32
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_SET_LOCKTAG_RELATION
	ldr	x8, [x23, #8]
	str	x8, [sp]
	ldr	w1, [x26]
	mov	x0, x21
	bl	_table_close
	ldr	w1, [x26]
	mov	x0, x23
	bl	_index_close
	ldr	w1, [x25]
	add	x0, sp, #8
	bl	_LockRelationIdForSession
	ldr	w1, [x25]
	mov	x0, sp
	bl	_LockRelationIdForSession
	bl	_PopActiveSnapshot
	bl	_CommitTransactionCommand
	bl	_StartTransactionCommand
	ldr	w1, [x27]
	mov	w2, #1
	bl	_WaitForLockers
	mov	x0, x22
	mov	x1, x20
	bl	_index_concurrently_set_dead
	bl	_CommitTransactionCommand
	bl	_StartTransactionCommand
	ldr	w1, [x27]
	mov	w2, #1
	bl	_WaitForLockers
	ldr	w1, [x25]
	mov	x0, x22
	bl	_table_open
	mov	x21, x0
	ldr	w1, [x27]
	mov	x0, x20
	bl	_index_open
	mov	x23, x0
	b	LBB0_5
LBB0_4:
	mov	x0, x23
	bl	_TransferPredicateLocksToHeapRelation
LBB0_5:
	ldr	x8, [x23]
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _RELKIND_PARTITIONED_INDEX@GOTPAGE
Lloh23:
	ldr	x9, [x9, _RELKIND_PARTITIONED_INDEX@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x23
	bl	_RelationDropStorage
LBB0_7:
	ldr	w1, [x26]
	mov	x0, x23
	bl	_index_close
	mov	x0, x20
	bl	_RelationForgetRelation
Lloh25:
	adrp	x8, _IndexRelationId@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IndexRelationId@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x27, _RowExclusiveLock@GOTPAGE
Lloh29:
	ldr	x27, [x27, _RowExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x27]
	bl	_table_open
	mov	x22, x0
Lloh30:
	adrp	x8, _INDEXRELID@GOTPAGE
Lloh31:
	ldr	x8, [x8, _INDEXRELID@GOTPAGEOFF]
Lloh32:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x23
	bl	_SearchSysCache1
	mov	x23, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_9
; %bb.8:
Lloh33:
	adrp	x8, _ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_elog
LBB0_9:
Lloh38:
	adrp	x8, _Anum_pg_index_indexprs@GOTPAGE
Lloh39:
	ldr	x8, [x8, _Anum_pg_index_indexprs@GOTPAGEOFF]
Lloh40:
	ldr	w24, [x8]
	mov	x0, x22
	bl	_RelationGetDescr
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_heap_attisnull
	mov	x24, x0
	mov	x0, x22
	mov	x1, x23
	bl	_CatalogTupleDelete
	mov	x0, x23
	bl	_ReleaseSysCache
	ldr	w1, [x27]
	mov	x0, x22
	bl	_table_close
	cbnz	w24, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	w1, #0
	bl	_RemoveStatistics
LBB0_11:
	mov	x0, x20
	bl	_DeleteAttributeTuples
	mov	x0, x20
	bl	_DeleteRelationTuple
Lloh41:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh42:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_DeleteInheritsTuple
	mov	x0, x21
	bl	_CacheInvalidateRelcache
	ldr	w1, [x26]
	mov	x0, x21
	bl	_table_close
	cbz	w19, LBB0_13
; %bb.12:
	ldr	w1, [x25]
	add	x0, sp, #8
	bl	_UnlockRelationIdForSession
	ldr	w1, [x25]
	mov	x0, sp
	bl	_UnlockRelationIdForSession
LBB0_13:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_ShareUpdateExclusiveLock,4,2   ; @ShareUpdateExclusiveLock
	.comm	_AccessExclusiveLock,4,2        ; @AccessExclusiveLock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DROP INDEX"

	.comm	_InvalidTransactionId,8,3       ; @InvalidTransactionId
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.1:                               ; @.str.1
	.asciz	"DROP INDEX CONCURRENTLY must be first action in transaction"

	.comm	_INDEX_DROP_CLEAR_VALID,4,2     ; @INDEX_DROP_CLEAR_VALID
	.comm	_NoLock,4,2                     ; @NoLock
	.comm	_RELKIND_PARTITIONED_INDEX,8,3  ; @RELKIND_PARTITIONED_INDEX
	.comm	_IndexRelationId,4,2            ; @IndexRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_INDEXRELID,4,2                 ; @INDEXRELID
l_.str.2:                               ; @.str.2
	.asciz	"cache lookup failed for index %u"

	.comm	_Anum_pg_index_indexprs,4,2     ; @Anum_pg_index_indexprs
	.comm	_InvalidOid,4,2                 ; @InvalidOid
.subsections_via_symbols
