	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tryAttachPartitionForeignKey
_tryAttachPartitionForeignKey:          ## @tryAttachPartitionForeignKey
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r15
	movl	%ecx, %r13d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_CONSTROID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movq	%rax, %rbx
	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
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_elog
LBB0_2:
	movq	%rbx, %rdi
	callq	_GETSTRUCT
	movq	(%r12), %rcx
	cmpq	(%rax), %rcx
	jne	LBB0_6
## %bb.3:
	cmpl	%r13d, 8(%r12)
	jne	LBB0_6
## %bb.4:
	testl	%r13d, %r13d
	jle	LBB0_12
## %bb.5:
	movq	16(%rbp), %r8
	movq	16(%r12), %rcx
	movl	%r13d, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	cmpq	(%r15,%rsi,8), %rdi
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	24(%r12), %rdi
	movq	(%rdi,%rsi,8), %rdi
	cmpq	(%r14,%rsi,8), %rdi
	jne	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	32(%r12), %rdi
	movq	(%rdi,%rsi,8), %rdi
	cmpq	(%r8,%rsi,8), %rdi
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_9
LBB0_12:
	movq	%rax, %r13
	movq	_CONSTROID@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	40(%r12), %rdi
	callq	_ObjectIdGetDatum
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	40(%r12), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_14:
	movq	%r14, %rdi
	callq	_GETSTRUCT
	movq	%rax, %r15
	movl	52(%rax), %edi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_15
LBB0_21:
	movq	%rbx, %rdi
	callq	_ReleaseSysCache
	movq	%r14, %rdi
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
LBB0_7:
	callq	_ReleaseSysCache
	xorl	%ebx, %ebx
LBB0_29:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	cmpl	$0, 48(%r15)
	je	LBB0_21
## %bb.16:
	movq	8(%r15), %rax
	cmpq	8(%r13), %rax
	jne	LBB0_21
## %bb.17:
	movq	16(%r15), %rax
	cmpq	16(%r13), %rax
	jne	LBB0_21
## %bb.18:
	movq	24(%r15), %rax
	cmpq	24(%r13), %rax
	jne	LBB0_21
## %bb.19:
	movq	32(%r15), %rax
	cmpq	32(%r13), %rax
	jne	LBB0_21
## %bb.20:
	movq	40(%r15), %rax
	cmpq	40(%r13), %rax
	jne	LBB0_21
## %bb.22:
	movq	%r14, %rdi
	callq	_ReleaseSysCache
	movq	%rbx, %rdi
	callq	_ReleaseSysCache
	movq	_TriggerRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, %r13d
	movq	_Anum_pg_trigger_tgconstraint@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_F_OIDEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	40(%r12), %rdi
	callq	_ObjectIdGetDatum
	leaq	-52(%rbp), %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_ScanKeyInit
	movq	_TriggerConstraintIndexId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %ebx
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	leaq	-52(%rbp), %r9
	callq	_systable_beginscan
	movl	%eax, %r14d
	movl	%eax, %edi
	jmp	LBB0_23
LBB0_27:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	%r14d, %edi
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	callq	_systable_getnext
	testq	%rax, %rax
	je	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%rax, %rdi
	callq	_GETSTRUCT
	movq	%rax, %r13
	movq	(%rax), %rax
	cmpq	48(%r12), %rax
	jne	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	8(%r13), %rax
	cmpq	(%r12), %rax
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	_TriggerRelationId@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	16(%r13), %esi
	xorl	%edx, %edx
	callq	_deleteDependencyRecordsFor
	xorl	%eax, %eax
	callq	_CommandCounterIncrement
	movl	-48(%rbp), %edi
	movl	(%r15), %esi
	movl	16(%r13), %edx
	callq	_ObjectAddressSet
	movq	_DROP_RESTRICT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	xorl	%edx, %edx
	callq	_performDeletion
	xorl	%eax, %eax
	callq	_CommandCounterIncrement
	jmp	LBB0_27
LBB0_28:
	movl	%r14d, %edi
	callq	_systable_endscan
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_table_close
	movq	40(%r12), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_ConstraintSetParentConstraint
	xorl	%eax, %eax
	callq	_CommandCounterIncrement
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.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	_TriggerRelationId,4,2          ## @TriggerRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_Anum_pg_trigger_tgconstraint,4,2 ## @Anum_pg_trigger_tgconstraint
	.comm	_BTEqualStrategyNumber,4,2      ## @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ## @F_OIDEQ
	.comm	_TriggerConstraintIndexId,4,2   ## @TriggerConstraintIndexId
	.comm	_DROP_RESTRICT,4,2              ## @DROP_RESTRICT
	.no_dead_strip	_tryAttachPartitionForeignKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tryAttachPartitionForeignKey
_tryAttachPartitionForeignKey:          ; @tryAttachPartitionForeignKey
	.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	x24, x6
	mov	x25, x5
	mov	x26, x4
	mov	x27, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x28, _CONSTROID@GOTPAGE
Lloh1:
	ldr	x28, [x28, _CONSTROID@GOTPAGEOFF]
	ldr	w22, [x28]
	mov	x0, x2
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x22
	bl	_SearchSysCache1
	mov	x22, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_elog
