	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_tt_set_page_caching
_ttm_tt_set_page_caching:               ## @ttm_tt_set_page_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_PageHighMem
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_1
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_tt_cached@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_ttm_set_pages_wb
	testl	%eax, %eax
	jne	LBB0_5
LBB0_3:
	movq	_tt_wc@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_4
## %bb.6:
	movq	%r15, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ttm_set_pages_wc               ## TAILCALL
LBB0_4:
	movq	_tt_uncached@GOTPCREL(%rip), %rcx
	movl	$0, %eax
	cmpl	%r14d, (%rcx)
	jne	LBB0_5
## %bb.7:
	movq	%r15, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ttm_set_pages_uc               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tt_cached,4,2                  ## @tt_cached
	.comm	_tt_wc,4,2                      ## @tt_wc
	.comm	_tt_uncached,4,2                ## @tt_uncached
	.no_dead_strip	_ttm_tt_set_page_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_page_caching
_ttm_tt_set_page_caching:               ; @ttm_tt_set_page_caching
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_PageHighMem
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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
	ret
LBB0_3:
Lloh0:
	adrp	x8, _tt_cached@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tt_cached@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #1
	bl	_ttm_set_pages_wb
	cbnz	w0, LBB0_2
LBB0_5:
Lloh3:
	adrp	x8, _tt_wc@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tt_wc@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #1
	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	_ttm_set_pages_wc
LBB0_7:
Lloh6:
	adrp	x8, _tt_uncached@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tt_uncached@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_1
; %bb.8:
	mov	x0, x19
	mov	w1, #1
	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	_ttm_set_pages_uc
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_tt_cached,4,2                  ; @tt_cached
	.comm	_tt_wc,4,2                      ; @tt_wc
	.comm	_tt_uncached,4,2                ; @tt_uncached
	.no_dead_strip	_ttm_tt_set_page_caching
.subsections_via_symbols
