	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trinity_get_uvd_clock_index
_trinity_get_uvd_clock_index:           ## @trinity_get_uvd_clock_index
	.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	%rsi, %rbx
	callq	_trinity_get_pi
	movq	(%rbx), %rdx
	movq	(%rax), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_2
## %bb.1:
	movq	8(%rbx), %rsi
	xorl	%eax, %eax
	cmpq	8(%rcx), %rsi
	je	LBB0_9
LBB0_2:
	cmpq	16(%rcx), %rdx
	jne	LBB0_4
## %bb.3:
	movq	8(%rbx), %rsi
	movl	$1, %eax
	cmpq	24(%rcx), %rsi
	je	LBB0_9
LBB0_4:
	cmpq	32(%rcx), %rdx
	jne	LBB0_6
## %bb.5:
	movq	8(%rbx), %rsi
	movl	$2, %eax
	cmpq	40(%rcx), %rsi
	je	LBB0_9
LBB0_6:
	cmpq	48(%rcx), %rdx
	jne	LBB0_8
## %bb.7:
	movq	8(%rbx), %rdx
	movl	$3, %eax
	cmpq	56(%rcx), %rdx
	je	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movl	$3, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UVD clock index not found!\n"

	.no_dead_strip	_trinity_get_uvd_clock_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trinity_get_uvd_clock_index
_trinity_get_uvd_clock_index:           ; @trinity_get_uvd_clock_index
	.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, x1
	bl	_trinity_get_pi
	ldr	x9, [x19]
	ldr	x8, [x0]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
	ldr	x10, [x19, #8]
	ldr	x11, [x8, #8]
	cmp	x10, x11
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_13
LBB0_3:
	ldr	x10, [x8, #16]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.4:
	ldr	x10, [x19, #8]
	ldr	x11, [x8, #24]
	cmp	x10, x11
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #1
	b	LBB0_13
LBB0_6:
	ldr	x10, [x8, #32]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.7:
	ldr	x10, [x19, #8]
	ldr	x11, [x8, #40]
	cmp	x10, x11
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #2
	b	LBB0_13
LBB0_9:
	ldr	x10, [x8, #48]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.10:
	ldr	x9, [x19, #8]
	ldr	x8, [x8, #56]
	cmp	x9, x8
	b.eq	LBB0_12
LBB0_11:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_12:
	mov	w0, #3
LBB0_13:
	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	"UVD clock index not found!\n"

	.no_dead_strip	_trinity_get_uvd_clock_index
.subsections_via_symbols
