	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu_common_read_sensor         ## -- Begin function smu_common_read_sensor
	.p2align	4, 0x90
_smu_common_read_sensor:                ## @smu_common_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $esi killed $esi def $rsi
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.1:
	movq	%rcx, %r14
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.2:
	addl	$-128, %esi
	cmpl	$5, %esi
	ja	LBB0_6
## %bb.3:
	movq	%rdx, %rbx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	xorl	%eax, %eax
	cmpl	$0, 8(%rdi)
	sete	%al
	jmp	LBB0_13
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_15
LBB0_8:
	movq	_SMU_FEATURE_DPM_VCE_BIT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_SMU_FEATURE_DPM_UVD_BIT@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	callq	_smu_feature_is_enabled
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, (%rbx)
	jmp	LBB0_14
LBB0_11:
	movl	(%rdi), %eax
	jmp	LBB0_13
LBB0_12:
	movl	4(%rdi), %eax
LBB0_13:
	movl	%eax, (%rbx)
LBB0_14:
	movl	$4, (%r14)
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_17:
	movq	%rbx, %rsi
	movl	$2, %edx
	callq	_smu_feature_get_enabled_mask
	movl	$8, (%r14)
	testl	%eax, %eax
	je	LBB0_15
LBB0_7:
	movl	$0, (%r14)
	jmp	LBB0_16
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SMU_FEATURE_DPM_UVD_BIT,4,2    ## @SMU_FEATURE_DPM_UVD_BIT
	.comm	_SMU_FEATURE_DPM_VCE_BIT,4,2    ## @SMU_FEATURE_DPM_VCE_BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu_common_read_sensor         ; -- Begin function smu_common_read_sensor
	.p2align	2
_smu_common_read_sensor:                ; @smu_common_read_sensor
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x2, LBB0_5
; %bb.1:
	mov	x19, x3
	cbz	x3, LBB0_5
; %bb.2:
	sub	w9, w1, #128
	cmp	w9, #5
	b.hi	LBB0_6
; %bb.3:
	mov	x20, x2
	mov	x8, x0
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_4
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_4:
	mov	w0, #0
	ldr	w8, [x8, #8]
	cmp	w8, #0
	cset	w8, eq
	b	LBB0_12
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	cbnz	w0, LBB0_15
	b	LBB0_13
LBB0_7:
Lloh8:
	adrp	x9, _SMU_FEATURE_DPM_VCE_BIT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SMU_FEATURE_DPM_VCE_BIT@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x9, _SMU_FEATURE_DPM_UVD_BIT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SMU_FEATURE_DPM_UVD_BIT@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_smu_feature_is_enabled
	mov	x8, x0
	mov	w0, #0
	cmp	w8, #0
	cset	w8, ne
	b	LBB0_12
LBB0_10:
	mov	w0, #0
	ldr	w8, [x8]
	b	LBB0_12
LBB0_11:
	mov	w0, #0
	ldr	w8, [x8, #4]
LBB0_12:
	str	w8, [x20]
	mov	w8, #4
	str	w8, [x19]
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x0, x8
	mov	x1, x20
	mov	w2, #2
	bl	_smu_feature_get_enabled_mask
	mov	w8, #8
	str	w8, [x19]
	cbz	w0, LBB0_13
LBB0_15:
	str	wzr, [x19]
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SMU_FEATURE_DPM_UVD_BIT,4,2    ; @SMU_FEATURE_DPM_UVD_BIT
	.comm	_SMU_FEATURE_DPM_VCE_BIT,4,2    ; @SMU_FEATURE_DPM_VCE_BIT
.subsections_via_symbols
