// File: /workspace/github_c_makefile_star2_O0/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: fill_network_boxes
void fill_network_boxes(network *net, int w, int h, float thresh, float hier, int *map, int relative, detection *dets)
{
    int j;
    for(j = 0; j < net->n; ++j){
        layer l = net->layers[j];
        if(l.type == YOLO){
            int count = get_yolo_detections(l, w, h, net->w, net->h, thresh, map, relative, dets);
            dets += count;
        }
        if(l.type == REGION){
            get_region_detections(l, w, h, net->w, net->h, thresh, map, hier, relative, dets);
            dets += l.w*l.h*l.n;
        }
        if(l.type == DETECTION){
            get_detection_detections(l, w, h, thresh, dets);
            dets += l.w*l.h*l.n;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x9b0, %rsp            # imm = 0x9B0
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movss %xmm0, -0x14(%rbp)
movss %xmm1, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq %r9, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x3b628
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rsi
movslq -0x34(%rbp), %rax
imulq $0x4a0, %rax, %rax      # imm = 0x4A0
addq %rax, %rsi
leaq -0x4d8(%rbp), %rdi
movl $0x4a0, %edx            # imm = 0x4A0
callq 0x3280
cmpl $0x17, -0x4d8(%rbp)
jne 0x3b503
movl -0xc(%rbp), %eax
movl %eax, -0x4e4(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0x4e8(%rbp)
movq -0x8(%rbp), %rax
movl 0x94(%rax), %edx
movq -0x8(%rbp), %rax
movl 0x90(%rax), %eax
movl %eax, -0x4e0(%rbp)
movss -0x14(%rbp), %xmm0
movq -0x20(%rbp), %r8
movl -0x24(%rbp), %r9d
movq -0x30(%rbp), %r10
movq %rsp, %rax
movl $0x94, %ecx
leaq -0x4d8(%rbp), %rsi
movq %rax, %rdi
rep  movsq (%rsi), %es:(%rdi)
movl -0x4e8(%rbp), %esi
movl -0x4e4(%rbp), %edi
movl -0x4e0(%rbp), %ecx
movq %r10, 0x4a0(%rax)
callq 0x53520
movl %eax, -0x4dc(%rbp)
movl -0x4dc(%rbp), %ecx
movq -0x30(%rbp), %rax
movslq %ecx, %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
cmpl $0x16, -0x4d8(%rbp)
jne 0x3b5ab
movl -0xc(%rbp), %eax
movl %eax, -0x4f0(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0x4f4(%rbp)
movq -0x8(%rbp), %rax
movl 0x94(%rax), %edx
movq -0x8(%rbp), %rax
movl 0x90(%rax), %eax
movl %eax, -0x4ec(%rbp)
movss -0x14(%rbp), %xmm0
movq -0x20(%rbp), %r8
movss -0x18(%rbp), %xmm1
movl -0x24(%rbp), %r9d
movq -0x30(%rbp), %r10
movq %rsp, %rax
movl $0x94, %ecx
leaq -0x4d8(%rbp), %rsi
movq %rax, %rdi
rep  movsq (%rsi), %es:(%rdi)
movl -0x4f4(%rbp), %esi
movl -0x4f0(%rbp), %edi
movl -0x4ec(%rbp), %ecx
movq %r10, 0x4a0(%rax)
callq 0x4dd80
movl -0x468(%rbp), %ecx
imull -0x46c(%rbp), %ecx
imull -0x454(%rbp), %ecx
movq -0x30(%rbp), %rax
movslq %ecx, %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
cmpl $0x5, -0x4d8(%rbp)
jne 0x3b618
movl -0xc(%rbp), %eax
movl %eax, -0x4f8(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0x4fc(%rbp)
movss -0x14(%rbp), %xmm0
movq -0x30(%rbp), %rdx
movq %rsp, %rdi
movl $0x94, %ecx
leaq -0x4d8(%rbp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movl -0x4fc(%rbp), %esi
movl -0x4f8(%rbp), %edi
callq 0x43c50
movl -0x468(%rbp), %ecx
imull -0x46c(%rbp), %ecx
imull -0x454(%rbp), %ecx
movq -0x30(%rbp), %rax
movslq %ecx, %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
jmp 0x3b61a
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x3b432
addq $0x9b0, %rsp            # imm = 0x9B0
popq %rbp
retq
nopw %cs:(%rax,%rax)