	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_v11_0_start_thermal_control
_smu_v11_0_start_thermal_control:       ## @smu_v11_0_start_thermal_control
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	cmpl	$0, 8(%rdi)
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	_smu11_thermal_policy@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	movl	$36, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_smu_get_thermal_temperature_range
	testl	%eax, %eax
	je	LBB0_2
LBB0_7:
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.3:
	movl	-32(%rbp), %eax
	movl	%eax, 32(%rsp)
	movaps	-64(%rbp), %xmm0
	movaps	-48(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%rbx, %rdi
	callq	_smu_v11_0_set_thermal_range
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_smu_v11_0_enable_thermal_alert
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_smu_set_thermal_fan_table
	testl	%eax, %eax
	jne	LBB0_7
LBB0_6:
	movl	-32(%rbp), %eax
	movl	%eax, 32(%r15)
	movaps	-48(%rbp), %xmm0
	movups	%xmm0, 16(%r15)
	movaps	-64(%rbp), %xmm0
	movups	%xmm0, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_smu11_thermal_policy,8,3       ## @smu11_thermal_policy
	.no_dead_strip	_smu_v11_0_start_thermal_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_v11_0_start_thermal_control
_smu_v11_0_start_thermal_control:       ; @smu_v11_0_start_thermal_control
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #16]
Lloh0:
	adrp	x8, _smu11_thermal_policy@GOTPAGE
Lloh1:
	ldr	x8, [x8, _smu11_thermal_policy@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	add	x0, sp, #48
	mov	w2, #36
	bl	_memcpy
	add	x1, sp, #48
	mov	x0, x19
	bl	_smu_get_thermal_temperature_range
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.3:
	ldp	q0, q1, [sp, #48]
	stp	q0, q1, [sp]
	ldr	w8, [sp, #80]
	str	w8, [sp, #32]
	mov	x1, sp
	mov	x0, x19
	bl	_smu_v11_0_set_thermal_range
	cbnz	w0, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_smu_v11_0_enable_thermal_alert
	cbnz	w0, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_smu_set_thermal_fan_table
	cbnz	w0, LBB0_8
LBB0_6:
	mov	w0, #0
	ldr	w8, [sp, #80]
	str	w8, [x20, #32]
	ldp	q1, q0, [sp, #48]
	stp	q1, q0, [x20]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_smu11_thermal_policy,8,3       ; @smu11_thermal_policy
	.no_dead_strip	_smu_v11_0_start_thermal_control
.subsections_via_symbols
