	.file	"extr_map_hl.c_HL_CreateBrushesFromBSP.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"brush size: %5.0f,%5.0f,%5.0f to %5.0f,%5.0f,%5.0f\n"
	.text
	.p2align 4
	.globl	HL_CreateBrushesFromBSP
	.type	HL_CreateBrushesFromBSP, @function
HL_CreateBrushesFromBSP:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR hl_dmodels[rip]
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movsx	r13, edi
	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	rsi, r12
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rax, QWORD PTR [rax+r13*8]
	mov	rbx, r13
	mov	rbp, QWORD PTR [rax]
	sal	rbp, 4
	add	rbp, QWORD PTR hl_dnodes[rip]
	mov	rdi, QWORD PTR 0[rbp]
	call	VectorCopy@PLT
	mov	rdi, QWORD PTR 8[rbp]
	xor	ebp, ebp
	mov	rsi, rbp
	call	VectorCopy@PLT
	xor	eax, eax
.L2:
	sub	DWORD PTR [rax], 8
	add	DWORD PTR [rax], 8
	add	rax, 4
	cmp	rax, 12
	jne	.L2
	mov	rdx, QWORD PTR map_maxs[rip]
	mov	rsi, QWORD PTR map_mins[rip]
	xor	r12d, r12d
	xor	ebp, ebp
	mov	rdi, r12
	call	AddPointToBounds@PLT
	mov	rdx, QWORD PTR map_maxs[rip]
	mov	rsi, QWORD PTR map_mins[rip]
	mov	rdi, rbp
	call	AddPointToBounds@PLT
	test	ebx, ebx
	je	.L7
.L3:
	xor	ebp, ebp
	xor	r12d, r12d
	mov	rsi, rbp
	mov	rdi, r12
	call	BrushFromBounds@PLT
	mov	rdi, r12
	mov	rsi, QWORD PTR [rax]
	mov	r14, rax
	call	VectorCopy@PLT
	mov	rsi, QWORD PTR 8[r14]
	mov	rdi, rbp
	call	VectorCopy@PLT
	mov	rax, QWORD PTR hl_dmodels[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r14
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	mov	rax, QWORD PTR [rax+r13*8]
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	mov	rsi, QWORD PTR [rax]
	jmp	HL_CreateBrushes_r@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdx, QWORD PTR map_maxs[rip]
	mov	rax, QWORD PTR map_mins[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	lea	rdi, .LC0[rip]
	mov	esi, DWORD PTR 8[rdx]
	mov	r9d, DWORD PTR 4[rdx]
	mov	r10d, DWORD PTR 4[rax]
	mov	ecx, DWORD PTR 8[rax]
	push	rsi
	.cfi_def_cfa_offset 64
	mov	r8d, DWORD PTR [rdx]
	mov	esi, DWORD PTR [rax]
	mov	edx, r10d
	call	Log_Print@PLT
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	HL_CreateBrushesFromBSP, .-HL_CreateBrushesFromBSP
	.comm	map_mins,8,8
	.comm	map_maxs,8,8
	.comm	hl_numbrushes,8,8
	.comm	hl_dnodes,8,8
	.comm	hl_dmodels,8,8
	.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_hl.c_HL_CreateBrushesFromBSP.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"brush size: %5.0f,%5.0f,%5.0f to %5.0f,%5.0f,%5.0f\012"
	.ascii	"\000"
	.text
	.align	2
	.global	HL_CreateBrushesFromBSP
	.syntax unified
	.arm
	.fpu softvfp
	.type	HL_CreateBrushesFromBSP, %function
HL_CreateBrushesFromBSP:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, #0
	ldr	r5, .L8
	ldr	r3, .L8+4
	ldr	r2, [r5]
	ldr	r3, [r3]
	ldr	r2, [r2, r0, lsl #2]
	mov	r1, r7
	ldr	r2, [r2]
	sub	sp, sp, #16
	add	r8, r3, r2, lsl #3
	mov	r4, r0
	ldr	r0, [r3, r2, lsl #3]
	bl	VectorCopy
	mov	r1, r7
	ldr	r0, [r8, #4]
	bl	VectorCopy
	sub	r1, r7, #4
	mov	r3, r1
	add	r7, r7, #8
.L2:
	ldr	ip, [r3, #4]!
	ldr	r2, [r1, #4]!
	sub	ip, ip, #8
	add	r2, r2, #8
	cmp	r3, r7
	str	ip, [r3]
	str	r2, [r1]
	bne	.L2
	ldr	r7, .L8+8
	ldr	r6, .L8+12
	ldr	r2, [r7]
	ldr	r1, [r6]
	mov	r0, #0
	bl	AddPointToBounds
	mov	r0, #0
	ldr	r2, [r7]
	ldr	r1, [r6]
	bl	AddPointToBounds
	cmp	r4, #0
	beq	.L7
.L3:
	mov	r6, #0
	mov	r1, r6
	mov	r0, r6
	bl	BrushFromBounds
	mov	r8, r0
	mov	r0, r6
	ldr	r1, [r8]
	bl	VectorCopy
	ldr	r1, [r8, #4]
	mov	r0, r6
	bl	VectorCopy
	mov	r0, r8
	ldr	r3, [r5]
	ldr	r3, [r3, r4, lsl #2]
	ldr	r1, [r3]
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	HL_CreateBrushes_r
.L7:
	ldr	r0, [r7]
	ldr	r1, [r6]
	ldr	ip, [r0, #8]
	ldm	r1, {r1, r2, r3}
	str	ip, [sp, #8]
	ldr	ip, [r0, #4]
	str	ip, [sp, #4]
	ldr	r0, [r0]
	str	r0, [sp]
	ldr	r0, .L8+16
	bl	Log_Print
	b	.L3
.L9:
	.align	2
.L8:
	.word	hl_dmodels
	.word	hl_dnodes
	.word	map_maxs
	.word	map_mins
	.word	.LC0
	.size	HL_CreateBrushesFromBSP, .-HL_CreateBrushesFromBSP
	.comm	map_mins,4,4
	.comm	map_maxs,4,4
	.comm	hl_numbrushes,4,4
	.comm	hl_dnodes,4,4
	.comm	hl_dmodels,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
