	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_mem_global_free_zone
_ttm_mem_global_free_zone:              ## @ttm_mem_global_free_zone
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movl	(%r12), %eax
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	8(%r12), %rcx
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.2:
	xorl	%edx, %edx
LBB0_11:
	testb	$1, %al
	je	LBB0_15
## %bb.12:
	movq	(%rcx,%rdx,8), %rax
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.13:
	cmpq	%rbx, %rax
	jne	LBB0_15
LBB0_14:
	subl	%r15d, (%rax)
LBB0_15:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_3:
	movl	%eax, %esi
	andl	$-2, %esi
	xorl	%edx, %edx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	subl	%r15d, (%rdi)
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$2, %rdx
	cmpq	%rdx, %rsi
	je	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rdi
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rbx, %rdi
	jne	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	subl	%r15d, (%rdi)
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rcx,%rdx,8), %rdi
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rbx, %rdi
	jne	LBB0_10
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ttm_mem_global_free_zone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_mem_global_free_zone
_ttm_mem_global_free_zone:              ; @ttm_mem_global_free_zone
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	add	x21, x0, #4
	mov	x0, x21
	bl	_spin_lock
	ldr	w8, [x22]
	cbz	w8, LBB0_6
; %bb.1:
	ldr	x9, [x22, #8]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x10]
	sub	w11, w11, w19
	str	w11, [x10]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cbz	x20, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x10, x20
	b.ne	LBB0_3
	b	LBB0_2
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ttm_mem_global_free_zone
.subsections_via_symbols
