	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_construct_voltage_tables
_ci_construct_voltage_tables:           ## @ci_construct_voltage_tables
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_ci_get_pi
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	_CISLANDS_VOLTAGE_CONTROL_BY_GPIO@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_2
## %bb.1:
	movq	_VOLTAGE_TYPE_VDDC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VOLTAGE_OBJ_GPIO_LUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	40(%r15), %rcx
	movq	%r14, %rdi
	callq	_radeon_atom_get_voltage_table
	jmp	LBB0_4
LBB0_2:
	movq	_CISLANDS_VOLTAGE_CONTROL_BY_SVID2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	leaq	8(%r14), %rsi
	leaq	40(%r15), %rdx
	movq	%r14, %rdi
	callq	_ci_get_svi2_voltage_table
LBB0_4:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
LBB0_5:
	movq	_SMU7_MAX_LEVELS_VDDC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, 40(%r15)
	jle	LBB0_7
## %bb.6:
	leaq	40(%r15), %rdx
	movq	%r14, %rdi
	callq	_si_trim_voltage_table_to_fit_state_table
LBB0_7:
	movq	8(%r15), %rax
	cmpq	(%r12), %rax
	jne	LBB0_9
## %bb.8:
	movq	_VOLTAGE_TYPE_VDDCI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VOLTAGE_OBJ_GPIO_LUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	32(%r15), %rcx
	movq	%r14, %rdi
	callq	_radeon_atom_get_voltage_table
	jmp	LBB0_11
LBB0_9:
	movq	_CISLANDS_VOLTAGE_CONTROL_BY_SVID2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.10:
	leaq	4(%r14), %rsi
	leaq	32(%r15), %rdx
	movq	%r14, %rdi
	callq	_ci_get_svi2_voltage_table
LBB0_11:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
LBB0_12:
	movq	_SMU7_MAX_LEVELS_VDDCI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, 32(%r15)
	jle	LBB0_14
## %bb.13:
	leaq	32(%r15), %rdx
	movq	%r14, %rdi
	callq	_si_trim_voltage_table_to_fit_state_table
LBB0_14:
	movq	16(%r15), %rax
	cmpq	(%r12), %rax
	jne	LBB0_16
## %bb.15:
	movq	_VOLTAGE_TYPE_MVDDC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VOLTAGE_OBJ_GPIO_LUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	24(%r15), %rcx
	movq	%r14, %rdi
	callq	_radeon_atom_get_voltage_table
	jmp	LBB0_18
LBB0_16:
	movq	_CISLANDS_VOLTAGE_CONTROL_BY_SVID2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.17:
	leaq	24(%r15), %rdx
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_ci_get_svi2_voltage_table
LBB0_18:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
LBB0_19:
	movq	_SMU7_MAX_LEVELS_MVDD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%ebx, %ebx
	cmpq	%rsi, 24(%r15)
	jle	LBB0_21
## %bb.20:
	addq	$24, %r15
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_si_trim_voltage_table_to_fit_state_table
LBB0_21:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CISLANDS_VOLTAGE_CONTROL_BY_GPIO,8,3 ## @CISLANDS_VOLTAGE_CONTROL_BY_GPIO
	.comm	_VOLTAGE_TYPE_VDDC,4,2          ## @VOLTAGE_TYPE_VDDC
	.comm	_VOLTAGE_OBJ_GPIO_LUT,4,2       ## @VOLTAGE_OBJ_GPIO_LUT
	.comm	_CISLANDS_VOLTAGE_CONTROL_BY_SVID2,8,3 ## @CISLANDS_VOLTAGE_CONTROL_BY_SVID2
	.comm	_SMU7_MAX_LEVELS_VDDC,8,3       ## @SMU7_MAX_LEVELS_VDDC
	.comm	_VOLTAGE_TYPE_VDDCI,4,2         ## @VOLTAGE_TYPE_VDDCI
	.comm	_SMU7_MAX_LEVELS_VDDCI,8,3      ## @SMU7_MAX_LEVELS_VDDCI
	.comm	_VOLTAGE_TYPE_MVDDC,4,2         ## @VOLTAGE_TYPE_MVDDC
	.comm	_SMU7_MAX_LEVELS_MVDD,8,3       ## @SMU7_MAX_LEVELS_MVDD
	.no_dead_strip	_ci_construct_voltage_tables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_construct_voltage_tables
_ci_construct_voltage_tables:           ; @ci_construct_voltage_tables
	.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
	mov	x19, x0
	bl	_ci_get_pi
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _CISLANDS_VOLTAGE_CONTROL_BY_GPIO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CISLANDS_VOLTAGE_CONTROL_BY_GPIO@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _VOLTAGE_TYPE_VDDC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VOLTAGE_TYPE_VDDC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _VOLTAGE_OBJ_GPIO_LUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VOLTAGE_OBJ_GPIO_LUT@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x3, x20, #40
	mov	x0, x19
	bl	_radeon_atom_get_voltage_table
	cbnz	w0, LBB0_19
	b	LBB0_4
