	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_bo_cleanup_memtype_use
_ttm_bo_cleanup_memtype_use:            ## @ttm_bo_cleanup_memtype_use
	.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, %rbx
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_2:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_ttm_tt_unbind
	movq	16(%rbx), %rdi
	callq	_ttm_tt_destroy
	movq	$0, 16(%rbx)
LBB0_4:
	leaq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_ttm_bo_mem_put
	leaq	4(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%rbx, %rdi
	callq	_wake_up_all
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_smp_mb__before_atomic_dec      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ttm_bo_cleanup_memtype_use
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_bo_cleanup_memtype_use
_ttm_bo_cleanup_memtype_use:            ; @ttm_bo_cleanup_memtype_use
	.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
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, #0
	blr	x8
LBB0_2:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_ttm_tt_unbind
	ldr	x0, [x19, #16]
	bl	_ttm_tt_destroy
	str	xzr, [x19, #16]
LBB0_4:
	add	x1, x19, #8
	mov	x0, x19
	bl	_ttm_bo_mem_put
	add	x0, x19, #4
	mov	w1, #0
	bl	_atomic_set
	mov	x0, x19
	bl	_wake_up_all
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_smp_mb__before_atomic_dec
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ttm_bo_cleanup_memtype_use
.subsections_via_symbols
