	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_vm_bo_invalidate        ## -- Begin function amdgpu_vm_bo_invalidate
	.p2align	4, 0x90
_amdgpu_vm_bo_invalidate:               ## @amdgpu_vm_bo_invalidate
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	24(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	%r15, 32(%rax)
	cmoveq	%rax, %r15
LBB0_2:
	movq	16(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.3:
	movq	_ttm_bo_type_kernel@GOTPCREL(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_amdgpu_vm_bo_evicted
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rcx
	movq	(%rax), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, (%rbx)
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, (%rbx)
	movq	(%r15), %rcx
	cmpq	(%r12), %rcx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_amdgpu_vm_bo_relocated
	jmp	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rcx
	movq	(%rax), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_amdgpu_vm_bo_moved
	jmp	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_amdgpu_vm_bo_invalidated
	jmp	LBB0_13
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ttm_bo_type_kernel,8,3         ## @ttm_bo_type_kernel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_vm_bo_invalidate        ; -- Begin function amdgpu_vm_bo_invalidate
	.p2align	2
_amdgpu_vm_bo_invalidate:               ; @amdgpu_vm_bo_invalidate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	ldr	x8, [x1, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x9, [x8, #32]
	cmp	x9, x20
	csel	x20, x8, x20, eq
LBB0_2:
	ldr	x21, [x20, #16]
	cbz	x21, LBB0_14
; %bb.3:
	mov	w22, #1
Lloh0:
	adrp	x23, _ttm_bo_type_kernel@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ttm_bo_type_kernel@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_amdgpu_vm_bo_evicted
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x21, [x21, #16]
	cbz	x21, LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	cbz	w19, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x20, #8]
	ldr	x10, [x8]
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x21]
	cbnz	w9, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w22, [x21]
	ldr	x9, [x20]
	ldr	x10, [x23]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_amdgpu_vm_bo_relocated
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x20, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x21
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	_amdgpu_vm_bo_moved
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_amdgpu_vm_bo_invalidated
	b	LBB0_5
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ttm_bo_type_kernel,8,3         ; @ttm_bo_type_kernel
.subsections_via_symbols
