	.file	"extr_vo_direct3d.c_check_format.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"StretchRect"
.LC1:
	.string	"texture rendering"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Rejected image format (%s): %s\n"
	.align 8
.LC3:
	.string	"Accepted image format (%s): %s\n"
	.text
	.p2align 4
	.type	check_format, @function
check_format:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	r14, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, QWORD PTR fmt_table[rip]
	test	edx, edx
	je	.L17
	mov	rdi, rsi
	lea	r14, .LC1[rip]
	call	IMGFMT_IS_ANY_RND@PLT
	test	eax, eax
	jne	.L17
.L18:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	rax, rbp
	je	.L20
	add	rbx, 16
.L17:
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	jne	.L3
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L20:
	mov	r10d, DWORD PTR 0[r13]
	mov	ecx, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR DEVTYPE[rip]
	mov	esi, DWORD PTR D3DADAPTER_DEFAULT[rip]
	mov	edi, DWORD PTR 4[r13]
	test	r12d, r12d
	je	.L6
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	r9d, DWORD PTR D3DRTYPE_TEXTURE[rip]
	mov	r8d, DWORD PTR D3DUSAGE_DYNAMIC[rip]
	push	rcx
	.cfi_def_cfa_offset 64
	or	r8d, DWORD PTR D3DUSAGE_QUERY_FILTER[rip]
	mov	ecx, r10d
	call	IDirect3D9_CheckDeviceFormat@PLT
	mov	edi, eax
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	call	FAILED@PLT
	mov	rdi, QWORD PTR [rbx]
	test	rax, rax
	je	.L8
.L21:
	call	vo_format_name@PLT
	mov	rdx, r14
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	mov	ecx, eax
	call	MP_VERBOSE@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r8d, r10d
	call	IDirect3D9_CheckDeviceFormatConversion@PLT
	mov	edi, eax
	call	FAILED@PLT
	mov	rdi, QWORD PTR [rbx]
	test	rax, rax
	jne	.L21
.L8:
	call	vo_format_name@PLT
	mov	rdx, r14
	mov	rdi, r13
	lea	rsi, .LC3[rip]
	mov	ecx, eax
	call	MP_DBG@PLT
	mov	eax, DWORD PTR 8[rbx]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	check_format, .-check_format
	.comm	fmt_table,8,8
	.comm	DEVTYPE,4,4
	.comm	D3DUSAGE_QUERY_FILTER,4,4
	.comm	D3DUSAGE_DYNAMIC,4,4
	.comm	D3DRTYPE_TEXTURE,4,4
	.comm	D3DADAPTER_DEFAULT,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_vo_direct3d.c_check_format.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"StretchRect\000"
	.align	2
.LC1:
	.ascii	"texture rendering\000"
	.align	2
.LC2:
	.ascii	"Rejected image format (%s): %s\012\000"
	.align	2
.LC3:
	.ascii	"Accepted image format (%s): %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_format, %function
check_format:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L20
	subs	r6, r2, #0
	mov	r7, r0
	mov	r5, r1
	ldr	r4, [r3]
	sub	sp, sp, #16
	beq	.L19
	mov	r0, r1
	bl	IMGFMT_IS_ANY_RND
	cmp	r0, #0
	beq	.L17
	ldr	r8, .L20+4
	b	.L11
.L19:
	ldr	r8, .L20+8
.L11:
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L9
	b	.L17
.L5:
	ldr	r3, [r4, #8]!
	cmp	r3, #0
	beq	.L17
.L9:
	cmp	r3, r5
	bne	.L5
	ldr	r2, .L20+12
	ldr	r3, .L20+16
	cmp	r6, #0
	ldr	r1, [r2]
	ldr	r0, [r7, #4]
	ldr	r2, [r3]
	ldr	ip, [r7]
	ldr	r3, [r4, #4]
	beq	.L6
	ldr	r5, .L20+20
	ldr	lr, .L20+24
	ldr	r6, [r5]
	ldr	r5, .L20+28
	ldr	lr, [lr]
	ldr	r5, [r5]
	orr	lr, r6, lr
	str	r3, [sp, #8]
	str	lr, [sp]
	mov	r3, ip
	str	r5, [sp, #4]
	bl	IDirect3D9_CheckDeviceFormat
.L7:
	bl	FAILED
	cmp	r0, #0
	ldr	r0, [r4]
	beq	.L8
	bl	vo_format_name
	mov	r2, r8
	mov	r3, r0
	ldr	r1, .L20+32
	mov	r0, r7
	bl	MP_VERBOSE
.L17:
	mov	r0, #0
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	bl	vo_format_name
	mov	r2, r8
	mov	r3, r0
	ldr	r1, .L20+36
	mov	r0, r7
	bl	MP_DBG
	ldr	r0, [r4, #4]
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	str	ip, [sp]
	bl	IDirect3D9_CheckDeviceFormatConversion
	b	.L7
.L21:
	.align	2
.L20:
	.word	fmt_table
	.word	.LC1
	.word	.LC0
	.word	D3DADAPTER_DEFAULT
	.word	DEVTYPE
	.word	D3DUSAGE_DYNAMIC
	.word	D3DUSAGE_QUERY_FILTER
	.word	D3DRTYPE_TEXTURE
	.word	.LC2
	.word	.LC3
	.size	check_format, .-check_format
	.comm	fmt_table,4,4
	.comm	DEVTYPE,4,4
	.comm	D3DUSAGE_QUERY_FILTER,4,4
	.comm	D3DUSAGE_DYNAMIC,4,4
	.comm	D3DRTYPE_TEXTURE,4,4
	.comm	D3DADAPTER_DEFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
