	.file	"extr_rgb2rgb_template.c_rgb16tobgr24_c.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rgb16tobgr24_c, @function
rgb16tobgr24_c:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	sar	eax
	cdqe
	lea	rcx, [rdi+rax*4]
	cmp	rdi, rcx
	jnb	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR [rdi]
	add	rdi, 4
	add	rsi, 12
	mov	r8d, eax
	lea	edx, 0[0+rax*8]
	sar	r8d, 2
	movzx	edx, dl
	and	r8d, 7
	or	edx, r8d
	mov	r8d, eax
	mov	DWORD PTR -12[rsi], edx
	mov	edx, eax
	sar	r8d, 9
	sar	edx, 3
	and	r8d, 3
	and	edx, 252
	or	edx, r8d
	mov	DWORD PTR -8[rsi], edx
	mov	edx, eax
	sar	eax, 13
	sar	edx, 8
	and	eax, 7
	and	edx, 248
	or	eax, edx
	mov	DWORD PTR -4[rsi], eax
	cmp	rcx, rdi
	ja	.L3
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	rgb16tobgr24_c, .-rgb16tobgr24_c
	.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_rgb2rgb_template.c_rgb16tobgr24_c.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rgb16tobgr24_c, %function
rgb16tobgr24_c:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	add	r2, r2, r2, lsr #31
	push	{r4, r5, r6, lr}
	asr	r4, r2, #1
	add	r4, r0, r4, lsl #2
	cmp	r0, r4
	popcs	{r4, r5, r6, pc}
	add	lr, r1, #12
.L3:
	ldr	r3, [r0], #4
	lsl	ip, r3, #3
	asr	r1, r3, #3
	asr	r2, r3, #8
	lsl	r6, r3, #27
	lsl	r5, r3, #21
	and	ip, ip, #255
	and	r1, r1, #252
	and	r2, r2, #248
	lsl	r3, r3, #16
	orr	ip, ip, r6, lsr #29
	orr	r1, r1, r5, lsr #30
	orr	r3, r2, r3, lsr #29
	cmp	r4, r0
	stmdb	lr, {r1, r3}
	str	ip, [lr, #-12]
	add	lr, lr, #12
	bhi	.L3
	pop	{r4, r5, r6, pc}
	.size	rgb16tobgr24_c, .-rgb16tobgr24_c
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
