	.file	"679904.c"
	.intel_syntax noprefix
	.text
	.globl	DrawFrame
	.type	DrawFrame, @function
DrawFrame:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	QWORD PTR -152[rbp], rdi
	mov	DWORD PTR -156[rbp], esi
	mov	QWORD PTR -168[rbp], rdx
	mov	QWORD PTR -176[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -144[rbp]
	mov	rcx, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XGetWindowAttributes@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rdx, QWORD PTR 96[rax]
	mov	rcx, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSetForeground@PLT
	mov	eax, DWORD PTR -132[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -136[rbp]
	mov	edi, eax
	mov	rdx, QWORD PTR -176[rbp]
	mov	rsi, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -152[rbp]
	sub	rsp, 8
	push	rcx
	mov	r9d, edi
	mov	r8d, 0
	mov	ecx, 0
	mov	rdi, rax
	call	XDrawRectangle@PLT
	add	rsp, 16
	mov	eax, DWORD PTR -136[rbp]
	mov	ecx, eax
	mov	rdx, QWORD PTR -176[rbp]
	mov	rsi, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -152[rbp]
	sub	rsp, 8
	push	22
	mov	r9d, ecx
	mov	r8d, 0
	mov	ecx, 0
	mov	rdi, rax
	call	XFillRectangle@PLT
	add	rsp, 16
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	DrawFrame, .-DrawFrame
	.section	.rodata
.LC0:
	.string	"WM_DELETE_WINDOW"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 272
	mov	DWORD PTR -260[rbp], edi
	mov	QWORD PTR -272[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -256[rbp], 1
	mov	edi, 0
	call	XOpenDisplay@PLT
	mov	QWORD PTR -240[rbp], rax
	mov	rax, QWORD PTR -240[rbp]
	mov	eax, DWORD PTR 224[rax]
	mov	DWORD PTR -252[rbp], eax
	mov	rax, QWORD PTR -240[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	rax, QWORD PTR -240[rbp]
	mov	eax, DWORD PTR 224[rax]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -232[rbp], rax
	mov	rax, QWORD PTR -240[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -252[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rcx, QWORD PTR 88[rax]
	mov	rax, QWORD PTR -240[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -252[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rdx, QWORD PTR 96[rax]
	mov	rsi, QWORD PTR -232[rbp]
	mov	rax, QWORD PTR -240[rbp]
	sub	rsp, 8
	push	rcx
	push	rdx
	push	1
	mov	r9d, 300
	mov	r8d, 400
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XCreateSimpleWindow@PLT
	add	rsp, 32
	mov	QWORD PTR -224[rbp], rax
	mov	rax, QWORD PTR -240[rbp]
	mov	edx, 1
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	XInternAtom@PLT
	mov	QWORD PTR -248[rbp], rax
	mov	rsi, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR -240[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XCreateGC@PLT
	mov	QWORD PTR -216[rbp], rax
	lea	rdx, -248[rbp]
	mov	rsi, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR -240[rbp]
	mov	ecx, 1
	mov	rdi, rax
	call	XSetWMProtocols@PLT
	mov	rcx, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR -240[rbp]
	mov	edx, 32768
	mov	rsi, rcx
	mov	rdi, rax
	call	XSelectInput@PLT
	mov	rdx, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR -240[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XMapWindow@PLT
	jmp	.L4
.L9:
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -240[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XNextEvent@PLT
	mov	eax, DWORD PTR -208[rbp]
	cmp	eax, 12
	je	.L6
	cmp	eax, 33
	je	.L7
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -152[rbp]
	test	eax, eax
	jne	.L5
	mov	rcx, QWORD PTR -216[rbp]
	mov	rdx, QWORD PTR -224[rbp]
	mov	esi, DWORD PTR -252[rbp]
	mov	rax, QWORD PTR -240[rbp]
	mov	rdi, rax
	call	DrawFrame
	jmp	.L5
.L7:
	mov	DWORD PTR -256[rbp], 0
	nop
.L5:
	mov	rax, QWORD PTR -240[rbp]
	mov	rdi, rax
	call	XPending@PLT
	test	eax, eax
	jne	.L9
.L4:
	cmp	DWORD PTR -256[rbp], 0
	jne	.L5
	mov	rdx, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR -240[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XFreeGC@PLT
	mov	rdx, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR -240[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XDestroyWindow@PLT
	mov	rax, QWORD PTR -240[rbp]
	mov	rdi, rax
	call	XCloseDisplay@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"679904.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	DrawFrame
	.syntax unified
	.arm
	.fpu softvfp
	.type	DrawFrame, %function
DrawFrame:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	str	r2, [fp, #-112]
	str	r3, [fp, #-116]
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r2, r3
	ldr	r1, [fp, #-112]
	ldr	r0, [fp, #-104]
	bl	XGetWindowAttributes
	ldr	r3, [fp, #-104]
	ldr	r1, [r3, #140]
	ldr	r2, [fp, #-108]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #56]
	mov	r2, r3
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-104]
	bl	XSetForeground
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, [fp, #-116]
	ldr	r1, [fp, #-112]
	ldr	r0, [fp, #-104]
	bl	XDrawRectangle
	ldr	r3, [fp, #-92]
	mov	r2, r3
	mov	r3, #22
	str	r3, [sp, #8]
	str	r2, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, [fp, #-116]
	ldr	r1, [fp, #-112]
	ldr	r0, [fp, #-104]
	bl	XFillRectangle
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	DrawFrame, .-DrawFrame
	.section	.rodata
	.align	2
.LC1:
	.ascii	"WM_DELETE_WINDOW\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #160
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-128]
	mov	r0, #0
	bl	XOpenDisplay
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-124]
	ldr	r3, [r3, #132]
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-124]
	ldr	r2, [r3, #140]
	ldr	r3, [fp, #-124]
	ldr	r3, [r3, #132]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-124]
	ldr	r1, [r3, #140]
	ldr	r2, [fp, #-120]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r1, [r3, #56]
	ldr	r3, [fp, #-124]
	ldr	r0, [r3, #140]
	ldr	r2, [fp, #-120]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r0, r3
	ldr	r3, [r3, #52]
	str	r3, [sp, #16]
	str	r1, [sp, #12]
	mov	r3, #1
	str	r3, [sp, #8]
	mov	r3, #300
	str	r3, [sp, #4]
	mov	r3, #400
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-124]
	bl	XCreateSimpleWindow
	str	r0, [fp, #-112]
	mov	r2, #1
	ldr	r1, .L15+4
	ldr	r0, [fp, #-124]
	bl	XInternAtom
	mov	r3, r0
	str	r3, [fp, #-132]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, [fp, #-112]
	ldr	r0, [fp, #-124]
	bl	XCreateGC
	str	r0, [fp, #-108]
	sub	r2, fp, #132
	mov	r3, #1
	ldr	r1, [fp, #-112]
	ldr	r0, [fp, #-124]
	bl	XSetWMProtocols
	mov	r2, #32768
	ldr	r1, [fp, #-112]
	ldr	r0, [fp, #-124]
	bl	XSelectInput
	ldr	r1, [fp, #-112]
	ldr	r0, [fp, #-124]
	bl	XMapWindow
	b	.L6
.L11:
	sub	r3, fp, #104
	mov	r1, r3
	ldr	r0, [fp, #-124]
	bl	XNextEvent
	ldr	r3, [fp, #-104]
	cmp	r3, #12
	beq	.L8
	cmp	r3, #33
	beq	.L9
	b	.L7
.L8:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-108]
	ldr	r2, [fp, #-112]
	ldr	r1, [fp, #-120]
	ldr	r0, [fp, #-124]
	bl	DrawFrame
	b	.L7
.L9:
	mov	r3, #0
	str	r3, [fp, #-128]
	nop
.L7:
	ldr	r0, [fp, #-124]
	bl	XPending
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
.L6:
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	bne	.L7
	ldr	r1, [fp, #-108]
	ldr	r0, [fp, #-124]
	bl	XFreeGC
	ldr	r1, [fp, #-112]
	ldr	r0, [fp, #-124]
	bl	XDestroyWindow
	ldr	r0, [fp, #-124]
	bl	XCloseDisplay
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC2
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
