	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_truncate_find_FKs         ## -- Begin function heap_truncate_find_FKs
	.p2align	4, 0x90
_heap_truncate_find_FKs:                ## @heap_truncate_find_FKs
	.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
	movq	%rdi, %r12
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_ConstraintRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, %edi
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_systable_beginscan
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_systable_getnext
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	_CONSTRAINT_FOREIGN@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	callq	_systable_getnext
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_GETSTRUCT
	movslq	%eax, %rbx
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%rbx), %esi
	movq	%r12, %rdi
	callq	_list_member_oid
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %esi
	movq	%r12, %rdi
	callq	_list_member_oid
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_lappend_oid
	movq	%rax, %r14
	jmp	LBB0_6
LBB0_7:
	movl	%r13d, %edi
	callq	_systable_endscan
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_table_close
	movq	_list_oid_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_list_sort
	movq	%r14, %rdi
	callq	_list_deduplicate_oid
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
	.comm	_ConstraintRelationId,4,2       ## @ConstraintRelationId
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_CONSTRAINT_FOREIGN,8,3         ## @CONSTRAINT_FOREIGN
	.comm	_list_oid_cmp,4,2               ## @list_oid_cmp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_truncate_find_FKs         ; -- Begin function heap_truncate_find_FKs
	.p2align	2
_heap_truncate_find_FKs:                ; @heap_truncate_find_FKs
	.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	x20, x0
Lloh0:
	adrp	x8, _NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x8, _ConstraintRelationId@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ConstraintRelationId@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x24, _AccessShareLock@GOTPAGE
Lloh7:
	ldr	x24, [x24, _AccessShareLock@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_table_open
	mov	x21, x0
Lloh8:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh9:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_systable_beginscan
	mov	x22, x0
	bl	_systable_getnext
	mov	x23, x0
	bl	_HeapTupleIsValid
	cbz	x0, LBB0_7
; %bb.1:
Lloh11:
	adrp	x25, _CONSTRAINT_FOREIGN@GOTPAGE
Lloh12:
	ldr	x25, [x25, _CONSTRAINT_FOREIGN@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_systable_getnext
	mov	x23, x0
	bl	_HeapTupleIsValid
	cbz	x0, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_GETSTRUCT
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
	ldr	x8, [x23]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x23, #12]
	mov	x0, x20
	bl	_list_member_oid
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x23, #8]
	mov	x0, x20
	bl	_list_member_oid
	cbnz	w0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x23, #8]
	mov	x0, x19
	bl	_lappend_oid
	mov	x19, x0
	b	LBB0_2
LBB0_7:
	mov	x0, x22
	bl	_systable_endscan
	ldr	w1, [x24]
	mov	x0, x21
	bl	_table_close
Lloh13:
	adrp	x8, _list_oid_cmp@GOTPAGE
Lloh14:
	ldr	x8, [x8, _list_oid_cmp@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_list_sort
	mov	x0, x19
	bl	_list_deduplicate_oid
	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
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
	.comm	_ConstraintRelationId,4,2       ; @ConstraintRelationId
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_CONSTRAINT_FOREIGN,8,3         ; @CONSTRAINT_FOREIGN
	.comm	_list_oid_cmp,4,2               ; @list_oid_cmp
.subsections_via_symbols
