	.file	"extr_sdl-video.c_KillVideo.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	KillVideo
	.type	KillVideo, @function
KillVideo:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdi, QWORD PTR IconSurface[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	test	rdi, rdi
	jne	.L11
.L2:
	mov	r12d, DWORD PTR inited[rip]
	and	r12d, 1
	jne	.L12
	mov	DWORD PTR inited[rip], 0
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	cmp	DWORD PTR curbpp[rip], 8
	jg	.L13
.L4:
	mov	edi, DWORD PTR SDL_INIT_VIDEO[rip]
	call	SDL_QuitSubSystem@PLT
	mov	eax, r12d
	and	DWORD PTR inited[rip], -2
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	call	SDL_FreeSurface@PLT
	mov	QWORD PTR IconSurface[rip], 0
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	xor	eax, eax
	call	KillBlitToHigh@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	KillVideo, .-KillVideo
	.comm	usingogl,8,8
	.comm	inited,4,4
	.comm	curbpp,4,4
	.comm	SDL_INIT_VIDEO,4,4
	.comm	IconSurface,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sdl-video.c_KillVideo.c"
	.text
	.align	2
	.global	KillVideo
	.syntax unified
	.arm
	.fpu softvfp
	.type	KillVideo, %function
KillVideo:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L14
	ldr	r0, [r4]
	cmp	r0, #0
	bne	.L11
.L2:
	ldr	r5, .L14+4
	ldr	r0, [r5]
	ands	r4, r0, #1
	streq	r4, [r5]
	bne	.L12
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L14+8
	ldr	r3, [r3]
	cmp	r3, #8
	bgt	.L13
.L4:
	ldr	r3, .L14+12
	ldr	r0, [r3]
	bl	SDL_QuitSubSystem
	ldr	r3, [r5]
	mov	r0, r4
	bic	r3, r3, #1
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L11:
	bl	SDL_FreeSurface
	mov	r3, #0
	str	r3, [r4]
	b	.L2
.L13:
	bl	KillBlitToHigh
	b	.L4
.L15:
	.align	2
.L14:
	.word	IconSurface
	.word	inited
	.word	curbpp
	.word	SDL_INIT_VIDEO
	.size	KillVideo, .-KillVideo
	.comm	usingogl,4,4
	.comm	inited,4,4
	.comm	curbpp,4,4
	.comm	SDL_INIT_VIDEO,4,4
	.comm	IconSurface,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
