// File: /workspace/github_c_makefile_star2_O1/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 0xbfed
movq 0x80(%rbx), %r15
movzwl (%r15), %r14d
movw $0x1, 0x2(%r15)
movl $0x200, 0x10(%r15)      # imm = 0x200
movl $0x200, %edi            # imm = 0x200
callq 0x33c0
movq %rax, 0x8(%r15)
movq (%rbx), %r12
shll $0x9, %r14d
addq %r12, %r14
movl $0x200, %edx            # imm = 0x200
movq %rax, %rdi
movq %r14, %rsi
callq 0x3350
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 0x33c0
movq %rax, 0x8(%r13)
shll $0x9, %r14d
addq %r12, %r14
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3350
movq 0x98(%rbx), %rsi
movzwl 0x34(%rbx), %edx
movq %rbx, %rdi
callq 0xe4ea
movq 0x98(%rbx), %rax
movl (%rax), %esi
cmpl $0x1, %esi
je 0xc312
cmpl $0x2, %esi
jne 0xc490
movl 0x58(%rbx), %esi
cmpl $0x1, %esi
je 0xc27e
leaq 0x9b83(%rip), %rdi      # 0x15dfa
xorl %eax, %eax
callq 0xa20b
movq 0x98(%rbx), %rax
movzwl 0x4(%rax), %ebp
movq %rbx, %rdi
movl %ebp, %esi
movl $0x1, %edx
callq 0xe556
movzwl %ax, %eax
movl %eax, 0x54(%rbx)
xorl %r14d, %r14d
leal 0x3(%r14), %eax
cmpl $0xff, %eax
jae 0xc95e
movzbl %al, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xe556
testw %ax, %ax
je 0xc2d4
movq 0x90(%rbx), %rcx
movl %r14d, %edx
movw %ax, 0x4(%rcx,%rdx,2)
incl %r14d
testw %ax, %ax
jne 0xc2a1
movq 0x90(%rbx), %rax
movl %r14d, (%rax)
movq 0x98(%rbx), %rax
movzwl 0x6(%rax), %esi
movq %rbx, %rdi
movl $0x2, %edx
callq 0xe556
movq 0xa0(%rbx), %rsi
movzwl %ax, %edx
movq %rbx, %rdi
callq 0xe4ea
jmp 0xc49e
movl 0x58(%rbx), %esi
cmpl $0x2, %esi
je 0xc328
leaq 0x9b45(%rip), %rdi      # 0x15e66
xorl %eax, %eax
callq 0xa20b
movq 0x98(%rbx), %rax
movzwl 0x4(%rax), %ebp
movq %rbx, %rdi
movl %ebp, %esi
movl $0x1, %edx
callq 0xe556
movq 0xa0(%rbx), %rsi
movzwl %ax, %edx
movq %rbx, %rdi
callq 0xe4ea
movq %rbx, %rdi
movl %ebp, %esi
movl $0x2, %edx
callq 0xe556
movzwl %ax, %edx
movq 0xa0(%rbx), %rax
movl (%rax), %esi
cmpl %edx, %esi
je 0xc381
leaq 0x9b28(%rip), %rdi      # 0x15ea2
xorl %eax, %eax
callq 0xa20b
movq %rbx, %rdi
movl %ebp, %esi
movl $0x3, %edx
callq 0xe556
movq 0x90(%rbx), %rsi
movzwl %ax, %edx
movq %rbx, %rdi
callq 0xe4ea
movq %rbx, %rdi
movl %ebp, %esi
movl $0x4, %edx
callq 0xe556
movzwl %ax, %edx
movq 0x90(%rbx), %rax
movl (%rax), %esi
cmpl %edx, %esi
je 0xc3cf
leaq 0x9b02(%rip), %rdi      # 0x15eca
xorl %eax, %eax
callq 0xa20b
movq %rbx, %rdi
movl %ebp, %esi
movl $0x7, %edx
callq 0xe556
movzwl %ax, %eax
movl %eax, 0x4c(%rbx)
movq %rbx, %rdi
movl %ebp, %esi
movl $0x8, %edx
callq 0xe556
movw %ax, 0x50(%rbx)
movzwl 0x40(%rbx), %esi
cmpw %si, %ax
je 0xc411
movzwl %ax, %edx
leaq 0x9aeb(%rip), %rdi      # 0x15ef5
xorl %eax, %eax
callq 0xa20b
movq %rbx, %rdi
movl %ebp, %esi
movl $0x9, %edx
callq 0xe556
movzwl %ax, %edx
movl %edx, 0x54(%rbx)
movl 0x44(%rbx), %esi
cmpl %edx, %esi
je 0xc43b
leaq 0x9afd(%rip), %rdi      # 0x15f31
xorl %eax, %eax
callq 0xa20b
movq %rbx, %rdi
movl %ebp, %esi
movl $0xb, %edx
callq 0xe556
movq 0x88(%rbx), %rcx
movw %ax, (%rcx)
movzwl 0x4a(%rbx), %esi
cmpw %si, %ax
je 0xc46e
movzwl %ax, %edx
leaq 0x9afc(%rip), %rdi      # 0x15f63
xorl %eax, %eax
callq 0xa20b
movzwl 0x50(%rbx), %eax
movq 0x88(%rbx), %rcx
subw (%rcx), %ax
movw %ax, 0x2(%rcx)
leaq 0x9b0f(%rip), %rdi      # 0x15f96
xorl %eax, %eax
callq 0xa20b
jmp 0xc49e
leaq 0x9b2c(%rip), %rdi      # 0x15fc3
xorl %eax, %eax
callq 0xa2ef
movq 0x90(%rbx), %rax
cmpl $0x0, (%rax)
je 0xc576
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 0xe556
cmpw $0x3c, %ax
jne 0xc93f
movq %rbx, %rdi
movl %ebp, %esi
movl $0x3, %edx
callq 0xe556
movq 0x90(%rbx), %rcx
cmpw 0x4(%rcx), %ax
jne 0xc920
xorl %r13d, %r13d
movq %r14, (%rsp)
leal 0x4(%r13), %eax
movzbl %al, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xe556
movzwl %ax, %ecx
movzwl %r12w, %r12d
xorl %eax, %eax
leal (%r12,%rax), %edx
movzwl %dx, %esi
leal (%r14,%rax), %edi
cmpl %esi, %edi
jne 0xc8e2
btl %eax, %ecx
movq 0x90(%rbx), %rsi
movzwl %dx, %edx
setb 0x804(%rsi,%rdx)
incl %eax
cmpl $0x10, %eax
jne 0xc517
incl %r13d
addl $0x10, %r14d
addl %eax, %r12d
cmpl $0x3c, %r13d
jne 0xc4fd
incq %r15
movq 0x90(%rbx), %rax
movl (%rax), %ecx
movq (%rsp), %r14
addl $0x3c0, %r14d           # imm = 0x3C0
cmpq %rcx, %r15
jb 0xc4b7
movq 0xa0(%rbx), %rax
cmpl $0x0, (%rax)
je 0xc7aa
movq $0x0, 0x8(%rsp)
movl $0xffffff04, %r14d      # imm = 0xFFFFFF04
movq 0x8(%rsp), %rcx
movzwl 0x4(%rax,%rcx,2), %ebp
leal 0xfd(%r14), %eax
movzbl %al, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xe556
testw %ax, %ax
je 0xc75e
movl %eax, %r12d
movl $0x8d0, %edi            # imm = 0x8D0
callq 0x33c0
movq %rax, %r13
movq $0x0, 0x888(%rax)
leaq 0x808(%rax), %r15
xorl %eax, %eax
movb %al, 0x808(%r13)
movb %al, 0x8c8(%r13)
movl $0x0, 0x8cc(%r13)
movzwl %r12w, %edi
callq 0xa921
movq %r15, %rdi
movq %rax, %rsi
callq 0x3520
leal 0xfe(%r14), %edx
movl $0xff, %r12d
andl %r12d, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xe556
movzwl %ax, %edi
callq 0xa921
movq %r15, (%rsp)
movq %r15, %rdi
movq %rax, %rsi
callq 0x3520
leal -0x1(%r14), %edx
andl %r12d, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xe556
leaq 0x858(%r13), %r15
movzwl %ax, %edi
callq 0xa921
movq %r15, %rdi
movq %rax, %rsi
callq 0x30d0
leal 0x100(%r14), %edx
andl %r12d, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xe556
movzwl %ax, %esi
leaq 0x10(%rsp), %rdi
callq 0xabfe
movq 0x40(%rsp), %rax
movq %rax, 0x8c0(%r13)
movups 0x10(%rsp), %xmm0
movups 0x20(%rsp), %xmm1
movups 0x30(%rsp), %xmm2
movups %xmm2, 0x8b0(%r13)
movups %xmm1, 0x8a0(%r13)
movups %xmm0, 0x890(%r13)
leal 0x102(%r14), %edx
andl %r12d, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xe556
movzwl %ax, %edx
movq %rbx, %rdi
movq %r13, %rsi
callq 0xe4ea
leal 0x103(%r14), %edx
andl %r12d, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xe556
movw %ax, 0x880(%r13)
movzwl %ax, %ecx
movl (%r13), %r8d
cmpl %ecx, %r8d
je 0xc71c
leaq 0x9a35(%rip), %rdi      # 0x16143
movq (%rsp), %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0xa20b
leal 0x104(%r14), %eax
movzbl %al, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xe556
movslq 0xa8(%rbx), %rax
cmpq $0x3e8, %rax            # imm = 0x3E8
jl 0xc765
movl $0xfffffffe, %edi       # imm = 0xFFFFFFFE
leaq 0x9a40(%rip), %rsi      # 0x1618b
movl $0x3e8, %edx            # imm = 0x3E8
xorl %eax, %eax
callq 0x9f8f
movl $0x1, %eax
jmp 0xc778
movl $0x7, %eax
jmp 0xc778
leal 0x1(%rax), %ecx
movl %ecx, 0xa8(%rbx)
movq %r13, 0xb0(%rbx,%rax,8)
xorl %eax, %eax
cmpl $0x7, %eax
je 0xc781
testl %eax, %eax
jne 0xc7aa
addl $0x9, %r14d
jne 0xc59f
movq 0x8(%rsp), %rsi
incq %rsi
movq 0xa0(%rbx), %rax
movl (%rax), %ecx
movq %rsi, 0x8(%rsp)
cmpq %rcx, %rsi
jb 0xc58f
cmpl $0x0, 0xa8(%rbx)
jle 0xc87c
xorl %ecx, %ecx
movq %rcx, 0x8(%rsp)
movq 0xb0(%rbx,%rcx,8), %rax
movq %rax, (%rsp)
movq 0x888(%rax), %rdi
testq %rdi, %rdi
je 0xc7db
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 0x33c0
movq %rax, 0x888(%r12)
testq %rbp, %rbp
je 0xc85d
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 0x3350
cmpq %r14, %r15
ja 0xc901
incq %r13
addq $0x1fe, %r15            # imm = 0x1FE
cmpq %r13, %rbp
jne 0xc824
movq 0x8(%rsp), %rcx
incq %rcx
movslq 0xa8(%rbx), %rax
cmpq %rax, %rcx
jl 0xc7b9
testl %eax, %eax
setg %al
jmp 0xc87e
xorl %eax, %eax
testb %al, %al
je 0xc8d1
xorl %r14d, %r14d
movq 0xb0(%rbx,%r14,8), %r15
movb $0x0, 0x8c8(%r15)
cmpq $0x0, 0x10(%rbx)
je 0xc8c2
xorl %r12d, %r12d
movl (%r15), %eax
cmpq %rax, %r12
jae 0xc8c2
movzwl 0x4(%r15,%r12,2), %esi
movq 0x10(%rbx), %rdi
callq 0xb23d
incq %r12
orb %al, 0x8c8(%r15)
je 0xc89f
incq %r14
movslq 0xa8(%rbx), %rax
cmpq %rax, %r14
jl 0xc885
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x9824(%rip), %rdi      # 0x1610d
leaq 0x9201(%rip), %rsi      # 0x15af1
leaq 0x97b8(%rip), %rcx      # 0x160af
movl $0x1e2, %edx            # imm = 0x1E2
callq 0x3210
leaq 0x98a6(%rip), %rdi      # 0x161ae
leaq 0x91e2(%rip), %rsi      # 0x15af1
leaq 0x98b6(%rip), %rcx      # 0x161cc
movl $0x243, %edx            # imm = 0x243
callq 0x3210
leaq 0x97af(%rip), %rdi      # 0x160d6
leaq 0x91c3(%rip), %rsi      # 0x15af1
leaq 0x977a(%rip), %rcx      # 0x160af
movl $0x1dc, %edx            # imm = 0x1DC
callq 0x3210
leaq 0x973e(%rip), %rdi      # 0x16084
leaq 0x91a4(%rip), %rsi      # 0x15af1
leaq 0x975b(%rip), %rcx      # 0x160af
movl $0x1d9, %edx            # imm = 0x1D9
callq 0x3210
leaq 0x94d1(%rip), %rdi      # 0x15e36
leaq 0x9185(%rip), %rsi      # 0x15af1
leaq 0x94cf(%rip), %rcx      # 0x15e42
movl $0x189, %edx            # imm = 0x189
callq 0x3210