	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega10_get_sclks
_vega10_get_sclks:                      ## @vega10_get_sclks
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	$0, (%rsi)
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_12
## %bb.1:
	movq	8(%rax), %r10
	cmpq	$1, %r8
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	xorl	%edi, %edi
LBB0_9:
	testb	$1, %r8b
	je	LBB0_12
## %bb.10:
	movl	(%r10,%rdi,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.11:
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	movq	8(%rsi), %rdx
	movl	%ecx, (%rdx,%rax,4)
	incq	%rax
	movq	%rax, (%rsi)
LBB0_12:
	popq	%rbp
	retq
LBB0_3:
	movq	%r8, %r9
	andq	$-2, %r9
	xorl	%eax, %eax
	xorl	%edi, %edi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$2, %rdi
	cmpq	%rdi, %r9
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rdi,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	movq	8(%rsi), %rdx
	movl	%ecx, (%rdx,%rax,4)
	incq	%rax
	movq	%rax, (%rsi)
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r10,%rdi,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	movq	8(%rsi), %rdx
	movl	%ecx, (%rdx,%rax,4)
	incq	%rax
	movq	%rax, (%rsi)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vega10_get_sclks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega10_get_sclks
_vega10_get_sclks:                      ; @vega10_get_sclks
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x10, [x8]
	str	xzr, [x1]
	ldr	x8, [x10]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x9, #0
	ldr	x10, [x10, #8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #4
	subs	x8, x8, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cbz	w11, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w11, w11, w11, lsl #2
	lsl	w11, w11, #1
	ldr	x12, [x1, #8]
	str	w11, [x12, x9, lsl #2]
	add	x9, x9, #1
	str	x9, [x1]
	b	LBB0_2
LBB0_5:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vega10_get_sclks
.subsections_via_symbols
