	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_vm_level_shift
_amdgpu_vm_level_shift:                 ## @amdgpu_vm_level_shift
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %edx
	leal	-129(%rdx), %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.4:
	movl	$131, %eax
	subl	%edx, %eax
	leal	(%rax,%rax,8), %eax
	addl	4(%rdi), %eax
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	cmpl	$128, %edx
	jne	LBB0_2
## %bb.3:
	popq	%rbp
	retq
LBB0_2:
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	movl	$255, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"the level%d isn't supported.\n"

	.no_dead_strip	_amdgpu_vm_level_shift
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_vm_level_shift
_amdgpu_vm_level_shift:                 ; @amdgpu_vm_level_shift
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x2, x1
	sub	w8, w1, #129
	cmp	w8, #3
	b.hs	LBB0_2
; %bb.1:
	mov	w8, #131
	sub	w8, w8, w2
	add	w8, w8, w8, lsl #3
	ldr	w9, [x0, #4]
	add	w0, w9, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	cmp	w2, #128
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	w0, #255
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"the level%d isn't supported.\n"

	.no_dead_strip	_amdgpu_vm_level_shift
.subsections_via_symbols
