	.file	"extr_adt7462.c_voltage_multiplier.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	voltage_multiplier, @function
voltage_multiplier:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	esi, 12
	ja	.L52
	lea	rdx, .L4[rip]
	mov	esi, esi
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	movsx	rax, DWORD PTR [rdx+rsi*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L15-.L4
	.long	.L14-.L4
	.long	.L13-.L4
	.long	.L12-.L4
	.long	.L11-.L4
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR [rdi]
	mov	esi, DWORD PTR ADT7462_PIN24[rip]
	mov	edi, DWORD PTR 8[rax]
	call	MASK_AND_SHIFT@PLT
	cmp	eax, 3
	jbe	.L63
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdx, QWORD PTR [rbx]
	mov	ecx, DWORD PTR ADT7462_PIN28_SHIFT[rip]
	mov	eax, DWORD PTR 12[rdx]
	sar	eax, cl
	cmp	eax, DWORD PTR ADT7462_PIN28_VOLT[rip]
	je	.L64
.L2:
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR [rdi]
	mov	esi, DWORD PTR ADT7462_PIN23[rip]
	mov	edi, DWORD PTR 4[rax]
	call	MASK_AND_SHIFT@PLT
	mov	edx, eax
	cmp	eax, 2
	je	.L22
	jle	.L65
	mov	eax, 7800
	cmp	edx, 3
	je	.L1
.L13:
	mov	rax, QWORD PTR [rbx]
	mov	eax, DWORD PTR 4[rax]
	test	DWORD PTR ADT7462_PIN22_INPUT[rip], eax
	jne	.L2
.L16:
	mov	eax, 62500
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rax, QWORD PTR [rdi]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, 26000
	test	DWORD PTR ADT7462_PIN21_INPUT[rip], edx
	je	.L1
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR [rdi]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR ADT7462_PIN7_INPUT[rip], eax
	je	.L16
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR [rdi]
	mov	edx, DWORD PTR [rax]
	test	DWORD PTR ADT7462_DIODE3_INPUT[rip], edx
	jne	.L2
	mov	eax, DWORD PTR 4[rax]
	and	eax, DWORD PTR ADT7462_PIN19_INPUT[rip]
	cmp	eax, 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	sbb	eax, eax
	and	eax, 1810
	add	eax, 4690
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rax, QWORD PTR [rdi]
	mov	eax, DWORD PTR 4[rax]
	test	DWORD PTR ADT7462_PIN8_INPUT[rip], eax
	je	.L16
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR [rdi]
	mov	esi, DWORD PTR ADT7462_PIN26[rip]
	mov	edi, DWORD PTR 8[rax]
	call	MASK_AND_SHIFT@PLT
	mov	edx, eax
	mov	eax, 15600
	test	edx, edx
	je	.L1
.L55:
	mov	eax, 6250
	cmp	edx, 1
	jne	.L2
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rax, QWORD PTR [rdi]
	mov	esi, DWORD PTR ADT7462_PIN25[rip]
	mov	edi, DWORD PTR 8[rax]
	call	MASK_AND_SHIFT@PLT
	mov	edx, eax
	mov	eax, 17200
	test	edx, edx
	jne	.L55
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rax, QWORD PTR [rdi]
	mov	edx, DWORD PTR [rax]
	test	DWORD PTR ADT7462_DIODE1_INPUT[rip], edx
	jne	.L2
	mov	eax, DWORD PTR 4[rax]
	and	eax, DWORD PTR ADT7462_PIN15_INPUT[rip]
	cmp	eax, 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	sbb	eax, eax
	and	eax, 3600
	add	eax, 9400
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rax, QWORD PTR [rdi]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, 17200
	test	DWORD PTR ADT7462_PIN13_INPUT[rip], edx
	je	.L1
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L65:
	test	eax, eax
	je	.L19
	cmp	eax, 1
	jne	.L13
	mov	eax, 13000
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L64:
	.cfi_restore_state
	mov	edx, DWORD PTR [rdx]
	mov	eax, 7800
	test	DWORD PTR ADT7462_VID_INPUT[rip], edx
	je	.L1
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L63:
	mov	eax, eax
	lea	rdx, CSWTCH.18[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	eax, DWORD PTR [rdx+rax*4]
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rax, QWORD PTR [rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	eax, DWORD PTR [rax]
	and	eax, DWORD PTR ADT7462_VID_INPUT[rip]
	cmp	eax, 1
	sbb	eax, eax
	and	eax, -6250
	add	eax, 12500
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	eax, 9400
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
.L52:
	.cfi_restore 3
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	voltage_multiplier, .-voltage_multiplier
	.section	.rodata
	.align 16
	.type	CSWTCH.18, @object
	.size	CSWTCH.18, 16
CSWTCH.18:
	.long	6250
	.long	13000
	.long	9400
	.long	7800
	.comm	ADT7462_VID_INPUT,4,4
	.comm	ADT7462_PIN8_INPUT,4,4
	.comm	ADT7462_PIN7_INPUT,4,4
	.comm	ADT7462_PIN28_VOLT,4,4
	.comm	ADT7462_PIN28_SHIFT,4,4
	.comm	ADT7462_PIN26,4,4
	.comm	ADT7462_PIN25,4,4
	.comm	ADT7462_PIN24,4,4
	.comm	ADT7462_PIN23,4,4
	.comm	ADT7462_PIN22_INPUT,4,4
	.comm	ADT7462_PIN21_INPUT,4,4
	.comm	ADT7462_PIN19_INPUT,4,4
	.comm	ADT7462_PIN15_INPUT,4,4
	.comm	ADT7462_PIN13_INPUT,4,4
	.comm	ADT7462_DIODE3_INPUT,4,4
	.comm	ADT7462_DIODE1_INPUT,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_adt7462.c_voltage_multiplier.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	voltage_multiplier, %function
voltage_multiplier:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	cmp	r1, #12
	ldrls	pc, [pc, r1, asl #2]
	b	.L2
.L4:
	.word	.L15
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
	.word	.L3
.L15:
	ldr	r2, [r0]
	ldr	r3, .L49
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L16
.L2:
	mov	r0, #0
	pop	{r4, pc}
.L5:
	ldr	r2, .L49+4
	ldr	r3, [r0]
	ldr	r1, [r2]
	ldr	r0, [r3, #8]
	bl	MASK_AND_SHIFT
	cmp	r0, #3
	bls	.L48
.L3:
	ldr	r3, [r4]
	ldr	r1, .L49+8
	ldr	r2, .L49+12
	ldr	r0, [r3, #12]
	ldr	r1, [r1]
	ldr	r2, [r2]
	cmp	r2, r0, asr r1
	bne	.L2
	ldr	r1, .L49+16
	ldr	r2, [r3]
	ldr	r3, [r1]
	tst	r2, r3
	bne	.L2
.L32:
	ldr	r0, .L49+20
	pop	{r4, pc}
.L13:
	ldr	r2, [r4]
	ldr	r3, .L49+24
	ldr	r2, [r2, #4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L2
.L16:
	ldr	r0, .L49+28
	pop	{r4, pc}
.L10:
	ldr	r3, [r0]
	ldr	r2, .L49+32
	ldr	r1, [r3]
	ldr	r2, [r2]
	tst	r1, r2
	bne	.L2
	ldr	r2, .L49+36
	ldr	r1, [r3, #4]
	ldr	r2, [r2]
	ldr	r3, .L49+40
	tst	r1, r2
	ldr	r0, .L49+44
	moveq	r0, r3
	pop	{r4, pc}
.L9:
	ldr	r2, [r0]
	ldr	r3, .L49+48
	ldr	r2, [r2, #4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L2
.L31:
	ldr	r0, .L49+52
	pop	{r4, pc}
.L11:
	ldr	r3, [r0]
	ldr	r2, .L49+56
	ldr	r1, [r3]
	ldr	r2, [r2]
	tst	r1, r2
	bne	.L2
	ldr	r2, .L49+60
	ldr	r1, [r3, #4]
	ldr	r2, [r2]
	ldr	r3, .L49+64
	tst	r1, r2
	ldr	r0, .L49+68
	moveq	r0, r3
	pop	{r4, pc}
.L6:
	ldr	r2, [r0]
	ldr	r3, .L49+72
	ldr	r0, [r2, #8]
	ldr	r1, [r3]
	bl	MASK_AND_SHIFT
	cmp	r0, #0
	beq	.L31
.L46:
	cmp	r0, #1
	bne	.L2
	ldr	r0, .L49+76
	pop	{r4, pc}
.L7:
	ldr	r2, [r0]
	ldr	r3, .L49+80
	ldr	r0, [r2, #8]
	ldr	r1, [r3]
	bl	MASK_AND_SHIFT
	cmp	r0, #0
	bne	.L46
	ldr	r0, .L49+84
	pop	{r4, pc}
.L8:
	ldr	r2, [r0]
	ldr	r3, .L49+88
	ldr	r2, [r2, #4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L2
	b	.L16
.L14:
	ldr	r2, .L49+92
	ldr	r3, [r0]
	ldr	r1, [r2]
	ldr	r0, [r3, #4]
	bl	MASK_AND_SHIFT
	cmp	r0, #3
	ldrls	pc, [pc, r0, asl #2]
	b	.L13
.L19:
	.word	.L21
	.word	.L24
	.word	.L20
	.word	.L32
.L12:
	ldr	r2, [r0]
	ldr	r3, .L49+96
	ldr	r2, [r2, #4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L2
	ldr	r0, .L49+100
	pop	{r4, pc}
.L48:
	ldr	r3, .L49+104
	ldr	r0, [r3, r0, lsl #2]
	pop	{r4, pc}
.L20:
	ldr	r0, .L49+44
	pop	{r4, pc}
.L24:
	ldr	r0, .L49+40
	pop	{r4, pc}
.L21:
	ldr	r2, [r4]
	ldr	r3, .L49+16
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L49+108
	tst	r1, r2
	ldr	r0, .L49+76
	movne	r0, r3
	pop	{r4, pc}
.L50:
	.align	2
.L49:
	.word	ADT7462_PIN7_INPUT
	.word	ADT7462_PIN24
	.word	ADT7462_PIN28_SHIFT
	.word	ADT7462_PIN28_VOLT
	.word	ADT7462_VID_INPUT
	.word	7800
	.word	ADT7462_PIN22_INPUT
	.word	62500
	.word	ADT7462_DIODE1_INPUT
	.word	ADT7462_PIN15_INPUT
	.word	13000
	.word	9400
	.word	ADT7462_PIN13_INPUT
	.word	17200
	.word	ADT7462_DIODE3_INPUT
	.word	ADT7462_PIN19_INPUT
	.word	6500
	.word	4690
	.word	ADT7462_PIN25
	.word	6250
	.word	ADT7462_PIN26
	.word	15600
	.word	ADT7462_PIN8_INPUT
	.word	ADT7462_PIN23
	.word	ADT7462_PIN21_INPUT
	.word	26000
	.word	.LANCHOR0
	.word	12500
	.size	voltage_multiplier, .-voltage_multiplier
	.comm	ADT7462_VID_INPUT,4,4
	.comm	ADT7462_PIN8_INPUT,4,4
	.comm	ADT7462_PIN7_INPUT,4,4
	.comm	ADT7462_PIN28_VOLT,4,4
	.comm	ADT7462_PIN28_SHIFT,4,4
	.comm	ADT7462_PIN26,4,4
	.comm	ADT7462_PIN25,4,4
	.comm	ADT7462_PIN24,4,4
	.comm	ADT7462_PIN23,4,4
	.comm	ADT7462_PIN22_INPUT,4,4
	.comm	ADT7462_PIN21_INPUT,4,4
	.comm	ADT7462_PIN19_INPUT,4,4
	.comm	ADT7462_PIN15_INPUT,4,4
	.comm	ADT7462_PIN13_INPUT,4,4
	.comm	ADT7462_DIODE3_INPUT,4,4
	.comm	ADT7462_DIODE1_INPUT,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	CSWTCH.18, %object
	.size	CSWTCH.18, 16
CSWTCH.18:
	.word	6250
	.word	13000
	.word	9400
	.word	7800
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
