	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_tt_set_caching
_ttm_tt_set_caching:                    ## @ttm_tt_set_caching
	.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
	movl	(%rdi), %eax
	xorl	%r15d, %r15d
	cmpl	%esi, %eax
	je	LBB0_15
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	8(%rdi), %rcx
	movq	_tt_unpopulated@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_14
## %bb.2:
	movq	_tt_cached@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	24(%r12), %rdi
	movl	16(%r12), %esi
	callq	_drm_clflush_pages
LBB0_4:
	cmpl	$0, 16(%r12)
	jle	LBB0_14
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	16(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_14
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movq	(%rax,%rbx,8), %r13
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_ttm_tt_set_page_caching
	movl	%eax, %r13d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	testl	%ebx, %ebx
	je	LBB0_17
## %bb.10:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r14
	cmpq	%r14, %rbx
	je	LBB0_17
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movq	(%rax,%r14,8), %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ttm_tt_set_page_caching
	jmp	LBB0_11
LBB0_14:
	movl	%r14d, (%r12)
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	%r13d, %r15d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_tt_unpopulated,8,3             ## @tt_unpopulated
	.comm	_tt_cached,4,2                  ## @tt_cached
	.no_dead_strip	_ttm_tt_set_caching
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_tt_set_caching
_ttm_tt_set_caching:                    ; @ttm_tt_set_caching
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_16
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x10, _tt_unpopulated@GOTPAGE
Lloh1:
	ldr	x10, [x10, _tt_unpopulated@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_15
; %bb.3:
Lloh3:
	adrp	x9, _tt_cached@GOTPAGE
Lloh4:
	ldr	x9, [x9, _tt_cached@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
	ldr	x0, [x20, #24]
	ldr	w1, [x20, #16]
	bl	_drm_clflush_pages
LBB0_5:
	ldr	w8, [x20, #16]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.6:
	mov	x23, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x20, #16]
	cmp	x23, x8
	b.ge	LBB0_15
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x21, [x8, x23, lsl #3]
	cmp	x21, #0
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x20]
	mov	x0, x21
	mov	x2, x19
	bl	_ttm_tt_set_page_caching
	mov	x21, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.10:
	cbz	w23, LBB0_16
; %bb.11:
	mov	x24, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x24, x24, #1
	cmp	x23, x24
	b.eq	LBB0_16
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x22, [x8, x24, lsl #3]
	cmp	x22, #0
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w2, [x20]
	mov	x0, x22
	mov	x1, x19
	bl	_ttm_tt_set_page_caching
	b	LBB0_12
LBB0_15:
	mov	w21, #0
	str	w19, [x20]
LBB0_16:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_tt_unpopulated,8,3             ; @tt_unpopulated
	.comm	_tt_cached,4,2                  ; @tt_cached
	.no_dead_strip	_ttm_tt_set_caching
.subsections_via_symbols
