	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu7_thermal_get_temperature   ## -- Begin function smu7_thermal_get_temperature
	.p2align	4, 0x90
_smu7_thermal_get_temperature:          ## @smu7_thermal_get_temperature
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %edi
	movq	_CGS_IND_REG__SMC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CG_MULT_THERMAL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CTF_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_PHM_READ_VFPF_INDIRECT_FIELD
	testl	$512, %eax                      ## imm = 0x200
	je	LBB0_1
## %bb.2:
	movq	_SMU7_THERMAL_MAXIMUM_TEMP_READING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_1:
	andl	$511, %eax                      ## imm = 0x1FF
LBB0_3:
	movq	_PP_TEMPERATURE_UNITS_PER_CENTIGRADES@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CGS_IND_REG__SMC,4,2           ## @CGS_IND_REG__SMC
	.comm	_CG_MULT_THERMAL_STATUS,4,2     ## @CG_MULT_THERMAL_STATUS
	.comm	_CTF_TEMP,4,2                   ## @CTF_TEMP
	.comm	_SMU7_THERMAL_MAXIMUM_TEMP_READING,4,2 ## @SMU7_THERMAL_MAXIMUM_TEMP_READING
	.comm	_PP_TEMPERATURE_UNITS_PER_CENTIGRADES,4,2 ## @PP_TEMPERATURE_UNITS_PER_CENTIGRADES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu7_thermal_get_temperature   ; -- Begin function smu7_thermal_get_temperature
	.p2align	2
_smu7_thermal_get_temperature:          ; @smu7_thermal_get_temperature
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _CGS_IND_REG__SMC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CGS_IND_REG__SMC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _CG_MULT_THERMAL_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CG_MULT_THERMAL_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _CTF_TEMP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CTF_TEMP@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_PHM_READ_VFPF_INDIRECT_FIELD
Lloh9:
	adrp	x8, _SMU7_THERMAL_MAXIMUM_TEMP_READING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SMU7_THERMAL_MAXIMUM_TEMP_READING@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w9, w0, #0x1ff
	tst	w0, #0x200
	csel	w8, w9, w8, eq
Lloh12:
	adrp	x9, _PP_TEMPERATURE_UNITS_PER_CENTIGRADES@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PP_TEMPERATURE_UNITS_PER_CENTIGRADES@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	mul	w0, w8, w9
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CGS_IND_REG__SMC,4,2           ; @CGS_IND_REG__SMC
	.comm	_CG_MULT_THERMAL_STATUS,4,2     ; @CG_MULT_THERMAL_STATUS
	.comm	_CTF_TEMP,4,2                   ; @CTF_TEMP
	.comm	_SMU7_THERMAL_MAXIMUM_TEMP_READING,4,2 ; @SMU7_THERMAL_MAXIMUM_TEMP_READING
	.comm	_PP_TEMPERATURE_UNITS_PER_CENTIGRADES,4,2 ; @PP_TEMPERATURE_UNITS_PER_CENTIGRADES
.subsections_via_symbols
