// File: lotuskip[P]yuxtapa/server/map.cpp
// Function: (anonymous namespace)::fill_hc_old(std::vector<Coords, std::allocator<Coords>>&, char, short)
void fill_hc_old(vector<Coords> &hc, const char num, const short size)
{
	hc[0].x = size/3 + random()%(size/3);
	hc[0].y = size/3 + random()%(size/3);
	for(char i = 1; i < num; ++i)
	{
		hc[i].x = hc[i-1].x + MAX_HS + 1 + random()%MAX_HS;
		hc[i].y = hc[i-1].y + random()%7 - 3;
		if(hc[i].x >= size - MAX_HS - 1) // wen't too far
		{
			hc[i].x = 2 + random()%10;
			hc[i].y += MAX_HS + 1 + random()%MAX_HS;
			if(hc[i].y >= size - MAX_HS - 1)
				hc[i].y = 2 + random()%10;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movw %dx, %ax
movb %sil, %cl
movq %rdi, -0x8(%rbp)
movb %cl, -0x9(%rbp)
movw %ax, -0xc(%rbp)
movswl -0xc(%rbp), %eax
movl $0x3, %ecx
cltd
idivl %ecx
cltq
movq %rax, -0x30(%rbp)
callq 0x5270
movq %rax, -0x38(%rbp)
movswl -0xc(%rbp), %eax
movl $0x3, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movq -0x38(%rbp), %rax
movslq %ecx, %rcx
cqto
idivq %rcx
movq -0x30(%rbp), %rax
addq %rdx, %rax
movw %ax, -0x22(%rbp)
movq -0x8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x2e610
movw -0x22(%rbp), %cx
movw %cx, (%rax)
movswl -0xc(%rbp), %eax
movl $0x3, %ecx
cltd
idivl %ecx
cltq
movq %rax, -0x18(%rbp)
callq 0x5270
movq %rax, -0x20(%rbp)
movswl -0xc(%rbp), %eax
movl $0x3, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
cqto
idivq %rcx
movq -0x18(%rbp), %rax
addq %rdx, %rax
movw %ax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x2e610
movw -0x10(%rbp), %cx
movw %cx, 0x2(%rax)
movb $0x1, -0xd(%rbp)
movsbl -0xd(%rbp), %eax
movsbl -0x9(%rbp), %ecx
cmpl %ecx, %eax
jge 0x2d91f
movq -0x8(%rbp), %rdi
movsbl -0xd(%rbp), %eax
subl $0x1, %eax
movslq %eax, %rsi
callq 0x2e610
movswl (%rax), %eax
addl $0xe, %eax
addl $0x1, %eax
cltq
movq %rax, -0x58(%rbp)
callq 0x5270
movl $0xe, %ecx
cqto
idivq %rcx
movq -0x58(%rbp), %rax
addq %rdx, %rax
movw %ax, -0x4a(%rbp)
movq -0x8(%rbp), %rdi
movsbq -0xd(%rbp), %rsi
callq 0x2e610
movw -0x4a(%rbp), %cx
movw %cx, (%rax)
movq -0x8(%rbp), %rdi
movsbl -0xd(%rbp), %eax
subl $0x1, %eax
movslq %eax, %rsi
callq 0x2e610
movswq 0x2(%rax), %rax
movq %rax, -0x48(%rbp)
callq 0x5270
movl $0x7, %ecx
cqto
idivq %rcx
movq -0x48(%rbp), %rax
addq %rdx, %rax
subq $0x3, %rax
movw %ax, -0x3a(%rbp)
movq -0x8(%rbp), %rdi
movsbq -0xd(%rbp), %rsi
callq 0x2e610
movw -0x3a(%rbp), %cx
movw %cx, 0x2(%rax)
movq -0x8(%rbp), %rdi
movsbq -0xd(%rbp), %rsi
callq 0x2e610
movswl (%rax), %eax
movswl -0xc(%rbp), %ecx
subl $0xe, %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jl 0x2d910
callq 0x5270
movl $0xa, %ecx
cqto
idivq %rcx
addq $0x2, %rdx
movw %dx, %ax
movw %ax, -0x62(%rbp)
movq -0x8(%rbp), %rdi
movsbq -0xd(%rbp), %rsi
callq 0x2e610
movw -0x62(%rbp), %cx
movw %cx, (%rax)
callq 0x5270
movl $0xe, %ecx
cqto
idivq %rcx
addq $0xf, %rdx
movq %rdx, -0x60(%rbp)
movq -0x8(%rbp), %rdi
movsbq -0xd(%rbp), %rsi
callq 0x2e610
movq -0x60(%rbp), %rdx
movswq 0x2(%rax), %rcx
addq %rdx, %rcx
movw %cx, 0x2(%rax)
movq -0x8(%rbp), %rdi
movsbq -0xd(%rbp), %rsi
callq 0x2e610
movswl 0x2(%rax), %eax
movswl -0xc(%rbp), %ecx
subl $0xe, %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jl 0x2d90e
callq 0x5270
movl $0xa, %ecx
cqto
idivq %rcx
addq $0x2, %rdx
movw %dx, %ax
movw %ax, -0x64(%rbp)
movq -0x8(%rbp), %rdi
movsbq -0xd(%rbp), %rsi
callq 0x2e610
movw -0x64(%rbp), %cx
movw %cx, 0x2(%rax)
jmp 0x2d910
jmp 0x2d912
movb -0xd(%rbp), %al
addb $0x1, %al
movb %al, -0xd(%rbp)
jmp 0x2d786
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)