// File: /workspace/github_c_makefile_star2_O0/Oric4ever[P]lcc65/6502/build/../src/profio.c
// Function: apoint
static void apoint(i, file, x, y, count) char *file; int i,x,y,count; {
	struct file *p = findfile(file);

	assert(p);
	if (i >= p->size) {
		int j;
		if (p->size == 0) {
			p->size = i >= 200 ? 2*i : 200;
			p->counts = (struct count *)alloc(p->size*sizeof(struct count));
		} else {
			struct count *new;
			p->size = 2*i;
			new = (struct count *)alloc(p->size*sizeof(struct count));
			for (j = 0; j < p->count; j++)
				new[j] = p->counts[j];
			p->counts = new;
		}
		for (j = p->count; j < p->size; j++) {
			static struct count z;
			p->counts[j] = z;
		}
	}
	p->counts[i].x = x;
	p->counts[i].y = y;
	p->counts[i].count += count;
	if (i >= p->count)
		p->count = i + 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl %r8d, -0x1c(%rbp)
movq -0x10(%rbp), %rdi
callq 0x1b260
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x1c01f
jmp 0x1c03e
leaq 0x131f8(%rip), %rdi     # 0x2f21e
leaq 0x15134(%rip), %rsi     # 0x31161
movl $0x74, %edx
leaq 0x15174(%rip), %rcx     # 0x311ad
callq 0x30c0
movl -0x4(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x10(%rcx), %eax
jl 0x1c2bb
movq -0x28(%rbp), %rax
cmpl $0x0, 0x10(%rax)
jne 0x1c14d
cmpl $0xc8, -0x4(%rbp)
jl 0x1c06f
movl -0x4(%rbp), %eax
shll %eax
movl %eax, -0x3c(%rbp)
jmp 0x1c079
movl $0xc8, %eax
movl %eax, -0x3c(%rbp)
jmp 0x1c079
movl -0x3c(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x28(%rbp), %rax
movslq 0x10(%rax), %rax
imulq $0xc, %rax, %rax
addq $0x7, %rax
andq $-0x8, %rax
movl %eax, %ecx
leaq 0x1f5a0(%rip), %rax     # 0x3b640
movq (%rax), %rax
movl %ecx, (%rax)
leaq 0x1f594(%rip), %rax     # 0x3b640
movq (%rax), %rax
movq 0x8(%rax), %rax
leaq 0x1f586(%rip), %rcx     # 0x3b640
movq (%rcx), %rcx
movslq (%rcx), %rcx
addq %rcx, %rax
leaq 0x1f576(%rip), %rcx     # 0x3b640
movq (%rcx), %rcx
cmpq 0x10(%rcx), %rax
jb 0x1c0f1
leaq 0x1f566(%rip), %rax     # 0x3b640
movq (%rax), %rax
movl (%rax), %edi
leaq 0x1f55a(%rip), %rsi     # 0x3b640
callq 0x253d0
movq %rax, -0x48(%rbp)
jmp 0x1c13c
leaq 0x1f548(%rip), %rax     # 0x3b640
movq (%rax), %rax
movl (%rax), %edx
leaq 0x1f53c(%rip), %rax     # 0x3b640
movq (%rax), %rax
movq 0x8(%rax), %rcx
movslq %edx, %rdx
addq %rdx, %rcx
movq %rcx, 0x8(%rax)
leaq 0x1f524(%rip), %rax     # 0x3b640
movq (%rax), %rax
movq 0x8(%rax), %rax
leaq 0x1f516(%rip), %rcx     # 0x3b640
movq (%rcx), %rcx
movslq (%rcx), %rdx
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x18(%rax)
jmp 0x1c272
movl -0x4(%rbp), %ecx
shll %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x28(%rbp), %rax
movslq 0x10(%rax), %rax
imulq $0xc, %rax, %rax
addq $0x7, %rax
andq $-0x8, %rax
movl %eax, %ecx
leaq 0x1f4ca(%rip), %rax     # 0x3b640
movq (%rax), %rax
movl %ecx, (%rax)
leaq 0x1f4be(%rip), %rax     # 0x3b640
movq (%rax), %rax
movq 0x8(%rax), %rax
leaq 0x1f4b0(%rip), %rcx     # 0x3b640
movq (%rcx), %rcx
movslq (%rcx), %rcx
addq %rcx, %rax
leaq 0x1f4a0(%rip), %rcx     # 0x3b640
movq (%rcx), %rcx
cmpq 0x10(%rcx), %rax
jb 0x1c1c7
leaq 0x1f490(%rip), %rax     # 0x3b640
movq (%rax), %rax
movl (%rax), %edi
leaq 0x1f484(%rip), %rsi     # 0x3b640
callq 0x253d0
movq %rax, -0x50(%rbp)
jmp 0x1c212
leaq 0x1f472(%rip), %rax     # 0x3b640
movq (%rax), %rax
movl (%rax), %edx
leaq 0x1f466(%rip), %rax     # 0x3b640
movq (%rax), %rax
movq 0x8(%rax), %rcx
movslq %edx, %rdx
addq %rdx, %rcx
movq %rcx, 0x8(%rax)
leaq 0x1f44e(%rip), %rax     # 0x3b640
movq (%rax), %rax
movq 0x8(%rax), %rax
leaq 0x1f440(%rip), %rcx     # 0x3b640
movq (%rcx), %rcx
movslq (%rcx), %rdx
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x38(%rbp)
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x14(%rcx), %eax
jge 0x1c266
movq -0x38(%rbp), %rax
movslq -0x2c(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq -0x28(%rbp), %rcx
movq 0x18(%rcx), %rcx
movslq -0x2c(%rbp), %rdx
imulq $0xc, %rdx, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movl 0x8(%rcx), %ecx
movl %ecx, 0x8(%rax)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x1c221
movq -0x38(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x28(%rbp), %rax
movl 0x14(%rax), %eax
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x10(%rcx), %eax
jge 0x1c2b9
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x2c(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq 0x22c26(%rip), %rcx     # 0x3eec8
movq %rcx, (%rax)
movl 0x22c25(%rip), %ecx     # 0x3eed0
movl %ecx, 0x8(%rax)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x1c27c
jmp 0x1c2bb
movl -0x14(%rbp), %ecx
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x4(%rbp), %rdx
imulq $0xc, %rdx, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movl -0x18(%rbp), %ecx
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x4(%rbp), %rdx
imulq $0xc, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x4(%rax)
movl -0x1c(%rbp), %ecx
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x4(%rbp), %rdx
imulq $0xc, %rdx, %rdx
addq %rdx, %rax
addl 0x8(%rax), %ecx
movl %ecx, 0x8(%rax)
movl -0x4(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x14(%rcx), %eax
jl 0x1c321
movl -0x4(%rbp), %ecx
addl $0x1, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x14(%rax)
addq $0x50, %rsp
popq %rbp
retq
nopw (%rax,%rax)