	.file	"extr_cdmake.c_make_directory_records.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"."
.LC1:
	.string	".."
.LC2:
	.string	"Cannot get CWD: %s\n"
.LC3:
	.string	"Cannot access '%s' (%s)\n"
.LC4:
	.string	"%d: directory %s\n"
.LC5:
	.string	"Directory is nested too deep"
.LC6:
	.string	"%d: file %s\n"
.LC7:
	.string	"Cannot open '%s'\n"
	.text
	.p2align 4
	.type	make_directory_records, @function
make_directory_records:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_PATH[rip]
	mov	rcx, rsp
	mov	QWORD PTR -88[rbp], rsp
	mov	DWORD PTR -76[rbp], eax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L39:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L39
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L40
.L4:
	mov	QWORD PTR 8[rbx], 0
	mov	rdi, QWORD PTR source[rip]
	mov	r13, rsp
	lea	r15, .LC0[rip]
	call	opendir@PLT
	mov	r14, rax
	test	rax, rax
	je	.L41
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, r14
	call	readdir@PLT
	mov	r12, rax
	test	rax, rax
	je	.L42
.L21:
	mov	rdi, QWORD PTR [r12]
	mov	rsi, r15
	call	strcmp@PLT
	test	rax, rax
	je	.L7
	mov	rdi, QWORD PTR [r12]
	lea	rsi, .LC1[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L7
	mov	rsi, QWORD PTR source[rip]
	mov	rax, QWORD PTR DIR_SEPARATOR_CHAR[rip]
	cmp	QWORD PTR [rsi], rax
	je	.L43
	mov	esi, DWORD PTR -76[rbp]
	mov	rdi, r13
	call	getcwd@PLT
	test	eax, eax
	je	.L44
.L11:
	mov	rsi, QWORD PTR DIR_SEPARATOR_STRING[rip]
	mov	rdi, r13
	call	strcat@PLT
	mov	rsi, QWORD PTR source[rip]
.L37:
	mov	rdi, r13
	call	strcat@PLT
	mov	rsi, QWORD PTR [r12]
	mov	rdi, r13
	call	strcat@PLT
	lea	rax, -64[rbp]
	mov	rdi, r13
	mov	rsi, rax
	mov	QWORD PTR -72[rbp], rax
	call	stat@PLT
	cmp	eax, -1
	je	.L45
	mov	edi, DWORD PTR -60[rbp]
	call	S_ISDIR@PLT
	test	rax, rax
	je	.L14
	mov	rax, QWORD PTR end_source[rip]
	mov	rdi, QWORD PTR [r12]
	mov	QWORD PTR -96[rbp], rax
	call	append_string_to_source@PLT
	mov	rax, QWORD PTR end_source[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR end_source[rip], rdx
	mov	rdx, QWORD PTR DIR_SEPARATOR_CHAR[rip]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR end_source[rip]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR VERBOSE[rip]
	cmp	QWORD PTR verbosity[rip], rax
	je	.L46
.L15:
	movsx	rax, DWORD PTR [rbx]
	cmp	rax, QWORD PTR MAX_LEVEL[rip]
	jge	.L16
	mov	rsi, QWORD PTR -72[rbp]
	mov	rdi, r12
	mov	rdx, rbx
	call	new_directory_record@PLT
	mov	rdi, rax
	mov	rax, QWORD PTR root[rip]
	mov	QWORD PTR root[rip], rdi
	mov	QWORD PTR 24[rdi], rax
	mov	eax, DWORD PTR [rbx]
	add	eax, 1
	mov	DWORD PTR [rdi], eax
	call	make_directory_records
.L17:
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, r14
	mov	QWORD PTR end_source[rip], rax
	mov	BYTE PTR [rax], 0
	call	readdir@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L21
	.p2align 4,,10
	.p2align 3
.L42:
	mov	rdi, r14
	call	closedir@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR compare_directory_order[rip]
	xor	esi, esi
	call	sort_linked_list@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rsp, QWORD PTR -88[rbp]
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L47
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edi, DWORD PTR -60[rbp]
	call	S_ISREG@PLT
	test	rax, rax
	je	.L7
	mov	rsi, QWORD PTR DIRECTORY_TIMESTAMP[rip]
	mov	rdi, QWORD PTR [r12]
	call	strcmp@PLT
	test	rax, rax
	je	.L48
	mov	rax, QWORD PTR VERBOSE[rip]
	cmp	QWORD PTR verbosity[rip], rax
	je	.L49
.L20:
	mov	rsi, QWORD PTR -72[rbp]
	mov	rdx, rbx
	mov	rdi, r12
	call	new_directory_record@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L43:
	mov	rdi, r13
	call	strcpy@PLT
	mov	rsi, QWORD PTR DIR_SEPARATOR_STRING[rip]
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	error_exit@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L44:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	lea	rdi, .LC2[rip]
	mov	rsi, rax
	xor	eax, eax
	call	error_exit@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L45:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	rsi, r13
	lea	rdi, .LC3[rip]
	mov	rdx, rax
	xor	eax, eax
	call	error_exit@PLT
.L13:
	mov	rsp, QWORD PTR -88[rbp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L40:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L48:
	mov	rsi, QWORD PTR -72[rbp]
	lea	rdi, 16[rbx]
	call	convert_date_and_time@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L46:
	mov	eax, DWORD PTR [rbx]
	mov	rdx, QWORD PTR source[rip]
	lea	rdi, .LC4[rip]
	lea	esi, 1[rax]
	xor	eax, eax
	call	printf@PLT
	jmp	.L15
.L41:
	mov	rsi, QWORD PTR source[rip]
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	error_exit@PLT
	jmp	.L13
.L49:
	mov	esi, DWORD PTR [rbx]
	mov	rdx, r13
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	printf@PLT
	jmp	.L20
.L47:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	make_directory_records, .-make_directory_records
	.comm	verbosity,8,8
	.comm	source,8,8
	.comm	root,8,8
	.comm	errno,4,4
	.comm	end_source,8,8
	.comm	compare_directory_order,4,4
	.comm	VERBOSE,8,8
	.comm	MAX_PATH,4,4
	.comm	MAX_LEVEL,8,8
	.comm	DT_REG,8,8
	.comm	DT_DIR,8,8
	.comm	DIR_SEPARATOR_STRING,8,8
	.comm	DIR_SEPARATOR_CHAR,8,8
	.comm	DIRECTORY_TIMESTAMP,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cdmake.c_make_directory_records.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Cannot get CWD: %s\012\000"
	.align	2
.LC1:
	.ascii	"Cannot access '%s' (%s)\012\000"
	.align	2
.LC2:
	.ascii	"%d: directory %s\012\000"
	.align	2
.LC3:
	.ascii	"Directory is nested too deep\000"
	.align	2
.LC4:
	.ascii	"%d: file %s\012\000"
	.align	2
.LC5:
	.ascii	"Cannot open '%s'\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_directory_records, %function
make_directory_records:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #36
	mov	r3, #0
	ldr	r2, .L42
	str	r3, [r0, #4]
	ldr	r2, [r2]
	ldr	r10, .L42+4
	add	r3, r2, #7
	bic	r3, r3, #7
	str	sp, [fp, #-64]
	sub	sp, sp, r3
	ldr	r3, .L42+8
	str	r2, [fp, #-56]
	mov	r7, r0
	ldr	r0, [r10]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	opendir
	subs	r6, r0, #0
	beq	.L31
	mov	r5, sp
	ldr	r9, .L42+12
	ldr	r8, .L42+16
.L2:
	mov	r0, r6
	bl	readdir
	subs	r4, r0, #0
	beq	.L34
.L20:
	ldr	r3, [r4]
	ldrb	r2, [r3]	@ zero_extendqisi2
	cmp	r2, #46
	bne	.L5
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	cmp	r2, #0
	beq	.L2
.L5:
	ldrb	r2, [r3]	@ zero_extendqisi2
	cmp	r2, #46
	bne	.L23
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	cmp	r2, #46
	bne	.L23
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L2
.L23:
	ldr	r1, [r10]
	ldr	r3, [r9]
	ldr	r2, [r1]
	cmp	r2, r3
	beq	.L35
	mov	r0, r5
	ldr	r1, [fp, #-56]
	bl	getcwd
	cmp	r0, #0
	beq	.L36
.L11:
	ldr	r3, .L42+20
	mov	r0, r5
	ldr	r1, [r3]
	bl	strcat
	ldr	r1, [r10]
	mov	r0, r5
	bl	strcat
	mov	r0, r5
	ldr	r1, [r4]
	bl	strcat
.L10:
	mov	r0, r5
	sub	r1, fp, #48
	bl	stat
	cmn	r0, #1
	beq	.L37
	ldr	r0, [fp, #-44]
	bl	S_ISDIR
	cmp	r0, #0
	beq	.L14
	ldr	r3, [r8]
	ldr	r0, [r4]
	str	r3, [fp, #-60]
	bl	append_string_to_source
	mov	r2, #0
	ldr	r3, [r8]
	ldr	r1, [r9]
	add	r0, r3, #1
	str	r0, [r8]
	strb	r1, [r3]
	ldr	r3, [r8]
	strb	r2, [r3]
	ldr	r3, .L42+24
	ldr	r2, [r3]
	ldr	r3, .L42+28
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L38
.L15:
	ldr	r3, .L42+32
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L16
	mov	r2, r7
	sub	r1, fp, #48
	mov	r0, r4
	bl	new_directory_record
	ldr	r1, .L42+36
	ldr	r2, [r7]
	ldr	ip, [r1]
	add	r2, r2, #1
	str	r0, [r1]
	str	ip, [r0, #12]
	str	r2, [r0]
	bl	make_directory_records
.L17:
	mov	r3, #0
	ldr	r2, [fp, #-60]
	mov	r0, r6
	str	r2, [r8]
	strb	r3, [r2]
	bl	readdir
	subs	r4, r0, #0
	bne	.L20
.L34:
	mov	r0, r6
	bl	closedir
	ldr	r3, .L42+40
	mov	r1, r4
	ldr	r2, [r3]
	ldr	r0, [r7, #4]
	bl	sort_linked_list
	str	r0, [r7, #4]
	ldr	sp, [fp, #-64]
.L1:
	ldr	r3, .L42+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L39
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r0, [fp, #-44]
	bl	S_ISREG
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L42+44
	ldr	r0, [r4]
	ldr	r1, [r3]
	bl	strcmp
	cmp	r0, #0
	beq	.L40
	ldr	r3, .L42+24
	ldr	r2, [r3]
	ldr	r3, .L42+28
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L41
.L19:
	mov	r0, r4
	mov	r2, r7
	sub	r1, fp, #48
	bl	new_directory_record
	b	.L2
.L35:
	mov	r0, r5
	bl	strcpy
	ldr	r3, .L42+20
	mov	r0, r5
	ldr	r1, [r3]
	bl	strcat
	mov	r0, r5
	ldr	r1, [r4]
	bl	strcat
	b	.L10
.L16:
	ldr	r0, .L42+48
	bl	error_exit
	b	.L17
.L36:
	ldr	r3, .L42+52
	ldr	r0, [r3]
	bl	strerror
	mov	r1, r0
	ldr	r0, .L42+56
	bl	error_exit
	b	.L11
.L37:
	ldr	r3, .L42+52
	ldr	r0, [r3]
	bl	strerror
	mov	r1, r5
	mov	r2, r0
	ldr	r0, .L42+60
	bl	error_exit
.L13:
	ldr	sp, [fp, #-64]
	b	.L1
.L38:
	ldr	r1, [r7]
	ldr	r2, [r10]
	add	r1, r1, #1
	ldr	r0, .L42+64
	bl	printf
	b	.L15
.L40:
	sub	r1, fp, #48
	add	r0, r7, #8
	bl	convert_date_and_time
	b	.L2
.L31:
	ldr	r1, [r10]
	ldr	r0, .L42+68
	bl	error_exit
	b	.L13
.L41:
	mov	r2, r5
	ldr	r1, [r7]
	ldr	r0, .L42+72
	bl	printf
	b	.L19
.L39:
	bl	__stack_chk_fail
.L43:
	.align	2
.L42:
	.word	MAX_PATH
	.word	source
	.word	.LC6
	.word	DIR_SEPARATOR_CHAR
	.word	end_source
	.word	DIR_SEPARATOR_STRING
	.word	verbosity
	.word	VERBOSE
	.word	MAX_LEVEL
	.word	root
	.word	compare_directory_order
	.word	DIRECTORY_TIMESTAMP
	.word	.LC3
	.word	errno
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC5
	.word	.LC4
	.size	make_directory_records, .-make_directory_records
	.comm	verbosity,4,4
	.comm	source,4,4
	.comm	root,4,4
	.comm	errno,4,4
	.comm	end_source,4,4
	.comm	compare_directory_order,4,4
	.comm	VERBOSE,4,4
	.comm	MAX_PATH,4,4
	.comm	MAX_LEVEL,4,4
	.comm	DT_REG,4,4
	.comm	DT_DIR,4,4
	.comm	DIR_SEPARATOR_STRING,4,4
	.comm	DIR_SEPARATOR_CHAR,4,4
	.comm	DIRECTORY_TIMESTAMP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
