	.file	"extr_sy8106a.c_sy8106a_regnode_set_voltage.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sy8106a_regnode_set_voltage, @function
sy8106a_regnode_set_voltage:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	regnode_get_softc@PLT
	mov	esi, DWORD PTR VOUT1_SEL[rip]
	lea	rdx, 4[rsp]
	mov	ecx, 1
	mov	edi, DWORD PTR 8[rax]
	mov	rbp, rax
	call	sy8106a_read@PLT
	mov	ecx, DWORD PTR SEL_VOLTAGE_STEP[rip]
	mov	eax, DWORD PTR 4[rsp]
	and	eax, DWORD PTR SEL_VOLTAGE_MASK[rip]
	mov	edx, DWORD PTR SEL_VOLTAGE_BASE[rip]
	imul	eax, ecx
	mov	edi, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR VOUT1_SEL[rip]
	lea	ebx, [rax+rdx]
	mov	eax, r13d
	sub	eax, edx
	cdq
	idiv	ecx
	or	eax, DWORD PTR SEL_GO[rip]
	mov	edx, eax
	call	sy8106a_write@PLT
	mov	eax, ebx
	sub	eax, r13d
	cdq
	xor	eax, edx
	sub	eax, edx
	cdq
	idiv	DWORD PTR SEL_VOLTAGE_STEP[rip]
	mov	rdx, QWORD PTR 0[rbp]
	imul	eax, DWORD PTR [rdx]
	mov	DWORD PTR [r12], eax
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sy8106a_regnode_set_voltage, .-sy8106a_regnode_set_voltage
	.comm	VOUT1_SEL,4,4
	.comm	SEL_VOLTAGE_STEP,4,4
	.comm	SEL_VOLTAGE_MASK,4,4
	.comm	SEL_VOLTAGE_BASE,4,4
	.comm	SEL_GO,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_sy8106a.c_sy8106a_regnode_set_voltage.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sy8106a_regnode_set_voltage, %function
sy8106a_regnode_set_voltage:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r6, r3
	ldr	r3, .L6
	sub	sp, sp, #12
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	regnode_get_softc
	ldr	r9, .L6+4
	mov	r5, r0
	mov	r3, #1
	mov	r2, sp
	ldr	r1, [r9]
	ldr	r0, [r0, #4]
	bl	sy8106a_read
	ldr	r3, .L6+8
	ldr	r8, .L6+12
	ldr	r1, .L6+16
	ldr	r3, [r3]
	ldr	r2, [sp]
	ldr	r0, [r1]
	ldr	r4, [r8]
	and	r2, r2, r3
	mov	r1, r4
	mla	r4, r2, r4, r0
	sub	r0, r7, r0
	bl	__aeabi_idiv
	mov	r2, r0
	ldr	r3, .L6+20
	ldr	r1, [r9]
	ldr	r3, [r3]
	sub	r4, r4, r7
	orr	r2, r2, r3
	ldr	r0, [r5, #4]
	bl	sy8106a_write
	eor	r0, r4, r4, asr #31
	ldr	r1, [r8]
	sub	r0, r0, r4, asr #31
	bl	__aeabi_idiv
	ldr	r3, [r5]
	ldr	r3, [r3]
	mul	r0, r3, r0
	ldr	r3, .L6
	str	r0, [r6]
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	VOUT1_SEL
	.word	SEL_VOLTAGE_MASK
	.word	SEL_VOLTAGE_STEP
	.word	SEL_VOLTAGE_BASE
	.word	SEL_GO
	.size	sy8106a_regnode_set_voltage, .-sy8106a_regnode_set_voltage
	.comm	VOUT1_SEL,4,4
	.comm	SEL_VOLTAGE_STEP,4,4
	.comm	SEL_VOLTAGE_MASK,4,4
	.comm	SEL_VOLTAGE_BASE,4,4
	.comm	SEL_GO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
