// File: /workspace/github_cpp_makefile_star2_O1/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, %r15
movq %rdi, %r14
movl 0xc(%rdi), %esi
movq 0x8(%r15), %r12
testq %r12, %r12
je 0x473d
movl 0x8(%r12), %eax
testl %eax, %eax
je 0x473a
leal 0x1(%rax), %ecx
lock
cmpxchgl %ecx, 0x8(%r12)
jne 0x4728
jmp 0x473d
xorl %r12d, %r12d
testq %r12, %r12
je 0x474e
movl 0x8(%r12), %eax
testl %eax, %eax
sete %al
jmp 0x4750
movb $0x1, %al
testb %al, %al
jne 0x4759
movq (%r15), %rax
jmp 0x475b
xorl %eax, %eax
movl 0xc(%rax), %edx
leaq 0x8(%rsp), %rdi
callq 0x32ae
leaq 0x20(%rsp), %r13
movq -0x8(%r13), %rax
movq %rax, 0xa0(%r14)
leaq 0xa8(%r14), %rdi
movq %r13, %rsi
callq 0x3866
movl -0x10(%r13), %eax
movl %eax, 0x98(%r14)
movl -0xc(%r13), %eax
movl %eax, 0x9c(%r14)
leaq 0x433c(%rip), %rax      # 0x8ae0
movq %rax, -0x18(%r13)
movq (%r13), %rdi
testq %rdi, %rdi
je 0x47b6
callq 0x349c
movq %rbx, (%rsp)
testq %r12, %r12
je 0x47c7
movq %r12, %rdi
callq 0x349c
leaq 0x8(%r15), %rbx
leaq 0x90(%r14), %r13
movl 0xc(%r14), %esi
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movl $0x1, %edx
callq 0x32ae
leaq 0xb0(%r14), %rbp
movq 0x10(%r12), %rax
movq %rax, 0xc0(%r14)
leaq 0xc8(%r14), %rdi
leaq 0x20(%rsp), %r12
movq %r12, %rsi
callq 0x3866
movl -0x10(%r12), %eax
movl %eax, 0xb8(%r14)
movl -0xc(%r12), %eax
movl %eax, 0xbc(%r14)
leaq 0x42b2(%rip), %rax      # 0x8ae0
movq %rax, -0x18(%r12)
movq (%r12), %rdi
testq %rdi, %rdi
je 0x4841
callq 0x349c
movq %r13, %rdi
xorl %esi, %esi
callq 0x522a
movq %rbp, %rdi
xorl %esi, %esi
callq 0x522a
movl 0xc(%r14), %esi
movq (%rbx), %r13
testq %r13, %r13
je 0x4879
movl 0x8(%r13), %eax
testl %eax, %eax
je 0x4876
leal 0x1(%rax), %ecx
lock
cmpxchgl %ecx, 0x8(%r13)
jne 0x4865
jmp 0x4879
xorl %r13d, %r13d
testq %r13, %r13
je 0x4889
movl 0x8(%r13), %eax
testl %eax, %eax
sete %al
jmp 0x488b
movb $0x1, %al
testb %al, %al
jne 0x4894
movq (%r15), %rax
jmp 0x4896
xorl %eax, %eax
movl 0xc(%rax), %edx
leaq 0x8(%rsp), %rdi
callq 0x32ae
leaq 0x20(%rsp), %r12
movq -0x8(%r12), %rax
movq %rax, 0xe0(%r14)
leaq 0xe8(%r14), %rdi
movq %r12, %rsi
callq 0x3866
movl -0x10(%r12), %eax
movl %eax, 0xd8(%r14)
movl -0xc(%r12), %eax
movl %eax, 0xdc(%r14)
leaq 0x41fe(%rip), %rax      # 0x8ae0
movq %rax, -0x18(%r12)
movq (%r12), %rdi
testq %rdi, %rdi
je 0x48f5
callq 0x349c
testq %r13, %r13
je 0x4902
movq %r13, %rdi
callq 0x349c
movl 0xc(%r14), %esi
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movl $0x1, %edx
callq 0x32ae
movq 0x10(%r12), %rax
movq %rax, 0x100(%r14)
leaq 0x108(%r14), %rdi
leaq 0x20(%rsp), %r12
movq %r12, %rsi
callq 0x3866
movl -0x10(%r12), %eax
movl %eax, 0xf8(%r14)
movl -0xc(%r12), %eax
movl %eax, 0xfc(%r14)
leaq 0x4189(%rip), %rax      # 0x8ae0
movq %rax, -0x18(%r12)
movq (%r12), %rdi
testq %rdi, %rdi
je 0x496a
callq 0x349c
movb $0x1, 0x8(%r14)
movq (%r15), %rax
movq %rax, 0x70(%r14)
leaq 0x78(%r14), %rdi
movq %rbx, %rsi
callq 0x3f1e
movq (%rsp), %rsi
movq (%rsi), %rax
movq %rax, 0x80(%r14)
addq $0x88, %r14
addq $0x8, %rsi
movq %r14, %rdi
callq 0x3866
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
testq %r13, %r13
je 0x49cf
movq %r13, %rdi
jmp 0x49ca
movq %rax, %rbx
testq %r12, %r12
je 0x49cf
movq %r12, %rdi
callq 0x349c
movq %rbx, %rdi
callq 0x2200
nop