	.file	"92328470.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"TERM"
	.align 8
.LC1:
	.string	"TERM environment variable not defined\n"
.LC2:
	.string	"tgetent: database not found\n"
.LC3:
	.string	"tgetent: no such entry\n"
.LC4:
	.string	"tgetent: success\n"
	.align 8
.LC5:
	.string	"Unknown tgetent return variable\n"
.LC6:
	.string	"cl"
.LC7:
	.string	"cm"
.LC8:
	.string	"am"
.LC9:
	.string	"li"
.LC10:
	.string	"co"
.LC11:
	.string	"cl: %s\n"
.LC12:
	.string	"cm: %s\n"
.LC13:
	.string	"am: %d\n"
.LC14:
	.string	"li: %d\n"
.LC15:
	.string	"co: %d\n"
	.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, 2112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -2064[rbp], 0
	mov	QWORD PTR -2056[rbp], 0
	lea	rdx, -2048[rbp]
	mov	eax, 0
	mov	ecx, 254
	mov	rdi, rdx
	rep stosq
	lea	rdi, .LC0[rip]
	call	getenv@PLT
	mov	QWORD PTR -2088[rbp], rax
	cmp	QWORD PTR -2088[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 38
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L9
.L2:
	mov	rdx, QWORD PTR -2088[rbp]
	lea	rax, -2064[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	tgetent@PLT
	mov	DWORD PTR -2104[rbp], eax
	cmp	DWORD PTR -2104[rbp], 1
	je	.L4
	cmp	DWORD PTR -2104[rbp], 1
	jg	.L5
	cmp	DWORD PTR -2104[rbp], -1
	je	.L6
	cmp	DWORD PTR -2104[rbp], 0
	je	.L7
	jmp	.L5
.L6:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	jmp	.L8
.L7:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	jmp	.L8
.L4:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	jmp	.L8
.L5:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	nop
.L8:
	mov	esi, 0
	lea	rdi, .LC6[rip]
	call	tgetstr@PLT
	mov	QWORD PTR -2080[rbp], rax
	mov	esi, 0
	lea	rdi, .LC7[rip]
	call	tgetstr@PLT
	mov	QWORD PTR -2072[rbp], rax
	lea	rdi, .LC8[rip]
	call	tgetflag@PLT
	mov	DWORD PTR -2100[rbp], eax
	lea	rdi, .LC9[rip]
	call	tgetnum@PLT
	mov	DWORD PTR -2096[rbp], eax
	lea	rdi, .LC10[rip]
	call	tgetnum@PLT
	mov	DWORD PTR -2092[rbp], eax
	mov	rax, QWORD PTR -2080[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -2072[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -2100[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -2096[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -2092[rbp]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"92328470.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"TERM\000"
	.align	2
.LC1:
	.ascii	"TERM environment variable not defined\012\000"
	.align	2
.LC2:
	.ascii	"tgetent: database not found\012\000"
	.align	2
.LC3:
	.ascii	"tgetent: no such entry\012\000"
	.align	2
.LC4:
	.ascii	"tgetent: success\012\000"
	.align	2
.LC5:
	.ascii	"Unknown tgetent return variable\012\000"
	.align	2
.LC6:
	.ascii	"cl\000"
	.align	2
.LC7:
	.ascii	"cm\000"
	.align	2
.LC8:
	.ascii	"am\000"
	.align	2
.LC9:
	.ascii	"li\000"
	.align	2
.LC10:
	.ascii	"co\000"
	.align	2
.LC11:
	.ascii	"cl: %s\012\000"
	.align	2
.LC12:
	.ascii	"cm: %s\012\000"
	.align	2
.LC13:
	.ascii	"am: %d\012\000"
	.align	2
.LC14:
	.ascii	"li: %d\012\000"
	.align	2
.LC15:
	.ascii	"co: %d\012\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2080
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2080
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2056]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	ldr	r2, .L11+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L11+8
	bl	getenv
	str	r0, [fp, #-2084]
	ldr	r3, [fp, #-2084]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L11+12
	ldr	r3, [r3]
	mov	r2, #38
	mov	r1, #1
	ldr	r0, .L11+16
	bl	fwrite
	mov	r3, #0
	b	.L9
.L2:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-2084]
	mov	r0, r3
	bl	tgetent
	str	r0, [fp, #-2080]
	ldr	r3, [fp, #-2080]
	cmp	r3, #1
	beq	.L4
	ldr	r3, [fp, #-2080]
	cmp	r3, #1
	bgt	.L5
	ldr	r3, [fp, #-2080]
	cmn	r3, #1
	beq	.L6
	ldr	r3, [fp, #-2080]
	cmp	r3, #0
	beq	.L7
	b	.L5
.L6:
	ldr	r3, .L11+12
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L11+20
	bl	fwrite
	b	.L8
.L7:
	ldr	r3, .L11+12
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L11+24
	bl	fwrite
	b	.L8
.L4:
	ldr	r3, .L11+12
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L11+28
	bl	fwrite
	b	.L8
.L5:
	ldr	r3, .L11+12
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L11+32
	bl	fwrite
	nop
.L8:
	mov	r1, #0
	ldr	r0, .L11+36
	bl	tgetstr
	str	r0, [fp, #-2076]
	mov	r1, #0
	ldr	r0, .L11+40
	bl	tgetstr
	str	r0, [fp, #-2072]
	ldr	r0, .L11+44
	bl	tgetflag
	str	r0, [fp, #-2068]
	ldr	r0, .L11+48
	bl	tgetnum
	str	r0, [fp, #-2064]
	ldr	r0, .L11+52
	bl	tgetnum
	str	r0, [fp, #-2060]
	ldr	r1, [fp, #-2076]
	ldr	r0, .L11+56
	bl	printf
	ldr	r1, [fp, #-2072]
	ldr	r0, .L11+60
	bl	printf
	ldr	r1, [fp, #-2068]
	ldr	r0, .L11+64
	bl	printf
	ldr	r1, [fp, #-2064]
	ldr	r0, .L11+68
	bl	printf
	ldr	r1, [fp, #-2060]
	ldr	r0, .L11+72
	bl	printf
	mov	r3, #0
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC16
	.word	2044
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
