// File: /workspace/github_c_makefile_star2_O0/upcrob[P]garry/moves.c
// Function: sendMoveSet(int, MoveSet*)
void sendMoveSet(int receiver, MoveSet* set)
{
	//Send set size
	int i;
	int size = set->size;
	COMM_WORLD.Send(&size, 1, MPI_INT, receiver, 0);
	
	//Send move data
	for (i = 0; i < size; i++)
	{
		COMM_WORLD.Send(&set->moves[i]->pieceId, 1, MPI_CHAR, receiver, 0);
		COMM_WORLD.Send(&set->moves[i]->startRow, 1, MPI_CHAR, receiver, 0);
		COMM_WORLD.Send(&set->moves[i]->startCol, 1, MPI_CHAR, receiver, 0);
		COMM_WORLD.Send(&set->moves[i]->endRow, 1, MPI_CHAR, receiver, 0);
		COMM_WORLD.Send(&set->moves[i]->endCol, 1, MPI_CHAR, receiver, 0);
		COMM_WORLD.Send(&set->moves[i]->boardScore, 1, MPI_INT, receiver, 0);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x18(%rbp)
movq 0x7fdd(%rip), %rsi      # 0x20fd0
leaq -0x28(%rbp), %rdi
movq %rdi, -0xa0(%rbp)
callq 0x9e80
movq -0xa0(%rbp), %rcx
movl -0x4(%rbp), %r8d
movq 0x7fab(%rip), %rdi      # 0x20fc0
leaq -0x18(%rbp), %rsi
movl $0x1, %edx
xorl %r9d, %r9d
callq 0x9f20
jmp 0x19028
leaq -0x28(%rbp), %rdi
callq 0xa620
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x19358
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0xb0(%rbp)
movq 0x7f3e(%rip), %rsi      # 0x20fa0
leaq -0x48(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
callq 0x9e80
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rcx
movl -0x4(%rbp), %r8d
movq 0x7f35(%rip), %rdi      # 0x20fc0
movl $0x1, %edx
xorl %r9d, %r9d
callq 0x9f20
jmp 0x1909a
leaq -0x48(%rbp), %rdi
callq 0xa620
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
incq %rax
movq %rax, -0xc0(%rbp)
movq 0x7edc(%rip), %rsi      # 0x20fa0
leaq -0x58(%rbp), %rdi
movq %rdi, -0xb8(%rbp)
callq 0x9e80
movq -0xc0(%rbp), %rsi
movq -0xb8(%rbp), %rcx
movl -0x4(%rbp), %r8d
movq 0x7ed3(%rip), %rdi      # 0x20fc0
movl $0x1, %edx
xorl %r9d, %r9d
callq 0x9f20
jmp 0x190fc
leaq -0x58(%rbp), %rdi
callq 0xa620
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
addq $0x2, %rax
movq %rax, -0xd0(%rbp)
movq 0x7e79(%rip), %rsi      # 0x20fa0
leaq -0x68(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
callq 0x9e80
movq -0xd0(%rbp), %rsi
movq -0xc8(%rbp), %rcx
movl -0x4(%rbp), %r8d
movq 0x7e70(%rip), %rdi      # 0x20fc0
movl $0x1, %edx
xorl %r9d, %r9d
callq 0x9f20
jmp 0x1915f
leaq -0x68(%rbp), %rdi
callq 0xa620
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
addq $0x3, %rax
movq %rax, -0xe0(%rbp)
movq 0x7e16(%rip), %rsi      # 0x20fa0
leaq -0x78(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
callq 0x9e80
movq -0xe0(%rbp), %rsi
movq -0xd8(%rbp), %rcx
movl -0x4(%rbp), %r8d
movq 0x7e0d(%rip), %rdi      # 0x20fc0
movl $0x1, %edx
xorl %r9d, %r9d
callq 0x9f20
jmp 0x191c2
leaq -0x78(%rbp), %rdi
callq 0xa620
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
addq $0x4, %rax
movq %rax, -0xf0(%rbp)
movq 0x7db3(%rip), %rsi      # 0x20fa0
leaq -0x88(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
callq 0x9e80
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rcx
movl -0x4(%rbp), %r8d
movq 0x7da7(%rip), %rdi      # 0x20fc0
movl $0x1, %edx
xorl %r9d, %r9d
callq 0x9f20
jmp 0x19228
leaq -0x88(%rbp), %rdi
callq 0xa620
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
addq $0x8, %rax
movq %rax, -0x100(%rbp)
movq 0x7d7a(%rip), %rsi      # 0x20fd0
leaq -0x98(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
callq 0x9e80
movq -0x100(%rbp), %rsi
movq -0xf8(%rbp), %rcx
movl -0x4(%rbp), %r8d
movq 0x7d3e(%rip), %rdi      # 0x20fc0
movl $0x1, %edx
xorl %r9d, %r9d
callq 0x9f20
jmp 0x19291
leaq -0x98(%rbp), %rdi
callq 0xa620
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x19038
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xa620
jmp 0x19361
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x48(%rbp), %rdi
callq 0xa620
jmp 0x19361
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x58(%rbp), %rdi
callq 0xa620
jmp 0x19361
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x68(%rbp), %rdi
callq 0xa620
jmp 0x19361
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x78(%rbp), %rdi
callq 0xa620
jmp 0x19361
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x88(%rbp), %rdi
callq 0xa620
jmp 0x19361
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x98(%rbp), %rdi
callq 0xa620
jmp 0x19361
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x8a50
nopw (%rax,%rax)