// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/tests/testSerialize.cpp
// Function: testDirectorySerialization()
void testDirectorySerialization() {
    Sys* tester = new Sys();
    size_t ports[5] = {1,2,4,5};
    String* sa = new String("mama mia");
    String* sb = new String("here we");
    String* sc = new String("go");
    String* sd = new String("again");
    String* strings[4] = {sa,sb,sc,sd};
    Directory* d = new Directory(0, 1, 1, 4, ports, strings);
    char* d_serialized = d->serialize();
    Directory* d_two = new Directory(d_serialized);
    char* d_serialized_two = d_two->serialize();
    tester->t_true(strcmp(d_serialized, d_two->serialize()) == 0);
    tester->OK("Passed Directory Serialization Tests!");
    delete tester;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl $0x1, %edi
callq 0x7200
movq %rax, %r12
xorps %xmm0, %xmm0
movaps %xmm0, -0x60(%rbp)
movaps %xmm0, -0x50(%rbp)
xorl %ebx, %ebx
movq %rbx, -0x40(%rbp)
movq $0x1, -0x60(%rbp)
movq $0x2, -0x58(%rbp)
movq $0x4, -0x50(%rbp)
movq $0x5, -0x48(%rbp)
movl $0x20, %edi
callq 0x7200
movq %rax, %r14
movq %rbx, 0x8(%rax)
leaq 0x228d3(%rip), %rbx     # 0x2b478
movq %rbx, (%rax)
movq $0x8, 0x10(%rax)
movl $0x9, %edi
callq 0x7030
movq %rax, 0x18(%r14)
movabsq $0x61696d20616d616d, %rcx # imm = 0x61696D20616D616D
movq %rcx, (%rax)
movb $0x0, 0x8(%rax)
movl $0x20, %edi
callq 0x7200
movq %rax, %r15
movq $0x0, 0x8(%rax)
movq %rbx, (%rax)
movq $0x7, 0x10(%rax)
movl $0x8, %edi
callq 0x7030
movq %r12, -0x30(%rbp)
movq %rax, 0x18(%r15)
movabsq $0x65772065726568, %rcx # imm = 0x65772065726568
movq %rcx, (%rax)
movb $0x0, 0x7(%rax)
movl $0x20, %edi
callq 0x7200
movq %rax, %r12
movq $0x0, 0x8(%rax)
movq %rbx, (%rax)
movq $0x2, 0x10(%rax)
movl $0x3, %edi
callq 0x7030
movq %rax, 0x18(%r12)
movw $0x6f67, (%rax)         # imm = 0x6F67
movb $0x0, 0x2(%rax)
movl $0x20, %edi
callq 0x7200
movq %rax, %r13
movq $0x0, 0x8(%rax)
movq %rbx, (%rax)
movq $0x5, 0x10(%rax)
movl $0x6, %edi
callq 0x7030
movq %rax, 0x18(%r13)
movw $0x6e, 0x4(%rax)
movl $0x69616761, (%rax)     # imm = 0x69616761
movb $0x0, 0x5(%rax)
leaq -0x80(%rbp), %rbx
movq %r14, (%rbx)
movq %r15, 0x8(%rbx)
movq %r12, 0x10(%rbx)
movq %r13, 0x18(%rbx)
movl $0x48, %edi
callq 0x7200
movq %rax, %r14
movq %rbx, (%rsp)
leaq -0x60(%rbp), %r9
movl $0x1, %edx
movl $0x1, %ecx
movl $0x4, %r8d
movq %rax, %rdi
xorl %esi, %esi
callq 0xdd66
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
movq %rax, %r15
movl $0x48, %edi
callq 0x7200
movq %rax, %r14
movq %rax, %rdi
movq %r15, %rsi
callq 0xde26
movq -0x30(%rbp), %rbx
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
movq %r15, %rdi
movq %rax, %rsi
callq 0x7290
testl %eax, %eax
jne 0x8d39
leaq 0x17631(%rip), %rsi     # 0x2034b
movq %rbx, %rdi
callq 0x127ec
movq %rbx, %rdi
callq 0x71d0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1799e(%rip), %rsi     # 0x206de
movq %rbx, %rdi
callq 0x127ec
movl $0x1, %edi
callq 0x7260
jmp 0x8d6e
jmp 0x8d6e
movq %rax, %rbx
movq %r13, %rdi
jmp 0x8d74
movq %rax, %rbx
movq %r12, %rdi
jmp 0x8d74
movq %rax, %rbx
movq %r15, %rdi
jmp 0x8d74
movq %rax, %rbx
movq %r14, %rdi
callq 0x71d0
movq %rbx, %rdi
callq 0x7350