	.file	"extr_csg.c_OptimizedBrushList.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	OptimizedBrushList
	.type	OptimizedBrushList, @function
OptimizedBrushList:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	rdi, rdi
	je	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR [rbx]
	xor	r8d, r8d
	test	edi, edi
	jle	.L8
	lea	edx, -1[rdi]
	mov	rsi, QWORD PTR 16[rbx]
	mov	ecx, DWORD PTR SFL_VISIBLE[rip]
	mov	eax, 1
	add	rdx, 2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r8d, eax
	add	rax, 1
	cmp	rax, rdx
	je	.L8
.L5:
	test	DWORD PTR -4[rsi+rax*4], ecx
	je	.L18
.L4:
	mov	rdi, rbx
	call	CopyBrush@PLT
	mov	QWORD PTR 8[rax], r12
	mov	r12, rax
.L6:
	mov	rbx, QWORD PTR 8[rbx]
	test	rbx, rbx
	jne	.L2
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	cmp	r8d, edi
	je	.L6
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	OptimizedBrushList, .-OptimizedBrushList
	.comm	SFL_VISIBLE,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_csg.c_OptimizedBrushList.c"
	.text
	.align	2
	.global	OptimizedBrushList
	.syntax unified
	.arm
	.fpu softvfp
	.type	OptimizedBrushList, %function
OptimizedBrushList:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r0, #0
	moveq	r6, r4
	beq	.L1
	mov	r6, #0
	ldr	r5, .L19
.L2:
	ldr	r0, [r4]
	cmp	r0, #0
	ble	.L17
	ldr	r2, [r4, #8]
	mov	r3, #0
	ldr	ip, [r5]
	sub	r2, r2, #4
	b	.L5
.L18:
	cmp	r3, r0
	beq	.L6
.L5:
	ldr	r1, [r2, #4]!
	add	r3, r3, #1
	tst	ip, r1
	beq	.L18
.L4:
	mov	r0, r4
	bl	CopyBrush
	str	r6, [r0, #4]
	mov	r6, r0
.L6:
	ldr	r4, [r4, #4]
	cmp	r4, #0
	bne	.L2
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L17:
	bne	.L4
	b	.L6
.L20:
	.align	2
.L19:
	.word	SFL_VISIBLE
	.size	OptimizedBrushList, .-OptimizedBrushList
	.comm	SFL_VISIBLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
