	.file	"extr_leds-bd2802.c_bd2802_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bd2802_enable, @function
bd2802_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR LED1[rip]
	cmp	esi, ebp
	cmove	esi, DWORD PTR LED2[rip]
	call	bd2802_is_led_off@PLT
	xor	r8d, r8d
	test	eax, eax
	sete	r8b
	cmp	DWORD PTR LED1[rip], ebp
	je	.L7
	mov	esi, r8d
	mov	edi, 1
	call	LED_CTL@PLT
	mov	edx, eax
.L4:
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR BD2802_REG_CONTROL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	bd2802_write_byte@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, 1
	mov	edi, r8d
	call	LED_CTL@PLT
	mov	edx, eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	bd2802_enable, .-bd2802_enable
	.comm	LED2,4,4
	.comm	LED1,4,4
	.comm	BD2802_REG_CONTROL,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_leds-bd2802.c_bd2802_enable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bd2802_enable, %function
bd2802_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r6, .L7
	mov	r4, r0
	ldr	r1, [r6]
	cmp	r1, r5
	ldreq	r3, .L7+4
	ldreq	r1, [r3]
	bl	bd2802_is_led_off
	clz	r1, r0
	ldr	r3, [r6]
	lsr	r1, r1, #5
	cmp	r3, r5
	moveq	r0, r1
	movne	r0, #1
	moveq	r1, #1
	bl	LED_CTL
	ldr	r3, .L7+8
	mov	r2, r0
	ldr	r1, [r3]
	ldr	r0, [r4]
	pop	{r4, r5, r6, lr}
	b	bd2802_write_byte
.L8:
	.align	2
.L7:
	.word	LED1
	.word	LED2
	.word	BD2802_REG_CONTROL
	.size	bd2802_enable, .-bd2802_enable
	.comm	LED2,4,4
	.comm	LED1,4,4
	.comm	BD2802_REG_CONTROL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
