	.file	"extr_l_bsp_q3.c_Q3_UnparseEntities.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"{\n"
.LC1:
	.string	"\"%s\" \"%s\"\n"
.LC2:
	.string	"}\n"
.LC3:
	.string	"Entity text too long"
	.text
	.p2align 4
	.globl	Q3_UnparseEntities
	.type	Q3_UnparseEntities, @function
Q3_UnparseEntities:
.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
	sub	rsp, 2072
	.cfi_def_cfa_offset 2128
	mov	r14, QWORD PTR q3_dentdata[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 2056[rsp], rax
	xor	eax, eax
	mov	BYTE PTR [r14], 0
	mov	eax, DWORD PTR num_entities[rip]
	test	eax, eax
	jle	.L8
	mov	rbp, r14
	xor	r12d, r12d
	lea	r13, .LC1[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	add	r12, 1
	cmp	DWORD PTR num_entities[rip], r12d
	jle	.L16
.L6:
	mov	rax, QWORD PTR entities[rip]
	cmp	QWORD PTR [rax+r12*8], 0
	je	.L3
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	add	rbp, 2
	call	strcat@PLT
	mov	rax, QWORD PTR entities[rip]
	mov	rbx, QWORD PTR [rax+r12*8]
	test	rbx, rbx
	je	.L4
	mov	r15, rsp
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rcx, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR [rbx]
	mov	rsi, r13
	mov	rdi, r15
	call	sprintf@PLT
	mov	rdi, rbp
	mov	rsi, r15
	call	strcat@PLT
	mov	rdi, r15
	call	strlen@PLT
	mov	rbx, QWORD PTR 16[rbx]
	cdqe
	add	rbp, rax
	test	rbx, rbx
	jne	.L5
.L4:
	mov	rdi, rbp
	lea	rsi, .LC2[rip]
	add	rbp, 2
	call	strcat@PLT
	movsx	rax, DWORD PTR Q3_MAX_MAP_ENTSTRING[rip]
	add	rax, r14
	cmp	rbp, rax
	jbe	.L3
	lea	rdi, .LC3[rip]
	add	r12, 1
	call	Error@PLT
	cmp	DWORD PTR num_entities[rip], r12d
	jg	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	sub	rbp, r14
	add	ebp, 1
.L2:
	mov	DWORD PTR q3_entdatasize[rip], ebp
	mov	rax, QWORD PTR 2056[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 2072
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L8:
	.cfi_restore_state
	mov	ebp, 1
	jmp	.L2
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	Q3_UnparseEntities, .-Q3_UnparseEntities
	.comm	q3_entdatasize,4,4
	.comm	q3_dentdata,8,8
	.comm	num_entities,4,4
	.comm	entities,8,8
	.comm	Q3_MAX_MAP_ENTSTRING,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_l_bsp_q3.c_Q3_UnparseEntities.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"{\012\000"
	.align	2
.LC1:
	.ascii	"\"%s\" \"%s\"\012\000"
	.align	2
.LC2:
	.ascii	"}\012\000"
	.align	2
.LC3:
	.ascii	"Entity text too long\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Q3_UnparseEntities
	.syntax unified
	.arm
	.fpu softvfp
	.type	Q3_UnparseEntities, %function
Q3_UnparseEntities:
	@ args = 0, pretend = 0, frame = 2064
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, #0
	ldr	r3, .L21
	sub	sp, sp, #2064
	ldr	r5, [r3]
	sub	sp, sp, #4
	ldr	r3, .L21+4
	ldr	r9, .L21+8
	str	r5, [sp, #4]
	ldr	r3, [r3]
	str	r3, [sp, #2060]
	mov	r3,#0
	strb	r6, [r5]
	ldr	r3, [r9]
	cmp	r3, r6
	ble	.L8
	ldr	r8, .L21+12
	ldr	fp, .L21+16
	ldr	r10, .L21+20
	ldr	r7, .L21+24
	b	.L6
.L3:
	ldr	r3, [r9]
	add	r6, r6, #1
	cmp	r3, r6
	ble	.L19
.L6:
	ldr	r3, [r8]
	ldr	r3, [r3, r6, lsl #2]
	cmp	r3, #0
	beq	.L3
	mov	r0, r5
	bl	strlen
	mov	r2, #3
	add	r0, r5, r0
	mov	r1, fp
	bl	memcpy
	ldr	r3, [r8]
	add	r5, r5, #2
	ldr	r4, [r3, r6, lsl #2]
	cmp	r4, #0
	beq	.L4
.L5:
	ldm	r4, {r2, r3}
	mov	r1, r7
	add	r0, sp, #12
	bl	sprintf
	mov	r0, r5
	add	r1, sp, #12
	bl	strcat
	add	r0, sp, #12
	bl	strlen
	ldr	r4, [r4, #8]
	add	r5, r5, r0
	cmp	r4, #0
	bne	.L5
.L4:
	mov	r0, r5
	bl	strlen
	mov	r2, #3
	add	r0, r5, r0
	ldr	r1, .L21+28
	bl	memcpy
	ldr	r3, [r10]
	ldr	r2, [sp, #4]
	add	r5, r5, #2
	add	r3, r2, r3
	cmp	r5, r3
	bls	.L3
	ldr	r0, .L21+32
	bl	Error
	ldr	r3, [r9]
	add	r6, r6, #1
	cmp	r3, r6
	bgt	.L6
.L19:
	ldr	r3, [sp, #4]
	sub	r5, r5, r3
	add	r5, r5, #1
.L2:
	ldr	r3, .L21+36
	str	r5, [r3]
	ldr	r3, .L21+4
	ldr	r2, [r3]
	ldr	r3, [sp, #2060]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #2064
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r5, #1
	b	.L2
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	q3_dentdata
	.word	.LC4
	.word	num_entities
	.word	entities
	.word	.LC0
	.word	Q3_MAX_MAP_ENTSTRING
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	q3_entdatasize
	.size	Q3_UnparseEntities, .-Q3_UnparseEntities
	.comm	q3_entdatasize,4,4
	.comm	q3_dentdata,4,4
	.comm	num_entities,4,4
	.comm	entities,4,4
	.comm	Q3_MAX_MAP_ENTSTRING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
