// File: mertyildiran[P]Plexus/plexus/wrapper.cpp
// Function: PyNetwork_load(PyNetwork*, _object*, _object*)
static PyObject * PyNetwork_load(
    PyNetwork* self,
    PyObject* args,
    PyObject *kwargs
)
{
    std::vector<double> input_arr;
    std::vector<double> output_arr;
    PyObject *input_obj;
    PyObject *output_obj = Py_None;

    static char *kwlist[] = {"input_obj", "output_obj", NULL};

    if (! PyArg_ParseTupleAndKeywords(
        args,
        kwargs,
        "O|O",
        kwlist,
        &input_obj,
        &output_obj
    )) {
        PyErr_SetString(PyExc_TypeError, "Wrong type of argument");
        return NULL;
    }

    Py_XINCREF(input_obj);
    Py_XINCREF(output_obj);

    PyObject *input_iter = PyObject_GetIter(input_obj);
    if (!input_iter) {
        PyErr_SetString(PyExc_TypeError, "Input argument is not iterable");
        return NULL;
    }
    try {
        parse_iterable(input_arr, input_iter);
    } catch (char *msg) {
        PyErr_SetString(
            PyExc_TypeError,
            msg
        );
        return NULL;
    }

    if (output_obj != Py_None) {
        PyObject *output_iter = PyObject_GetIter(output_obj);
        if (!output_iter) {
            PyErr_SetString(
                PyExc_TypeError,
                "Output argument is not iterable"
            );
            return NULL;
        }
        try {
            parse_iterable(output_arr, output_iter);
        } catch (char *msg) {
            PyErr_SetString(
                PyExc_TypeError,
                msg
            );
            return NULL;
        }
    }

    Py_XDECREF(input_obj);
    Py_XDECREF(output_obj);

    (self->ptrObj)->load(input_arr, output_arr);

    return Py_BuildValue("");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x88(%rbp)
movq %rsi, -0x90(%rbp)
movq %rdx, -0x98(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x19610
leaq -0x38(%rbp), %rdi
callq 0x19610
movq 0xca32(%rip), %rax      # 0x30f58
movq %rax, -0x48(%rbp)
movq -0x90(%rbp), %rdi
movq -0x98(%rbp), %rsi
leaq 0x303a(%rip), %rdx      # 0x27579
leaq 0xd6ba(%rip), %rcx      # 0x31c00
xorl %eax, %eax
leaq -0x40(%rbp), %r8
leaq -0x48(%rbp), %r9
callq 0x16120
movl %eax, -0xcc(%rbp)
jmp 0x2455d
movl -0xcc(%rbp), %eax
cmpl $0x0, %eax
jne 0x245ae
movq 0xca49(%rip), %rax      # 0x30fb8
movq (%rax), %rdi
leaq 0x3004(%rip), %rsi      # 0x2757d
callq 0x16360
jmp 0x24580
movq $0x0, -0x80(%rbp)
movl $0x1, -0xa8(%rbp)
jmp 0x2489d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x248dc
movq -0x40(%rbp), %rdi
callq 0x24950
jmp 0x245b9
movq -0x48(%rbp), %rdi
callq 0x24950
jmp 0x245c4
movq -0x40(%rbp), %rdi
callq 0x161a0
movq %rax, -0xd8(%rbp)
jmp 0x245d6
movq -0xd8(%rbp), %rax
movq %rax, -0xb0(%rbp)
cmpq $0x0, -0xb0(%rbp)
jne 0x2461d
movq 0xc9c3(%rip), %rax      # 0x30fb8
movq (%rax), %rdi
leaq 0x2f95(%rip), %rsi      # 0x27594
callq 0x16360
jmp 0x24606
movq $0x0, -0x80(%rbp)
movl $0x1, -0xa8(%rbp)
jmp 0x2489d
movq -0xb0(%rbp), %rsi
leaq -0x20(%rbp), %rdi
callq 0x23d30
jmp 0x2462f
jmp 0x246bc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
movl -0xa4(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x248dc
movq -0xa0(%rbp), %rdi
callq 0x160c0
movq %rax, -0xb8(%rbp)
movq 0xc945(%rip), %rax      # 0x30fb8
movq (%rax), %rdi
movq -0xb8(%rbp), %rsi
callq 0x16360
jmp 0x24684
movq $0x0, -0x80(%rbp)
movl $0x1, -0xa8(%rbp)
callq 0x16460
jmp 0x2489d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
callq 0x16460
jmp 0x248dc
movq 0xc895(%rip), %rax      # 0x30f58
cmpq %rax, -0x48(%rbp)
je 0x247c7
movq -0x48(%rbp), %rdi
callq 0x161a0
movq %rax, -0xe0(%rbp)
jmp 0x246df
movq -0xe0(%rbp), %rax
movq %rax, -0xc0(%rbp)
cmpq $0x0, -0xc0(%rbp)
jne 0x24726
movq 0xc8ba(%rip), %rax      # 0x30fb8
movq (%rax), %rdi
leaq 0x2eab(%rip), %rsi      # 0x275b3
callq 0x16360
jmp 0x2470f
movq $0x0, -0x80(%rbp)
movl $0x1, -0xa8(%rbp)
jmp 0x2489d
movq -0xc0(%rbp), %rsi
leaq -0x38(%rbp), %rdi
callq 0x23d30
jmp 0x24738
jmp 0x247c5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
movl -0xa4(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x248dc
movq -0xa0(%rbp), %rdi
callq 0x160c0
movq %rax, -0xc8(%rbp)
movq 0xc83c(%rip), %rax      # 0x30fb8
movq (%rax), %rdi
movq -0xc8(%rbp), %rsi
callq 0x16360
jmp 0x2478d
movq $0x0, -0x80(%rbp)
movl $0x1, -0xa8(%rbp)
callq 0x16460
jmp 0x2489d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
callq 0x16460
jmp 0x248dc
jmp 0x247c7
movq -0x40(%rbp), %rdi
callq 0x23e10
jmp 0x247d2
movq -0x48(%rbp), %rdi
callq 0x23e10
jmp 0x247dd
movq -0x88(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xe8(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x25d00
jmp 0x247fe
leaq -0x78(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x25d00
jmp 0x2480d
movq -0xe8(%rbp), %rdi
leaq -0x60(%rbp), %rsi
leaq -0x78(%rbp), %rdx
callq 0x18760
jmp 0x24823
leaq -0x78(%rbp), %rdi
callq 0x19910
leaq -0x60(%rbp), %rdi
callq 0x19910
leaq 0x28a9(%rip), %rdi      # 0x270e5
xorl %eax, %eax
callq 0x16210
movq %rax, -0xf0(%rbp)
jmp 0x2484c
movq -0xf0(%rbp), %rax
movq %rax, -0x80(%rbp)
movl $0x1, -0xa8(%rbp)
jmp 0x2489d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x24892
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x19910
leaq -0x60(%rbp), %rdi
callq 0x19910
jmp 0x248dc
leaq -0x38(%rbp), %rdi
callq 0x19910
leaq -0x20(%rbp), %rdi
callq 0x19910
movq -0x80(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x2491a
movq -0xf8(%rbp), %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
leaq -0x38(%rbp), %rdi
callq 0x19910
leaq -0x20(%rbp), %rdi
callq 0x19910
movq -0xa0(%rbp), %rax
movq %rax, -0x100(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x2491a
movq -0x100(%rbp), %rdi
callq 0x164e0
callq 0x16340
nop