	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vegam_get_sclk_range_table
_vegam_get_sclk_range_table:            ## @vegam_get_sclk_range_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	(%rdi), %rdi
	callq	_amdgpu_asic_get_xclk
	movq	%rax, %rbx
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_atomctrl_get_smc_sclk_range_table
	movq	_NUM_SCLK_RANGE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.2:
	movq	%rbx, %r9
	movl	$8, %ebx
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_Range_Table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15), %r8
	movq	8(%rax,%r15), %rcx
	movq	%r8, %rsi
	imulq	%r9, %rsi
	shrq	%cl, %rsi
	movq	(%r14), %rdi
	movq	%rsi, -8(%rdi,%rbx)
	movq	16(%rax,%r15), %rdx
	movq	%rdx, %rsi
	imulq	%r9, %rsi
	shrq	%cl, %rsi
	movq	%rsi, (%rdi,%rbx)
	movl	32(%rax,%r15), %edi
	movq	(%r13), %rsi
	movl	%edi, 32(%rsi,%r15)
	movq	%rcx, (%rsi,%r15)
	movq	24(%rax,%r15), %rdi
	movq	%rdi, 8(%rsi,%r15)
	movq	%rdx, 16(%rsi,%r15)
	movq	%r8, 24(%rsi,%r15)
	movq	%r9, %r14
	callq	_CONVERT_FROM_HOST_TO_SMC_US
	movq	(%r13), %rax
	movq	16(%rax,%r15), %rdi
	callq	_CONVERT_FROM_HOST_TO_SMC_US
	movq	(%r13), %rax
	movq	24(%rax,%r15), %rdi
	callq	_CONVERT_FROM_HOST_TO_SMC_US
	movq	%r14, %r9
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	incq	%r12
	addq	$40, %r15
	addq	$16, %rbx
	movq	_NUM_SCLK_RANGE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jb	LBB0_3
	jmp	LBB0_7
LBB0_4:
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax
	movl	32(%rax,%rbx), %ecx
	movq	(%r13), %rdx
	movl	%ecx, 32(%rdx,%rbx)
	movq	8(%rax,%rbx), %rdi
	movups	(%rax,%rbx), %xmm0
	movups	%xmm0, (%rdx,%rbx)
	movups	16(%rax,%rbx), %xmm0
	movups	%xmm0, 16(%rdx,%rbx)
	callq	_CONVERT_FROM_HOST_TO_SMC_US
	movq	(%r13), %rax
	movq	16(%rax,%rbx), %rdi
	callq	_CONVERT_FROM_HOST_TO_SMC_US
	movq	(%r13), %rax
	movq	24(%rax,%rbx), %rdi
	callq	_CONVERT_FROM_HOST_TO_SMC_US
	incq	%r14
	addq	$40, %rbx
	movq	_NUM_SCLK_RANGE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jb	LBB0_6
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_SCLK_RANGE,8,3             ## @NUM_SCLK_RANGE
	.comm	_Range_Table,8,3                ## @Range_Table
	.no_dead_strip	_vegam_get_sclk_range_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vegam_get_sclk_range_table
_vegam_get_sclk_range_table:            ; @vegam_get_sclk_range_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x21, x0
	stp	xzr, xzr, [sp]
	ldp	x0, x22, [x0]
	bl	_amdgpu_asic_get_xclk
	mov	x20, x0
	mov	x1, sp
	mov	x0, x21
	bl	_atomctrl_get_smc_sclk_range_table
Lloh0:
	adrp	x21, _NUM_SCLK_RANGE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NUM_SCLK_RANGE@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x0, LBB0_4
; %bb.1:
	cbz	x8, LBB0_7
; %bb.2:
	mov	x23, #0
	mov	w24, #16
	mov	w25, #8
Lloh2:
	adrp	x26, _Range_Table@GOTPAGE
Lloh3:
	ldr	x26, [x26, _Range_Table@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	add	x8, x8, x24
	ldp	x9, x10, [x8, #-16]
	mul	x11, x9, x20
	lsr	x11, x11, x10
	ldr	x12, [x22]
	add	x12, x12, x25
	stur	x11, [x12, #-8]
	ldr	x11, [x8]
	mul	x13, x11, x20
	lsr	x13, x13, x10
	str	x13, [x12]
	ldr	w12, [x8, #16]
	ldr	x13, [x19]
	add	x13, x13, x24
	str	w12, [x13, #16]
	stur	x10, [x13, #-16]
	ldr	x0, [x8, #8]
	stp	x0, x11, [x13, #-8]
	str	x9, [x13, #8]
	bl	_CONVERT_FROM_HOST_TO_SMC_US
	ldr	x8, [x19]
	ldr	x0, [x8, x24]
	bl	_CONVERT_FROM_HOST_TO_SMC_US
	ldr	x8, [x19]
	add	x8, x8, x24
	ldr	x0, [x8, #8]
	bl	_CONVERT_FROM_HOST_TO_SMC_US
	add	x23, x23, #1
	ldr	x8, [x21]
	add	x24, x24, #40
	add	x25, x25, #16
	cmp	x23, x8
	b.lo	LBB0_3
	b	LBB0_7
LBB0_4:
	cbz	x8, LBB0_7
; %bb.5:
	mov	x20, #0
	mov	w22, #32
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp]
	add	x8, x8, x22
	ldr	w9, [x8]
	ldr	x10, [x19]
	add	x10, x10, x22
	str	w9, [x10]
	ldur	x9, [x8, #-32]
	stur	x9, [x10, #-32]
	ldur	q0, [x8, #-24]
	stur	q0, [x10, #-24]
	ldur	x8, [x8, #-8]
	stur	x8, [x10, #-8]
	fmov	x0, d0
	bl	_CONVERT_FROM_HOST_TO_SMC_US
	ldr	x8, [x19]
	add	x8, x8, x22
	ldur	x0, [x8, #-16]
	bl	_CONVERT_FROM_HOST_TO_SMC_US
	ldr	x8, [x19]
	add	x8, x8, x22
	ldur	x0, [x8, #-8]
	bl	_CONVERT_FROM_HOST_TO_SMC_US
	add	x20, x20, #1
	ldr	x8, [x21]
	add	x22, x22, #40
	cmp	x20, x8
	b.lo	LBB0_6
LBB0_7:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_SCLK_RANGE,8,3             ; @NUM_SCLK_RANGE
	.comm	_Range_Table,8,3                ; @Range_Table
	.no_dead_strip	_vegam_get_sclk_range_table
.subsections_via_symbols
