	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kv_dpm_read_sensor
_kv_dpm_read_sensor:                    ## @kv_dpm_read_sensor
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_kv_get_pi
	movq	%rax, %r15
	movq	_ixTARGET_AND_CURRENT_PROFILE_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32_SMC
	movq	_TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	_TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrq	%cl, %rax
	cmpl	$3, (%r12)
	jle	LBB0_7
## %bb.1:
	cmpl	$128, %r13d
	je	LBB0_5
## %bb.2:
	cmpl	$129, %r13d
	jne	LBB0_7
## %bb.3:
	movq	_SMU__NUM_SCLK_DPM_STATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_7
## %bb.4:
	movq	(%r15), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_be32_to_cpu
	jmp	LBB0_6
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_5:
	movq	%rbx, %rdi
	callq	_kv_dpm_get_temp
LBB0_6:
	movl	%eax, (%r14)
	movl	$4, (%r12)
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ixTARGET_AND_CURRENT_PROFILE_INDEX,4,2 ## @ixTARGET_AND_CURRENT_PROFILE_INDEX
	.comm	_TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX_MASK,8,3 ## @TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX_MASK
	.comm	_TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX__SHIFT,8,3 ## @TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX__SHIFT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SMU__NUM_SCLK_DPM_STATE,8,3    ## @SMU__NUM_SCLK_DPM_STATE
	.no_dead_strip	_kv_dpm_read_sensor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kv_dpm_read_sensor
_kv_dpm_read_sensor:                    ; @kv_dpm_read_sensor
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
	bl	_kv_get_pi
	mov	x21, x0
Lloh0:
	adrp	x8, _ixTARGET_AND_CURRENT_PROFILE_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ixTARGET_AND_CURRENT_PROFILE_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_RREG32_SMC
	ldr	w8, [x19]
	cmp	w8, #3
	b.le	LBB0_5
; %bb.1:
	cmp	w23, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w23, #129
	b.ne	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	and	x8, x8, x0
Lloh6:
	adrp	x9, _TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX__SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX__SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	lsr	x8, x8, x9
Lloh9:
	adrp	x9, _SMU__NUM_SCLK_DPM_STATE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SMU__NUM_SCLK_DPM_STATE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_5
; %bb.4:
	ldr	x9, [x21]
	ldr	w0, [x9, x8, lsl #2]
	bl	_be32_to_cpu
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
	mov	x0, x22
	bl	_kv_dpm_get_temp
LBB0_7:
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20]
	mov	w8, #4
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ixTARGET_AND_CURRENT_PROFILE_INDEX,4,2 ; @ixTARGET_AND_CURRENT_PROFILE_INDEX
	.comm	_TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX_MASK,8,3 ; @TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX_MASK
	.comm	_TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX__SHIFT,8,3 ; @TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX__SHIFT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SMU__NUM_SCLK_DPM_STATE,8,3    ; @SMU__NUM_SCLK_DPM_STATE
	.no_dead_strip	_kv_dpm_read_sensor
.subsections_via_symbols
