	.file	"extr_csg.c_ProcessWorldBrushes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ProcessWorldBrushes
	.type	ProcessWorldBrushes, @function
ProcessWorldBrushes:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR map_mins[rip]
	mov	rcx, QWORD PTR [rax]
	lea	rdx, -8[rcx]
	mov	QWORD PTR [r12], rdx
	mov	rcx, QWORD PTR 8[rax]
	lea	rdx, -8[rcx]
	mov	QWORD PTR 8[r12], rdx
	mov	rax, QWORD PTR 16[rax]
	sub	rax, 8
	mov	QWORD PTR 16[r12], rax
	mov	rax, QWORD PTR map_maxs[rip]
	mov	rcx, QWORD PTR [rax]
	lea	rdx, 8[rcx]
	mov	QWORD PTR 0[r13], rdx
	mov	rsi, QWORD PTR 8[rax]
	lea	rdx, 8[rsi]
	mov	QWORD PTR 8[r13], rdx
	mov	rax, QWORD PTR 16[rax]
	add	rax, 8
	mov	QWORD PTR 16[r13], rax
	xor	eax, eax
	call	ResetBrushBSP@PLT
	mov	rcx, r13
	mov	rdx, r12
	mov	esi, r14d
	mov	edi, ebp
	call	MakeBspBrushList@PLT
	test	rax, rax
	je	.L8
	mov	rdi, rax
	mov	eax, DWORD PTR nocsg[rip]
	test	eax, eax
	je	.L9
	cmp	QWORD PTR cancelconversion[rip], 0
	jne	.L10
.L5:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	r13d, r13d
	xor	r12d, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rdx, r13
	mov	rsi, r12
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	BrushBSP@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	call	ChopBrushes@PLT
	cmp	QWORD PTR cancelconversion[rip], 0
	mov	rdi, rax
	je	.L5
.L10:
	call	FreeBrushList@PLT
	xor	r14d, r14d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rax, r14
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	xor	eax, eax
	call	AllocNode@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR PLANENUM_LEAF[rip]
	mov	DWORD PTR 4[rbp], eax
	mov	eax, DWORD PTR CONTENTS_SOLID[rip]
	mov	DWORD PTR 0[rbp], eax
	xor	eax, eax
	call	Tree_Alloc@PLT
	mov	rdi, r12
	mov	QWORD PTR 8[rax], rbp
	mov	esi, DWORD PTR 4[rax]
	mov	r14, rax
	call	VectorCopy@PLT
	mov	esi, DWORD PTR [r14]
	mov	rdi, r13
	call	VectorCopy@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rax, r14
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ProcessWorldBrushes, .-ProcessWorldBrushes
	.comm	nocsg,4,4
	.comm	map_mins,8,8
	.comm	map_maxs,8,8
	.comm	cancelconversion,8,8
	.comm	PLANENUM_LEAF,4,4
	.comm	CONTENTS_SOLID,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_ProcessWorldBrushes.c"
	.text
	.align	2
	.global	ProcessWorldBrushes
	.syntax unified
	.arm
	.fpu softvfp
	.type	ProcessWorldBrushes, %function
ProcessWorldBrushes:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, #0
	mov	r6, r0
	mov	r7, r1
	ldr	r3, .L11
	ldr	r1, .L11+4
	ldr	r3, [r3]
	mov	r5, r4
	ldr	r2, [r3]
	sub	r2, r2, #8
	str	r2, [r4]
	ldr	r2, [r3, #4]
	sub	r2, r2, #8
	str	r2, [r4, #4]
	ldr	r3, [r3, #8]
	sub	r3, r3, #8
	str	r3, [r4, #8]
	ldr	r3, [r1]
	ldr	r2, [r3]
	add	r2, r2, #8
	str	r2, [r4]
	ldr	r2, [r3, #4]
	add	r2, r2, #8
	str	r2, [r4, #4]
	ldr	r3, [r3, #8]
	add	r3, r3, #8
	str	r3, [r4, #8]
	bl	ResetBrushBSP
	mov	r3, r4
	mov	r2, r4
	mov	r1, r7
	mov	r0, r6
	bl	MakeBspBrushList
	subs	r3, r0, #0
	beq	.L8
	ldr	r2, .L11+8
	ldr	r2, [r2]
	cmp	r2, #0
	beq	.L9
.L4:
	ldr	r2, .L11+12
	mov	r0, r3
	ldr	r2, [r2]
	cmp	r2, #0
	bne	.L10
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r2, #0
	mov	r1, r2
	b	BrushBSP
.L9:
	bl	ChopBrushes
	mov	r3, r0
	b	.L4
.L8:
	bl	AllocNode
	ldr	r2, .L11+16
	ldr	r3, .L11+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [r0, #4]
	str	r3, [r0]
	mov	r5, r0
	bl	Tree_Alloc
	mov	r4, r0
	mov	r0, #0
	ldr	r1, [r4, #4]
	str	r5, [r4, #8]
	bl	VectorCopy
	ldr	r1, [r4]
	mov	r0, #0
	bl	VectorCopy
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r4, #0
	bl	FreeBrushList
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	map_mins
	.word	map_maxs
	.word	nocsg
	.word	cancelconversion
	.word	PLANENUM_LEAF
	.word	CONTENTS_SOLID
	.size	ProcessWorldBrushes, .-ProcessWorldBrushes
	.comm	nocsg,4,4
	.comm	map_mins,4,4
	.comm	map_maxs,4,4
	.comm	cancelconversion,4,4
	.comm	PLANENUM_LEAF,4,4
	.comm	CONTENTS_SOLID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
