	.file	"951630.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s is exist.\n"
.LC1:
	.string	"%s is not exist.\n"
	.text
	.type	_is_file_exist, @function
_is_file_exist:
.LFB6:
	.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	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	jne	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	_is_file_exist, .-_is_file_exist
	.section	.rodata
.LC2:
	.string	"%s is readable.\n"
.LC3:
	.string	"%s is not readable.\n"
	.text
	.type	_is_file_readable, @function
_is_file_readable:
.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	rax, QWORD PTR -8[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	_is_file_readable, .-_is_file_readable
	.section	.rodata
.LC4:
	.string	"%s is writeable.\n"
.LC5:
	.string	"%s is not writeable.\n"
	.text
	.type	_is_file_writeable, @function
_is_file_writeable:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	jne	.L8
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	_is_file_writeable, .-_is_file_writeable
	.section	.rodata
.LC6:
	.string	"%s is executable.\n"
.LC7:
	.string	"%s is not executable.\n"
	.text
	.type	_is_file_executable, @function
_is_file_executable:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	jne	.L11
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L11:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	_is_file_executable, .-_is_file_executable
	.section	.rodata
.LC8:
	.string	"Usage: ./a.out filepath\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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], 2
	je	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	_is_file_exist
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	_is_file_readable
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	_is_file_writeable
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	_is_file_executable
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"951630.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s is exist.\012\000"
	.align	2
.LC1:
	.ascii	"%s is not exist.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_is_file_exist, %function
_is_file_exist:
	@ 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]
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	access
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r1, [fp, #-8]
	ldr	r0, .L4
	bl	printf
	b	.L3
.L2:
	ldr	r1, [fp, #-8]
	ldr	r0, .L4+4
	bl	printf
.L3:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	.LC1
	.size	_is_file_exist, .-_is_file_exist
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%s is readable.\012\000"
	.align	2
.LC3:
	.ascii	"%s is not readable.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_is_file_readable, %function
_is_file_readable:
	@ 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]
	mov	r1, #4
	ldr	r0, [fp, #-8]
	bl	access
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r1, [fp, #-8]
	ldr	r0, .L9
	bl	printf
	b	.L8
.L7:
	ldr	r1, [fp, #-8]
	ldr	r0, .L9+4
	bl	printf
.L8:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC2
	.word	.LC3
	.size	_is_file_readable, .-_is_file_readable
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%s is writeable.\012\000"
	.align	2
.LC5:
	.ascii	"%s is not writeable.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_is_file_writeable, %function
_is_file_writeable:
	@ 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]
	mov	r1, #2
	ldr	r0, [fp, #-8]
	bl	access
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r1, [fp, #-8]
	ldr	r0, .L14
	bl	printf
	b	.L13
.L12:
	ldr	r1, [fp, #-8]
	ldr	r0, .L14+4
	bl	printf
.L13:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC4
	.word	.LC5
	.size	_is_file_writeable, .-_is_file_writeable
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%s is executable.\012\000"
	.align	2
.LC7:
	.ascii	"%s is not executable.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_is_file_executable, %function
_is_file_executable:
	@ 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]
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	access
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	ldr	r1, [fp, #-8]
	ldr	r0, .L19
	bl	printf
	b	.L18
.L17:
	ldr	r1, [fp, #-8]
	ldr	r0, .L19+4
	bl	printf
.L18:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC6
	.word	.LC7
	.size	_is_file_executable, .-_is_file_executable
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Usage: ./a.out filepath\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #2
	beq	.L22
	ldr	r3, .L24
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L24+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L22:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	_is_file_exist
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	_is_file_readable
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	_is_file_writeable
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	_is_file_executable
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	stderr
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
