	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CheckConstraintFetch
_CheckConstraintFetch:                  ## @CheckConstraintFetch
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %ebx
	movq	_Anum_pg_constraint_conrelid@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_F_OIDEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_RelationGetRelid
	movl	%eax, %edi
	callq	_ObjectIdGetDatum
	leaq	-92(%rbp), %r14
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %r12d
	movl	%r13d, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_ScanKeyInit
	movq	_ConstraintRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movq	%rax, %rdi
	movq	_ConstraintRelidTypidNameIndexId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movq	%r14, %r9
	callq	_systable_beginscan
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_systable_getnext
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	xorl	%ebx, %ebx
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_TextDatumGetCString
	movq	%rax, %rbx
	movq	_CacheMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_MemoryContextStrdup
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r13,8)
	movq	%rbx, %rdi
	callq	_pfree
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	incl	%ebx
	movl	-64(%rbp), %r12d                ## 4-byte Reload
	movl	-60(%rbp), %r13d                ## 4-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	callq	_systable_getnext
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_GETSTRUCT
	movslq	%eax, %r15
	movq	(%r15), %rax
	movq	_CONSTRAINT_CHECK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ebx, %r12d
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_RelationGetRelationName
	movl	%r12d, %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_elog
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r15), %eax
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %rcx
	leaq	(%rcx,%rcx,2), %r13
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, 20(%r12,%r13,8)
	movl	12(%r15), %eax
	movl	%eax, 16(%r12,%r13,8)
	movq	_CacheMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	8(%r15), %edi
	callq	_NameStr
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_MemoryContextStrdup
	movq	%rax, 8(%r12,%r13,8)
	movq	_Anum_pg_constraint_conbin@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movl	%r14d, %edi
	leaq	-68(%rbp), %rcx
	callq	_fastgetattr
	movl	%eax, %ebx
	cmpl	$0, -68(%rbp)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_RelationGetRelationName
	movl	%r14d, %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_elog
	jmp	LBB0_7
LBB0_9:
	movl	%r13d, %edi
	callq	_systable_endscan
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_table_close
	movl	%r12d, %r15d
	subl	%ebx, %r15d
	je	LBB0_11
## %bb.10:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_RelationGetRelationName
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_elog
LBB0_11:
	cmpl	$2, %r12d
	jl	LBB0_13
## %bb.12:
	movq	_CheckConstraintCmp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	$24, %edx
	callq	_qsort
LBB0_13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Anum_pg_constraint_conrelid,4,2 ## @Anum_pg_constraint_conrelid
	.comm	_BTEqualStrategyNumber,4,2      ## @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ## @F_OIDEQ
	.comm	_ConstraintRelationId,4,2       ## @ConstraintRelationId
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_ConstraintRelidTypidNameIndexId,4,2 ## @ConstraintRelidTypidNameIndexId
	.comm	_CONSTRAINT_CHECK,8,3           ## @CONSTRAINT_CHECK
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected constraint record found for rel %s"

	.comm	_CacheMemoryContext,4,2         ## @CacheMemoryContext
	.comm	_Anum_pg_constraint_conbin,4,2  ## @Anum_pg_constraint_conbin
L_.str.1:                               ## @.str.1
	.asciz	"null conbin for rel %s"

L_.str.2:                               ## @.str.2
	.asciz	"%d constraint record(s) missing for rel %s"

	.comm	_CheckConstraintCmp,4,2         ## @CheckConstraintCmp
	.no_dead_strip	_CheckConstraintFetch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CheckConstraintFetch
