// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_hmap.c
// Function: bcore_hmap_u3vd_s_copy
void bcore_hmap_u3vd_s_copy( bcore_hmap_u3vd_s* o, const bcore_hmap_u3vd_s* src )
{
    for( uz_t i = 0; i < o->size; i++ ) bcore_hnode_u3vd_s_down( &o->data[ i ] );
    if( src->size > o->space )
    {
        o->data = bcore_un_alloc( sizeof( bcore_hnode_u3vd_s ), o->data, o->space,  0, &o->space );
        o->data = bcore_un_alloc( sizeof( bcore_hnode_u3vd_s ), o->data, 0, src->size, &o->space );
    }
    o->size = src->size;
    for( uz_t i = 0; i < o->size; i++ )
    {
        bcore_hnode_u3vd_s_init( &o->data[ i ] );
        bcore_hnode_u3vd_s_copy( &o->data[ i ], &src->data[ i ] );
    }
    o->depth_limit = src->depth_limit;
    o->h1          = src->h1;
    o->h2          = src->h2;
    o->h3          = src->h3;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, (%rsp)
movq %rdi, %rbx
cmpq $0x0, 0x10(%rdi)
je 0xd159d
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x8(%rbx), %rdi
addq %r14, %rdi
callq 0xd1497
incq %r15
addq $0x18, %r14
cmpq 0x10(%rbx), %r15
jb 0xd1584
movq 0x18(%rbx), %rdx
movq (%rsp), %r15
cmpq %rdx, 0x10(%r15)
jbe 0xd15e8
leaq 0x18(%rbx), %r15
movq 0x8(%rbx), %rsi
movl $0x18, %edi
xorl %ecx, %ecx
movq %r15, %r8
callq 0xc833e
movq %rax, 0x8(%rbx)
movq (%rsp), %rcx
movq 0x10(%rcx), %rcx
movl $0x18, %edi
movq %rax, %rsi
xorl %edx, %edx
movq %r15, %r8
movq (%rsp), %r15
callq 0xc833e
movq %rax, 0x8(%rbx)
movq 0x10(%r15), %rax
movq %rax, 0x10(%rbx)
testq %rax, %rax
je 0xd17e5
xorl %r14d, %r14d
xorl %r12d, %r12d
movq 0x8(%rbx), %rdi
addq %r14, %rdi
movl $0x18, %esi
callq 0xc8366
movq 0x8(%rbx), %r13
movq 0x8(%r15), %rbp
cmpb $0x1, 0x9(%r13,%r14)
jne 0xd16ed
movq 0x10(%r13,%r14), %rsi
testq %rsi, %rsi
je 0xd16ed
movq (%rsi), %r8
leaq 0xd7e2c(%rip), %rdx     # 0x1a9468
movl (%rdx), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r8, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r8, %rdx
je 0xd1695
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r8, %rdx
je 0xd1695
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r8, %rdx
je 0xd1695
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r8, %rdx
jne 0xd17d8
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0xd16d6
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %rsi, 0x8(%rsp)
movq %r8, %rsi
movq %r8, 0x10(%rsp)
callq 0xf3f85
movq %rax, %r15
leaq 0xd7da4(%rip), %rdi     # 0x1a9468
movq 0x10(%rsp), %rsi
movq %rax, %rdx
callq 0x12128c
movq 0x8(%rsp), %rsi
movq %r15, %rdi
callq *0xb8(%r15)
movq $0x0, 0x10(%r13,%r14)
movq (%rsp), %r15
leaq (%r14,%r13), %rdi
leaq (%r14,%rbp), %rsi
movl $0x18, %edx
callq 0xc83f1
cmpb $0x1, 0x9(%rbp,%r14)
jne 0xd17c5
movq 0x10(%rbp,%r14), %rsi
testq %rsi, %rsi
je 0xd17c5
movq (%rsi), %rbp
leaq 0xd7d45(%rip), %rdx     # 0x1a9468
movl (%rdx), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %rbp, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %rbp, %rdx
je 0xd1778
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbp, %rdx
je 0xd1778
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbp, %rdx
je 0xd1778
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbp, %rdx
jne 0xd17e0
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0xd17b2
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %rsi, 0x8(%rsp)
movq %rbp, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0xd7cc6(%rip), %rdi     # 0x1a9468
movq %rbp, %rsi
movq %rax, %rdx
callq 0x12128c
movq 0x8(%rsp), %rsi
movq %r15, %rdi
callq *0xc0(%r15)
movq %rax, 0x10(%r13,%r14)
movq (%rsp), %r15
incq %r12
addq $0x18, %r14
cmpq 0x10(%rbx), %r12
jb 0xd15ff
jmp 0xd17e5
xorl %r15d, %r15d
jmp 0xd1699
xorl %r15d, %r15d
jmp 0xd177c
movq 0x20(%r15), %rax
movq %rax, 0x20(%rbx)
movq 0x28(%r15), %rax
movq %rax, 0x28(%rbx)
movq 0x30(%r15), %rax
movq %rax, 0x30(%rbx)
movq 0x38(%r15), %rax
movq %rax, 0x38(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq