// File: /workspace/github_c_makefile_star2_O2/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 $0x38, %rsp
movq %rdx, %r12
movq %rdi, %rbx
xorl %ebp, %ebp
leaq 0x18(%rsp), %rcx
xorl %edx, %edx
callq 0x376f
testb %al, %al
je 0x70d8
movq 0x18(%rsp), %rbp
testq %rbp, %rbp
je 0x6f4f
movq 0x28(%rbx), %rax
xorl %ecx, %ecx
testq %rax, %rax
je 0x70b6
movq %rbx, 0x10(%rsp)
movq 0x20(%rsp), %rbx
pushq $0x1
popq %r14
movq %rax, %r15
xorl %r13d, %r13d
leal -0x1(%r14), %ecx
cmpq %rcx, %rbp
jbe 0x6f61
movl (%rbx,%rcx,4), %esi
movq %rax, %rdi
callq 0x4d53
testq %rax, %rax
je 0x6f79
cmpl $0x1, 0x10(%rax)
ja 0x6f44
jne 0x6f4a
cmpb $0x0, 0x14(%rax)
je 0x6f4a
movq %rax, %r15
movl %r14d, %r13d
incl %r14d
jmp 0x6f1d
leaq 0x18(%rsp), %rdi
callq 0x37ab
pushq $0x2
popq %rbp
jmp 0x70d8
cmpb $0x1, 0x14(%rax)
jne 0x6f79
movq (%rax), %rcx
cmpl $0x0, 0x10(%rax)
je 0x6f80
movb $0x0, 0x14(%rax)
jmp 0x70aa
xorl %ecx, %ecx
jmp 0x70b6
movq %rcx, 0x8(%rsp)
movq %r12, (%rsp)
movl %r13d, %eax
movl (%rbx,%rax,4), %esi
movq %r15, %rdi
callq 0x4d53
testq %rax, %rax
je 0x7137
movq %rax, %r12
movl 0x10(%r15), %eax
pushq $0x4
popq %rcx
xorl %r14d, %r14d
cmpq %r14, %rax
je 0x7069
movq 0x18(%r15), %rdi
cmpq %r12, (%rdi,%rcx)
je 0x6fc9
incq %r14
addq $0xc, %rcx
jmp 0x6fad
cmpl $0x1, %eax
jne 0x6fe2
andl $0x0, 0x10(%r15)
callq 0x3070
andq $0x0, 0x18(%r15)
jmp 0x7069
decl %eax
imulq $0xc, %rax, %rdi
callq 0x3370
testq %rax, %rax
je 0x70e9
leaq 0x1(%r14), %r8
xorl %ecx, %ecx
movq %r14, %rdx
subq $0x1, %rdx
jb 0x701f
movq 0x18(%r15), %rsi
movl 0x8(%rsi,%rcx), %edi
movl %edi, 0x8(%rax,%rcx)
movq (%rsi,%rcx), %rsi
movq %rsi, (%rax,%rcx)
addq $0xc, %rcx
jmp 0x6fff
movl %r8d, %ecx
imulq $0xc, %rcx, %r8
leal 0x1(%r14), %ecx
cmpl 0x10(%r15), %ecx
jae 0x7055
movl %r14d, %edx
imulq $0xc, %rdx, %rdx
movq 0x18(%r15), %rsi
movl 0x8(%rsi,%r8), %edi
movl %edi, 0x8(%rax,%rdx)
movq (%rsi,%r8), %rsi
movq %rsi, (%rax,%rdx)
addq $0xc, %r8
movl %ecx, %r14d
jmp 0x7026
movq 0x18(%r15), %rdi
movq %rax, %r14
callq 0x3070
movq %r14, 0x18(%r15)
decl 0x10(%r15)
incl %r13d
movl %r13d, %r13d
cmpq %r13, %rbp
jbe 0x7099
movl (%rbx,%r13,4), %esi
movq %r12, %rdi
callq 0x4d53
cmpl $0x2, 0x10(%rax)
jae 0x70f6
movq %rax, %r15
movq %r12, %rdi
callq 0x43ed
incl %r13d
movq %r15, %r12
jmp 0x706c
movq %r12, %rdi
callq 0x43ed
movq (%rsp), %r12
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rax
movl $0x1, 0x10(%rax)
movq %rcx, (%r12)
leaq 0x18(%rsp), %rdi
callq 0x37ab
callq 0x31f0
xorl %ebp, %ebp
testq %rax, %rax
jne 0x70d8
cmpq $0x1, (%r12)
adcl $0x1, %ebp
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x30e0
xorl %ecx, %ecx
movq (%rsp), %r12
jmp 0x70b6
movq 0x6efb(%rip), %rbx      # 0xdff8
movq (%rbx), %rdi
leaq 0xf29(%rip), %rsi       # 0x8030
leaq 0x1480(%rip), %rdx      # 0x858e
leaq 0x35e3(%rip), %rcx      # 0xa6f8
leaq 0x35fa(%rip), %r9       # 0xa716
pushq $0x7a
popq %r8
xorl %eax, %eax
callq 0x31b0
movq (%rbx), %rdi
callq 0x3230
pushq $0x1
popq %rdi
callq 0x3310
movq 0x6eba(%rip), %rbx      # 0xdff8
movq (%rbx), %rdi
leaq 0xee8(%rip), %rsi       # 0x8030
leaq 0x143f(%rip), %rdx      # 0x858e
leaq 0x35a2(%rip), %rcx      # 0xa6f8
leaq 0x35ac(%rip), %r9       # 0xa709
pushq $0x70
jmp 0x711e