	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q3_UnparseEntities             ## -- Begin function Q3_UnparseEntities
	.p2align	4, 0x90
_Q3_UnparseEntities:                    ## @Q3_UnparseEntities
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$2072, %rsp                     ## imm = 0x818
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_q3_dentdata@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movb	$0, (%rbx)
	movq	_num_entities@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	%rbx, %rax
	movq	%rbx, -2104(%rbp)               ## 8-byte Spill
	jle	LBB0_10
## %bb.1:
	xorl	%r15d, %r15d
	movq	_entities@GOTPCREL(%rip), %r14
	leaq	L_.str.1(%rip), %r13
	leaq	-2096(%rbp), %r12
	movq	-2104(%rbp), %rbx               ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_entities@GOTPCREL(%rip), %r14
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movq	_num_entities@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	(%r14), %rax
	cmpq	$0, (%rax,%r15,8)
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcat
	addq	$2, %rbx
	movq	(%r14), %rax
	movq	(%rax,%r15,8), %r14
	testq	%r14, %r14
	je	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rdx
	movq	8(%r14), %rcx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_sprintf
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_strcat
	movq	%r12, %rdi
	callq	_strlen
	cltq
	addq	%rax, %rbx
	movq	16(%r14), %r14
	testq	%r14, %r14
	jne	LBB0_4
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcat
	addq	$2, %rbx
	movq	_Q3_MAX_MAP_ENTSTRING@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	-2104(%rbp), %rax               ## 8-byte Folded Reload
	cmpq	%rax, %rbx
	jbe	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.3(%rip), %rdi
	callq	_Error
	jmp	LBB0_8
LBB0_10:
	subl	-2104(%rbp), %ebx               ## 4-byte Folded Reload
	incl	%ebx
	movq	_q3_entdatasize@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$2072, %rsp                     ## imm = 0x818
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_q3_dentdata,8,3                ## @q3_dentdata
	.comm	_num_entities,4,2               ## @num_entities
	.comm	_entities,8,3                   ## @entities
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"{\n"

L_.str.1:                               ## @.str.1
	.asciz	"\"%s\" \"%s\"\n"

L_.str.2:                               ## @.str.2
	.asciz	"}\n"

	.comm	_Q3_MAX_MAP_ENTSTRING,4,2       ## @Q3_MAX_MAP_ENTSTRING
L_.str.3:                               ## @.str.3
	.asciz	"Entity text too long"

	.comm	_q3_entdatasize,4,2             ## @q3_entdatasize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q3_UnparseEntities             ; -- Begin function Q3_UnparseEntities
	.p2align	2
_Q3_UnparseEntities:                    ; @Q3_UnparseEntities
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #2064
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _q3_dentdata@GOTPAGE
Lloh4:
	ldr	x8, [x8, _q3_dentdata@GOTPAGEOFF]
Lloh5:
	ldr	x24, [x8]
	strb	wzr, [x24]
Lloh6:
	adrp	x25, _num_entities@GOTPAGE
Lloh7:
	ldr	x25, [x25, _num_entities@GOTPAGEOFF]
	ldr	w8, [x25]
	mov	x23, x24
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x26, #0
Lloh8:
	adrp	x27, _entities@GOTPAGE
Lloh9:
	ldr	x27, [x27, _entities@GOTPAGEOFF]
Lloh10:
	adrp	x19, l_.str@PAGE
Lloh11:
	add	x19, x19, l_.str@PAGEOFF
Lloh12:
	adrp	x20, l_.str.2@PAGE
Lloh13:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh14:
	adrp	x28, _Q3_MAX_MAP_ENTSTRING@GOTPAGE
Lloh15:
	ldr	x28, [x28, _Q3_MAX_MAP_ENTSTRING@GOTPAGEOFF]
	mov	x23, x24
Lloh16:
	adrp	x22, l_.str.1@PAGE
Lloh17:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x25]
	cmp	x26, x8
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x8, [x27]
	ldr	x8, [x8, x26, lsl #3]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	mov	x1, x19
	bl	_strcat
	add	x23, x23, #2
	ldr	x8, [x27]
	ldr	x21, [x8, x26, lsl #3]
	cbz	x21, LBB0_6
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x2, x3, [x21]
	mov	x0, sp
	mov	x1, x22
	bl	_sprintf
	mov	x1, sp
	mov	x0, x23
	bl	_strcat
	mov	x0, sp
	bl	_strlen
	add	x23, x23, w0, sxtw
	ldr	x21, [x21, #16]
	cbnz	x21, LBB0_5
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	mov	x1, x20
	bl	_strcat
	add	x23, x23, #2
	ldrsw	x8, [x28]
	add	x8, x24, x8
	cmp	x23, x8
	b.ls	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_Error
	b	LBB0_2
LBB0_8:
	sub	w8, w23, w24
	add	w8, w8, #1
Lloh20:
	adrp	x9, _q3_entdatasize@GOTPAGE
Lloh21:
	ldr	x9, [x9, _q3_entdatasize@GOTPAGEOFF]
Lloh22:
	str	w8, [x9]
	ldur	x8, [x29, #-96]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	add	sp, sp, #2064
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_q3_dentdata,8,3                ; @q3_dentdata
	.comm	_num_entities,4,2               ; @num_entities
	.comm	_entities,8,3                   ; @entities
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"{\n"

l_.str.1:                               ; @.str.1
	.asciz	"\"%s\" \"%s\"\n"

l_.str.2:                               ; @.str.2
	.asciz	"}\n"

	.comm	_Q3_MAX_MAP_ENTSTRING,4,2       ; @Q3_MAX_MAP_ENTSTRING
l_.str.3:                               ; @.str.3
	.asciz	"Entity text too long"

	.comm	_q3_entdatasize,4,2             ; @q3_entdatasize
.subsections_via_symbols
