	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_set_pages_caching
_ttm_set_pages_caching:                 ## @ttm_set_pages_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	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_IS_UC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, (%rdi)
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_set_pages_array_uc
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r13d
	movl	4(%r15), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	callq	_pr_err
	movl	%r13d, %ebx
LBB0_3:
	movq	_IS_WC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_7
## %bb.4:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_set_pages_array_wc
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movl	4(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %edx
	callq	_pr_err
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IS_UC,4,2                      ## @IS_UC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Failed to set %d pages to uc!\n"

	.comm	_IS_WC,4,2                      ## @IS_WC
L_.str.1:                               ## @.str.1
	.asciz	"%s: Failed to set %d pages to wc!\n"

	.no_dead_strip	_ttm_set_pages_caching
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_set_pages_caching
_ttm_set_pages_caching:                 ; @ttm_set_pages_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	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IS_UC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IS_UC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	bl	_set_pages_array_uc
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w1, [x20, #4]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_pr_err
	b	LBB0_4
LBB0_3:
	mov	w22, #0
LBB0_4:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _IS_WC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IS_WC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x21
	mov	x1, x19
	bl	_set_pages_array_wc
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w1, [x20, #4]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_pr_err
LBB0_7:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IS_UC,4,2                      ; @IS_UC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Failed to set %d pages to uc!\n"

	.comm	_IS_WC,4,2                      ; @IS_WC
l_.str.1:                               ; @.str.1
	.asciz	"%s: Failed to set %d pages to wc!\n"

	.no_dead_strip	_ttm_set_pages_caching
.subsections_via_symbols
