	.file	"extr_lm3533_bl.c_store_als_en.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	store_als_en, @function
store_als_en:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rcx
	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	dev_get_drvdata@PLT
	mov	rdi, rax
	mov	r12, rax
	call	lm3533_bl_get_ctrlbank_id@PLT
	xor	esi, esi
	lea	rdx, 4[rsp]
	mov	rdi, r13
	mov	ebx, eax
	call	kstrtoint@PLT
	test	rax, rax
	jne	.L9
	mov	edx, DWORD PTR 4[rsp]
	lea	ecx, [rbx+rbx]
	mov	eax, 1
	mov	edi, DWORD PTR [r12]
	sal	eax, cl
	mov	esi, DWORD PTR LM3533_REG_CTRLBANK_AB_BCONF[rip]
	test	edx, edx
	mov	ecx, eax
	cmovne	edx, eax
	call	lm3533_update@PLT
	test	eax, eax
	cmove	eax, ebp
.L1:
	mov	rsi, QWORD PTR 8[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L10
	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
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	store_als_en, .-store_als_en
	.comm	LM3533_REG_CTRLBANK_AB_BCONF,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_lm3533_bl.c_store_als_en.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_als_en, %function
store_als_en:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r3
	ldr	r3, .L11
	sub	sp, sp, #8
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	dev_get_drvdata
	mov	r6, r0
	bl	lm3533_bl_get_ctrlbank_id
	mov	ip, r0
	mov	r2, sp
	mov	r0, r4
	mov	r1, #0
	mov	r4, ip
	bl	kstrtoint
	cmp	r0, #0
	bne	.L9
	mov	r3, #1
	ldr	r2, [sp]
	lsl	ip, r4, r3
	ldr	r1, .L11+4
	cmp	r2, #0
	lsl	r3, r3, ip
	movne	r2, r3
	ldr	r0, [r6]
	ldr	r1, [r1]
	bl	lm3533_update
	cmp	r0, #0
	moveq	r0, r5
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L11+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	LM3533_REG_CTRLBANK_AB_BCONF
	.word	EINVAL
	.size	store_als_en, .-store_als_en
	.comm	LM3533_REG_CTRLBANK_AB_BCONF,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
