Function at 0x140021df0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x278
mov qword [rsp + 0xf8], rcx
movzx eax, byte [rdx + 0x114]
mov qword [rsp + 0x60], rax
lea rcx, [rdx + 0xb0]
mov qword [rsp + 0x48], rdx
add rdx, 0x80
test rax, rax
mov rax, rdx
cmovne rax, rcx
sete byte [rsp + 0xc8]
mov qword [rsp + 0x188], rcx
mov qword [rsp + 0x180], rdx
cmovne rcx, rdx
mov rsi, qword [rcx + 0x20]
mov rdx, qword [rax + 0x20]
mov qword [rsp + 0x100], rdx
mov rdi, qword [rax + 0x28]
test rdi, rdi
je 0x140021e70
tzcnt rdx, rdi
jmp 0x140021e75
mov edx, 0x40
mov qword [rsp + 0x98], rdx
mov rbx, qword [rcx]
mov r13, qword [rcx + 8]
mov r15, qword [rax]
mov r12, qword [rax + 8]
mov rdx, qword [rcx + 0x18]
mov qword [rsp + 0x50], rdx
mov rdx, qword [rcx + 0x28]
mov qword [rsp + 0xc0], rdx
mov rcx, qword [rcx + 0x10]
or rcx, rsi
mov qword [rsp + 0xb8], rcx
mov r14, qword [rax + 0x18]
mov qword [rsp + 0x68], rsi
mov rbp, qword [rax + 0x10]
or rbp, qword [rsp + 0x100]
mov rax, qword [0x140142b28]
movzx eax, byte [rax]
mov ecx, 0xc0
mov edx, 1
call sym.__rust_alloc
test rax, rax
je 0x1400232ae
mov rcx, rbx
or rcx, r13
mov qword [rsp + 0x90], r15
mov rdx, r15
mov qword [rsp + 0x140], r12
or rdx, r12
mov r12, qword [rsp + 0xb8]
or rcx, r12
mov rsi, qword [rsp + 0x50]
mov r9, rsi
mov r15, qword [rsp + 0xc0]
or r9, r15
or r9, rcx
mov qword [rsp + 0x138], rbp
or rdx, rbp
mov qword [rsp + 0x130], r14
or rdi, r14
or rdi, rdx
or rdi, r9
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
shl rax, 9
lea rcx, [0x140210808]
add rax, rcx
mov qword [rsp + 0x70], rax
mov r8, qword [rsp + 0x98]
mov rax, qword [rax + r8*8]
mov qword [rsp + 0xe8], rbx
and rax, rbx
lea rcx, [0x140210e08]
mov rcx, qword [rcx + r8*8]
mov qword [rsp + 0xe0], r13
and rcx, r13
or rcx, rax
mov rax, r8
shl rax, 4
lea r10, [0x140109e90]
lea rdx, [0x140163a68]
mov rdx, qword [rdx + r8*8]
or rdx, rdi
mov r11, qword [rax + r10]
mov r10, qword [rax + r10 + 8]
mov qword [rsp + 0x178], r11
imul rdx, r11
shr rdx, 0x37
mov qword [rsp + 0x170], r10
add rdx, r10
lea r10, [0x140163e68]
mov rdx, qword [r10 + rdx*8]
and rdx, r12
or rdx, rcx
lea r11, [0x14010a2a8]
lea rcx, [0x140163c68]
mov rcx, qword [rcx + r8*8]
or rcx, rdi
mov r14, qword [rsp + 0x68]
or r14, rsi
mov rbx, qword [rax + r11]
mov rax, qword [rax + r11 + 8]
mov qword [rsp + 0x168], rbx
imul rcx, rbx
shr rcx, 0x34
mov qword [rsp + 0x160], rax
add rcx, rax
mov rax, qword [r10 + rcx*8]
and rax, r14
lea rcx, [0x140210c08]
mov r10, qword [rcx + r8*8]
and r10, r15
or r10, rax
or r10, rdx
mov rax, r10
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, r10
sub rax, rcx
movabs rcx, 0x3333333333333333
mov rdx, rax
and rdx, rcx
shr rax, 2
and rax, rcx
add rax, rdx
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rcx
movabs rcx, 0x101010101010101
imul rcx, rax
mov qword [rsp + 0x30], 0x40
mov qword [rsp + 0x38], 0
shr rcx, 0x38
cmp cl, 1
jbe 0x1400220c5
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
call dbg.generate_king_moves<true>
jmp 0x140022f7e
mov rdx, r14
mov qword [rsp + 0xa0], r9
mov qword [rsp + 0x58], 0xffffffffffffffff
mov r12, qword [rsp + 0x90]
jne 0x14002210e
test r10, r10
je 0x1400220ef
tzcnt rax, r10
jmp 0x1400220f4
mov eax, 0x40
shl rax, 9
lea rcx, [0x14015a030]
add rcx, rax
mov rax, qword [rcx + r8*8]
or rax, r10
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x118], r10
mov rbx, qword [rsp + 0x60]
test rbx, rbx
setne dl
mov rcx, qword [rsp + 0x48]
call dbg.get_pins
mov r14, rax
mov qword [rsp + 0xb0], rdx
mov qword [rsp + 0x50], rdx
not rax
mov qword [rsp + 0x120], rax
and r12, rax
mov qword [rsp + 0x78], rdi
not rdi
mov rbp, qword [rsp + 0x58]
mov rdx, rbp
mov qword [rsp + 0xd8], rdi
and rdx, rdi
mov rax, rdx
shl rax, 8
mov qword [rsp + 0x128], rdx
shr rdx, 8
test rbx, rbx
cmovne rdx, rax
mov r13, rdx
movabs rdx, 0xff000000000000
mov eax, 0xff00
cmove rax, rdx
and rbp, qword [rsp + 0xa0]
mov qword [rsp + 0xd0], r12
mov qword [rsp + 0x88], rax
and r12, rax
je 0x140022313
lea rsi, [rsp + 0x28]
jmp 0x1400221de
lea rax, [r12 - 1]
and r12, rax
je 0x140022313
tzcnt r15, r12
mov rdi, qword [rsp + 0x50]
bt rdi, r15
mov rax, 0xffffffffffffffff
cmovae rdi, rax
mov rax, qword [rsp + 0x70]
and rdi, qword [rax + r15*8]
and rdi, rbp
je 0x1400221d0
shl r15d, 8
mov rdx, qword [rsp + 0x38]
jmp 0x140022240
lea rax, [rdi - 1]
and rdi, rax
or ebx, 1
mov rax, qword [rsp + 0x28]
lea rcx, [rdx + rdx*2]
mov word [rax + rcx], bx
shr ebx, 0x10
mov byte [rax + rcx + 2], bl
mov rdx, qword [rsp + 0x38]
inc rdx
mov qword [rsp + 0x38], rdx
test rdi, rdi
je 0x1400221d0
cmp rdx, qword [rsp + 0x30]
jne 0x140022254
mov rcx, rsi
call dbg.reserve_for_push<engine::chess::moves::Move, alloc::alloc::Global>
mov rdx, qword [rsp + 0x38]
tzcnt rbx, rdi
shl ebx, 0x10
or ebx, r15d
mov eax, ebx
or eax, 3
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx + rdx*2]
mov word [rcx + rdx], ax
shr eax, 0x10
mov byte [rcx + rdx + 2], al
mov rdx, qword [rsp + 0x38]
inc rdx
mov qword [rsp + 0x38], rdx
cmp rdx, qword [rsp + 0x30]
jne 0x140022299
mov rcx, rsi
call dbg.reserve_for_push<engine::chess::moves::Move, alloc::alloc::Global>
mov rdx, qword [rsp + 0x38]
mov eax, ebx
or eax, 2
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx + rdx*2]
mov word [rcx + rdx], ax
shr eax, 0x10
mov byte [rcx + rdx + 2], al
mov rdx, qword [rsp + 0x38]
inc rdx
mov qword [rsp + 0x38], rdx
cmp rdx, qword [rsp + 0x30]
jne 0x1400222d3
mov rcx, rsi
call dbg.reserve_for_push<engine::chess::moves::Move, alloc::alloc::Global>
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x28]
lea rcx, [rdx + rdx*2]
mov word [rax + rcx], bx
mov edx, ebx
shr edx, 0x10
mov byte [rax + rcx + 2], dl
mov rdx, qword [rsp + 0x38]
inc rdx
mov qword [rsp + 0x38], rdx
cmp rdx, qword [rsp + 0x30]
jne 0x140022210
mov rcx, rsi
call dbg.reserve_for_push<engine::chess::moves::Move, alloc::alloc::Global>
mov rdx, qword [rsp + 0x38]
jmp 0x140022210
mov r12, qword [rsp + 0xb0]
not r12
mov rax, qword [rsp + 0x90]
and rax, r12
mov qword [rsp + 0x90], rax
mov r15, r13
and r15, rax
mov qword [rsp + 0x108], r15
cmp qword [rsp + 0x60], 0
sete al
shl al, 4
add al, 0xf8
mov qword [rsp + 0x110], rax
and r15, qword [rsp + 0x88]
mov r13, qword [rsp + 0xd0]
je 0x14002248a
lea rsi, [rsp + 0x28]
jmp 0x1400223a1
mov rdx, qword [rsp + 0x38]
or edi, 1
mov rax, qword [rsp + 0x28]
lea rcx, [rdx + rdx*2]
mov word [rax + rcx], di
shr edi, 0x10
mov byte [rax + rcx + 2], dil
inc qword [rsp + 0x38]
lea rax, [r15 - 1]
and r15, rax
je 0x14002248a
tzcnt rbx, r15
bt r14, rbx
jb 0x140022394
mov rdx, qword [rsp + 0x38]
cmp rdx, qword [rsp + 0x30]
jne 0x1400223c5
mov rcx, rsi
call dbg.reserve_for_push<engine::chess::moves::Move, alloc::alloc::Global>
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x110]
add eax, ebx
movzx edi, al
shl edi, 0x10
shl ebx, 8
lea eax, [rdi + rbx]
add eax, 3
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx + rdx*2]
mov word [rcx + rdx], ax
shr eax, 0x10
mov byte [rcx + rdx + 2], al
mov rdx, qword [rsp + 0x38]
inc rdx
mov qword [rsp + 0x38], rdx
cmp rdx, qword [rsp + 0x30]
jne 0x140022413
mov rcx, rsi
call dbg.reserve_for_push<engine::chess::moves::Move, alloc::alloc::Global>
mov rdx, qword [rsp + 0x38]
or edi, ebx
mov eax, edi
or eax, 2
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx + rdx*2]
mov word [rcx + rdx], ax
shr eax, 0x10
mov byte [rcx + rdx + 2], al
mov rdx, qword [rsp + 0x38]
inc rdx
mov qword [rsp + 0x38], rdx
cmp rdx, qword [rsp + 0x30]
jne 0x14002244f
mov rcx, rsi
call dbg.reserve_for_push<engine::chess::moves::Move, alloc::alloc::Global>
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x28]
lea rcx, [rdx + rdx*2]
mov word [rax + rcx], di
mov edx, edi
shr edx, 0x10
mov byte [rax + rcx + 2], dl
mov rdx, qword [rsp + 0x38]
inc rdx
mov qword [rsp + 0x38], rdx
cmp rdx, qword [rsp + 0x30]
jne 0x140022377
mov rcx, rsi
call dbg.reserve_for_push<engine::chess::moves::Move, alloc::alloc::Global>
jmp 0x140022372
mov qword [rsp + 0xb0], r12
mov rax, qword [rsp + 0x88]
not rax
mov rdi, r13
mov qword [rsp + 0x88], rax
and rdi, rax
je 0x140022552
mov rbx, 0xffffffffffffffff
lea rsi, [rsp + 0x28]
jmp 0x1400224cd
lea rax, [rdi - 1]
and rdi, rax
je 0x140022552
tzcnt r15, rdi
mov r12, qword [rsp + 0x50]
bt r12, r15
cmovae r12, rbx
mov rax, qword [rsp + 0x70]
and r12, qword [rax + r15*8]
and r12, rbp
je 0x1400224c0
shl r15d, 8
mov rdx, qword [rsp + 0x38]
jmp 0x14002253c
tzcnt rax, r12
lea rcx, [r12 - 1]
and r12, rcx
shl eax, 0x10
or eax, r15d
or eax, 4
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx + rdx*2]
mov word [rcx + rdx], ax
shr eax, 0x10
mov byte [rcx + rdx + 2], al
mov rdx, qword [rsp + 0x38]
inc rdx
mov qword [rsp + 0x38], rdx
test r12, r12
je 0x1400224c0
cmp rdx, qword [rsp + 0x30]
jne 0x140022500
mov rcx, rsi
call dbg.reserve_for_push<engine::chess::moves::Move, alloc::alloc::Global>
mov rdx, qword [rsp + 0x38]
jmp 0x140022500
mov rax, qword [rsp + 0x48]
cmp byte [rax + 0x112], 0
mov r15, qword [rsp + 0x78]
mov qword [rsp + 0xa8], r14
mov r12, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x108]
je 0x140022964
test r12, r12
setne r8b
mov rax, qword [rsp + 0x48]
movzx r9d, byte [rax + 0x113]
shl r8b, 4
add r8b, r9b
add r8b, 0xf8
mov eax, 1
mov r10d, 1
mov ecx, r9d
shl r10, cl
mov byte [rsp + 0x47], r8b
mov ecx, r8d
shl rax, cl
mov qword [rsp + 0xf0], rax
mov rcx, r9
mov qword [rsp + 0x80], r9
bts rax, r9
test qword [rsp + 0x58], rax
je 0x140022964
xor eax, eax
movzx ecx, byte [rsp + 0xc8]
mov al, cl
shl rax, 9
lea rcx, [0x140210808]
add rcx, rax
mov rax, qword [rsp + 0x80]
and r13, qword [rcx + rax*8]
je 0x140022964
lea r8, [rsp + 0x210]
lea r11, [rsp + 0x240]
movzx r9d, byte [rsp + 0x47]
not qword [rsp + 0xf0]
mov rax, qword [rsp + 0x80]
shl eax, 0x10
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x150], r10
mov qword [rsp + 0x148], r9
jmp 0x1400226b6
mov r8, qword [rsp + 0x158]
shl r8d, 8
or r8d, dword [rsp + 0x80]
or r8d, 4
mov rax, qword [rsp + 0x28]
lea rcx, [rdx + rdx*2]
mov word [rax + rcx], r8w
shr r8d, 0x10
mov byte [rax + rcx + 2], r8b
inc qword [rsp + 0x38]
mov r12, rbx
mov rdx, qword [rsp + 0x108]
mov r10, qword [rsp + 0x150]
mov r9, qword [rsp + 0x148]
lea r8, [rsp + 0x210]
lea r11, [rsp + 0x240]
lea rax, [r13 - 1]
and r13, rax
je 0x140022964
tzcnt rcx, r13
mov eax, 1
shl rax, cl
test qword [rsp + 0x50], r10
jne 0x1400226d4
mov rsi, rax
and rsi, qword [rsp + 0x50]
jne 0x1400226a9
mov rdx, qword [rsp + 0x180]
vmovups ymm0, ymmword [rdx]
vmovups ymm1, ymmword [rdx + 0x10]
vmovups ymmword [r8 + 0x10], ymm1
vmovups ymmword [r8], ymm0
mov rdx, qword [rsp + 0x188]
vmovups ymm0, ymmword [rdx]
vmovups ymm1, ymmword [rdx + 0x10]
vmovups ymmword [r11 + 0x10], ymm1
vmovups ymmword [r11], ymm0
mov rdx, qword [rsp + 0x48]
vmovups ymm0, ymmword [rdx]
vmovups ymm1, ymmword [rdx + 0x20]
vmovups ymm2, ymmword [rdx + 0x40]
vmovups ymm3, ymmword [rdx + 0x60]
vmovups ymmword [rsp + 0x1f0], ymm3
vmovups ymmword [rsp + 0x1d0], ymm2
vmovups ymmword [rsp + 0x1b0], ymm1
vmovups ymmword [rsp + 0x190], ymm0
movzx ebx, byte [rsp + rcx*2 + 0x190]
cmp bl, 2
je 0x140022775
movzx edx, byte [rsp + rcx*2 + 0x191]
test bl, bl
mov rsi, r11
cmove rsi, r8
not rax
and qword [rsi + rdx*8], rax
mov byte [rsp + rcx*2 + 0x190], 2
movzx eax, byte [rsp + r9*2 + 0x190]
cmp al, 2
je 0x1400227b4
movzx esi, byte [rsp + r9*2 + 0x191]
test al, al
mov rax, r11
cmove rax, r8
mov rdx, qword [rsp + 0xf0]
and qword [rax + rsi*8], rdx
cmp byte [rsp + 0x47], 0x3f
ja 0x140023295
mov byte [rsp + r9*2 + 0x190], 2
mov qword [rsp + 0x158], rcx
mov rdi, qword [rsp + 0x240]
mov rax, qword [rsp + 0x248]
mov r11, qword [rsp + 0x210]
mov r9, qword [rsp + 0x218]
mov qword [rsp + 0xc8], r9
mov r8, rax
or r8, rdi
or r9, r11
mov rsi, qword [rsp + 0x250]
mov qword [rsp + 0xd0], r13
mov r13, qword [rsp + 0x220]
mov r10, qword [rsp + 0x258]
mov r15, qword [rsp + 0x228]
mov rdx, rsi
or rdx, r10
or rdx, r8
mov rbx, r13
or rbx, r15
or rbx, r9
mov rcx, r12
mov r14, qword [rsp + 0x260]
mov rbp, qword [rsp + 0x230]
mov r9, qword [rsp + 0x268]
mov r12, qword [rsp + 0x238]
mov r8, r14
or r8, r9
or r8, rdx
mov rdx, rbp
or rdx, r12
or rdx, rbx
mov rbx, rcx
test rcx, rcx
cmovne rdx, r8
cmovne rdi, r11
cmovne rax, qword [rsp + 0xc8]
cmovne rsi, r13
lea r13, [0x140163e68]
cmovne r10, r15
mov r15, qword [rsp + 0x78]
cmovne r14, rbp
cmovne r9, r12
or rsi, r14
mov r11, rsi
or r11, rdi
or r11, rax
or r11, rdx
or r14, r10
or r10, r9
or r10, r11
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x98]
and rdi, qword [rcx + rdx*8]
lea rcx, [0x140210e08]
and rax, qword [rcx + rdx*8]
or rax, rdi
lea rcx, [0x140163a68]
mov rcx, qword [rcx + rdx*8]
or rcx, r10
imul rcx, qword [rsp + 0x178]
shr rcx, 0x37
add rcx, qword [rsp + 0x170]
and rsi, qword [r13 + rcx*8]
or rsi, rax
lea rax, [0x140163c68]
or r10, qword [rax + rdx*8]
imul r10, qword [rsp + 0x168]
shr r10, 0x34
add r10, qword [rsp + 0x160]
and r14, qword [r13 + r10*8]
mov r13, qword [rsp + 0xd0]
or r14, rsi
lea rax, [0x140210c08]
and r9, qword [rax + rdx*8]
or r9, r14
mov r14, qword [rsp + 0xa8]
jne 0x14002267e
mov rdx, qword [rsp + 0x38]
cmp rdx, qword [rsp + 0x30]
jne 0x14002264a
lea rcx, [rsp + 0x28]
vzeroupper
call dbg.reserve_for_push<engine::chess::moves::Move, alloc::alloc::Global>
mov rdx, qword [rsp + 0x38]
jmp 0x14002264a
mov rbp, r12
test r12, r12
mov r12d, 0xff00
movabs rax, 0xff000000000000
cmovne r12, rax
and rdx, qword [rsp + 0x88]
je 0x140022a00
lea rsi, [rsp + 0x28]
jmp 0x1400229c1
shl ebx, 0x10
shl edi, 8
lea eax, [rbx + rdi]
add eax, 4
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx + rdx*2]
mov word [rcx + rdx], ax
shr eax, 0x10
mov byte [rcx + rdx + 2], al
inc qword [rsp + 0x38]
mov rdx, r13
lea rax, [rdx - 1]
and rdx, rax
je 0x140022a00
tzcnt rdi, rdx
mov rax, qword [rsp + 0x110]
add eax, edi
bt r14, rdi
movzx ebx, al
jae 0x1400229df
bt r14, rbx
jae 0x1400229b8
mov r13, rdx
mov rdx, qword [rsp + 0x38]
cmp rdx, qword [rsp + 0x30]
jne 0x140022990
mov rcx, rsi
vzeroupper
call dbg.reserve_for_push<engine::chess::moves::Move, alloc::alloc::Global>
mov rdx, qword [rsp + 0x38]
jmp 0x140022990
mov rax, r15
shl rax, 8
mov rcx, r15
shr rcx, 8
mov r8, qword [rsp + 0x128]
mov rdx, r8
shl rdx, 0x10
shr r8, 0x10
test rbp, rbp
sete dil
cmovne rcx, rax
cmovne r8, rdx
not rcx
and r12, r8
and r12, rcx
and r12, qword [rsp + 0x90]
je 0x140022ad7
shl dil, 5
add dil, 0xf0
lea rsi, [rsp + 0x28]
jmp 0x140022a9e
mov rdx, qword [rsp + 0x38]
shl r14d, 0x10
shl ebx, 8
lea eax, [r14 + rbx]
add eax, 4
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx + rdx*2]
mov word [rcx + rdx], ax
shr eax, 0x10
mov byte [rcx + rdx + 2], al
inc qword [rsp + 0x38]
lea rax, [r12 - 1]
and r12, rax
mov r14, qword [rsp + 0xa8]
je 0x140022ad7
tzcnt rbx, r12
lea eax, [rdi + rbx]
bt r14, rbx
movzx r14d, al
jae 0x140022abe
mov rax, qword [rsp + 0xa8]
bt rax, r14
jae 0x140022a8c
mov rdx, qword [rsp + 0x38]
cmp rdx, qword [rsp + 0x30]
jne 0x140022a65
mov rcx, rsi
vzeroupper
call dbg.reserve_for_push<engine::chess::moves::Move, alloc::alloc::Global>
jmp 0x140022a60
mov rax, qword [rsp + 0x50]
or rax, r14
not rax
mov rcx, qword [rsp + 0x140]
and rcx, rax
mov r12, qword [rsp + 0xa0]
lea r13, [0x140163e68]
je 0x140022c27
lea rsi, [rsp + 0x28]
jmp 0x140022b20
mov rcx, rbp
lea rax, [rbp - 1]
and rcx, rax
je 0x140022c27
mov rbp, rcx
tzcnt rdi, rcx
lea rax, [0x140210e08]
mov r14, qword [rax + rdi*8]
and r14, qword [rsp + 0x58]
mov rbx, r14
and rbx, r12
je 0x140022bb0
mov r15d, edi
shl r15d, 8
mov rdx, qword [rsp + 0x38]
jmp 0x140022b8b
tzcnt rax, rbx
lea rcx, [rbx - 1]
and rbx, rcx
shl eax, 0x10
or eax, r15d
or eax, 4
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx + rdx*2]
mov word [rcx + rdx], ax
shr eax, 0x10
mov byte [rcx + rdx + 2], al
mov rdx, qword [rsp + 0x38]
inc rdx
mov qword [rsp + 0x38], rdx
test rbx, rbx
je 0x140022bb0
cmp rdx, qword [rsp + 0x30]
jne 0x140022b50
mov rcx, rsi
vzeroupper
call dbg.reserve_for_push<engine::chess::moves::Move, alloc::alloc::Global>
mov rdx, qword [rsp + 0x38]
jmp 0x140022b50
and r14, qword [rsp + 0xd8]
mov r15, qword [rsp + 0x78]
je 0x140022b10
shl edi, 8
mov rdx, qword [rsp + 0x38]
jmp 0x140022c0e
tzcnt rax, r14
lea rcx, [r14 - 1]
and r14, rcx
shl eax, 0x10
or eax, edi
or eax, 4
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx + rdx*2]
mov word [rcx + rdx], ax
shr eax, 0x10
mov byte [rcx + rdx + 2], al
mov rdx, qword [rsp + 0x38]
inc rdx
mov qword [rsp + 0x38], rdx
test r14, r14
je 0x140022b10
cmp rdx, qword [rsp + 0x30]
jne 0x140022bd0
mov rcx, rsi
vzeroupper
call dbg.reserve_for_push<engine::chess::moves::Move, alloc::alloc::Global>
mov rdx, qword [rsp + 0x38]
jmp 0x140022bd0
mov rdi, r13
mov rcx, qword [rsp + 0x138]
and rcx, qword [rsp + 0x120]
mov rbp, qword [rsp + 0x68]
je 0x140022da8
lea rsi, [rsp + 0x28]
jmp 0x140022c65
mov rcx, r13
lea rax, [r13 - 1]
and rcx, rax
mov r15, qword [rsp + 0x78]
je 0x140022da8
mov r13, rcx
tzcnt r14, rcx
mov rax, r14
shl rax, 4
lea rcx, [0x140163a68]
mov rcx, qword [rcx + r14*8]
or rcx, r15
lea rdx, [0x140109e90]
imul rcx, qword [rax + rdx]
shr rcx, 0x37
add rcx, qword [rax + rdx + 8]
mov r15, qword [rsp + 0x50]
bt r15, r14
mov rax, 0xffffffffffffffff
cmovae r15, rax
and r15, qword [rdi + rcx*8]
and r15, qword [rsp + 0x58]
mov rbx, r15
and rbx, r12
je 0x140022d30
mov ebp, r14d
shl ebp, 8
mov rdx, qword [rsp + 0x38]
jmp 0x140022d0a
tzcnt rax, rbx
lea rcx, [rbx - 1]
and rbx, rcx
shl eax, 0x10
or eax, ebp
or eax, 4
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx + rdx*2]
mov word [rcx + rdx], ax
shr eax, 0x10
mov byte [rcx + rdx + 2], al
mov rdx, qword [rsp + 0x38]
inc rdx
mov qword [rsp + 0x38], rdx
test rbx, rbx
je 0x140022d30
cmp rdx, qword [rsp + 0x30]
jne 0x140022cd0
mov rcx, rsi
vzeroupper
call dbg.reserve_for_push<engine::chess::moves::Move, alloc::alloc::Global>
mov rdx, qword [rsp + 0x38]
jmp 0x140022cd0
and r15, qword [rsp + 0xd8]
mov rbp, qword [rsp + 0x68]
je 0x140022c50
shl r14d, 8
mov rdx, qword [rsp + 0x38]
jmp 0x140022d8f
tzcnt rax, r15
lea rcx, [r15 - 1]
and r15, rcx
shl eax, 0x10
or eax, r14d
or eax, 4
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx + rdx*2]
mov word [rcx + rdx], ax
shr eax, 0x10
mov byte [rcx + rdx + 2], al
mov rdx, qword [rsp + 0x38]
inc rdx
mov qword [rsp + 0x38], rdx
test r15, r15
je 0x140022c50
cmp rdx, qword [rsp + 0x30]
jne 0x140022d50
mov rcx, rsi
vzeroupper
call dbg.reserve_for_push<engine::chess::moves::Move, alloc::alloc::Global>
mov rdx, qword [rsp + 0x38]
jmp 0x140022d50
mov rcx, qword [rsp + 0x100]
or rcx, qword [rsp + 0x130]
and rcx, qword [rsp + 0xb0]
mov r13, rdi
je 0x140022f47
mov rdi, 0xffffffffffffffff
lea rsi, [rsp + 0x28]
jmp 0x140022df1
mov rcx, r12
lea rax, [r12 - 1]
and rcx, rax
je 0x140022f47
mov r12, rcx
tzcnt rbx, rcx
mov rax, rbx
shl rax, 4
lea rcx, [0x140163c68]
mov rcx, qword [rcx + rbx*8]
or rcx, r15
lea rdx, [0x14010a2a8]
imul rcx, qword [rax + rdx]
shr rcx, 0x34
add rcx, qword [rax + rdx + 8]
mov r14, qword [rsp + 0xa8]
bt r14, rbx
cmovae r14, rdi
and r14, qword [r13 + rcx*8]
and r14, qword [rsp + 0x58]
mov r15, r14
and r15, qword [rsp + 0xa0]
je 0x140022ec0
mov ebp, ebx
shl ebp, 8
mov rdx, qword [rsp + 0x38]
jmp 0x140022e9f
mov rdx, qword [rsp + 0x38]
tzcnt rax, r15
lea rcx, [r15 - 1]
and r15, rcx
shl eax, 0x10
or eax, ebp
or eax, 4
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx + rdx*2]
mov word [rcx + rdx], ax
shr eax, 0x10
mov byte [rcx + rdx + 2], al
mov rdx, qword [rsp + 0x38]
inc rdx
mov qword [rsp + 0x38], rdx
test r15, r15
je 0x140022ec0
cmp rdx, qword [rsp + 0x30]
jne 0x140022e65
mov rcx, rsi
vzeroupper
call dbg.reserve_for_push<engine::chess::moves::Move, alloc::alloc::Global>
jmp 0x140022e60
and r14, qword [rsp + 0xd8]
mov rbp, qword [rsp + 0x68]
mov r15, qword [rsp + 0x78]
je 0x140022de0
shl ebx, 8
mov rdx, qword [rsp + 0x38]
jmp 0x140022f2e
tzcnt rax, r14
lea rcx, [r14 - 1]
and r14, rcx
shl eax, 0x10
or eax, ebx
or eax, 4
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx + rdx*2]
mov word [rcx + rdx], ax
shr eax, 0x10
mov byte [rcx + rdx + 2], al
mov rdx, qword [rsp + 0x38]
inc rdx
mov qword [rsp + 0x38], rdx
test r14, r14
je 0x140022de0
cmp rdx, qword [rsp + 0x30]
jne 0x140022ef0
mov rcx, rsi
vzeroupper
call dbg.reserve_for_push<engine::chess::moves::Move, alloc::alloc::Global>
mov rdx, qword [rsp + 0x38]
jmp 0x140022ef0
mov qword [rsp + 0x20], r15
lea rcx, [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x98]
mov r9, qword [rsp + 0xa0]
vzeroupper
call dbg.generate_king_moves<true>
mov r14, qword [rsp + 0x60]
cmp qword [rsp + 0x118], 0
je 0x140022fb0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xf8]
mov qword [rcx + 0x10], rax
mov rax, rcx
vmovups xmm0, xmmword [rsp + 0x28]
vmovups xmmword [rcx], xmm0
add rsp, 0x278
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r8, qword [rsp + 0x48]
lea rax, [r8 + 0x110]
lea rcx, [r8 + 0x111]
lea rdx, [r8 + 0x10e]
add r8, 0x10f
test r14, r14
cmovne r8, rcx
movzx ebx, byte [r8]
cmovne rdx, rax
cmp byte [rdx], 0
je 0x140023139
test r14, r14
mov eax, 0x3c
mov edi, 4
cmovne edi, eax
movabs rax, 0x6000000000000000
mov ecx, 0x60
cmovne rcx, rax
mov eax, 0x3e
mov esi, 6
cmovne esi, eax
test r15, rcx
jne 0x140023139
test r14, r14
mov ecx, 0x3d
mov eax, 5
cmovne rax, rcx
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + rax*8]
and rcx, qword [rsp + 0xe8]
lea rdx, [0x140210e08]
mov rdx, qword [rdx + rax*8]
and rdx, qword [rsp + 0xe0]
lea r8, [0x140163a68]
mov r8, qword [r8 + rax*8]
mov r9, rax
shl r9, 4
or r8, r15
lea r10, [0x140109e90]
imul r8, qword [r9 + r10]
or rdx, rcx
shr r8, 0x37
add r8, qword [r9 + r10 + 8]
mov rcx, qword [r13 + r8*8]
and rcx, qword [rsp + 0xb8]
or rcx, rdx
lea rdx, [0x140163c68]
mov rdx, qword [rdx + rax*8]
or rdx, r15
lea r8, [0x14010a2a8]
imul rdx, qword [r9 + r8]
shr rdx, 0x34
add rdx, qword [r9 + r8 + 8]
mov rdx, qword [r13 + rdx*8]
and rdx, rbp
or rdx, rcx
lea rcx, [0x140210c08]
mov rax, qword [rcx + rax*8]
and rax, qword [rsp + 0xc0]
or rax, rdx
jne 0x140023139
test r14, r14
setne dl
mov rcx, qword [rsp + 0x48]
mov r8d, esi
call dbg.generate_attackers_of
test rax, rax
jne 0x140023139
mov rdx, qword [rsp + 0x38]
cmp rdx, qword [rsp + 0x30]
jne 0x14002310d
lea rcx, [rsp + 0x28]
call dbg.reserve_for_push<engine::chess::moves::Move, alloc::alloc::Global>
mov rdx, qword [rsp + 0x38]
movzx eax, sil
shl eax, 0x10
movzx ecx, dil
shl ecx, 8
add eax, ecx
add eax, 4
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx + rdx*2]
mov word [rcx + rdx], ax
shr eax, 0x10
mov byte [rcx + rdx + 2], al
inc qword [rsp + 0x38]
test bl, bl
je 0x140022f7e
test r14, r14
mov eax, 0x3c
mov edi, 4
cmovne edi, eax
movabs rax, 0xe00000000000000
mov ecx, 0xe
cmovne rcx, rax
mov eax, 0x3a
mov esi, 2
cmovne esi, eax
test r15, rcx
jne 0x140022f7e
test r14, r14
mov ecx, 0x3b
mov eax, 3
cmovne rax, rcx
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x70]
and rdx, qword [rcx + rax*8]
mov r8, qword [rsp + 0xe0]
lea rcx, [0x140210e08]
and r8, qword [rcx + rax*8]
lea rcx, [0x140163a68]
mov rcx, qword [rcx + rax*8]
or rcx, r15
lea r9, [0x140163c68]
or r15, qword [r9 + rax*8]
mov r9, qword [rsp + 0xc0]
lea r10, [0x140210c08]
and r9, qword [r10 + rax*8]
shl rax, 4
lea r10, [0x140109e90]
imul rcx, qword [rax + r10]
shr rcx, 0x37
add rcx, qword [rax + r10 + 8]
lea r10, [0x14010a2a8]
imul r15, qword [rax + r10]
shr r15, 0x34
add r15, qword [rax + r10 + 8]
mov rax, qword [rsp + 0xb8]
and rax, qword [r13 + rcx*8]
and rbp, qword [r13 + r15*8]
or r8, rdx
or rax, r8
or rbp, rax
or r9, rbp
jne 0x140022f7e
test r14, r14
setne dl
mov rcx, qword [rsp + 0x48]
mov r8d, esi
call dbg.generate_attackers_of
test rax, rax
jne 0x140022f7e
mov rdx, qword [rsp + 0x38]
cmp rdx, qword [rsp + 0x30]
jne 0x140023264
lea rcx, [rsp + 0x28]
call dbg.reserve_for_push<engine::chess::moves::Move, alloc::alloc::Global>
mov rdx, qword [rsp + 0x38]
movzx eax, sil
shl eax, 0x10
movzx ecx, dil
shl ecx, 8
add eax, ecx
add eax, 4
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx + rdx*2]
mov word [rcx + rdx], ax
shr eax, 0x10
mov byte [rcx + rdx + 2], al
inc qword [rsp + 0x38]
jmp 0x140022f7e
lea r8, str.src_chess_board.rs
mov edx, 0x40
mov rcx, r9
vzeroupper
call dbg.panic_bounds_check
ud2
mov ecx, 1
mov edx, 0xc0
call dbg.handle_alloc_error
ud2