// File: /workspace/github_c_makefile_star2_O1/WojciechMula[P]pyahocorasick/src/Automaton.c
// Function: automaton_remove_word_aux
static TristateResult
automaton_remove_word_aux(PyObject* self, PyObject* args, PyObject** value) {
#define automaton ((Automaton*)self)
    struct Input input;

    if (!prepare_input_from_tuple(self, args, 0, &input)) {
        return MEMORY_ERROR;
    }

    if (input.wordlen == 0) {
        destroy_input(&input);
        return FALSE;
    }

    *value = trie_remove_word(automaton, input.word, input.wordlen);
    destroy_input(&input);

    if (UNLIKELY(PyErr_Occurred() != NULL)) {
        return MEMORY_ERROR;
    } else {
        return (*value != NULL) ? TRUE : FALSE;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r14
movq %rdi, %r12
xorl %r15d, %r15d
movq %rsi, %rdi
xorl %esi, %esi
callq 0x3140
testq %rax, %rax
je 0x7576
leaq 0x28(%rsp), %rdx
movq %r12, %rdi
movq %rax, %rsi
callq 0x471d
testb %al, %al
je 0x7576
movq 0x28(%rsp), %rbp
testq %rbp, %rbp
je 0x73c9
movq 0x28(%r12), %r15
xorl %r8d, %r8d
testq %r15, %r15
je 0x7554
movq 0x30(%rsp), %r9
xorl %edx, %edx
xorl %eax, %eax
xorl %ebx, %ebx
movq %r15, %rcx
movl 0x10(%rcx), %esi
testq %rsi, %rsi
je 0x737c
movl (%r9,%rdx,4), %edx
movq 0x18(%rcx), %rcx
shlq $0x2, %rsi
leaq (%rsi,%rsi,2), %rsi
xorl %edi, %edi
cmpl %edx, (%rcx,%rdi)
je 0x7380
addq $0xc, %rdi
cmpq %rdi, %rsi
jne 0x736e
xorl %ecx, %ecx
jmp 0x7385
movq 0x4(%rcx,%rdi), %rcx
testq %rcx, %rcx
je 0x739e
cmpl $0x1, 0x10(%rcx)
ja 0x7398
jne 0x739e
cmpb $0x0, 0x14(%rcx)
je 0x739e
leal 0x1(%rax), %ebx
movq %rcx, %r15
testq %rcx, %rcx
je 0x7554
incl %eax
movq %rax, %rdx
cmpq %rax, %rbp
ja 0x7354
cmpb $0x1, 0x14(%rcx)
jne 0x73de
movq (%rcx), %r8
cmpl $0x0, 0x10(%rcx)
je 0x73e6
movb $0x0, 0x14(%rcx)
jmp 0x754b
leaq 0x28(%rsp), %rdi
callq 0x4a2c
movl $0x2, %r15d
jmp 0x7576
xorl %r8d, %r8d
jmp 0x7554
movq %r8, 0x18(%rsp)
movq %r12, 0x20(%rsp)
movq %r14, 0x8(%rsp)
movl %ebx, %eax
movq %r9, 0x10(%rsp)
movl (%r9,%rax,4), %esi
movq %r15, %rdi
callq 0x57b7
testq %rax, %rax
je 0x759c
movq %rax, %r12
movl 0x10(%r15), %eax
testq %rax, %rax
je 0x74f6
movq 0x18(%r15), %rdi
movl $0xc, %r13d
xorl %r14d, %r14d
cmpq %r12, -0x8(%rdi,%r13)
je 0x7446
incq %r14
addq $0xc, %r13
cmpq %r14, %rax
jne 0x742e
jmp 0x74f6
cmpl $0x1, %eax
jne 0x7465
movl $0x0, 0x10(%r15)
callq 0x3070
movq $0x0, 0x18(%r15)
jmp 0x74f6
decl %eax
shlq $0x2, %rax
leaq (%rax,%rax,2), %rdi
callq 0x3370
testq %rax, %rax
je 0x7588
testq %r14, %r14
je 0x74a4
xorl %edi, %edi
movq %r14, %rcx
movq 0x18(%r15), %rdx
movl 0x8(%rdx,%rdi), %esi
movl %esi, 0x8(%rax,%rdi)
movq (%rdx,%rdi), %rdx
movq %rdx, (%rax,%rdi)
addq $0xc, %rdi
decq %rcx
jne 0x7487
leal 0x1(%r14), %ecx
cmpl 0x10(%r15), %ecx
jae 0x74e2
movl %r14d, %ecx
leaq (%rcx,%rcx,2), %rsi
movq 0x18(%r15), %rcx
movl 0x8(%rcx,%r13), %edx
movl %edx, 0x8(%rax,%rsi,4)
movq (%rcx,%r13), %rcx
movq %rcx, (%rax,%rsi,4)
movl 0x10(%r15), %edx
leaq 0x1(%r14), %rcx
addq $0x2, %r14
addq $0xc, %r13
cmpq %rdx, %r14
movq %rcx, %r14
jb 0x74ae
movq %rax, %r14
movq 0x18(%r15), %rdi
callq 0x3070
movq %r14, 0x18(%r15)
decl 0x10(%r15)
leal 0x1(%rbx), %eax
cmpq %rax, %rbp
jbe 0x7531
addl $0x2, %ebx
movq 0x10(%rsp), %r14
movl (%r14,%rax,4), %esi
movq %r12, %rdi
callq 0x57b7
cmpl $0x2, 0x10(%rax)
jae 0x7597
movq %rax, %r15
movq %r12, %rdi
callq 0x514e
movl %ebx, %eax
incl %ebx
movq %r15, %r12
cmpq %rax, %rbp
ja 0x7506
jmp 0x7534
movq %r12, %r15
movq %r15, %rdi
callq 0x514e
movq 0x8(%rsp), %r14
movq 0x20(%rsp), %r12
movq 0x18(%rsp), %r8
movl $0x1, 0x10(%r12)
movq %r8, (%r14)
leaq 0x28(%rsp), %rdi
callq 0x4a2c
callq 0x31f0
xorl %r15d, %r15d
testq %rax, %rax
jne 0x7576
cmpq $0x1, (%r14)
adcl $0x1, %r15d
movl %r15d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x30e0
xorl %r8d, %r8d
movq 0x8(%rsp), %r14
jmp 0x7554
callq 0x44aa
callq 0x44ec