	.file	"extr_windfarm_ad7417_sensor.c_wf_ad7417_adc_convert.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wf_ad7417_adc_convert, @function
wf_ad7417_adc_convert:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	esi, 3
	je	.L2
	jg	.L3
	cmp	esi, 1
	je	.L4
	cmp	esi, 2
	jne	.L9
	imul	edx, DWORD PTR ADC_12V_CURRENT_SCALE[rip]
	mov	DWORD PTR [rcx], edx
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	esi, 4
	jne	.L10
	imul	edx, DWORD PTR ADC_CPU_CURRENT_SCALE[rip]
	mov	DWORD PTR [rcx], edx
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR [rdi]
	imul	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR [rax]
	sal	eax, 12
	add	edx, eax
	sar	edx, 2
	mov	DWORD PTR [rcx], edx
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	imul	edx, DWORD PTR ADC_CPU_VOLTAGE_SCALE[rip]
	mov	DWORD PTR [rcx], edx
	ret
.L9:
	ret
	.cfi_endproc
.LFE0:
	.size	wf_ad7417_adc_convert, .-wf_ad7417_adc_convert
	.comm	ADC_CPU_VOLTAGE_SCALE,4,4
	.comm	ADC_CPU_CURRENT_SCALE,4,4
	.comm	ADC_12V_CURRENT_SCALE,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_windfarm_ad7417_sensor.c_wf_ad7417_adc_convert.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wf_ad7417_adc_convert, %function
wf_ad7417_adc_convert:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	sub	r1, r1, #1
	cmp	r1, #3
	ldrls	pc, [pc, r1, asl #2]
	b	.L1
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	ldr	r1, .L9
	ldr	r1, [r1]
	mul	r2, r1, r2
	str	r2, [r3]
.L1:
	bx	lr
.L7:
	ldr	r1, [r0]
	ldm	r1, {r0, r1}
	lsl	r0, r0, #12
	mla	r2, r1, r2, r0
	asr	r2, r2, #2
	str	r2, [r3]
	bx	lr
.L6:
	ldr	r1, .L9+4
	ldr	r1, [r1]
	mul	r2, r1, r2
	str	r2, [r3]
	bx	lr
.L5:
	ldr	r1, .L9+8
	ldr	r1, [r1]
	mul	r2, r1, r2
	str	r2, [r3]
	bx	lr
.L10:
	.align	2
.L9:
	.word	ADC_CPU_CURRENT_SCALE
	.word	ADC_12V_CURRENT_SCALE
	.word	ADC_CPU_VOLTAGE_SCALE
	.size	wf_ad7417_adc_convert, .-wf_ad7417_adc_convert
	.comm	ADC_CPU_VOLTAGE_SCALE,4,4
	.comm	ADC_CPU_CURRENT_SCALE,4,4
	.comm	ADC_12V_CURRENT_SCALE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
