// File: /workspace/github_c_makefile_star2_O3/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, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
movq %rsi, %rdi
xorl %esi, %esi
callq 0x3140
testq %rax, %rax
je 0x74f0
leaq 0x28(%rsp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x45cd
testb %al, %al
je 0x74f0
movq 0x28(%rsp), %r13
testq %r13, %r13
je 0x7325
movq 0x28(%r14), %r15
xorl %ebp, %ebp
testq %r15, %r15
je 0x74ce
movq 0x30(%rsp), %r12
movl 0x10(%r15), %edx
xorl %esi, %esi
xorl %eax, %eax
xorl %r8d, %r8d
movq %r15, %rcx
testl %edx, %edx
je 0x74ce
movl (%r12,%rsi,4), %esi
movq 0x18(%rcx), %rcx
movl %edx, %edx
shlq $0x2, %rdx
leaq (%rdx,%rdx,2), %rdx
xorl %edi, %edi
cmpl %esi, (%rcx,%rdi)
je 0x72dc
addq $0xc, %rdi
cmpq %rdi, %rdx
jne 0x72c9
jmp 0x74ce
movq 0x4(%rcx,%rdi), %rcx
testq %rcx, %rcx
je 0x74ce
movl 0x10(%rcx), %edx
cmpl $0x1, %edx
ja 0x72fa
jne 0x7301
cmpb $0x0, 0x14(%rcx)
je 0x7301
leal 0x1(%rax), %r8d
movq %rcx, %r15
incl %eax
movq %rax, %rsi
cmpq %rax, %r13
ja 0x72ad
cmpb $0x1, 0x14(%rcx)
jne 0x74cc
movq (%rcx), %rbp
testl %edx, %edx
je 0x733a
movb $0x0, 0x14(%rcx)
jmp 0x74bd
leaq 0x28(%rsp), %rdi
callq 0x48e4
movl $0x2, %r15d
jmp 0x74f0
movq %r8, 0x8(%rsp)
movl %r8d, %eax
movl (%r12,%rax,4), %esi
movq %r15, %rdi
callq 0x57ab
testq %rax, %rax
je 0x7507
movq %rax, %rdx
movl 0x10(%r15), %eax
testq %rax, %rax
movq 0x8(%rsp), %rcx
je 0x746b
movq 0x18(%r15), %rdi
movl $0xc, %esi
xorl %r8d, %r8d
cmpq %rdx, -0x8(%rdi,%rsi)
je 0x7390
incq %r8
addq $0xc, %rsi
cmpq %r8, %rax
jne 0x7378
jmp 0x746b
movq %r8, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
cmpl $0x1, %eax
jne 0x73be
movl $0x0, 0x10(%r15)
callq 0x3070
movq $0x0, 0x18(%r15)
jmp 0x7461
decl %eax
shlq $0x2, %rax
leaq (%rax,%rax,2), %rdi
callq 0x3370
testq %rax, %rax
je 0x74c7
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x7405
xorl %r8d, %r8d
movq %rdi, %rcx
movq 0x18(%r15), %rdx
movl 0x8(%rdx,%r8), %esi
movl %esi, 0x8(%rax,%r8)
movq (%rdx,%r8), %rdx
movq %rdx, (%rax,%r8)
addq $0xc, %r8
decq %rcx
jne 0x73e6
leal 0x1(%rdi), %ecx
cmpl 0x10(%r15), %ecx
movq 0x18(%rsp), %rsi
jae 0x7446
movl %edi, %ecx
leaq (%rcx,%rcx,2), %r8
movq 0x18(%r15), %rcx
movl 0x8(%rcx,%rsi), %edx
movl %edx, 0x8(%rax,%r8,4)
movq (%rcx,%rsi), %rcx
movq %rcx, (%rax,%r8,4)
movl 0x10(%r15), %edx
leaq 0x1(%rdi), %rcx
addq $0x2, %rdi
addq $0xc, %rsi
cmpq %rdx, %rdi
movq %rcx, %rdi
jb 0x7413
movq 0x18(%r15), %rdi
movq %rax, 0x18(%rsp)
callq 0x3070
movq 0x18(%rsp), %rax
movq %rax, 0x18(%r15)
decl 0x10(%r15)
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rdx
leal 0x1(%rcx), %eax
cmpq %rax, %r13
jbe 0x74b5
addl $0x2, %ecx
movq %rcx, 0x8(%rsp)
movl (%r12,%rax,4), %esi
movq %rdx, %rdi
movq %rdx, %r15
callq 0x57ab
movq %rax, 0x10(%rsp)
cmpl $0x2, 0x10(%rax)
jae 0x7502
movq %r15, %rdi
callq 0x4ffe
movq 0x8(%rsp), %rcx
movl %ecx, %eax
incl %ecx
movq 0x10(%rsp), %rdi
movq %rdi, %rdx
cmpq %rax, %r13
ja 0x7476
jmp 0x74b8
movq %rdx, %rdi
callq 0x4ffe
movl $0x1, 0x10(%r14)
jmp 0x74ce
callq 0x30e0
xorl %ebp, %ebp
movq %rbp, (%rbx)
leaq 0x28(%rsp), %rdi
callq 0x48e4
callq 0x31f0
xorl %r15d, %r15d
testq %rax, %rax
jne 0x74f0
cmpq $0x1, (%rbx)
adcl $0x1, %r15d
movl %r15d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x4358
callq 0x439a