	.file	"extr_smu_v11_0.c_smu_v11_0_read_sensor.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	smu_v11_0_read_sensor, @function
smu_v11_0_read_sensor:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdx, rdx
	je	.L16
	mov	eax, DWORD PTR EINVAL[rip]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rcx
	neg	eax
	test	rcx, rcx
	je	.L1
	cmp	esi, 130
	je	.L5
	ja	.L6
	cmp	esi, 128
	je	.L7
	cmp	esi, 129
	jne	.L9
	mov	DWORD PTR [rdx], 0
	xor	eax, eax
	mov	DWORD PTR [rcx], 4
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	cmp	esi, 131
	jne	.L9
	mov	esi, DWORD PTR SMU_UCLK[rip]
	call	smu_get_current_clk_freq@PLT
	mov	DWORD PTR [rbx], 4
.L10:
	test	eax, eax
	je	.L1
	mov	DWORD PTR [rbx], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rsi, rdx
	call	smu_v11_0_get_gfx_vdd@PLT
	mov	DWORD PTR [rbx], 4
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rcx, rbx
	call	smu_common_read_sensor@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR SMU_GFXCLK[rip]
	call	smu_get_current_clk_freq@PLT
	mov	DWORD PTR [rbx], 4
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	smu_v11_0_read_sensor, .-smu_v11_0_read_sensor
	.comm	SMU_UCLK,4,4
	.comm	SMU_GFXCLK,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_smu_v11_0.c_smu_v11_0_read_sensor.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	smu_v11_0_read_sensor, %function
smu_v11_0_read_sensor:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r3, #0
	cmpne	r2, #0
	beq	.L18
	push	{r4, lr}
	mov	r4, r3
	sub	r3, r1, #128
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L18:
	ldr	r3, .L19
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L5:
	ldr	r3, .L19+4
	ldr	r1, [r3]
	bl	smu_get_current_clk_freq
	mov	r3, #4
	str	r3, [r4]
.L10:
	cmp	r0, #0
	movne	r3, #0
	strne	r3, [r4]
	pop	{r4, pc}
.L9:
	mov	r1, r2
	bl	smu_v11_0_get_gfx_vdd
	mov	r3, #4
	str	r3, [r4]
	b	.L10
.L8:
	mov	r0, #0
	mov	r3, #4
	str	r0, [r2]
	str	r3, [r4]
	pop	{r4, pc}
.L7:
	ldr	r3, .L19+8
	ldr	r1, [r3]
	bl	smu_get_current_clk_freq
	mov	r3, #4
	str	r3, [r4]
	b	.L10
.L4:
	mov	r3, r4
	bl	smu_common_read_sensor
	b	.L10
.L20:
	.align	2
.L19:
	.word	EINVAL
	.word	SMU_UCLK
	.word	SMU_GFXCLK
	.size	smu_v11_0_read_sensor, .-smu_v11_0_read_sensor
	.comm	SMU_UCLK,4,4
	.comm	SMU_GFXCLK,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
