	.file	"extr_power_supply_hwmon.c_power_supply_hwmon_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	power_supply_hwmon_write, @function
power_supply_hwmon_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	dev_get_drvdata@PLT
	mov	esi, r12d
	mov	edx, r14d
	mov	edi, ebx
	mov	r13, QWORD PTR [rax]
	call	power_supply_hwmon_to_property@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	QWORD PTR [rsp], rbp
	cmp	ebx, 128
	je	.L3
	sub	ebx, 129
	cmp	ebx, 1
	ja	.L4
	mov	r14, rsp
	mov	esi, 1000
	mov	rdi, rbp
	mov	rdx, r14
	call	check_mul_overflow@PLT
	test	eax, eax
	jne	.L12
.L5:
	mov	esi, r12d
	mov	rdx, r14
	mov	rdi, r13
	call	power_supply_set_property@PLT
	mov	r12d, eax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, 100
	mov	rdi, rbp
	mov	r14, rsp
	call	DIV_ROUND_CLOSEST@PLT
	mov	QWORD PTR [rsp], rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r12d, DWORD PTR EOVERFLOW[rip]
	neg	r12d
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	power_supply_hwmon_write, .-power_supply_hwmon_write
	.comm	EOVERFLOW,4,4
	.comm	EINVAL,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_power_supply_hwmon.c_power_supply_hwmon_write.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	power_supply_hwmon_write, %function
power_supply_hwmon_write:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r3
	ldr	r3, .L14
	sub	sp, sp, #12
	mov	r4, r2
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r7, [sp, #32]
	bl	dev_get_drvdata
	mov	r3, r0
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	ldr	r6, [r3]
	bl	power_supply_hwmon_to_property
	subs	r4, r0, #0
	blt	.L1
	cmp	r5, #128
	str	r7, [sp]
	beq	.L3
	sub	r5, r5, #129
	cmp	r5, #1
	bhi	.L4
	mov	r5, sp
	mov	r0, r7
	mov	r2, r5
	mov	r1, #1000
	bl	check_mul_overflow
	cmp	r0, #0
	bne	.L12
.L5:
	mov	r1, r4
	mov	r2, r5
	mov	r0, r6
	bl	power_supply_set_property
	mov	r4, r0
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
	mov	r0, r7
	mov	r1, #100
	bl	DIV_ROUND_CLOSEST
	mov	r5, sp
	str	r0, [sp]
	b	.L5
.L4:
	ldr	r3, .L14+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L12:
	ldr	r3, .L14+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	EINVAL
	.word	EOVERFLOW
	.size	power_supply_hwmon_write, .-power_supply_hwmon_write
	.comm	EOVERFLOW,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
