	.file	"extr_ddtest.c_DDUpdateFrame.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	DDUpdateFrame
	.type	DDUpdateFrame, @function
DDUpdateFrame:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	mov	esi, 16
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r9
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 120
	.cfi_def_cfa_offset 176
	mov	rax, QWORD PTR 184[rsp]
	mov	QWORD PTR 16[rsp], rdx
	lea	r9, 48[rsp]
	mov	rdi, r9
	mov	r15, QWORD PTR 176[rsp]
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 8[rsp], r9
	call	ZeroMemory@PLT
	mov	rax, QWORD PTR [r14]
	xor	ecx, ecx
	xor	edx, edx
	xor	esi, esi
	mov	r9, QWORD PTR 8[rsp]
	mov	rdi, r14
	mov	r8d, DWORD PTR DDBLT_COLORFILL[rip]
	mov	DWORD PTR 48[rsp], 16
	or	r8d, DWORD PTR DDBLT_WAIT[rip]
	mov	QWORD PTR 56[rsp], 0
	call	[QWORD PTR 8[rax]]
	mov	rax, QWORD PTR [r14]
	lea	rsi, 44[rsp]
	mov	rdi, r14
	call	[QWORD PTR [rax]]
	cmp	rax, QWORD PTR DD_OK[rip]
	je	.L12
.L2:
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdx, QWORD PTR 0[rbp]
	mov	esi, 255
	mov	edi, 255
	mov	rax, QWORD PTR DD_SQUARE_SIZE[rip]
	mov	QWORD PTR 88[rsp], rdx
	add	rdx, rax
	mov	QWORD PTR 80[rsp], rdx
	mov	rdx, QWORD PTR [rbx]
	add	rax, rdx
	mov	QWORD PTR 72[rsp], rdx
	mov	edx, 255
	mov	QWORD PTR 64[rsp], rax
	call	RGB@PLT
	mov	edi, eax
	call	CreateSolidBrush@PLT
	mov	edi, DWORD PTR 44[rsp]
	lea	rsi, 64[rsp]
	mov	edx, eax
	call	FillRect@PLT
	mov	rdx, QWORD PTR DD_SQUARE_SIZE[rip]
	mov	rax, QWORD PTR DD_TEST_WIDTH[rip]
	sub	rax, rdx
	cmp	QWORD PTR 0[rbp], rax
	jl	.L3
	neg	QWORD PTR [r12]
	mov	rdx, QWORD PTR DD_SQUARE_SIZE[rip]
.L3:
	mov	rax, QWORD PTR DD_TEST_HEIGHT[rip]
	sub	rax, rdx
	cmp	QWORD PTR [rbx], rax
	jl	.L4
	neg	QWORD PTR [r15]
.L4:
	cmp	QWORD PTR 0[rbp], 0
	js	.L14
.L5:
	cmp	QWORD PTR [rbx], 0
	js	.L15
.L6:
	mov	rax, QWORD PTR [r12]
	add	QWORD PTR 0[rbp], rax
	mov	rdi, r14
	mov	rax, QWORD PTR [r15]
	add	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR [r14]
	mov	esi, DWORD PTR 44[rsp]
	call	[QWORD PTR 24[rax]]
	cmp	QWORD PTR 16[rsp], 0
	mov	rax, QWORD PTR 0[r13]
	je	.L7
	mov	edx, DWORD PTR DDFLIP_WAIT[rip]
	xor	esi, esi
	mov	rdi, r13
	call	[QWORD PTR 16[rax]]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r8d, DWORD PTR DDBLT_WAIT[rip]
	xor	r9d, r9d
	xor	ecx, ecx
	mov	rdx, r14
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, r13
	call	[QWORD PTR 8[rax]]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	neg	QWORD PTR [r15]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	neg	QWORD PTR [r12]
	jmp	.L5
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	DDUpdateFrame, .-DDUpdateFrame
	.comm	DD_TEST_WIDTH,8,8
	.comm	DD_TEST_HEIGHT,8,8
	.comm	DD_SQUARE_SIZE,8,8
	.comm	DD_OK,8,8
	.comm	DDFLIP_WAIT,4,4
	.comm	DDBLT_WAIT,4,4
	.comm	DDBLT_COLORFILL,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_ddtest.c_DDUpdateFrame.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	DDUpdateFrame
	.syntax unified
	.arm
	.fpu softvfp
	.type	DDUpdateFrame, %function
