	.file	"extr_sdl_gl_ctx.c_sdl_ctx_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"[SDL_GL] SDL %i.%i.%i gfx context driver initialized.\n"
	.align 8
.LC1:
	.string	"[SDL_GL]: Failed to initialize SDL gfx context driver: %s\n"
	.text
	.p2align 4
	.type	sdl_ctx_init, @function
sdl_ctx_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, 1
	mov	edi, 1
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	calloc@PLT
	test	rax, rax
	je	.L1
	xor	edi, edi
	mov	rbp, rax
	mov	r12, rax
	call	SDL_WasInit@PLT
	mov	edi, DWORD PTR SDL_INIT_VIDEO[rip]
	test	rax, rax
	je	.L10
	call	SDL_InitSubSystem@PLT
	test	rax, rax
	js	.L4
.L5:
	mov	ecx, DWORD PTR SDL_PATCHLEVEL[rip]
	mov	edx, DWORD PTR SDL_MINOR_VERSION[rip]
	lea	rdi, .LC0[rip]
	mov	esi, DWORD PTR SDL_MAJOR_VERSION[rip]
	call	RARCH_LOG@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	call	SDL_Init@PLT
	test	rax, rax
	jns	.L5
.L4:
	xor	eax, eax
	xor	r12d, r12d
	call	SDL_GetError@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	call	RARCH_WARN@PLT
	mov	rdi, rbp
	call	sdl_ctx_destroy_resources@PLT
	mov	rdi, rbp
	call	free@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	sdl_ctx_init, .-sdl_ctx_init
	.comm	SDL_PATCHLEVEL,4,4
	.comm	SDL_MINOR_VERSION,4,4
	.comm	SDL_MAJOR_VERSION,4,4
	.comm	SDL_INIT_VIDEO,4,4
	.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_gl_ctx.c_sdl_ctx_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[SDL_GL] SDL %i.%i.%i gfx context driver initialize"
	.ascii	"d.\012\000"
	.align	2
.LC1:
	.ascii	"[SDL_GL]: Failed to initialize SDL gfx context driv"
	.ascii	"er: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sdl_ctx_init, %function
sdl_ctx_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r1, #1
	push	{r4, r5, r6, lr}
	mov	r0, r1
	bl	calloc
	subs	r4, r0, #0
	beq	.L1
	mov	r5, r0
	mov	r0, #0
	bl	SDL_WasInit
	ldr	r3, .L10
	cmp	r0, #0
	ldr	r0, [r3]
	beq	.L9
	bl	SDL_InitSubSystem
	cmp	r0, #0
	blt	.L4
.L5:
	ldr	r3, .L10+4
	ldr	r2, .L10+8
	ldr	r1, .L10+12
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, .L10+16
	bl	RARCH_LOG
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L9:
	bl	SDL_Init
	cmp	r0, #0
	bge	.L5
.L4:
	bl	SDL_GetError
	mov	r4, #0
	mov	r1, r0
	ldr	r0, .L10+20
	bl	RARCH_WARN
	mov	r0, r5
	bl	sdl_ctx_destroy_resources
	mov	r0, r5
	bl	free
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	SDL_INIT_VIDEO
	.word	SDL_PATCHLEVEL
	.word	SDL_MINOR_VERSION
	.word	SDL_MAJOR_VERSION
	.word	.LC0
	.word	.LC1
	.size	sdl_ctx_init, .-sdl_ctx_init
	.comm	SDL_PATCHLEVEL,4,4
	.comm	SDL_MINOR_VERSION,4,4
	.comm	SDL_MAJOR_VERSION,4,4
	.comm	SDL_INIT_VIDEO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
