// File: /workspace/github_c_makefile_star2_O1/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 $0x98, %rsp
movq %rsi, %rbx
callq 0x34e6
testq %rax, %rax
je 0x54b2
movq %rax, %r14
movl 0x14(%rax), %edi
leaq 0x40(%rsp), %rdx
movq %rbx, %rsi
callq 0x4c47
testb %al, %al
je 0x54a5
movq 0x40(%rsp), %rdi
callq 0x32d0
movq 0x48(%rsp), %rdx
leaq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x4ec2
testl %eax, %eax
je 0x547a
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0x80(%rsp), %rdx
callq 0x4f77
testl %eax, %eax
je 0x5470
movl 0x60(%rsp), %eax
leal -0x1(%rax), %ecx
cmpl $0x1, %ecx
ja 0x53dd
movq %r14, 0x8(%rsp)
cmpq $0x0, 0x38(%rsp)
je 0x53bd
leaq 0x10(%rsp), %r14
movq %rsp, %r15
xorl %r13d, %r13d
movl $0x8, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4f1c
testl %eax, %eax
je 0x546b
movl $0x20, %edi
callq 0x3370
testq %rax, %rax
je 0x542d
movq %rax, %r12
movl $0x18, %edx
movq %r14, %rdi
movq %rax, %rsi
callq 0x4f1c
testl %eax, %eax
je 0x5463
movq $0x0, 0x18(%r12)
movl 0x10(%r12), %eax
testq %rax, %rax
je 0x5304
shlq $0x2, %rax
leaq (%rax,%rax,2), %rbx
movq %rbx, %rdi
callq 0x3370
movq %rax, 0x18(%r12)
testq %rax, %rax
je 0x5434
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x4f1c
testl %eax, %eax
je 0x5454
cmpb $0x0, 0x14(%r12)
je 0x5389
cmpl $0x1e, 0x20(%rsp)
jne 0x5389
movq (%r12), %rbx
xorl %edi, %edi
movq %rbx, %rsi
callq 0x30c0
testq %rax, %rax
je 0x5454
movq %rax, %rbp
movq 0x8(%rax), %rax
testb $0x8, 0xab(%rax)
je 0x54b6
movq %rbp, %rsi
addq $0x20, %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x4f1c
testl %eax, %eax
je 0x5442
movq 0x10(%rsp), %rdi
leaq 0x699d(%rip), %rsi      # 0xbd01
movq %rbp, %rdx
xorl %eax, %eax
callq 0x30f0
testq %rax, %rax
je 0x544c
movq %rax, (%r12)
decq (%rbp)
jne 0x5389
movq %rbp, %rdi
callq 0x30d0
movq (%rsp), %rax
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %rdx
movq %rdx, %rsi
shlq $0x4, %rsi
movq %rax, (%rcx,%rsi)
movq %r12, 0x8(%rcx,%rsi)
incq %rdx
movq %rdx, 0x30(%rsp)
incq %r13
cmpq 0x38(%rsp), %r13
jb 0x5277
leaq 0x10(%rsp), %rdi
movq %rsp, %rsi
callq 0x3e7f
testb $0x1, %al
movq 0x8(%rsp), %r14
jne 0x5470
movq (%rsp), %rbx
jmp 0x53e3
testl %eax, %eax
jne 0x543b
xorl %ebx, %ebx
leaq 0x10(%rsp), %rdi
callq 0x50c7
movl 0x60(%rsp), %eax
movl %eax, 0x10(%r14)
movl 0x64(%rsp), %eax
movl %eax, 0x14(%r14)
movl 0x68(%rsp), %eax
movl %eax, 0x18(%r14)
movl 0x70(%rsp), %eax
movl %eax, 0x1c(%r14)
movl 0x78(%rsp), %eax
movl %eax, 0x20(%r14)
movl $0x0, 0x30(%r14)
movl $0xffffffff, 0x38(%r14) # imm = 0xFFFFFFFF
movq %rbx, 0x28(%r14)
movb $0x1, %bl
jmp 0x547c
callq 0x30e0
jmp 0x546b
callq 0x30e0
jmp 0x5454
callq 0x3e63
jmp 0x5470
movq %rbp, %rdi
callq 0x3e52
jmp 0x5454
movq %rbp, %rdi
callq 0x3e41
movq 0x18(%r12), %rdi
testq %rdi, %rdi
je 0x5463
callq 0x3070
movq %r12, %rdi
callq 0x3070
movq 0x8(%rsp), %r14
leaq 0x10(%rsp), %rdi
callq 0x50c7
xorl %ebx, %ebx
movq 0x40(%rsp), %rdi
decq (%rdi)
jne 0x548b
callq 0x30d0
xorl %eax, %eax
testb %bl, %bl
cmovneq %r14, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
decq (%r14)
jne 0x54b2
movq %r14, %rdi
callq 0x30d0
xorl %eax, %eax
jmp 0x5493
leaq 0x413e(%rip), %rdi      # 0x95fb
leaq 0x41df(%rip), %rsi      # 0x96a3
leaq 0x4206(%rip), %rcx      # 0x96d1
movl $0x9c, %edx
callq 0x3130