	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_io_prot                    ## -- Begin function ttm_io_prot
	.p2align	4, 0x90
_ttm_io_prot:                           ## @ttm_io_prot
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_TTM_PL_FLAG_CACHED@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_1
LBB0_3:
	movl	%esi, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_TTM_PL_FLAG_WC@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_2
## %bb.4:
	movl	%esi, %edi
	popq	%rbp
	jmp	_pgprot_writecombine            ## TAILCALL
LBB0_2:
	movq	_boot_cpu_data@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
	jl	LBB0_3
## %bb.5:
	movl	%esi, %edi
	popq	%rbp
	jmp	_pgprot_noncached               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_PL_FLAG_CACHED,4,2         ## @TTM_PL_FLAG_CACHED
	.comm	_TTM_PL_FLAG_WC,4,2             ## @TTM_PL_FLAG_WC
	.comm	_boot_cpu_data,4,2              ## @boot_cpu_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_io_prot                    ; -- Begin function ttm_io_prot
	.p2align	2
_ttm_io_prot:                           ; @ttm_io_prot
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _TTM_PL_FLAG_CACHED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TTM_PL_FLAG_CACHED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x1
	ret
LBB0_2:
Lloh3:
	adrp	x8, _TTM_PL_FLAG_WC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TTM_PL_FLAG_WC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x1
	b	_pgprot_writecombine
LBB0_4:
	mov	x0, x1
	b	_pgprot_noncached
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_PL_FLAG_CACHED,4,2         ; @TTM_PL_FLAG_CACHED
	.comm	_TTM_PL_FLAG_WC,4,2             ; @TTM_PL_FLAG_WC
	.comm	_boot_cpu_data,4,2              ; @boot_cpu_data
.subsections_via_symbols
