// File: /workspace/github_c_makefile_star2_O3/SimpleDoger[P]Darknet_CPU_Only/parser.c
// Function: parse_yolo
layer parse_yolo(list *options, size_params params)
{
    int classes = option_find_int(options, "classes", 20);
    int total = option_find_int(options, "num", 1);
    int num = total;

    char *a = option_find_str(options, "mask", 0);
    int *mask = parse_yolo_mask(a, &num);
    layer l = make_yolo_layer(params.batch, params.w, params.h, num, total, mask, classes);
    assert(l.outputs == params.inputs);

    l.max_boxes = option_find_int_quiet(options, "max",90);
    l.jitter = option_find_float(options, "jitter", .2);

    l.ignore_thresh = option_find_float(options, "ignore_thresh", .5);
    l.truth_thresh = option_find_float(options, "truth_thresh", 1);
    l.random = option_find_int_quiet(options, "random", 0);

    char *map_file = option_find_str(options, "map", 0);
    if (map_file) l.map = read_map(map_file);

    a = option_find_str(options, "anchors", 0);
    if(a){
        int len = strlen(a);
        int n = 1;
        int i;
        for(i = 0; i < len; ++i){
            if (a[i] == ',') ++n;
        }
        for(i = 0; i < n; ++i){
            float bias = atof(a);
            l.biases[i] = bias;
            a = strchr(a, ',')+1;
        }
    }
    return l;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x247d4(%rip), %rsi     # 0x5929b
movq %r14, %rdi
movl $0x14, %edx
callq 0x36eed
movl %eax, %r15d
leaq 0x247c5(%rip), %rsi     # 0x592a3
movq %r14, %rdi
movl $0x1, %edx
callq 0x36eed
movl %eax, %ebp
leaq 0x4(%rsp), %r12
movl %eax, (%r12)
leaq 0x23f76(%rip), %rsi     # 0x58a73
movq %r14, %rdi
xorl %edx, %edx
callq 0x36e77
movq %rax, %rdi
movq %r12, %rsi
callq 0x34a0c
movl 0x4c(%rsp), %edx
movl 0x40(%rsp), %esi
movl 0x48(%rsp), %ecx
movl (%r12), %r8d
movq %rbx, %rdi
movl %ebp, %r9d
pushq %r15
pushq %rax
callq 0x8d86
addq $0x10, %rsp
movl 0x58(%rbx), %eax
cmpl 0x44(%rsp), %eax
jne 0x34c90
leaq 0x241fd(%rip), %rsi     # 0x58d45
movq %r14, %rdi
movl $0x5a, %edx
callq 0x37008
movl %eax, 0x88(%rbx)
leaq 0x2478f(%rip), %rsi     # 0x592f1
movss 0x243f6(%rip), %xmm0    # 0x58f60
movq %r14, %rdi
callq 0x370c5
movss %xmm0, 0xd8(%rbx)
leaq 0x24777(%rip), %rsi     # 0x592f8
movss 0x206db(%rip), %xmm0    # 0x55264
movq %r14, %rdi
callq 0x370c5
movss %xmm0, 0x15c(%rbx)
leaq 0x24766(%rip), %rsi     # 0x59306
movss 0x20460(%rip), %xmm0    # 0x55008
movq %r14, %rdi
callq 0x370c5
movss %xmm0, 0x160(%rbx)
leaq 0x24754(%rip), %rsi     # 0x59313
movq %r14, %rdi
xorl %edx, %edx
callq 0x37008
movl %eax, 0x158(%rbx)
leaq 0x24744(%rip), %rsi     # 0x5931a
movq %r14, %rdi
xorl %edx, %edx
callq 0x36e77
testq %rax, %rax
je 0x34bf4
movq %rax, %rdi
callq 0xe8a2
movq %rax, 0x1b8(%rbx)
leaq 0x24723(%rip), %rsi     # 0x5931e
movq %r14, %rdi
xorl %edx, %edx
callq 0x36e77
testq %rax, %rax
je 0x34c7e
movq %rax, %r14
movq %rax, %rdi
callq 0x3140
movl $0x1, %r15d
movl $0x1, %ecx
testl %eax, %eax
jle 0x34c40
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %edx, %edx
xorl %esi, %esi
cmpb $0x2c, (%r14,%rdx)
sete %sil
addl %esi, %ecx
incq %rdx
cmpq %rdx, %rax
jne 0x34c2b
movq 0x230(%rbx), %r12
cmpl $0x2, %ecx
cmovgel %ecx, %r15d
xorl %r13d, %r13d
movq %r14, %rdi
callq 0x30f0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, (%r12,%r13,4)
movq %r14, %rdi
movl $0x2c, %esi
callq 0x3150
movq %rax, %r14
incq %r14
incq %r13
cmpq %r13, %r15
jne 0x34c51
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x24610(%rip), %rdi     # 0x592a7
leaq 0x24624(%rip), %rsi     # 0x592c2
leaq 0x24626(%rip), %rcx     # 0x592cb
movl $0x13b, %edx            # imm = 0x13B
callq 0x31b0