	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_vm_bo_base_init
_amdgpu_vm_bo_base_init:                ## @amdgpu_vm_bo_base_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, 24(%rdi)
	movq	%rdx, 16(%rdi)
	movq	$0, (%rdi)
	addq	$8, %rdi
	callq	_INIT_LIST_HEAD
	testq	%r14, %r14
	je	LBB0_7
## %bb.1:
	movq	40(%r14), %rax
	movq	%rax, (%rbx)
	movq	%rbx, 40(%r14)
	movq	24(%r14), %rax
	movq	8(%r15), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.2:
	movl	$0, (%r15)
	movq	8(%r14), %rax
	movq	_ttm_bo_type_kernel@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	cmpq	$0, 32(%r14)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_amdgpu_vm_bo_relocated
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	callq	_amdgpu_vm_bo_idle
LBB0_6:
	movl	(%r14), %r15d
	movl	16(%r14), %edi
	callq	_amdgpu_mem_type_to_domain
	testl	%r15d, %eax
	je	LBB0_8
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_amdgpu_vm_bo_evicted           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ttm_bo_type_kernel,8,3         ## @ttm_bo_type_kernel
	.no_dead_strip	_amdgpu_vm_bo_base_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_vm_bo_base_init
_amdgpu_vm_bo_base_init:                ; @amdgpu_vm_bo_base_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	stp	x2, x1, [x0, #16]
	str	xzr, [x0], #8
	bl	_INIT_LIST_HEAD
	cbz	x20, LBB0_7
; %bb.1:
	ldr	x8, [x20, #40]
	str	x8, [x19]
	str	x19, [x20, #40]
	ldr	x8, [x20, #24]
	ldr	x9, [x21, #8]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	str	wzr, [x21]
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _ttm_bo_type_kernel@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ttm_bo_type_kernel@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_amdgpu_vm_bo_relocated
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_amdgpu_vm_bo_idle
LBB0_6:
	ldr	w21, [x20]
	ldr	w0, [x20, #16]
	bl	_amdgpu_mem_type_to_domain
	tst	w0, w21
	b.eq	LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_amdgpu_vm_bo_evicted
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ttm_bo_type_kernel,8,3         ; @ttm_bo_type_kernel
	.no_dead_strip	_amdgpu_vm_bo_base_init
.subsections_via_symbols
