	.file	"extr_pixconv.c_conv_rgb565_0rgb1555.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	conv_rgb565_0rgb1555
	.type	conv_rgb565_0rgb1555, @function
conv_rgb565_0rgb1555:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r9d
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	QWORD PTR 24[rsp], rdi
	mov	edi, 32736
	mov	DWORD PTR 40[rsp], edx
	mov	DWORD PTR 44[rsp], ecx
	call	_mm_set1_epi16@PLT
	mov	edi, 31
	mov	DWORD PTR 72[rsp], eax
	call	_mm_set1_epi16@PLT
	test	r14d, r14d
	jle	.L1
	sar	r13d
	mov	r15d, eax
	sar	ebx
	mov	DWORD PTR 20[rsp], 0
	movsx	rax, r13d
	mov	r14, r12
	sal	rax, 2
	mov	QWORD PTR 48[rsp], rax
	movsx	rax, ebx
	sal	rax, 2
	mov	QWORD PTR 56[rsp], rax
	lea	eax, -8[rbp]
	shr	eax, 3
	mov	edx, eax
	lea	eax, 8[0+rax*8]
	mov	DWORD PTR 76[rsp], eax
	lea	rax, 1[rdx]
	sal	rax, 5
	mov	QWORD PTR 64[rsp], rax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 64[rsp]
	xor	edx, edx
	mov	rbx, QWORD PTR 24[rsp]
	mov	r13, r14
	add	rax, r14
	cmp	DWORD PTR 40[rsp], 7
	mov	QWORD PTR 8[rsp], rax
	jle	.L8
	mov	r12d, DWORD PTR 72[rsp]
	mov	QWORD PTR 32[rsp], r14
	mov	r14, r13
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r14
	add	r14, 32
	call	_mm_loadu_si128@PLT
	mov	esi, 1
	mov	edi, eax
	mov	ebp, eax
	call	_mm_slli_epi16@PLT
	mov	esi, r12d
	mov	edi, eax
	call	_mm_and_si128@PLT
	mov	esi, r15d
	mov	edi, ebp
	mov	r13d, eax
	call	_mm_and_si128@PLT
	mov	edi, r13d
	mov	esi, eax
	call	_mm_or_si128@PLT
	mov	rdi, rbx
	add	rbx, 32
	mov	esi, eax
	call	_mm_storeu_si128@PLT
	cmp	r14, QWORD PTR 8[rsp]
	jne	.L4
	mov	r14, QWORD PTR 32[rsp]
	movsx	rdx, DWORD PTR 76[rsp]
.L8:
	mov	edi, DWORD PTR 40[rsp]
	cmp	edi, edx
	jle	.L5
	mov	rsi, QWORD PTR 24[rsp]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	ecx, DWORD PTR [r14+rdx*4]
	mov	eax, ecx
	and	ecx, 31
	sar	eax
	and	eax, 32736
	or	eax, ecx
	mov	DWORD PTR [rsi+rdx*4], eax
	add	rdx, 1
	cmp	edi, edx
	jg	.L6
.L5:
	add	DWORD PTR 20[rsp], 1
	mov	rdx, QWORD PTR 48[rsp]
	mov	eax, DWORD PTR 20[rsp]
	add	QWORD PTR 24[rsp], rdx
	add	r14, QWORD PTR 56[rsp]
	cmp	DWORD PTR 44[rsp], eax
	jne	.L3
.L1:
	add	rsp, 88
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	conv_rgb565_0rgb1555, .-conv_rgb565_0rgb1555
	.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_pixconv.c_conv_rgb565_0rgb1555.c"
	.text
	.align	2
	.global	conv_rgb565_0rgb1555
	.syntax unified
	.arm
	.fpu softvfp
	.type	conv_rgb565_0rgb1555, %function
conv_rgb565_0rgb1555:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r9, r3, #0
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r6, #0
	ldr	r3, [sp, #32]
	add	r4, r1, r2, lsl #2
	asr	r8, r3, #1
	ldr	r3, [sp, #36]
	ldr	r5, .L10
	asr	r7, r3, #1
	lsl	r8, r8, #2
	lsl	r7, r7, #2
	sub	r4, r4, #4
.L3:
	cmp	r2, #0
	subgt	ip, r1, #4
	subgt	lr, r0, #4
	ble	.L6
.L4:
	ldr	r3, [ip, #4]!
	and	r10, r5, r3, asr #1
	and	r3, r3, #31
	orr	r3, r10, r3
	cmp	ip, r4
	str	r3, [lr, #4]!
	bne	.L4
.L6:
	add	r6, r6, #1
	cmp	r9, r6
	add	r0, r0, r8
	add	r1, r1, r7
	add	r4, r4, r7
	bne	.L3
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	.align	2
.L10:
	.word	32736
	.size	conv_rgb565_0rgb1555, .-conv_rgb565_0rgb1555
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
