	.file	"extr_dce110_resource.c_dce110_validate_surface_sets.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dce110_validate_surface_sets, @function
dce110_validate_surface_sets:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jle	.L27
	sub	eax, 1
	mov	rcx, QWORD PTR 16[rdi]
	mov	r10, QWORD PTR SURFACE_PIXEL_FORMAT_VIDEO_BEGIN[rip]
	mov	r11, QWORD PTR PIXEL_ENCODING_RGB[rip]
	lea	rsi, 8[0+rax*8]
	xor	eax, eax
.L18:
	mov	edx, DWORD PTR [rcx+rax*2]
	test	edx, edx
	jne	.L29
.L19:
	add	rax, 8
	cmp	rax, rsi
	jne	.L18
.L27:
	mov	eax, 1
	ret
.L29:
	cmp	edx, 2
	jle	.L30
	xor	eax, eax
	ret
.L30:
	test	edx, edx
	jle	.L19
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rbx, QWORD PTR 8[rcx+rax*2]
	xor	r8d, r8d
.L5:
	mov	r9, QWORD PTR [rbx+r8*8]
	cmp	QWORD PTR [r9], r10
	jl	.L4
	cmp	DWORD PTR 8[r9], 1920
	jg	.L11
	cmp	DWORD PTR 12[r9], 1080
	jg	.L11
	test	r8b, 1
	jne	.L31
.L11:
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L31:
	.cfi_restore_state
	mov	r9, QWORD PTR 8[rdi]
	mov	r9, QWORD PTR [r9+rax]
	cmp	QWORD PTR [r9], r11
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L4:
	add	r8, 1
	cmp	edx, r8d
	jg	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	rax, 8
	cmp	rax, rsi
	je	.L32
	mov	edx, DWORD PTR [rcx+rax*2]
	test	edx, edx
	je	.L3
	cmp	edx, 2
	jg	.L11
	test	edx, edx
	jg	.L23
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L32:
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dce110_validate_surface_sets, .-dce110_validate_surface_sets
	.comm	SURFACE_PIXEL_FORMAT_VIDEO_BEGIN,8,8
	.comm	PIXEL_ENCODING_RGB,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_dce110_resource.c_dce110_validate_surface_sets.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dce110_validate_surface_sets, %function
dce110_validate_surface_sets:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r0]
	cmp	ip, #0
	ble	.L7
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, .L24
	ldr	lr, .L24+4
	ldr	r1, [r0, #8]
	ldr	r6, [lr]
	ldr	r9, [r2]
	add	r7, r1, #4
.L6:
	ldr	r2, [r1, r3, lsl #3]
	cmp	r2, #0
	bne	.L22
.L3:
	add	r3, r3, #1
	cmp	r3, ip
	bne	.L6
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	cmp	r2, #2
	ble	.L23
.L10:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	cmp	r2, #0
	ble	.L3
	mov	lr, #0
	ldr	fp, [r7, r3, lsl #3]
	lsl	r10, r3, #2
.L5:
	ldr	r5, [fp, lr, lsl #2]
	eor	r4, lr, #1
	ldr	r8, [r5]
	and	r4, r4, #1
	cmp	r8, r6
	add	lr, lr, #1
	blt	.L4
	ldr	r8, [r5, #4]
	cmp	r8, #1920
	bgt	.L10
	ldr	r5, [r5, #8]
	ldr	r8, .L24+8
	cmp	r5, r8
	orrgt	r4, r4, #1
	cmp	r4, #0
	bne	.L10
	ldr	r5, [r0, #4]
	ldr	r5, [r5, r10]
	ldr	r5, [r5]
	cmp	r5, r9
	bne	.L10
.L4:
	cmp	r2, lr
	bne	.L5
	b	.L3
.L7:
	mov	r0, #1
	bx	lr
.L25:
	.align	2
.L24:
	.word	PIXEL_ENCODING_RGB
	.word	SURFACE_PIXEL_FORMAT_VIDEO_BEGIN
	.word	1080
	.size	dce110_validate_surface_sets, .-dce110_validate_surface_sets
	.comm	SURFACE_PIXEL_FORMAT_VIDEO_BEGIN,4,4
	.comm	PIXEL_ENCODING_RGB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
