	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vegam_populate_cac_table
_vegam_populate_cac_table:              ## @vegam_populate_cac_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %r12
	cmpq	$0, (%r12)
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r14
	movq	8(%rdi), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r12, %rdi
	callq	_phm_get_voltage_index
	movq	8(%r12), %rcx
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %r13
	movl	8(%rcx,%r13), %edi
	callq	_convert_to_vid
	movq	16(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	8(%r12), %rax
	movl	4(%rax,%r13), %edi
	callq	_convert_to_vid
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	8(%r12), %rax
	movl	(%rax,%r13), %edi
	callq	_convert_to_vid
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	(%r12), %rbx
	jb	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vegam_populate_cac_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vegam_populate_cac_table
_vegam_populate_cac_table:              ; @vegam_populate_cac_table
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x21, #0
	ldr	x22, [x0, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x20
	bl	_phm_get_voltage_index
	ldr	x8, [x20, #8]
	add	x9, x0, x0, lsl #1
	lsl	x23, x9, #2
	add	x8, x8, x23
	ldr	w0, [x8, #8]
	bl	_convert_to_vid
	ldr	x8, [x19, #16]
	lsl	x24, x21, #3
	str	x0, [x8, x24]
	ldr	x8, [x20, #8]
	add	x8, x8, x23
	ldr	w0, [x8, #4]
	bl	_convert_to_vid
	ldr	x8, [x19, #8]
	str	x0, [x8, x24]
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x23]
	bl	_convert_to_vid
	ldr	x8, [x19]
	str	x0, [x8, x24]
	add	x21, x21, #1
	ldr	x8, [x20]
	cmp	x21, x8
	b.lo	LBB0_2
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vegam_populate_cac_table
.subsections_via_symbols
