	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_to_type
_ttm_to_type:                           ## @ttm_to_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	movq	_TTM_PAGE_FLAG_DMA32@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_2
## %bb.1:
	movq	_IS_DMA32@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movq	_IS_UNDEFINED@GOTPCREL(%rip), %rdx
	movq	_tt_cached@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_tt_uncached@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jne	LBB0_3
## %bb.4:
	movq	_IS_UC@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_IS_WC@GOTPCREL(%rip), %rcx
LBB0_5:
	orl	(%rdx), %eax
	cmpl	%esi, %edi
	jne	LBB0_7
## %bb.6:
	movq	_IS_CACHED@GOTPCREL(%rip), %rcx
LBB0_7:
	orl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IS_UNDEFINED,4,2               ## @IS_UNDEFINED
	.comm	_TTM_PAGE_FLAG_DMA32,4,2        ## @TTM_PAGE_FLAG_DMA32
	.comm	_IS_DMA32,4,2                   ## @IS_DMA32
	.comm	_tt_cached,4,2                  ## @tt_cached
	.comm	_IS_CACHED,4,2                  ## @IS_CACHED
	.comm	_tt_uncached,4,2                ## @tt_uncached
	.comm	_IS_UC,4,2                      ## @IS_UC
	.comm	_IS_WC,4,2                      ## @IS_WC
	.no_dead_strip	_ttm_to_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_to_type
_ttm_to_type:                           ; @ttm_to_type
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _IS_UNDEFINED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IS_UNDEFINED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TTM_PAGE_FLAG_DMA32@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TTM_PAGE_FLAG_DMA32@GOTPAGEOFF]
Lloh5:
	adrp	x10, _IS_DMA32@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IS_DMA32@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
Lloh9:
	adrp	x10, _tt_cached@GOTPAGE
Lloh10:
	ldr	x10, [x10, _tt_cached@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh11:
	ldr	w9, [x10]
Lloh12:
	adrp	x10, _tt_uncached@GOTPAGE
Lloh13:
	ldr	x10, [x10, _tt_uncached@GOTPAGEOFF]
Lloh14:
	adrp	x11, _IS_CACHED@GOTPAGE
Lloh15:
	ldr	x11, [x11, _IS_CACHED@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x12, _IS_UC@GOTPAGE
Lloh18:
	ldr	x12, [x12, _IS_UC@GOTPAGEOFF]
Lloh19:
	adrp	x13, _IS_WC@GOTPAGE
Lloh20:
	ldr	x13, [x13, _IS_WC@GOTPAGEOFF]
	cmp	w10, w1
	csel	x10, x12, x13, eq
	cmp	w9, w1
	csel	x9, x11, x10, eq
	ldr	w9, [x9]
	orr	w0, w8, w9
	ret
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IS_UNDEFINED,4,2               ; @IS_UNDEFINED
	.comm	_TTM_PAGE_FLAG_DMA32,4,2        ; @TTM_PAGE_FLAG_DMA32
	.comm	_IS_DMA32,4,2                   ; @IS_DMA32
	.comm	_tt_cached,4,2                  ; @tt_cached
	.comm	_IS_CACHED,4,2                  ; @IS_CACHED
	.comm	_tt_uncached,4,2                ; @tt_uncached
	.comm	_IS_UC,4,2                      ; @IS_UC
	.comm	_IS_WC,4,2                      ; @IS_WC
	.no_dead_strip	_ttm_to_type
.subsections_via_symbols
