// File: /workspace/github_c_makefile_star2_O0/SimpleDoger[P]Darknet_CPU_Only/darknet.c
// Function: denormalize_net
void denormalize_net(char *cfgfile, char *weightfile, char *outfile)
{
    gpu_index = -1;
    network *net = load_network(cfgfile, weightfile, 0);
    int i;
    for (i = 0; i < net->n; ++i) {
        layer l = net->layers[i];
        if ((l.type == DECONVOLUTIONAL || l.type == CONVOLUTIONAL) && l.batch_normalize) {
            denormalize_convolutional_layer(l);
            net->layers[i].batch_normalize=0;
        }
        if (l.type == CONNECTED && l.batch_normalize) {
            denormalize_connected_layer(l);
            net->layers[i].batch_normalize=0;
        }
        if (l.type == GRU && l.batch_normalize) {
            denormalize_connected_layer(*l.input_z_layer);
            denormalize_connected_layer(*l.input_r_layer);
            denormalize_connected_layer(*l.input_h_layer);
            denormalize_connected_layer(*l.state_z_layer);
            denormalize_connected_layer(*l.state_r_layer);
            denormalize_connected_layer(*l.state_h_layer);
            l.input_z_layer->batch_normalize = 0;
            l.input_r_layer->batch_normalize = 0;
            l.input_h_layer->batch_normalize = 0;
            l.state_z_layer->batch_normalize = 0;
            l.state_r_layer->batch_normalize = 0;
            l.state_h_layer->batch_normalize = 0;
            net->layers[i].batch_normalize=0;
        }
    }
    save_weights(net, outfile);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x970, %rsp            # imm = 0x970
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq 0x13ed2(%rip), %rax     # 0x83e40
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
xorl %edx, %edx
callq 0x39a70
movq %rax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
movq -0x20(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x7017e
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rsi
movslq -0x24(%rbp), %rax
imulq $0x4a0, %rax, %rax      # imm = 0x4A0
addq %rax, %rsi
leaq -0x4c8(%rbp), %rdi
movl $0x4a0, %edx            # imm = 0x4A0
callq 0x3280
cmpl $0x1, -0x4c8(%rbp)
je 0x6ffd6
cmpl $0x0, -0x4c8(%rbp)
jne 0x70013
cmpl $0x0, -0x488(%rbp)
je 0x70013
movq %rsp, %rdi
movl $0x94, %ecx
leaq -0x4c8(%rbp), %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x84e0
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x24(%rbp), %rcx
imulq $0x4a0, %rcx, %rcx      # imm = 0x4A0
addq %rcx, %rax
movl $0x0, 0x40(%rax)
cmpl $0x2, -0x4c8(%rbp)
jne 0x70059
cmpl $0x0, -0x488(%rbp)
je 0x70059
movq %rsp, %rdi
movl $0x94, %ecx
leaq -0x4c8(%rbp), %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x3cb70
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x24(%rbp), %rcx
imulq $0x4a0, %rcx, %rcx      # imm = 0x4A0
addq %rcx, %rax
movl $0x0, 0x40(%rax)
cmpl $0x10, -0x4c8(%rbp)
jne 0x7016e
cmpl $0x0, -0x488(%rbp)
je 0x7016e
movq -0xd8(%rbp), %rsi
movq %rsp, %rdi
movl $0x94, %ecx
rep  movsq (%rsi), %es:(%rdi)
callq 0x3cb70
movq -0xc8(%rbp), %rsi
movq %rsp, %rdi
movl $0x94, %ecx
rep  movsq (%rsi), %es:(%rdi)
callq 0x3cb70
movq -0xb8(%rbp), %rsi
movq %rsp, %rdi
movl $0x94, %ecx
rep  movsq (%rsi), %es:(%rdi)
callq 0x3cb70
movq -0xd0(%rbp), %rsi
movq %rsp, %rdi
movl $0x94, %ecx
rep  movsq (%rsi), %es:(%rdi)
callq 0x3cb70
movq -0xc0(%rbp), %rsi
movq %rsp, %rdi
movl $0x94, %ecx
rep  movsq (%rsi), %es:(%rdi)
callq 0x3cb70
movq -0xb0(%rbp), %rsi
movq %rsp, %rdi
movl $0x94, %ecx
rep  movsq (%rsi), %es:(%rdi)
callq 0x3cb70
movq -0xd8(%rbp), %rax
movl $0x0, 0x40(%rax)
movq -0xc8(%rbp), %rax
movl $0x0, 0x40(%rax)
movq -0xb8(%rbp), %rax
movl $0x0, 0x40(%rax)
movq -0xd0(%rbp), %rax
movl $0x0, 0x40(%rax)
movq -0xc0(%rbp), %rax
movl $0x0, 0x40(%rax)
movq -0xb0(%rbp), %rax
movl $0x0, 0x40(%rax)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x24(%rbp), %rcx
imulq $0x4a0, %rcx, %rcx      # imm = 0x4A0
addq %rcx, %rax
movl $0x0, 0x40(%rax)
jmp 0x70170
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x6ff8e
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x41980
addq $0x970, %rsp            # imm = 0x970
popq %rbp
retq
nopw %cs:(%rax,%rax)