// File: /workspace/github_c_makefile_star2_O0/SimpleDoger[P]Darknet_CPU_Only/parser.c
// Function: parse_convolutional
convolutional_layer parse_convolutional(list *options, size_params params)
{
    int n = option_find_int(options, "filters",1);
    int size = option_find_int(options, "size",1);
    int stride = option_find_int(options, "stride",1);
    int pad = option_find_int_quiet(options, "pad",0);
    int padding = option_find_int_quiet(options, "padding",0);
    int groups = option_find_int_quiet(options, "groups", 1);
    if(pad) padding = size/2;

    char *activation_s = option_find_str(options, "activation", "logistic");
    ACTIVATION activation = get_activation(activation_s);

    int batch,h,w,c;
    h = params.h;
    w = params.w;
    c = params.c;
    batch=params.batch;
    if(!(h && w && c)) error("Layer before convolutional layer must output image.");
    int batch_normalize = option_find_int_quiet(options, "batch_normalize", 0);
    int binary = option_find_int_quiet(options, "binary", 0);
    int xnor = option_find_int_quiet(options, "xnor", 0);

    convolutional_layer layer = make_convolutional_layer(batch,h,w,c,n,groups,size,stride,padding,activation, batch_normalize, binary, xnor, params.net->adam);
    layer.flipped = option_find_int_quiet(options, "flipped", 0);
    layer.dot = option_find_float_quiet(options, "dot", 0);

    return layer;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdi, -0x88(%rbp)
movq %rdi, -0x80(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x78(%rbp)
movq %rsi, -0x30(%rbp)
movq -0x30(%rbp), %rdi
leaq 0x36f22(%rip), %rsi     # 0x74a28
movl $0x1, %edx
callq 0x42990
movl %eax, -0x34(%rbp)
movq -0x30(%rbp), %rdi
leaq 0x38351(%rip), %rsi     # 0x75e6f
movl $0x1, %edx
callq 0x42990
movl %eax, -0x38(%rbp)
movq -0x30(%rbp), %rdi
leaq 0x36e04(%rip), %rsi     # 0x7493a
movl $0x1, %edx
callq 0x42990
movl %eax, -0x3c(%rbp)
movq -0x30(%rbp), %rdi
leaq 0x36df3(%rip), %rsi     # 0x74941
xorl %edx, %edx
callq 0x42b50
movl %eax, -0x40(%rbp)
movq -0x30(%rbp), %rdi
leaq 0x36e54(%rip), %rsi     # 0x749b7
xorl %edx, %edx
callq 0x42b50
movl %eax, -0x44(%rbp)
movq -0x30(%rbp), %rdi
leaq 0x36e47(%rip), %rsi     # 0x749bf
movl $0x1, %edx
callq 0x42b50
movl %eax, -0x48(%rbp)
cmpl $0x0, -0x40(%rbp)
je 0x3db99
movl -0x38(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0x44(%rbp)
movq -0x30(%rbp), %rdi
leaq 0x369d2(%rip), %rsi     # 0x74576
leaq 0x36539(%rip), %rdx     # 0x740e4
callq 0x42920
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
callq 0x2d650
movl %eax, %ecx
movq -0x78(%rbp), %rax
movl %ecx, -0x54(%rbp)
movl 0x8(%rax), %ecx
movl %ecx, -0x5c(%rbp)
movl 0xc(%rax), %ecx
movl %ecx, -0x60(%rbp)
movl 0x10(%rax), %ecx
movl %ecx, -0x64(%rbp)
movl (%rax), %eax
movl %eax, -0x58(%rbp)
cmpl $0x0, -0x5c(%rbp)
je 0x3dbef
cmpl $0x0, -0x60(%rbp)
je 0x3dbef
cmpl $0x0, -0x64(%rbp)
jne 0x3dbfb
leaq 0x36dd0(%rip), %rdi     # 0x749c6
callq 0x4c50
movq -0x30(%rbp), %rdi
leaq 0x36da1(%rip), %rsi     # 0x749a7
xorl %edx, %edx
callq 0x42b50
movl %eax, -0x68(%rbp)
movq -0x30(%rbp), %rdi
leaq 0x36ddf(%rip), %rsi     # 0x749fa
xorl %edx, %edx
callq 0x42b50
movl %eax, -0x6c(%rbp)
movq -0x30(%rbp), %rdi
leaq 0x36dd1(%rip), %rsi     # 0x74a01
xorl %edx, %edx
callq 0x42b50
movq -0x78(%rbp), %rdi
movl %eax, -0x70(%rbp)
movl -0x58(%rbp), %esi
movl -0x5c(%rbp), %edx
movl -0x60(%rbp), %ecx
movl -0x64(%rbp), %r8d
movl -0x34(%rbp), %r9d
movl -0x48(%rbp), %eax
movl -0x38(%rbp), %r13d
movl -0x3c(%rbp), %r12d
movl -0x44(%rbp), %r15d
movl -0x54(%rbp), %r14d
movl -0x68(%rbp), %ebx
movl -0x6c(%rbp), %r11d
movl -0x70(%rbp), %r10d
movq 0x20(%rdi), %rdi
movl 0x70(%rdi), %edi
movl %edi, -0x8c(%rbp)
movq -0x88(%rbp), %rdi
movl %eax, (%rsp)
movl -0x8c(%rbp), %eax
movl %r13d, 0x8(%rsp)
movl %r12d, 0x10(%rsp)
movl %r15d, 0x18(%rsp)
movl %r14d, 0x20(%rsp)
movl %ebx, 0x28(%rsp)
movl %r11d, 0x30(%rsp)
movl %r10d, 0x38(%rsp)
movl %eax, 0x40(%rsp)
callq 0x7560
movq -0x30(%rbp), %rdi
leaq 0x36d46(%rip), %rsi     # 0x74a06
xorl %edx, %edx
callq 0x42b50
movl %eax, %ecx
movq -0x88(%rbp), %rax
movl %ecx, 0x50(%rax)
movq -0x30(%rbp), %rdi
leaq 0x36d30(%rip), %rsi     # 0x74a0e
xorps %xmm0, %xmm0
callq 0x42ba0
movq -0x88(%rbp), %rcx
movq -0x80(%rbp), %rax
movss %xmm0, 0xd0(%rcx)
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax,%rax)