	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_KillVideo                      ## -- Begin function KillVideo
	.p2align	4, 0x90
_KillVideo:                             ## @KillVideo
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_IconSurface@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_SDL_FreeSurface
	movq	$0, (%rbx)
LBB0_2:
	movq	_inited@GOTPCREL(%rip), %rbx
	xorl	%ecx, %ecx
	testb	$1, (%rbx)
	movl	$0, %eax
	je	LBB0_6
## %bb.3:
	movq	_curbpp@GOTPCREL(%rip), %rax
	cmpl	$9, (%rax)
	jl	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_KillBlitToHigh
LBB0_5:
	movq	_SDL_INIT_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDL_QuitSubSystem
	movl	(%rbx), %ecx
	andl	$-2, %ecx
	movl	$1, %eax
LBB0_6:
	movl	%ecx, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IconSurface,8,3                ## @IconSurface
	.comm	_inited,4,2                     ## @inited
	.comm	_curbpp,4,2                     ## @curbpp
	.comm	_SDL_INIT_VIDEO,4,2             ## @SDL_INIT_VIDEO
	.comm	_usingogl,8,3                   ## @usingogl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_KillVideo                      ; -- Begin function KillVideo
	.p2align	2
_KillVideo:                             ; @KillVideo
	.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
Lloh0:
	adrp	x19, _IconSurface@GOTPAGE
Lloh1:
	ldr	x19, [x19, _IconSurface@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_SDL_FreeSurface
	str	xzr, [x19]
LBB0_2:
Lloh2:
	adrp	x19, _inited@GOTPAGE
Lloh3:
	ldr	x19, [x19, _inited@GOTPAGEOFF]
	ldrb	w8, [x19]
	tbnz	w8, #0, LBB0_4
; %bb.3:
	mov	w8, #0
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh4:
	adrp	x8, _curbpp@GOTPAGE
Lloh5:
	ldr	x8, [x8, _curbpp@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, #9
	b.lt	LBB0_6
; %bb.5:
	bl	_KillBlitToHigh
LBB0_6:
Lloh7:
	adrp	x8, _SDL_INIT_VIDEO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SDL_INIT_VIDEO@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_SDL_QuitSubSystem
	ldr	w8, [x19]
	and	w8, w8, #0xfffffffe
	mov	w0, #1
LBB0_7:
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IconSurface,8,3                ; @IconSurface
	.comm	_inited,4,2                     ; @inited
	.comm	_curbpp,4,2                     ; @curbpp
	.comm	_SDL_INIT_VIDEO,4,2             ; @SDL_INIT_VIDEO
	.comm	_usingogl,8,3                   ; @usingogl
.subsections_via_symbols
