	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function validateForeignKeyConstraint
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_validateForeignKeyConstraint:          ## @validateForeignKeyConstraint
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
	leaq	-176(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_MemSet
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	movq	%r14, -176(%rbp)
	movq	_TRIGGER_FIRES_ON_ORIGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -124(%rbp)
	movl	$1, -168(%rbp)
	movl	%ebx, %edi
	callq	_RelationGetRelid
	movl	%eax, -128(%rbp)
	movq	%r13, -136(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -144(%rbp)
	movq	$0, -164(%rbp)
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_RI_Initial_Check
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	xorl	%eax, %eax
	callq	_GetLatestSnapshot
	movl	%eax, %edi
	callq	_RegisterSnapshot
	movl	%eax, %ebx
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_table_slot_create
	movq	%rax, %r14
	movl	%r12d, %edi
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_table_beginscan
	movq	%r15, %rbx
	movl	%eax, %r15d
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ALLOCSET_SMALL_SIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_AllocSetContextCreate
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_ForwardScanDirection@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movq	%r14, %rdx
	callq	_table_scan_getnextslot
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_fcinfo@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_LOCAL_FCINFO
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movl	%r12d, %r14d
	movq	%rbx, %r12
	movq	_fcinfo@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%edi, %edi
	callq	_SizeForFunctionCallInfo
	movq	%rbx, %rdi
	movq	%r12, %rbx
	movl	%r14d, %r12d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_MemSet
	movq	_T_TriggerData@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_TRIGGER_EVENT_ROW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TRIGGER_EVENT_INSERT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -112(%rbp)
	movl	%r12d, -68(%rbp)
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ExecFetchSlotHeapTuple
	movl	%eax, -72(%rbp)
	movq	%r14, -80(%rbp)
	leaq	-96(%rbp), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	%rbx, -104(%rbp)
	movq	_fcinfo@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	-112(%rbp), %rax
	movq	%rax, 24(%rdi)
	callq	_RI_FKey_check_ins
	movl	%r13d, %edi
	callq	_MemoryContextReset
	movq	_ForwardScanDirection@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movq	%r14, %rdx
	callq	_table_scan_getnextslot
	testq	%rax, %rax
	jne	LBB0_3
LBB0_4:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextSwitchTo
	movl	%r13d, %edi
	callq	_MemoryContextDelete
	movl	%r15d, %edi
	callq	_table_endscan
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_UnregisterSnapshot
	movq	%r14, %rdi
	callq	_ExecDropSingleTupleTableSlot
LBB0_5:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG1,4,2                     ## @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"validating foreign key constraint \"%s\""

	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_TRIGGER_FIRES_ON_ORIGIN,4,2    ## @TRIGGER_FIRES_ON_ORIGIN
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
L_.str.1:                               ## @.str.1
	.asciz	"validateForeignKeyConstraint"

	.comm	_ALLOCSET_SMALL_SIZES,4,2       ## @ALLOCSET_SMALL_SIZES
	.comm	_ForwardScanDirection,4,2       ## @ForwardScanDirection
	.comm	_fcinfo,8,3                     ## @fcinfo
	.comm	_T_TriggerData,4,2              ## @T_TriggerData
	.comm	_TRIGGER_EVENT_INSERT,4,2       ## @TRIGGER_EVENT_INSERT
	.comm	_TRIGGER_EVENT_ROW,4,2          ## @TRIGGER_EVENT_ROW
	.no_dead_strip	_validateForeignKeyConstraint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validateForeignKeyConstraint
_validateForeignKeyConstraint:          ; @validateForeignKeyConstraint
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
	add	x0, sp, #64
	mov	w1, #0
	mov	w2, #64
	bl	_MemSet
Lloh5:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh6:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #120]
	str	x23, [sp, #64]
Lloh8:
	adrp	x8, _TRIGGER_FIRES_ON_ORIGIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRIGGER_FIRES_ON_ORIGIN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	w9, #1
	str	w8, [sp, #116]
	str	w9, [sp, #72]
	mov	x0, x22
	bl	_RelationGetRelid
	str	w0, [sp, #112]
	stp	x20, x21, [sp, #96]
	stp	wzr, wzr, [sp, #76]
	add	x0, sp, #64
	mov	x1, x19
	mov	x2, x22
	bl	_RI_Initial_Check
	cbnz	x0, LBB0_5
; %bb.1:
	bl	_GetLatestSnapshot
	bl	_RegisterSnapshot
	mov	x20, x0
	mov	x0, x19
	mov	x1, #0
	bl	_table_slot_create
	mov	x21, x0
	mov	x0, x19
	str	w20, [sp, #4]                   ; 4-byte Folded Spill
	mov	x1, x20
	mov	w2, #0
	mov	x3, #0
	bl	_table_beginscan
	mov	x22, x0
Lloh11:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _ALLOCSET_SMALL_SIZES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ALLOCSET_SMALL_SIZES@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_AllocSetContextCreate
	mov	x23, x0
	bl	_MemoryContextSwitchTo
	str	w0, [sp]                        ; 4-byte Folded Spill
Lloh19:
	adrp	x26, _ForwardScanDirection@GOTPAGE
Lloh20:
	ldr	x26, [x26, _ForwardScanDirection@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x22
	mov	x2, x21
	bl	_table_scan_getnextslot
	cbz	x0, LBB0_4
; %bb.2:
	add	x8, sp, #8
Lloh21:
	adrp	x28, _fcinfo@GOTPAGE
Lloh22:
	ldr	x28, [x28, _fcinfo@GOTPAGEOFF]
	add	x20, x8, #16
Lloh23:
	adrp	x27, _TRIGGER_EVENT_ROW@GOTPAGE
Lloh24:
	ldr	x27, [x27, _TRIGGER_EVENT_ROW@GOTPAGEOFF]
	add	x24, sp, #64
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x28]
	mov	w1, #0
	bl	_LOCAL_FCINFO
	bl	_CHECK_FOR_INTERRUPTS
	ldr	x25, [x28]
	mov	w0, #0
	bl	_SizeForFunctionCallInfo
	mov	x2, x0
	mov	x0, x25
	mov	w1, #0
	bl	_MemSet
Lloh25:
	adrp	x8, _T_TriggerData@GOTPAGE
Lloh26:
	ldr	x8, [x8, _T_TriggerData@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [sp, #56]
Lloh28:
	adrp	x8, _TRIGGER_EVENT_INSERT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TRIGGER_EVENT_INSERT@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldr	w9, [x27]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	str	w19, [sp, #52]
	mov	x0, x21
	mov	w1, #0
	mov	x2, #0
	bl	_ExecFetchSlotHeapTuple
	str	w0, [sp, #48]
	stp	xzr, xzr, [x20]
	str	x21, [sp, #40]
	str	x24, [sp, #16]
	ldr	x0, [x28]
	add	x8, sp, #8
	str	x8, [x0, #24]
	bl	_RI_FKey_check_ins
	mov	x0, x23
	bl	_MemoryContextReset
	ldr	w1, [x26]
	mov	x0, x22
	mov	x2, x21
	bl	_table_scan_getnextslot
	cbnz	x0, LBB0_3
LBB0_4:
	ldr	w0, [sp]                        ; 4-byte Folded Reload
	bl	_MemoryContextSwitchTo
	mov	x0, x23
	bl	_MemoryContextDelete
	mov	x0, x22
	bl	_table_endscan
	ldr	w0, [sp, #4]                    ; 4-byte Folded Reload
	bl	_UnregisterSnapshot
	mov	x0, x21
	bl	_ExecDropSingleTupleTableSlot
LBB0_5:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG1,4,2                     ; @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"validating foreign key constraint \"%s\""

	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_TRIGGER_FIRES_ON_ORIGIN,4,2    ; @TRIGGER_FIRES_ON_ORIGIN
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
l_.str.1:                               ; @.str.1
	.asciz	"validateForeignKeyConstraint"

	.comm	_ALLOCSET_SMALL_SIZES,4,2       ; @ALLOCSET_SMALL_SIZES
	.comm	_ForwardScanDirection,4,2       ; @ForwardScanDirection
	.comm	_fcinfo,8,3                     ; @fcinfo
	.comm	_T_TriggerData,4,2              ; @T_TriggerData
	.comm	_TRIGGER_EVENT_INSERT,4,2       ; @TRIGGER_EVENT_INSERT
	.comm	_TRIGGER_EVENT_ROW,4,2          ; @TRIGGER_EVENT_ROW
	.no_dead_strip	_validateForeignKeyConstraint
.subsections_via_symbols
