// File: /workspace/github_c_makefile_star2_O3/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, %r14
callq 0x34fe
testq %rax, %rax
je 0x549a
movq %rax, %r15
movl 0x14(%rax), %edi
leaq 0x50(%rsp), %rdx
movq %r14, %rsi
callq 0x4af0
testb %al, %al
je 0x548d
movq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x32d0
movq 0x58(%rsp), %rdx
leaq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0x4d6e
testl %eax, %eax
je 0x542c
leaq 0x18(%rsp), %rdi
leaq 0x60(%rsp), %rsi
leaq 0x90(%rsp), %rdx
callq 0x4e23
testl %eax, %eax
je 0x5422
movl 0x70(%rsp), %eax
leal -0x1(%rax), %ecx
cmpl $0x1, %ecx
ja 0x5271
movq %r14, 0x8(%rsp)
movq %r15, 0x10(%rsp)
cmpq $0x0, 0x40(%rsp)
je 0x5280
leaq 0x18(%rsp), %r15
movq %rsp, %rbx
xorl %r12d, %r12d
movl $0x8, %edx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4dc8
testl %eax, %eax
je 0x5411
movl $0x20, %edi
callq 0x3370
testq %rax, %rax
je 0x5455
movq %rax, %rbp
movl $0x18, %edx
movq %r15, %rdi
movq %rax, %rsi
callq 0x4dc8
testl %eax, %eax
je 0x5483
movq $0x0, 0x18(%rbp)
movl 0x10(%rbp), %eax
testq %rax, %rax
je 0x51b8
shlq $0x2, %rax
leaq (%rax,%rax,2), %r14
movq %r14, %rdi
callq 0x3370
movq %rax, 0x18(%rbp)
testq %rax, %rax
je 0x545c
movq %r15, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x4dc8
testl %eax, %eax
je 0x5475
cmpb $0x0, 0x14(%rbp)
je 0x523b
cmpl $0x1e, 0x28(%rsp)
jne 0x523b
movq (%rbp), %r14
xorl %edi, %edi
movq %r14, %rsi
callq 0x30c0
testq %rax, %rax
je 0x5475
movq %rax, %r13
movq 0x8(%rax), %rax
testb $0x8, 0xab(%rax)
je 0x54ab
movq %r13, %rsi
addq $0x20, %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x4dc8
testl %eax, %eax
je 0x5463
movq 0x18(%rsp), %rdi
leaq 0x6afb(%rip), %rsi      # 0xbd11
movq %r13, %rdx
xorl %eax, %eax
callq 0x30f0
testq %rax, %rax
je 0x546d
movq %rax, (%rbp)
decq (%r13)
jne 0x523b
movq %r13, %rdi
callq 0x30d0
movq (%rsp), %rax
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq %rsi, %rcx
shlq $0x4, %rcx
movq %rax, (%rdi,%rcx)
movq %rbp, 0x8(%rdi,%rcx)
incq %rsi
movq %rsi, 0x38(%rsp)
incq %r12
cmpq 0x40(%rsp), %r12
jb 0x512f
jmp 0x528a
testl %eax, %eax
jne 0x541d
xorl %ebx, %ebx
jmp 0x53a1
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x8(%rdi), %rax
movq %rax, 0x48(%rsp)
leaq 0x4ab(%rip), %rcx       # 0x5745
movl $0x10, %edx
callq 0x3080
movq 0x38(%rsp), %rdx
testq %rdx, %rdx
je 0x5380
xorl %r15d, %r15d
leaq 0x489(%rip), %r12       # 0x5745
movq %rsp, %r13
movq 0x30(%rsp), %rsi
movq %r15, %rax
shlq $0x4, %rax
movq 0x8(%rsi,%rax), %rbp
cmpl $0x2, 0x2c(%rsp)
jne 0x530e
movq 0x8(%rbp), %rax
testq %rax, %rax
je 0x530e
movq %rax, (%rsp)
movl $0x10, %ecx
movq %r13, %rdi
movq %r12, %r8
callq 0x3340
testq %rax, %rax
je 0x549e
movq 0x8(%rax), %rax
movq %rax, 0x8(%rbp)
testq %rax, %rax
je 0x53f6
cmpl $0x0, 0x10(%rbp)
je 0x536f
movq 0x18(%rbp), %rax
movl $0x4, %r14d
xorl %ebx, %ebx
movq (%rax,%r14), %rax
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %rax, (%rsp)
movl $0x10, %ecx
movq %r13, %rdi
movq %r12, %r8
callq 0x3340
testq %rax, %rax
je 0x53ea
movq 0x8(%rax), %rcx
movq 0x18(%rbp), %rax
movq %rcx, (%rax,%r14)
testq %rcx, %rcx
je 0x53f6
incq %rbx
movl 0x10(%rbp), %ecx
addq $0xc, %r14
cmpq %rcx, %rbx
jb 0x5320
incq %r15
movq 0x38(%rsp), %rdx
cmpq %rdx, %r15
jb 0x52bf
movq $0x0, 0x38(%rsp)
movq 0x48(%rsp), %rbx
testq %rbx, %rbx
movq 0x10(%rsp), %r15
movq 0x8(%rsp), %r14
je 0x5422
leaq 0x18(%rsp), %rdi
callq 0x4f75
movq 0x70(%rsp), %rax
movq %rax, 0x10(%r15)
movl 0x78(%rsp), %eax
movl %eax, 0x18(%r15)
movl 0x80(%rsp), %eax
movl %eax, 0x1c(%r15)
movl 0x88(%rsp), %eax
movl %eax, 0x20(%r15)
movl $0x0, 0x30(%r15)
movl $0xffffffff, 0x38(%r15) # imm = 0xFFFFFFFF
movq %rbx, 0x28(%r15)
movb $0x1, %bl
jmp 0x542e
movq 0x18(%rbp), %rax
movq $0x0, (%rax,%r14)
movq 0xab8b(%rip), %rax      # 0xff88
movq (%rax), %rdi
leaq 0x4302(%rip), %rsi      # 0x9709
movq %r15, %rdx
xorl %eax, %eax
callq 0x3300
movq 0x10(%rsp), %r15
movq 0x8(%rsp), %r14
jmp 0x5422
callq 0x3e7d
leaq 0x18(%rsp), %rdi
callq 0x4f75
xorl %ebx, %ebx
decq (%r14)
jne 0x543b
movq %r14, %rdi
callq 0x30d0
xorl %eax, %eax
testb %bl, %bl
cmovneq %r15, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x30e0
jmp 0x5411
callq 0x30e0
jmp 0x5475
movq %r13, %rdi
callq 0x3e6c
jmp 0x5475
movq %r13, %rdi
callq 0x3e5b
movq 0x18(%rbp), %rdi
testq %rdi, %rdi
je 0x5483
callq 0x3070
movq %rbp, %rdi
callq 0x3070
jmp 0x5411
decq (%r15)
jne 0x549a
movq %r15, %rdi
callq 0x30d0
xorl %eax, %eax
jmp 0x5443
movq $0x0, 0x8(%rbp)
jmp 0x53f6
leaq 0x4159(%rip), %rdi      # 0x960b
leaq 0x41fa(%rip), %rsi      # 0x96b3
leaq 0x4221(%rip), %rcx      # 0x96e1
movl $0x9c, %edx
callq 0x3130