	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trinity_adjust_uvd_state
_trinity_adjust_uvd_state:              ## @trinity_adjust_uvd_state
	.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	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_trinity_get_ps
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_trinity_get_pi
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.1:
	movq	%rax, %r15
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_r600_is_uvd_state
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_trinity_get_uvd_clock_index
	movslq	%eax, %rcx
	andl	$-2, %eax
	xorl	%edx, %edx
	cmpl	$2, %eax
	sete	%dl
	movq	(%r15), %rax
	movsd	(%rax,%rcx,8), %xmm0            ## xmm0 = mem[0],zero
	movsd	(%rax,%rdx,8), %xmm1            ## xmm1 = mem[0],zero
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movups	%xmm1, (%r14)
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_trinity_adjust_uvd_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trinity_adjust_uvd_state
_trinity_adjust_uvd_state:              ; @trinity_adjust_uvd_state
	.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, x1
	mov	x21, x0
	mov	x0, x1
	bl	_trinity_get_ps
	mov	x19, x0
	mov	x0, x21
	bl	_trinity_get_pi
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x22, x0
	ldp	w1, w0, [x20]
	bl	_r600_is_uvd_state
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	bl	_trinity_get_uvd_clock_index
	and	w8, w0, #0xfffffffe
	cmp	w8, #2
	ldr	x8, [x22]
	ldr	d0, [x8, w0, sxtw #3]
	cset	w9, eq
	ldr	d1, [x8, w9, uxtw #3]
	mov.d	v1[1], v0[0]
	str	q1, [x19]
LBB0_3:
	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
	.no_dead_strip	_trinity_adjust_uvd_state
.subsections_via_symbols
