	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RemoveConstraintById           ## -- Begin function RemoveConstraintById
	.p2align	4, 0x90
_RemoveConstraintById:                  ## @RemoveConstraintById
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	_ConstraintRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, %r14d
	movq	_CONSTROID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_elog
LBB0_2:
	movq	%r13, %rdi
	callq	_GETSTRUCT
	movq	%rax, %r12
	movl	12(%rax), %edi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movl	12(%r12), %edi
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, %r15d
	movq	(%r12), %rax
	movq	_CONSTRAINT_CHECK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rbx
	jne	LBB0_9
## %bb.4:
	movq	_RelationRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_table_open
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_RELOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	12(%r12), %edi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCacheCopy1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_6:
	movq	%rbx, %rdi
	callq	_GETSTRUCT
	movq	%rax, %r12
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_RelationGetRelationName
	leaq	L_.str.2(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_elog
	movq	(%r12), %rax
LBB0_8:
	decq	%rax
	movq	%rax, (%r12)
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_CatalogTupleUpdate
	movq	%rbx, %rdi
	callq	_heap_freetuple
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%r12d, %edi
	callq	_table_close
LBB0_9:
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_table_close
	jmp	LBB0_12
LBB0_10:
	movl	8(%r12), %edi
	callq	_OidIsValid
	testq	%rax, %rax
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rbx
	jne	LBB0_12
## %bb.11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edx
	callq	_elog
LBB0_12:
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_CatalogTupleDelete
	movq	%r13, %rdi
	callq	_ReleaseSysCache
	movl	(%rbx), %esi
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_table_close                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ConstraintRelationId,4,2       ## @ConstraintRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_CONSTROID,4,2                  ## @CONSTROID
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache lookup failed for constraint %u"

	.comm	_AccessExclusiveLock,4,2        ## @AccessExclusiveLock
	.comm	_CONSTRAINT_CHECK,8,3           ## @CONSTRAINT_CHECK
	.comm	_RelationRelationId,4,2         ## @RelationRelationId
	.comm	_RELOID,4,2                     ## @RELOID
L_.str.1:                               ## @.str.1
	.asciz	"cache lookup failed for relation %u"

L_.str.2:                               ## @.str.2
	.asciz	"relation \"%s\" has relchecks = 0"

	.comm	_NoLock,4,2                     ## @NoLock
L_.str.3:                               ## @.str.3
	.asciz	"constraint %u is not of a known type"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RemoveConstraintById           ; -- Begin function RemoveConstraintById
	.p2align	2
_RemoveConstraintById:                  ; @RemoveConstraintById
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x0
Lloh0:
	adrp	x8, _ConstraintRelationId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ConstraintRelationId@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x26, _RowExclusiveLock@GOTPAGE
Lloh4:
	ldr	x26, [x26, _RowExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_table_open
	mov	x19, x0
Lloh5:
	adrp	x8, _CONSTROID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CONSTROID@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	mov	x0, x21
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x20
	bl	_SearchSysCache1
	mov	x20, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_elog
LBB0_2:
	mov	x0, x20
	bl	_GETSTRUCT
	mov	x23, x0
	ldr	w0, [x0, #12]
	bl	_OidIsValid
	cbz	x0, LBB0_10
; %bb.3:
	ldr	w0, [x23, #12]
Lloh13:
	adrp	x8, _AccessExclusiveLock@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AccessExclusiveLock@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_table_open
	mov	x21, x0
	ldr	x8, [x23]
Lloh16:
	adrp	x9, _CONSTRAINT_CHECK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CONSTRAINT_CHECK@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.4:
Lloh19:
	adrp	x8, _RelationRelationId@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RelationRelationId@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	w1, [x26]
	bl	_table_open
	mov	x22, x0
Lloh22:
	adrp	x8, _RELOID@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RELOID@GOTPAGEOFF]
Lloh24:
	ldr	w24, [x8]
	ldr	w0, [x23, #12]
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x24
	bl	_SearchSysCacheCopy1
	mov	x24, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_6
; %bb.5:
Lloh25:
	adrp	x8, _ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	w2, [x23, #12]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_6:
	mov	x0, x24
	bl	_GETSTRUCT
	mov	x23, x0
	ldr	x8, [x0]
	cbnz	x8, LBB0_8
; %bb.7:
Lloh30:
	adrp	x8, _ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh32:
	ldr	w25, [x8]
	mov	x0, x21
	bl	_RelationGetRelationName
	mov	x2, x0
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x25
	bl	_elog
	ldr	x8, [x23]
LBB0_8:
	sub	x8, x8, #1
	str	x8, [x23]
	mov	x0, x22
	mov	x1, x24
	mov	x2, x24
	bl	_CatalogTupleUpdate
	mov	x0, x24
	bl	_heap_freetuple
	ldr	w1, [x26]
	mov	x0, x22
	bl	_table_close
LBB0_9:
Lloh35:
	adrp	x8, _NoLock@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_table_close
	b	LBB0_12
LBB0_10:
	ldr	w0, [x23, #8]
	bl	_OidIsValid
	cbnz	x0, LBB0_12
; %bb.11:
Lloh38:
	adrp	x8, _ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_elog
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	_CatalogTupleDelete
	mov	x0, x20
	bl	_ReleaseSysCache
	ldr	w1, [x26]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_table_close
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_ConstraintRelationId,4,2       ; @ConstraintRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_CONSTROID,4,2                  ; @CONSTROID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache lookup failed for constraint %u"

	.comm	_AccessExclusiveLock,4,2        ; @AccessExclusiveLock
	.comm	_CONSTRAINT_CHECK,8,3           ; @CONSTRAINT_CHECK
	.comm	_RelationRelationId,4,2         ; @RelationRelationId
	.comm	_RELOID,4,2                     ; @RELOID
l_.str.1:                               ; @.str.1
	.asciz	"cache lookup failed for relation %u"

l_.str.2:                               ; @.str.2
	.asciz	"relation \"%s\" has relchecks = 0"

	.comm	_NoLock,4,2                     ; @NoLock
l_.str.3:                               ; @.str.3
	.asciz	"constraint %u is not of a known type"

.subsections_via_symbols
