	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UnparseEntities                ## -- Begin function UnparseEntities
	.p2align	4, 0x90
_UnparseEntities:                       ## @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
	pushq	%rax
	movl	$4120, %eax                     ## imm = 0x1018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.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	_dentdata@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movb	$0, (%rbx)
	movq	_num_entities@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	%rbx, %rax
	movq	%rbx, -4152(%rbp)               ## 8-byte Spill
	jle	LBB0_10
## %bb.1:
	xorl	%r14d, %r14d
	movq	_entities@GOTPCREL(%rip), %rcx
	movq	-4152(%rbp), %rbx               ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-4160(%rbp), %r14               ## 8-byte Reload
	movq	_entities@GOTPCREL(%rip), %rcx
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	_num_entities@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r14
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	(%rcx), %rax
	cmpq	$0, (%rax,%r14,8)
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	movq	%rcx, %r15
	callq	_strcat
	addq	$2, %rbx
	movq	(%r15), %rax
	movq	%r14, -4160(%rbp)               ## 8-byte Spill
	movq	(%rax,%r14,8), %r14
	testq	%r14, %r14
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-3120(%rbp), %r12
	leaq	-4144(%rbp), %r15
	leaq	-2096(%rbp), %r13
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%r14), %esi
	movq	%r12, %rdi
	callq	_strcpy
	movq	%r12, %rdi
	callq	_StripTrailing
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_strcpy
	movq	%r15, %rdi
	callq	_StripTrailing
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_sprintf
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_strcat
	movq	%r13, %rdi
	callq	_strlen
	cltq
	addq	%rax, %rbx
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcat
	addq	$2, %rbx
	movq	_MAX_MAP_ENTSTRING@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	-4152(%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	-4152(%rbp), %ebx               ## 4-byte Folded Reload
	incl	%ebx
	movq	_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	$4120, %rsp                     ## imm = 0x1018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_dentdata,8,3                   ## @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	_MAX_MAP_ENTSTRING,4,2          ## @MAX_MAP_ENTSTRING
L_.str.3:                               ## @.str.3
	.asciz	"Entity text too long"

	.comm	_entdatasize,4,2                ## @entdatasize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UnparseEntities                ; -- Begin function UnparseEntities
	.p2align	2
_UnparseEntities:                       ; @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
	mov	w9, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh5:
	adrp	x8, _dentdata@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dentdata@GOTPAGEOFF]
Lloh7:
	ldr	x24, [x8]
	strb	wzr, [x24]
Lloh8:
	adrp	x25, _num_entities@GOTPAGE
Lloh9:
	ldr	x25, [x25, _num_entities@GOTPAGEOFF]
	ldr	w8, [x25]
	mov	x23, x24
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x26, #0
Lloh10:
	adrp	x27, _entities@GOTPAGE
Lloh11:
	ldr	x27, [x27, _entities@GOTPAGEOFF]
Lloh12:
	adrp	x19, l_.str@PAGE
Lloh13:
	add	x19, x19, l_.str@PAGEOFF
Lloh14:
	adrp	x20, l_.str.2@PAGE
Lloh15:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh16:
	adrp	x28, _MAX_MAP_ENTSTRING@GOTPAGE
Lloh17:
	ldr	x28, [x28, _MAX_MAP_ENTSTRING@GOTPAGEOFF]
	mov	x23, x24
Lloh18:
	adrp	x22, l_.str.1@PAGE
Lloh19:
	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
	ldr	w1, [x21, #4]
	add	x0, sp, #1024
	bl	_strcpy
	add	x0, sp, #1024
	bl	_StripTrailing
	ldr	w1, [x21]
	mov	x0, sp
	bl	_strcpy
	mov	x0, sp
	bl	_StripTrailing
	add	x0, sp, #2048
	add	x2, sp, #1024
	mov	x3, sp
	mov	x1, x22
	bl	_sprintf
	add	x1, sp, #2048
	mov	x0, x23
	bl	_strcat
	add	x0, sp, #2048
	bl	_strlen
	add	x23, x23, w0, sxtw
	ldr	x21, [x21, #8]
	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
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_Error
	b	LBB0_2
LBB0_8:
	sub	w8, w23, w24
	add	w8, w8, #1
Lloh22:
	adrp	x9, _entdatasize@GOTPAGE
Lloh23:
	ldr	x9, [x9, _entdatasize@GOTPAGEOFF]
Lloh24:
	str	w8, [x9]
	ldur	x8, [x29, #-96]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	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	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_dentdata,8,3                   ; @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	_MAX_MAP_ENTSTRING,4,2          ; @MAX_MAP_ENTSTRING
l_.str.3:                               ; @.str.3
	.asciz	"Entity text too long"

	.comm	_entdatasize,4,2                ; @entdatasize
.subsections_via_symbols
