	.file	"extr_map.c_MarkBrushBevels.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"MarkBrushBevels: brush %d no winding"
	.align 8
.LC1:
	.string	"MarkBrushBevels: brush %d tiny winding"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"MarkBrushBevels: brush %d %s"
	.text
	.p2align 4
	.globl	MarkBrushBevels
	.type	MarkBrushBevels, @function
MarkBrushBevels:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jle	.L19
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, .LC2[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L24:
	mov	esi, DWORD PTR 4[r12]
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	Log_Write@PLT
	mov	edx, DWORD PTR SFL_BEVEL[rip]
	mov	ecx, DWORD PTR [rbx]
	or	ecx, edx
	mov	DWORD PTR [rbx], ecx
.L4:
	test	edx, edx
	je	.L8
	mov	eax, DWORD PTR SFL_VISIBLE[rip]
	not	eax
	and	eax, ecx
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	je	.L8
	cmp	rax, QWORD PTR nummapplanes[rip]
	jnb	.L8
	mov	rdx, QWORD PTR mapplanes[rip]
	cmp	DWORD PTR [rdx+rax*4], 2
	jg	.L10
	add	DWORD PTR c_boxbevels[rip], 1
	.p2align 4,,10
	.p2align 3
.L8:
	add	rbp, 1
	cmp	DWORD PTR [r12], ebp
	jle	.L23
.L2:
	mov	rdx, QWORD PTR 8[r12]
	lea	rax, 0[rbp+rbp*2]
	lea	rbx, [rdx+rax*8]
	mov	edi, DWORD PTR 16[rbx]
	test	edi, edi
	je	.L24
	call	WindingIsTiny@PLT
	test	rax, rax
	je	.L5
	mov	eax, DWORD PTR SFL_BEVEL[rip]
	or	DWORD PTR [rbx], eax
	xor	eax, eax
	lea	rdi, .LC1[rip]
	mov	esi, DWORD PTR 4[r12]
	call	Log_Write@PLT
	mov	ecx, DWORD PTR [rbx]
	mov	edx, DWORD PTR SFL_BEVEL[rip]
	and	edx, ecx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR 16[rbx]
	call	WindingError@PLT
	cmp	DWORD PTR WE_NOTENOUGHPOINTS[rip], eax
	je	.L6
	cmp	DWORD PTR WE_SMALLAREA[rip], eax
	je	.L6
	cmp	DWORD PTR WE_POINTBOGUSRANGE[rip], eax
	je	.L6
	mov	ecx, DWORD PTR [rbx]
	mov	edx, DWORD PTR SFL_BEVEL[rip]
	and	edx, ecx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	xor	eax, eax
	call	WindingErrorString@PLT
	mov	esi, DWORD PTR 4[r12]
	mov	rdi, r13
	mov	edx, eax
	xor	eax, eax
	call	Log_Write@PLT
	mov	edx, DWORD PTR SFL_BEVEL[rip]
	mov	ecx, DWORD PTR [rbx]
	or	ecx, edx
	mov	DWORD PTR [rbx], ecx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L23:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	add	DWORD PTR c_edgebevels[rip], 1
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE0:
	.size	MarkBrushBevels, .-MarkBrushBevels
	.comm	nummapplanes,8,8
	.comm	mapplanes,8,8
	.comm	c_edgebevels,4,4
	.comm	c_boxbevels,4,4
	.comm	WE_SMALLAREA,4,4
	.comm	WE_POINTBOGUSRANGE,4,4
	.comm	WE_NOTENOUGHPOINTS,4,4
	.comm	SFL_VISIBLE,4,4
	.comm	SFL_BEVEL,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_map.c_MarkBrushBevels.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"MarkBrushBevels: brush %d no winding\000"
	.align	2
.LC1:
	.ascii	"MarkBrushBevels: brush %d tiny winding\000"
	.align	2
.LC2:
	.ascii	"MarkBrushBevels: brush %d %s\000"
	.text
	.align	2
	.global	MarkBrushBevels
	.syntax unified
	.arm
	.fpu softvfp
	.type	MarkBrushBevels, %function
MarkBrushBevels:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	cmp	r2, #0
	bxle	lr
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, #0
	mov	fp, r0
	mov	r6, r5
	ldr	r7, .L23
	ldr	r10, .L23+4
	ldr	r8, .L23+8
	b	.L2
.L22:
	mov	r0, r8
	ldr	r1, [fp, #4]
	bl	Log_Write
	ldr	r2, [r7]
	ldr	r3, [r9, r5]
	orr	r3, r2, r3
	str	r3, [r9, r5]
.L4:
	cmp	r2, #0
	beq	.L8
	ldr	r1, .L23+12
	ldr	r2, [r4, #4]
	ldr	r1, [r1]
	cmp	r2, #0
	bic	r3, r3, r1
	str	r3, [r4]
	beq	.L8
	ldr	r3, .L23+16
	ldr	r3, [r3]
	cmp	r2, r3
	bcs	.L8
	ldr	r3, .L23+20
	ldr	r3, [r3]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #2
	ldrle	r2, .L23+24
	ldrgt	r2, .L23+28
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
.L8:
	ldr	r3, [fp]
	add	r6, r6, #1
	cmp	r3, r6
	add	r5, r5, #12
	pople	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r9, [fp, #8]
	add	r4, r9, r5
	ldr	r0, [r4, #8]
	cmp	r0, #0
	beq	.L22
	bl	WindingIsTiny
	cmp	r0, #0
	beq	.L5
	ldr	r2, [r7]
	ldr	r3, [r4]
	ldr	r1, [fp, #4]
	orr	r3, r3, r2
	str	r3, [r4]
	ldr	r0, .L23+32
	bl	Log_Write
	ldr	r3, [r4]
	ldr	r2, [r7]
	and	r2, r2, r3
	b	.L4
.L5:
	ldr	r0, [r4, #8]
	bl	WindingError
	ldr	r3, [r10]
	cmp	r3, r0
	beq	.L6
	ldr	r3, .L23+36
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L6
	ldr	r3, .L23+40
	ldr	r3, [r3]
	cmp	r3, r0
	ldrne	r3, [r4]
	ldrne	r2, [r7]
	andne	r2, r2, r3
	bne	.L4
.L6:
	ldr	r9, [fp, #4]
	bl	WindingErrorString
	mov	r1, r9
	mov	r2, r0
	ldr	r0, .L23+44
	bl	Log_Write
	ldr	r2, [r7]
	ldr	r3, [r4]
	orr	r3, r2, r3
	str	r3, [r4]
	b	.L4
.L24:
	.align	2
.L23:
	.word	SFL_BEVEL
	.word	WE_NOTENOUGHPOINTS
	.word	.LC0
	.word	SFL_VISIBLE
	.word	nummapplanes
	.word	mapplanes
	.word	c_boxbevels
	.word	c_edgebevels
	.word	.LC1
	.word	WE_SMALLAREA
	.word	WE_POINTBOGUSRANGE
	.word	.LC2
	.size	MarkBrushBevels, .-MarkBrushBevels
	.comm	nummapplanes,4,4
	.comm	mapplanes,4,4
	.comm	c_edgebevels,4,4
	.comm	c_boxbevels,4,4
	.comm	WE_SMALLAREA,4,4
	.comm	WE_POINTBOGUSRANGE,4,4
	.comm	WE_NOTENOUGHPOINTS,4,4
	.comm	SFL_VISIBLE,4,4
	.comm	SFL_BEVEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
