	.file	"629022.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/629022.c"
.LC1:
	.string	"ret == 0"
	.text
	.type	_chdir, @function
_chdir:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	chdir@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L3
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 60
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L3:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	_chdir, .-_chdir
	.section	.rodata
.LC2:
	.string	"path[0] != '\\0'"
.LC3:
	.string	"path[0] != '/'"
.LC4:
	.string	"."
.LC5:
	.string	"strcmp(path, \".\")"
.LC6:
	.string	".."
.LC7:
	.string	"strcmp(path, \"..\")"
.LC8:
	.string	"S_ISDIR(st.st_mode)"
	.text
	.type	_mkdir, @function
_mkdir:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	DWORD PTR -188[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -184[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L5
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 68
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L5:
	mov	rax, QWORD PTR -184[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L6
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 69
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L6:
	mov	rax, QWORD PTR -184[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 70
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L7:
	mov	rax, QWORD PTR -184[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 71
	lea	rsi, .LC0[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L8:
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	je	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L9
	mov	edx, DWORD PTR -188[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	mkdir@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	je	.L13
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 75
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L9:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	je	.L14
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 77
	lea	rsi, .LC0[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L13:
	nop
.L14:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	_mkdir, .-_mkdir
	.section	.rodata
.LC9:
	.string	"fd >= 0"
	.text
	.type	_mkdir_p, @function
_mkdir_p:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L16
.L18:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	BYTE PTR [rax], 0
.L16:
	cmp	QWORD PTR -8[rbp], 0
	je	.L17
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	je	.L18
.L17:
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	_mkdir
	cmp	QWORD PTR -8[rbp], 0
	je	.L21
	mov	esi, 0
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L20
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 93
	lea	rsi, .LC0[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L20:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	_chdir
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	_mkdir_p
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	fchdir@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
.L21:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	_mkdir_p, .-_mkdir_p
	.section	.rodata
.LC10:
	.string	"s != NULL"
	.text
	.type	mkdir_p_fn, @function
mkdir_p_fn:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L23
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 109
	lea	rsi, .LC0[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L23:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	dirname@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	mov	rdi, rdx
	call	_mkdir_p
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	mkdir_p_fn, .-mkdir_p_fn
	.section	.rodata
.LC11:
	.string	"w"
.LC12:
	.string	"f != NULL"
	.text
	.type	save_buf, @function
save_buf:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	DWORD PTR -76[rbp], ecx
	mov	QWORD PTR -88[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L25
.L26:
	add	QWORD PTR -56[rbp], 1
.L25:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	je	.L26
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 511
	mov	rdi, rax
	call	mkdir_p_fn
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L27
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 127
	lea	rsi, .LC0[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L27:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edx, DWORD PTR -76[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	chmod@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -24[rbp], rax
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	utime@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	save_buf, .-save_buf
	.section	.rodata
	.align 8
.LC13:
	.string	"count >= sizeof(struct fwpart)"
.LC14:
	.string	"Name: %s\n"
.LC15:
	.string	"Size: %#zx\n"
.LC16:
	.string	"Path: %s\n"
.LC17:
	.string	"Mode: %#o\n"
.LC18:
	.string	"Time: %ld\n"
.LC19:
	.string	"Rsvd: %#zx\n"
.LC20:
	.string	"Vers: %s\n"
	.align 8
.LC21:
	.string	"count >= sizeof(struct fwpart) + size"
	.text
	.type	process_buf, @function
process_buf:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -64[rbp], 255
	ja	.L30
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 148
	lea	rsi, .LC0[rip]
	lea	rdi, .LC13[rip]
	call	__assert_fail@PLT
.L30:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 116
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 144
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 156
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 168
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 180
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 240
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 256
	cmp	QWORD PTR -64[rbp], rax
	jnb	.L31
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 164
	lea	rsi, .LC0[rip]
	lea	rdi, .LC21[rip]
	call	__assert_fail@PLT
.L31:
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, 256[rax]
	mov	rax, QWORD PTR -32[rbp]
	lea	rdi, 180[rax]
	mov	rcx, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rcx
	mov	ecx, edx
	mov	rdx, rax
	call	save_buf
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 256
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	process_buf, .-process_buf
	.section	.rodata
.LC22:
	.string	"size == 0"
	.text
	.type	process_mem, @function
process_mem:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	jmp	.L34
.L35:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	process_buf
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	add	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	sub	QWORD PTR -32[rbp], rax
.L34:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L35
	cmp	QWORD PTR -32[rbp], 0
	je	.L37
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 179
	lea	rsi, .LC0[rip]
	lea	rdi, .LC22[rip]
	call	__assert_fail@PLT
.L37:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	process_mem, .-process_mem
	.section	.rodata
.LC23:
	.string	"fstat"
.LC24:
	.string	"mmap"
	.text
	.type	process_file, @function
process_file:
.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, 192
	mov	DWORD PTR -180[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	test	eax, eax
	jns	.L39
	lea	rdi, .LC23[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L42
.L39:
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rax
	mov	eax, DWORD PTR -180[rbp]
	mov	r9d, 0
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 1
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], -1
	jne	.L41
	lea	rdi, .LC24[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L42
.L41:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	process_mem
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
	mov	eax, 1
.L42:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	process_file, .-process_file
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 1
	jmp	.L45
.L49:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L46
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, 1
	jmp	.L47
.L46:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	process_file
	mov	BYTE PTR -9[rbp], al
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	close@PLT
	movzx	eax, BYTE PTR -9[rbp]
	xor	eax, 1
	test	al, al
	je	.L48
	mov	eax, 1
	jmp	.L47
.L48:
	add	DWORD PTR -8[rbp], 1
.L45:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L49
	mov	eax, 0
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.6, @object
	.size	__PRETTY_FUNCTION__.6, 7
__PRETTY_FUNCTION__.6:
	.string	"_chdir"
	.type	__PRETTY_FUNCTION__.5, @object
	.size	__PRETTY_FUNCTION__.5, 7
__PRETTY_FUNCTION__.5:
	.string	"_mkdir"
	.align 8
	.type	__PRETTY_FUNCTION__.4, @object
	.size	__PRETTY_FUNCTION__.4, 9
__PRETTY_FUNCTION__.4:
	.string	"_mkdir_p"
	.align 8
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 11
__PRETTY_FUNCTION__.3:
	.string	"mkdir_p_fn"
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 9
__PRETTY_FUNCTION__.2:
	.string	"save_buf"
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 12
__PRETTY_FUNCTION__.1:
	.string	"process_buf"
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 12
__PRETTY_FUNCTION__.0:
	.string	"process_mem"
	.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	"629022.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/629022.c\000"
	.align	2
.LC1:
	.ascii	"ret == 0\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_chdir, %function
_chdir:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	chdir
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L4
	mov	r2, #60
	ldr	r1, .L4+4
	ldr	r0, .L4+8
	bl	__assert_fail
.L3:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	__PRETTY_FUNCTION__.5687
	.word	.LC0
	.word	.LC1
	.size	_chdir, .-_chdir
	.section	.rodata
	.align	2
.LC2:
	.ascii	"path[0] != '\\0'\000"
	.align	2
.LC3:
	.ascii	"path[0] != '/'\000"
	.align	2
.LC4:
	.ascii	".\000"
	.align	2
.LC5:
	.ascii	"strcmp(path, \".\")\000"
	.align	2
.LC6:
	.ascii	"..\000"
	.align	2
.LC7:
	.ascii	"strcmp(path, \"..\")\000"
	.align	2
.LC8:
	.ascii	"S_ISDIR(st.st_mode)\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_mkdir, %function
_mkdir:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-112]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L17+4
	mov	r2, #68
	ldr	r1, .L17+8
	ldr	r0, .L17+12
	bl	__assert_fail
.L7:
	ldr	r3, [fp, #-112]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L8
	ldr	r3, .L17+4
	mov	r2, #69
	ldr	r1, .L17+8
	ldr	r0, .L17+16
	bl	__assert_fail
.L8:
	ldr	r1, .L17+20
	ldr	r0, [fp, #-112]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L17+4
	mov	r2, #70
	ldr	r1, .L17+8
	ldr	r0, .L17+24
	bl	__assert_fail
.L9:
	ldr	r1, .L17+28
	ldr	r0, [fp, #-112]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r3, .L17+4
	mov	r2, #71
	ldr	r1, .L17+8
	ldr	r0, .L17+32
	bl	__assert_fail
.L10:
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L11
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-112]
	bl	mkdir
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L17+4
	mov	r2, #75
	ldr	r1, .L17+8
	ldr	r0, .L17+36
	bl	__assert_fail
.L11:
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	beq	.L16
	ldr	r3, .L17+4
	mov	r2, #77
	ldr	r1, .L17+8
	ldr	r0, .L17+40
	bl	__assert_fail
.L15:
	nop
.L16:
	nop
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC9
	.word	__PRETTY_FUNCTION__.5694
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC1
	.word	.LC8
	.size	_mkdir, .-_mkdir
	.section	.rodata
	.align	2
.LC10:
	.ascii	"fd >= 0\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_mkdir_p, %function
_mkdir_p:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r1, #47
	ldr	r0, [fp, #-16]
	bl	strchr
	str	r0, [fp, #-12]
	b	.L20
.L22:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #0
	strb	r2, [r3]
.L20:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L22
.L21:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	_mkdir
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L25
	mov	r1, #0
	ldr	r0, .L26
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L24
	ldr	r3, .L26+4
	mov	r2, #93
	ldr	r1, .L26+8
	ldr	r0, .L26+12
	bl	__assert_fail
.L24:
	ldr	r0, [fp, #-16]
	bl	_chdir
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-12]
	bl	_mkdir_p
	ldr	r0, [fp, #-8]
	bl	fchdir
	ldr	r0, [fp, #-8]
	bl	close
.L25:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC4
	.word	__PRETTY_FUNCTION__.5704
	.word	.LC0
	.word	.LC10
	.size	_mkdir_p, .-_mkdir_p
	.section	.rodata
	.align	2
.LC11:
	.ascii	"s != NULL\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mkdir_p_fn, %function
mkdir_p_fn:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L29
	ldr	r3, .L30
	mov	r2, #109
	ldr	r1, .L30+4
	ldr	r0, .L30+8
	bl	__assert_fail
.L29:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	memcpy
	ldr	r0, [fp, #-8]
	bl	dirname
	mov	r3, r0
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	_mkdir_p
	ldr	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	__PRETTY_FUNCTION__.5711
	.word	.LC0
	.word	.LC11
	.size	mkdir_p_fn, .-mkdir_p_fn
	.section	.rodata
	.align	2
.LC12:
	.ascii	"w\000"
	.align	2
.LC13:
	.ascii	"f != NULL\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	save_buf, %function
save_buf:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L33
.L34:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L33:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L34
	ldr	r1, .L37+4
	ldr	r0, [fp, #-24]
	bl	mkdir_p_fn
	ldr	r1, .L37+8
	ldr	r0, [fp, #-24]
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L35
	ldr	r3, .L37+12
	mov	r2, #127
	ldr	r1, .L37+16
	ldr	r0, .L37+20
	bl	__assert_fail
.L35:
	ldr	r3, [fp, #-20]
	mov	r2, #1
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-28]
	bl	fwrite
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-24]
	bl	chmod
	ldr	r3, [fp, #4]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-12]
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	utime
	nop
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC14
	.word	511
	.word	.LC12
	.word	__PRETTY_FUNCTION__.5723
	.word	.LC0
	.word	.LC13
	.size	save_buf, .-save_buf
	.section	.rodata
	.align	2
.LC15:
	.ascii	"count >= sizeof(struct fwpart)\000"
	.align	2
.LC16:
	.ascii	"Name: %s\012\000"
	.align	2
.LC17:
	.ascii	"Size: %#zx\012\000"
	.align	2
.LC18:
	.ascii	"Path: %s\012\000"
	.align	2
.LC19:
	.ascii	"Mode: %#o\012\000"
	.align	2
.LC20:
	.ascii	"Time: %ld\012\000"
	.align	2
.LC21:
	.ascii	"Rsvd: %#zx\012\000"
	.align	2
.LC22:
	.ascii	"Vers: %s\012\000"
	.align	2
.LC23:
	.ascii	"count >= sizeof(struct fwpart) + size\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_buf, %function
process_buf:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	cmp	r3, #255
	bhi	.L40
	ldr	r3, .L43
	mov	r2, #148
	ldr	r1, .L43+4
	ldr	r0, .L43+8
	bl	__assert_fail
.L40:
	ldr	r3, [fp, #-24]
	add	r3, r3, #116
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #144
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r3, r3, #156
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	add	r3, r3, #168
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, .L43+12
	bl	printf
	ldr	r1, [fp, #-20]
	ldr	r0, .L43+16
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #180
	mov	r1, r3
	ldr	r0, .L43+20
	bl	printf
	ldr	r1, [fp, #-16]
	ldr	r0, .L43+24
	bl	printf
	ldr	r1, [fp, #-12]
	ldr	r0, .L43+28
	bl	printf
	ldr	r1, [fp, #-8]
	ldr	r0, .L43+32
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #240
	mov	r1, r3
	ldr	r0, .L43+36
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-20]
	add	r3, r3, #256
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bcs	.L41
	ldr	r3, .L43
	mov	r2, #164
	ldr	r1, .L43+4
	ldr	r0, .L43+40
	bl	__assert_fail
.L41:
	ldr	r3, [fp, #-24]
	add	r0, r3, #180
	ldr	r3, [fp, #-24]
	add	r1, r3, #256
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	bl	save_buf
	ldr	r3, [fp, #-20]
	add	r3, r3, #256
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	__PRETTY_FUNCTION__.5734
	.word	.LC0
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	process_buf, .-process_buf
	.section	.rodata
	.align	2
.LC24:
	.ascii	"size == 0\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_mem, %function
process_mem:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	b	.L46
.L47:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	process_buf
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
.L46:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L47
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L49
	ldr	r3, .L50
	mov	r2, #179
	ldr	r1, .L50+4
	ldr	r0, .L50+8
	bl	__assert_fail
.L49:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	__PRETTY_FUNCTION__.5743
	.word	.LC0
	.word	.LC24
	.size	process_mem, .-process_mem
	.section	.rodata
	.align	2
.LC25:
	.ascii	"fstat\000"
	.align	2
.LC26:
	.ascii	"mmap\000"
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_file, %function
process_file:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-112]
	ldr	r3, .L58
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	fstat
	mov	r3, r0
	cmp	r3, #0
	bge	.L53
	ldr	r0, .L58+4
	bl	perror
	mov	r3, #0
	b	.L56
.L53:
	ldr	r3, [fp, #-56]
	mov	r1, r3
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-112]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #1
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmn	r3, #1
	bne	.L55
	ldr	r0, .L58+8
	bl	perror
	mov	r3, #0
	b	.L56
.L55:
	ldr	r3, [fp, #-56]
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	process_mem
	ldr	r3, [fp, #-56]
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	munmap
	mov	r3, #1
.L56:
	ldr	r2, .L58
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L57
	bl	__stack_chk_fail
.L57:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L59:
	.align	2
.L58:
	.word	.LC27
	.word	.LC25
	.word	.LC26
	.size	process_file, .-process_file
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L61
.L65:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L62
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mov	r3, #1
	b	.L63
.L62:
	ldr	r0, [fp, #-8]
	bl	process_file
	mov	r3, r0
	strb	r3, [fp, #-13]
	ldr	r0, [fp, #-8]
	bl	close
	ldrb	r3, [fp, #-13]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L64
	mov	r3, #1
	b	.L63
.L64:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L61:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L65
	mov	r3, #0
.L63:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5687, %object
	.size	__PRETTY_FUNCTION__.5687, 7
__PRETTY_FUNCTION__.5687:
	.ascii	"_chdir\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5694, %object
	.size	__PRETTY_FUNCTION__.5694, 7
__PRETTY_FUNCTION__.5694:
	.ascii	"_mkdir\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5704, %object
	.size	__PRETTY_FUNCTION__.5704, 9
__PRETTY_FUNCTION__.5704:
	.ascii	"_mkdir_p\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5711, %object
	.size	__PRETTY_FUNCTION__.5711, 11
__PRETTY_FUNCTION__.5711:
	.ascii	"mkdir_p_fn\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5723, %object
	.size	__PRETTY_FUNCTION__.5723, 9
__PRETTY_FUNCTION__.5723:
	.ascii	"save_buf\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5734, %object
	.size	__PRETTY_FUNCTION__.5734, 12
__PRETTY_FUNCTION__.5734:
	.ascii	"process_buf\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5743, %object
	.size	__PRETTY_FUNCTION__.5743, 12
__PRETTY_FUNCTION__.5743:
	.ascii	"process_mem\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
