// File: /workspace/github_cpp_makefile_star2_O3/jimmiebergmann[P]fbx-file/examples/example1.cpp
// Function: printRecord(Fbx::Record const*, unsigned long)
void printRecord(const Fbx::Record * record, size_t level = 0)
{
    std::cout << std::string(level * 3, ' ') << "Rec: " << record->name() << std::endl;

    for (auto p : record->properties())
    {
        std::cout << std::string((level + 1) * 3, ' ') << "Prop - " << p->code() << ": " << p->string() << std::endl;
    }
    for (auto r : *record)
    {
        printRecord(r, level + 1);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r14
movq %rdi, %r12
leaq (%rsi,%rsi,2), %rsi
leaq -0x40(%rbp), %r15
movq %r15, -0x10(%r15)
leaq -0x50(%rbp), %rdi
movq %rsi, -0x30(%rbp)
movl $0x20, %edx
callq 0x32b0
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq 0x82a0(%rip), %rdi      # 0x1cfc8
callq 0x32a0
movq %rax, %rbx
leaq 0x34e2(%rip), %rsi      # 0x18219
movl $0x5, %edx
movq %rax, %rdi
callq 0x32a0
movq %r12, %rdi
callq 0x12106
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rbx, %rdi
callq 0x32a0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3240
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3190
movq %r14, -0x80(%rbp)
movq -0x50(%rbp), %rdi
cmpq %r15, %rdi
je 0x14d97
callq 0x3230
movq %r12, -0x78(%rbp)
movq %r12, %rdi
callq 0x12ff4
movq %rax, %rbx
movq %rax, %rdi
callq 0x10812
movq %rax, %r12
movq %rbx, %rdi
callq 0x10826
cmpq %rax, %r12
je 0x14ebc
movq %rax, %r13
addq $0x3, -0x30(%rbp)
movq 0x10(%r12), %rbx
movq %r15, %r14
movq %r15, -0x50(%rbp)
leaq -0x50(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl $0x20, %edx
callq 0x32b0
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq 0x81d1(%rip), %rdi      # 0x1cfc8
callq 0x32a0
movq %rax, %r15
movl $0x7, %edx
movq %rax, %rdi
leaq 0x3411(%rip), %rsi      # 0x1821f
callq 0x32a0
movq %rbx, %rdi
callq 0x102fe
movb %al, -0x70(%rbp)
movl $0x1, %edx
movq %r15, %rdi
leaq -0x70(%rbp), %rsi
callq 0x32a0
movq %rax, %r15
movl $0x2, %edx
movq %rax, %rdi
leaq 0x33db(%rip), %rsi      # 0x1821c
callq 0x32a0
leaq -0x70(%rbp), %rdi
movq %rbx, %rsi
callq 0x1038c
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq %r15, %rdi
callq 0x32a0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3240
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3190
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
movq %r14, %r15
je 0x14ea1
callq 0x3230
movq -0x50(%rbp), %rdi
cmpq %r15, %rdi
je 0x14eaf
callq 0x3230
movq (%r12), %r12
cmpq %r13, %r12
jne 0x14dca
movq -0x78(%rbp), %r14
movq %r14, %rdi
callq 0x13008
movq %rax, %rbx
movq %r14, %rdi
callq 0x13012
cmpq %rax, %rbx
movq -0x80(%rbp), %r15
je 0x14ef6
movq %rax, %r14
incq %r15
movq 0x10(%rbx), %rdi
movq %r15, %rsi
callq 0x14ce4
movq (%rbx), %rbx
cmpq %r14, %rbx
jne 0x14ee2
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x14f15
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r15, %rdi
jne 0x14f3f
jmp 0x14f44
movq %rax, %rbx
jmp 0x14f44
jmp 0x14f33
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x14f36
callq 0x3230
jmp 0x14f36
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x14f44
callq 0x3230
movq %rbx, %rdi
callq 0x3430