	.file	"extr_w83792d.c_store_pwm_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	store_pwm_mode, @function
store_pwm_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	to_sensor_dev_attr@PLT
	mov	rdi, rbp
	movsx	r14, DWORD PTR [rax]
	call	to_i2c_client@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	i2c_get_clientdata@PLT
	xor	esi, esi
	mov	edx, 10
	mov	rdi, r12
	mov	r13, rax
	call	simple_strtoul@PLT
	cmp	eax, 1
	jbe	.L2
	mov	rax, QWORD PTR EINVAL[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	rax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	r8, 8[r13]
	mov	r12d, eax
	lea	r15, 0[0+r14*4]
	mov	rdi, r8
	mov	QWORD PTR 8[rsp], r8
	call	mutex_lock@PLT
	mov	rax, QWORD PTR W83792D_REG_PWM[rip]
	mov	rdx, QWORD PTR 0[r13]
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax+r14*4]
	add	rdx, r15
	mov	QWORD PTR [rsp], rdx
	call	w83792d_read_value@PLT
	mov	rdx, QWORD PTR [rsp]
	add	r15, QWORD PTR 0[r13]
	test	r12d, r12d
	mov	r8, QWORD PTR 8[rsp]
	mov	DWORD PTR [rdx], eax
	mov	edx, DWORD PTR [r15]
	jne	.L8
	and	edx, 127
	mov	DWORD PTR [r15], edx
.L5:
	mov	rax, QWORD PTR W83792D_REG_PWM[rip]
	mov	rdi, rbp
	mov	QWORD PTR [rsp], r8
	mov	esi, DWORD PTR [rax+r14*4]
	call	w83792d_write_value@PLT
	mov	r8, QWORD PTR [rsp]
	mov	rdi, r8
	call	mutex_unlock@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, rbx
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	or	dl, -128
	mov	DWORD PTR [r15], edx
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	store_pwm_mode, .-store_pwm_mode
	.comm	W83792D_REG_PWM,8,8
	.comm	EINVAL,8,8
	.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_w83792d.c_store_pwm_mode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	store_pwm_mode, %function
store_pwm_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	mov	r0, r1
	mov	r5, r2
	mov	r4, r3
	bl	to_sensor_dev_attr
	mov	r3, r0
	mov	r0, r6
	ldr	r7, [r3]
	bl	to_i2c_client
	mov	r8, r0
	bl	i2c_get_clientdata
	mov	r2, #10
	mov	r6, r0
	mov	r1, #0
	mov	r0, r5
	bl	simple_strtoul
	cmp	r0, #1
	bls	.L2
	ldr	r3, .L8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r10, .L8+4
	add	r9, r6, #4
	mov	r5, r0
	mov	r0, r9
	bl	mutex_lock
	ldr	r3, [r10]
	mov	r0, r8
	ldr	r1, [r3, r7, lsl #2]
	ldr	fp, [r6]
	bl	w83792d_read_value
	ldr	r3, [r6]
	str	r0, [fp, r7, lsl #2]
	ldr	r2, [r3, r7, lsl #2]
	cmp	r5, #0
	orrne	r2, r2, #128
	andeq	r2, r2, #127
	str	r2, [r3, r7, lsl #2]
	ldr	r3, [r10]
	mov	r0, r8
	ldr	r1, [r3, r7, lsl #2]
	bl	w83792d_write_value
	mov	r0, r9
	bl	mutex_unlock
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	.align	2
.L8:
	.word	EINVAL
	.word	W83792D_REG_PWM
	.size	store_pwm_mode, .-store_pwm_mode
	.comm	W83792D_REG_PWM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
