	.file	"extr_cdmake.c_new_directory_record.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Insufficient memory"
	.text
	.p2align 4
	.globl	new_directory_record
	.type	new_directory_record, @function
new_directory_record:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	mov	edi, 1
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	mov	esi, 48
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	calloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L6
.L2:
	mov	rax, QWORD PTR root[rip]
	mov	edi, DWORD PTR 8[rbp]
	mov	QWORD PTR 32[r12], rbx
	mov	QWORD PTR root[rip], r12
	mov	QWORD PTR 40[r12], rax
	call	S_ISDIR@PLT
	mov	rdi, QWORD PTR 0[r13]
	mov	rsi, r12
	mov	edx, eax
	call	parse_filename_into_dirrecord@PLT
	lea	rsi, 4[rbp]
	lea	rdi, 28[r12]
	call	convert_date_and_time@PLT
	mov	rdx, QWORD PTR 0[r13]
	mov	eax, DWORD PTR 24[r12]
	cmp	BYTE PTR [rdx], 46
	jne	.L3
	or	eax, DWORD PTR HIDDEN_FLAG[rip]
.L3:
	mov	DWORD PTR 24[r12], eax
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 16[r12], eax
	mov	DWORD PTR 20[r12], eax
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR 8[r12], rax
	mov	rax, r12
	mov	QWORD PTR [rbx], r12
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	error_exit@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	new_directory_record, .-new_directory_record
	.comm	root,8,8
	.comm	HIDDEN_FLAG,4,4
	.comm	DT_DIR,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_new_directory_record.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Insufficient memory\000"
	.text
	.align	2
	.global	new_directory_record
	.syntax unified
	.arm
	.fpu softvfp
	.type	new_directory_record, %function
new_directory_record:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r7, r1
	mov	r0, #1
	mov	r1, #32
	mov	r6, r2
	bl	calloc
	subs	r4, r0, #0
	beq	.L6
.L2:
	ldr	r3, .L7
	ldr	r0, [r7, #8]
	ldr	r2, [r3]
	str	r6, [r4, #24]
	str	r2, [r4, #28]
	ldr	r8, [r5]
	str	r4, [r3]
	bl	S_ISDIR
	mov	r1, r4
	mov	r2, r0
	mov	r0, r8
	bl	parse_filename_into_dirrecord
	add	r1, r7, #4
	add	r0, r4, #20
	bl	convert_date_and_time
	ldr	r3, [r5]
	ldr	r2, [r4, #16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, [r6]
	cmp	r3, #46
	ldreq	r3, .L7+4
	mov	r0, r4
	ldreq	r3, [r3]
	str	r1, [r4, #4]
	orreq	r2, r2, r3
	ldr	r3, [r7]
	str	r2, [r4, #16]
	str	r3, [r4, #8]
	str	r3, [r4, #12]
	str	r4, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r0, .L7+8
	bl	error_exit
	b	.L2
.L8:
	.align	2
.L7:
	.word	root
	.word	HIDDEN_FLAG
	.word	.LC0
	.size	new_directory_record, .-new_directory_record
	.comm	root,4,4
	.comm	HIDDEN_FLAG,4,4
	.comm	DT_DIR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
