	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_vce_sw_fini             ## -- Begin function amdgpu_vce_sw_fini
	.p2align	4, 0x90
_amdgpu_vce_sw_fini:                    ## @amdgpu_vce_sw_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 32(%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r15
	leaq	32(%rdi), %r14
	addq	$40, %rdi
	callq	_drm_sched_entity_destroy
	leaq	28(%r15), %rsi
	leaq	24(%r15), %rdx
	movq	%r14, %rdi
	callq	_amdgpu_bo_free_kernel
	cmpl	$0, (%r15)
	je	LBB0_4
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	addq	%r14, %rdi
	callq	_amdgpu_ring_fini
	incq	%rbx
	movl	(%r15), %eax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jb	LBB0_3
LBB0_4:
	movl	8(%r15), %edi
	callq	_release_firmware
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_mutex_destroy
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_vce_sw_fini             ; -- Begin function amdgpu_vce_sw_fini
	.p2align	2
_amdgpu_vce_sw_fini:                    ; @amdgpu_vce_sw_fini
	.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	x20, x0
	ldr	x8, [x20, #32]!
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x0
	add	x0, x0, #40
	bl	_drm_sched_entity_destroy
	add	x1, x19, #28
	add	x2, x19, #24
	mov	x0, x20
	bl	_amdgpu_bo_free_kernel
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x20, #0
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x20
	bl	_amdgpu_ring_fini
	add	x21, x21, #1
	ldr	w8, [x19]
	add	x20, x20, #4
	cmp	x21, x8
	b.lo	LBB0_3
LBB0_4:
	ldr	w0, [x19, #8]
	bl	_release_firmware
	add	x0, x19, #4
	bl	_mutex_destroy
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
