// File: /workspace/github_cpp_makefile_star2_O1/codeandkey[P]neocortex/src/attacks.cpp
// Function: neocortex::attacks::init()
void attacks::init() {
	for (int sq = 0; sq < 64; ++sq) {
		int src_r = square::rank(sq), src_f = square::file(sq);

		/* white pawn spans */
		for (int rr = src_r + 1; rr < 8; ++rr) {
			pawn_frontspans_list[piece::WHITE][sq] |= bb::mask(square::at(rr, src_f));

			if (src_f > 0) {
				pawn_attackspans_list[piece::WHITE][sq] |= bb::mask(square::at(rr, src_f - 1));
			}

			if (src_f < 7) {
				pawn_attackspans_list[piece::WHITE][sq] |= bb::mask(square::at(rr, src_f + 1));
			}
		}

		/* black pawn spans */
		for (int rr = src_r - 1; rr >= 0; --rr) {
			pawn_frontspans_list[piece::BLACK][sq] |= bb::mask(square::at(rr, src_f));

			if (src_f > 0) {
				pawn_attackspans_list[piece::BLACK][sq] |= bb::mask(square::at(rr, src_f - 1));
			}

			if (src_f < 7) {
				pawn_attackspans_list[piece::BLACK][sq] |= bb::mask(square::at(rr, src_f + 1));
			}
		}

		if (src_r < 7) {
			pawn_attacks[piece::WHITE][sq] = bb::shift(bb::mask(sq) & ~FILE_A, NORTHWEST) | bb::shift(bb::mask(sq) & ~FILE_H, NORTHEAST);
		} else {
			pawn_attacks[piece::WHITE][sq] = 0;
		}

		if (src_r > 0) {
			pawn_attacks[piece::BLACK][sq] = bb::shift(bb::mask(sq) & ~FILE_A, SOUTHWEST) | bb::shift(bb::mask(sq) & ~FILE_H, SOUTHEAST);
		}
		else {
			pawn_attacks[piece::BLACK][sq] = 0;
		}

		king_attacks[sq] |= bb::shift((bb::mask(sq) & ~FILE_H), EAST);
		king_attacks[sq] |= bb::shift((bb::mask(sq) & ~FILE_A), WEST);
		king_attacks[sq] |= bb::shift((bb::mask(sq) & ~RANK_8), NORTH);
		king_attacks[sq] |= bb::shift((bb::mask(sq) & ~RANK_1), SOUTH);
		king_attacks[sq] |= bb::shift((bb::mask(sq) & ~FILE_H & ~RANK_8), NORTHEAST);
		king_attacks[sq] |= bb::shift((bb::mask(sq) & ~FILE_A & ~RANK_8), NORTHWEST);
		king_attacks[sq] |= bb::shift((bb::mask(sq) & ~FILE_H & ~RANK_1), SOUTHEAST);
		king_attacks[sq] |= bb::shift((bb::mask(sq) & ~FILE_A & ~RANK_1), SOUTHWEST);

		knight_attacks[sq] |= bb::shift((bb::mask(sq) & ~FILE_H & ~FILE_G & ~RANK_8), EAST * 2 + NORTH);
		knight_attacks[sq] |= bb::shift((bb::mask(sq) & ~FILE_H & ~FILE_G & ~RANK_1), EAST * 2 + SOUTH);
		knight_attacks[sq] |= bb::shift((bb::mask(sq) & ~FILE_B & ~FILE_A & ~RANK_8), WEST * 2 + NORTH);
		knight_attacks[sq] |= bb::shift((bb::mask(sq) & ~FILE_B & ~FILE_A & ~RANK_1), WEST * 2 + SOUTH);
		knight_attacks[sq] |= bb::shift((bb::mask(sq) & ~RANK_1 & ~RANK_2 & ~FILE_A), SOUTH * 2 + WEST);
		knight_attacks[sq] |= bb::shift((bb::mask(sq) & ~RANK_1 & ~RANK_2 & ~FILE_H), SOUTH * 2 + EAST);
		knight_attacks[sq] |= bb::shift((bb::mask(sq) & ~RANK_7 & ~RANK_8 & ~FILE_A), NORTH * 2 + WEST);
		knight_attacks[sq] |= bb::shift((bb::mask(sq) & ~RANK_7 & ~RANK_8 & ~FILE_H), NORTH * 2 + EAST);

		int num_rook_roccs = 1 << magic::rook_bits[sq];

		rook_attacks[sq] = new bitboard[num_rook_roccs];

		for (int i = 0; i < num_rook_roccs; ++i) {
			rook_attacks[sq][i] = 0;
		}

		for (int i = 0; i < num_rook_roccs; ++i) {
			bitboard rocc = make_rocc(i, magic::rook_masks[sq], magic::rook_bits[sq]);
			int mindex = magic_index(rocc, magic::rook_magics[sq], magic::rook_bits[sq]);

			assert(!rook_attacks[sq][mindex]);

			bitboard* dst = &rook_attacks[sq][mindex];

			/* west */
			for (int f = src_f - 1; f >= 0; --f) {
				bitboard mask = bb::mask(square::at(src_r, f));
				*dst |= mask;
				if (rocc & mask) break;
			}

			/* east */
			for (int f = src_f + 1; f < 8; ++f) {
				bitboard mask = bb::mask(square::at(src_r, f));
				*dst |= mask;
				if (rocc & mask) break;
			}

			/* north */
			for (int r = src_r + 1; r < 8; ++r) {
				bitboard mask = bb::mask(square::at(r, src_f));
				*dst |= mask;
				if (rocc & mask) break;
			}

			/* south */
			for (int r = src_r - 1; r >= 0; --r) {
				bitboard mask = bb::mask(square::at(r, src_f));
				*dst |= (bitboard) mask;
				if (rocc & mask) break;
			}
		}

		int num_bishop_roccs = 1 << magic::bishop_bits[sq];

		bishop_attacks[sq] = new bitboard[num_bishop_roccs];

		for (int i = 0; i < num_bishop_roccs; ++i) {
			bishop_attacks[sq][i] = 0;
		}

		for (int i = 0; i < num_bishop_roccs; ++i) {
			bitboard rocc = make_rocc(i, magic::bishop_masks[sq], magic::bishop_bits[sq]);
			int mindex = magic_index(rocc, magic::bishop_magics[sq], magic::bishop_bits[sq]);

			assert(!bishop_attacks[sq][mindex]);

			bitboard* dst = &bishop_attacks[sq][mindex];

			/* northwest */
			for (int f = src_f - 1, r = src_r + 1; f >= 0 && r < 8; --f, ++r) {
				bitboard mask = bb::mask(square::at(r, f));
				*dst |= mask;
				if (rocc & mask) break;
			}

			/* northeast */
			for (int f = src_f + 1, r = src_r + 1; f < 8 && r < 8; ++f, ++r) {
				bitboard mask = bb::mask(square::at(r, f));
				*dst |= mask;
				if (rocc & mask) break;
			}

			/* southeast */
			for (int f = src_f + 1, r = src_r - 1; f < 8 && r >= 0; ++f, --r) {
				bitboard mask = bb::mask(square::at(r, f));
				*dst |= mask;
				if (rocc & mask) break;
			}

			/* southwest */
			for (int f = src_f - 1, r = src_r - 1; f >= 0 && r >= 0; --f, --r) {
				bitboard mask = bb::mask(square::at(r, f));
				*dst |= mask;
				if (rocc & mask) break;
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
xorl %r15d, %r15d
leaq 0x1cdd9(%rip), %rsi     # 0x21d90
leaq 0x1d1d2(%rip), %r13     # 0x22190
xorl %ebp, %ebp
movl %ebp, %r12d
andl $0x7, %r12d
leal -0x1(%r12), %ebx
movq %r15, %rax
shrq $0x3, %rax
movq %rax, 0x28(%rsp)
movq %r15, %rcx
andq $-0x8, %rcx
leaq (%rcx,%r12), %rax
addq $0x9, %rax
movq %rax, 0x60(%rsp)
movq %rcx, 0x8(%rsp)
leaq (%rcx,%rbx), %rax
addq $0x8, %rax
movq %rax, 0x68(%rsp)
movl %r15d, %eax
andl $0x7, %eax
movq %rax, 0x18(%rsp)
cmpq $0x37, %r15
ja 0x50a9
movq 0x28(%rsp), %rax
leaq -0x1(%rax), %rdi
movq 0x18(%rsp), %rax
leal -0x1(%rax), %r9d
leal 0x1(%rax), %r10d
movq (%rsi,%r15,8), %r8
movq 0x68(%rsp), %rax
movq 0x60(%rsp), %rdx
leal -0x1(%rdx), %ecx
btsq %rcx, %r8
cmpl $0x0, 0x18(%rsp)
je 0x5075
leal 0x2(%rdi), %ecx
orl %r9d, %ecx
cmpl $0x8, %ecx
jae 0x587a
cmpq $0x40, %rax
jae 0x589d
movl $0x1, %r11d
movl %eax, %ecx
shlq %cl, %r11
orq %r11, (%r13,%r15,8)
cmpl $0x7, 0x18(%rsp)
je 0x5094
leal 0x2(%rdi), %ecx
orl %r10d, %ecx
cmpl $0x8, %ecx
jae 0x587a
movl $0x1, %r11d
movl %edx, %ecx
shlq %cl, %r11
orq %r11, (%r13,%r15,8)
incq %rdi
addq $0x8, %rdx
addq $0x8, %rax
cmpq $0x6, %rdi
jb 0x5037
movq %r8, (%rsi,%r15,8)
movl %ebp, %edi
shrl $0x3, %edi
decl %edi
movq %rbx, 0x78(%rsp)
leaq (%rbx,%rdi,8), %rax
movq %rax, 0x58(%rsp)
movl %r15d, %ebx
shrl $0x3, %ebx
leal -0x1(%rbx), %eax
movq %rax, 0x48(%rsp)
cmpq $0x8, %r15
jb 0x5182
leaq 0x1(%rdi), %r8
leaq (%r12,%rdi,8), %rax
movq 0x18(%rsp), %rcx
leal -0x1(%rcx), %r9d
leal 0x1(%rcx), %r10d
movl %edi, %r11d
movq 0x58(%rsp), %rdx
cmpl $0x8, 0x48(%rsp)
jae 0x587e
movl $0x1, %r14d
movl %eax, %ecx
shlq %cl, %r14
orq %r14, 0x200(%rsi,%r15,8)
cmpl $0x0, 0x18(%rsp)
je 0x514b
movl %r9d, %ecx
orl %r11d, %ecx
cmpl $0x8, %ecx
jae 0x587e
cmpq $0x40, %rdx
jae 0x58a1
movl $0x1, %r14d
movl %edx, %ecx
shlq %cl, %r14
orq %r14, 0x200(%r13,%r15,8)
cmpl $0x7, 0x18(%rsp)
je 0x516e
movl %r10d, %ecx
orl %r11d, %ecx
cmpl $0x8, %ecx
jae 0x587e
leal 0x1(%rax), %ecx
movl $0x1, %r14d
shlq %cl, %r14
orq %r14, 0x200(%r13,%r15,8)
addq $-0x8, %rax
addq $-0x8, %rdx
decl %r11d
decq %r8
jne 0x50f3
cmpq $0x38, %r15
movl %ebp, 0x54(%rsp)
jae 0x51be
movl $0x80, %edx
movl %r15d, %ecx
shlq %cl, %rdx
movl $0x200, %eax            # imm = 0x200
shlq %cl, %rax
movabsq $0x7f7f7f7f7f7f7f00, %rcx # imm = 0x7F7F7F7F7F7F7F00
andq %rcx, %rdx
movabsq $-0x101010101010200, %rcx # imm = 0xFEFEFEFEFEFEFE00
andq %rcx, %rax
orq %rdx, %rax
jmp 0x51c0
xorl %eax, %eax
movabsq $0xfefefefefefefe, %rsi # imm = 0xFEFEFEFEFEFEFE
movabsq $0x7f7f7f7f7f7f7f, %rdx # imm = 0x7F7F7F7F7F7F7F
movq 0x8(%rsp), %rcx
leaq 0x1(%rcx), %r13
leaq -0x1(%rcx), %rbp
movl %r12d, %ecx
incl %ecx
movq %rcx, 0x70(%rsp)
leaq 0x1c79e(%rip), %rcx     # 0x21990
movq %rax, (%rcx,%r15,8)
cmpq $0x8, %r15
movq %rdi, 0x10(%rsp)
jae 0x5205
xorl %eax, %eax
jmp 0x5224
movl $0x1, %eax
movl %r15d, %ecx
shlq %cl, %rax
movq %rax, %rcx
shrq $0x9, %rcx
andq %rdx, %rcx
shrq $0x7, %rax
andq %rsi, %rax
orq %rcx, %rax
movl $0x1, %edx
movl %r15d, %ecx
shlq %cl, %rdx
movl $0x2, %r8d
shlq %cl, %r8
movabsq $-0x101010101010200, %rdi # imm = 0xFEFEFEFEFEFEFE00
leaq 0xfe(%rdi), %r9
andq %r8, %r9
movq %rdx, %r10
shrq %r10
movabsq $0x7f7f7f7f7f7f7f00, %r14 # imm = 0x7F7F7F7F7F7F7F00
leaq 0x7f(%r14), %r8
movl $0x100, %r11d           # imm = 0x100
shlq %cl, %r11
andq %r10, %r8
orq %r9, %r11
movq %rdx, %r9
movl $0x200, %r10d           # imm = 0x200
shlq %cl, %r10
shrq $0x8, %r9
andq %rdi, %r10
orq %r9, %r10
movl $0x80, %r9d
shlq %cl, %r9
orq %r11, %r10
andq %r14, %r9
orq %r8, %r9
orq %r10, %r9
movq %rdx, %rcx
shrq $0x7, %rcx
andq %rsi, %rcx
movq %rdx, %r8
shrq $0x9, %r8
movabsq $0x7f7f7f7f7f7f7f, %rsi # imm = 0x7F7F7F7F7F7F7F
andq %rsi, %r8
orq %rcx, %r8
orq %r9, %r8
leaq 0x1c2cb(%rip), %rcx     # 0x21590
orq %r8, (%rcx,%r15,8)
movl $0x400, %r9d            # imm = 0x400
movl %r15d, %ecx
shlq %cl, %r9
movabsq $-0x303030303030400, %rcx # imm = 0xFCFCFCFCFCFCFC00
andq %rcx, %r9
movq %rdx, %r10
shrq $0x6, %r10
movabsq $0xfcfcfcfcfcfcfc, %rcx # imm = 0xFCFCFCFCFCFCFC
andq %rcx, %r10
movl $0x40, %r8d
movl %r15d, %ecx
shlq %cl, %r8
movabsq $0x3f3f3f3f3f3f3f00, %rcx # imm = 0x3F3F3F3F3F3F3F00
andq %rcx, %r8
orq %r9, %r8
movq %rdx, %r9
shrq $0xa, %r9
movabsq $0x3f3f3f3f3f3f3f, %rcx # imm = 0x3F3F3F3F3F3F3F
andq %rcx, %r9
orq %r10, %r9
movq %rdx, %rcx
shrq $0x11, %rcx
movabsq $0x7f7f7f7f7f7f, %rsi   # imm = 0x7F7F7F7F7F7F
andq %rsi, %rcx
shrq $0xf, %rdx
movabsq $0xfefefefefefe, %rsi   # imm = 0xFEFEFEFEFEFE
andq %rsi, %rdx
orq %rcx, %rdx
movl $0x8000, %r10d          # imm = 0x8000
movl %r15d, %ecx
shlq %cl, %r10
leaq -0x7f00(%r14), %r11
andq %r10, %r11
movl $0x20000, %r10d         # imm = 0x20000
shlq %cl, %r10
leaq -0xfe00(%rdi), %rcx
andq %r10, %rcx
orq %r11, %rcx
orq %r8, %rcx
orq %r9, %rcx
orq %rdx, %rcx
leaq 0x1c403(%rip), %rdx     # 0x21790
orq %rcx, (%rdx,%r15,8)
movq 0x10(%rsp), %rdx
leaq (%r12,%rdx,8), %rcx
incq %rcx
movq %rcx, 0x80(%rsp)
leaq (,%rdx,8), %rcx
movq %rcx, 0x90(%rsp)
leaq 0x11c54(%rip), %rcx     # 0x17010
movl (%rcx,%r15,4), %ecx
movl %ecx, 0x20(%rsp)
movl $0x1, %edx
shll %cl, %edx
movq 0x8(%rsp), %rcx
addq %r12, %rcx
addq $0x8, %rcx
movq %rcx, 0x88(%rsp)
leaq 0x1c5aa(%rip), %rcx     # 0x21990
movq %rax, 0x200(%rcx,%r15,8)
movslq %edx, %rax
movq %rax, 0x10(%rsp)
leaq (,%rax,8), %rdi
callq 0x4030
movq %rax, %r14
leaq 0x1d183(%rip), %rax     # 0x22590
movq %r14, (%rax,%r15,8)
movq 0x10(%rsp), %rcx
cmpl $0x2, %ecx
movl $0x1, %eax
cmovll %eax, %ecx
movq %rcx, 0x10(%rsp)
leaq (,%rcx,8), %rdx
movq %r15, 0x8(%rsp)
xorl %r15d, %r15d
movq %r14, %rdi
xorl %esi, %esi
callq 0x4150
leaq 0x11cc9(%rip), %rax     # 0x17110
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x40(%rsp)
leaq 0x11eb4(%rip), %rax     # 0x17310
movq (%rax,%rcx,8), %rax
movq %rax, 0x38(%rsp)
movl $0x40, %eax
subl 0x20(%rsp), %eax
movq %rax, 0x30(%rsp)
movl %r15d, %edi
movq 0x40(%rsp), %rsi
movl 0x20(%rsp), %edx
callq 0x58c0
movq 0x38(%rsp), %rdx
imulq %rax, %rdx
movq 0x30(%rsp), %rcx
shrq %cl, %rdx
movslq %edx, %rdx
cmpq $0x0, (%r14,%rdx,8)
jne 0x5844
shlq $0x3, %rdx
movq %r12, %rsi
movq 0x48(%rsp), %r9
testq %rsi, %rsi
jle 0x54da
leal -0x1(%rsi), %ecx
orl %ebx, %ecx
cmpl $0x8, %ecx
jae 0x587e
leal (%rsi,%rbp), %ecx
movl $0x1, %edi
shlq %cl, %rdi
orq %rdi, (%r14,%rdx)
decq %rsi
btq %rcx, %rax
jae 0x54af
movq %r12, %rsi
cmpq $0x7, %rsi
je 0x550a
leal 0x1(%rsi), %ecx
orl %ebx, %ecx
cmpl $0x8, %ecx
jae 0x587e
leal (%rsi,%r13), %ecx
movl $0x1, %edi
shlq %cl, %rdi
orq %rdi, (%r14,%rdx)
incq %rsi
btq %rcx, %rax
jae 0x54dd
cmpq $0x37, 0x8(%rsp)
ja 0x5542
movq (%r14,%rdx), %rcx
movq 0x88(%rsp), %rsi
movq 0x28(%rsp), %rdi
btsq %rsi, %rcx
btq %rsi, %rax
jb 0x553e
leaq 0x1(%rdi), %r8
addq $0x8, %rsi
cmpq $0x6, %rdi
movq %r8, %rdi
jb 0x5523
movq %rcx, (%r14,%rdx)
cmpq $0x8, 0x8(%rsp)
jb 0x557e
movq 0x90(%rsp), %rsi
cmpl $0x8, %r9d
jae 0x587e
leal (%r12,%rsi), %ecx
movl $0x1, %edi
shlq %cl, %rdi
orq %rdi, (%r14,%rdx)
btq %rcx, %rax
jb 0x557e
leaq -0x8(%rsi), %rcx
testq %rsi, %rsi
movq %rcx, %rsi
jne 0x5552
incl %r15d
cmpl 0x10(%rsp), %r15d
jne 0x5473
movq 0x8(%rsp), %r12
leaq 0x11f78(%rip), %rax     # 0x17510
movl (%rax,%r12,4), %ebx
movl $0x1, %eax
movl %ebx, %ecx
shll %cl, %eax
movslq %eax, %r15
leaq (,%r15,8), %rdi
callq 0x4030
movq %rax, %r14
leaq 0x1d1d1(%rip), %rax     # 0x22790
movq %r14, (%rax,%r12,8)
cmpl $0x2, %r15d
movl $0x1, %eax
cmovll %eax, %r15d
movq %r15, 0x30(%rsp)
leaq (,%r15,8), %rdx
xorl %r15d, %r15d
movq %r14, %rdi
xorl %esi, %esi
callq 0x4150
leaq 0x1201f(%rip), %rax     # 0x17610
movq %r12, %rcx
movq (%rax,%r12,8), %rax
movq %rax, 0x20(%rsp)
leaq 0x1220c(%rip), %rax     # 0x17810
movq (%rax,%r12,8), %rax
movq %rax, 0x40(%rsp)
movl $0x40, %eax
movl %ebx, 0x10(%rsp)
subl %ebx, %eax
movq %rax, 0x38(%rsp)
movq 0x18(%rsp), %rax
testl %eax, %eax
setne %r12b
cmpq $0x38, %rcx
setb %bpl
movl %r12d, %ebx
andb %bpl, %bl
cmpl $0x7, %eax
setne %r13b
andb %r13b, %bpl
cmpq $0x8, %rcx
setae %al
andb %al, %r13b
andb %al, %r12b
movl %r15d, %edi
movq 0x20(%rsp), %rsi
movl 0x10(%rsp), %edx
callq 0x58c0
movq 0x40(%rsp), %rdx
imulq %rax, %rdx
movq 0x38(%rsp), %rcx
shrq %cl, %rdx
movslq %edx, %rdx
cmpq $0x0, (%r14,%rdx,8)
jne 0x5863
shlq $0x3, %rdx
testb %bl, %bl
je 0x56e1
movq 0x68(%rsp), %rcx
movq 0x78(%rsp), %rsi
movq 0x28(%rsp), %rdi
leal 0x1(%rdi), %r8d
movl %esi, %r9d
orl %r8d, %r9d
testl $0xfffffff8, %r9d       # imm = 0xFFFFFFF8
jne 0x587e
cmpq $0x40, %rcx
jae 0x58a1
movl $0x1, %r8d
shlq %cl, %r8
orq %r8, (%r14,%rdx)
btq %rcx, %rax
jb 0x56e1
testq %rsi, %rsi
jle 0x56e1
decq %rsi
addq $0x7, %rcx
leaq 0x1(%rdi), %r8
cmpq $0x6, %rdi
movq %r8, %rdi
jb 0x5694
testb %bpl, %bpl
je 0x5743
movq 0x60(%rsp), %rcx
movq 0x70(%rsp), %rsi
movq 0x28(%rsp), %rdi
leal 0x1(%rdi), %r8d
movl %esi, %r9d
orl %r8d, %r9d
testl $0xfffffff8, %r9d       # imm = 0xFFFFFFF8
jne 0x587e
cmpq $0x40, %rcx
jae 0x58a1
movl $0x1, %r8d
shlq %cl, %r8
orq %r8, (%r14,%rdx)
btq %rcx, %rax
jb 0x5743
cmpq $0x6, %rsi
ja 0x5743
incq %rsi
addq $0x9, %rcx
leaq 0x1(%rdi), %r8
cmpq $0x6, %rdi
movq %r8, %rdi
jb 0x56f5
testb %r13b, %r13b
movq 0x48(%rsp), %r9
je 0x57a5
movq 0x80(%rsp), %rcx
movq 0x70(%rsp), %rsi
movq %r9, %rdi
movl %edi, %r8d
orl %esi, %r8d
testl $0xfffffff8, %r8d       # imm = 0xFFFFFFF8
jne 0x587e
cmpq $0x40, %rcx
jae 0x58a1
movl $0x1, %r8d
shlq %cl, %r8
orq %r8, (%r14,%rdx)
btq %rcx, %rax
jb 0x57a5
cmpq $0x6, %rsi
ja 0x57a5
incq %rsi
leaq -0x1(%rdi), %r8
addq $-0x7, %rcx
testl %edi, %edi
movq %r8, %rdi
jg 0x575d
testb %r12b, %r12b
je 0x57fe
movq 0x58(%rsp), %rcx
movq 0x78(%rsp), %rsi
movq %r9, %rdi
movl %edi, %r8d
orl %esi, %r8d
testl $0xfffffff8, %r8d       # imm = 0xFFFFFFF8
jne 0x587e
cmpq $0x40, %rcx
jae 0x58a1
movl $0x1, %r8d
shlq %cl, %r8
orq %r8, (%r14,%rdx)
btq %rcx, %rax
jb 0x57fe
testq %rsi, %rsi
jle 0x57fe
decq %rsi
leaq -0x1(%rdi), %r8
addq $-0x9, %rcx
testl %edi, %edi
movq %r8, %rdi
jg 0x57b7
incl %r15d
cmpl 0x30(%rsp), %r15d
jne 0x564d
movq 0x8(%rsp), %r15
incq %r15
movl 0x54(%rsp), %ebp
incl %ebp
cmpq $0x40, %r15
leaq 0x1c56b(%rip), %rsi     # 0x21d90
leaq 0x1c964(%rip), %r13     # 0x22190
jne 0x4fc0
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x121c5(%rip), %rdi     # 0x17a10
leaq 0x121d8(%rip), %rsi     # 0x17a2a
leaq 0x121e1(%rip), %rcx     # 0x17a3a
movl $0x64, %edx
callq 0x4190
leaq 0x121f0(%rip), %rdi     # 0x17a5a
leaq 0x121b9(%rip), %rsi     # 0x17a2a
leaq 0x121c2(%rip), %rcx     # 0x17a3a
jmp 0x58b6
movq %r8, (%rsi,%r15,8)
leaq 0x12244(%rip), %rdi     # 0x17ac9
leaq 0x121ea(%rip), %rsi     # 0x17a76
leaq 0x12265(%rip), %rcx     # 0x17af8
movl $0x22, %edx
callq 0x4190
movq %r8, (%rsi,%r15,8)
leaq 0x121db(%rip), %rdi     # 0x17a83
leaq 0x121e9(%rip), %rsi     # 0x17a98
leaq 0x121f1(%rip), %rcx     # 0x17aa7
movl $0x91, %edx
callq 0x4190