// File: /workspace/github_cpp_makefile_star2_O3/theolepage[P]prophecy/src/layer_implem/dense_layer.hh
// Function: DenseLayer<float>::compile(std::weak_ptr<Layer<float>>, std::shared_ptr<Layer<float>>)
void compile(std::weak_ptr<Layer<T>> prev,
                 std::shared_ptr<Layer<T>> next)
    {
        // Initialize weights and biases
        this->weights_ = Matrix<T>(this->nb_neurons_, prev.lock()->get_nb_neurons());
        this->biases_ = Matrix<T>(this->nb_neurons_, 1);
        this->weights_.fill(fill_type::RANDOM_FLOAT);
        this->biases_.fill(fill_type::RANDOM_FLOAT);

        // Initialize delta_weights_ and delta_biases_
        this->delta_weights_ = Matrix<T>(this->nb_neurons_, prev.lock()->get_nb_neurons());
        this->delta_biases_ = Matrix<T>(this->nb_neurons_, 1);

        this->compiled_ = true;
        this->prev_ = prev;
        this->next_ = next;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r14
movl 0xc(%rdi), %esi
leaq 0x8(%r12), %rdx
movq 0x8(%r12), %r13
movl 0x8(%r13), %eax
leal 0x1(%rax), %ecx
lock
cmpxchgl %ecx, 0x8(%r13)
jne 0x45fa
movq %rdx, (%rsp)
movl 0x8(%r13), %eax
movq (%r12), %rax
movl 0xc(%rax), %edx
leaq 0x8(%rsp), %rdi
callq 0x3332
leaq 0x20(%rsp), %rbp
movq -0x8(%rbp), %rax
movq %rax, 0xa0(%r14)
leaq 0xa8(%r14), %rdi
movq %rbp, %rsi
callq 0x38c6
movq -0x10(%rbp), %rax
movq %rax, 0x98(%r14)
leaq 0x44c9(%rip), %rax      # 0x8b18
movq %rax, -0x18(%rbp)
movq (%rbp), %rdi
testq %rdi, %rdi
je 0x4661
callq 0x350c
leaq 0x90(%r14), %rbp
movq %r13, %rdi
callq 0x350c
movl 0xc(%r14), %esi
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movl $0x1, %edx
callq 0x3332
leaq 0xb0(%r14), %r13
movq 0x10(%r15), %rax
movq %rax, 0xc0(%r14)
leaq 0xc8(%r14), %rdi
leaq 0x20(%rsp), %r15
movq %r15, %rsi
callq 0x38c6
movq -0x10(%r15), %rax
movq %rax, 0xb8(%r14)
leaq 0x445a(%rip), %rax      # 0x8b18
movq %rax, -0x18(%r15)
movq (%r15), %rdi
testq %rdi, %rdi
je 0x46cf
callq 0x350c
movq %rbp, %rdi
xorl %esi, %esi
callq 0x5080
movq %r13, %rdi
xorl %esi, %esi
callq 0x5080
movl 0xc(%r14), %esi
movq (%rsp), %rbp
movq (%rbp), %r13
movl 0x8(%r13), %eax
leal 0x1(%rax), %ecx
lock
cmpxchgl %ecx, 0x8(%r13)
jne 0x46f3
movl 0x8(%r13), %eax
movq (%r12), %rax
movl 0xc(%rax), %edx
leaq 0x8(%rsp), %rdi
callq 0x3332
leaq 0x20(%rsp), %r15
movq -0x8(%r15), %rax
movq %rax, 0xe0(%r14)
leaq 0xe8(%r14), %rdi
movq %r15, %rsi
callq 0x38c6
movq -0x10(%r15), %rax
movq %rax, 0xd8(%r14)
leaq 0x43d4(%rip), %rax      # 0x8b18
movq %rax, -0x18(%r15)
movq (%r15), %rdi
testq %rdi, %rdi
je 0x4755
callq 0x350c
movq %r13, %rdi
callq 0x350c
movl 0xc(%r14), %esi
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movl $0x1, %edx
callq 0x3332
movq 0x10(%r15), %rax
movq %rax, 0x100(%r14)
leaq 0x108(%r14), %rdi
leaq 0x20(%rsp), %r15
movq %r15, %rsi
callq 0x38c6
movq -0x10(%r15), %rax
movq %rax, 0xf8(%r14)
leaq 0x4374(%rip), %rax      # 0x8b18
movq %rax, -0x18(%r15)
movq (%r15), %rdi
testq %rdi, %rdi
je 0x47b5
callq 0x350c
movb $0x1, 0x8(%r14)
movq (%r12), %rax
movq %rax, 0x70(%r14)
leaq 0x78(%r14), %rdi
movq %rbp, %rsi
callq 0x3e9c
movq (%rbx), %rax
movq %rax, 0x80(%r14)
addq $0x88, %r14
addq $0x8, %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x38c6
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x47ff
movq %rax, %rbx
movq %r13, %rdi
callq 0x350c
movq %rbx, %rdi
callq 0x2200