// File: /workspace/github_cpp_makefile_star2_O1/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 0x8074(%rip), %rdi      # 0x1cfc8
callq 0x32a0
movq %rax, %rbx
leaq 0x32d6(%rip), %rsi      # 0x18239
movl $0x5, %edx
movq %rax, %rdi
callq 0x32a0
movq %r12, %rdi
callq 0x123c6
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 0x14fc3
callq 0x3230
movq %r12, -0x78(%rbp)
movq %r12, %rdi
callq 0x13252
movq %rax, %rbx
movq %rax, %rdi
callq 0x10a94
movq %rax, %r12
movq %rbx, %rdi
callq 0x10aa8
cmpq %rax, %r12
je 0x150e8
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 0x7fa5(%rip), %rdi      # 0x1cfc8
callq 0x32a0
movq %rax, %r15
movl $0x7, %edx
movq %rax, %rdi
leaq 0x3205(%rip), %rsi      # 0x1823f
callq 0x32a0
movq %rbx, %rdi
callq 0x10582
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 0x31cf(%rip), %rsi      # 0x1823c
callq 0x32a0
leaq -0x70(%rbp), %rdi
movq %rbx, %rsi
callq 0x10610
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 0x150cd
callq 0x3230
movq -0x50(%rbp), %rdi
cmpq %r15, %rdi
je 0x150db
callq 0x3230
movq (%r12), %r12
cmpq %r13, %r12
jne 0x14ff6
movq -0x78(%rbp), %r14
movq %r14, %rdi
callq 0x13266
movq %rax, %rbx
movq %r14, %rdi
callq 0x13270
cmpq %rax, %rbx
movq -0x80(%rbp), %r15
je 0x15122
movq %rax, %r14
incq %r15
movq 0x10(%rbx), %rdi
movq %r15, %rsi
callq 0x14f10
movq (%rbx), %rbx
cmpq %r14, %rbx
jne 0x1510e
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x15141
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r15, %rdi
jne 0x1516b
jmp 0x15170
movq %rax, %rbx
jmp 0x15170
jmp 0x1515f
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x15162
callq 0x3230
jmp 0x15162
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x15170
callq 0x3230
movq %rbx, %rdi
callq 0x3430