	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_populate_pm_base
_ci_populate_pm_base:                   ## @ci_populate_pm_base
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_ci_get_pi
	cmpq	$0, 8(%rax)
	je	LBB0_11
## %bb.1:
	movq	%rax, %r14
	movq	_SMU7_FIRMWARE_HEADER_LOCATION@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_SMU7_Firmware_Header@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PmFuseTable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	addq	%rax, %rbx
	movl	(%r14), %ecx
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ci_read_smc_sram_dword
	testl	%eax, %eax
	jne	LBB0_12
## %bb.2:
	movq	%r15, %rdi
	callq	_ci_populate_bapm_vddc_vid_sidd
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movq	%r15, %rdi
	callq	_ci_populate_vddc_vid
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	movq	%r15, %rdi
	callq	_ci_populate_svi_load_line
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	movq	%r15, %rdi
	callq	_ci_populate_tdc_limit
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	movq	%r15, %rdi
	callq	_ci_populate_dw8
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movq	%r15, %rdi
	callq	_ci_populate_fuzzy_fan
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movq	%r15, %rdi
	callq	_ci_min_max_v_gnbl_pm_lid_from_bapm_vddc
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movq	%r15, %rdi
	callq	_ci_populate_bapm_vddc_base_leakage_sidd
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movl	-28(%rbp), %esi
	movq	%r14, %rdx
	addq	$4, %rdx
	movl	(%r14), %r8d
	movq	%r15, %rdi
	movl	$4, %ecx
	callq	_ci_copy_bytes_to_smc
	testl	%eax, %eax
	jne	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU7_FIRMWARE_HEADER_LOCATION,8,3 ## @SMU7_FIRMWARE_HEADER_LOCATION
	.comm	_SMU7_Firmware_Header,4,2       ## @SMU7_Firmware_Header
	.comm	_PmFuseTable,4,2                ## @PmFuseTable
	.no_dead_strip	_ci_populate_pm_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_populate_pm_base
_ci_populate_pm_base:                   ; @ci_populate_pm_base
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_ci_get_pi
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_11
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _SMU7_FIRMWARE_HEADER_LOCATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU7_FIRMWARE_HEADER_LOCATION@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _SMU7_Firmware_Header@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMU7_Firmware_Header@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _PmFuseTable@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PmFuseTable@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_offsetof
	add	x1, x0, x21
	ldr	w3, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_ci_read_smc_sram_dword
	cbnz	w0, LBB0_12
; %bb.2:
	mov	x0, x19
	bl	_ci_populate_bapm_vddc_vid_sidd
	cbnz	w0, LBB0_12
; %bb.3:
	mov	x0, x19
	bl	_ci_populate_vddc_vid
	cbnz	w0, LBB0_12
; %bb.4:
	mov	x0, x19
	bl	_ci_populate_svi_load_line
	cbnz	w0, LBB0_12
; %bb.5:
	mov	x0, x19
	bl	_ci_populate_tdc_limit
	cbnz	w0, LBB0_12
; %bb.6:
	mov	x0, x19
	bl	_ci_populate_dw8
	cbnz	w0, LBB0_12
; %bb.7:
	mov	x0, x19
	bl	_ci_populate_fuzzy_fan
	cbnz	w0, LBB0_12
; %bb.8:
	mov	x0, x19
	bl	_ci_min_max_v_gnbl_pm_lid_from_bapm_vddc
	cbnz	w0, LBB0_12
; %bb.9:
	mov	x0, x19
	bl	_ci_populate_bapm_vddc_base_leakage_sidd
	cbnz	w0, LBB0_12
; %bb.10:
	ldr	w1, [sp, #12]
	ldr	w4, [x20], #4
	mov	x0, x19
	mov	x2, x20
	mov	w3, #4
	bl	_ci_copy_bytes_to_smc
	cbnz	w0, LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU7_FIRMWARE_HEADER_LOCATION,8,3 ; @SMU7_FIRMWARE_HEADER_LOCATION
	.comm	_SMU7_Firmware_Header,4,2       ; @SMU7_Firmware_Header
	.comm	_PmFuseTable,4,2                ; @PmFuseTable
	.no_dead_strip	_ci_populate_pm_base
.subsections_via_symbols
