	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phm_start_thermal_controller   ## -- Begin function phm_start_thermal_controller
	.p2align	4, 0x90
_phm_start_thermal_controller:          ## @phm_start_thermal_controller
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_TEMP_RANGE_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	_TEMP_RANGE_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -92(%rbp)
	movl	%ecx, -88(%rbp)
	movl	%eax, -84(%rbp)
	movl	%ecx, -80(%rbp)
	movl	%ecx, -76(%rbp)
	movl	%eax, -72(%rbp)
	movl	%ecx, -68(%rbp)
	movl	%ecx, -64(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -60(%rbp)
	movups	%xmm0, -44(%rbp)
	movl	$0, -28(%rbp)
	movq	(%rdi), %rax
	movq	16(%rdi), %r14
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	-96(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*%rax
LBB0_2:
	movl	8(%rbx), %edi
	movq	_PHM_PlatformCaps_ThermalController@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phm_cap_enabled
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.3:
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	leaq	-96(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*%rcx
LBB0_5:
	movl	-64(%rbp), %ecx
	movl	%ecx, 32(%r14)
	movaps	-80(%rbp), %xmm0
	movups	%xmm0, 16(%r14)
	movaps	-96(%rbp), %xmm0
	movups	%xmm0, (%r14)
	addq	$80, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEMP_RANGE_MIN,4,2             ## @TEMP_RANGE_MIN
	.comm	_TEMP_RANGE_MAX,4,2             ## @TEMP_RANGE_MAX
	.comm	_PHM_PlatformCaps_ThermalController,4,2 ## @PHM_PlatformCaps_ThermalController
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phm_start_thermal_controller   ; -- Begin function phm_start_thermal_controller
	.p2align	2
_phm_start_thermal_controller:          ; @phm_start_thermal_controller
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _TEMP_RANGE_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEMP_RANGE_MIN@GOTPAGEOFF]
Lloh2:
	adrp	x9, _TEMP_RANGE_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TEMP_RANGE_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp]
	stp	w9, w8, [sp, #8]
	stp	w9, w9, [sp, #16]
	stp	w8, w9, [sp, #24]
	str	w9, [sp, #32]
	movi.2d	v0, #0000000000000000
	stur	q0, [sp, #36]
	stur	q0, [sp, #52]
	str	wzr, [sp, #68]
	ldr	x20, [x0, #16]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x1, sp
	mov	x0, x19
	blr	x8
LBB0_2:
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x8, _PHM_PlatformCaps_ThermalController@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PHM_PlatformCaps_ThermalController@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_phm_cap_enabled
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x1, sp
	mov	x0, x19
	blr	x8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldr	w8, [sp, #32]
	str	w8, [x20, #32]
	ldp	q1, q0, [sp]
	stp	q1, q0, [x20]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TEMP_RANGE_MIN,4,2             ; @TEMP_RANGE_MIN
	.comm	_TEMP_RANGE_MAX,4,2             ; @TEMP_RANGE_MAX
	.comm	_PHM_PlatformCaps_ThermalController,4,2 ; @PHM_PlatformCaps_ThermalController
.subsections_via_symbols
