// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/select_visitor.c
// Function: filter_lua
static int filter_lua(GtArray *filters, GtFeatureNode *fn, GtSelectLogic logic,
                      bool *select_node, GtError *err)
{
  int had_err = 0;
  GtUword i;
  gt_assert(filters && fn && select_node);
  gt_error_check(err);

  for (i = 0; !had_err && i < gt_array_size(filters); i++) {
    bool result;
    GtScriptFilter *sf = *(GtScriptFilter**) gt_array_get(filters, i);
    had_err = gt_script_filter_run(sf, fn, &result, err);

    if (!had_err && i == 0) {
      *select_node = result;
    } else if (!had_err && logic == GT_SELECT_AND) {
      *select_node = *select_node || result;
      if (*select_node) {
        break;
      }
    } else if (!had_err && logic == GT_SELECT_OR) {
      *select_node = *select_node && result;
      if (!*select_node) {
        break;
      }
    }
  }
  return had_err;
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movl %edx, 0x54(%rsp)
movq %rcx, 0x48(%rsp)
movq %r8, 0x40(%rsp)
movl $0x0, 0x3c(%rsp)
cmpq $0x0, 0x60(%rsp)
je 0x1d41dc
cmpq $0x0, 0x58(%rsp)
je 0x1d41dc
cmpq $0x0, 0x48(%rsp)
jne 0x1d4214
movq 0x467dbd(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x341e26(%rip), %rsi    # 0x516013
leaq 0x390c49(%rip), %rdx    # 0x564e3d
leaq 0x390c5f(%rip), %rcx    # 0x564e5a
leaq 0x390b40(%rip), %r8     # 0x564d42
movl $0xb9, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1d4216
jmp 0x1d4218
cmpq $0x0, 0x40(%rsp)
je 0x1d4268
movq 0x40(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x1d4230
jmp 0x1d4268
movq 0x467d69(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x341dd2(%rip), %rsi    # 0x516013
leaq 0x341f77(%rip), %rdx    # 0x5161bf
leaq 0x390c0b(%rip), %rcx    # 0x564e5a
leaq 0x390aec(%rip), %r8     # 0x564d42
movl $0xba, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1d426a
movq $0x0, 0x30(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x3c(%rsp)
movb %al, 0x1f(%rsp)
jne 0x1d42a6
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x60(%rsp), %rdi
callq 0x81370
movq %rax, %rcx
movq 0x10(%rsp), %rax
cmpq %rcx, %rax
setb %al
movb %al, 0x1f(%rsp)
movb 0x1f(%rsp), %al
testb $0x1, %al
jne 0x1d42b3
jmp 0x1d43a6
movq 0x60(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x80b60
movq (%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq 0x40(%rsp), %rcx
leaq 0x2f(%rsp), %rdx
callq 0x1d2540
movl %eax, 0x3c(%rsp)
cmpl $0x0, 0x3c(%rsp)
jne 0x1d4309
cmpq $0x0, 0x30(%rsp)
jne 0x1d4309
movb 0x2f(%rsp), %cl
movq 0x48(%rsp), %rax
andb $0x1, %cl
movb %cl, (%rax)
jmp 0x1d4391
cmpl $0x0, 0x3c(%rsp)
jne 0x1d434b
cmpl $0x0, 0x54(%rsp)
jne 0x1d434b
movq 0x48(%rsp), %rcx
movb $0x1, %al
testb $0x1, (%rcx)
movb %al, 0xf(%rsp)
jne 0x1d432f
movb 0x2f(%rsp), %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %cl
movq 0x48(%rsp), %rax
andb $0x1, %cl
movb %cl, (%rax)
movq 0x48(%rsp), %rax
testb $0x1, (%rax)
je 0x1d4349
jmp 0x1d43a6
jmp 0x1d438f
cmpl $0x0, 0x3c(%rsp)
jne 0x1d438d
cmpl $0x1, 0x54(%rsp)
jne 0x1d438d
movq 0x48(%rsp), %rcx
xorl %eax, %eax
testb $0x1, (%rcx)
movb %al, 0xe(%rsp)
je 0x1d4371
movb 0x2f(%rsp), %al
movb %al, 0xe(%rsp)
movb 0xe(%rsp), %cl
movq 0x48(%rsp), %rax
andb $0x1, %cl
movb %cl, (%rax)
movq 0x48(%rsp), %rax
testb $0x1, (%rax)
jne 0x1d438b
jmp 0x1d43a6
jmp 0x1d438d
jmp 0x1d438f
jmp 0x1d4391
jmp 0x1d4393
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
jmp 0x1d4273
movl 0x3c(%rsp), %eax
addq $0x68, %rsp
retq
nop