LBB0_2:
	mov	x0, x22
	bl	_GETSTRUCT
	ldr	x8, [x21]
	ldr	x9, [x0]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.3:
	ldr	w8, [x21, #8]
	cmp	w8, w27
	b.ne	LBB0_14
; %bb.4:
	mov	x23, x0
	cmp	w27, #1
	b.lt	LBB0_10
; %bb.5:
	mov	x8, #0
	ldr	x9, [x21, #16]
	mov	w10, w27
	lsl	x10, x10, #3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x8]
	ldr	x12, [x26, x8]
	cmp	x11, x12
	b.ne	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x11, [x21, #24]
	ldr	x11, [x11, x8]
	ldr	x12, [x25, x8]
	cmp	x11, x12
	b.ne	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x11, [x21, #32]
	ldr	x11, [x11, x8]
	ldr	x12, [x24, x8]
	cmp	x11, x12
	b.ne	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, #8
	cmp	x10, x8
	b.ne	LBB0_6
LBB0_10:
	ldr	w24, [x28]
	ldr	x0, [x21, #40]
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x24
	bl	_SearchSysCache1
	mov	x24, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_12
; %bb.11:
Lloh7:
	adrp	x8, _ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	x2, [x21, #40]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_12:
	mov	x0, x24
	bl	_GETSTRUCT
	mov	x25, x0
	ldr	w0, [x0, #52]
	bl	_OidIsValid
	cbz	x0, LBB0_17
LBB0_13:
	mov	x0, x22
	bl	_ReleaseSysCache
	mov	x0, x24
	b	LBB0_15
LBB0_14:
	mov	x0, x22
LBB0_15:
	bl	_ReleaseSysCache
	mov	w0, #0
LBB0_16:
	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
LBB0_17:
	ldr	w8, [x25, #48]
	cbz	w8, LBB0_13
; %bb.18:
	ldr	x8, [x25, #8]
	ldr	x9, [x23, #8]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.19:
	ldr	x8, [x25, #16]
	ldr	x9, [x23, #16]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.20:
	ldr	x8, [x25, #24]
	ldr	x9, [x23, #24]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.21:
	ldr	x8, [x25, #32]
	ldr	x9, [x23, #32]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.22:
	ldr	x8, [x25, #40]
	ldr	x9, [x23, #40]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.23:
	mov	x0, x24
	bl	_ReleaseSysCache
	mov	x0, x22
	bl	_ReleaseSysCache
Lloh12:
	adrp	x27, _TriggerRelationId@GOTPAGE
Lloh13:
	ldr	x27, [x27, _TriggerRelationId@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh14:
	adrp	x26, _RowExclusiveLock@GOTPAGE
Lloh15:
	ldr	x26, [x26, _RowExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_table_open
	mov	x22, x0
Lloh16:
	adrp	x8, _Anum_pg_trigger_tgconstraint@GOTPAGE
Lloh17:
	ldr	x8, [x8, _Anum_pg_trigger_tgconstraint@GOTPAGEOFF]
Lloh18:
	adrp	x9, _BTEqualStrategyNumber@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BTEqualStrategyNumber@GOTPAGEOFF]
Lloh20:
	ldr	w23, [x8]
Lloh21:
	ldr	w24, [x9]
Lloh22:
	adrp	x8, _F_OIDEQ@GOTPAGE
Lloh23:
	ldr	x8, [x8, _F_OIDEQ@GOTPAGEOFF]
Lloh24:
	ldr	w25, [x8]
	ldr	x0, [x21, #40]
	bl	_ObjectIdGetDatum
	mov	x4, x0
	add	x0, sp, #12
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	bl	_ScanKeyInit
Lloh25:
	adrp	x8, _TriggerConstraintIndexId@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TriggerConstraintIndexId@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	add	x5, sp, #12
	mov	x0, x22
	mov	w2, #1
	mov	x3, #0
	mov	w4, #1
	bl	_systable_beginscan
	mov	x23, x0
	bl	_systable_getnext
	cbz	x0, LBB0_29
; %bb.24:
Lloh28:
	adrp	x25, _DROP_RESTRICT@GOTPAGE
Lloh29:
	ldr	x25, [x25, _DROP_RESTRICT@GOTPAGEOFF]
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	mov	x0, x23
	bl	_systable_getnext
	cbz	x0, LBB0_29
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	bl	_GETSTRUCT
	ldr	x8, [x0]
	ldr	x9, [x21, #48]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	x24, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.28:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	w0, [x27]
	ldr	w1, [x24, #16]
	mov	w2, #0
	bl	_deleteDependencyRecordsFor
	bl	_CommandCounterIncrement
	ldr	w0, [sp, #8]
	ldr	w1, [x27]
	ldr	w2, [x24, #16]
	bl	_ObjectAddressSet
	ldr	w1, [x25]
	add	x0, sp, #8
	mov	w2, #0
	bl	_performDeletion
	bl	_CommandCounterIncrement
	b	LBB0_25
LBB0_29:
	mov	x0, x23
	bl	_systable_endscan
	ldr	w1, [x26]
	mov	x0, x22
	bl	_table_close
	ldr	x0, [x21, #40]
	mov	x1, x20
	mov	x2, x19
	bl	_ConstraintSetParentConstraint
	bl	_CommandCounterIncrement
	mov	w0, #1
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.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	_TriggerRelationId,4,2          ; @TriggerRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_Anum_pg_trigger_tgconstraint,4,2 ; @Anum_pg_trigger_tgconstraint
	.comm	_BTEqualStrategyNumber,4,2      ; @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ; @F_OIDEQ
	.comm	_TriggerConstraintIndexId,4,2   ; @TriggerConstraintIndexId
	.comm	_DROP_RESTRICT,4,2              ; @DROP_RESTRICT
	.no_dead_strip	_tryAttachPartitionForeignKey
.subsections_via_symbols
