	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_dpm_2_parameters
_init_dpm_2_parameters:                 ## @init_dpm_2_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, %rbx
	movq	%rdi, %r14
	movq	56(%rdi), %r15
	movq	(%rsi), %rdi
	callq	_le16_to_cpu
	movq	%rax, 24(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movq	$0, 16(%r15)
	movq	8(%rbx), %rdi
	callq	_le16_to_cpu
	movq	%rax, (%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r14)
	movups	%xmm0, 40(%r14)
	movabsq	$26843547100000, %rcx           ## imm = 0x186A0016E360
	movq	%rcx, 8(%r14)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	16(%r14), %edi
	movq	_PHM_PlatformCaps_PowerControl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phm_cap_set
LBB0_2:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	leaq	8(%r15), %r12
	callq	_le16_to_cpu
	leaq	(%rax,%rbx), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$16, %ecx
	callq	_get_vddc_lookup_table
	movl	%eax, %r12d
	jmp	LBB0_5
LBB0_3:
	xorl	%r12d, %r12d
LBB0_5:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_le16_to_cpu
	leaq	(%rax,%rbx), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$16, %ecx
	callq	_get_vddc_lookup_table
	movl	%eax, %r12d
LBB0_7:
	movq	32(%rbx), %rdi
	callq	_le16_to_cpu
	cmpq	$0, 32(%rbx)
	je	LBB0_10
## %bb.8:
	addq	%rbx, %rax
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_get_platform_power_management_table
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movl	16(%r14), %edi
	movq	_PHM_PlatformCaps_EnablePlatformPowerManagement@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phm_cap_set
LBB0_10:
	movl	%r12d, %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	_PHM_PlatformCaps_EnablePlatformPowerManagement,4,2 ## @PHM_PlatformCaps_EnablePlatformPowerManagement
	.no_dead_strip	_init_dpm_2_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_dpm_2_parameters
lCPI0_0:
	.long	1500000                         ; 0x16e360
	.long	6250                            ; 0x186a
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_init_dpm_2_parameters:                 ; @init_dpm_2_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	x21, [x0, #56]
	ldr	x0, [x1]
	bl	_le16_to_cpu
	mov	x22, x21
	stp	xzr, x0, [x21, #16]
	str	xzr, [x22, #8]!
	str	xzr, [x21]
	ldr	x0, [x20, #8]
	bl	_le16_to_cpu
	str	x0, [x19]
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #24]
	stur	q0, [x19, #40]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
Lloh2:
	adrp	x8, _PHM_PlatformCaps_PowerControl@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PHM_PlatformCaps_PowerControl@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_phm_cap_set
LBB0_2:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_9
; %bb.3:
	bl	_le16_to_cpu
	add	x2, x0, x20
	mov	x0, x19
	mov	x1, x22
	mov	w3, #16
	bl	_get_vddc_lookup_table
	mov	x22, x0
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_5
LBB0_4:
	bl	_le16_to_cpu
	add	x2, x0, x20
	mov	x0, x19
	mov	x1, x21
	mov	w3, #16
	bl	_get_vddc_lookup_table
	mov	x22, x0
LBB0_5:
	ldr	x0, [x20, #32]
	bl	_le16_to_cpu
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_8
; %bb.6:
	add	x1, x0, x20
	mov	x0, x19
	bl	_get_platform_power_management_table
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x19, #16]
Lloh5:
	adrp	x8, _PHM_PlatformCaps_EnablePlatformPowerManagement@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PHM_PlatformCaps_EnablePlatformPowerManagement@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_phm_cap_set
LBB0_8:
	mov	x0, x22
	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
LBB0_9:
	mov	w22, #0
	ldr	x0, [x20, #24]
	cbnz	x0, LBB0_4
	b	LBB0_5
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PHM_PlatformCaps_PowerControl,4,2 ; @PHM_PlatformCaps_PowerControl
	.comm	_PHM_PlatformCaps_EnablePlatformPowerManagement,4,2 ; @PHM_PlatformCaps_EnablePlatformPowerManagement
	.no_dead_strip	_init_dpm_2_parameters
.subsections_via_symbols
