	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_video_Shutdown              ## -- Begin function gx_video_Shutdown
	.p2align	4, 0x90
_gx_video_Shutdown:                     ## @gx_video_Shutdown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_texturemem@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_free
LBB0_2:
	movq	_screenshot@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_free
LBB0_4:
	xorl	%eax, %eax
	callq	_FONT_Shutdown
	movq	_vmode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_xfb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_whichfb@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	_COLOR_BLACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_VIDEO_ClearFrameBuffer
	xorl	%eax, %eax
	callq	_VIDEO_Flush
	xorl	%eax, %eax
	popq	%rbp
	jmp	_VIDEO_WaitVSync                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_texturemem,8,3                 ## @texturemem
	.comm	_screenshot,8,3                 ## @screenshot
	.comm	_vmode,4,2                      ## @vmode
	.comm	_xfb,8,3                        ## @xfb
	.comm	_whichfb,8,3                    ## @whichfb
	.comm	_COLOR_BLACK,4,2                ## @COLOR_BLACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_video_Shutdown              ; -- Begin function gx_video_Shutdown
	.p2align	2
_gx_video_Shutdown:                     ; @gx_video_Shutdown
	.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
Lloh0:
	adrp	x8, _texturemem@GOTPAGE
Lloh1:
	ldr	x8, [x8, _texturemem@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_free
LBB0_2:
Lloh3:
	adrp	x8, _screenshot@GOTPAGE
Lloh4:
	ldr	x8, [x8, _screenshot@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_free
LBB0_4:
	bl	_FONT_Shutdown
Lloh6:
	adrp	x8, _vmode@GOTPAGE
Lloh7:
	ldr	x8, [x8, _vmode@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _xfb@GOTPAGE
Lloh10:
	ldr	x8, [x8, _xfb@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _whichfb@GOTPAGE
Lloh13:
	ldr	x9, [x9, _whichfb@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
Lloh15:
	adrp	x8, _COLOR_BLACK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _COLOR_BLACK@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_VIDEO_ClearFrameBuffer
	bl	_VIDEO_Flush
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_VIDEO_WaitVSync
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_texturemem,8,3                 ; @texturemem
	.comm	_screenshot,8,3                 ; @screenshot
	.comm	_vmode,4,2                      ; @vmode
	.comm	_xfb,8,3                        ; @xfb
	.comm	_whichfb,8,3                    ; @whichfb
	.comm	_COLOR_BLACK,4,2                ; @COLOR_BLACK
.subsections_via_symbols
