// File: /workspace/github_cpp_makefile_star2_O1/ctSkennerton[P]fxtract/util/./railgun7w.c
// Function: Railgun7w
char *
Railgun7w(char *pbTarget, int cbTarget, char *pbPattern, int cbPattern)
{
    return (char*)(
           cbPattern > cbTarget ? NULL
         : cbPattern < 3        ? NULL  //XXX dummy something up, even just "do cp = strchr(cp, pat[1]); while (cp && cp[-1] != pat[0]);"
         : cbPattern == 3       ? check3(  (byte*)pbTarget, (byte*)pbPattern, (uint)cbTarget)
         : cbTarget < 961       ? check4(  (byte*)pbTarget, (byte*)pbPattern, (uint)cbTarget, (uint)cbPattern)
         : cbPattern <= 22      ? bloom2(  (byte*)pbTarget, (byte*)pbPattern, (uint)cbTarget, (uint)cbPattern)
         : cbPattern <= 712     ? bloom4(  (byte*)pbTarget, (byte*)pbPattern, (uint)cbTarget, (uint)cbPattern)
                                : bloom12( (byte*)pbTarget, (byte*)pbPattern, (uint)cbTarget, (uint)cbPattern)
        );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10028, %rsp          # imm = 0x10028
movl %ecx, %r15d
movl %esi, %ebp
subl %ecx, %ebp
setl %al
cmpl $0x3, %ecx
setl %cl
orb %al, %cl
je 0x4039
xorl %eax, %eax
jmp 0x42a9
movq %rdx, %rbx
movq %rdi, %r14
cmpl $0x3, %r15d
jne 0x40a7
movl %esi, %eax
leaq (%r14,%rax), %rcx
addq $-0x3, %rcx
movzbl (%rbx), %edx
movl %edx, %eax
shll $0x8, %eax
movzbl 0x2(%rbx), %esi
orl %eax, %esi
xorl %eax, %eax
movzbl (%r14), %r8d
shll $0x8, %r8d
movzbl 0x2(%r14), %edi
orl %edi, %r8d
cmpl %r8d, %esi
jne 0x4082
movb 0x1(%rbx), %r8b
cmpb 0x1(%r14), %r8b
je 0x42a6
xorl %r8d, %r8d
cmpb %dl, %dil
setne %r8b
incq %r8
cmpb %dl, 0x1(%r14)
cmoveq %rax, %r8
addq %r8, %r14
incq %r14
cmpq %rcx, %r14
jbe 0x405f
jmp 0x42a9
cmpl $0x3c0, %esi            # imm = 0x3C0
jg 0x41e5
movl %esi, %ecx
addq %r14, %rcx
movl (%rbx), %r11d
movzbl (%rbx), %esi
movl %esi, %eax
shll $0x8, %eax
orl %esi, %eax
movl %eax, %edx
shll $0x10, %edx
orl %eax, %edx
movl %edx, 0xc(%rsp)
movl %r15d, %r8d
addq %r8, %r14
negq %r8
movslq %r15d, %r9
decl %r15d
setne 0x7(%rsp)
movl $0x1, %eax
subq %r9, %rax
movq %rax, 0x18(%rsp)
movl $0x2, %eax
subq %r9, %rax
movq %rax, 0x10(%rsp)
addq $-0x2, %r9
movl %r11d, 0x8(%rsp)
movl (%r14,%r8), %r10d
cmpl %r10d, %r11d
jne 0x4171
leaq (%r14,%r8), %r12
movl $0x1, %ebp
testl %r15d, %r15d
je 0x419c
movq %r15, %rdx
movq 0x18(%rsp), %rdi
movb (%r14,%rdi), %r15b
cmpb %r15b, 0x1(%rbx)
jne 0x41ad
movq 0x10(%rsp), %rdi
leaq (%r14,%rdi), %r10
xorl %r11d, %r11d
movl %ebp, %edi
cmpl %r11d, %ebp
sete %bpl
cmpb %r15b, %sil
setne %r15b
andb %bpl, %r15b
movzbl %r15b, %ebp
addl %edi, %ebp
cmpq %r11, %r9
setne %r13b
je 0x41be
leal 0x2(%r11), %edi
movb (%r10,%r11), %r15b
incq %r11
cmpb %r15b, (%rbx,%rdi)
je 0x413c
jmp 0x41c1
xorl 0xc(%rsp), %r10d
movb $0x1, %r13b
testl $0xff00, %r10d          # imm = 0xFF00
je 0x41a6
testl $0xff0000, %r10d        # imm = 0xFF0000
je 0x41b7
cmpl $0x1000000, %r10d       # imm = 0x1000000
movl $0x4, %ebp
sbbl $0x0, %ebp
jmp 0x41c9
movq %r12, %rax
movb 0x7(%rsp), %r13b
jmp 0x41c9
movl $0x1, %ebp
jmp 0x41c9
movb 0x7(%rsp), %r13b
movq %rdx, %r15
jmp 0x41c9
movl $0x2, %ebp
jmp 0x41c9
movq %r12, %rax
movq %rdx, %r15
movl 0x8(%rsp), %r11d
testb %r13b, %r13b
je 0x42a9
movl %ebp, %edi
addq %rdi, %r14
cmpq %rcx, %r14
jbe 0x4107
jmp 0x4032
cmpl $0x16, %r15d
jg 0x42bb
movl (%rbx), %r12d
leaq 0x20(%rsp), %rdi
movl $0x10000, %edx          # imm = 0x10000
xorl %esi, %esi
callq 0x3100
movl %r15d, %ecx
decl %ecx
je 0x421f
movl %ecx, %eax
xorl %edx, %edx
movzwl (%rbx,%rdx), %esi
movb $0x1, 0x20(%rsp,%rsi)
incq %rdx
cmpq %rdx, %rax
jne 0x420e
movl %r15d, %edx
leal -0x3(%r15), %esi
xorl %edi, %edi
leal (%rdi,%r15), %eax
addl $-0x2, %eax
movzwl (%r14,%rax), %eax
cmpb $0x0, 0x20(%rsp,%rax)
movl %ecx, %r8d
je 0x429a
leal (%rdi,%r15), %eax
leal -0x4(%rax), %r8d
movzwl (%r14,%r8), %r8d
movzbl 0x20(%rsp,%r8), %r8d
addl $-0x3, %eax
movzwl (%r14,%rax), %eax
movzbl 0x20(%rsp,%rax), %eax
addl %r8d, %eax
movl %esi, %r8d
cmpl $0x2, %eax
jb 0x429a
movl %edi, %eax
movl $0x1, %r8d
cmpl %r12d, (%r14,%rax)
jne 0x429a
addq %r14, %rax
movq %rdx, %r9
addq $-0x4, %r9
testl %r9d, %r9d
jle 0x42a9
movl %r9d, %r10d
andl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
movl (%rax,%r10), %r11d
cmpl (%rbx,%r10), %r11d
je 0x427d
addl %r8d, %edi
cmpl %ebp, %edi
jbe 0x4228
jmp 0x4032
movq %r14, %rax
addq $0x10028, %rsp          # imm = 0x10028
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl (%rbx), %r12d
leaq 0x20(%rsp), %rdi
cmpl $0x2c8, %r15d           # imm = 0x2C8
jg 0x437e
movl $0x10000, %edx          # imm = 0x10000
xorl %esi, %esi
callq 0x3100
movl %r15d, %ecx
addl $-0x3, %ecx
je 0x4300
movl %ecx, %eax
xorl %edx, %edx
movl (%rbx,%rdx), %esi
movzwl %si, %edi
shrl $0x10, %esi
xorl %esi, %edi
movb $0x1, 0x20(%rsp,%rdi)
incq %rdx
cmpq %rdx, %rax
jne 0x42e8
movl %r15d, %edx
movl -0x4(%r14,%rdx), %eax
movzwl %ax, %esi
shrl $0x10, %eax
xorl %eax, %esi
movb 0x20(%rsp,%rsi), %sil
addl $-0x7, %r15d
xorl %edi, %edi
movl %ecx, %r8d
testb %sil, %sil
je 0x4372
movl %edi, %eax
addq %r14, %rax
movl -0x8(%rdx,%rax), %r8d
movzwl %r8w, %r9d
shrl $0x10, %r8d
xorl %r8d, %r9d
cmpb $0x0, 0x20(%rsp,%r9)
movl %r15d, %r8d
je 0x4372
movl $0x1, %r8d
cmpl %r12d, (%rax)
jne 0x4372
movq %rdx, %r9
addq $-0x4, %r9
testl %r9d, %r9d
jle 0x42a9
movl %r9d, %r10d
andl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
movl (%rax,%r10), %r11d
cmpl (%rbx,%r10), %r11d
je 0x4351
addl %r8d, %edi
cmpl %ebp, %edi
jbe 0x431b
jmp 0x4032
xorl %r13d, %r13d
movl $0x2000, %edx           # imm = 0x2000
xorl %esi, %esi
callq 0x3100
xorl %eax, %eax
shll $0x8, %eax
movzbl (%rbx,%r13), %ecx
orl %eax, %ecx
imulq $0x40400041, %rcx, %rax # imm = 0x40400041
shrq $0x35, %rax
imull $0x7f807f, %eax, %edx   # imm = 0x7F807F
movl %ecx, %eax
subl %edx, %eax
incq %r13
cmpl $0xc, %r13d
jne 0x438f
leal -0xb(%r15), %edx
xorl %esi, %esi
movl %eax, %ecx
shrl $0x10, %ecx
movzwl %ax, %edi
xorl %ecx, %edi
movl %edi, %ecx
andb $0x7, %cl
movl $0x1, %r8d
shll %cl, %r8d
shrl $0x3, %edi
orb %r8b, 0x20(%rsp,%rdi)
movzbl (%rbx,%rsi), %ecx
movzbl 0xc(%rbx,%rsi), %edi
imull $0xfffafdf0, %ecx, %ecx # imm = 0xFFFAFDF0
addl %ecx, %eax
addl $0x7f807f00, %eax       # imm = 0x7F807F00
imulq $0x40400041, %rax, %rcx # imm = 0x40400041
shrq $0x35, %rcx
imull $0x7f807f, %ecx, %ecx   # imm = 0x7F807F
subl %ecx, %eax
shll $0x8, %eax
orl %edi, %eax
imulq $0x40400041, %rax, %rcx # imm = 0x40400041
shrq $0x35, %rcx
imull $0x7f807f, %ecx, %ecx   # imm = 0x7F807F
subl %ecx, %eax
incq %rsi
cmpq %rsi, %rdx
jne 0x43bd
movl %r15d, %ecx
leaq (%r14,%rcx), %rsi
xorl %edi, %edi
movq $-0xc, %rax
shll $0x8, %edi
movzbl (%rsi,%rax), %r8d
orl %edi, %r8d
imulq $0x40400041, %r8, %rdi  # imm = 0x40400041
shrq $0x35, %rdi
imull $0x7f807f, %edi, %r9d   # imm = 0x7F807F
movl %r8d, %edi
subl %r9d, %edi
incq %rax
testl %eax, %eax
jne 0x4436
addl %r15d, %r15d
xorl %r8d, %r8d
movl %edi, %eax
shrl $0x10, %eax
movzwl %di, %r9d
xorl %eax, %r9d
movl %r9d, %eax
shrl $0x3, %eax
movzbl 0x20(%rsp,%rax), %eax
andl $0x7, %r9d
btl %r9d, %eax
movl %r8d, %r8d
jae 0x4516
cmpl %r12d, (%r14,%r8)
jne 0x44bc
leaq (%r14,%r8), %rax
movq %rcx, %r9
addq $-0x4, %r9
testl %r9d, %r9d
jle 0x42a9
movl %r9d, %r10d
andl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
movl (%rax,%r10), %r11d
cmpl (%rbx,%r10), %r11d
je 0x449b
leal (%r8,%r15), %eax
leal (%r8,%r15), %r9d
addl $-0xc, %r9d
movzbl (%r14,%r9), %r9d
movzbl (%r14,%rax), %eax
imull $0xfffafdf0, %r9d, %r9d # imm = 0xFFFAFDF0
addl %r9d, %edi
addl $0x7f807f00, %edi       # imm = 0x7F807F00
imulq $0x40400041, %rdi, %r9  # imm = 0x40400041
shrq $0x35, %r9
imull $0x7f807f, %r9d, %r9d   # imm = 0x7F807F
subl %r9d, %edi
shll $0x8, %edi
orl %eax, %edi
imulq $0x40400041, %rdi, %rax # imm = 0x40400041
shrq $0x35, %rax
imull $0x7f807f, %eax, %eax   # imm = 0x7F807F
subl %eax, %edi
movl $0x1, %eax
jmp 0x4551
leaq (%rsi,%r8), %rax
xorl %edi, %edi
movq $-0xb, %r9
shll $0x8, %edi
movzbl (%rax,%r9), %r10d
orl %edi, %r10d
imulq $0x40400041, %r10, %rdi # imm = 0x40400041
shrq $0x35, %rdi
imull $0x7f807f, %edi, %r11d  # imm = 0x7F807F
movl %r10d, %edi
subl %r11d, %edi
incq %r9
cmpl $0x1, %r9d
jne 0x4523
movl %edx, %eax
addl %eax, %r8d
cmpl %ebp, %r8d
jbe 0x4466
jmp 0x4032
nop