	.file	"extr_utils.c_convert_b8g8r8a8_unorm_b8g8r8a8_unorm_color_key.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	convert_b8g8r8a8_unorm_b8g8r8a8_unorm_color_key, @function
convert_b8g8r8a8_unorm_b8g8r8a8_unorm_color_key:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 24[rsp], rdi
	mov	rbp, QWORD PTR 120[rsp]
	mov	DWORD PTR 12[rsp], esi
	mov	QWORD PTR 32[rsp], rdx
	mov	DWORD PTR 16[rsp], ecx
	mov	DWORD PTR 20[rsp], r8d
	mov	DWORD PTR 40[rsp], r9d
	test	r9d, r9d
	je	.L1
	lea	eax, -1[r8]
	mov	DWORD PTR 8[rsp], 0
	xor	r14d, r14d
	mov	DWORD PTR 4[rsp], 0
	mov	DWORD PTR 44[rsp], eax
	.p2align 4,,10
	.p2align 3
.L6:
	mov	ecx, DWORD PTR 20[rsp]
	mov	edx, DWORD PTR 8[rsp]
	mov	eax, r14d
	test	ecx, ecx
	je	.L3
	mov	rdi, QWORD PTR 32[rsp]
	mov	rcx, QWORD PTR 24[rsp]
	lea	r15, [rdi+rax*4]
	mov	eax, DWORD PTR 44[rsp]
	lea	r12, [rcx+rdx*4]
	add	rax, rdx
	lea	rbx, 4[rcx+rax*4]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r13d, DWORD PTR [r12]
	mov	rdi, rbp
	mov	esi, r13d
	call	color_in_range@PLT
	mov	r8, rax
	mov	eax, r13d
	and	eax, 16777215
	test	r8, r8
	cmovne	r13d, eax
	add	r12, 4
	add	r15, 4
	mov	DWORD PTR -4[r15], r13d
	cmp	r12, rbx
	jne	.L5
.L3:
	add	DWORD PTR 4[rsp], 1
	mov	edx, DWORD PTR 12[rsp]
	mov	eax, DWORD PTR 4[rsp]
	add	DWORD PTR 8[rsp], edx
	add	r14d, DWORD PTR 16[rsp]
	cmp	DWORD PTR 40[rsp], eax
	jne	.L6
.L1:
	add	rsp, 56
	.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	convert_b8g8r8a8_unorm_b8g8r8a8_unorm_color_key, .-convert_b8g8r8a8_unorm_b8g8r8a8_unorm_color_key
	.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_utils.c_convert_b8g8r8a8_unorm_b8g8r8a8_unorm_color_key.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert_b8g8r8a8_unorm_b8g8r8a8_unorm_color_key, %function
convert_b8g8r8a8_unorm_b8g8r8a8_unorm_color_key:
	@ args = 16, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	ldr	ip, [sp, #68]
	stmib	sp, {r1, r3}
	cmp	ip, #0
	ldr	r5, [sp, #76]
	str	r0, [sp, #16]
	beq	.L1
	mov	r6, #0
	mov	r8, r6
	mov	r7, r6
	sub	r3, r2, #4
	str	r3, [sp, #20]
	lsl	r3, r1, #2
	str	r3, [sp, #12]
	ldr	r3, [sp, #64]
	add	r4, r0, r3, lsl #2
.L6:
	ldr	r3, [sp, #64]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [sp, #16]
	add	r10, r3, r6, lsl #2
	ldr	r3, [sp, #20]
	add	r9, r3, r8, lsl #2
.L5:
	ldr	fp, [r10], #4
	mov	r0, r5
	mov	r1, fp
	bl	color_in_range
	cmp	r0, #0
	bicne	fp, fp, #-16777216
	cmp	r10, r4
	str	fp, [r9, #4]!
	bne	.L5
.L3:
	ldr	r3, [sp, #68]
	add	r7, r7, #1
	cmp	r3, r7
	ldr	r3, [sp, #8]
	add	r8, r8, r3
	ldr	r3, [sp, #12]
	add	r4, r4, r3
	ldr	r3, [sp, #4]
	add	r6, r6, r3
	bne	.L6
.L1:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	convert_b8g8r8a8_unorm_b8g8r8a8_unorm_color_key, .-convert_b8g8r8a8_unorm_b8g8r8a8_unorm_color_key
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
