	.file	"641828.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"USAGE: stat [name_of_file]"
	.text
	.globl	help
	.type	help, @function
help:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	help, .-help
	.section	.rodata
.LC1:
	.string	"%s"
	.text
	.globl	pp
	.type	pp, @function
pp:
.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	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 0
	jne	.L3
	mov	edi, 45
	call	putchar@PLT
	jmp	.L5
.L3:
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pp, .-pp
	.section	.rodata
.LC2:
	.string	"Regular file"
.LC3:
	.string	"Directory"
.LC4:
	.string	"Character device"
.LC5:
	.string	"Block device"
.LC6:
	.string	"Named pipe"
.LC7:
	.string	"Symbolic link"
.LC8:
	.string	"Socket"
	.text
	.globl	print_filetype
	.type	print_filetype, @function
print_filetype:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 61440
	cmp	eax, 32768
	jne	.L7
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L14
.L7:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L9
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L14
.L9:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 61440
	cmp	eax, 8192
	jne	.L10
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L14
.L10:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 61440
	cmp	eax, 24576
	jne	.L11
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L14
.L11:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 61440
	cmp	eax, 4096
	jne	.L12
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L14
.L12:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 61440
	cmp	eax, 40960
	jne	.L13
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L14
.L13:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 61440
	cmp	eax, 49152
	jne	.L14
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L14:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	print_filetype, .-print_filetype
	.section	.rodata
.LC9:
	.string	"lstat"
.LC10:
	.string	"Inode number: %ld\n"
.LC11:
	.string	"Device id: %ld\n"
.LC12:
	.string	"Mode: %d\n"
.LC13:
	.string	"File permissions: "
.LC14:
	.string	"r"
.LC15:
	.string	"w"
.LC16:
	.string	"x"
.LC17:
	.string	"File type: "
.LC18:
	.string	"getpwuid"
.LC19:
	.string	"getgrgid"
.LC20:
	.string	"UID: %d(%s)\n"
.LC21:
	.string	"GID: %d(%s)\n"
.LC22:
	.string	"Size: %ld bytes\n"
.LC23:
	.string	"Block size: %ld\n"
.LC24:
	.string	"No of blocks used: %ld\n"
.LC25:
	.string	"Last access time: %s"
.LC26:
	.string	"Last modified time: %s"
.LC27:
	.string	"Last status change time: %s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -196[rbp], 2
	je	.L16
	mov	eax, 0
	call	help
	mov	edi, 1
	call	exit@PLT
