	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_mem_type_from_flags
_ttm_mem_type_from_flags:               ## @ttm_mem_type_from_flags
	.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_PRIV5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	incl	%eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	btl	%ecx, %edi
	jb	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ecx
	cmpl	%ecx, %eax
	jne	LBB0_2
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_3:
	movl	%ecx, (%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_PL_PRIV5,4,2               ## @TTM_PL_PRIV5
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ttm_mem_type_from_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_mem_type_from_flags
_ttm_mem_type_from_flags:               ; @ttm_mem_type_from_flags
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _TTM_PL_PRIV5@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TTM_PL_PRIV5@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	tbnz	w9, #31, LBB0_4
; %bb.1:
	mov	w8, #0
	add	w9, w9, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w10, w0, w8
	tbnz	w10, #0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w8, #1
	cmp	w9, w8
	b.ne	LBB0_2
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_5:
	mov	w0, #0
	str	w8, [x1]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_PL_PRIV5,4,2               ; @TTM_PL_PRIV5
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ttm_mem_type_from_flags
.subsections_via_symbols
