	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_v11_0_get_clk_info_from_vbios
_smu_v11_0_get_clk_info_from_vbios:     ## @smu_v11_0_get_clk_info_from_vbios
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, -56(%rbp)
	movq	_SMU11_SYSPLL0_SOCCLK_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_GET_SMU_CLOCK_INFO_V3_1_GET_CLOCK_FREQ@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, -64(%rbp)
	movq	_atom_master_list_of_command_functions_v2_1@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_getsmuclockinfo@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_get_index_into_master_table
	movl	(%r12), %edi
	leaq	-64(%rbp), %rdx
	movl	%eax, %esi
	callq	_amdgpu_atom_execute_table
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_2:
	movl	-64(%rbp), %edi
	callq	_le32_to_cpu
	cltq
	imulq	$1759218605, %rax, %rax         ## imm = 0x68DB8BAD
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$44, %rax
	addl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_SMU11_SYSPLL0_DCEFCLK_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	(%r13), %rax
	movq	%rax, -64(%rbp)
	movl	(%r15), %edi
	movl	(%r14), %esi
	callq	_get_index_into_master_table
	movq	%r12, %r13
	movl	(%r12), %edi
	movl	%eax, %esi
	leaq	-64(%rbp), %rdx
	callq	_amdgpu_atom_execute_table
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	%r14, %r12
	movl	-64(%rbp), %edi
	callq	_le32_to_cpu
	cltq
	imulq	$1759218605, %rax, %rax         ## imm = 0x68DB8BAD
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$44, %rax
	addl	%ecx, %eax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, 4(%r14)
	leaq	-64(%rbp), %r15
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_SMU11_SYSPLL0_ECLK_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_GET_SMU_CLOCK_INFO_V3_1_GET_CLOCK_FREQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	_atom_master_list_of_command_functions_v2_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_get_index_into_master_table
	movl	(%r13), %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_amdgpu_atom_execute_table
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movl	-64(%rbp), %edi
	callq	_le32_to_cpu
	cltq
	imulq	$1759218605, %rax, %rax         ## imm = 0x68DB8BAD
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$44, %rax
	addl	%ecx, %eax
	movl	%eax, 8(%r14)
	leaq	-64(%rbp), %r15
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_SMU11_SYSPLL0_VCLK_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_GET_SMU_CLOCK_INFO_V3_1_GET_CLOCK_FREQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	_atom_master_list_of_command_functions_v2_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_get_index_into_master_table
	movl	(%r13), %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_amdgpu_atom_execute_table
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	-64(%rbp), %edi
	callq	_le32_to_cpu
	cltq
	imulq	$1759218605, %rax, %rax         ## imm = 0x68DB8BAD
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$44, %rax
	addl	%ecx, %eax
	movl	%eax, 12(%r14)
	leaq	-64(%rbp), %r15
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_SMU11_SYSPLL0_DCLK_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_GET_SMU_CLOCK_INFO_V3_1_GET_CLOCK_FREQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	_atom_master_list_of_command_functions_v2_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_get_index_into_master_table
	movl	(%r13), %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_amdgpu_atom_execute_table
	testl	%eax, %eax
	je	LBB0_9
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_GET_SMU_CLOCK_INFO_V3_1_GET_CLOCK_FREQ@GOTPCREL(%rip), %r15
	movl	-64(%rbp), %edi
	callq	_le32_to_cpu
	cltq
	imulq	$1759218605, %rax, %rax         ## imm = 0x68DB8BAD
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$44, %rax
	addl	%ecx, %eax
	movl	%eax, 16(%r14)
	cmpl	$3, 20(%r14)
	jne	LBB0_8
## %bb.10:
	movq	%r14, %rax
	cmpl	$2, 24(%r14)
	jl	LBB0_8
