	.file	"602070.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s:"
.LC1:
	.string	"_E_"
.LC2:
	.string	"%d"
	.text
	.globl	show
	.type	show, @function
show:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	tgetstr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L8
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L3
.L7:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 16384
	test	eax, eax
	je	.L4
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 27
	jne	.L6
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L6:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	add	QWORD PTR -16[rbp], 1
.L3:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L7
	mov	edi, 10
	call	putchar@PLT
.L8:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	show, .-show
	.section	.rodata
.LC3:
	.string	"TERM"
.LC4:
	.string	"TERM=%s\n"
.LC5:
	.string	"ku"
.LC6:
	.string	"kd"
.LC7:
	.string	"kr"
.LC8:
	.string	"kl"
.LC9:
	.string	"k1"
.LC10:
	.string	"k2"
.LC11:
	.string	"k3"
.LC12:
	.string	"k4"
.LC13:
	.string	"k5"
.LC14:
	.string	"k6"
.LC15:
	.string	"k7"
.LC16:
	.string	"k8"
.LC17:
	.string	"k9"
.LC18:
	.string	"k0"
.LC19:
	.string	"kH"
.LC20:
	.string	"kb"
.LC21:
	.string	"kD"
.LC22:
	.string	"kP"
.LC23:
	.string	"kN"
.LC24:
	.string	"ti"
.LC25:
	.string	"te"
.LC26:
	.string	"hs"
.LC27:
	.string	"cl"
.LC28:
	.string	"TERM %s not found.\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, 2096
	mov	DWORD PTR -2084[rbp], edi
	mov	QWORD PTR -2096[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC3[rip]
	call	getenv@PLT
	mov	QWORD PTR -2072[rbp], rax
	mov	rax, QWORD PTR -2072[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -2072[rbp], 0
	je	.L10
	mov	rdx, QWORD PTR -2072[rbp]
	lea	rax, -2064[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	tgetent@PLT
	test	eax, eax
	jle	.L10
	lea	rax, -2064[rbp]
	mov	QWORD PTR -2080[rbp], rax
	lea	rax, -2080[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	call	show
	lea	rax, -2080[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	call	show
	jmp	.L11
.L10:
	mov	rax, QWORD PTR -2072[rbp]
	mov	rsi, rax
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	"602070.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s:\000"
	.align	2
.LC1:
	.ascii	"_E_\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.text
	.align	2
	.global	show
	.syntax unified
	.arm
	.fpu softvfp
	.type	show, %function
show:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	tgetstr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L8
	ldr	r1, [fp, #-20]
	ldr	r0, .L9
	bl	printf
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	b	.L3
.L7:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #16384
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	b	.L5
.L4:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #27
	bne	.L6
	ldr	r0, .L9+4
	bl	printf
	b	.L5
.L6:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L9+8
	bl	printf
.L5:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L3:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L7
	mov	r0, #10
	bl	putchar
.L8:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	show, .-show
	.section	.rodata
	.align	2
.LC3:
	.ascii	"TERM\000"
	.align	2
.LC4:
	.ascii	"TERM=%s\012\000"
	.align	2
.LC5:
	.ascii	"ku\000"
	.align	2
.LC6:
	.ascii	"kd\000"
	.align	2
.LC7:
	.ascii	"kr\000"
	.align	2
.LC8:
	.ascii	"kl\000"
	.align	2
.LC9:
	.ascii	"k1\000"
	.align	2
.LC10:
	.ascii	"k2\000"
	.align	2
.LC11:
	.ascii	"k3\000"
	.align	2
.LC12:
	.ascii	"k4\000"
	.align	2
.LC13:
	.ascii	"k5\000"
	.align	2
.LC14:
	.ascii	"k6\000"
	.align	2
.LC15:
	.ascii	"k7\000"
	.align	2
.LC16:
	.ascii	"k8\000"
	.align	2
.LC17:
	.ascii	"k9\000"
	.align	2
.LC18:
	.ascii	"k0\000"
	.align	2
.LC19:
	.ascii	"kH\000"
	.align	2
.LC20:
	.ascii	"kb\000"
	.align	2
.LC21:
	.ascii	"kD\000"
	.align	2
.LC22:
	.ascii	"kP\000"
	.align	2
.LC23:
	.ascii	"kN\000"
	.align	2
.LC24:
	.ascii	"ti\000"
	.align	2
.LC25:
	.ascii	"te\000"
	.align	2
.LC26:
	.ascii	"hs\000"
	.align	2
.LC27:
	.ascii	"cl\000"
	.align	2
.LC28:
	.ascii	"TERM %s not found.\012\000"
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2064
	sub	sp, sp, #8
	str	r0, [fp, #-2072]
	str	r1, [fp, #-2076]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L16+4
	bl	getenv
	str	r0, [fp, #-2060]
	ldr	r1, [fp, #-2060]
	ldr	r0, .L16+8
	bl	printf
	ldr	r3, [fp, #-2060]
	cmp	r3, #0
	beq	.L12
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-2060]
	mov	r0, r3
	bl	tgetent
	mov	r3, r0
	cmp	r3, #0
	ble	.L12
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [fp, #-2064]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+12
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+16
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+20
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+24
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+28
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+32
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+36
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+40
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+44
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+48
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+52
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+56
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+60
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+64
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+68
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+72
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+76
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+80
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+84
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+88
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+92
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+96
	mov	r0, r3
	bl	show
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L16+100
	mov	r0, r3
	bl	show
	b	.L13
.L12:
	ldr	r1, [fp, #-2060]
	ldr	r0, .L16+104
	bl	printf
.L13:
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC29
	.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
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
