	.file	"256854.c"
	.intel_syntax noprefix
	.text
	.globl	copyright
	.data
	.align 32
	.type	copyright, @object
	.size	copyright, 88
copyright:
	.string	"@(#) Copyright (c) 1980 Regents of the University of California.\n All rights reserved.\n"
	.align 32
	.type	sccsid, @object
	.size	sccsid, 37
sccsid:
	.string	"@(#)prmail.c\t5.1 (Berkeley) 05/31/85"
	.section	.rodata
.LC0:
	.string	"/usr/spool/mail"
.LC1:
	.string	"USER"
.LC2:
	.string	"Who are you?"
	.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
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	sub	DWORD PTR -36[rbp], 1
	add	QWORD PTR -48[rbp], 8
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	chdir@PLT
	test	eax, eax
	jns	.L2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L7
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	getenv@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L4
	mov	eax, 0
	call	getuid@PLT
	mov	edi, eax
	call	getpwuid@PLT
	mov	rbx, rax
	test	rbx, rbx
	jne	.L5
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR -24[rbp], rax
.L4:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	prmail
	jmp	.L6
.L8:
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -48[rbp], rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	prmail
.L7:
	sub	DWORD PTR -36[rbp], 1
	cmp	DWORD PTR -36[rbp], 0
	jns	.L8
.L6:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	"No mail for %s.\n"
.LC4:
	.string	"Mailbox for %s unreadable\n"
.LC5:
	.string	">>> %s <<<\n"
.LC6:
	.string	"more %s"
.LC7:
	.string	"-----\n"
	.text
	.globl	prmail
	.type	prmail, @function
prmail:
.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, 432
	mov	QWORD PTR -424[rbp], rdi
	mov	DWORD PTR -428[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -416[rbp]
	mov	rax, QWORD PTR -424[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jns	.L10
	mov	rax, QWORD PTR -424[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
.L10:
	mov	rax, QWORD PTR -424[rbp]
	mov	esi, 4
	mov	rdi, rax
	mov	eax, 0
	call	access@PLT
	test	eax, eax
	jns	.L12
	mov	rax, QWORD PTR -424[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
.L12:
	cmp	DWORD PTR -428[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -424[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	mov	rdx, QWORD PTR -424[rbp]
	lea	rax, -272[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	system@PLT
	cmp	DWORD PTR -428[rbp], 0
	je	.L15
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L15:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	prmail, .-prmail
	.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	"256854.c"
	.text
	.global	copyright
	.data
	.align	2
	.type	copyright, %object
	.size	copyright, 88
copyright:
	.ascii	"@(#) Copyright (c) 1980 Regents of the University o"
	.ascii	"f California.\012 All rights reserved.\012\000"
	.align	2
	.type	sccsid, %object
	.size	sccsid, 37
sccsid:
	.ascii	"@(#)prmail.c\0115.1 (Berkeley) 05/31/85\000"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/usr/spool/mail\000"
	.align	2
.LC1:
	.ascii	"USER\000"
	.align	2
.LC2:
	.ascii	"Who are you?\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	str	r3, [fp, #-28]
	ldr	r0, .L9
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L9
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L9+4
	bl	getenv
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L4
	bl	getuid
	mov	r3, r0
	mov	r0, r3
	bl	getpwuid
	mov	r4, r0
	cmp	r4, #0
	bne	.L5
	ldr	r0, .L9+8
	bl	puts
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, [r4]
	str	r3, [fp, #-16]
.L4:
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	prmail
	b	.L6
.L8:
	ldr	r3, [fp, #-28]
	add	r2, r3, #4
	str	r2, [fp, #-28]
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	prmail
.L7:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L8
.L6:
	mov	r0, #0
	bl	exit
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"No mail for %s.\012\000"
	.align	2
.LC4:
	.ascii	"Mailbox for %s unreadable\012\000"
	.align	2
.LC5:
	.ascii	">>> %s <<<\012\000"
	.align	2
.LC6:
	.ascii	"more %s\000"
	.align	2
.LC7:
	.ascii	"-----\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	prmail
	.syntax unified
	.arm
	.fpu softvfp
	.type	prmail, %function
prmail:
	@ args = 0, pretend = 0, frame = 360
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #360
	str	r0, [fp, #-360]
	str	r1, [fp, #-364]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #356
	mov	r1, r3
	ldr	r0, [fp, #-360]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bge	.L12
	ldr	r1, [fp, #-360]
	ldr	r0, .L19+4
	bl	printf
	b	.L17
.L12:
	mov	r1, #4
	ldr	r0, [fp, #-360]
	bl	access
	mov	r3, r0
	cmp	r3, #0
	bge	.L14
	ldr	r1, [fp, #-360]
	ldr	r0, .L19+8
	bl	printf
	b	.L17
.L14:
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	beq	.L15
	ldr	r1, [fp, #-360]
	ldr	r0, .L19+12
	bl	printf
.L15:
	sub	r3, fp, #264
	ldr	r2, [fp, #-360]
	ldr	r1, .L19+16
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #264
	mov	r0, r3
	bl	system
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	beq	.L17
	ldr	r0, .L19+20
	bl	puts
.L17:
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC8
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	prmail, .-prmail
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
