	.file	"extr_dce.c_test_destroyed_window.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"wrong ROP2 %d\n"
.LC1:
	.string	"wrong window\n"
.LC2:
	.string	"ReleaseDC succeeded\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"Got a non-NULL DC (%p) for a destroyed window\n"
	.align 8
.LC4:
	.string	"DC for destroyed window not reused\n"
	.section	.rodata.str1.1
.LC5:
	.string	"wrong DC\n"
.LC6:
	.string	"Got NULL DC\n"
	.text
	.p2align 4
	.type	test_destroyed_window, @function
test_destroyed_window:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 136
	.cfi_def_cfa_offset 176
	mov	rdi, QWORD PTR hwnd_cache[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 120[rsp], rax
	xor	eax, eax
	mov	rbp, rsp
	call	GetDC@PLT
	mov	esi, DWORD PTR R2_WHITE[rip]
	mov	r12d, eax
	mov	edi, eax
	call	SetROP2@PLT
	mov	edi, r12d
	call	GetROP2@PLT
	xor	edi, edi
	cmp	DWORD PTR R2_WHITE[rip], eax
	lea	rsi, .LC0[rip]
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edi, r12d
	call	WindowFromDC@PLT
	xor	edi, edi
	cmp	QWORD PTR hwnd_cache[rip], rax
	lea	rsi, .LC1[rip]
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR hwnd_cache[rip]
	call	DestroyWindow@PLT
	mov	edi, r12d
	call	GetROP2@PLT
	xor	edi, edi
	lea	rsi, .LC0[rip]
	test	eax, eax
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edi, r12d
	call	WindowFromDC@PLT
	xor	edi, edi
	lea	rsi, .LC1[rip]
	test	rax, rax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR hwnd_cache[rip]
	mov	esi, r12d
	call	ReleaseDC@PLT
	xor	edi, edi
	lea	rsi, .LC2[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR hwnd_cache[rip]
	call	GetDC@PLT
	xor	edi, edi
	lea	rsi, .LC3[rip]
	test	eax, eax
	mov	edx, eax
	sete	dil
	xor	eax, eax
	xor	ebx, ebx
	call	ok@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	add	rbx, 1
	cmp	rbx, 30
	je	.L18
.L3:
	mov	rdi, QWORD PTR hwnd_parent[rip]
	mov	edx, DWORD PTR DCX_CACHE[rip]
	xor	esi, esi
	mov	r13d, ebx
	or	edx, DWORD PTR DCX_USESTYLE[rip]
	call	GetDCEx@PLT
	mov	DWORD PTR 0[rbp+rbx*4], eax
	cmp	eax, r12d
	jne	.L19
	xor	eax, eax
	lea	rsi, .LC4[rip]
	mov	edi, 1
	call	ok@PLT
	test	ebx, ebx
	je	.L5
.L8:
	movsx	rax, r13d
	sal	rax, 2
	lea	rbx, -4[rsp+rax]
	add	rbp, rax
	lea	eax, -1[r13]
	sal	rax, 2
	sub	rbx, rax
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR -4[rbp]
	mov	rdi, QWORD PTR hwnd_parent[rip]
	sub	rbp, 4
	call	ReleaseDC@PLT
	cmp	rbp, rbx
	jne	.L6
.L5:
	mov	rdi, QWORD PTR hwnd_classdc[rip]
	call	GetDC@PLT
	mov	esi, DWORD PTR R2_WHITE[rip]
	mov	ebx, eax
	mov	edi, eax
	call	SetROP2@PLT
	mov	edi, ebx
	call	GetROP2@PLT
	xor	edi, edi
	cmp	DWORD PTR R2_WHITE[rip], eax
	lea	rsi, .LC0[rip]
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edi, ebx
	call	WindowFromDC@PLT
	xor	edi, edi
	cmp	QWORD PTR hwnd_classdc[rip], rax
	lea	rsi, .LC1[rip]
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR hwnd_classdc2[rip]
	call	GetDC@PLT
	xor	edi, edi
	lea	rsi, .LC5[rip]
	cmp	ebx, eax
	mov	ebp, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edi, ebp
	call	GetROP2@PLT
	xor	edi, edi
	cmp	DWORD PTR R2_WHITE[rip], eax
	lea	rsi, .LC0[rip]
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edi, ebp
	call	WindowFromDC@PLT
	xor	edi, edi
	cmp	QWORD PTR hwnd_classdc2[rip], rax
	lea	rsi, .LC1[rip]
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR hwnd_classdc2[rip]
	call	DestroyWindow@PLT
	mov	edi, ebp
	call	GetROP2@PLT
	xor	edi, edi
	cmp	DWORD PTR R2_WHITE[rip], eax
	lea	rsi, .LC0[rip]
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edi, ebp
	call	WindowFromDC@PLT
	xor	edi, edi
	lea	rsi, .LC1[rip]
	test	rax, rax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR hwnd_classdc2[rip]
	mov	esi, ebp
	call	ReleaseDC@PLT
	xor	edi, edi
	lea	rsi, .LC2[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR hwnd_classdc2[rip]
	call	GetDC@PLT
	xor	edi, edi
	lea	rsi, .LC3[rip]
	test	eax, eax
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR hwnd_classdc[rip]
	call	GetDC@PLT
	xor	edi, edi
	lea	rsi, .LC6[rip]
	test	eax, eax
	mov	ebp, eax
	setne	dil
	xor	eax, eax
	call	ok@PLT
	mov	edi, ebp
	call	GetROP2@PLT
	xor	edi, edi
	cmp	DWORD PTR R2_WHITE[rip], eax
	lea	rsi, .LC0[rip]
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edi, ebp
	call	WindowFromDC@PLT
	xor	edi, edi
	cmp	QWORD PTR hwnd_classdc[rip], rax
	lea	rsi, .LC1[rip]
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR hwnd_classdc[rip]
	call	DestroyWindow@PLT
	mov	edi, ebp
	call	GetROP2@PLT
	xor	edi, edi
	cmp	DWORD PTR R2_WHITE[rip], eax
	lea	rsi, .LC0[rip]
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edi, ebp
	call	WindowFromDC@PLT
	xor	edi, edi
	lea	rsi, .LC1[rip]
	test	rax, rax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR hwnd_classdc[rip]
	mov	esi, ebp
	call	ReleaseDC@PLT
	xor	edi, edi
	lea	rsi, .LC2[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR hwnd_classdc[rip]
	call	GetDC@PLT
	xor	edi, edi
	lea	rsi, .LC3[rip]
	test	eax, eax
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR hwnd_owndc[rip]
	call	GetDC@PLT
	xor	edi, edi
	lea	rsi, .LC6[rip]
	test	eax, eax
	mov	ebp, eax
	setne	dil
	xor	eax, eax
	call	ok@PLT
	mov	edi, ebp
	call	GetROP2@PLT
	xor	edi, edi
	cmp	DWORD PTR R2_WHITE[rip], eax
	lea	rsi, .LC0[rip]
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edi, ebp
	call	WindowFromDC@PLT
	xor	edi, edi
	cmp	QWORD PTR hwnd_owndc[rip], rax
	lea	rsi, .LC1[rip]
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR hwnd_owndc[rip]
	call	DestroyWindow@PLT
	mov	edi, ebp
	call	GetROP2@PLT
	xor	edi, edi
	lea	rsi, .LC0[rip]
	test	eax, eax
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edi, ebp
	call	WindowFromDC@PLT
	xor	edi, edi
	lea	rsi, .LC1[rip]
	test	rax, rax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR hwnd_owndc[rip]
	mov	esi, ebp
	call	ReleaseDC@PLT
	xor	edi, edi
	lea	rsi, .LC2[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, QWORD PTR hwnd_owndc[rip]
	call	GetDC@PLT
	xor	edi, edi
	lea	rsi, .LC3[rip]
	test	eax, eax
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rax, QWORD PTR 120[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	mov	rdi, QWORD PTR hwnd_parent[rip]
	add	rsp, 136
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	DestroyWindow@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	lea	rsi, .LC4[rip]
	xor	edi, edi
	xor	eax, eax
	mov	r13d, 30
	call	ok@PLT
	jmp	.L8
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_destroyed_window, .-test_destroyed_window
	.comm	hwnd_parent,8,8
	.comm	hwnd_owndc,8,8
	.comm	hwnd_classdc2,8,8
	.comm	hwnd_classdc,8,8
	.comm	hwnd_cache,8,8
	.comm	R2_WHITE,4,4
	.comm	DCX_USESTYLE,4,4
	.comm	DCX_CACHE,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_dce.c_test_destroyed_window.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"wrong ROP2 %d\012\000"
	.align	2
.LC1:
	.ascii	"wrong window\012\000"
	.align	2
.LC2:
	.ascii	"ReleaseDC succeeded\012\000"
	.align	2
.LC3:
	.ascii	"Got a non-NULL DC (%p) for a destroyed window\012\000"
	.align	2
.LC4:
	.ascii	"DC for destroyed window not reused\012\000"
	.align	2
.LC5:
	.ascii	"wrong DC\012\000"
	.align	2
.LC6:
	.ascii	"Got NULL DC\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_destroyed_window, %function
test_destroyed_window:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r4, .L21
	ldr	r3, .L21+4
	sub	sp, sp, #128
	ldr	r0, [r4]
	ldr	r3, [r3]
	str	r3, [sp, #124]
	mov	r3,#0
	bl	GetDC
	mov	r7, r0
	ldr	r8, .L21+8
	mov	r5, sp
	ldr	r1, [r8]
	bl	SetROP2
	mov	r0, r7
	bl	GetROP2
	mov	r2, r0
	ldr	r0, [r8]
	ldr	r1, .L21+12
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r7
	bl	WindowFromDC
	ldr	r3, [r4]
	ldr	r1, .L21+16
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [r4]
	bl	DestroyWindow
	mov	r0, r7
	bl	GetROP2
	mov	r2, r0
	clz	r0, r0
	ldr	r1, .L21+12
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r7
	bl	WindowFromDC
	clz	r0, r0
	ldr	r1, .L21+16
	lsr	r0, r0, #5
	bl	ok
	mov	r1, r7
	ldr	r0, [r4]
	bl	ReleaseDC
	clz	r0, r0
	ldr	r1, .L21+20
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [r4]
	bl	GetDC
	mov	r2, r0
	clz	r0, r0
	ldr	r1, .L21+24
	lsr	r0, r0, #5
	bl	ok
	mov	r4, #0
	ldr	r10, .L21+28
	ldr	r9, .L21+32
	ldr	r6, .L21+36
	b	.L3
.L19:
	add	r4, r4, #1
	cmp	r4, #30
	beq	.L18
.L3:
	ldr	r2, [r10]
	ldr	r3, [r9]
	mov	r1, #0
	ldr	r0, [r6]
	orr	r2, r2, r3
	bl	GetDCEx
	cmp	r0, r7
	str	r0, [r5, #4]!
	bne	.L19
	mov	r0, #1
	ldr	r1, .L21+40
	bl	ok
	cmp	r4, #0
	beq	.L5
.L8:
	add	r5, sp, #4
	add	r4, r5, r4, lsl #2
.L6:
	ldr	r1, [r4, #-4]!
	ldr	r0, [r6]
	bl	ReleaseDC
	cmp	r4, r5
	bne	.L6
.L5:
	ldr	r5, .L21+44
	ldr	r7, .L21+48
	ldr	r0, [r5]
	bl	GetDC
	mov	r9, r0
	ldr	r1, [r8]
	bl	SetROP2
	mov	r0, r9
	bl	GetROP2
	mov	r2, r0
	ldr	r0, [r8]
	ldr	r1, .L21+12
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r9
	bl	WindowFromDC
	ldr	r3, [r5]
	ldr	r1, .L21+16
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [r7]
	bl	GetDC
	mov	r4, r0
	sub	r0, r9, r0
	clz	r0, r0
	ldr	r1, .L21+52
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r4
	bl	GetROP2
	mov	r2, r0
	ldr	r0, [r8]
	ldr	r1, .L21+12
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r4
	bl	WindowFromDC
	ldr	r3, [r7]
	ldr	r1, .L21+16
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [r7]
	bl	DestroyWindow
	mov	r0, r4
	bl	GetROP2
	mov	r2, r0
	ldr	r0, [r8]
	ldr	r1, .L21+12
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r4
	bl	WindowFromDC
	clz	r0, r0
	ldr	r1, .L21+16
	lsr	r0, r0, #5
	bl	ok
	mov	r1, r4
	ldr	r0, [r7]
	bl	ReleaseDC
	clz	r0, r0
	ldr	r1, .L21+20
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [r7]
	bl	GetDC
	mov	r2, r0
	clz	r0, r0
	ldr	r1, .L21+24
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [r5]
	bl	GetDC
	mov	r4, r0
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r1, .L21+56
	bl	ok
	mov	r0, r4
	bl	GetROP2
	mov	r2, r0
	ldr	r0, [r8]
	ldr	r1, .L21+12
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r4
	bl	WindowFromDC
	ldr	r3, [r5]
	ldr	r1, .L21+16
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [r5]
	bl	DestroyWindow
	mov	r0, r4
	bl	GetROP2
	mov	r2, r0
	ldr	r0, [r8]
	ldr	r1, .L21+12
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r4
	bl	WindowFromDC
	clz	r0, r0
	ldr	r1, .L21+16
	lsr	r0, r0, #5
	bl	ok
	mov	r1, r4
	ldr	r0, [r5]
	bl	ReleaseDC
	clz	r0, r0
	ldr	r1, .L21+20
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [r5]
	bl	GetDC
	mov	r2, r0
	clz	r0, r0
	ldr	r5, .L21+60
	ldr	r1, .L21+24
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [r5]
	bl	GetDC
	mov	r4, r0
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r1, .L21+56
	bl	ok
	mov	r0, r4
	bl	GetROP2
	mov	r2, r0
	ldr	r0, [r8]
	ldr	r1, .L21+12
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r4
	bl	WindowFromDC
	ldr	r3, [r5]
	ldr	r1, .L21+16
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [r5]
	bl	DestroyWindow
	mov	r0, r4
	bl	GetROP2
	mov	r2, r0
	clz	r0, r0
	ldr	r1, .L21+12
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r4
	bl	WindowFromDC
	clz	r0, r0
	ldr	r1, .L21+16
	lsr	r0, r0, #5
	bl	ok
	mov	r1, r4
	ldr	r0, [r5]
	bl	ReleaseDC
	clz	r0, r0
	ldr	r1, .L21+20
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [r5]
	bl	GetDC
	mov	r2, r0
	clz	r0, r0
	ldr	r1, .L21+24
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, .L21+4
	ldr	r2, [r3]
	ldr	r3, [sp, #124]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	ldr	r0, [r6]
	add	sp, sp, #128
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	DestroyWindow
.L18:
	ldr	r1, .L21+40
	mov	r0, #0
	bl	ok
	b	.L8
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	hwnd_cache
	.word	.LC7
	.word	R2_WHITE
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	DCX_CACHE
	.word	DCX_USESTYLE
	.word	hwnd_parent
	.word	.LC4
	.word	hwnd_classdc
	.word	hwnd_classdc2
	.word	.LC5
	.word	.LC6
	.word	hwnd_owndc
	.size	test_destroyed_window, .-test_destroyed_window
	.comm	hwnd_parent,4,4
	.comm	hwnd_owndc,4,4
	.comm	hwnd_classdc2,4,4
	.comm	hwnd_classdc,4,4
	.comm	hwnd_cache,4,4
	.comm	R2_WHITE,4,4
	.comm	DCX_USESTYLE,4,4
	.comm	DCX_CACHE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
