	.file	"extr_backlight.c_bl_power_store.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"set power to %lu\n"
	.text
	.p2align 4
	.type	bl_power_store, @function
bl_power_store:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rcx
	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_backlight_device@PLT
	mov	rdi, r12
	mov	rdx, rsp
	xor	esi, esi
	mov	rbp, rax
	call	kstrtoul@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L13
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L13:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENXIO[rip]
	mov	rdi, rbp
	call	mutex_lock@PLT
	neg	r12d
	cmp	QWORD PTR 16[rbp], 0
	jne	.L15
.L4:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rsi, QWORD PTR [rsp]
	lea	rdi, .LC0[rip]
	call	pr_debug@PLT
	mov	r13, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR [rsp]
	cmp	r13, rax
	je	.L5
	mov	QWORD PTR 8[rbp], rax
	mov	rdi, rbp
	call	backlight_update_status@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L5
	mov	QWORD PTR 8[rbp], r13
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r12d, ebx
	jmp	.L4
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bl_power_store, .-bl_power_store
	.comm	ENXIO,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_backlight.c_bl_power_store.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"set power to %lu\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bl_power_store, %function
bl_power_store:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r3
	ldr	r3, .L15
	sub	sp, sp, #12
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	to_backlight_device
	mov	r2, sp
	mov	r5, r0
	mov	r1, #0
	mov	r0, r4
	bl	kstrtoul
	subs	r4, r0, #0
	beq	.L12
.L1:
	ldr	r3, .L15
	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}
.L12:
	ldr	r3, .L15+4
	mov	r0, r5
	ldr	r4, [r3]
	bl	mutex_lock
	ldr	r3, [r5, #8]
	cmp	r3, #0
	rsbeq	r4, r4, #0
	bne	.L14
.L4:
	mov	r0, r5
	bl	mutex_unlock
	b	.L1
.L14:
	ldr	r1, [sp]
	ldr	r0, .L15+8
	bl	pr_debug
	ldr	r7, [r5, #4]
	ldr	r3, [sp]
	cmp	r7, r3
	beq	.L5
	mov	r0, r5
	str	r3, [r5, #4]
	bl	backlight_update_status
	subs	r4, r0, #0
	strne	r7, [r5, #4]
	bne	.L4
.L5:
	mov	r4, r6
	b	.L4
.L13:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	ENXIO
	.word	.LC0
	.size	bl_power_store, .-bl_power_store
	.comm	ENXIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
