	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_vce_note_usage          ## -- Begin function radeon_vce_note_usage
	.p2align	4, 0x90
_radeon_vce_note_usage:                 ## @radeon_vce_note_usage
	.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	%rdi, %r14
	leaq	16(%rdi), %r15
	movq	%r15, %rdi
	callq	_cancel_delayed_work_sync
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	movq	_VCE_IDLE_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_schedule_delayed_work
	testl	%ebx, %eax
	je	LBB0_4
## %bb.1:
	movq	_PM_METHOD_DPM@GOTPCREL(%rip), %rax
	movq	(%r14), %rcx
	cmpq	(%rax), %rcx
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 8(%r14)
	je	LBB0_3
## %bb.5:
	movq	%r14, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_radeon_dpm_enable_vce          ## TAILCALL
LBB0_3:
	movq	%r14, %rdi
	movl	$53300, %esi                    ## imm = 0xD034
	movl	$40000, %edx                    ## imm = 0x9C40
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_radeon_set_vce_clocks          ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VCE_IDLE_TIMEOUT_MS,4,2        ## @VCE_IDLE_TIMEOUT_MS
	.comm	_PM_METHOD_DPM,8,3              ## @PM_METHOD_DPM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_vce_note_usage          ; -- Begin function radeon_vce_note_usage
	.p2align	2
_radeon_vce_note_usage:                 ; @radeon_vce_note_usage
	.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, x0
	add	x20, x0, #16
	mov	x0, x20
	bl	_cancel_delayed_work_sync
	cmp	w0, #0
	cset	w21, eq
Lloh0:
	adrp	x8, _VCE_IDLE_TIMEOUT_MS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCE_IDLE_TIMEOUT_MS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x20
	bl	_schedule_delayed_work
	tst	w0, w21
	b.eq	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _PM_METHOD_DPM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PM_METHOD_DPM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	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	_radeon_dpm_enable_vce
LBB0_4:
	mov	x0, x19
	mov	w1, #53300
	mov	w2, #40000
	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	_radeon_set_vce_clocks
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VCE_IDLE_TIMEOUT_MS,4,2        ; @VCE_IDLE_TIMEOUT_MS
	.comm	_PM_METHOD_DPM,8,3              ; @PM_METHOD_DPM
.subsections_via_symbols
