	.file	"extr_draw.c_convert_pal555.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	convert_pal555, @function
convert_pal555:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR Pico32xMem[rip]
	cmp	edi, 1
	sbb	edi, edi
	mov	rcx, QWORD PTR 8[rax]
	mov	r8, QWORD PTR [rax]
	not	edi
	and	edi, 2097184
	lea	r9, 512[rcx]
	sub	r8, rcx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR [rcx]
	add	rcx, 4
	mov	eax, edx
	lea	esi, [rdx+rdx]
	shr	edx, 10
	sal	eax, 11
	and	esi, 130025408
	and	edx, 4128831
	and	eax, -134154240
	or	eax, esi
	or	eax, edx
	xor	eax, edi
	mov	DWORD PTR -4[rcx+r8], eax
	cmp	rcx, r9
	jne	.L3
	mov	QWORD PTR Pico32x[rip], 0
	ret
	.cfi_endproc
.LFE0:
	.size	convert_pal555, .-convert_pal555
	.comm	Pico32xMem,8,8
	.comm	Pico32x,8,8
	.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_draw.c_convert_pal555.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert_pal555, %function
convert_pal555:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #0
	push	{r4, r5, r6, r7, lr}
	ldr	lr, .L8
	moveq	lr, #0
	ldr	r3, .L8+4
	ldr	r6, .L8+8
	ldr	r3, [r3]
	ldr	r5, .L8+12
	ldr	r1, [r3, #4]
	ldr	ip, [r3]
	ldr	r4, .L8+16
	sub	ip, ip, r1
	add	r7, r1, #512
.L3:
	ldr	r2, [r1]
	and	r3, r6, r2, lsl #11
	and	r0, r5, r2, lsl #1
	orr	r3, r3, r0
	and	r2, r4, r2, lsr #10
	orr	r3, r3, r2
	eor	r3, r3, lr
	str	r3, [r1, ip]
	add	r1, r1, #4
	cmp	r1, r7
	bne	.L3
	mov	r2, #0
	ldr	r3, .L8+20
	str	r2, [r3]
	pop	{r4, r5, r6, r7, pc}
.L9:
	.align	2
.L8:
	.word	2097184
	.word	Pico32xMem
	.word	-134154240
	.word	130025408
	.word	4128831
	.word	Pico32x
	.size	convert_pal555, .-convert_pal555
	.comm	Pico32xMem,4,4
	.comm	Pico32x,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