## %bb.11:
	leaq	-64(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_SMU11_SYSPLL1_0_FCLK_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_SMU11_SYSPLL1_2_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	(%r15), %rax
	movq	%rax, -64(%rbp)
	movq	_atom_master_list_of_command_functions_v2_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_get_index_into_master_table
	movl	(%r13), %edi
	movl	%eax, %esi
	leaq	-64(%rbp), %rdx
	callq	_amdgpu_atom_execute_table
	testl	%eax, %eax
	jne	LBB0_6
## %bb.12:
	movl	-64(%rbp), %edi
	callq	_le32_to_cpu
	cltq
	imulq	$1759218605, %rax, %rax         ## imm = 0x68DB8BAD
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$44, %rax
	addl	%ecx, %eax
	movl	%eax, 28(%r14)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU11_SYSPLL0_SOCCLK_ID,4,2    ## @SMU11_SYSPLL0_SOCCLK_ID
	.comm	_GET_SMU_CLOCK_INFO_V3_1_GET_CLOCK_FREQ,8,3 ## @GET_SMU_CLOCK_INFO_V3_1_GET_CLOCK_FREQ
	.comm	_atom_master_list_of_command_functions_v2_1,4,2 ## @atom_master_list_of_command_functions_v2_1
	.comm	_getsmuclockinfo,4,2            ## @getsmuclockinfo
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SMU11_SYSPLL0_DCEFCLK_ID,4,2   ## @SMU11_SYSPLL0_DCEFCLK_ID
	.comm	_SMU11_SYSPLL0_ECLK_ID,4,2      ## @SMU11_SYSPLL0_ECLK_ID
	.comm	_SMU11_SYSPLL0_VCLK_ID,4,2      ## @SMU11_SYSPLL0_VCLK_ID
	.comm	_SMU11_SYSPLL0_DCLK_ID,4,2      ## @SMU11_SYSPLL0_DCLK_ID
	.comm	_SMU11_SYSPLL1_0_FCLK_ID,4,2    ## @SMU11_SYSPLL1_0_FCLK_ID
	.comm	_SMU11_SYSPLL1_2_ID,4,2         ## @SMU11_SYSPLL1_2_ID
	.no_dead_strip	_smu_v11_0_get_clk_info_from_vbios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_v11_0_get_clk_info_from_vbios
_smu_v11_0_get_clk_info_from_vbios:     ; @smu_v11_0_get_clk_info_from_vbios
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x20, [x0, #32]
	str	xzr, [sp, #24]
Lloh0:
	adrp	x8, _SMU11_SYSPLL0_SOCCLK_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU11_SYSPLL0_SOCCLK_ID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x21, _GET_SMU_CLOCK_INFO_V3_1_GET_CLOCK_FREQ@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GET_SMU_CLOCK_INFO_V3_1_GET_CLOCK_FREQ@GOTPAGEOFF]
	ldr	x9, [x21]
	stp	x9, xzr, [sp, #8]
	str	w8, [sp, #20]
Lloh5:
	adrp	x22, _atom_master_list_of_command_functions_v2_1@GOTPAGE
Lloh6:
	ldr	x22, [x22, _atom_master_list_of_command_functions_v2_1@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh7:
	adrp	x23, _getsmuclockinfo@GOTPAGE
Lloh8:
	ldr	x23, [x23, _getsmuclockinfo@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_get_index_into_master_table
	mov	x1, x0
	ldr	w0, [x20]
	add	x2, sp, #8
	bl	_amdgpu_atom_execute_table
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	w0, [sp, #8]
	bl	_le32_to_cpu
	mov	w24, #35757
	movk	w24, #26843, lsl #16
	smull	x8, w0, w24
	lsr	x9, x8, #63
	asr	x8, x8, #44
	add	w8, w8, w9
	str	w8, [x19]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh9:
	adrp	x8, _SMU11_SYSPLL0_DCEFCLK_ID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SMU11_SYSPLL0_DCEFCLK_ID@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	ldr	x8, [x21]
	str	x8, [sp, #8]
	ldr	w0, [x22]
	ldr	w1, [x23]
	bl	_get_index_into_master_table
	mov	x1, x0
	ldr	w0, [x20]
	add	x2, sp, #8
	bl	_amdgpu_atom_execute_table
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	w0, [sp, #8]
	bl	_le32_to_cpu
	smull	x8, w0, w24
	lsr	x9, x8, #63
	asr	x8, x8, #44
	add	w8, w8, w9
	str	w8, [x19, #4]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh12:
	adrp	x8, _SMU11_SYSPLL0_ECLK_ID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SMU11_SYSPLL0_ECLK_ID@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	ldr	x8, [x21]
	str	x8, [sp, #8]
	ldr	w0, [x22]
	ldr	w1, [x23]
	bl	_get_index_into_master_table
	mov	x1, x0
	ldr	w0, [x20]
	add	x2, sp, #8
	bl	_amdgpu_atom_execute_table
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w0, [sp, #8]
	bl	_le32_to_cpu
	mov	w24, #35757
	movk	w24, #26843, lsl #16
	smull	x8, w0, w24
	lsr	x9, x8, #63
	asr	x8, x8, #44
	add	w8, w8, w9
	str	w8, [x19, #8]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh15:
	adrp	x8, _SMU11_SYSPLL0_VCLK_ID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SMU11_SYSPLL0_VCLK_ID@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	ldr	x8, [x21]
	str	x8, [sp, #8]
	ldr	w0, [x22]
	ldr	w1, [x23]
	bl	_get_index_into_master_table
	mov	x1, x0
	ldr	w0, [x20]
	add	x2, sp, #8
	bl	_amdgpu_atom_execute_table
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w0, [sp, #8]
	bl	_le32_to_cpu
	smull	x8, w0, w24
	lsr	x9, x8, #63
	asr	x8, x8, #44
	add	w8, w8, w9
	str	w8, [x19, #12]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh18:
	adrp	x8, _SMU11_SYSPLL0_DCLK_ID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SMU11_SYSPLL0_DCLK_ID@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	ldr	x8, [x21]
	str	x8, [sp, #8]
	ldr	w0, [x22]
	ldr	w1, [x23]
	bl	_get_index_into_master_table
	mov	x1, x0
	ldr	w0, [x20]
	add	x2, sp, #8
	bl	_amdgpu_atom_execute_table
	cbz	w0, LBB0_7
LBB0_5:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	ldr	w0, [sp, #8]
	bl	_le32_to_cpu
	mov	w8, #35757
	movk	w8, #26843, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #44
	add	w8, w8, w9
	str	w8, [x19, #16]
	ldr	w8, [x19, #20]
	cmp	w8, #3
	b.ne	LBB0_11
; %bb.8:
	ldr	w8, [x19, #24]
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.9:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh24:
	adrp	x8, _SMU11_SYSPLL1_0_FCLK_ID@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SMU11_SYSPLL1_0_FCLK_ID@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _SMU11_SYSPLL1_2_ID@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SMU11_SYSPLL1_2_ID@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
	ldr	x8, [x21]
	str	x8, [sp, #8]
	ldr	w0, [x22]
	ldr	w1, [x23]
	bl	_get_index_into_master_table
	mov	x1, x0
	ldr	w0, [x20]
	add	x2, sp, #8
	bl	_amdgpu_atom_execute_table
	cbnz	w0, LBB0_5
; %bb.10:
	ldr	w0, [sp, #8]
	bl	_le32_to_cpu
	mov	x8, x0
	mov	w0, #0
	mov	w9, #35757
	movk	w9, #26843, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #44
	add	w8, w8, w9
	str	w8, [x19, #28]
	b	LBB0_6
LBB0_11:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU11_SYSPLL0_SOCCLK_ID,4,2    ; @SMU11_SYSPLL0_SOCCLK_ID
	.comm	_GET_SMU_CLOCK_INFO_V3_1_GET_CLOCK_FREQ,8,3 ; @GET_SMU_CLOCK_INFO_V3_1_GET_CLOCK_FREQ
	.comm	_atom_master_list_of_command_functions_v2_1,4,2 ; @atom_master_list_of_command_functions_v2_1
	.comm	_getsmuclockinfo,4,2            ; @getsmuclockinfo
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SMU11_SYSPLL0_DCEFCLK_ID,4,2   ; @SMU11_SYSPLL0_DCEFCLK_ID
	.comm	_SMU11_SYSPLL0_ECLK_ID,4,2      ; @SMU11_SYSPLL0_ECLK_ID
	.comm	_SMU11_SYSPLL0_VCLK_ID,4,2      ; @SMU11_SYSPLL0_VCLK_ID
	.comm	_SMU11_SYSPLL0_DCLK_ID,4,2      ; @SMU11_SYSPLL0_DCLK_ID
	.comm	_SMU11_SYSPLL1_0_FCLK_ID,4,2    ; @SMU11_SYSPLL1_0_FCLK_ID
	.comm	_SMU11_SYSPLL1_2_ID,4,2         ; @SMU11_SYSPLL1_2_ID
	.no_dead_strip	_smu_v11_0_get_clk_info_from_vbios
.subsections_via_symbols
