	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_bo_bulk_move_lru_tail      ## -- Begin function ttm_bo_bulk_move_lru_tail
	.p2align	4, 0x90
_ttm_bo_bulk_move_lru_tail:             ## @ttm_bo_bulk_move_lru_tail
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_TTM_MAX_BO_PRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	movq	_TTM_PL_TT@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movl	%eax, %ecx
	addq	$4, %rbx
	cmpq	%rcx, %r13
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %r14
	movq	8(%r14,%rbx,4), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rcx), %edi
	callq	_dma_resv_assert_held
	movq	(%r14,%rbx,4), %rax
	movl	4(%rax), %edi
	callq	_dma_resv_assert_held
	movq	(%r14,%rbx,4), %rdx
	movq	8(%r14,%rbx,4), %rsi
	movq	8(%rsi), %rax
	movq	8(%rax), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	addq	%rbx, %rdi
	addq	$20, %rsi
	addq	$8, %rdx
	callq	_list_bulk_move_tail
	movq	_TTM_MAX_BO_PRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_5:
	testl	%eax, %eax
	je	LBB0_15
## %bb.6:
	xorl	%ebx, %ebx
	movq	_TTM_PL_VRAM@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	movl	%eax, %ecx
	addq	$4, %rbx
	cmpq	%rcx, %r13
	jae	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r14
	movq	8(%r14,%rbx,4), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	16(%rcx), %edi
	callq	_dma_resv_assert_held
	movq	(%r14,%rbx,4), %rax
	movl	4(%rax), %edi
	callq	_dma_resv_assert_held
	movq	(%r14,%rbx,4), %rdx
	movq	8(%r14,%rbx,4), %rsi
	movq	8(%rsi), %rax
	movq	8(%rax), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	addq	%rbx, %rdi
	addq	$20, %rsi
	addq	$8, %rdx
	callq	_list_bulk_move_tail
	movq	_TTM_MAX_BO_PRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_10:
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r12
	movl	%eax, %ecx
	addq	$4, %rbx
	cmpq	%rcx, %r12
	jae	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %r14
	movq	8(%r14,%rbx,4), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	16(%rcx), %edi
	callq	_dma_resv_assert_held
	movq	(%r14,%rbx,4), %rax
	movl	4(%rax), %edi
	callq	_dma_resv_assert_held
	movq	(%r14,%rbx,4), %rdx
	movq	8(%r14,%rbx,4), %rsi
	movq	8(%rsi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_list_bulk_move_tail
	movq	_TTM_MAX_BO_PRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_MAX_BO_PRIORITY,4,2        ## @TTM_MAX_BO_PRIORITY
	.comm	_TTM_PL_TT,8,3                  ## @TTM_PL_TT
	.comm	_TTM_PL_VRAM,8,3                ## @TTM_PL_VRAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_bo_bulk_move_lru_tail      ; -- Begin function ttm_bo_bulk_move_lru_tail
	.p2align	2
_ttm_bo_bulk_move_lru_tail:             ; @ttm_bo_bulk_move_lru_tail
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x20, _TTM_MAX_BO_PRIORITY@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TTM_MAX_BO_PRIORITY@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_15
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	mov	x22, #0
	mov	x23, #0
Lloh2:
	adrp	x24, _TTM_PL_TT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TTM_PL_TT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	add	x22, x22, #4
	add	x21, x21, #16
	cmp	x23, w8, uxtw
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x19, #16]
	add	x26, x25, x21
	ldr	x9, [x26, #8]
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x9, #16]
	bl	_dma_resv_assert_held
	ldr	x8, [x25, x21]
	ldr	w0, [x8, #4]
	bl	_dma_resv_assert_held
	ldr	x8, [x26, #8]
	ldr	x9, [x8, #8]
	ldr	x9, [x9, #8]
	ldr	x10, [x24]
	ldr	x9, [x9, x10, lsl #3]
	add	x0, x9, x22
	add	x1, x8, #20
	ldr	x8, [x25, x21]
	add	x2, x8, #8
	bl	_list_bulk_move_tail
	ldr	w8, [x20]
	b	LBB0_2
LBB0_5:
	cbz	w8, LBB0_15
; %bb.6:
	mov	x21, #0
	mov	x22, #0
	mov	x23, #0
Lloh4:
	adrp	x24, _TTM_PL_VRAM@GOTPAGE
Lloh5:
	ldr	x24, [x24, _TTM_PL_VRAM@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	add	x22, x22, #4
	add	x21, x21, #16
	cmp	x23, w8, uxtw
	b.hs	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x19, #8]
	add	x26, x25, x21
	ldr	x9, [x26, #8]
	cbz	x9, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x9, #16]
	bl	_dma_resv_assert_held
	ldr	x8, [x25, x21]
	ldr	w0, [x8, #4]
	bl	_dma_resv_assert_held
	ldr	x8, [x26, #8]
	ldr	x9, [x8, #8]
	ldr	x9, [x9, #8]
	ldr	x10, [x24]
	ldr	x9, [x9, x10, lsl #3]
	add	x0, x9, x22
	add	x1, x8, #20
	ldr	x8, [x25, x21]
	add	x2, x8, #8
	bl	_list_bulk_move_tail
	ldr	w8, [x20]
	b	LBB0_7
LBB0_10:
	cbz	w8, LBB0_15
; %bb.11:
	mov	x21, #0
	mov	x22, #0
	mov	x23, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x23, x23, #1
	add	x22, x22, #4
	add	x21, x21, #16
	cmp	x23, w8, uxtw
	b.hs	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x19]
	add	x25, x24, x21
	ldr	x9, [x25, #8]
	cbz	x9, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x9, #16]
	bl	_dma_resv_assert_held
	ldr	x8, [x24, x21]
	ldr	w0, [x8, #4]
	bl	_dma_resv_assert_held
	ldr	x1, [x25, #8]
	ldr	x8, [x1, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x0, x8, x22
	ldr	x2, [x24, x21]
	bl	_list_bulk_move_tail
	ldr	w8, [x20]
	b	LBB0_12
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_MAX_BO_PRIORITY,4,2        ; @TTM_MAX_BO_PRIORITY
	.comm	_TTM_PL_TT,8,3                  ; @TTM_PL_TT
	.comm	_TTM_PL_VRAM,8,3                ; @TTM_PL_VRAM
.subsections_via_symbols
