	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_bo_force_list_clean
_ttm_bo_force_list_clean:               ## @ttm_bo_force_list_clean
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -88(%rbp)
	movq	_TTM_OPT_FLAG_FORCE_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	(%rdi), %r13
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_spin_lock
	movq	_TTM_MAX_BO_PRIORITY@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	shlq	$4, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %r12
	addq	$8, %r12
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	_TTM_MAX_BO_PRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r14
	jae	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	leaq	(,%r14,4), %r15
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rdi
	addq	%r15, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%r13, %rdi
	callq	_spin_unlock
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	leaq	-88(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_ttm_mem_evict_first
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%r13, %rdi
	callq	_spin_lock
	jmp	LBB0_3
LBB0_5:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_8:
	movq	%r13, %rdi
	callq	_spin_unlock
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	shlq	$4, %rbx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	leaq	(%r14,%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movl	4(%r14,%rbx), %edi
	callq	_dma_fence_get
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_spin_unlock
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_dma_fence_wait
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_dma_fence_put
	testl	%ebx, %ebx
	jne	LBB0_11
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_OPT_FLAG_FORCE_ALLOC,4,2   ## @TTM_OPT_FLAG_FORCE_ALLOC
	.comm	_TTM_MAX_BO_PRIORITY,4,2        ## @TTM_MAX_BO_PRIORITY
	.no_dead_strip	_ttm_bo_force_list_clean
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_bo_force_list_clean
_ttm_bo_force_list_clean:               ; @ttm_bo_force_list_clean
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _TTM_OPT_FLAG_FORCE_ALLOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TTM_OPT_FLAG_FORCE_ALLOC@GOTPAGEOFF]
	str	xzr, [sp]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	mov	w23, w1
	ldp	x21, x24, [x0]
	mov	x0, x21
	bl	_spin_lock
Lloh3:
	adrp	x25, _TTM_MAX_BO_PRIORITY@GOTPAGE
Lloh4:
	ldr	x25, [x25, _TTM_MAX_BO_PRIORITY@GOTPAGEOFF]
	ldr	w8, [x25]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x26, #0
	add	x8, x24, x23, lsl #4
	add	x27, x8, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	ldr	w8, [x25]
	cmp	x26, x8
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	add	x0, x8, x26, lsl #2
	bl	_list_empty
	cbnz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_spin_unlock
	mov	x3, sp
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	mov	x4, #0
	bl	_ttm_mem_evict_first
	cbnz	w0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_spin_lock
	b	LBB0_3
LBB0_6:
	mov	x22, x0
	b	LBB0_10
LBB0_7:
	mov	x0, x21
	bl	_spin_unlock
	add	x20, x24, x23, lsl #4
	mov	x0, x20
	bl	_spin_lock
	ldr	w0, [x20, #4]
	bl	_dma_fence_get
	mov	x19, x0
	mov	x0, x20
	bl	_spin_unlock
	cbz	x19, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #0
	bl	_dma_fence_wait
	mov	x22, x0
	mov	x0, x19
	bl	_dma_fence_put
	cbnz	w22, LBB0_10
LBB0_9:
	mov	w22, #0
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_OPT_FLAG_FORCE_ALLOC,4,2   ; @TTM_OPT_FLAG_FORCE_ALLOC
	.comm	_TTM_MAX_BO_PRIORITY,4,2        ; @TTM_MAX_BO_PRIORITY
	.no_dead_strip	_ttm_bo_force_list_clean
.subsections_via_symbols
