	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_vm_pt_descendant
_amdgpu_vm_pt_descendant:               ## @amdgpu_vm_pt_descendant
	.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	8(%rsi), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%edi, %edi
	cmpl	$0, 8(%rax)
	sete	%dil
	callq	_BUG_ON
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	callq	_amdgpu_vm_entries_mask
	movl	%eax, %r15d
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	callq	_amdgpu_vm_level_shift
	incl	24(%rbx)
	movl	(%rbx), %edx
	movl	%eax, %ecx
	shrq	%cl, %rdx
	andl	%r15d, %edx
	movq	8(%rbx), %rax
	movq	%rax, 16(%rbx)
	shlq	$4, %rdx
	addq	(%rax), %rdx
	movq	%rdx, 8(%rbx)
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_amdgpu_vm_pt_descendant
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_vm_pt_descendant
_amdgpu_vm_pt_descendant:               ; @amdgpu_vm_pt_descendant
	.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
	ldr	x8, [x1, #8]
	ldr	x9, [x8]
	cbz	x9, LBB0_2
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x8, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w1, [x19, #24]
	mov	x0, x20
	bl	_amdgpu_vm_entries_mask
	mov	x21, x0
	ldr	w1, [x19, #24]
	mov	x0, x20
	bl	_amdgpu_vm_level_shift
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	ldr	w8, [x19]
	lsr	x8, x8, x0
	mov	w9, w21
	and	x8, x8, x9
	ldr	x9, [x19, #8]
	ldr	x10, [x9]
	add	x8, x10, x8, lsl #4
	stp	x8, x9, [x19, #8]
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_amdgpu_vm_pt_descendant
.subsections_via_symbols
