	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OnlyEnts                       ## -- Begin function OnlyEnts
	.p2align	4, 0x90
_OnlyEnts:                              ## @OnlyEnts
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_source@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	leaq	-1040(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sprintf
	movq	%rbx, %rdi
	callq	_LoadBSPFile
	movq	_num_entities@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LoadMapFile
	xorl	%eax, %eax
	callq	_SetModelNumbers
	xorl	%eax, %eax
	callq	_SetLightStyles
	xorl	%eax, %eax
	callq	_UnparseEntities
	movq	%rbx, %rdi
	callq	_WriteBSPFile
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s.bsp"

	.comm	_source,8,3                     ## @source
	.comm	_num_entities,8,3               ## @num_entities
	.comm	_name,4,2                       ## @name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OnlyEnts                       ; -- Begin function OnlyEnts
	.p2align	2
_OnlyEnts:                              ; @OnlyEnts
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w27, -24
	.cfi_offset w28, -32
	sub	sp, sp, #1040
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _source@GOTPAGE
Lloh4:
	ldr	x8, [x8, _source@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
	add	x0, sp, #8
	bl	_LoadBSPFile
Lloh8:
	adrp	x8, _num_entities@GOTPAGE
Lloh9:
	ldr	x8, [x8, _num_entities@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
Lloh11:
	adrp	x8, _name@GOTPAGE
Lloh12:
	ldr	x8, [x8, _name@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_LoadMapFile
	bl	_SetModelNumbers
	bl	_SetLightStyles
	bl	_UnparseEntities
	add	x0, sp, #8
	bl	_WriteBSPFile
	ldur	x8, [x29, #-24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s.bsp"

	.comm	_source,8,3                     ; @source
	.comm	_num_entities,8,3               ; @num_entities
	.comm	_name,4,2                       ; @name
.subsections_via_symbols
