	.file	"770649.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s"
	.align 8
.LC1:
	.string	"This screen has %d rows and %d columns\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	movabs	rax, 8295737305637025098
	mov	QWORD PTR -38[rbp], rax
	mov	DWORD PTR -30[rbp], 1852404340
	mov	WORD PTR -26[rbp], 103
	call	initscr@PLT
	mov	rax, QWORD PTR stdscr[rip]
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR stdscr[rip]
	movzx	eax, WORD PTR 4[rax]
	cwde
	add	eax, 1
	jmp	.L3
.L2:
	mov	eax, -1
.L3:
	mov	DWORD PTR -48[rbp], eax
	mov	rax, QWORD PTR stdscr[rip]
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR stdscr[rip]
	movzx	eax, WORD PTR 6[rax]
	cwde
	add	eax, 1
	jmp	.L5
.L4:
	mov	eax, -1
.L5:
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	movsx	rbx, eax
	lea	rax, -38[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, rbx
	sub	rax, rdx
	shr	rax
	mov	esi, eax
	mov	eax, DWORD PTR -48[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edi, eax
	lea	rax, -38[rbp]
	mov	rcx, rax
	lea	rdx, .LC0[rip]
	mov	eax, 0
	call	mvprintw@PLT
	mov	eax, DWORD PTR -48[rbp]
	lea	edi, -1[rax]
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	r8d, edx
	mov	ecx, eax
	lea	rdx, .LC1[rip]
	mov	esi, 0
	mov	eax, 0
	call	mvprintw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	call	endwin@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"770649.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"This screen has %d rows and %d columns\012\000"
	.align	2
.LC0:
	.ascii	"Just a string\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	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L8+4
	sub	ip, fp, #32
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	bl	initscr
	ldr	r3, .L8+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L8+8
	ldr	r3, [r3]
	ldrsh	r3, [r3, #4]
	add	r3, r3, #1
	b	.L3
.L2:
	mvn	r3, #0
.L3:
	str	r3, [fp, #-40]
	ldr	r3, .L8+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L8+8
	ldr	r3, [r3]
	ldrsh	r3, [r3, #6]
	add	r3, r3, #1
	b	.L5
.L4:
	mvn	r3, #0
.L5:
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r5, r3
	ldr	r4, [fp, #-36]
	sub	r3, fp, #32
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r4, r3
	lsr	r3, r3, #1
	mov	r1, r3
	sub	r3, fp, #32
	ldr	r2, .L8+12
	mov	r0, r5
	bl	mvprintw
	ldr	r3, [fp, #-40]
	sub	r0, r3, #1
	ldr	r3, [fp, #-36]
	str	r3, [sp]
	ldr	r3, [fp, #-40]
	ldr	r2, .L8+16
	mov	r1, #0
	bl	mvprintw
	ldr	r3, .L8+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	ldr	r3, .L8+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	bl	endwin
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC3
	.word	.LC0
	.word	stdscr
	.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
