	.file	"796534.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Your terminal does not support color"
.LC1:
	.string	"Viola !!! In color ..."
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	call	initscr@PLT
	call	has_colors@PLT
	xor	eax, 1
	test	al, al
	je	.L2
	call	endwin@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	call	start_color@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	init_pair@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, 0
	mov	esi, 256
	mov	rdi, rax
	call	wattr_on@PLT
	mov	eax, DWORD PTR LINES[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	esi, eax
	mov	rax, QWORD PTR stdscr[rip]
	lea	r8, .LC1[rip]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	print_in_middle
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, 0
	mov	esi, 256
	mov	rdi, rax
	call	wattr_off@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	call	endwin@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC2:
	.string	"%s"
	.text
	.globl	print_in_middle
	.type	print_in_middle, @function
print_in_middle:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	QWORD PTR -48[rbp], r8
	cmp	QWORD PTR -24[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR stdscr[rip]
	mov	QWORD PTR -24[rbp], rax
.L5:
	cmp	QWORD PTR -24[rbp], 0
	je	.L6
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR [rax]
	cwde
	jmp	.L7
.L6:
	mov	eax, -1
.L7:
	mov	DWORD PTR -16[rbp], eax
	cmp	QWORD PTR -24[rbp], 0
	je	.L8
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 2[rax]
	cwde
	jmp	.L9
.L8:
	mov	eax, -1
.L9:
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -32[rbp], 0
	je	.L10
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -12[rbp], eax
.L10:
	cmp	DWORD PTR -28[rbp], 0
	je	.L11
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -16[rbp], eax
.L11:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L12
	mov	DWORD PTR -36[rbp], 80
.L12:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm0, DWORD PTR -4[rbp]
	cvttss2si	edx, xmm0
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	rcx, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rcx
	lea	rcx, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_in_middle, .-print_in_middle
	.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	"796534.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Your terminal does not support color\000"
	.align	2
.LC1:
	.ascii	"Viola !!! In color ...\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	bl	initscr
	bl	has_colors
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L2
	bl	endwin
	ldr	r0, .L4
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	bl	start_color
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	init_pair
	ldr	r3, .L4+4
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #256
	mov	r0, r3
	bl	wattr_on
	ldr	r3, .L4+4
	ldr	r0, [r3]
	ldr	r3, .L4+8
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r3, .L4+12
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	print_in_middle
	ldr	r3, .L4+4
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #256
	mov	r0, r3
	bl	wattr_off
	ldr	r3, .L4+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	bl	endwin
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	stdscr
	.word	LINES
	.word	.LC1
	.size	main, .-main
	.global	__aeabi_i2f
	.global	__aeabi_f2iz
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%s\000"
	.text
	.align	2
	.global	print_in_middle
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_in_middle, %function
print_in_middle:
	@ args = 4, 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-24]
.L7:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-24]
	ldrsh	r3, [r3]
	b	.L9
.L8:
	mvn	r3, #0
.L9:
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-24]
	ldrsh	r3, [r3, #2]
	b	.L11
.L10:
	mvn	r3, #0
.L11:
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
.L12:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-20]
.L13:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L14
	mov	r3, #80
	str	r3, [fp, #-36]
.L14:
	ldr	r0, [fp, #4]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-8]	@ float
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_f2iz
	mov	r2, r0
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, .L15+4
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	mvwprintw
	ldr	r3, .L15
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	stdscr
	.word	.LC2
	.size	print_in_middle, .-print_in_middle
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
