	.file	"extr_max1586.c_max1586_v6_set_voltage_sel.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"changing voltage v6 to %dmv\n"
	.text
	.p2align 4
	.type	max1586_v6_set_voltage_sel, @function
max1586_v6_set_voltage_sel:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	rdev_get_drvdata@PLT
	mov	edx, ebx
	lea	rsi, .LC0[rip]
	mov	r13, QWORD PTR 8[rax]
	mov	r12, rax
	mov	rax, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, r13
	movsx	rdx, DWORD PTR [rax+rdx*4]
	mov	rax, rdx
	imul	rdx, rdx, 274877907
	sar	eax, 31
	sar	rdx, 38
	sub	edx, eax
	call	dev_dbg@PLT
	mov	esi, DWORD PTR I2C_V6_SELECT[rip]
	mov	rdi, r13
	or	esi, ebx
	call	i2c_smbus_write_byte@PLT
	test	eax, eax
	jne	.L1
	mov	DWORD PTR [r12], ebx
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	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
	.cfi_endproc
.LFE0:
	.size	max1586_v6_set_voltage_sel, .-max1586_v6_set_voltage_sel
	.comm	I2C_V6_SELECT,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_max1586.c_max1586_v6_set_voltage_sel.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"changing voltage v6 to %dmv\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	max1586_v6_set_voltage_sel, %function
max1586_v6_set_voltage_sel:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	mov	r4, r1
	bl	rdev_get_drvdata
	ldr	r3, [r6]
	ldr	r2, .L5
	ldr	r3, [r3]
	ldr	r6, [r0, #4]
	ldr	r3, [r3, r4, lsl #2]
	mov	r5, r0
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	rsb	r2, r3, r2, asr #6
	mov	r0, r6
	ldr	r1, .L5+4
	bl	dev_dbg
	ldr	r3, .L5+8
	mov	r0, r6
	ldr	r1, [r3]
	orr	r1, r4, r1
	bl	i2c_smbus_write_byte
	cmp	r0, #0
	streq	r4, [r5]
	pop	{r4, r5, r6, pc}
.L6:
	.align	2
.L5:
	.word	274877907
	.word	.LC0
	.word	I2C_V6_SELECT
	.size	max1586_v6_set_voltage_sel, .-max1586_v6_set_voltage_sel
	.comm	I2C_V6_SELECT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
