	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_truncate_one_rel          ## -- Begin function heap_truncate_one_rel
	.p2align	4, 0x90
_heap_truncate_one_rel:                 ## @heap_truncate_one_rel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_RELKIND_PARTITIONED_TABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	callq	_table_relation_nontransactional_truncate
	movq	%rbx, %rdi
	callq	_RelationTruncateIndexes
	movq	(%rbx), %rax
	movl	8(%rax), %ebx
	movl	%ebx, %edi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_table_open
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_table_relation_nontransactional_truncate
	movq	%rbx, %rdi
	callq	_RelationTruncateIndexes
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_table_close                    ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RELKIND_PARTITIONED_TABLE,8,3  ## @RELKIND_PARTITIONED_TABLE
	.comm	_AccessExclusiveLock,4,2        ## @AccessExclusiveLock
	.comm	_NoLock,4,2                     ## @NoLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_truncate_one_rel          ; -- Begin function heap_truncate_one_rel
	.p2align	2
_heap_truncate_one_rel:                 ; @heap_truncate_one_rel
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _RELKIND_PARTITIONED_TABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RELKIND_PARTITIONED_TABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_table_relation_nontransactional_truncate
	mov	x0, x19
	bl	_RelationTruncateIndexes
	ldr	x8, [x19]
	ldr	w19, [x8, #8]
	mov	x0, x19
	bl	_OidIsValid
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _AccessExclusiveLock@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AccessExclusiveLock@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_table_open
	mov	x19, x0
	bl	_table_relation_nontransactional_truncate
	mov	x0, x19
	bl	_RelationTruncateIndexes
Lloh6:
	adrp	x8, _NoLock@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_table_close
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RELKIND_PARTITIONED_TABLE,8,3  ; @RELKIND_PARTITIONED_TABLE
	.comm	_AccessExclusiveLock,4,2        ; @AccessExclusiveLock
	.comm	_NoLock,4,2                     ; @NoLock
.subsections_via_symbols
