	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_dpm2_parameters
_init_dpm2_parameters:                  ## @init_dpm2_parameters
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %rdi
	callq	_le16_to_cpu
	xorl	%r15d, %r15d
	cmpq	$48, %rax
	jb	LBB0_11
## %bb.1:
	movl	36(%r14), %edi
	callq	_le32_to_cpu
	movq	%rax, 96(%rbx)
	movl	32(%r14), %edi
	callq	_le32_to_cpu
	movq	%rax, 88(%rbx)
	movq	(%r14), %rdi
	callq	_le16_to_cpu
	movq	%rax, 40(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rbx)
	movups	%xmm0, 72(%rbx)
	movabsq	$26843547100000, %rax           ## imm = 0x186A0016E360
	movq	%rax, (%rbx)
	movl	32(%r14), %edi
	callq	_le32_to_cpu
	movq	%rax, 48(%rbx)
	cmpq	$0, 40(%rbx)
	je	LBB0_3
## %bb.2:
	movl	8(%rbx), %edi
	movq	_PHM_PlatformCaps_PowerControl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phm_cap_set
LBB0_3:
	movl	28(%r14), %edi
	callq	_le32_to_cpu
	movq	%rax, 32(%rbx)
	movl	24(%r14), %edi
	callq	_le32_to_cpu
	movq	%rax, 24(%rbx)
	movq	$0, 112(%rbx)
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	leaq	112(%rbx), %r15
	callq	_le16_to_cpu
	leaq	(%rax,%r14), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_get_cac_leakage_table
	movl	%eax, %r15d
	jmp	LBB0_6
LBB0_4:
	xorl	%r15d, %r15d
LBB0_6:
	movq	16(%r14), %rdi
	callq	_le16_to_cpu
	movq	%rax, 16(%rbx)
	movq	$0, 104(%rbx)
	movq	40(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.7:
	callq	_le16_to_cpu
	cmpq	$0, (%rax,%r14)
	jle	LBB0_11
## %bb.8:
	movq	%rax, %r12
	movq	8(%r14,%rax), %rdi
	callq	_le16_to_cpu
	movq	_SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_11
## %bb.9:
	movq	(%r14,%r12), %rdi
	callq	_le16_to_cpu
	addq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_get_platform_power_management_table
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movl	8(%rbx), %edi
	movq	_PHM_PlatformCaps_EnablePlatformPowerManagement@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phm_cap_set
LBB0_11:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHM_PlatformCaps_PowerControl,4,2 ## @PHM_PlatformCaps_PowerControl
	.comm	_SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V5,8,3 ## @SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V5
	.comm	_PHM_PlatformCaps_EnablePlatformPowerManagement,4,2 ## @PHM_PlatformCaps_EnablePlatformPowerManagement
	.no_dead_strip	_init_dpm2_parameters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function init_dpm2_parameters
lCPI0_0:
	.long	1500000                         ; 0x16e360
	.long	6250                            ; 0x186a
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_init_dpm2_parameters:                  ; @init_dpm2_parameters
	.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	x20, x1
	mov	x19, x0
	ldr	x0, [x1]
	bl	_le16_to_cpu
	cmp	x0, #48
	b.lo	LBB0_5
; %bb.1:
	ldr	w0, [x20, #36]
	bl	_le32_to_cpu
	str	x0, [x19, #96]
	ldr	w0, [x20, #32]
	bl	_le32_to_cpu
	str	x0, [x19, #88]
	ldr	x0, [x20]
	bl	_le16_to_cpu
	str	x0, [x19, #40]
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #56]
	stur	q0, [x19, #72]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	ldr	w0, [x20, #32]
	bl	_le32_to_cpu
	str	x0, [x19, #48]
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x8, _PHM_PlatformCaps_PowerControl@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PHM_PlatformCaps_PowerControl@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_phm_cap_set
LBB0_3:
	ldr	w0, [x20, #28]
	bl	_le32_to_cpu
	str	x0, [x19, #32]
	ldr	w0, [x20, #24]
	bl	_le32_to_cpu
	mov	x21, x19
	str	xzr, [x21, #112]!
	stur	x0, [x21, #-88]
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_6
; %bb.4:
	bl	_le16_to_cpu
	add	x2, x0, x20
	mov	x0, x19
	mov	x1, x21
	bl	_get_cac_leakage_table
	mov	x21, x0
	b	LBB0_7
LBB0_5:
	mov	w21, #0
	b	LBB0_12
LBB0_6:
	mov	w21, #0
LBB0_7:
	ldr	x0, [x20, #16]
	bl	_le16_to_cpu
	str	x0, [x19, #16]
	str	xzr, [x19, #104]
	ldr	x0, [x20, #40]
	cbz	x0, LBB0_12
; %bb.8:
	bl	_le16_to_cpu
	add	x22, x0, x20
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_12
; %bb.9:
	ldr	x0, [x22, #8]
	bl	_le16_to_cpu
Lloh5:
	adrp	x8, _SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V5@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V5@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_12
; %bb.10:
	ldr	x0, [x22]
	bl	_le16_to_cpu
	add	x1, x0, x20
	mov	x0, x19
	bl	_get_platform_power_management_table
	cbnz	x0, LBB0_12
; %bb.11:
	ldr	w0, [x19, #8]
Lloh8:
	adrp	x8, _PHM_PlatformCaps_EnablePlatformPowerManagement@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PHM_PlatformCaps_EnablePlatformPowerManagement@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_phm_cap_set
LBB0_12:
	mov	x0, x21
	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 AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PHM_PlatformCaps_PowerControl,4,2 ; @PHM_PlatformCaps_PowerControl
	.comm	_SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V5,8,3 ; @SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V5
	.comm	_PHM_PlatformCaps_EnablePlatformPowerManagement,4,2 ; @PHM_PlatformCaps_EnablePlatformPowerManagement
	.no_dead_strip	_init_dpm2_parameters
.subsections_via_symbols
