	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_vm_bo_trace_cs          ## -- Begin function amdgpu_vm_bo_trace_cs
	.p2align	4, 0x90
_amdgpu_vm_bo_trace_cs:                 ## @amdgpu_vm_bo_trace_cs
	.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	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_trace_amdgpu_vm_bo_cs_enabled
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	_U64_MAX@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_amdgpu_vm_it_iter_first
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_trace_amdgpu_vm_bo_cs
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_amdgpu_vm_it_iter_next
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax), %edi
	callq	_dma_resv_locking_ctx
	cmpq	%r14, %rax
	jne	LBB0_7
	jmp	LBB0_6
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_U64_MAX,4,2                    ## @U64_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_vm_bo_trace_cs          ; -- Begin function amdgpu_vm_bo_trace_cs
	.p2align	2
_amdgpu_vm_bo_trace_cs:                 ; @amdgpu_vm_bo_trace_cs
	.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	x19, x1
	mov	x20, x0
	bl	_trace_amdgpu_vm_bo_cs_enabled
	cbz	w0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x21, _U64_MAX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _U64_MAX@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x20
	mov	w1, #0
	bl	_amdgpu_vm_it_iter_first
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_trace_amdgpu_vm_bo_cs
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x21]
	mov	x0, x20
	mov	w1, #0
	bl	_amdgpu_vm_it_iter_next
	mov	x20, x0
	cbz	x0, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x8]
	bl	_dma_resv_locking_ctx
	cmp	x0, x19
	b.ne	LBB0_4
	b	LBB0_3
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_U64_MAX,4,2                    ; @U64_MAX
.subsections_via_symbols
