// File: /workspace/github_cpp_makefile_star2_O3/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 $0x10008, %rsp          # imm = 0x10008
movl %ecx, %r15d
movl %esi, %ebp
subl %ecx, %ebp
setl %al
cmpl $0x3, %ecx
setl %cl
orb %al, %cl
je 0x4043
xorl %eax, %eax
jmp 0x4236
movq %rdx, %r14
movq %rdi, %rbx
cmpl $0x3, %r15d
jne 0x40b6
movl %esi, %eax
leaq (%rbx,%rax), %rcx
addq $-0x3, %rcx
movzbl (%r14), %edx
movl %edx, %eax
shll $0x8, %eax
movzbl 0x2(%r14), %esi
orl %eax, %esi
xorl %eax, %eax
movzbl (%rbx), %r8d
shll $0x8, %r8d
movzbl 0x2(%rbx), %edi
orl %edi, %r8d
cmpl %r8d, %esi
jne 0x408e
movb 0x1(%rbx), %r8b
cmpb %r8b, 0x1(%r14)
jne 0x4092
jmp 0x4233
movb 0x1(%rbx), %r8b
xorl %r9d, %r9d
cmpb %dl, %dil
setne %r9b
incq %r9
cmpb %dl, %r8b
cmoveq %rax, %r9
addq %r9, %rbx
incq %rbx
cmpq %rcx, %rbx
jbe 0x406b
jmp 0x4236
cmpl $0x3c0, %esi            # imm = 0x3C0
jg 0x417a
movl %esi, %ecx
addq %rbx, %rcx
movl (%r14), %edx
movzbl %dl, %eax
imull $0x1010101, %eax, %edi  # imm = 0x1010101
movl %r15d, %esi
addq %rsi, %rbx
negq %rsi
decl %r15d
movq %r15, %r8
negq %r8
xorl %eax, %eax
movl (%rbx,%rsi), %r9d
cmpl %r9d, %edx
jne 0x4130
leaq (%rbx,%r8), %r10
movl $0x1, %r9d
xorl %r11d, %r11d
leal 0x1(%r11), %r12d
movb (%r14,%r12), %bpl
cmpb (%r10,%r11), %bpl
jne 0x4166
cmpl %r11d, %r9d
sete %r12b
cmpb %dl, %bpl
setne %bpl
andb %r12b, %bpl
movzbl %bpl, %ebp
addl %ebp, %r9d
incq %r11
cmpq %r11, %r15
jne 0x40fd
jmp 0x4230
xorl %edi, %r9d
testl $0xff00, %r9d           # imm = 0xFF00
je 0x4158
testl $0xff0000, %r9d         # imm = 0xFF0000
je 0x4160
cmpl $0x1000000, %r9d        # imm = 0x1000000
movl $0x4, %r9d
sbbl $0x0, %r9d
jmp 0x4166
movl $0x1, %r9d
jmp 0x4166
movl $0x2, %r9d
movl %r9d, %r9d
addq %r9, %rbx
cmpq %rcx, %rbx
jbe 0x40e7
jmp 0x4236
cmpl $0x16, %r15d
ja 0x4248
movl (%r14), %r12d
movq %rsp, %rdi
xorl %r13d, %r13d
movl $0x10000, %edx          # imm = 0x10000
xorl %esi, %esi
callq 0x3100
leal -0x1(%r15), %ecx
movzwl (%r14,%r13), %eax
movb $0x1, (%rsp,%rax)
incq %r13
cmpq %r13, %rcx
jne 0x419d
movl %r15d, %edx
leal -0x3(%r15), %esi
xorl %edi, %edi
leal (%rdi,%r15), %eax
addl $-0x2, %eax
movzwl (%rbx,%rax), %eax
cmpb $0x0, (%rsp,%rax)
movl %ecx, %r8d
je 0x4224
leal (%rdi,%r15), %eax
leal -0x4(%rax), %r8d
movzwl (%rbx,%r8), %r8d
movzbl (%rsp,%r8), %r8d
addl $-0x3, %eax
movzwl (%rbx,%rax), %eax
movzbl (%rsp,%rax), %eax
addl %r8d, %eax
movl %esi, %r8d
cmpl $0x2, %eax
jb 0x4224
movl %edi, %eax
movl $0x1, %r8d
cmpl %r12d, (%rbx,%rax)
jne 0x4224
addq %rbx, %rax
movq %rdx, %r9
addq $-0x4, %r9
testl %r9d, %r9d
jle 0x4236
movl %r9d, %r10d
andl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
movl (%rax,%r10), %r11d
cmpl (%r14,%r10), %r11d
je 0x4207
addl %r8d, %edi
cmpl %ebp, %edi
jbe 0x41b7
jmp 0x403c
addq %rsi, %rbx
movq %rbx, %rax
addq $0x10008, %rsp          # imm = 0x10008
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl (%r14), %r12d
movq %rsp, %rdi
xorl %r13d, %r13d
cmpl $0x2c8, %r15d           # imm = 0x2C8
ja 0x4301
movl $0x10000, %edx          # imm = 0x10000
xorl %esi, %esi
callq 0x3100
leal -0x3(%r15), %ecx
movl (%r14,%r13), %eax
movzwl %ax, %edx
shrl $0x10, %eax
xorl %eax, %edx
movb $0x1, (%rsp,%rdx)
incq %r13
cmpq %r13, %rcx
jne 0x426e
movl %r15d, %edx
movl -0x4(%rbx,%rdx), %eax
movzwl %ax, %esi
shrl $0x10, %eax
xorl %eax, %esi
movb (%rsp,%rsi), %sil
addl $-0x7, %r15d
xorl %edi, %edi
movl %ecx, %r8d
testb %sil, %sil
je 0x42f5
movl %edi, %eax
addq %rbx, %rax
movl -0x8(%rdx,%rax), %r8d
movzwl %r8w, %r9d
shrl $0x10, %r8d
xorl %r8d, %r9d
cmpb $0x0, (%rsp,%r9)
movl %r15d, %r8d
je 0x42f5
movl $0x1, %r8d
cmpl %r12d, (%rax)
jne 0x42f5
movq %rdx, %r9
addq $-0x4, %r9
testl %r9d, %r9d
jle 0x4236
movl %r9d, %r10d
andl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
movl (%rax,%r10), %r11d
cmpl (%r14,%r10), %r11d
je 0x42d4
addl %r8d, %edi
cmpl %ebp, %edi
jbe 0x429f
jmp 0x403c
movl $0x2000, %edx           # imm = 0x2000
xorl %esi, %esi
callq 0x3100
xorl %eax, %eax
shll $0x8, %eax
movzbl (%r14,%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 0x430f
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, (%rsp,%rdi)
movzbl (%r14,%rsi), %ecx
movzbl 0xc(%r14,%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 0x433d
movl %r15d, %ecx
leaq (%rbx,%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 0x43b7
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 (%rsp,%rax), %eax
andl $0x7, %r9d
btl %r9d, %eax
movl %r8d, %r8d
jae 0x4495
cmpl %r12d, (%rbx,%r8)
jne 0x443c
leaq (%rbx,%r8), %rax
movq %rcx, %r9
addq $-0x4, %r9
testl %r9d, %r9d
jle 0x4236
movl %r9d, %r10d
andl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
movl (%rax,%r10), %r11d
cmpl (%r14,%r10), %r11d
je 0x441b
leal (%r8,%r15), %eax
leal (%r8,%r15), %r9d
addl $-0xc, %r9d
movzbl (%rbx,%r9), %r9d
movzbl (%rbx,%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 0x44d0
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 0x44a2
movl %edx, %eax
addl %eax, %r8d
cmpl %ebp, %r8d
jbe 0x43e7
jmp 0x403c
nopl (%rax)