	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Hunk_Clear                     ## -- Begin function Hunk_Clear
	.p2align	4, 0x90
_Hunk_Clear:                            ## @Hunk_Clear
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	_CL_ShutdownCGame
	xorl	%eax, %eax
	callq	_CL_ShutdownUI
	xorl	%eax, %eax
	callq	_SV_ShutdownGameProgs
	xorl	%eax, %eax
	callq	_CIN_CloseAllVideos
	xorps	%xmm0, %xmm0
	movq	_hunk_low@GOTPCREL(%rip), %rax
	movups	%xmm0, (%rax)
	movups	%xmm0, 16(%rax)
	movq	_hunk_high@GOTPCREL(%rip), %rcx
	movups	%xmm0, (%rcx)
	movups	%xmm0, 16(%rcx)
	movq	_hunk_permanent@GOTPCREL(%rip), %rdx
	movq	%rax, (%rdx)
	movq	_hunk_temp@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	leaq	L_.str(%rip), %rdi
	callq	_Com_Printf
	xorl	%eax, %eax
	popq	%rbp
	jmp	_VM_Clear                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hunk_low,32,3                  ## @hunk_low
	.comm	_hunk_high,32,3                 ## @hunk_high
	.comm	_hunk_permanent,8,3             ## @hunk_permanent
	.comm	_hunk_temp,8,3                  ## @hunk_temp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hunk_Clear: reset the hunk ok\n"

	.comm	_hunkblocks,8,3                 ## @hunkblocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Hunk_Clear                     ; -- Begin function Hunk_Clear
	.p2align	2
_Hunk_Clear:                            ; @Hunk_Clear
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_CL_ShutdownCGame
	bl	_CL_ShutdownUI
	bl	_SV_ShutdownGameProgs
	bl	_CIN_CloseAllVideos
Lloh0:
	adrp	x8, _hunk_low@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hunk_low@GOTPAGEOFF]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x8]
Lloh2:
	adrp	x9, _hunk_high@GOTPAGE
Lloh3:
	ldr	x9, [x9, _hunk_high@GOTPAGEOFF]
	stp	q0, q0, [x9]
Lloh4:
	adrp	x10, _hunk_permanent@GOTPAGE
Lloh5:
	ldr	x10, [x10, _hunk_permanent@GOTPAGEOFF]
Lloh6:
	str	x8, [x10]
Lloh7:
	adrp	x8, _hunk_temp@GOTPAGE
Lloh8:
	ldr	x8, [x8, _hunk_temp@GOTPAGEOFF]
Lloh9:
	str	x9, [x8]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_Printf
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_VM_Clear
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_hunk_low,32,3                  ; @hunk_low
	.comm	_hunk_high,32,3                 ; @hunk_high
	.comm	_hunk_permanent,8,3             ; @hunk_permanent
	.comm	_hunk_temp,8,3                  ; @hunk_temp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hunk_Clear: reset the hunk ok\n"

	.comm	_hunkblocks,8,3                 ; @hunkblocks
.subsections_via_symbols
