	.file	"993764.c"
	.intel_syntax noprefix
	.text
	.section	.data.rel.local,"aw"
	.align 32
	.type	handler, @object
	.size	handler, 288
handler:
	.zero	160
	.quad	place_center
	.zero	8
	.quad	place_center
	.zero	104
	.text
	.globl	place_center
	.type	place_center, @function
place_center:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 224[rax]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -32[rbp], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, r_wa.1[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	XGetWindowAttributes@PLT
	test	eax, eax
	je	.L11
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, c_wa.0[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	XGetWindowAttributes@PLT
	test	eax, eax
	je	.L12
	mov	eax, DWORD PTR c_wa.0[rip+120]
	test	eax, eax
	jne	.L13
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 40[rax]
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XGetTransientForHint@PLT
	test	eax, eax
	jne	.L14
	mov	eax, DWORD PTR r_wa.1[rip+8]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	ecx, eax
	mov	eax, DWORD PTR c_wa.0[rip+8]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	neg	eax
	add	eax, ecx
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR r_wa.1[rip+12]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	ecx, eax
	mov	eax, DWORD PTR c_wa.0[rip+12]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	neg	eax
	add	eax, ecx
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	jns	.L7
	mov	DWORD PTR -40[rbp], 0
.L7:
	cmp	DWORD PTR -36[rbp], 0
	jns	.L8
	mov	DWORD PTR -36[rbp], 0
.L8:
	mov	edx, DWORD PTR c_wa.0[rip+12]
	mov	eax, DWORD PTR r_wa.1[rip+12]
	cmp	edx, eax
	cmovle	eax, edx
	mov	r8d, eax
	mov	edx, DWORD PTR c_wa.0[rip+8]
	mov	eax, DWORD PTR r_wa.1[rip+8]
	cmp	edx, eax
	cmovle	eax, edx
	mov	edi, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, QWORD PTR 40[rax]
	mov	ecx, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	XMoveResizeWindow@PLT
	jmp	.L1
.L11:
	nop
	jmp	.L1
.L12:
	nop
	jmp	.L1
.L13:
	nop
	jmp	.L1
.L14:
	nop
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	place_center, .-place_center
	.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, 352
	mov	DWORD PTR -340[rbp], edi
	mov	QWORD PTR -352[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	XOpenDisplay@PLT
	mov	QWORD PTR -328[rbp], rax
	cmp	QWORD PTR -328[rbp], 0
	jne	.L16
	mov	eax, 1
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	jmp	.L21
.L16:
	mov	rax, QWORD PTR -328[rbp]
	mov	esi, 68
	mov	rdi, rax
	call	XCreateFontCursor@PLT
	mov	QWORD PTR -216[rbp], rax
	mov	QWORD PTR -248[rbp], 655360
	mov	rax, QWORD PTR -328[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	rax, QWORD PTR -328[rbp]
	mov	eax, DWORD PTR 224[rax]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rsi, QWORD PTR 16[rax]
	lea	rdx, -320[rbp]
	mov	rax, QWORD PTR -328[rbp]
	mov	rcx, rdx
	mov	edx, 18432
	mov	rdi, rax
	call	XChangeWindowAttributes@PLT
.L19:
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -328[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XNextEvent@PLT
	mov	eax, DWORD PTR -208[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, handler[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L19
	mov	eax, DWORD PTR -208[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, handler[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -328[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	jmp	.L19
.L21:
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.local	r_wa.1
	.comm	r_wa.1,136,32
	.local	c_wa.0
	.comm	c_wa.0,136,32
	.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	"993764.c"
	.text
	.data
	.align	2
	.type	handler, %object
	.size	handler, 144
handler:
	.space	80
	.word	place_center
	.space	4
	.word	place_center
	.space	52
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	place_center
	.syntax unified
	.arm
	.fpu softvfp
	.type	place_center, %function
place_center:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #140]
	ldr	r3, [fp, #-32]
	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, #-16]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-12]
	ldr	r2, .L15+4
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-32]
	bl	XGetWindowAttributes
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #20]
	ldr	r2, .L15+8
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	XGetWindowAttributes
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L15+8
	ldr	r3, [r3, #84]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #20]
	sub	r2, fp, #28
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	XGetTransientForHint
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L15+4
	ldr	r3, [r3, #8]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r3, .L15+8
	ldr	r3, [r3, #8]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	rsb	r3, r3, #0
	add	r3, r1, r3
	str	r3, [fp, #-24]
	ldr	r3, .L15+4
	ldr	r3, [r3, #12]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r3, .L15+8
	ldr	r3, [r3, #12]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	rsb	r3, r3, #0
	add	r3, r1, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L7
	mov	r3, #0
	str	r3, [fp, #-24]
.L7:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L8
	mov	r3, #0
	str	r3, [fp, #-20]
.L8:
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, #20]
	ldr	r3, .L15+8
	ldr	r2, [r3, #8]
	ldr	r3, .L15+4
	ldr	r3, [r3, #8]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	mov	r0, r3
	ldr	r3, .L15+8
	ldr	r2, [r3, #12]
	ldr	r3, .L15+4
	ldr	r3, [r3, #12]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	str	r3, [sp, #4]
	str	r0, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	ldr	r0, [fp, #-32]
	bl	XMoveResizeWindow
	b	.L1
.L11:
	nop
	b	.L1
.L12:
	nop
	b	.L1
.L13:
	nop
	b	.L1
.L14:
	nop
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	r_wa.8924
	.word	c_wa.8925
	.size	place_center, .-place_center
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #176
	str	r0, [fp, #-176]
	str	r1, [fp, #-180]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	XOpenDisplay
	str	r0, [fp, #-168]
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	bne	.L18
	mov	r3, #1
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	b	.L23
.L18:
	mov	r1, #68
	ldr	r0, [fp, #-168]
	bl	XCreateFontCursor
	mov	r3, r0
	str	r3, [fp, #-108]
	mov	r3, #655360
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-168]
	ldr	r2, [r3, #140]
	ldr	r3, [fp, #-168]
	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	r1, [r3, #8]
	sub	r3, fp, #164
	mov	r2, #18432
	ldr	r0, [fp, #-168]
	bl	XChangeWindowAttributes
.L21:
	sub	r3, fp, #104
	mov	r1, r3
	ldr	r0, [fp, #-168]
	bl	XNextEvent
	ldr	r3, [fp, #-104]
	ldr	r2, .L24+4
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-104]
	ldr	r2, .L24+4
	ldr	r3, [r2, r3, lsl #2]
	sub	r2, fp, #104
	mov	r1, r2
	ldr	r0, [fp, #-168]
	blx	r3
	b	.L21
.L23:
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC1
	.word	handler
	.size	main, .-main
	.local	r_wa.8924
	.comm	r_wa.8924,92,4
	.local	c_wa.8925
	.comm	c_wa.8925,92,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
