	.file	"extr_brush.c_BrushFromBounds.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	BrushFromBounds
	.type	BrushFromBounds, @function
BrushFromBounds:
.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
	xor	ebx, ebx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 24[rsp], rdi
	mov	edi, 6
	lea	r14, 16[rsp]
	lea	r13, 24[rsp]
	mov	QWORD PTR 16[rsp], rsi
	call	AllocBrush@PLT
	mov	DWORD PTR [rax], 6
	mov	r12, rax
.L2:
	xor	ebp, ebp
	lea	r15, [rbx+rbx]
	mov	rdi, rbp
	call	VectorClear@PLT
	mov	rax, QWORD PTR 16[rsp]
	mov	rcx, r14
	mov	rdi, rbp
	mov	r8, QWORD PTR 8[r12]
	mov	edx, 1
	mov	esi, DWORD PTR [rax+rbx]
	add	r8, r15
	mov	QWORD PTR 8[rsp], r8
	call	FindFloatPlane@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	rcx, r13
	mov	rdi, rbp
	mov	DWORD PTR 0[rbp+rbx], -1
	mov	edx, 1
	mov	QWORD PTR [r8], rax
	mov	rax, QWORD PTR 8[r12]
	lea	r15, 24[rax+r15]
	mov	rax, QWORD PTR 24[rsp]
	mov	esi, DWORD PTR [rax+rbx]
	add	rbx, 4
	neg	esi
	call	FindFloatPlane@PLT
	mov	QWORD PTR [r15], rax
	cmp	rbx, 12
	jne	.L2
	mov	rdi, r12
	call	CreateBrushWindings@PLT
	add	rsp, 40
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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	BrushFromBounds, .-BrushFromBounds
	.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_brush.c_BrushFromBounds.c"
	.text
	.align	2
	.global	BrushFromBounds
	.syntax unified
	.arm
	.fpu softvfp
	.type	BrushFromBounds, %function
BrushFromBounds:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #12
	str	r0, [sp, #4]
	mov	r0, #6
	str	r1, [sp]
	bl	AllocBrush
	mov	r3, #6
	mov	r5, r0
	mvn	r7, #3
	mov	r4, #0
	mvn	r8, #0
	str	r3, [r0]
.L2:
	mov	r6, #0
	mov	r0, r6
	bl	VectorClear
	ldr	r3, [sp]
	mov	r0, r6
	ldr	r1, [r3, r4]
	mov	r2, #1
	mov	r3, sp
	ldr	r9, [r5, #4]
	bl	FindFloatPlane
	ldr	r3, [sp, #4]
	mov	r2, #1
	ldr	r1, [r3, r4]
	str	r0, [r9, r4]
	add	r3, sp, #4
	mov	r0, r6
	str	r8, [r7, #4]!
	rsb	r1, r1, #0
	ldr	r6, [r5, #4]
	bl	FindFloatPlane
	add	r3, r4, #12
	add	r4, r4, #4
	cmp	r4, #12
	str	r0, [r6, r3]
	bne	.L2
	mov	r0, r5
	bl	CreateBrushWindings
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
	.size	BrushFromBounds, .-BrushFromBounds
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
