	.file	"225141838.c"
	.intel_syntax noprefix
	.text
	.globl	check_reg
	.type	check_reg, @function
check_reg:
.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, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 32768
	jne	.L2
	mov	eax, 1
	jmp	.L4
.L2:
	mov	eax, 0
.L4:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	check_reg, .-check_reg
	.globl	check_dir
	.type	check_dir, @function
check_dir:
.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, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L7
	mov	eax, 1
	jmp	.L9
.L7:
	mov	eax, 0
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	check_dir, .-check_dir
	.section	.rodata
.LC0:
	.string	"input.txt"
.LC1:
	.string	"yes"
.LC2:
	.string	"no"
	.align 8
.LC3:
	.string	"input.txt is a regular file? %s\n"
.LC4:
	.string	"docs"
.LC5:
	.string	"docs is a directory? %s\n"
.LC6:
	.string	"/input.txt"
	.align 8
.LC7:
	.string	"/input.txt is a regular file? %s\n"
.LC8:
	.string	"/docs"
.LC9:
	.string	"/docs is a directory? %s\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
	lea	rdi, .LC0[rip]
	call	check_reg
	test	eax, eax
	je	.L12
	lea	rax, .LC1[rip]
	jmp	.L13
.L12:
	lea	rax, .LC2[rip]
.L13:
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	call	check_dir
	test	eax, eax
	je	.L14
	lea	rax, .LC1[rip]
	jmp	.L15
.L14:
	lea	rax, .LC2[rip]
.L15:
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	call	check_reg
	test	eax, eax
	je	.L16
	lea	rax, .LC1[rip]
	jmp	.L17
.L16:
	lea	rax, .LC2[rip]
.L17:
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC8[rip]
	call	check_dir
	test	eax, eax
	je	.L18
	lea	rax, .LC1[rip]
	jmp	.L19
.L18:
	lea	rax, .LC2[rip]
.L19:
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	pop	rbp
	.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	"225141838.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	check_reg
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_reg, %function
check_reg:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #32768
	bne	.L2
	mov	r3, #1
	b	.L4
.L2:
	mov	r3, #0
.L4:
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.size	check_reg, .-check_reg
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	check_dir
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_dir, %function
check_dir:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L9
	mov	r3, #1
	b	.L11
.L9:
	mov	r3, #0
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC1
	.size	check_dir, .-check_dir
	.section	.rodata
	.align	2
.LC2:
	.ascii	"input.txt\000"
	.align	2
.LC3:
	.ascii	"yes\000"
	.align	2
.LC4:
	.ascii	"no\000"
	.align	2
.LC5:
	.ascii	"input.txt is a regular file? %s\012\000"
	.align	2
.LC6:
	.ascii	"docs\000"
	.align	2
.LC7:
	.ascii	"docs is a directory? %s\012\000"
	.align	2
.LC8:
	.ascii	"/input.txt\000"
	.align	2
.LC9:
	.ascii	"/input.txt is a regular file? %s\012\000"
	.align	2
.LC10:
	.ascii	"/docs\000"
	.align	2
.LC11:
	.ascii	"/docs is a directory? %s\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L25
	bl	check_reg
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L25+4
	b	.L17
.L16:
	ldr	r3, .L25+8
.L17:
	mov	r1, r3
	ldr	r0, .L25+12
	bl	printf
	ldr	r0, .L25+16
	bl	check_dir
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r3, .L25+4
	b	.L19
.L18:
	ldr	r3, .L25+8
.L19:
	mov	r1, r3
	ldr	r0, .L25+20
	bl	printf
	ldr	r0, .L25+24
	bl	check_reg
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L25+4
	b	.L21
.L20:
	ldr	r3, .L25+8
.L21:
	mov	r1, r3
	ldr	r0, .L25+28
	bl	printf
	ldr	r0, .L25+32
	bl	check_dir
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r3, .L25+4
	b	.L23
.L22:
	ldr	r3, .L25+8
.L23:
	mov	r1, r3
	ldr	r0, .L25+36
	bl	printf
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
