	.file	"774301.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 32
	.type	sccsid, @object
	.size	sccsid, 34
sccsid:
	.string	"@(#)tty.sl\t1.14 (gritter) 1/22/06"
	.local	lflag
	.comm	lflag,4,4
	.local	sflag
	.comm	sflag,4,4
	.local	status
	.comm	status,4,4
	.local	progname
	.comm	progname,8,8
.LC0:
	.string	"Usage: %s [-l] [-s]\n"
	.text
	.type	usage, @function
usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.section	.rodata
.LC1:
	.string	"POSIXLY_CORRECT=1"
.LC2:
	.string	"not a tty"
	.align 8
.LC3:
	.string	"not on an active synchronous line"
	.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
	mov	WORD PTR -11[rbp], 29548
	mov	BYTE PTR -9[rbp], 0
	lea	rdi, .LC1[rip]
	call	putenv@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	QWORD PTR progname[rip], rax
	jmp	.L3
.L6:
	cmp	DWORD PTR -28[rbp], 108
	je	.L4
	cmp	DWORD PTR -28[rbp], 115
	jne	.L5
	mov	DWORD PTR sflag[rip], 1
	jmp	.L3
.L4:
	mov	DWORD PTR lflag[rip], 1
	jmp	.L3
.L5:
	call	usage
.L3:
	lea	rdx, -11[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], -1
	jne	.L6
	mov	eax, DWORD PTR sflag[rip]
	test	eax, eax
	je	.L7
	mov	edi, 0
	call	isatty@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	DWORD PTR status[rip], eax
	jmp	.L8
.L7:
	mov	edi, 0
	call	ttyname@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	puts@PLT
	jmp	.L8
.L9:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR status[rip], 1
.L8:
	mov	eax, DWORD PTR lflag[rip]
	test	eax, eax
	je	.L10
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L10:
	mov	eax, DWORD PTR status[rip]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"774301.c"
	.text
	.section	.rodata
	.align	2
	.type	sccsid, %object
	.size	sccsid, 34
sccsid:
	.ascii	"@(#)tty.sl\0111.14 (gritter) 1/22/06\000"
	.local	lflag
	.comm	lflag,4,4
	.local	sflag
	.comm	sflag,4,4
	.local	status
	.comm	status,4,4
	.local	progname
	.comm	progname,4,4
	.align	2
.LC0:
	.ascii	"Usage: %s [-l] [-s]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r2, .L2+4
	ldr	r2, [r2]
	ldr	r1, .L2+8
	mov	r0, r3
	bl	fprintf
	mov	r0, #2
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	progname
	.word	.LC0
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC2:
	.ascii	"POSIXLY_CORRECT=1\000"
	.align	2
.LC3:
	.ascii	"not a tty\000"
	.align	2
.LC4:
	.ascii	"not on an active synchronous line\000"
	.align	2
.LC1:
	.ascii	"ls\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L15+4
	sub	r3, fp, #12
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	ldr	r0, .L15+8
	bl	putenv
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__xpg_basename
	mov	r3, r0
	ldr	r2, .L15+12
	str	r3, [r2]
	b	.L5
.L8:
	ldr	r3, [fp, #-20]
	cmp	r3, #108
	beq	.L6
	ldr	r3, [fp, #-20]
	cmp	r3, #115
	bne	.L7
	ldr	r3, .L15+16
	mov	r2, #1
	str	r2, [r3]
	b	.L5
.L6:
	ldr	r3, .L15+20
	mov	r2, #1
	str	r2, [r3]
	b	.L5
.L7:
	bl	usage
.L5:
	sub	r3, fp, #12
	mov	r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	getopt
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L8
	ldr	r3, .L15+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	mov	r0, #0
	bl	isatty
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, .L15+24
	str	r2, [r3]
	b	.L10
.L9:
	mov	r0, #0
	bl	ttyname
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L11
	ldr	r0, [fp, #-16]
	bl	puts
	b	.L10
.L11:
	ldr	r0, .L15+28
	bl	puts
	ldr	r3, .L15+24
	mov	r2, #1
	str	r2, [r3]
.L10:
	ldr	r3, .L15+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L12
	ldr	r0, .L15+32
	bl	puts
.L12:
	ldr	r3, .L15+24
	ldr	r3, [r3]
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC5
	.word	.LC1
	.word	.LC2
	.word	progname
	.word	sflag
	.word	lflag
	.word	status
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
