	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega10_get_uclk_index
_vega10_get_uclk_index:                 ## @vega10_get_uclk_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.2:
	movq	8(%rsi), %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rsi,%rax,8)
	jge	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_3
## %bb.5:
	decq	%rcx
	movq	%rcx, %rax
LBB0_6:
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vega10_get_uclk_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega10_get_uclk_index
_vega10_get_uclk_index:                 ; @vega10_get_uclk_index
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_7
; %bb.1:
	ldr	x8, [x1]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x0, #0
	ldr	x9, [x1, #8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x0, lsl #3]
	cmp	x10, x2
	b.ge	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x0, #1
	cmp	x8, x0
	b.ne	LBB0_3
; %bb.5:
	sub	x0, x8, #1
LBB0_6:
	ret
LBB0_7:
	mov	x0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vega10_get_uclk_index
.subsections_via_symbols
