	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_vm_cache_attr
_update_vm_cache_attr:                  ## @update_vm_cache_attr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movl	(%rbx), %ebx
	movq	_UDL_BO_CACHEABLE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	callq	_vm_get_page_prot
	jmp	LBB0_5
LBB0_2:
	movq	_UDL_BO_WC@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	(%r14), %edi
	callq	_vm_get_page_prot
	movl	%eax, %edi
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	callq	_pgprot_writecombine
	jmp	LBB0_5
LBB0_4:
	callq	_pgprot_noncached
LBB0_5:
	movl	%eax, 4(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"flags = 0x%x\n"

	.comm	_UDL_BO_CACHEABLE,4,2           ## @UDL_BO_CACHEABLE
	.comm	_UDL_BO_WC,4,2                  ## @UDL_BO_WC
	.no_dead_strip	_update_vm_cache_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_vm_cache_attr
_update_vm_cache_attr:                  ; @update_vm_cache_attr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _UDL_BO_CACHEABLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UDL_BO_CACHEABLE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_vm_get_page_prot
	b	LBB0_5
LBB0_2:
Lloh5:
	adrp	x9, _UDL_BO_WC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _UDL_BO_WC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w20, w9, w8
	ldr	w0, [x19]
	bl	_vm_get_page_prot
	cbz	w20, LBB0_4
; %bb.3:
	bl	_pgprot_writecombine
	b	LBB0_5
LBB0_4:
	bl	_pgprot_noncached
LBB0_5:
	str	w0, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"flags = 0x%x\n"

	.comm	_UDL_BO_CACHEABLE,4,2           ; @UDL_BO_CACHEABLE
	.comm	_UDL_BO_WC,4,2                  ; @UDL_BO_WC
	.no_dead_strip	_update_vm_cache_attr
.subsections_via_symbols