DDUpdateFrame:
	@ args = 16, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r3
	sub	sp, sp, #52
	ldr	r3, .L14
	mov	r4, r1
	str	r2, [sp, #8]
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	add	r9, sp, #20
	ldr	r3, [sp, #100]
	mov	r1, #8
	mov	r6, r0
	mov	r0, r9
	str	r3, [sp, #12]
	ldr	r8, [sp, #88]
	ldr	fp, [sp, #92]
	ldr	r10, [sp, #96]
	bl	ZeroMemory
	mov	r3, #0
	mov	r1, #8
	ldr	r2, .L14+4
	ldr	r7, .L14+8
	ldr	r2, [r2]
	ldr	ip, [r7]
	ldr	r0, [r4]
	orr	r2, r2, ip
	stm	sp, {r2, r9}
	str	r1, [sp, #20]
	mov	r2, r3
	mov	r1, r3
	ldr	r9, [r0, #4]
	str	r3, [sp, #24]
	mov	r0, r4
	blx	r9
	ldr	r3, [r4]
	mov	r0, r4
	ldr	r3, [r3]
	add	r1, sp, #16
	blx	r3
	ldr	r3, .L14+12
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L12
.L2:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, #0
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	mov	r2, #255
	ldr	r9, .L14+16
	ldr	r1, [r5]
	ldr	r3, [r9]
	ldr	ip, [r8]
	str	r1, [sp, #40]
	add	r1, r1, r3
	mov	r0, r2
	add	r3, r3, ip
	str	r1, [sp, #36]
	mov	r1, r2
	str	r3, [sp, #28]
	str	ip, [sp, #32]
	bl	RGB
	bl	CreateSolidBrush
	add	r1, sp, #28
	mov	r2, r0
	ldr	r0, [sp, #16]
	bl	FillRect
	ldr	r3, .L14+20
	ldr	r1, [r9]
	ldr	r2, [r3]
	ldr	r3, [r5]
	sub	r2, r2, r1
	cmp	r3, r2
	ldrge	r3, [fp]
	mov	r0, r4
	rsbge	r3, r3, #0
	strge	r3, [fp]
	ldr	r3, .L14+24
	ldrge	r1, [r9]
	ldr	r3, [r3]
	ldr	r2, [r8]
	sub	r3, r3, r1
	cmp	r2, r3
	ldrge	r3, [r10]
	ldr	r2, [r4]
	rsbge	r3, r3, #0
	strge	r3, [r10]
	ldr	r3, [r5]
	ldr	r2, [r2, #12]
	cmp	r3, #0
	ldrlt	r3, [fp]
	rsblt	r3, r3, #0
	strlt	r3, [fp]
	ldr	r3, [r8]
	cmp	r3, #0
	ldrlt	r3, [r10]
	rsblt	r3, r3, #0
	strlt	r3, [r10]
	ldr	r1, [fp]
	ldr	r3, [r5]
	add	r3, r3, r1
	str	r3, [r5]
	ldr	r1, [r10]
	ldr	r3, [r8]
	add	r3, r3, r1
	str	r3, [r8]
	ldr	r1, [sp, #16]
	blx	r2
	ldr	r3, [sp, #8]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [r6]
	ldr	r2, .L14+28
	mov	r0, r6
	mov	r1, #0
	ldr	r2, [r2]
	ldr	r3, [r3, #8]
	blx	r3
	b	.L2
.L7:
	ldr	r3, [r7]
	ldr	r0, [r6]
	str	r3, [sp]
	ldr	r3, [sp, #8]
	mov	r2, r4
	str	r3, [sp, #4]
	ldr	r4, [r0, #4]
	ldr	r1, [sp, #12]
	mov	r0, r6
	blx	r4
	b	.L2
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	DDBLT_COLORFILL
	.word	DDBLT_WAIT
	.word	DD_OK
	.word	DD_SQUARE_SIZE
	.word	DD_TEST_WIDTH
	.word	DD_TEST_HEIGHT
	.word	DDFLIP_WAIT
	.size	DDUpdateFrame, .-DDUpdateFrame
	.comm	DD_TEST_WIDTH,4,4
	.comm	DD_TEST_HEIGHT,4,4
	.comm	DD_SQUARE_SIZE,4,4
	.comm	DD_OK,4,4
	.comm	DDFLIP_WAIT,4,4
	.comm	DDBLT_WAIT,4,4
	.comm	DDBLT_COLORFILL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
