	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function navi10_get_uclk_dpm_states
_navi10_get_uclk_dpm_states:            ## @navi10_get_uclk_dpm_states
	.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_14
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.2:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	8(%rax), %rcx
	movq	_PPCLK_UCLK@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movq	(%rcx,%rdi,8), %r9
	testq	%r9, %r9
	je	LBB0_14
## %bb.4:
	movq	(%rax), %r10
	testq	%r10, %r10
	je	LBB0_14
## %bb.5:
	movq	%r9, (%rdx)
	xorl	%eax, %eax
	testq	%r9, %r9
	jle	LBB0_13
## %bb.6:
	leaq	-1(%r9), %rdx
	movl	%r9d, %r8d
	andl	$3, %r8d
	cmpq	$3, %rdx
	jb	LBB0_10
## %bb.7:
	andq	$-4, %r9
	xorl	%edx, %edx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	imulq	$1000, (%r10,%rdi,8), %rcx      ## imm = 0x3E8
	movq	%rcx, (%rsi,%rdi,8)
	imulq	$1000, 8(%r10,%rdi,8), %rcx     ## imm = 0x3E8
	movq	%rcx, 8(%rsi,%rdi,8)
	imulq	$1000, 16(%r10,%rdi,8), %rcx    ## imm = 0x3E8
	movq	%rcx, 16(%rsi,%rdi,8)
	imulq	$1000, 24(%r10,%rdi,8), %rcx    ## imm = 0x3E8
	movq	%rcx, 24(%rsi,%rdi,8)
	addq	$4, %rdi
	addq	$-32, %rdx
	cmpq	%rdi, %r9
	jne	LBB0_8
## %bb.9:
	subq	%rdx, %r10
	subq	%rdx, %rsi
LBB0_10:
	testq	%r8, %r8
	je	LBB0_13
## %bb.11:
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	imulq	$1000, (%r10,%rdx,8), %rcx      ## imm = 0x3E8
	movq	%rcx, (%rsi,%rdx,8)
	incq	%rdx
	cmpq	%rdx, %r8
	jne	LBB0_12
LBB0_13:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PPCLK_UCLK,8,3                 ## @PPCLK_UCLK
	.no_dead_strip	_navi10_get_uclk_dpm_states
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function navi10_get_uclk_dpm_states
_navi10_get_uclk_dpm_states:            ; @navi10_get_uclk_dpm_states
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_4
; %bb.1:
	cbz	x2, LBB0_4
; %bb.2:
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.3:
Lloh0:
	adrp	x9, _PPCLK_UCLK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PPCLK_UCLK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldp	x8, x10, [x8]
	ldr	x9, [x10, x9, lsl #3]
	cmp	x9, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_5:
	str	x9, [x2]
	cmp	x9, #1
	b.lt	LBB0_8
; %bb.6:
	mov	w10, #1000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8], #8
	mul	x11, x11, x10
	str	x11, [x1], #8
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_8:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PPCLK_UCLK,8,3                 ; @PPCLK_UCLK
	.no_dead_strip	_navi10_get_uclk_dpm_states
.subsections_via_symbols
