	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_bo_global_release
_ttm_bo_global_release:                 ## @ttm_bo_global_release
	.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	_ttm_global_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_ttm_bo_glob_use_count@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	-1(%rcx), %rdx
	movq	%rdx, (%rax)
	cmpq	$1, %rcx
	jg	LBB0_2
## %bb.1:
	movq	_ttm_bo_glob@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_kobject_del
	movq	%rbx, %rdi
	callq	_kobject_put
	movq	_ttm_mem_glob@GOTPCREL(%rip), %rdi
	callq	_ttm_mem_global_release
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
LBB0_2:
	movq	_ttm_global_mutex@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ttm_bo_glob,4,2                ## @ttm_bo_glob
	.comm	_ttm_global_mutex,4,2           ## @ttm_global_mutex
	.comm	_ttm_bo_glob_use_count,8,3      ## @ttm_bo_glob_use_count
	.comm	_ttm_mem_glob,4,2               ## @ttm_mem_glob
	.no_dead_strip	_ttm_bo_global_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_bo_global_release
_ttm_bo_global_release:                 ; @ttm_bo_global_release
	.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
Lloh0:
	adrp	x0, _ttm_global_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ttm_global_mutex@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x8, _ttm_bo_glob_use_count@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ttm_bo_glob_use_count@GOTPAGEOFF]
	ldr	x9, [x8]
	subs	x9, x9, #1
	str	x9, [x8]
	b.gt	LBB0_2
; %bb.1:
Lloh4:
	adrp	x19, _ttm_bo_glob@GOTPAGE
Lloh5:
	ldr	x19, [x19, _ttm_bo_glob@GOTPAGEOFF]
	mov	x0, x19
	bl	_kobject_del
	mov	x0, x19
	bl	_kobject_put
Lloh6:
	adrp	x0, _ttm_mem_glob@GOTPAGE
Lloh7:
	ldr	x0, [x0, _ttm_mem_glob@GOTPAGEOFF]
	bl	_ttm_mem_global_release
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_2:
Lloh8:
	adrp	x0, _ttm_global_mutex@GOTPAGE
Lloh9:
	ldr	x0, [x0, _ttm_global_mutex@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ttm_bo_glob,4,2                ; @ttm_bo_glob
	.comm	_ttm_global_mutex,4,2           ; @ttm_global_mutex
	.comm	_ttm_bo_glob_use_count,8,3      ; @ttm_bo_glob_use_count
	.comm	_ttm_mem_glob,4,2               ; @ttm_mem_glob
	.no_dead_strip	_ttm_bo_global_release
.subsections_via_symbols
