	.file	"extr_map_q3.c_Q3_ParseBSPEntity.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"model"
.LC1:
	.string	"origin"
.LC2:
	.string	"classname"
.LC3:
	.string	"worldspawn"
.LC4:
	.string	"func_areaportal"
	.text
	.p2align 4
	.globl	Q3_ParseBSPEntity
	.type	Q3_ParseBSPEntity, @function
Q3_ParseBSPEntity:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR entities[rip]
	movsx	rdi, edi
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	lea	rsi, .LC0[rip]
	lea	rdx, [rdi+rdi*4]
	lea	rbx, [rax+rdx*8]
	mov	rax, QWORD PTR nummapbrushes[rip]
	mov	QWORD PTR 24[rbx], 0
	mov	rdi, rbx
	mov	QWORD PTR 32[rbx], rax
	mov	DWORD PTR [rbx], -1
	call	ValueForKey@PLT
	test	rax, rax
	je	.L2
	cmp	BYTE PTR [rax], 42
	je	.L12
.L2:
	mov	edx, DWORD PTR 16[rbx]
	lea	rsi, .LC1[rip]
	mov	rdi, rbx
	call	GetVectorForKey@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, rbx
	call	ValueForKey@PLT
	mov	ecx, 11
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	jne	.L3
	mov	DWORD PTR [rbx], 0
.L4:
	mov	rdi, rbx
	call	Q3_ParseBSPBrushes@PLT
.L5:
	lea	rsi, .LC2[rip]
	mov	rdi, rbx
	call	ValueForKey@PLT
	mov	ecx, 16
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	jne	.L6
	mov	rax, QWORD PTR c_areaportals[rip]
	add	rax, 1
	mov	QWORD PTR c_areaportals[rip], rax
	mov	QWORD PTR 8[rbx], rax
.L6:
	mov	eax, 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	js	.L5
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdi, 1[rax]
	call	atoi@PLT
	mov	DWORD PTR [rbx], eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	Q3_ParseBSPEntity, .-Q3_ParseBSPEntity
	.comm	nummapbrushsides,4,4
	.comm	nummapbrushes,8,8
	.comm	entities,8,8
	.comm	c_areaportals,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_q3.c_Q3_ParseBSPEntity.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"model\000"
	.align	2
.LC1:
	.ascii	"origin\000"
	.align	2
.LC2:
	.ascii	"classname\000"
	.align	2
.LC3:
	.ascii	"worldspawn\000"
	.align	2
.LC4:
	.ascii	"func_areaportal\000"
	.text
	.align	2
	.global	Q3_ParseBSPEntity
	.syntax unified
	.arm
	.fpu softvfp
	.type	Q3_ParseBSPEntity, %function
Q3_ParseBSPEntity:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, #0
	mvn	r3, #0
	ldr	ip, .L14
	ldr	r1, .L14+4
	push	{r4, r5, r6, lr}
	ldr	r6, [ip]
	ldr	r1, [r1]
	add	r4, r0, r0, lsl #2
	add	r5, r6, r4, lsl #2
	lsl	r4, r4, #2
	str	r1, [r5, #16]
	str	r2, [r5, #12]
	mov	r0, r5
	ldr	r1, .L14+8
	str	r3, [r6, r4]
	bl	ValueForKey
	cmp	r0, #0
	beq	.L2
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #42
	beq	.L12
.L2:
	ldr	r2, [r5, #8]
	ldr	r1, .L14+12
	mov	r0, r5
	bl	GetVectorForKey
	ldr	r1, .L14+16
	mov	r0, r5
	bl	ValueForKey
	mov	r1, r0
	ldr	r0, .L14+20
	bl	strcmp
	cmp	r0, #0
	streq	r0, [r6, r4]
	bne	.L13
.L4:
	mov	r0, r5
	bl	Q3_ParseBSPBrushes
.L5:
	mov	r0, r5
	ldr	r1, .L14+16
	bl	ValueForKey
	mov	r1, r0
	ldr	r0, .L14+24
	bl	strcmp
	cmp	r0, #0
	ldreq	r2, .L14+28
	mov	r0, #1
	ldreq	r3, [r2]
	addeq	r3, r3, #1
	streq	r3, [r2]
	streq	r3, [r5, #4]
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r3, [r6, r4]
	cmp	r3, #0
	blt	.L5
	b	.L4
.L12:
	add	r0, r0, #1
	bl	atoi
	str	r0, [r6, r4]
	b	.L2
.L15:
	.align	2
.L14:
	.word	entities
	.word	nummapbrushes
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	c_areaportals
	.size	Q3_ParseBSPEntity, .-Q3_ParseBSPEntity
	.comm	nummapbrushsides,4,4
	.comm	nummapbrushes,4,4
	.comm	entities,4,4
	.comm	c_areaportals,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
