	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_ring_soft_recovery      ## -- Begin function amdgpu_ring_soft_recovery
	.p2align	4, 0x90
_amdgpu_ring_soft_recovery:             ## @amdgpu_ring_soft_recovery
	.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
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %edi
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_ktime_add_us
	movl	%eax, %r12d
	movq	8(%rbx), %rdi
	callq	_amdgpu_sriov_vf
	testq	%rax, %rax
	je	LBB0_1
LBB0_8:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testq	%r15, %r15
	je	LBB0_8
## %bb.2:
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.3:
	movq	8(%rbx), %rdi
	callq	_atomic_inc
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_dma_fence_is_signaled
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ktime_sub
	movl	%eax, %edi
	callq	_ktime_to_ns
	testq	%rax, %rax
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*(%rax)
	jmp	LBB0_4
LBB0_7:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_fence_is_signaled          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_ring_soft_recovery      ; -- Begin function amdgpu_ring_soft_recovery
	.p2align	2
_amdgpu_ring_soft_recovery:             ; @amdgpu_ring_soft_recovery
	.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, x2
	mov	x20, x1
	mov	x21, x0
	bl	_ktime_get
	mov	w1, #10000
	bl	_ktime_add_us
	mov	x22, x0
	ldr	x0, [x21, #8]
	bl	_amdgpu_sriov_vf
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #0
	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_2:
	cbz	x19, LBB0_1
; %bb.3:
	ldr	x8, [x21]
	ldr	x8, [x8]
	cbz	x8, LBB0_1
; %bb.4:
	ldr	x0, [x21, #8]
	bl	_atomic_inc
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_dma_fence_is_signaled
	cbnz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_ktime_get
	mov	x1, x0
	mov	x0, x22
	bl	_ktime_sub
	bl	_ktime_to_ns
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x0, x21
	mov	x1, x20
	blr	x8
	b	LBB0_5
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	_dma_fence_is_signaled
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
