// File: /workspace/github_c_makefile_star2_O0/WojciechMula[P]pyahocorasick/src/Automaton.c
// Function: automaton_iter_long
static PyObject*
automaton_iter_long(PyObject* self, PyObject* args) {
#define automaton ((Automaton*)self)

	PyObject* object;
	Py_ssize_t start;
	Py_ssize_t end;

	if (automaton->kind != AHOCORASICK) {
		PyErr_SetString(PyExc_AttributeError, "not an automaton yet; add some words and call make_automaton");
		return NULL;
	}

	object = PyTuple_GetItem(args, 0);
    if (object == NULL)
        return NULL;

    if (automaton->key_type == KEY_STRING) {
#ifdef PY3K
    #ifdef AHOCORASICK_UNICODE
        if (F(PyUnicode_Check)(object)) {
            start   = 0;
            #if PY_MINOR_VERSION >= 3
                end = PyUnicode_GET_LENGTH(object);
            #else
                end = PyUnicode_GET_SIZE(object);
            #endif
        }
        else {
            PyErr_SetString(PyExc_TypeError, "string required");
            return NULL;
        }
    #else
        if (F(PyBytes_Check)(object)) {
            start   = 0;
            end     = PyBytes_GET_SIZE(object);
        }
        else {
            PyErr_SetString(PyExc_TypeError, "bytes required");
            return NULL;
        }
    #endif
#else
        if (F(PyString_Check)(object)) {
            start   = 0;
            end     = PyString_GET_SIZE(object);
        } else {
            PyErr_SetString(PyExc_TypeError, "string required");
            return NULL;
        }
#endif
    }
    else {
        if (F(PyTuple_Check)(object)) {
            start = 0;
            end = PyTuple_GET_SIZE(object);
        } else {
            PyErr_SetString(PyExc_TypeError, "tuple required");
            return NULL;
        }
    }

	if (pymod_parse_start_end(args, 1, 2, start, end, &start, &end))
		return NULL;

	return automaton_search_iter_long_new(
		automaton,
		object,
		start,
		end
	);
#undef automaton
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x2, 0x10(%rax)
je 0x852d
movq 0x9ac7(%rip), %rax      # 0x11fd8
movq (%rax), %rdi
leaq 0x678f(%rip), %rsi      # 0xecaa
callq 0x3120
movq $0x0, -0x8(%rbp)
jmp 0x86fe
movq -0x18(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x3140
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x8552
movq $0x0, -0x8(%rbp)
jmp 0x86fe
movq -0x10(%rbp), %rax
cmpl $0x64, 0x18(%rax)
jne 0x8624
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
movl $0x10000000, %esi       # imm = 0x10000000
callq 0x4450
cmpl $0x0, %eax
je 0x85fc
movq $0x0, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
movl $0x10000000, %esi       # imm = 0x10000000
callq 0x4450
cmpl $0x0, %eax
je 0x859c
jmp 0x85bb
leaq 0x63b4(%rip), %rdi      # 0xe957
leaq 0x61ee(%rip), %rsi      # 0xe798
movl $0x3e0, %edx            # imm = 0x3E0
leaq 0x6731(%rip), %rcx      # 0xece7
callq 0x3130
movq -0x20(%rbp), %rax
movl 0x20(%rax), %eax
shrl $0x7, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x85cf
jmp 0x85ee
leaq 0x63d6(%rip), %rdi      # 0xe9ac
leaq 0x61bb(%rip), %rsi      # 0xe798
movl $0x3e0, %edx            # imm = 0x3E0
leaq 0x66fe(%rip), %rcx      # 0xece7
callq 0x3130
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x30(%rbp)
jmp 0x861f
movq 0x998d(%rip), %rax      # 0x11f90
movq (%rax), %rdi
leaq 0x63ba(%rip), %rsi      # 0xe9c7
callq 0x3120
movq $0x0, -0x8(%rbp)
jmp 0x86fe
jmp 0x86ab
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
movl $0x4000000, %esi        # imm = 0x4000000
callq 0x4450
cmpl $0x0, %eax
je 0x8689
movq $0x0, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
movl $0x4000000, %esi        # imm = 0x4000000
callq 0x4450
cmpl $0x0, %eax
je 0x865c
jmp 0x867b
leaq 0x6374(%rip), %rdi      # 0xe9d7
leaq 0x612e(%rip), %rsi      # 0xe798
movl $0x400, %edx            # imm = 0x400
leaq 0x6671(%rip), %rcx      # 0xece7
callq 0x3130
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x30(%rbp)
jmp 0x86a9
movq 0x9900(%rip), %rax      # 0x11f90
movq (%rax), %rdi
leaq 0x6353(%rip), %rsi      # 0xe9ed
callq 0x3120
movq $0x0, -0x8(%rbp)
jmp 0x86fe
jmp 0x86ab
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
movl $0x1, %esi
movl $0x2, %edx
leaq -0x28(%rbp), %r9
leaq -0x30(%rbp), %rax
movq %rax, (%rsp)
callq 0x9590
cmpl $0x0, %eax
je 0x86e1
movq $0x0, -0x8(%rbp)
jmp 0x86fe
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rax
movl %eax, %edx
movq -0x30(%rbp), %rax
movl %eax, %ecx
callq 0x9e40
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)