	.file	"extr_leds-bd2802.c_bd2802_set_blink.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bd2802_set_blink, @function
bd2802_set_blink:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	call	bd2802_is_all_off@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR 12[rbp]
	test	eax, eax
	je	.L8
.L2:
	mov	edx, DWORD PTR BD2802_REG_CURRENT1SETUP[rip]
	mov	esi, r13d
	mov	edi, r12d
	call	bd2802_get_reg_addr@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR BD2802_CURRENT_000[rip]
	mov	esi, eax
	call	bd2802_write_byte@PLT
	mov	edx, DWORD PTR BD2802_REG_CURRENT2SETUP[rip]
	mov	esi, r13d
	mov	edi, r12d
	call	bd2802_get_reg_addr@PLT
	mov	edx, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, eax
	call	bd2802_write_byte@PLT
	mov	edx, DWORD PTR BD2802_REG_WAVEPATTERN[rip]
	mov	esi, r13d
	mov	edi, r12d
	call	bd2802_get_reg_addr@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, eax
	call	bd2802_write_byte@PLT
	mov	esi, r12d
	mov	rdi, rbp
	call	bd2802_enable@PLT
	mov	edx, r13d
	mov	esi, r12d
	mov	rdi, rbp
	mov	ecx, DWORD PTR BD2802_BLINK[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	bd2802_update_state@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, rbp
	call	bd2802_reset_cancel@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	bd2802_set_blink, .-bd2802_set_blink
	.comm	BD2802_REG_WAVEPATTERN,4,4
	.comm	BD2802_REG_CURRENT2SETUP,4,4
	.comm	BD2802_REG_CURRENT1SETUP,4,4
	.comm	BD2802_CURRENT_000,4,4
	.comm	BD2802_BLINK,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_set_blink.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bd2802_set_blink, %function
bd2802_set_blink:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r6, r2
	mov	r4, r0
	bl	bd2802_is_all_off
	cmp	r0, #0
	beq	.L2
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L8
.L2:
	ldr	r3, .L9
	mov	r1, r6
	ldr	r2, [r3]
	mov	r0, r5
	bl	bd2802_get_reg_addr
	ldr	r3, .L9+4
	mov	r1, r0
	ldr	r2, [r3]
	ldr	r0, [r4, #4]
	bl	bd2802_write_byte
	ldr	r3, .L9+8
	mov	r1, r6
	ldr	r2, [r3]
	mov	r0, r5
	bl	bd2802_get_reg_addr
	mov	r1, r0
	ldmib	r4, {r0, r2}
	bl	bd2802_write_byte
	ldr	r3, .L9+12
	mov	r1, r6
	ldr	r2, [r3]
	mov	r0, r5
	bl	bd2802_get_reg_addr
	ldr	r2, [r4]
	mov	r1, r0
	ldr	r0, [r4, #4]
	bl	bd2802_write_byte
	mov	r1, r5
	mov	r0, r4
	bl	bd2802_enable
	ldr	r3, .L9+16
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	ldr	r3, [r3]
	b	bd2802_update_state
.L8:
	mov	r0, r4
	bl	bd2802_reset_cancel
	b	.L2
.L10:
	.align	2
.L9:
	.word	BD2802_REG_CURRENT1SETUP
	.word	BD2802_CURRENT_000
	.word	BD2802_REG_CURRENT2SETUP
	.word	BD2802_REG_WAVEPATTERN
	.word	BD2802_BLINK
	.size	bd2802_set_blink, .-bd2802_set_blink
	.comm	BD2802_REG_WAVEPATTERN,4,4
	.comm	BD2802_REG_CURRENT2SETUP,4,4
	.comm	BD2802_REG_CURRENT1SETUP,4,4
	.comm	BD2802_CURRENT_000,4,4
	.comm	BD2802_BLINK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
