	.file	"extr_provider.c_get_texture_memory.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_texture_memory, @function
get_texture_memory:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	ecx, ecx
	mov	r12, rsi
	lea	rdx, IID_IDirectDraw7[rip]
	sub	rsp, 64
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	rsi, 8[rsp]
	call	DirectDrawCreateEx@PLT
	mov	edi, eax
	call	SUCCEEDED@PLT
	test	rax, rax
	jne	.L13
.L2:
	mov	eax, DWORD PTR FALSE[rip]
.L1:
	mov	rdx, QWORD PTR 56[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L14
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rsp]
	xor	ecx, ecx
	mov	rdx, r12
	mov	eax, DWORD PTR DDSCAPS_LOCALVIDMEM[rip]
	lea	rsi, 16[rsp]
	or	eax, DWORD PTR DDSCAPS_VIDEOMEMORY[rip]
	mov	QWORD PTR 24[rsp], 0
	mov	DWORD PTR 16[rsp], eax
	mov	QWORD PTR 32[rsp], 0
	mov	QWORD PTR 40[rsp], 0
	call	IDirectDraw7_GetAvailableVidMem@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	r12d, eax
	call	IDirectDraw7_Release@PLT
	mov	edi, r12d
	call	SUCCEEDED@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR TRUE[rip]
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_texture_memory, .-get_texture_memory
	.comm	TRUE,4,4
	.comm	IID_IDirectDraw7,4,4
	.comm	FALSE,4,4
	.comm	DDSCAPS_VIDEOMEMORY,4,4
	.comm	DDSCAPS_LOCALVIDMEM,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_provider.c_get_texture_memory.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_texture_memory, %function
get_texture_memory:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	ip, .L15
	sub	sp, sp, #24
	mov	r3, #0
	ldr	r2, .L15+4
	mov	r4, r1
	mov	r1, sp
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	bl	DirectDrawCreateEx
	bl	SUCCEEDED
	cmp	r0, #0
	bne	.L13
.L2:
	ldr	r3, .L15+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #24
	@ sp needed
	pop	{r4, pc}
.L13:
	mov	r3, #0
	ldr	r1, .L15+12
	ldr	r2, .L15+16
	ldr	ip, [r1]
	ldr	r1, [r2]
	ldr	r0, [sp]
	orr	ip, ip, r1
	mov	r2, r4
	add	r1, sp, #4
	str	ip, [sp, #4]
	str	r3, [sp, #8]
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	bl	IDirectDraw7_GetAvailableVidMem
	mov	r4, r0
	ldr	r0, [sp]
	bl	IDirectDraw7_Release
	mov	r0, r4
	bl	SUCCEEDED
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L15+20
	ldr	r0, [r3]
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	IID_IDirectDraw7
	.word	FALSE
	.word	DDSCAPS_LOCALVIDMEM
	.word	DDSCAPS_VIDEOMEMORY
	.word	TRUE
	.size	get_texture_memory, .-get_texture_memory
	.comm	TRUE,4,4
	.comm	IID_IDirectDraw7,4,4
	.comm	FALSE,4,4
	.comm	DDSCAPS_VIDEOMEMORY,4,4
	.comm	DDSCAPS_LOCALVIDMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
