	.file	"312706.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"dirwalk: can't open %s\n"
.LC1:
	.string	"."
.LC2:
	.string	".."
.LC3:
	.string	"dirwalk: name %s %s too long\n"
.LC4:
	.string	"%s/%s"
	.text
	.globl	dirwalk
	.type	dirwalk, @function
dirwalk:
.LFB6:
	.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, 1080
	.cfi_offset 3, -24
	mov	QWORD PTR -1080[rbp], rdi
	mov	QWORD PTR -1088[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1080[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -1072[rbp], rax
	cmp	QWORD PTR -1072[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1080[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L1
.L8:
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, 19
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L4
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, 19
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	jmp	.L4
.L6:
	mov	rax, QWORD PTR -1080[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, 19
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	add	rax, 2
	cmp	rax, 1024
	jbe	.L7
	mov	rax, QWORD PTR -1064[rbp]
	lea	rcx, 19[rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1080[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L4
.L7:
	mov	rax, QWORD PTR -1064[rbp]
	lea	rcx, 19[rax]
	mov	rdx, QWORD PTR -1080[rbp]
	lea	rax, -1056[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1056[rbp]
	mov	rdx, QWORD PTR -1088[rbp]
	mov	rdi, rax
	call	rdx
.L4:
	mov	rax, QWORD PTR -1072[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -1064[rbp], rax
	cmp	QWORD PTR -1064[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR -1072[rbp]
	mov	rdi, rax
	call	closedir@PLT
.L1:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	dirwalk, .-dirwalk
	.section	.rodata
.LC5:
	.string	"fsize: can't access %s\n"
.LC6:
	.string	"%8ld %s\n"
	.text
	.globl	fsize
	.type	fsize, @function
fsize:
.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
	cmp	eax, -1
	jne	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -168[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L13
	mov	rax, QWORD PTR -168[rbp]
	lea	rsi, fsize[rip]
	mov	rdi, rax
	call	dirwalk
.L13:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -168[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fsize, .-fsize
	.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 1
	jne	.L18
	lea	rdi, .LC1[rip]
	call	fsize
	jmp	.L17
.L19:
	add	QWORD PTR -16[rbp], 8
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	fsize
.L18:
	sub	DWORD PTR -4[rbp], 1
	cmp	DWORD PTR -4[rbp], 0
	jg	.L19
.L17:
	mov	eax, 0
	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	"312706.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"dirwalk: can't open %s\012\000"
	.align	2
.LC1:
	.ascii	".\000"
	.align	2
.LC2:
	.ascii	"..\000"
	.align	2
.LC3:
	.ascii	"dirwalk: name %s %s too long\012\000"
	.align	2
.LC4:
	.ascii	"%s/%s\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dirwalk
	.syntax unified
	.arm
	.fpu softvfp
	.type	dirwalk, %function
dirwalk:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1040
	sub	sp, sp, #12
	str	r0, [fp, #-1056]
	str	r1, [fp, #-1060]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, [fp, #-1056]
	bl	opendir
	str	r0, [fp, #-1048]
	ldr	r3, [fp, #-1048]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L10+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-1056]
	ldr	r1, .L10+8
	mov	r0, r3
	bl	fprintf
	b	.L1
.L8:
	ldr	r3, [fp, #-1044]
	add	r3, r3, #11
	ldr	r1, .L10+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-1044]
	add	r3, r3, #11
	ldr	r1, .L10+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	b	.L4
.L6:
	ldr	r0, [fp, #-1056]
	bl	strlen
	mov	r4, r0
	ldr	r3, [fp, #-1044]
	add	r3, r3, #11
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #2
	cmp	r3, #1024
	bls	.L7
	ldr	r3, .L10+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-1044]
	add	r3, r3, #11
	ldr	r2, [fp, #-1056]
	ldr	r1, .L10+20
	bl	fprintf
	b	.L4
.L7:
	ldr	r3, [fp, #-1044]
	add	r3, r3, #11
	sub	r0, fp, #1024
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r2, [fp, #-1056]
	ldr	r1, .L10+24
	bl	sprintf
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1060]
	mov	r0, r3
	blx	r2
.L4:
	ldr	r0, [fp, #-1048]
	bl	readdir
	str	r0, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	bne	.L8
	ldr	r0, [fp, #-1048]
	bl	closedir
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC5
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	dirwalk, .-dirwalk
	.section	.rodata
	.align	2
.LC6:
	.ascii	"fsize: can't access %s\012\000"
	.align	2
.LC7:
	.ascii	"%8ld %s\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fsize
	.syntax unified
	.arm
	.fpu softvfp
	.type	fsize, %function
fsize:
	@ 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, .L17
	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
	cmn	r3, #1
	bne	.L13
	ldr	r3, .L17+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	ldr	r1, .L17+8
	mov	r0, r3
	bl	fprintf
	b	.L12
.L13:
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L15
	ldr	r1, .L17+12
	ldr	r0, [fp, #-104]
	bl	dirwalk
.L15:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-104]
	mov	r1, r3
	ldr	r0, .L17+16
	bl	printf
.L12:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC8
	.word	stderr
	.word	.LC6
	.word	fsize
	.word	.LC7
	.size	fsize, .-fsize
	.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, #1
	bne	.L22
	ldr	r0, .L25
	bl	fsize
	b	.L21
.L23:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r0, r3
	bl	fsize
.L22:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L23
.L21:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
