	.file	"68888817.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 32
	.type	sccsid, @object
	.size	sccsid, 33
sccsid:
	.string	"@(#)mesg.c\t1.2 (gritter) 7/29/05"
	.local	progname
	.comm	progname,8,8
	.local	status
	.comm	status,4,4
.LC0:
	.string	"%s: usage: %s [-y] [-n]\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	rcx, QWORD PTR progname[rip]
	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	"%s: cannot change mode\n"
	.text
	.type	smode, @function
smode:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	chmod@PLT
	test	eax, eax
	jns	.L4
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	smode, .-smode
	.section	.rodata
.LC2:
	.string	"%s: illegal option -- %c\n"
.LC3:
	.string	"%s: no tty\n"
.LC4:
	.string	"%s: cannot stat\n"
.LC5:
	.string	"is %c\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -172[rbp], 0
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	QWORD PTR progname[rip], rax
	cmp	DWORD PTR -180[rbp], 1
	jle	.L6
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L6
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L6
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L6
	add	QWORD PTR -192[rbp], 8
	sub	DWORD PTR -180[rbp], 1
.L6:
	cmp	DWORD PTR -180[rbp], 1
	jle	.L27
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 121
	je	.L8
	cmp	eax, 121
	jg	.L9
	cmp	eax, 45
	je	.L10
	cmp	eax, 110
	jne	.L9
.L8:
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -172[rbp], eax
	jmp	.L7
.L10:
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 110
	je	.L11
	cmp	eax, 121
	jne	.L14
.L11:
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -172[rbp], eax
	nop
	jmp	.L7
.L15:
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	ecx, al
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	add	rdx, 1
	mov	QWORD PTR [rax], rdx
.L14:
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L15
	call	usage
	jmp	.L7
.L9:
	call	usage
	jmp	.L7
.L27:
	nop
.L7:
	mov	edi, 0
	call	ttyname@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jne	.L16
	mov	edi, 1
	call	ttyname@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jne	.L16
	mov	edi, 2
	call	ttyname@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jne	.L16
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 2
	jmp	.L25
.L16:
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jns	.L18
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 2
	jmp	.L25
.L18:
	cmp	DWORD PTR -172[rbp], 121
	je	.L19
	cmp	DWORD PTR -172[rbp], 121
	jg	.L20
	cmp	DWORD PTR -172[rbp], 0
	je	.L21
	cmp	DWORD PTR -172[rbp], 110
	je	.L22
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 16
	test	eax, eax
	je	.L23
	mov	eax, 121
	jmp	.L24
.L23:
	mov	eax, 110
.L24:
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 16
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	DWORD PTR status[rip], eax
	jmp	.L20
.L19:
	mov	eax, DWORD PTR -136[rbp]
	or	eax, 16
	mov	edx, eax
	mov	rax, QWORD PTR -168[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	smode
	jmp	.L20
.L22:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, -17
	mov	edx, eax
	mov	rax, QWORD PTR -168[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	smode
	mov	DWORD PTR status[rip], 1
	nop
.L20:
	mov	eax, DWORD PTR status[rip]
.L25:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"68888817.c"
	.text
	.section	.rodata
	.align	2
	.type	sccsid, %object
	.size	sccsid, 33
sccsid:
	.ascii	"@(#)mesg.c\0111.2 (gritter) 7/29/05\000"
	.local	progname
	.comm	progname,4,4
	.local	status
	.comm	status,4,4
	.align	2
.LC0:
	.ascii	"%s: usage: %s [-y] [-n]\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	r0, [r3]
	ldr	r3, .L2+4
	ldr	r2, [r3]
	ldr	r3, .L2+4
	ldr	r3, [r3]
	ldr	r1, .L2+8
	bl	fprintf
	mov	r0, #2
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	progname
	.word	.LC0
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%s: cannot change mode\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	smode, %function
smode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	chmod
	mov	r3, r0
	cmp	r3, #0
	bge	.L6
	ldr	r3, .L7
	ldr	r3, [r3]
	ldr	r2, .L7+4
	ldr	r2, [r2]
	ldr	r1, .L7+8
	mov	r0, r3
	bl	fprintf
	mov	r0, #2
	bl	exit
.L6:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	stderr
	.word	progname
	.word	.LC1
	.size	smode, .-smode
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%s: illegal option -- %c\012\000"
	.align	2
.LC3:
	.ascii	"%s: no tty\012\000"
	.align	2
.LC4:
	.ascii	"%s: cannot stat\012\000"
	.align	2
.LC5:
	.ascii	"is %c\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-116]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__xpg_basename
	mov	r3, r0
	ldr	r2, .L32+4
	str	r3, [r2]
	ldr	r3, [fp, #-112]
	cmp	r3, #1
	ble	.L10
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L10
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L10
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-112]
	sub	r3, r3, #1
	str	r3, [fp, #-112]
.L10:
	ldr	r3, [fp, #-112]
	cmp	r3, #1
	ble	.L31
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L12
	cmp	r3, #121
	bgt	.L13
	cmp	r3, #45
	beq	.L14
	cmp	r3, #110
	bne	.L13
.L12:
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-108]
	b	.L11
.L14:
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #110
	beq	.L15
	cmp	r3, #121
	bne	.L18
.L15:
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-108]
	nop
	b	.L11
.L19:
	ldr	r3, .L32+8
	ldr	r0, [r3]
	ldr	r3, .L32+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, .L32+12
	bl	fprintf
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
.L18:
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L19
	bl	usage
	b	.L11
.L13:
	bl	usage
	b	.L11
.L31:
	nop
.L11:
	mov	r0, #0
	bl	ttyname
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L20
	mov	r0, #1
	bl	ttyname
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L20
	mov	r0, #2
	bl	ttyname
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L32+8
	ldr	r3, [r3]
	ldr	r2, .L32+4
	ldr	r2, [r2]
	ldr	r1, .L32+16
	mov	r0, r3
	bl	fprintf
	mov	r3, #2
	b	.L29
.L20:
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bge	.L22
	ldr	r3, .L32+8
	ldr	r3, [r3]
	ldr	r2, .L32+4
	ldr	r2, [r2]
	ldr	r1, .L32+20
	mov	r0, r3
	bl	fprintf
	mov	r3, #2
	b	.L29
.L22:
	ldr	r3, [fp, #-108]
	cmp	r3, #121
	beq	.L23
	ldr	r3, [fp, #-108]
	cmp	r3, #121
	bgt	.L24
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-108]
	cmp	r3, #110
	beq	.L26
	b	.L24
.L25:
	ldr	r3, [fp, #-84]
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L27
	mov	r3, #121
	b	.L28
.L27:
	mov	r3, #110
.L28:
	mov	r1, r3
	ldr	r0, .L32+24
	bl	printf
	ldr	r3, [fp, #-84]
	and	r3, r3, #16
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, .L32+28
	str	r2, [r3]
	b	.L24
.L23:
	ldr	r3, [fp, #-84]
	orr	r3, r3, #16
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	smode
	b	.L24
.L26:
	ldr	r3, [fp, #-84]
	bic	r3, r3, #16
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	smode
	ldr	r3, .L32+28
	mov	r2, #1
	str	r2, [r3]
	nop
.L24:
	ldr	r3, .L32+28
	ldr	r3, [r3]
.L29:
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC6
	.word	progname
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	status
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
