// File: /workspace/github_c_makefile_star2_O2/WojciechMula[P]pyahocorasick/src/custompickle/load/module_automaton_load.c
// Function: module_automaton_load
PyObject*
module_automaton_load(PyObject* module, PyObject* args) {

    SaveLoadParameters params;
    Automaton* automaton;
    int ret;

    automaton = (Automaton*)automaton_create();
    if (UNLIKELY(automaton == NULL)) {
        return NULL;
    }

    if (UNLIKELY(!automaton_save_load_parse_args(automaton->store, args, &params))) {
        Py_DECREF(automaton);
        return NULL;
    }

    ret = automaton_load_impl(automaton, PyBytes_AsString(params.path), params.callback);
    Py_DECREF(params.path);

    if (LIKELY(ret))
        return (PyObject*)automaton;
    else
        return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %rbx
callq 0x484e
testq %rax, %rax
je 0x482a
movq %rax, %r14
movl 0x14(%rax), %edi
leaq 0x50(%rsp), %rdx
movq %rbx, %rsi
callq 0x3b9c
testb %al, %al
je 0x4822
movq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0x32d0
movq 0x58(%rsp), %rdx
leaq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x3fe0
testl %eax, %eax
je 0x4802
leaq 0x8(%rsp), %rdi
leaq 0x60(%rsp), %rsi
leaq 0x90(%rsp), %rdx
callq 0x4168
testl %eax, %eax
je 0x47f8
movl 0x70(%rsp), %eax
leal -0x1(%rax), %ecx
cmpl $0x1, %ecx
ja 0x467a
movq %r14, 0x38(%rsp)
movq %rbx, (%rsp)
leaq 0x8(%rsp), %r15
pushq $0x18
popq %rbx
xorl %ebp, %ebp
cmpq 0x30(%rsp), %rbp
jae 0x469d
movq %r15, %rdi
leaq 0x48(%rsp), %rsi
pushq $0x8
popq %rdx
callq 0x40a0
testl %eax, %eax
je 0x47f4
pushq $0x20
popq %rdi
callq 0x3370
testq %rax, %rax
je 0x47cd
movq %rax, %r14
movq %r15, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x40a0
testl %eax, %eax
je 0x47ec
andq $0x0, 0x18(%r14)
movl 0x10(%r14), %eax
testq %rax, %rax
je 0x45cf
imulq $0xc, %rax, %r12
movq %r12, %rdi
callq 0x3370
movq %rax, 0x18(%r14)
testq %rax, %rax
je 0x47de
movq %r15, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x40a0
testl %eax, %eax
je 0x47e3
cmpb $0x0, 0x14(%r14)
je 0x464b
cmpl $0x1e, 0x18(%rsp)
jne 0x464b
movq (%r14), %r13
xorl %edi, %edi
movq %r13, %rsi
callq 0x30c0
testq %rax, %rax
je 0x47e3
movq %rax, %r12
movq 0x8(%rax), %rax
testb $0x8, 0xab(%rax)
je 0x482f
movq %r12, %rsi
addq $0x20, %rsi
movq %r15, %rdi
movq %r13, %rdx
callq 0x40a0
testl %eax, %eax
je 0x47d4
movq 0x8(%rsp), %rdi
leaq 0x66d4(%rip), %rsi      # 0xad01
movq %r12, %rdx
xorl %eax, %eax
callq 0x30f0
testq %rax, %rax
je 0x47d4
movq %rax, (%r14)
movq %r12, %rdi
callq 0x37d5
movq 0x48(%rsp), %rax
movq 0x20(%rsp), %rcx
movq 0x28(%rsp), %rdx
movq %rdx, %rsi
shlq $0x4, %rsi
movq %rax, (%rcx,%rsi)
movq %r14, 0x8(%rcx,%rsi)
incq %rdx
movq %rdx, 0x28(%rsp)
incq %rbp
jmp 0x4545
testl %eax, %eax
je 0x476c
movq 0x98ff(%rip), %rax      # 0xdf88
movq (%rax), %rdi
leaq 0x3fe9(%rip), %rsi      # 0x867c
callq 0x3120
jmp 0x47f8
leaq 0x8(%rsp), %rbx
movq 0x18(%rbx), %rdi
movq 0x20(%rbx), %rsi
movq 0x8(%rdi), %r15
leaq 0x622(%rip), %rcx       # 0x4cd7
pushq $0x10
popq %rdx
callq 0x3080
xorl %r14d, %r14d
movq %r15, 0x40(%rsp)
cmpq 0x28(%rsp), %r14
jae 0x4753
movq 0x20(%rsp), %rax
movq %r14, %rcx
shlq $0x4, %rcx
movq 0x8(%rax,%rcx), %rbp
cmpl $0x2, 0x1c(%rsp)
jne 0x4706
movq 0x8(%rbp), %rsi
testq %rsi, %rsi
je 0x4706
movq %rbx, %rdi
callq 0x4ce9
movq %rax, 0x8(%rbp)
testq %rax, %rax
je 0x47b0
cmpl $0x0, 0x10(%rbp)
je 0x4746
pushq $-0x1
popq %r13
pushq $0x4
popq %r12
movl 0x10(%rbp), %eax
incq %r13
cmpq %rax, %r13
jae 0x4746
leaq 0xc(%r12), %r15
movq 0x18(%rbp), %rax
movq (%rax,%r12), %rsi
movq %rbx, %rdi
callq 0x4ce9
movq 0x18(%rbp), %rcx
movq %rax, (%rcx,%r12)
movq %r15, %r12
testq %rax, %rax
jne 0x4714
jmp 0x47b0
incq %r14
movq 0x40(%rsp), %r15
jmp 0x46c5
andq $0x0, 0x28(%rsp)
testq %r15, %r15
movq (%rsp), %rbx
movq 0x38(%rsp), %r14
jne 0x476f
jmp 0x47f8
xorl %r15d, %r15d
leaq 0x8(%rsp), %rdi
callq 0x4376
movq 0x70(%rsp), %rax
movq %rax, 0x10(%r14)
movl 0x78(%rsp), %eax
movl %eax, 0x18(%r14)
movl 0x80(%rsp), %eax
movl %eax, 0x1c(%r14)
movl 0x88(%rsp), %eax
movl %eax, 0x20(%r14)
andl $0x0, 0x30(%r14)
orl $-0x1, 0x38(%r14)
movq %r15, 0x28(%r14)
jmp 0x4805
movq 0x97d1(%rip), %rax      # 0xdf88
movq (%rax), %rdi
leaq 0x3f38(%rip), %rsi      # 0x86f9
movq %r14, %rdx
xorl %eax, %eax
callq 0x3300
jmp 0x47f4
callq 0x30e0
jmp 0x47f4
movq %r12, %rdi
callq 0x37d5
jmp 0x47e3
callq 0x30e0
movq 0x18(%r14), %rdi
callq 0x345b
movq %r14, %rdi
callq 0x3070
movq (%rsp), %rbx
leaq 0x8(%rsp), %rdi
callq 0x4376
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x37d5
movq %r14, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x37d5
xorl %r14d, %r14d
jmp 0x480d
leaq 0x3dc5(%rip), %rdi      # 0x85fb
leaq 0x3e66(%rip), %rsi      # 0x86a3
leaq 0x3e8d(%rip), %rcx      # 0x86d1
movl $0x9c, %edx
callq 0x3130