LBB0_2:
Lloh8:
	adrp	x9, _CISLANDS_VOLTAGE_CONTROL_BY_SVID2@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CISLANDS_VOLTAGE_CONTROL_BY_SVID2@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	add	x1, x19, #8
	add	x2, x20, #40
	mov	x0, x19
	bl	_ci_get_svi2_voltage_table
	cbnz	w0, LBB0_19
LBB0_4:
	mov	x2, x20
	ldr	x8, [x2, #40]!
Lloh11:
	adrp	x9, _SMU7_MAX_LEVELS_VDDC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SMU7_MAX_LEVELS_VDDC@GOTPAGEOFF]
Lloh13:
	ldr	x1, [x9]
	cmp	x8, x1
	b.le	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_si_trim_voltage_table_to_fit_state_table
LBB0_6:
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
Lloh14:
	adrp	x8, _VOLTAGE_TYPE_VDDCI@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VOLTAGE_TYPE_VDDCI@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _VOLTAGE_OBJ_GPIO_LUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VOLTAGE_OBJ_GPIO_LUT@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	add	x3, x20, #32
	mov	x0, x19
	bl	_radeon_atom_get_voltage_table
	cbnz	w0, LBB0_19
	b	LBB0_10
LBB0_8:
Lloh20:
	adrp	x9, _CISLANDS_VOLTAGE_CONTROL_BY_SVID2@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CISLANDS_VOLTAGE_CONTROL_BY_SVID2@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	add	x1, x19, #4
	add	x2, x20, #32
	mov	x0, x19
	bl	_ci_get_svi2_voltage_table
	cbnz	w0, LBB0_19
LBB0_10:
	mov	x2, x20
	ldr	x8, [x2, #32]!
Lloh23:
	adrp	x9, _SMU7_MAX_LEVELS_VDDCI@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SMU7_MAX_LEVELS_VDDCI@GOTPAGEOFF]
Lloh25:
	ldr	x1, [x9]
	cmp	x8, x1
	b.le	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_si_trim_voltage_table_to_fit_state_table
LBB0_12:
	ldr	x8, [x20, #16]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
Lloh26:
	adrp	x8, _VOLTAGE_TYPE_MVDDC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VOLTAGE_TYPE_MVDDC@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _VOLTAGE_OBJ_GPIO_LUT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VOLTAGE_OBJ_GPIO_LUT@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	add	x3, x20, #24
	mov	x0, x19
	bl	_radeon_atom_get_voltage_table
	cbnz	w0, LBB0_19
	b	LBB0_16
LBB0_14:
Lloh32:
	adrp	x9, _CISLANDS_VOLTAGE_CONTROL_BY_SVID2@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CISLANDS_VOLTAGE_CONTROL_BY_SVID2@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
	add	x2, x20, #24
	mov	x0, x19
	mov	x1, x19
	bl	_ci_get_svi2_voltage_table
	cbnz	w0, LBB0_19
LBB0_16:
	ldr	x8, [x20, #24]!
Lloh35:
	adrp	x9, _SMU7_MAX_LEVELS_MVDD@GOTPAGE
Lloh36:
	ldr	x9, [x9, _SMU7_MAX_LEVELS_MVDD@GOTPAGEOFF]
Lloh37:
	ldr	x1, [x9]
	cmp	x8, x1
	b.le	LBB0_18
; %bb.17:
	mov	x0, x19
	mov	x2, x20
	bl	_si_trim_voltage_table_to_fit_state_table
LBB0_18:
	mov	w0, #0
LBB0_19:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_CISLANDS_VOLTAGE_CONTROL_BY_GPIO,8,3 ; @CISLANDS_VOLTAGE_CONTROL_BY_GPIO
	.comm	_VOLTAGE_TYPE_VDDC,4,2          ; @VOLTAGE_TYPE_VDDC
	.comm	_VOLTAGE_OBJ_GPIO_LUT,4,2       ; @VOLTAGE_OBJ_GPIO_LUT
	.comm	_CISLANDS_VOLTAGE_CONTROL_BY_SVID2,8,3 ; @CISLANDS_VOLTAGE_CONTROL_BY_SVID2
	.comm	_SMU7_MAX_LEVELS_VDDC,8,3       ; @SMU7_MAX_LEVELS_VDDC
	.comm	_VOLTAGE_TYPE_VDDCI,4,2         ; @VOLTAGE_TYPE_VDDCI
	.comm	_SMU7_MAX_LEVELS_VDDCI,8,3      ; @SMU7_MAX_LEVELS_VDDCI
	.comm	_VOLTAGE_TYPE_MVDDC,4,2         ; @VOLTAGE_TYPE_MVDDC
	.comm	_SMU7_MAX_LEVELS_MVDD,8,3       ; @SMU7_MAX_LEVELS_MVDD
	.no_dead_strip	_ci_construct_voltage_tables
.subsections_via_symbols
