	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvd_v7_0_hw_fini
_uvd_v7_0_hw_fini:                      ## @uvd_v7_0_hw_fini
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_amdgpu_sriov_vf
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, %rdi
	callq	_uvd_v7_0_stop
LBB0_3:
	movl	(%rbx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_16
## %bb.4:
	movl	4(%rbx), %ecx
	cmpl	$1, %r8d
	jne	LBB0_6
## %bb.5:
	xorl	%edx, %edx
	testb	$1, %r8b
	jne	LBB0_14
	jmp	LBB0_16
LBB0_6:
	movl	%r8d, %esi
	andl	$-2, %esi
	xorl	%edi, %edi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdi
	cmpq	%rsi, %rdi
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %rdx
	btl	%edx, %ecx
	jb	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rdi
	movl	$0, (%rdi,%rdx,4)
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	leaq	1(%rdx), %rdi
	btl	%edi, %ecx
	jb	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rax
	movl	$0, 4(%rax,%rdx,4)
	jmp	LBB0_11
LBB0_12:
	addq	$2, %rdx
	testb	$1, %r8b
	je	LBB0_16
LBB0_14:
	btl	%edx, %ecx
	jb	LBB0_16
## %bb.15:
	movq	8(%rbx), %rax
	movl	$0, (%rax,%rdx,4)
LBB0_16:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"For SRIOV client, shouldn't do anything.\n"

	.no_dead_strip	_uvd_v7_0_hw_fini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvd_v7_0_hw_fini
_uvd_v7_0_hw_fini:                      ; @uvd_v7_0_hw_fini
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_amdgpu_sriov_vf
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_uvd_v7_0_stop
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x9, #0
	ldr	w10, [x19, #4]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w11, w10, w9
	tbnz	w11, #0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x11, [x19, #8]
	str	wzr, [x11, x9, lsl #2]
	b	LBB0_5
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"For SRIOV client, shouldn't do anything.\n"

	.no_dead_strip	_uvd_v7_0_hw_fini
.subsections_via_symbols
