	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arcturus_get_current_clk_freq_by_table
_arcturus_get_current_clk_freq_by_table: ## @arcturus_get_current_clk_freq_by_table
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rdi, %r15
	callq	_smu_clk_get_index
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movl	%eax, %ebx
	leaq	_arcturus_get_current_clk_freq_by_table.metrics(%rip), %rsi
	movq	%r15, %rdi
	callq	_arcturus_get_metrics_table
	testl	%eax, %eax
	jne	LBB0_18
## %bb.4:
	cmpl	$128, %ebx
	je	LBB0_10
## %bb.5:
	cmpl	$129, %ebx
	je	LBB0_13
## %bb.6:
	cmpl	$130, %ebx
	jne	LBB0_16
## %bb.7:
	movq	_SMU_FEATURE_DPM_GFXCLK_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_smu_feature_is_enabled
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	_arcturus_get_current_clk_freq_by_table.metrics(%rip), %rax
	movl	520(%rax), %eax
	jmp	LBB0_17
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_SMU_FEATURE_DPM_UCLK_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_smu_feature_is_enabled
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	_arcturus_get_current_clk_freq_by_table.metrics(%rip), %rax
	movl	512(%rax), %eax
	jmp	LBB0_17
LBB0_13:
	movq	_SMU_FEATURE_DPM_SOCCLK_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_smu_feature_is_enabled
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movq	_arcturus_get_current_clk_freq_by_table.metrics(%rip), %rax
	movl	516(%rax), %eax
	jmp	LBB0_17
LBB0_16:
	movq	_arcturus_get_current_clk_freq_by_table.metrics(%rip), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %eax
	jmp	LBB0_17
LBB0_9:
	movl	_arcturus_get_current_clk_freq_by_table.metrics+16(%rip), %eax
	jmp	LBB0_17
LBB0_12:
	movl	_arcturus_get_current_clk_freq_by_table.metrics+12(%rip), %eax
	jmp	LBB0_17
LBB0_15:
	movl	_arcturus_get_current_clk_freq_by_table.metrics+8(%rip), %eax
LBB0_17:
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_arcturus_get_current_clk_freq_by_table.metrics,24,3 ## @arcturus_get_current_clk_freq_by_table.metrics
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SMU_FEATURE_DPM_GFXCLK_BIT,4,2 ## @SMU_FEATURE_DPM_GFXCLK_BIT
	.comm	_SMU_FEATURE_DPM_UCLK_BIT,4,2   ## @SMU_FEATURE_DPM_UCLK_BIT
	.comm	_SMU_FEATURE_DPM_SOCCLK_BIT,4,2 ## @SMU_FEATURE_DPM_SOCCLK_BIT
	.no_dead_strip	_arcturus_get_current_clk_freq_by_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arcturus_get_current_clk_freq_by_table
_arcturus_get_current_clk_freq_by_table: ; @arcturus_get_current_clk_freq_by_table
	.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
	cbz	x2, LBB0_8
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	bl	_smu_clk_get_index
	tbnz	w0, #31, LBB0_8
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x1, _arcturus_get_current_clk_freq_by_table.metrics@PAGE
Lloh1:
	add	x1, x1, _arcturus_get_current_clk_freq_by_table.metrics@PAGEOFF
	mov	x0, x20
	bl	_arcturus_get_metrics_table
	cbnz	w0, LBB0_9
; %bb.3:
	cmp	w21, #128
	b.eq	LBB0_10
; %bb.4:
	cmp	w21, #129
	b.eq	LBB0_12
; %bb.5:
	cmp	w21, #130
	b.ne	LBB0_14
; %bb.6:
Lloh2:
	adrp	x8, _SMU_FEATURE_DPM_GFXCLK_BIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SMU_FEATURE_DPM_GFXCLK_BIT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_smu_feature_is_enabled
	cbz	w0, LBB0_15
; %bb.7:
	mov	w0, #0
Lloh5:
	adrp	x8, _arcturus_get_current_clk_freq_by_table.metrics@PAGE
Lloh6:
	ldr	x8, [x8, _arcturus_get_current_clk_freq_by_table.metrics@PAGEOFF]
	ldr	w8, [x8, #520]
	b	LBB0_18
LBB0_8:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
LBB0_10:
Lloh10:
	adrp	x8, _SMU_FEATURE_DPM_UCLK_BIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SMU_FEATURE_DPM_UCLK_BIT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_smu_feature_is_enabled
	cbz	w0, LBB0_16
; %bb.11:
	mov	w0, #0
Lloh13:
	adrp	x8, _arcturus_get_current_clk_freq_by_table.metrics@PAGE
Lloh14:
	ldr	x8, [x8, _arcturus_get_current_clk_freq_by_table.metrics@PAGEOFF]
	ldr	w8, [x8, #512]
	b	LBB0_18
LBB0_12:
Lloh15:
	adrp	x8, _SMU_FEATURE_DPM_SOCCLK_BIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SMU_FEATURE_DPM_SOCCLK_BIT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_smu_feature_is_enabled
	cbz	w0, LBB0_17
; %bb.13:
	mov	w0, #0
Lloh18:
	adrp	x8, _arcturus_get_current_clk_freq_by_table.metrics@PAGE
Lloh19:
	ldr	x8, [x8, _arcturus_get_current_clk_freq_by_table.metrics@PAGEOFF]
	ldr	w8, [x8, #516]
	b	LBB0_18
LBB0_14:
	mov	w0, #0
Lloh20:
	adrp	x8, _arcturus_get_current_clk_freq_by_table.metrics@PAGE
Lloh21:
	ldr	x8, [x8, _arcturus_get_current_clk_freq_by_table.metrics@PAGEOFF]
	ldr	w8, [x8, w21, uxtw #2]
	b	LBB0_18
LBB0_15:
Lloh22:
	adrp	x8, _arcturus_get_current_clk_freq_by_table.metrics@PAGE+16
Lloh23:
	ldr	w8, [x8, _arcturus_get_current_clk_freq_by_table.metrics@PAGEOFF+16]
	b	LBB0_18
LBB0_16:
Lloh24:
	adrp	x8, _arcturus_get_current_clk_freq_by_table.metrics@PAGE+12
Lloh25:
	ldr	w8, [x8, _arcturus_get_current_clk_freq_by_table.metrics@PAGEOFF+12]
	b	LBB0_18
LBB0_17:
Lloh26:
	adrp	x8, _arcturus_get_current_clk_freq_by_table.metrics@PAGE+8
Lloh27:
	ldr	w8, [x8, _arcturus_get_current_clk_freq_by_table.metrics@PAGEOFF+8]
LBB0_18:
	str	w8, [x19]
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdr	Lloh18, Lloh19
	.loh AdrpLdr	Lloh20, Lloh21
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpLdr	Lloh24, Lloh25
	.loh AdrpLdr	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_arcturus_get_current_clk_freq_by_table.metrics,24,3 ; @arcturus_get_current_clk_freq_by_table.metrics
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SMU_FEATURE_DPM_GFXCLK_BIT,4,2 ; @SMU_FEATURE_DPM_GFXCLK_BIT
	.comm	_SMU_FEATURE_DPM_UCLK_BIT,4,2   ; @SMU_FEATURE_DPM_UCLK_BIT
	.comm	_SMU_FEATURE_DPM_SOCCLK_BIT,4,2 ; @SMU_FEATURE_DPM_SOCCLK_BIT
	.no_dead_strip	_arcturus_get_current_clk_freq_by_table
.subsections_via_symbols