.L16:
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	lstat@PLT
	mov	DWORD PTR -184[rbp], eax
	cmp	DWORD PTR -184[rbp], 0
	jns	.L17
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	mov	eax, DWORD PTR -136[rbp]
	mov	DWORD PTR -180[rbp], eax
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -180[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -180[rbp]
	and	eax, 256
	lea	rsi, .LC14[rip]
	mov	edi, eax
	call	pp
	mov	eax, DWORD PTR -180[rbp]
	and	eax, 128
	lea	rsi, .LC15[rip]
	mov	edi, eax
	call	pp
	mov	eax, DWORD PTR -180[rbp]
	and	eax, 64
	lea	rsi, .LC16[rip]
	mov	edi, eax
	call	pp
	mov	eax, DWORD PTR -180[rbp]
	and	eax, 32
	lea	rsi, .LC14[rip]
	mov	edi, eax
	call	pp
	mov	eax, DWORD PTR -180[rbp]
	and	eax, 16
	lea	rsi, .LC15[rip]
	mov	edi, eax
	call	pp
	mov	eax, DWORD PTR -180[rbp]
	and	eax, 8
	lea	rsi, .LC16[rip]
	mov	edi, eax
	call	pp
	mov	eax, DWORD PTR -180[rbp]
	and	eax, 4
	lea	rsi, .LC14[rip]
	mov	edi, eax
	call	pp
	mov	eax, DWORD PTR -180[rbp]
	and	eax, 2
	lea	rsi, .LC15[rip]
	mov	edi, eax
	call	pp
	mov	eax, DWORD PTR -180[rbp]
	and	eax, 1
	lea	rsi, .LC16[rip]
	mov	edi, eax
	call	pp
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -180[rbp]
	mov	edi, eax
	call	print_filetype
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -132[rbp]
	mov	edi, eax
	call	getpwuid@PLT
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], 0
	jne	.L18
	lea	rdi, .LC18[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	mov	eax, DWORD PTR -128[rbp]
	mov	edi, eax
	call	getgrgid@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jne	.L19
	lea	rdi, .LC19[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	rax, QWORD PTR -176[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -128[rbp]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -160[rbp]
	add	rax, 72
	mov	rdi, rax
	call	ctime@PLT
	mov	rsi, rax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -160[rbp]
	add	rax, 88
	mov	rdi, rax
	call	ctime@PLT
	mov	rsi, rax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -160[rbp]
	add	rax, 104
	mov	rdi, rax
	call	ctime@PLT
	mov	rsi, rax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"641828.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"USAGE: stat [name_of_file]\000"
	.text
	.align	2
	.global	help
	.syntax unified
	.arm
	.fpu softvfp
	.type	help, %function
help:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	puts
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	help, .-help
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%s\000"
	.text
	.align	2
	.global	pp
	.syntax unified
	.arm
	.fpu softvfp
	.type	pp, %function
pp:
	@ 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	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L5
	mov	r0, #45
	bl	putchar
	b	.L7
.L5:
	ldr	r1, [fp, #-12]
	ldr	r0, .L8
	bl	printf
.L7:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC1
	.size	pp, .-pp
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Regular file\000"
	.align	2
.LC3:
	.ascii	"Directory\000"
	.align	2
.LC4:
	.ascii	"Character device\000"
	.align	2
.LC5:
	.ascii	"Block device\000"
	.align	2
.LC6:
	.ascii	"Named pipe\000"
	.align	2
.LC7:
	.ascii	"Symbolic link\000"
	.align	2
.LC8:
	.ascii	"Socket\000"
	.text
	.align	2
	.global	print_filetype
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_filetype, %function
print_filetype:
	@ 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]
	ldr	r3, [fp, #-8]
	and	r3, r3, #61440
	cmp	r3, #32768
	bne	.L11
	ldr	r0, .L19
	bl	printf
	b	.L18
.L11:
	ldr	r3, [fp, #-8]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L13
	ldr	r0, .L19+4
	bl	printf
	b	.L18
.L13:
	ldr	r3, [fp, #-8]
	and	r3, r3, #61440
	cmp	r3, #8192
	bne	.L14
	ldr	r0, .L19+8
	bl	printf
	b	.L18
.L14:
	ldr	r3, [fp, #-8]
	and	r3, r3, #61440
	cmp	r3, #24576
	bne	.L15
	ldr	r0, .L19+12
	bl	printf
	b	.L18
.L15:
	ldr	r3, [fp, #-8]
	and	r3, r3, #61440
	cmp	r3, #4096
	bne	.L16
	ldr	r0, .L19+16
	bl	printf
	b	.L18
.L16:
	ldr	r3, [fp, #-8]
	and	r3, r3, #61440
	cmp	r3, #40960
	bne	.L17
	ldr	r0, .L19+20
	bl	printf
	b	.L18
.L17:
	ldr	r3, [fp, #-8]
	and	r3, r3, #61440
	cmp	r3, #49152
	bne	.L18
	ldr	r0, .L19+24
	bl	printf
.L18:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	print_filetype, .-print_filetype
	.section	.rodata
	.align	2
.LC9:
	.ascii	"lstat\000"
	.align	2
.LC10:
	.ascii	"Inode number: %ld\012\000"
	.align	2
.LC11:
	.ascii	"Device id: %ld\012\000"
	.align	2
.LC12:
	.ascii	"Mode: %d\012\000"
	.align	2
.LC13:
	.ascii	"File permissions: \000"
	.align	2
.LC14:
	.ascii	"r\000"
	.align	2
.LC15:
	.ascii	"w\000"
	.align	2
.LC16:
	.ascii	"x\000"
	.align	2
.LC17:
	.ascii	"File type: \000"
	.align	2
.LC18:
	.ascii	"getpwuid\000"
	.align	2
.LC19:
	.ascii	"getgrgid\000"
	.align	2
.LC20:
	.ascii	"UID: %d(%s)\012\000"
	.align	2
.LC21:
	.ascii	"GID: %d(%s)\012\000"
	.align	2
.LC22:
	.ascii	"Size: %ld bytes\012\000"
	.align	2
.LC23:
	.ascii	"Block size: %ld\012\000"
	.align	2
.LC24:
	.ascii	"No of blocks used: %ld\012\000"
	.align	2
.LC25:
	.ascii	"Last access time: %s\000"
	.align	2
.LC26:
	.ascii	"Last modified time: %s\000"
	.align	2
.LC27:
	.ascii	"Last status change time: %s\000"
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-120]
	cmp	r3, #2
	beq	.L22
	bl	help
	mov	r0, #1
	bl	exit
.L22:
	mov	r3, #0
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-124]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #100
	mov	r1, r2
	mov	r0, r3
	bl	lstat
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bge	.L23
	ldr	r0, .L28+4
	bl	perror
	mov	r0, #1
	bl	exit
.L23:
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-88]
	mov	r1, r3
	ldr	r0, .L28+8
	bl	printf
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	ldr	r0, .L28+12
	bl	printf
	ldr	r1, [fp, #-104]
	ldr	r0, .L28+16
	bl	printf
	ldr	r0, .L28+20
	bl	printf
	ldr	r3, [fp, #-104]
	and	r3, r3, #256
	ldr	r1, .L28+24
	mov	r0, r3
	bl	pp
	ldr	r3, [fp, #-104]
	and	r3, r3, #128
	ldr	r1, .L28+28
	mov	r0, r3
	bl	pp
	ldr	r3, [fp, #-104]
	and	r3, r3, #64
	ldr	r1, .L28+32
	mov	r0, r3
	bl	pp
	ldr	r3, [fp, #-104]
	and	r3, r3, #32
	ldr	r1, .L28+24
	mov	r0, r3
	bl	pp
	ldr	r3, [fp, #-104]
	and	r3, r3, #16
	ldr	r1, .L28+28
	mov	r0, r3
	bl	pp
	ldr	r3, [fp, #-104]
	and	r3, r3, #8
	ldr	r1, .L28+32
	mov	r0, r3
	bl	pp
	ldr	r3, [fp, #-104]
	and	r3, r3, #4
	ldr	r1, .L28+24
	mov	r0, r3
	bl	pp
	ldr	r3, [fp, #-104]
	and	r3, r3, #2
	ldr	r1, .L28+28
	mov	r0, r3
	bl	pp
	ldr	r3, [fp, #-104]
	and	r3, r3, #1
	ldr	r1, .L28+32
	mov	r0, r3
	bl	pp
	mov	r0, #10
	bl	putchar
	ldr	r0, .L28+36
	bl	printf
	ldr	r0, [fp, #-104]
	bl	print_filetype
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-76]
	mov	r0, r3
	bl	getpwuid
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L24
	ldr	r0, .L28+40
	bl	perror
	mov	r0, #1
	bl	exit
.L24:
	ldr	r3, [fp, #-72]
	mov	r0, r3
	bl	getgrgid
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L28+44
	bl	perror
	mov	r0, #1
	bl	exit
.L25:
	ldr	r1, [fp, #-76]
	ldr	r3, [fp, #-116]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L28+48
	bl	printf
	ldr	r1, [fp, #-72]
	ldr	r3, [fp, #-112]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L28+52
	bl	printf
	ldr	r3, [fp, #-56]
	mov	r1, r3
	ldr	r0, .L28+56
	bl	printf
	ldr	r3, [fp, #-52]
	mov	r1, r3
	ldr	r0, .L28+60
	bl	printf
	ldr	r3, [fp, #-48]
	mov	r1, r3
	ldr	r0, .L28+64
	bl	printf
	sub	r3, fp, #100
	add	r3, r3, #56
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L28+68
	bl	printf
	sub	r3, fp, #100
	add	r3, r3, #64
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L28+72
	bl	printf
	sub	r3, fp, #100
	add	r3, r3, #72
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L28+76
	bl	printf
	ldr	r0, [fp, #-116]
	bl	free
	ldr	r0, [fp, #-112]
	bl	free
	mov	r3, #0
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC28
	.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
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