_CheckConstraintFetch:                  ; @CheckConstraintFetch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x19, [x8, #8]
	ldr	w27, [x8]
Lloh0:
	adrp	x8, _Anum_pg_constraint_conrelid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Anum_pg_constraint_conrelid@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _BTEqualStrategyNumber@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BTEqualStrategyNumber@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, _F_OIDEQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _F_OIDEQ@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	bl	_RelationGetRelid
	bl	_ObjectIdGetDatum
	mov	x4, x0
	add	x0, sp, #28
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_ScanKeyInit
Lloh9:
	adrp	x8, _ConstraintRelationId@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ConstraintRelationId@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _AccessShareLock@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AccessShareLock@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_table_open
Lloh15:
	adrp	x8, _ConstraintRelidTypidNameIndexId@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ConstraintRelidTypidNameIndexId@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x5, sp, #28
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	w2, #1
	mov	x3, #0
	mov	w4, #1
	bl	_systable_beginscan
	mov	x23, x0
	bl	_systable_getnext
	mov	x26, x0
	bl	_HeapTupleIsValid
	mov	w25, #0
	cbz	x0, LBB0_9
; %bb.1:
Lloh18:
	adrp	x28, _CONSTRAINT_CHECK@GOTPAGE
Lloh19:
	ldr	x28, [x28, _CONSTRAINT_CHECK@GOTPAGEOFF]
Lloh20:
	adrp	x20, _CacheMemoryContext@GOTPAGE
Lloh21:
	ldr	x20, [x20, _CacheMemoryContext@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x21, w25
	mov	x0, x26
	bl	_TextDatumGetCString
	mov	x26, x0
	ldr	w0, [x20]
	mov	x1, x26
	bl	_MemoryContextStrdup
	mov	w8, #24
	mul	x8, x21, x8
	str	x0, [x19, x8]
	mov	x0, x26
	bl	_pfree
	add	w25, w25, #1
	mov	x27, x24
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_systable_getnext
	mov	x26, x0
	bl	_HeapTupleIsValid
	cbz	x0, LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x26
	bl	_GETSTRUCT
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x21, w0
	ldr	x8, [x21]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x27
	cmp	w27, w25
	b.gt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh22:
	adrp	x8, _ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w27, [x8]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_RelationGetRelationName
	mov	x2, x0
	mov	x0, x27
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #24
	smaddl	x22, w25, w8, x19
	ldur	d0, [x21, #12]
	str	d0, [x22, #16]
	ldr	w27, [x20]
	ldr	w0, [x21, #8]
	bl	_NameStr
	mov	x1, x0
	mov	x0, x27
	bl	_MemoryContextStrdup
	str	x0, [x22, #8]
Lloh27:
	adrp	x8, _Anum_pg_constraint_conbin@GOTPAGE
Lloh28:
	ldr	x8, [x8, _Anum_pg_constraint_conbin@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x2, [x8]
	add	x3, sp, #24
	mov	x0, x26
	bl	_fastgetattr
	mov	x26, x0
	ldr	w8, [sp, #24]
	cbz	w8, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh30:
	adrp	x8, _ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh32:
	ldr	w27, [x8]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_RelationGetRelationName
	mov	x2, x0
	mov	x0, x27
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
	b	LBB0_2
LBB0_9:
	mov	x0, x23
	bl	_systable_endscan
Lloh35:
	adrp	x8, _AccessShareLock@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AccessShareLock@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_table_close
	subs	w22, w27, w25
	b.eq	LBB0_11
; %bb.10:
Lloh38:
	adrp	x8, _ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w23, [x8]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh41:
	adrp	x1, l_.str.2@PAGE
Lloh42:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x2, x22
	bl	_elog
LBB0_11:
	cmp	w27, #2
	b.lt	LBB0_13
; %bb.12:
Lloh43:
	adrp	x8, _CheckConstraintCmp@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CheckConstraintCmp@GOTPAGEOFF]
Lloh45:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x27
	mov	w2, #24
	bl	_qsort
LBB0_13:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.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 AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_Anum_pg_constraint_conrelid,4,2 ; @Anum_pg_constraint_conrelid
	.comm	_BTEqualStrategyNumber,4,2      ; @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ; @F_OIDEQ
	.comm	_ConstraintRelationId,4,2       ; @ConstraintRelationId
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_ConstraintRelidTypidNameIndexId,4,2 ; @ConstraintRelidTypidNameIndexId
	.comm	_CONSTRAINT_CHECK,8,3           ; @CONSTRAINT_CHECK
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected constraint record found for rel %s"

	.comm	_CacheMemoryContext,4,2         ; @CacheMemoryContext
	.comm	_Anum_pg_constraint_conbin,4,2  ; @Anum_pg_constraint_conbin
l_.str.1:                               ; @.str.1
	.asciz	"null conbin for rel %s"

l_.str.2:                               ; @.str.2
	.asciz	"%d constraint record(s) missing for rel %s"

	.comm	_CheckConstraintCmp,4,2         ; @CheckConstraintCmp
	.no_dead_strip	_CheckConstraintFetch
.subsections_via_symbols
