	.file	"621142.c"
	.intel_syntax noprefix
	.text
	.type	get_winsize, @function
get_winsize:
.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, 272
	mov	QWORD PTR -248[rbp], rdi
	mov	QWORD PTR -256[rbp], rsi
	mov	QWORD PTR -264[rbp], rdx
	mov	QWORD PTR -272[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 -256[rbp]
	mov	rax, QWORD PTR -248[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XGetWindowAttributes@PLT
	test	eax, eax
	jne	.L2
	mov	eax, 1
	jmp	.L11
.L2:
	lea	rcx, -232[rbp]
	lea	rdx, -224[rbp]
	mov	rsi, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	XGetWMNormalHints@PLT
	test	eax, eax
	jne	.L4
	mov	eax, 1
	jmp	.L11
.L4:
	mov	rax, QWORD PTR -224[rbp]
	and	eax, 64
	test	rax, rax
	jne	.L5
	mov	eax, 1
	jmp	.L11
.L5:
	mov	eax, DWORD PTR -184[rbp]
	test	eax, eax
	je	.L6
	mov	eax, DWORD PTR -180[rbp]
	test	eax, eax
	jne	.L7
.L6:
	mov	eax, 1
	jmp	.L11
.L7:
	mov	rax, QWORD PTR -224[rbp]
	and	eax, 272
	test	rax, rax
	jne	.L8
	mov	eax, 1
	jmp	.L11
.L8:
	mov	rax, QWORD PTR -224[rbp]
	and	eax, 256
	test	rax, rax
	je	.L9
	mov	eax, DWORD PTR -136[rbp]
	mov	edx, DWORD PTR -160[rbp]
	sub	eax, edx
	mov	DWORD PTR -136[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	mov	edx, DWORD PTR -156[rbp]
	sub	eax, edx
	mov	DWORD PTR -132[rbp], eax
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -136[rbp]
	mov	edx, DWORD PTR -200[rbp]
	sub	eax, edx
	mov	DWORD PTR -136[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	mov	edx, DWORD PTR -196[rbp]
	sub	eax, edx
	mov	DWORD PTR -132[rbp], eax
.L10:
	mov	eax, DWORD PTR -136[rbp]
	mov	edi, DWORD PTR -184[rbp]
	cdq
	idiv	edi
	mov	edx, eax
	mov	rax, QWORD PTR -264[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, DWORD PTR -180[rbp]
	cdq
	idiv	esi
	mov	edx, eax
	mov	rax, QWORD PTR -272[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 0
.L11:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_winsize, .-get_winsize
	.section	.rodata
.LC0:
	.string	"WINDOWID"
.LC1:
	.string	"%i %i\n"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -16[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	_scrsize@PLT
	lea	rdi, .LC0[rip]
	call	getenv@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L14
	mov	edi, 0
	call	XOpenDisplay@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	atol@PLT
	mov	rsi, rax
	lea	rax, -16[rbp]
	lea	rcx, 4[rax]
	lea	rdx, -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	get_winsize
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	XCloseDisplay@PLT
.L14:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"621142.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_winsize, %function
get_winsize:
	@ args = 0, pretend = 0, frame = 192
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #192
	str	r0, [fp, #-184]
	str	r1, [fp, #-188]
	str	r2, [fp, #-192]
	str	r3, [fp, #-196]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r2, r3
	ldr	r1, [fp, #-188]
	ldr	r0, [fp, #-184]
	bl	XGetWindowAttributes
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	mov	r3, #1
	b	.L11
.L2:
	sub	r3, fp, #176
	sub	r2, fp, #172
	ldr	r1, [fp, #-188]
	ldr	r0, [fp, #-184]
	bl	XGetWMNormalHints
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	mov	r3, #1
	b	.L11
.L4:
	ldr	r3, [fp, #-172]
	and	r3, r3, #64
	cmp	r3, #0
	bne	.L5
	mov	r3, #1
	b	.L11
.L5:
	ldr	r3, [fp, #-136]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	bne	.L7
.L6:
	mov	r3, #1
	b	.L11
.L7:
	ldr	r3, [fp, #-172]
	and	r3, r3, #272
	cmp	r3, #0
	bne	.L8
	mov	r3, #1
	b	.L11
.L8:
	ldr	r3, [fp, #-172]
	and	r3, r3, #256
	cmp	r3, #0
	beq	.L9
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-112]
	sub	r3, r2, r3
	str	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-108]
	sub	r3, r2, r3
	str	r3, [fp, #-88]
	b	.L10
.L9:
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-152]
	sub	r3, r2, r3
	str	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-148]
	sub	r3, r2, r3
	str	r3, [fp, #-88]
.L10:
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-136]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-192]
	str	r2, [r3]
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-132]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-196]
	str	r2, [r3]
	mov	r3, #0
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.size	get_winsize, .-get_winsize
	.section	.rodata
	.align	2
.LC1:
	.ascii	"WINDOWID\000"
	.align	2
.LC2:
	.ascii	"%i %i\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r0, r3
	bl	_scrsize
	ldr	r0, .L19+4
	bl	getenv
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L16
	mov	r0, #0
	bl	XOpenDisplay
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L16
	ldr	r0, [fp, #-24]
	bl	atol
	mov	r3, r0
	mov	r1, r3
	sub	r3, fp, #16
	add	r3, r3, #4
	sub	r2, fp, #16
	ldr	r0, [fp, #-20]
	bl	get_winsize
	ldr	r0, [fp, #-20]
	bl	XCloseDisplay
.L16:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L19+8
	bl	printf
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
