// File: codeandkey[P]neocortex/src/position.cpp
// Function: neocortex::Position::pseudolegal_moves_quiescence_captures(neocortex::Move*)
int Position::pseudolegal_moves_quiescence_captures(Move* out) {
	if (check()) {
		return pseudolegal_moves_evasions(out);
	}

	int count = 0;

	bitboard ctm = board.get_color_occ(color_to_move);
	bitboard opp = board.get_color_occ(!color_to_move);

	bitboard ep_mask = 0;
	int ep_square = ply.back().en_passant_square;

	if (square::is_valid(ep_square)) {
		ep_mask = bb::mask(ep_square);
	}

	/* Pawn moves */
	bitboard pawns = ctm & board.get_piece_occ(piece::PAWN);
	bitboard promoting_rank = (color_to_move == piece::WHITE) ? RANK_7 : RANK_2;

	int adv_dir = (color_to_move == piece::WHITE) ? NORTH : SOUTH;
	int left_dir = (color_to_move == piece::WHITE) ? NORTHWEST : SOUTHWEST;
	int right_dir = (color_to_move == piece::WHITE) ? NORTHEAST : SOUTHEAST;

	bitboard promoting_pawns = pawns & promoting_rank;

	/* Promoting left captures */
	bitboard promoting_left_cap = bb::shift(promoting_pawns & ~FILE_A, left_dir) & opp;

	while (promoting_left_cap) {
		int dst = bb::poplsb(promoting_left_cap);
		out[count++] = Move(dst - left_dir, dst, piece::QUEEN);
		out[count++] = Move(dst - left_dir, dst, piece::KNIGHT);
	}

	/* Promoting right captures */
	bitboard promoting_right_cap = bb::shift(promoting_pawns & ~FILE_H, right_dir) & opp;

	while (promoting_right_cap) {
		int dst = bb::poplsb(promoting_right_cap);
		out[count++] = Move(dst - right_dir, dst, piece::QUEEN);
		out[count++] = Move(dst - right_dir, dst, piece::KNIGHT);
	}

	/* Promoting advances */
	bitboard promoting_advances = bb::shift(promoting_pawns, adv_dir) & ~board.get_global_occ();

	while (promoting_advances) {
		int dst = bb::poplsb(promoting_advances);
		out[count++] = Move(dst - adv_dir, dst, piece::QUEEN);
		out[count++] = Move(dst - adv_dir, dst, piece::KNIGHT);
	}

	/* Nonpromoting pawn moves */
	bitboard npm_pawns = pawns & ~promoting_pawns;

	/* Left captures */
	bitboard npm_left_cap = bb::shift(npm_pawns & ~FILE_A, left_dir) & (opp | ep_mask);

	while (npm_left_cap) {
		int dst = bb::poplsb(npm_left_cap);
		out[count++] = Move(dst - left_dir, dst);
	}

	/* Right captures */
	bitboard npm_right_cap = bb::shift(npm_pawns & ~FILE_H, right_dir) & (opp | ep_mask);

	while (npm_right_cap) {
		int dst = bb::poplsb(npm_right_cap);
		out[count++] = Move(dst - right_dir, dst);
	}

	/* Queen captures  */
	bitboard queens = ctm & board.get_piece_occ(piece::QUEEN);

	while (queens) {
		int src = bb::poplsb(queens);
		bitboard moves = attacks::queen(src, board.get_global_occ()) & opp;

		while (moves) {
			int dst = bb::poplsb(moves);
			out[count++] = Move(src, dst);
		}
	}

	/* Rook captures */
	bitboard rooks = ctm & board.get_piece_occ(piece::ROOK);

	while (rooks) {
		int src = bb::poplsb(rooks);
		bitboard moves = attacks::rook(src, board.get_global_occ()) & opp;

		while (moves) {
			int dst = bb::poplsb(moves);
			out[count++] = Move(src, dst);
		}
	}

	/* Knight captures */
	bitboard knights = ctm & board.get_piece_occ(piece::KNIGHT);

	while (knights) {
		int src = bb::poplsb(knights);
		bitboard moves = attacks::knight(src) & opp;

		while (moves) {
			int dst = bb::poplsb(moves);
			out[count++] = Move(src, dst);
		}
	}

	/* Bishop captures */
	bitboard bishops = ctm & board.get_piece_occ(piece::BISHOP);

	while (bishops) {
		int src = bb::poplsb(bishops);
		bitboard moves = attacks::bishop(src, board.get_global_occ()) & opp;

		while (moves) {
			int dst = bb::poplsb(moves);
			out[count++] = Move(src, dst);
		}
	}

	/* King captures */
	bitboard kings = ctm & board.get_piece_occ(piece::KING);

	while (kings) {
		int src = bb::poplsb(kings);
		bitboard moves = attacks::king(src) & opp;

		while (moves) {
			int dst = bb::poplsb(moves);
			out[count++] = Move(src, dst);
		}
	}

	assert(count <= MAX_PL_MOVES);
	return count;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x240, %rsp            # imm = 0x240
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x1e8(%rbp)
callq 0xbc10
testb $0x1, %al
jne 0x10ac9
jmp 0x10ae1
movq -0x1e8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xf0a0
movl %eax, -0x4(%rbp)
jmp 0x11469
movq -0x1e8(%rbp), %rdi
movl $0x0, -0x1c(%rbp)
movl 0x170(%rdi), %esi
callq 0x14e30
movq -0x1e8(%rbp), %rdi
movq %rax, -0x28(%rbp)
cmpl $0x0, 0x170(%rdi)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %esi
callq 0x14e30
movq -0x1e8(%rbp), %rdi
movq %rax, -0x30(%rbp)
movq $0x0, -0x38(%rbp)
addq $0x158, %rdi            # imm = 0x158
callq 0xbce0
movl 0xc(%rax), %eax
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %edi
callq 0x6d10
testb $0x1, %al
jne 0x10b4e
jmp 0x10b5a
movl -0x3c(%rbp), %edi
callq 0x6bd0
movq %rax, -0x38(%rbp)
movq -0x1e8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq %rax, -0x1f0(%rbp)
xorl %esi, %esi
callq 0x14e50
movq -0x1f0(%rbp), %rcx
movq %rax, %rdx
movq -0x1e8(%rbp), %rax
andq %rdx, %rcx
movq %rcx, -0x48(%rbp)
movl 0x170(%rax), %esi
movl $0xff00, %ecx           # imm = 0xFF00
movabsq $0xff000000000000, %rdx # imm = 0xFF000000000000
cmpl $0x0, %esi
cmoveq %rdx, %rcx
movq %rcx, -0x50(%rbp)
movl 0x170(%rax), %esi
movl $0xfffffff8, %ecx       # imm = 0xFFFFFFF8
movl $0x8, %edx
cmpl $0x0, %esi
cmovel %edx, %ecx
movl %ecx, -0x54(%rbp)
movl 0x170(%rax), %esi
movl $0xfffffff7, %ecx       # imm = 0xFFFFFFF7
movl $0x7, %edx
cmpl $0x0, %esi
cmovel %edx, %ecx
movl %ecx, -0x58(%rbp)
movl 0x170(%rax), %edx
movl $0xfffffff9, %eax       # imm = 0xFFFFFFF9
movl $0x9, %ecx
cmpl $0x0, %edx
cmovel %ecx, %eax
movl %eax, -0x5c(%rbp)
movq -0x48(%rbp), %rax
andq -0x50(%rbp), %rax
movq %rax, -0x68(%rbp)
movabsq $-0x101010101010102, %rdi # imm = 0xFEFEFEFEFEFEFEFE
andq -0x68(%rbp), %rdi
movl -0x58(%rbp), %esi
callq 0x6ca0
andq -0x30(%rbp), %rax
movq %rax, -0x70(%rbp)
cmpq $0x0, -0x70(%rbp)
je 0x10cbf
leaq -0x70(%rbp), %rdi
callq 0x8f70
movl %eax, -0x74(%rbp)
movl -0x74(%rbp), %esi
subl -0x58(%rbp), %esi
movl -0x74(%rbp), %edx
leaq -0x80(%rbp), %rdi
movl $0x4, %ecx
callq 0xa8a0
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x1c(%rbp)
movslq %ecx, %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq -0x80(%rbp), %rcx
movq %rcx, (%rax)
movl -0x78(%rbp), %ecx
movl %ecx, 0x8(%rax)
movl -0x74(%rbp), %esi
subl -0x58(%rbp), %esi
movl -0x74(%rbp), %edx
leaq -0x8c(%rbp), %rdi
movl $0x2, %ecx
callq 0xa8a0
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x1c(%rbp)
movslq %ecx, %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq -0x8c(%rbp), %rcx
movq %rcx, (%rax)
movl -0x84(%rbp), %ecx
movl %ecx, 0x8(%rax)
jmp 0x10c20
movabsq $0x7f7f7f7f7f7f7f7f, %rdi # imm = 0x7F7F7F7F7F7F7F7F
andq -0x68(%rbp), %rdi
movl -0x5c(%rbp), %esi
callq 0x6ca0
andq -0x30(%rbp), %rax
movq %rax, -0x98(%rbp)
cmpq $0x0, -0x98(%rbp)
je 0x10d9d
leaq -0x98(%rbp), %rdi
callq 0x8f70
movl %eax, -0x9c(%rbp)
movl -0x9c(%rbp), %esi
subl -0x5c(%rbp), %esi
movl -0x9c(%rbp), %edx
leaq -0xa8(%rbp), %rdi
movl $0x4, %ecx
callq 0xa8a0
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x1c(%rbp)
movslq %ecx, %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq -0xa8(%rbp), %rcx
movq %rcx, (%rax)
movl -0xa0(%rbp), %ecx
movl %ecx, 0x8(%rax)
movl -0x9c(%rbp), %esi
subl -0x5c(%rbp), %esi
movl -0x9c(%rbp), %edx
leaq -0xb4(%rbp), %rdi
movl $0x2, %ecx
callq 0xa8a0
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x1c(%rbp)
movslq %ecx, %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq -0xb4(%rbp), %rcx
movq %rcx, (%rax)
movl -0xac(%rbp), %ecx
movl %ecx, 0x8(%rax)
jmp 0x10ce0
movq -0x68(%rbp), %rdi
movl -0x54(%rbp), %esi
callq 0x6ca0
movq -0x1e8(%rbp), %rdi
movq %rax, -0x1f8(%rbp)
callq 0x14e70
movq %rax, %rcx
movq -0x1f8(%rbp), %rax
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0xc0(%rbp)
cmpq $0x0, -0xc0(%rbp)
je 0x10e91
leaq -0xc0(%rbp), %rdi
callq 0x8f70
movl %eax, -0xc4(%rbp)
movl -0xc4(%rbp), %esi
subl -0x54(%rbp), %esi
movl -0xc4(%rbp), %edx
leaq -0xd0(%rbp), %rdi
movl $0x4, %ecx
callq 0xa8a0
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x1c(%rbp)
movslq %ecx, %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq -0xd0(%rbp), %rcx
movq %rcx, (%rax)
movl -0xc8(%rbp), %ecx
movl %ecx, 0x8(%rax)
movl -0xc4(%rbp), %esi
subl -0x54(%rbp), %esi
movl -0xc4(%rbp), %edx
leaq -0xdc(%rbp), %rdi
movl $0x2, %ecx
callq 0xa8a0
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x1c(%rbp)
movslq %ecx, %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq -0xdc(%rbp), %rcx
movq %rcx, (%rax)
movl -0xd4(%rbp), %ecx
movl %ecx, 0x8(%rax)
jmp 0x10dd4
movq -0x48(%rbp), %rax
movq -0x68(%rbp), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0xe8(%rbp)
movabsq $-0x101010101010102, %rdi # imm = 0xFEFEFEFEFEFEFEFE
andq -0xe8(%rbp), %rdi
movl -0x58(%rbp), %esi
callq 0x6ca0
movq -0x30(%rbp), %rcx
orq -0x38(%rbp), %rcx
andq %rcx, %rax
movq %rax, -0xf0(%rbp)
cmpq $0x0, -0xf0(%rbp)
je 0x10f3c
leaq -0xf0(%rbp), %rdi
callq 0x8f70
movl %eax, -0xf4(%rbp)
movl -0xf4(%rbp), %esi
subl -0x58(%rbp), %esi
movl -0xf4(%rbp), %edx
leaq -0x100(%rbp), %rdi
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0xa8a0
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x1c(%rbp)
movslq %ecx, %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq -0x100(%rbp), %rcx
movq %rcx, (%rax)
movl -0xf8(%rbp), %ecx
movl %ecx, 0x8(%rax)
jmp 0x10ed2
movabsq $0x7f7f7f7f7f7f7f7f, %rdi # imm = 0x7F7F7F7F7F7F7F7F
andq -0xe8(%rbp), %rdi
movl -0x5c(%rbp), %esi
callq 0x6ca0
movq -0x30(%rbp), %rcx
orq -0x38(%rbp), %rcx
andq %rcx, %rax
movq %rax, -0x108(%rbp)
cmpq $0x0, -0x108(%rbp)
je 0x10fd1
leaq -0x108(%rbp), %rdi
callq 0x8f70
movl %eax, -0x10c(%rbp)
movl -0x10c(%rbp), %esi
subl -0x5c(%rbp), %esi
movl -0x10c(%rbp), %edx
leaq -0x118(%rbp), %rdi
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0xa8a0
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x1c(%rbp)
movslq %ecx, %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq -0x118(%rbp), %rcx
movq %rcx, (%rax)
movl -0x110(%rbp), %ecx
movl %ecx, 0x8(%rax)
jmp 0x10f67
movq -0x1e8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq %rax, -0x200(%rbp)
movl $0x4, %esi
callq 0x14e50
movq %rax, %rcx
movq -0x200(%rbp), %rax
andq %rcx, %rax
movq %rax, -0x120(%rbp)
cmpq $0x0, -0x120(%rbp)
je 0x110be
leaq -0x120(%rbp), %rdi
callq 0x8f70
movq -0x1e8(%rbp), %rdi
movl %eax, -0x124(%rbp)
movl -0x124(%rbp), %eax
movl %eax, -0x204(%rbp)
callq 0x14e70
movl -0x204(%rbp), %edi
movq %rax, %rsi
callq 0x14e90
andq -0x30(%rbp), %rax
movq %rax, -0x130(%rbp)
cmpq $0x0, -0x130(%rbp)
je 0x110b9
leaq -0x130(%rbp), %rdi
callq 0x8f70
movl %eax, -0x134(%rbp)
movl -0x124(%rbp), %esi
movl -0x134(%rbp), %edx
leaq -0x140(%rbp), %rdi
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0xa8a0
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x1c(%rbp)
movslq %ecx, %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq -0x140(%rbp), %rcx
movq %rcx, (%rax)
movl -0x138(%rbp), %ecx
movl %ecx, 0x8(%rax)
jmp 0x11052
jmp 0x11001
movq -0x1e8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq %rax, -0x210(%rbp)
movl $0x3, %esi
callq 0x14e50
movq %rax, %rcx
movq -0x210(%rbp), %rax
andq %rcx, %rax
movq %rax, -0x148(%rbp)
cmpq $0x0, -0x148(%rbp)
je 0x111ab
leaq -0x148(%rbp), %rdi
callq 0x8f70
movq -0x1e8(%rbp), %rdi
movl %eax, -0x14c(%rbp)
movl -0x14c(%rbp), %eax
movl %eax, -0x214(%rbp)
callq 0x14e70
movl -0x214(%rbp), %edi
movq %rax, %rsi
callq 0x8eb0
andq -0x30(%rbp), %rax
movq %rax, -0x158(%rbp)
cmpq $0x0, -0x158(%rbp)
je 0x111a6
leaq -0x158(%rbp), %rdi
callq 0x8f70
movl %eax, -0x15c(%rbp)
movl -0x14c(%rbp), %esi
movl -0x15c(%rbp), %edx
leaq -0x168(%rbp), %rdi
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0xa8a0
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x1c(%rbp)
movslq %ecx, %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq -0x168(%rbp), %rcx
movq %rcx, (%rax)
movl -0x160(%rbp), %ecx
movl %ecx, 0x8(%rax)
jmp 0x1113f
jmp 0x110ee
movq -0x1e8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq %rax, -0x220(%rbp)
movl $0x2, %esi
callq 0x14e50
movq %rax, %rcx
movq -0x220(%rbp), %rax
andq %rcx, %rax
movq %rax, -0x170(%rbp)
cmpq $0x0, -0x170(%rbp)
je 0x1127d
leaq -0x170(%rbp), %rdi
callq 0x8f70
movl %eax, -0x174(%rbp)
movl -0x174(%rbp), %edi
callq 0x8df0
andq -0x30(%rbp), %rax
movq %rax, -0x180(%rbp)
cmpq $0x0, -0x180(%rbp)
je 0x11278
leaq -0x180(%rbp), %rdi
callq 0x8f70
movl %eax, -0x184(%rbp)
movl -0x174(%rbp), %esi
movl -0x184(%rbp), %edx
leaq -0x190(%rbp), %rdi
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0xa8a0
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x1c(%rbp)
movslq %ecx, %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq -0x190(%rbp), %rcx
movq %rcx, (%rax)
movl -0x188(%rbp), %ecx
movl %ecx, 0x8(%rax)
jmp 0x11211
jmp 0x111db
movq -0x1e8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq %rax, -0x228(%rbp)
movl $0x1, %esi
callq 0x14e50
movq %rax, %rcx
movq -0x228(%rbp), %rax
andq %rcx, %rax
movq %rax, -0x198(%rbp)
cmpq $0x0, -0x198(%rbp)
je 0x1136a
leaq -0x198(%rbp), %rdi
callq 0x8f70
movq -0x1e8(%rbp), %rdi
movl %eax, -0x19c(%rbp)
movl -0x19c(%rbp), %eax
movl %eax, -0x22c(%rbp)
callq 0x14e70
movl -0x22c(%rbp), %edi
movq %rax, %rsi
callq 0x8e10
andq -0x30(%rbp), %rax
movq %rax, -0x1a8(%rbp)
cmpq $0x0, -0x1a8(%rbp)
je 0x11365
leaq -0x1a8(%rbp), %rdi
callq 0x8f70
movl %eax, -0x1ac(%rbp)
movl -0x19c(%rbp), %esi
movl -0x1ac(%rbp), %edx
leaq -0x1b8(%rbp), %rdi
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0xa8a0
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x1c(%rbp)
movslq %ecx, %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq -0x1b8(%rbp), %rcx
movq %rcx, (%rax)
movl -0x1b0(%rbp), %ecx
movl %ecx, 0x8(%rax)
jmp 0x112fe
jmp 0x112ad
movq -0x1e8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq %rax, -0x238(%rbp)
movl $0x5, %esi
callq 0x14e50
movq %rax, %rcx
movq -0x238(%rbp), %rax
andq %rcx, %rax
movq %rax, -0x1c0(%rbp)
cmpq $0x0, -0x1c0(%rbp)
je 0x1143c
leaq -0x1c0(%rbp), %rdi
callq 0x8f70
movl %eax, -0x1c4(%rbp)
movl -0x1c4(%rbp), %edi
callq 0x8f50
andq -0x30(%rbp), %rax
movq %rax, -0x1d0(%rbp)
cmpq $0x0, -0x1d0(%rbp)
je 0x11437
leaq -0x1d0(%rbp), %rdi
callq 0x8f70
movl %eax, -0x1d4(%rbp)
movl -0x1c4(%rbp), %esi
movl -0x1d4(%rbp), %edx
leaq -0x1e0(%rbp), %rdi
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0xa8a0
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x1c(%rbp)
movslq %ecx, %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq -0x1e0(%rbp), %rcx
movq %rcx, (%rax)
movl -0x1d8(%rbp), %ecx
movl %ecx, 0x8(%rax)
jmp 0x113d0
jmp 0x1139a
cmpl $0x64, -0x1c(%rbp)
jg 0x11444
jmp 0x11463
leaq 0x16508(%rip), %rdi     # 0x27953
leaq 0x16373(%rip), %rsi     # 0x277c5
movl $0x3fa, %edx            # imm = 0x3FA
leaq 0x165c0(%rip), %rcx     # 0x27a1e
callq 0x5290
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x240, %rsp            # imm = 0x240
popq %rbp
retq
nopw %cs:(%rax,%rax)