	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ri_FetchConstraintInfo
_ri_FetchConstraintInfo:                ## @ri_FetchConstraintInfo
	.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	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	12(%rdi), %ebx
	movl	%ebx, %edi
	callq	_OidIsValid
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_INVALID_OBJECT_DEFINITION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	8(%r13), %r15d
	movl	%r14d, %edi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errhint
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movl	%ebx, %edi
	callq	_ri_LoadConstraintInfo
	movq	%rax, %r15
	movq	(%rax), %rbx
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.3:
	cmpq	(%r13), %rbx
	jne	LBB0_7
## %bb.4:
	movq	8(%r15), %rbx
	movl	%r14d, %edi
	callq	_RelationGetRelid
	cmpq	%rax, %rbx
	jne	LBB0_7
	jmp	LBB0_8
LBB0_5:
	movl	%r14d, %edi
	callq	_RelationGetRelid
	cmpq	%rax, %rbx
	jne	LBB0_7
## %bb.6:
	movq	8(%r15), %rax
	cmpq	(%r13), %rax
	je	LBB0_8
LBB0_7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movslq	8(%r13), %r12
	movl	%r14d, %edi
	callq	_RelationGetRelationName
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movq	%r12, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_elog
LBB0_8:
	movq	16(%r15), %rdx
	movq	_FKCONSTR_MATCH_FULL@GOTPCREL(%rip), %rcx
	movq	_FKCONSTR_MATCH_PARTIAL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpq	(%rcx), %rdx
	je	LBB0_12
## %bb.9:
	cmpq	%rax, %rdx
	je	LBB0_12
## %bb.10:
	movq	_FKCONSTR_MATCH_SIMPLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	je	LBB0_12
## %bb.11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
	movq	16(%r15), %rdx
	movq	(%rbx), %rax
LBB0_12:
	cmpq	%rax, %rdx
	jne	LBB0_14
## %bb.13:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_14:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_OBJECT_DEFINITION,4,2 ## @ERRCODE_INVALID_OBJECT_DEFINITION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no pg_constraint entry for trigger \"%s\" on table \"%s\""

L_.str.1:                               ## @.str.1
	.asciz	"Remove this referential integrity trigger and its mates, then do ALTER TABLE ADD CONSTRAINT."

L_.str.2:                               ## @.str.2
	.asciz	"wrong pg_constraint entry for trigger \"%s\" on table \"%s\""

	.comm	_FKCONSTR_MATCH_FULL,8,3        ## @FKCONSTR_MATCH_FULL
	.comm	_FKCONSTR_MATCH_PARTIAL,8,3     ## @FKCONSTR_MATCH_PARTIAL
	.comm	_FKCONSTR_MATCH_SIMPLE,8,3      ## @FKCONSTR_MATCH_SIMPLE
L_.str.3:                               ## @.str.3
	.asciz	"unrecognized confmatchtype: %d"

	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.4:                               ## @.str.4
	.asciz	"MATCH PARTIAL not yet implemented"

	.no_dead_strip	_ri_FetchConstraintInfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ri_FetchConstraintInfo
_ri_FetchConstraintInfo:                ; @ri_FetchConstraintInfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w19, [x0, #12]
	mov	x0, x19
	bl	_OidIsValid
Lloh0:
	adrp	x24, _ERROR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ERROR@GOTPAGEOFF]
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w23, [x24]
Lloh2:
	adrp	x8, _ERRCODE_INVALID_OBJECT_DEFINITION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERRCODE_INVALID_OBJECT_DEFINITION@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w25, [x21, #8]
	mov	x0, x20
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x25, x0, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_2:
	mov	x0, x19
	bl	_ri_LoadConstraintInfo
	mov	x19, x0
	ldr	x23, [x0]
	cbz	w22, LBB0_5
; %bb.3:
	ldr	x8, [x21]
	cmp	x23, x8
	b.ne	LBB0_7
; %bb.4:
	ldr	x22, [x19, #8]
	mov	x0, x20
	bl	_RelationGetRelid
	cmp	x22, x0
	b.ne	LBB0_7
	b	LBB0_8
LBB0_5:
	mov	x0, x20
	bl	_RelationGetRelid
	cmp	x23, x0
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_8
LBB0_7:
	ldr	w22, [x24]
	ldrsw	x21, [x21, #8]
	mov	x0, x20
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_elog
LBB0_8:
	ldr	x2, [x19, #16]
Lloh11:
	adrp	x8, _FKCONSTR_MATCH_FULL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FKCONSTR_MATCH_FULL@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x8]
Lloh14:
	adrp	x20, _FKCONSTR_MATCH_PARTIAL@GOTPAGE
Lloh15:
	ldr	x20, [x20, _FKCONSTR_MATCH_PARTIAL@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh16:
	adrp	x10, _FKCONSTR_MATCH_SIMPLE@GOTPAGE
Lloh17:
	ldr	x10, [x10, _FKCONSTR_MATCH_SIMPLE@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x2, x9
	ccmp	x2, x8, #4, ne
	ccmp	x2, x10, #4, ne
	b.eq	LBB0_10
; %bb.9:
	ldr	w0, [x24]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_elog
	ldr	x2, [x19, #16]
	ldr	x8, [x20]
LBB0_10:
	cmp	x2, x8
	b.ne	LBB0_12
; %bb.11:
	ldr	w20, [x24]
Lloh21:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_errcode
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_12:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_OBJECT_DEFINITION,4,2 ; @ERRCODE_INVALID_OBJECT_DEFINITION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no pg_constraint entry for trigger \"%s\" on table \"%s\""

l_.str.1:                               ; @.str.1
	.asciz	"Remove this referential integrity trigger and its mates, then do ALTER TABLE ADD CONSTRAINT."

l_.str.2:                               ; @.str.2
	.asciz	"wrong pg_constraint entry for trigger \"%s\" on table \"%s\""

	.comm	_FKCONSTR_MATCH_FULL,8,3        ; @FKCONSTR_MATCH_FULL
	.comm	_FKCONSTR_MATCH_PARTIAL,8,3     ; @FKCONSTR_MATCH_PARTIAL
	.comm	_FKCONSTR_MATCH_SIMPLE,8,3      ; @FKCONSTR_MATCH_SIMPLE
l_.str.3:                               ; @.str.3
	.asciz	"unrecognized confmatchtype: %d"

	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.4:                               ; @.str.4
	.asciz	"MATCH PARTIAL not yet implemented"

	.no_dead_strip	_ri_FetchConstraintInfo
.subsections_via_symbols
