	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_tt_destroy                 ## -- Begin function ttm_tt_destroy
	.p2align	4, 0x90
_ttm_tt_destroy:                        ## @ttm_tt_destroy
	.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
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	callq	_ttm_tt_unbind
	movq	(%rbx), %rax
	movq	_tt_unbound@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_ttm_tt_unpopulate
LBB0_3:
	movq	_TTM_PAGE_FLAG_PERSISTENT_SWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_6
## %bb.4:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_fput
LBB0_6:
	movq	$0, 24(%rbx)
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tt_unbound,8,3                 ## @tt_unbound
	.comm	_TTM_PAGE_FLAG_PERSISTENT_SWAP,4,2 ## @TTM_PAGE_FLAG_PERSISTENT_SWAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_tt_destroy                 ; -- Begin function ttm_tt_destroy
	.p2align	2
_ttm_tt_destroy:                        ; @ttm_tt_destroy
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_7
; %bb.1:
	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
	mov	x19, x0
	bl	_ttm_tt_unbind
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _tt_unbound@GOTPAGE
Lloh1:
	ldr	x9, [x9, _tt_unbound@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_ttm_tt_unpopulate
LBB0_3:
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _TTM_PAGE_FLAG_PERSISTENT_SWAP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TTM_PAGE_FLAG_PERSISTENT_SWAP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.4:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_fput
LBB0_6:
	str	xzr, [x19, #24]
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
LBB0_7:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_tt_unbound,8,3                 ; @tt_unbound
	.comm	_TTM_PAGE_FLAG_PERSISTENT_SWAP,4,2 ; @TTM_PAGE_FLAG_PERSISTENT_SWAP
.subsections_via_symbols
