	.file	"915945.c"
	.intel_syntax noprefix
	.text
	.data
	.align 32
	.type	copyright, @object
	.size	copyright, 99
copyright:
	.string	"@(#) Copyright (c) 1988, 1993\n\tThe Regents of the University of California.  All rights reserved.\n"
	.align 32
	.type	sccsid, @object
	.size	sccsid, 34
sccsid:
	.string	"@(#)tty.c\t8.1 (Berkeley) 06/06/93"
	.section	.rodata
.LC0:
	.string	"usage: tty [-s]\n"
.LC1:
	.string	"s"
.LC2:
	.string	"not a tty"
	.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
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -16[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -12[rbp]
	movsx	eax, al
	cmp	eax, 115
	jne	.L3
	mov	DWORD PTR -16[rbp], 1
	jmp	.L2
.L3:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 2
	call	exit@PLT
.L2:
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	getopt@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L4
	mov	edi, 0
	mov	eax, 0
	call	ttyname@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	DWORD PTR -16[rbp], 0
	jne	.L5
	cmp	QWORD PTR -8[rbp], 0
	je	.L6
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L7
.L6:
	lea	rax, .LC2[rip]
.L7:
	mov	rdi, rax
	call	puts@PLT
.L5:
	cmp	QWORD PTR -8[rbp], 0
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	exit@PLT
	.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	"915945.c"
	.text
	.data
	.align	2
	.type	copyright, %object
	.size	copyright, 99
copyright:
	.ascii	"@(#) Copyright (c) 1988, 1993\012\011The Regents of"
	.ascii	" the University of California.  All rights reserved"
	.ascii	".\012\000"
	.align	2
	.type	sccsid, %object
	.size	sccsid, 34
sccsid:
	.ascii	"@(#)tty.c\0118.1 (Berkeley) 06/06/93\000"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: tty [-s]\012\000"
	.align	2
.LC1:
	.ascii	"s\000"
	.align	2
.LC2:
	.ascii	"not a tty\000"
	.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]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L2
.L4:
	ldr	r3, [fp, #-12]
	and	r3, r3, #255
	cmp	r3, #115
	bne	.L3
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L2
.L3:
	ldr	r3, .L8
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L8+4
	bl	fwrite
	mov	r0, #2
	bl	exit
.L2:
	ldr	r2, .L8+8
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	getopt
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L4
	mov	r0, #0
	bl	ttyname
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-8]
	b	.L7
.L6:
	ldr	r3, .L8+12
.L7:
	mov	r0, r3
	bl	puts
.L5:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	exit
.L9:
	.align	2
.L8:
	.word	stderr
	.word	.LC0
	.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
