	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_v11_0_read_sensor
_smu_v11_0_read_sensor:                 ## @smu_v11_0_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.1:
	movq	%rcx, %rbx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.2:
	leal	-128(%rsi), %eax
	cmpl	$3, %eax
	ja	LBB0_12
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	%rdx, %rsi
	callq	_smu_v11_0_get_gfx_vdd
	jmp	LBB0_10
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_6:
	movl	$0, (%rdx)
	movl	$4, (%rbx)
	jmp	LBB0_13
LBB0_7:
	movq	_SMU_GFXCLK@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_SMU_UCLK@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
	callq	_smu_get_current_clk_freq
LBB0_10:
	movl	$4, (%rbx)
	testl	%eax, %eax
	je	LBB0_13
LBB0_11:
	movl	$0, (%rbx)
	jmp	LBB0_14
LBB0_12:
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%rbx, %rcx
	callq	_smu_common_read_sensor
	testl	%eax, %eax
	jne	LBB0_11
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SMU_UCLK,4,2                   ## @SMU_UCLK
	.comm	_SMU_GFXCLK,4,2                 ## @SMU_GFXCLK
	.no_dead_strip	_smu_v11_0_read_sensor
.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_read_sensor
_smu_v11_0_read_sensor:                 ; @smu_v11_0_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	w8, w1, #128
	cmp	w8, #3
	b.hi	LBB0_13
; %bb.3:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	mov	x1, x2
	bl	_smu_v11_0_get_gfx_vdd
	b	LBB0_10
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_6:
	mov	w0, #0
	str	wzr, [x2]
	mov	w8, #4
	str	w8, [x19]
	b	LBB0_12
LBB0_7:
Lloh5:
	adrp	x8, _SMU_GFXCLK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SMU_GFXCLK@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh7:
	adrp	x8, _SMU_UCLK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SMU_UCLK@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	bl	_smu_get_current_clk_freq
LBB0_10:
	mov	w8, #4
	str	w8, [x19]
	cbz	w0, LBB0_12
LBB0_11:
	str	wzr, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x3, x19
	bl	_smu_common_read_sensor
	cbnz	w0, LBB0_11
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SMU_UCLK,4,2                   ; @SMU_UCLK
	.comm	_SMU_GFXCLK,4,2                 ; @SMU_GFXCLK
	.no_dead_strip	_smu_v11_0_read_sensor
.subsections_via_symbols
