	.file	"extr_nct6775.c_store_beep.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	store_beep, @function
store_beep:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	rdi, rsi
	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	to_sensor_dev_attr_2@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	dev_get_drvdata@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	esi, 10
	mov	rdi, r12
	mov	rbp, rax
	mov	rax, QWORD PTR [rax]
	mov	ebx, DWORD PTR [rax+rdx*4]
	mov	rdx, rsp
	call	kstrtoul@PLT
	test	eax, eax
	js	.L1
	cmp	QWORD PTR [rsp], 1
	jbe	.L3
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	r12, 16[rbp]
	mov	rdi, r12
	call	mutex_lock@PLT
	mov	edx, 1
	mov	ecx, ebx
	sal	rdx, cl
	cmp	QWORD PTR [rsp], 0
	jne	.L10
	not	rdx
	and	rdx, QWORD PTR 8[rbp]
.L5:
	mov	rax, QWORD PTR 24[rbp]
	mov	ecx, ebx
	sar	ebx, 3
	mov	QWORD PTR 8[rbp], rdx
	and	ecx, -8
	movsx	rbx, ebx
	mov	rdi, rbp
	shr	rdx, cl
	mov	esi, DWORD PTR [rax+rbx*4]
	movzx	edx, dl
	call	nct6775_write_value@PLT
	mov	rdi, r12
	call	mutex_unlock@PLT
	mov	eax, r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	or	rdx, QWORD PTR 8[rbp]
	jmp	.L5
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	store_beep, .-store_beep
	.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_nct6775.c_store_beep.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	store_beep, %function
store_beep:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r7, r3
	ldr	r3, .L10
	sub	sp, sp, #12
	mov	r4, r0
	mov	r0, r1
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	to_sensor_dev_attr_2
	mov	r6, r0
	mov	r0, r4
	bl	dev_get_drvdata
	ldr	ip, [r6]
	ldr	r3, [r0]
	mov	r4, r0
	mov	r2, sp
	mov	r0, r5
	mov	r1, #10
	ldr	r5, [r3, ip, lsl #2]
	bl	kstrtoul
	cmp	r0, #0
	blt	.L1
	ldr	r3, [sp]
	cmp	r3, #1
	bls	.L3
	ldr	r3, .L10+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
	add	r6, r4, #16
	mov	r0, r6
	bl	mutex_lock
	mov	r2, #1
	sub	r3, r5, #32
	ldr	r0, [sp]
	rsb	r1, r5, #32
	lsl	r3, r2, r3
	orr	r3, r3, r2, lsr r1
	ldr	ip, [r4, #8]
	ldr	r1, [r4, #12]
	cmp	r0, #0
	lsl	r2, r2, r5
	orrne	r3, r3, r1
	biceq	r3, r1, r3
	orrne	ip, r2, ip
	biceq	ip, ip, r2
	bic	r1, r5, #7
	lsr	r2, ip, r1
	rsb	r0, r1, #32
	orr	r2, r2, r3, lsl r0
	sub	r1, r1, #32
	ldr	r0, [r4, #20]
	orr	r2, r2, r3, lsr r1
	asr	r5, r5, #3
	ldr	r1, [r0, r5, lsl #2]
	str	ip, [r4, #8]
	str	r3, [r4, #12]
	and	r2, r2, #255
	mov	r0, r4
	bl	nct6775_write_value
	mov	r0, r6
	bl	mutex_unlock
	mov	r0, r7
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	EINVAL
	.size	store_beep, .-store_beep
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
