	.file	"extr_adt7411.c_adt7411_write_in_vdd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	adt7411_write_in_vdd, @function
adt7411_write_in_vdd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	dev_get_drvdata@PLT
	mov	edx, 6972
	xor	esi, esi
	mov	rdi, rbp
	mov	r12, QWORD PTR [rax]
	call	clamp_val@PLT
	mov	esi, 7000
	sal	rax, 8
	mov	rdi, rax
	call	DIV_ROUND_CLOSEST@PLT
	mov	rdx, rax
	cmp	ebx, 128
	je	.L2
	cmp	ebx, 129
	je	.L3
	mov	eax, DWORD PTR EOPNOTSUPP[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR ADT7411_REG_VDD_LOW[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	i2c_smbus_write_byte_data@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR ADT7411_REG_VDD_HIGH[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	i2c_smbus_write_byte_data@PLT
	.cfi_endproc
.LFE0:
	.size	adt7411_write_in_vdd, .-adt7411_write_in_vdd
	.comm	EOPNOTSUPP,4,4
	.comm	ADT7411_REG_VDD_LOW,4,4
	.comm	ADT7411_REG_VDD_HIGH,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_adt7411.c_adt7411_write_in_vdd.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	adt7411_write_in_vdd, %function
adt7411_write_in_vdd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r2
	mov	r4, r1
	bl	dev_get_drvdata
	mov	r3, r0
	ldr	r2, .L11
	mov	r0, r5
	mov	r1, #0
	ldr	r5, [r3]
	bl	clamp_val
	ldr	r1, .L11+4
	lsl	r0, r0, #8
	bl	DIV_ROUND_CLOSEST
	cmp	r4, #128
	mov	r2, r0
	beq	.L2
	cmp	r4, #129
	beq	.L3
	ldr	r3, .L11+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L11+12
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	ldr	r1, [r3]
	b	i2c_smbus_write_byte_data
.L3:
	ldr	r3, .L11+16
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	ldr	r1, [r3]
	b	i2c_smbus_write_byte_data
.L12:
	.align	2
.L11:
	.word	6972
	.word	7000
	.word	EOPNOTSUPP
	.word	ADT7411_REG_VDD_LOW
	.word	ADT7411_REG_VDD_HIGH
	.size	adt7411_write_in_vdd, .-adt7411_write_in_vdd
	.comm	EOPNOTSUPP,4,4
	.comm	ADT7411_REG_VDD_LOW,4,4
	.comm	ADT7411_REG_VDD_HIGH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
