// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
cmpl $0x2, 0x10(%rdi)
jne 0x68e3
movq %rsi, %r12
movq %rdi, %rbx
xorl %r15d, %r15d
movq %rsi, %rdi
xorl %esi, %esi
callq 0x3140
testq %rax, %rax
je 0x68fc
movq %rax, %r14
cmpl $0x64, 0x18(%rbx)
movq 0x8(%rax), %rax
movq 0xa8(%rax), %rax
jne 0x690d
btl $0x1c, %eax
jb 0x6926
movq 0x76b9(%rip), %rax      # 0xdf90
movq (%rax), %rdi
leaq 0x4058(%rip), %rsi      # 0xa939
jmp 0x68f4
movq 0x76ee(%rip), %rax      # 0xdfd8
movq (%rax), %rdi
leaq 0x4312(%rip), %rsi      # 0xac06
callq 0x3120
xorl %r15d, %r15d
movq %r15, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
btl $0x1a, %eax
jb 0x6952
movq 0x7676(%rip), %rax      # 0xdf90
movq (%rax), %rdi
leaq 0x4025(%rip), %rsi      # 0xa949
jmp 0x68f4
andq $0x0, 0x10(%rsp)
testb $-0x80, 0x20(%r14)
jne 0x6958
leaq 0x3fe4(%rip), %rdi      # 0xa91e
leaq 0x3de1(%rip), %rsi      # 0xa722
leaq 0x42fb(%rip), %rcx      # 0xac43
movl $0x3e0, %edx            # imm = 0x3E0
callq 0x3130
andq $0x0, 0x10(%rsp)
movq 0x10(%r14), %r8
leaq 0x18(%rsp), %rax
movq %r8, (%rax)
movq %rax, (%rsp)
xorl %r15d, %r15d
pushq $0x1
popq %rsi
pushq $0x2
popq %rdx
leaq 0x10(%rsp), %r9
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x7161
testl %eax, %eax
jne 0x68fc
movq 0x10(%rsp), %r12
movq 0x18(%rsp), %r13
leaq 0x80e7(%rip), %rdi      # 0xea80
callq 0x32b0
testq %rax, %rax
je 0x68f9
movq %rax, %r15
movq %rbx, 0x10(%rax)
movl 0x30(%rbx), %eax
movl %eax, 0x18(%r15)
movq %r14, 0x20(%r15)
movq 0x28(%rbx), %rax
movq %rax, 0x48(%r15)
andl $0x0, 0x60(%r15)
decl %r12d
movl %r12d, 0x5c(%r15)
movl %r13d, 0x64(%r15)
orl $-0x1, 0x58(%r15)
andq $0x0, 0x50(%r15)
incq (%rbx)
incq (%r14)
movq %r15, %rdx
addq $0x28, %rdx
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%r15)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x346d
testb %al, %al
jne 0x68fc
movq %r15, %rdi
callq 0x37d5
jmp 0x68f9