	.file	"extr_ws2812.c_set_led_color_rgb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	set_led_color_rgb
	.type	set_led_color_rgb, @function
set_led_color_rgb:
.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	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	QWORD PTR [rsp], rdi
.L2:
	mov	eax, DWORD PTR BYTES_FOR_LED[rip]
	mov	rdx, QWORD PTR txbuf[rip]
	mov	esi, ebp
	mov	edi, r12d
	imul	eax, ebx
	add	eax, ebp
	add	ebp, 1
	cdqe
	lea	r13, [rdx+rax*4]
	call	get_protocol_eq@PLT
	mov	DWORD PTR 0[r13], eax
	cmp	ebp, 4
	jne	.L2
	mov	ebp, DWORD PTR 4[rsp]
	xor	r12d, r12d
.L3:
	mov	eax, DWORD PTR BYTES_FOR_LED[rip]
	mov	rdx, QWORD PTR txbuf[rip]
	mov	esi, r12d
	mov	edi, ebp
	imul	eax, ebx
	add	eax, DWORD PTR BYTES_FOR_LED_BYTE[rip]
	add	eax, r12d
	add	r12d, 1
	cdqe
	lea	r13, [rdx+rax*4]
	call	get_protocol_eq@PLT
	mov	DWORD PTR 0[r13], eax
	cmp	r12d, 4
	jne	.L3
	mov	r12d, DWORD PTR [rsp]
	xor	ebp, ebp
.L4:
	mov	eax, DWORD PTR BYTES_FOR_LED[rip]
	mov	edx, DWORD PTR BYTES_FOR_LED_BYTE[rip]
	mov	esi, ebp
	mov	edi, r12d
	imul	eax, ebx
	lea	eax, [rax+rdx*2]
	mov	rdx, QWORD PTR txbuf[rip]
	add	eax, ebp
	add	ebp, 1
	cdqe
	lea	r13, [rdx+rax*4]
	call	get_protocol_eq@PLT
	mov	DWORD PTR 0[r13], eax
	cmp	ebp, 4
	jne	.L4
	add	rsp, 24
	.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
	.cfi_endproc
.LFE0:
	.size	set_led_color_rgb, .-set_led_color_rgb
	.comm	txbuf,8,8
	.comm	BYTES_FOR_LED_BYTE,4,4
	.comm	BYTES_FOR_LED,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_ws2812.c_set_led_color_rgb.c"
	.text
	.align	2
	.global	set_led_color_rgb
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_led_color_rgb, %function
set_led_color_rgb:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, #0
	sub	sp, sp, #20
	mov	r5, r3
	add	r3, sp, #16
	stmdb	r3, {r0, r1, r2}
	ldr	r6, .L10
	ldr	r10, [sp, #12]
	ldr	r7, .L10+4
.L2:
	mov	r1, r4
	mov	r0, r10
	ldr	r8, [r7]
	ldr	r9, [r6]
	bl	get_protocol_eq
	mla	r8, r5, r8, r4
	add	r4, r4, #1
	cmp	r4, #4
	str	r0, [r9, r8, lsl #2]
	bne	.L2
	mov	r9, #0
	ldr	fp, [sp, #8]
	ldr	r8, .L10+8
.L3:
	ldr	r4, [r7]
	ldr	r3, [r8]
	mov	r1, r9
	mov	r0, fp
	mla	r4, r5, r4, r3
	ldr	r10, [r6]
	bl	get_protocol_eq
	add	r4, r4, r9
	add	r9, r9, #1
	cmp	r9, #4
	str	r0, [r10, r4, lsl #2]
	bne	.L3
	mov	r9, #0
	ldr	r10, [sp, #4]
.L4:
	ldr	r3, [r8]
	ldr	r4, [r7]
	mov	r1, r9
	lsl	r3, r3, #1
	mov	r0, r10
	mla	r4, r5, r4, r3
	ldr	fp, [r6]
	bl	get_protocol_eq
	add	r4, r4, r9
	add	r9, r9, #1
	cmp	r9, #4
	str	r0, [fp, r4, lsl #2]
	bne	.L4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	.align	2
.L10:
	.word	txbuf
	.word	BYTES_FOR_LED
	.word	BYTES_FOR_LED_BYTE
	.size	set_led_color_rgb, .-set_led_color_rgb
	.comm	txbuf,4,4
	.comm	BYTES_FOR_LED_BYTE,4,4
	.comm	BYTES_FOR_LED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
