	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_populate_smc_samu_level
_ci_populate_smc_samu_level:            ## @ci_populate_smc_samu_level
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	movq	(%rdi), %rcx
	movq	%rcx, (%rsi)
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%rsi), %rcx
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r15
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	4(%rax,%r13,8), %edx
	movl	%edx, 8(%rcx,%rbx)
	movq	_VOLTAGE_SCALE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	imull	(%rax,%r13,8), %esi
	movl	%esi, (%rcx,%rbx)
	movl	$1, 4(%rcx,%rbx)
	movq	_COMPUTE_GPUCLK_INPUT_FLAG_DEFAULT_GPUCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_radeon_atom_get_clock_dividers
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax
	movq	8(%r12), %rcx
	movq	%rax, 16(%rcx,%rbx)
	movl	8(%rcx,%rbx), %edi
	callq	_cpu_to_be32
	movq	8(%r12), %rcx
	movl	%eax, 8(%rcx,%rbx)
	movl	(%rcx,%rbx), %edi
	callq	_cpu_to_be16
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%rbx)
	incq	%r13
	addq	$24, %rbx
	cmpq	(%r12), %r13
	jb	LBB0_2
## %bb.4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VOLTAGE_SCALE,4,2              ## @VOLTAGE_SCALE
	.comm	_COMPUTE_GPUCLK_INPUT_FLAG_DEFAULT_GPUCLK,4,2 ## @COMPUTE_GPUCLK_INPUT_FLAG_DEFAULT_GPUCLK
	.no_dead_strip	_ci_populate_smc_samu_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_populate_smc_samu_level
_ci_populate_smc_samu_level:            ; @ci_populate_smc_samu_level
	.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
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x0]
	str	x9, [x1]
	cbz	x9, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x21, #0
	mov	x22, #0
	mov	x23, #0
	ldr	x8, [x1, #8]
Lloh3:
	adrp	x24, _VOLTAGE_SCALE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _VOLTAGE_SCALE@GOTPAGEOFF]
	mov	w25, #1
Lloh5:
	adrp	x26, _COMPUTE_GPUCLK_INPUT_FLAG_DEFAULT_GPUCLK@GOTPAGE
Lloh6:
	ldr	x26, [x26, _COMPUTE_GPUCLK_INPUT_FLAG_DEFAULT_GPUCLK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	add	x9, x9, x22
	add	x8, x8, x21
	ldp	w9, w2, [x9]
	str	w2, [x8, #8]
	ldr	w10, [x24]
	mul	w9, w10, w9
	stp	w9, w25, [x8]
	ldr	w1, [x26]
	add	x4, sp, #8
	mov	x0, x20
	mov	w3, #0
	bl	_radeon_atom_get_clock_dividers
	cbnz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x19, #8]
	add	x9, x9, x21
	str	x8, [x9, #16]
	ldr	w0, [x9, #8]
	bl	_cpu_to_be32
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	str	w0, [x8, #8]
	ldr	w0, [x8]
	bl	_cpu_to_be16
	ldp	x9, x8, [x19]
	str	w0, [x8, x21]
	add	x23, x23, #1
	add	x22, x22, #8
	add	x21, x21, #24
	cmp	x23, x9
	b.lo	LBB0_2
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VOLTAGE_SCALE,4,2              ; @VOLTAGE_SCALE
	.comm	_COMPUTE_GPUCLK_INPUT_FLAG_DEFAULT_GPUCLK,4,2 ; @COMPUTE_GPUCLK_INPUT_FLAG_DEFAULT_GPUCLK
	.no_dead_strip	_ci_populate_smc_samu_level
.subsections_via_symbols
