	.file	"extr_backlight.c_backlight_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	backlight_init
	.type	backlight_init, @function
backlight_init:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	xor	eax, eax
	call	eeconfig_is_enabled@PLT
	test	eax, eax
	je	.L9
.L2:
	xor	eax, eax
	call	eeconfig_read_backlight@PLT
	mov	DWORD PTR backlight_config[rip+16], eax
	mov	rax, QWORD PTR BACKLIGHT_LEVELS[rip]
	cmp	QWORD PTR backlight_config[rip], rax
	jle	.L3
	mov	QWORD PTR backlight_config[rip], rax
.L3:
	mov	rdi, QWORD PTR backlight_config[rip+8]
	test	rdi, rdi
	cmovne	rdi, QWORD PTR backlight_config[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	backlight_set@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	call	eeconfig_init@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	backlight_init, .-backlight_init
	.comm	backlight_config,24,16
	.comm	BACKLIGHT_LEVELS,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_backlight.c_backlight_init.c"
	.text
	.align	2
	.global	backlight_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	backlight_init, %function
backlight_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	bl	eeconfig_is_enabled
	cmp	r0, #0
	beq	.L10
.L2:
	bl	eeconfig_read_backlight
	pop	{r4, lr}
	ldr	r3, .L11
	ldr	r2, .L11+4
	ldr	r1, [r3]
	ldr	r2, [r2]
	str	r0, [r3, #8]
	ldr	r0, [r3, #4]
	cmp	r1, r2
	strgt	r2, [r3]
	cmp	r0, #0
	ldrne	r0, [r3]
	b	backlight_set
.L10:
	bl	eeconfig_init
	b	.L2
.L12:
	.align	2
.L11:
	.word	backlight_config
	.word	BACKLIGHT_LEVELS
	.size	backlight_init, .-backlight_init
	.comm	backlight_config,12,4
	.comm	BACKLIGHT_LEVELS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
