// File: /workspace/github_c_makefile_star2_O3/j-hoppe[P]tu58fs/xxdp.c
// Function: xxdp_filesystem_parse
int xxdp_filesystem_parse(xxdp_filesystem_t *_this) {
	int i ;
	xxdp_filesystem_init(_this);

	// read bootblock 0. may consists of 00's
	parse_stream(_this, _this->bootblock, _this->bootblock->blocknr, 1);
	// read monitor: from defined start until end of preallocated area, about 32
	parse_stream(_this, _this->monitor, _this->monitor->blocknr,
			_this->preallocated_blockcount - _this->monitor->blocknr);

	parse_mfd(_this);
	parse_bitmap(_this);
	parse_ufd(_this);

	// read data for all user files
	for (i = 0; i < _this->file_count; i++)
		parse_file_data(_this, _this->file[i]);

	xxdp_filesystem_mark_files_as_changed(_this);

	return ERROR_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
callq 0xbf78
movq (%rbx), %r12
movq 0x80(%rbx), %r15
movzwl (%r15), %r14d
movw $0x1, 0x2(%r15)
movl $0x200, 0x10(%r15)      # imm = 0x200
movl $0x200, %edi            # imm = 0x200
callq 0x33b0
movq %rax, 0x8(%r15)
shll $0x9, %r14d
addq %r12, %r14
movl $0x200, %edx            # imm = 0x200
movq %rax, %rdi
movq %r14, %rsi
callq 0x3340
movq 0x88(%rbx), %r13
movzwl (%r13), %r14d
movl 0x50(%rbx), %eax
subl %r14d, %eax
movw %ax, 0x2(%r13)
movzwl %ax, %r15d
shll $0x9, %r15d
movl %r15d, 0x10(%r13)
movq %r15, %rdi
callq 0x33b0
movq %rax, 0x8(%r13)
shll $0x9, %r14d
addq %r12, %r14
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3340
movq 0x98(%rbx), %rsi
movzwl 0x34(%rbx), %edx
movq %rbx, %rdi
callq 0xe466
movq 0x98(%rbx), %rax
movl (%rax), %esi
cmpl $0x1, %esi
je 0xc274
cmpl $0x2, %esi
jne 0xc3f3
movl 0x58(%rbx), %esi
cmpl $0x1, %esi
je 0xc206
leaq 0x9c9a(%rip), %rdi      # 0x15e92
xorl %eax, %eax
callq 0xa1f3
movq 0x98(%rbx), %rax
movzwl 0x4(%rax), %ebp
movq %rbx, %rdi
movl %ebp, %esi
movl $0x1, %edx
callq 0xe4d2
movzwl %ax, %eax
movl %eax, 0x54(%rbx)
xorl %r14d, %r14d
leal 0x3(%r14), %eax
movzbl %al, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xe4d2
testw %ax, %ax
je 0xc403
movq 0x90(%rbx), %rcx
movw %ax, 0x4(%rcx,%r14,2)
incq %r14
cmpq $0xfc, %r14
jne 0xc222
leaq 0x9c72(%rip), %rdi      # 0x15ece
leaq 0x9926(%rip), %rsi      # 0x15b89
leaq 0x9c70(%rip), %rcx      # 0x15eda
movl $0x189, %edx            # imm = 0x189
callq 0x3200
movl 0x58(%rbx), %esi
cmpl $0x2, %esi
je 0xc291
leaq 0x9c7b(%rip), %rdi      # 0x15efe
xorl %eax, %eax
callq 0xa1f3
movq 0x98(%rbx), %rax
movzwl 0x4(%rax), %ebp
movq %rbx, %rdi
movl %ebp, %esi
movl $0x1, %edx
callq 0xe4d2
movq 0xa0(%rbx), %rsi
movzwl %ax, %edx
movq %rbx, %rdi
callq 0xe466
movq %rbx, %rdi
movl %ebp, %esi
movl $0x2, %edx
callq 0xe4d2
movzwl %ax, %edx
movq 0xa0(%rbx), %rax
movl (%rax), %esi
cmpl %edx, %esi
je 0xc2e3
leaq 0x9c5e(%rip), %rdi      # 0x15f3a
xorl %eax, %eax
callq 0xa1f3
movq %rbx, %rdi
movl %ebp, %esi
movl $0x3, %edx
callq 0xe4d2
movq 0x90(%rbx), %rsi
movzwl %ax, %edx
movq %rbx, %rdi
callq 0xe466
movq %rbx, %rdi
movl %ebp, %esi
movl $0x4, %edx
callq 0xe4d2
movzwl %ax, %edx
movq 0x90(%rbx), %rax
movl (%rax), %esi
cmpl %edx, %esi
je 0xc331
leaq 0x9c38(%rip), %rdi      # 0x15f62
xorl %eax, %eax
callq 0xa1f3
movq %rbx, %rdi
movl %ebp, %esi
movl $0x7, %edx
callq 0xe4d2
movzwl %ax, %eax
movl %eax, 0x4c(%rbx)
movq %rbx, %rdi
movl %ebp, %esi
movl $0x8, %edx
callq 0xe4d2
movw %ax, 0x50(%rbx)
movzwl 0x40(%rbx), %esi
cmpw %si, %ax
je 0xc373
movzwl %ax, %edx
leaq 0x9c21(%rip), %rdi      # 0x15f8d
xorl %eax, %eax
callq 0xa1f3
movq %rbx, %rdi
movl %ebp, %esi
movl $0x9, %edx
callq 0xe4d2
movzwl %ax, %edx
movl %edx, 0x54(%rbx)
movl 0x44(%rbx), %esi
cmpl %edx, %esi
je 0xc39d
leaq 0x9c33(%rip), %rdi      # 0x15fc9
xorl %eax, %eax
callq 0xa1f3
movq %rbx, %rdi
movl %ebp, %esi
movl $0xb, %edx
callq 0xe4d2
movq 0x88(%rbx), %rcx
movw %ax, (%rcx)
movzwl 0x4a(%rbx), %esi
cmpw %si, %ax
je 0xc3da
movzwl %ax, %edx
leaq 0x9c32(%rip), %rdi      # 0x15ffb
xorl %eax, %eax
callq 0xa1f3
movq 0x88(%rbx), %rcx
movzwl (%rcx), %eax
movl 0x50(%rbx), %edx
subl %eax, %edx
movw %dx, 0x2(%rcx)
leaq 0x9c44(%rip), %rdi      # 0x1602e
xorl %eax, %eax
callq 0xa1f3
jmp 0xc437
leaq 0x9c61(%rip), %rdi      # 0x1605b
xorl %eax, %eax
callq 0xa2d7
jmp 0xc437
movq 0x90(%rbx), %rax
movl %r14d, (%rax)
movq 0x98(%rbx), %rax
movzwl 0x6(%rax), %esi
movq %rbx, %rdi
movl $0x2, %edx
callq 0xe4d2
movq 0xa0(%rbx), %rsi
movzwl %ax, %edx
movq %rbx, %rdi
callq 0xe466
movq 0x90(%rbx), %rax
cmpl $0x0, (%rax)
je 0xc50f
xorl %r14d, %r14d
xorl %r15d, %r15d
xorl %r12d, %r12d
movzwl 0x4(%rax,%r15,2), %ebp
movq %rbx, %rdi
movl %ebp, %esi
movl $0x2, %edx
callq 0xe4d2
cmpw $0x3c, %ax
jne 0xc8b7
movq %rbx, %rdi
movl %ebp, %esi
movl $0x3, %edx
callq 0xe4d2
movq 0x90(%rbx), %rcx
cmpw 0x4(%rcx), %ax
jne 0xc898
xorl %r13d, %r13d
movq %r14, (%rsp)
leal 0x4(%r13), %eax
movzbl %al, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xe4d2
movzwl %ax, %ecx
movzwl %r12w, %r12d
xorl %eax, %eax
leal (%r12,%rax), %edx
movzwl %dx, %esi
leal (%r14,%rax), %edi
cmpl %esi, %edi
jne 0xc85a
btl %eax, %ecx
movq 0x90(%rbx), %rsi
movzwl %dx, %edx
setb 0x804(%rsi,%rdx)
incl %eax
cmpl $0x10, %eax
jne 0xc4b0
incl %r13d
addl $0x10, %r14d
addl %eax, %r12d
cmpl $0x3c, %r13d
jne 0xc496
incq %r15
movq 0x90(%rbx), %rax
movl (%rax), %ecx
movq (%rsp), %r14
addl $0x3c0, %r14d           # imm = 0x3C0
cmpq %rcx, %r15
jb 0xc450
movq 0xa0(%rbx), %rax
cmpl $0x0, (%rax)
je 0xc729
xorl %edx, %edx
movl $0xffffff04, %r14d      # imm = 0xFFFFFF04
movq %rdx, 0x8(%rsp)
movzwl 0x4(%rax,%rdx,2), %ebp
leal 0xfd(%r14), %eax
movzbl %al, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xe4d2
testw %ax, %ax
je 0xc6eb
movl %eax, %r15d
movl $0x8d0, %edi            # imm = 0x8D0
callq 0x33b0
movq %rax, %r12
movq $0x0, 0x888(%rax)
leaq 0x808(%rax), %r13
xorl %eax, %eax
movb %al, 0x808(%r12)
movb %al, 0x8c8(%r12)
movl $0x0, 0x8cc(%r12)
movzwl %r15w, %edi
callq 0xa8de
movq %r13, %rdi
movq %rax, %rsi
callq 0x3510
leal 0xfe(%r14), %edx
movl $0xff, %r15d
andl %r15d, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xe4d2
movzwl %ax, %edi
callq 0xa8de
movq %r13, (%rsp)
movq %r13, %rdi
movq %rax, %rsi
callq 0x3510
leal -0x1(%r14), %edx
andl %r15d, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xe4d2
leaq 0x858(%r12), %r13
movzwl %ax, %edi
callq 0xa8de
movq %r13, %rdi
movq %rax, %rsi
callq 0x30c0
leal 0x100(%r14), %edx
andl %r15d, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xe4d2
movzwl %ax, %esi
leaq 0x10(%rsp), %rdi
callq 0xab91
movq 0x40(%rsp), %rax
movq %rax, 0x8c0(%r12)
movups 0x10(%rsp), %xmm0
movups 0x20(%rsp), %xmm1
movups 0x30(%rsp), %xmm2
movups %xmm2, 0x8b0(%r12)
movups %xmm1, 0x8a0(%r12)
movups %xmm0, 0x890(%r12)
leal 0x102(%r14), %edx
andl %r15d, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xe4d2
movzwl %ax, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0xe466
leal 0x103(%r14), %edx
andl %r15d, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xe4d2
movw %ax, 0x880(%r12)
movzwl %ax, %ecx
movl (%r12), %r8d
cmpl %ecx, %r8d
je 0xc6b7
leaq 0x9b32(%rip), %rdi      # 0x161db
movq (%rsp), %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0xa1f3
leal 0x104(%r14), %eax
movzbl %al, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xe4d2
movslq 0xa8(%rbx), %rax
cmpq $0x3e7, %rax            # imm = 0x3E7
jg 0xc711
leal 0x1(%rax), %ecx
movl %ecx, 0xa8(%rbx)
movq %r12, 0xb0(%rbx,%rax,8)
addl $0x9, %r14d
jne 0xc531
movq 0x8(%rsp), %rdx
incq %rdx
movq 0xa0(%rbx), %rax
movl (%rax), %ecx
cmpq %rcx, %rdx
jb 0xc521
jmp 0xc729
leaq 0x9b0b(%rip), %rsi      # 0x16223
movl $0xfffffffe, %edi       # imm = 0xFFFFFFFE
movl $0x3e8, %edx            # imm = 0x3E8
xorl %eax, %eax
callq 0x9f73
cmpl $0x0, 0xa8(%rbx)
jle 0xc849
xorl %ecx, %ecx
movq %rcx, 0x8(%rsp)
movq 0xb0(%rbx,%rcx,8), %rax
movq %rax, (%rsp)
movq 0x888(%rax), %rdi
testq %rdi, %rdi
je 0xc75a
callq 0x3050
movq (%rsp), %r12
movl (%r12), %ebp
movl %ebp, %r14d
shll $0x9, %r14d
subl %ebp, %r14d
subl %ebp, %r14d
movl %r14d, 0x884(%r12)
movq %r14, %rdi
callq 0x33b0
movq %rax, 0x888(%r12)
testq %rbp, %rbp
je 0xc7dc
movq %rax, %r15
movq (%rbx), %r12
addq $0x2, %r12
addq %rax, %r14
addq $0x1fe, %r15            # imm = 0x1FE
xorl %r13d, %r13d
leaq -0x1fe(%r15), %rdi
movq (%rsp), %rax
movzwl 0x4(%rax,%r13,2), %esi
shll $0x9, %esi
addq %r12, %rsi
movl $0x1fe, %edx            # imm = 0x1FE
callq 0x3340
cmpq %r14, %r15
ja 0xc879
incq %r13
addq $0x1fe, %r15            # imm = 0x1FE
cmpq %r13, %rbp
jne 0xc7a3
movq 0x8(%rsp), %rcx
incq %rcx
movslq 0xa8(%rbx), %rax
cmpq %rax, %rcx
jl 0xc738
testl %eax, %eax
jle 0xc849
xorl %r14d, %r14d
movq 0xb0(%rbx,%r14,8), %r15
movb $0x0, 0x8c8(%r15)
cmpq $0x0, 0x10(%rbx)
je 0xc83e
xorl %r12d, %r12d
movl (%r15), %eax
cmpq %rax, %r12
jae 0xc838
movzwl 0x4(%r15,%r12,2), %esi
movq 0x10(%rbx), %rdi
callq 0xb1d5
incq %r12
orb %al, 0x8c8(%r15)
je 0xc815
movl 0xa8(%rbx), %eax
incq %r14
movslq %eax, %rcx
cmpq %rcx, %r14
jl 0xc7fb
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x9944(%rip), %rdi      # 0x161a5
leaq 0x9321(%rip), %rsi      # 0x15b89
leaq 0x98d8(%rip), %rcx      # 0x16147
movl $0x1e2, %edx            # imm = 0x1E2
callq 0x3200
leaq 0x99c6(%rip), %rdi      # 0x16246
leaq 0x9302(%rip), %rsi      # 0x15b89
leaq 0x99d6(%rip), %rcx      # 0x16264
movl $0x243, %edx            # imm = 0x243
callq 0x3200
leaq 0x98cf(%rip), %rdi      # 0x1616e
leaq 0x92e3(%rip), %rsi      # 0x15b89
leaq 0x989a(%rip), %rcx      # 0x16147
movl $0x1dc, %edx            # imm = 0x1DC
callq 0x3200
leaq 0x985e(%rip), %rdi      # 0x1611c
leaq 0x92c4(%rip), %rsi      # 0x15b89
leaq 0x987b(%rip), %rcx      # 0x16147
movl $0x1d9, %edx            # imm = 0x1D9
callq 0x3200