	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RE_Shutdown                    ## -- Begin function RE_Shutdown
	.p2align	4, 0x90
_RE_Shutdown:                           ## @RE_Shutdown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_ri@GOTPCREL(%rip), %rbx
	movq	_PRINT_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	*8(%rbx)
	leaq	L_.str.1(%rip), %rdi
	callq	*(%rbx)
	leaq	L_.str.2(%rip), %rdi
	callq	*(%rbx)
	leaq	L_.str.3(%rip), %rdi
	callq	*(%rbx)
	leaq	L_.str.4(%rip), %rdi
	callq	*(%rbx)
	leaq	L_.str.5(%rip), %rdi
	callq	*(%rbx)
	leaq	L_.str.6(%rip), %rdi
	callq	*(%rbx)
	leaq	L_.str.7(%rip), %rdi
	callq	*(%rbx)
	leaq	L_.str.8(%rip), %rdi
	callq	*(%rbx)
	leaq	L_.str.9(%rip), %rdi
	callq	*(%rbx)
	movq	_tr@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_R_SyncRenderThread
	xorl	%eax, %eax
	callq	_R_ShutdownCommandBuffers
	xorl	%eax, %eax
	callq	_R_DeleteTextures
LBB0_2:
	xorl	%eax, %eax
	callq	_R_DoneFreeType
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_GLimp_Shutdown
LBB0_4:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ri,16,3                        ## @ri
	.comm	_PRINT_ALL,4,2                  ## @PRINT_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RE_Shutdown( %i )\n"

L_.str.1:                               ## @.str.1
	.asciz	"modellist"

L_.str.2:                               ## @.str.2
	.asciz	"screenshotJPEG"

L_.str.3:                               ## @.str.3
	.asciz	"screenshot"

L_.str.4:                               ## @.str.4
	.asciz	"imagelist"

L_.str.5:                               ## @.str.5
	.asciz	"shaderlist"

L_.str.6:                               ## @.str.6
	.asciz	"skinlist"

L_.str.7:                               ## @.str.7
	.asciz	"gfxinfo"

L_.str.8:                               ## @.str.8
	.asciz	"modelist"

L_.str.9:                               ## @.str.9
	.asciz	"shaderstate"

	.comm	_tr,8,3                         ## @tr
	.comm	_qfalse,8,3                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RE_Shutdown                    ; -- Begin function RE_Shutdown
	.p2align	2
_RE_Shutdown:                           ; @RE_Shutdown
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [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 w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _ri@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ri@GOTPAGEOFF]
	ldr	x8, [x20, #8]
Lloh2:
	adrp	x9, _PRINT_ALL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PRINT_ALL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	blr	x8
	ldr	x8, [x20]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	blr	x8
	ldr	x8, [x20]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	blr	x8
	ldr	x8, [x20]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	blr	x8
	ldr	x8, [x20]
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	blr	x8
	ldr	x8, [x20]
Lloh15:
	adrp	x0, l_.str.5@PAGE
Lloh16:
	add	x0, x0, l_.str.5@PAGEOFF
	blr	x8
	ldr	x8, [x20]
Lloh17:
	adrp	x0, l_.str.6@PAGE
Lloh18:
	add	x0, x0, l_.str.6@PAGEOFF
	blr	x8
	ldr	x8, [x20]
Lloh19:
	adrp	x0, l_.str.7@PAGE
Lloh20:
	add	x0, x0, l_.str.7@PAGEOFF
	blr	x8
	ldr	x8, [x20]
Lloh21:
	adrp	x0, l_.str.8@PAGE
Lloh22:
	add	x0, x0, l_.str.8@PAGEOFF
	blr	x8
	ldr	x8, [x20]
Lloh23:
	adrp	x0, l_.str.9@PAGE
Lloh24:
	add	x0, x0, l_.str.9@PAGEOFF
	blr	x8
Lloh25:
	adrp	x20, _tr@GOTPAGE
Lloh26:
	ldr	x20, [x20, _tr@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_R_SyncRenderThread
	bl	_R_ShutdownCommandBuffers
	bl	_R_DeleteTextures
LBB0_2:
	bl	_R_DoneFreeType
	cbz	x19, LBB0_4
; %bb.3:
	bl	_GLimp_Shutdown
LBB0_4:
Lloh27:
	adrp	x8, _qfalse@GOTPAGE
Lloh28:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	str	x8, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ri,16,3                        ; @ri
	.comm	_PRINT_ALL,4,2                  ; @PRINT_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RE_Shutdown( %i )\n"

l_.str.1:                               ; @.str.1
	.asciz	"modellist"

l_.str.2:                               ; @.str.2
	.asciz	"screenshotJPEG"

l_.str.3:                               ; @.str.3
	.asciz	"screenshot"

l_.str.4:                               ; @.str.4
	.asciz	"imagelist"

l_.str.5:                               ; @.str.5
	.asciz	"shaderlist"

l_.str.6:                               ; @.str.6
	.asciz	"skinlist"

l_.str.7:                               ; @.str.7
	.asciz	"gfxinfo"

l_.str.8:                               ; @.str.8
	.asciz	"modelist"

l_.str.9:                               ; @.str.9
	.asciz	"shaderstate"

	.comm	_tr,8,3                         ; @tr
	.comm	_qfalse,8,3                     ; @qfalse
.subsections_via_symbols
