	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu8_thermal_get_temperature
_smu8_thermal_get_temperature:          ## @smu8_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
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %edi
	movq	_CGS_IND_REG__SMC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ixTHM_TCON_CUR_TMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_cgs_read_ind_register
	movl	%eax, %r14d
	movq	_THM_TCON_CUR_TMP@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_CUR_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_PHM_GET_FIELD
	movl	%eax, %ebx
	movl	(%r15), %esi
	movq	_CUR_TEMP_RANGE_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_PHM_GET_FIELD
	leal	7(%rbx), %edx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %edx
	sarl	$3, %edx
	leal	-49(%rdx), %ecx
	testl	%eax, %eax
	cmovel	%edx, %ecx
	movq	_PP_TEMPERATURE_UNITS_PER_CENTIGRADES@GOTPCREL(%rip), %rax
	imull	(%rax), %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CGS_IND_REG__SMC,4,2           ## @CGS_IND_REG__SMC
	.comm	_ixTHM_TCON_CUR_TMP,4,2         ## @ixTHM_TCON_CUR_TMP
	.comm	_THM_TCON_CUR_TMP,4,2           ## @THM_TCON_CUR_TMP
	.comm	_CUR_TEMP,4,2                   ## @CUR_TEMP
	.comm	_CUR_TEMP_RANGE_SEL,4,2         ## @CUR_TEMP_RANGE_SEL
	.comm	_PP_TEMPERATURE_UNITS_PER_CENTIGRADES,4,2 ## @PP_TEMPERATURE_UNITS_PER_CENTIGRADES
	.no_dead_strip	_smu8_thermal_get_temperature
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu8_thermal_get_temperature
_smu8_thermal_get_temperature:          ; @smu8_thermal_get_temperature
	.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
	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, _ixTHM_TCON_CUR_TMP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ixTHM_TCON_CUR_TMP@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_cgs_read_ind_register
	mov	x19, x0
Lloh6:
	adrp	x21, _THM_TCON_CUR_TMP@GOTPAGE
Lloh7:
	ldr	x21, [x21, _THM_TCON_CUR_TMP@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh8:
	adrp	x8, _CUR_TEMP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CUR_TEMP@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_PHM_GET_FIELD
	mov	x20, x0
	ldr	w1, [x21]
Lloh11:
	adrp	x8, _CUR_TEMP_RANGE_SEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CUR_TEMP_RANGE_SEL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_PHM_GET_FIELD
	add	w8, w20, #7
	cmp	w20, #0
	csel	w8, w8, w20, lt
	asr	w8, w8, #3
	sub	w9, w8, #49
	cmp	w0, #0
	csel	w8, w8, w9, eq
Lloh14:
	adrp	x9, _PP_TEMPERATURE_UNITS_PER_CENTIGRADES@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PP_TEMPERATURE_UNITS_PER_CENTIGRADES@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	mul	w0, w9, w8
	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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.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	_ixTHM_TCON_CUR_TMP,4,2         ; @ixTHM_TCON_CUR_TMP
	.comm	_THM_TCON_CUR_TMP,4,2           ; @THM_TCON_CUR_TMP
	.comm	_CUR_TEMP,4,2                   ; @CUR_TEMP
	.comm	_CUR_TEMP_RANGE_SEL,4,2         ; @CUR_TEMP_RANGE_SEL
	.comm	_PP_TEMPERATURE_UNITS_PER_CENTIGRADES,4,2 ; @PP_TEMPERATURE_UNITS_PER_CENTIGRADES
	.no_dead_strip	_smu8_thermal_get_temperature
.subsections_via_symbols
