// File: /workspace/github_c_makefile_star2_O1/Oric4ever[P]lcc65/6502/build/../src/profio.c
// Function: process
int process(file) char *file; {
	int more;

#ifdef BPRINT
	if ((fp = fopen(file, "r"))) {
		while ((more = gather()) > 0)
			;
		fclose(fp);
		return more < 0 ? more : 1;
	}
#else
	int fd;
	struct file *p;

	if ((fd = open(file, 0)) >= 0) {
		inputInit(fd);
		while ((more = gather()) > 0)
			;
		close(fd);
		if (more < 0)
			return more;
		for (p = filelist; p; p = p->link)
			qsort(p->counts, p->count, sizeof *p->counts,
				(dclproto(int (*),(const void *, const void *)))
				compare);

		return 1;
	}
#endif
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
xorl %ebx, %ebx
xorl %esi, %esi
xorl %eax, %eax
callq 0x3160
testl %eax, %eax
js 0x1244f
movl %eax, 0x8(%rsp)
movl %eax, %edi
callq 0xdbb4
leaq 0x1ae2b(%rip), %r12     # 0x2ccf0
leaq 0x178a4(%rip), %r13     # 0x29770
callq 0x124cd
testl %eax, %eax
js 0x123b3
cmpl $0x3f, %eax
ja 0x12463
testl %eax, %eax
je 0x11f70
movl %eax, %r14d
xorl %r15d, %r15d
callq 0x12586
movq %rax, 0x10(%rsp,%r15,8)
testq %rax, %rax
je 0x123bb
movq %rax, %rbx
movq %r12, %rax
movq (%rax), %rax
testq %rax, %rax
je 0x11f19
cmpq %rbx, 0x8(%rax)
jne 0x11f09
jmp 0x11f68
movq (%r13), %rcx
movl $0x28, (%rcx)
movq 0x8(%rcx), %rax
leaq 0x28(%rax), %rdx
cmpq 0x10(%rcx), %rdx
jae 0x11f37
movq %rdx, 0x8(%rcx)
jmp 0x11f44
movl $0x28, %edi
movq %r13, %rsi
callq 0x17978
movq %rbx, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
movq 0x1ad92(%rip), %rcx     # 0x2ccf0
movq %rcx, (%rax)
movq %rax, 0x1ad88(%rip)     # 0x2ccf0
incq %r15
cmpq %r14, %r15
jne 0x11ef0
callq 0x124cd
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movb $0x1, %cl
movl %eax, 0xc(%rsp)
testl %eax, %eax
js 0x123c2
je 0x121d9
xorl %ebp, %ebp
callq 0x12586
testq %rax, %rax
je 0x123c6
movq %rax, %r14
callq 0x124cd
testl %eax, %eax
jle 0x123c6
movl %eax, %r15d
callq 0x124cd
testl %eax, %eax
js 0x123c6
movl %eax, %ebx
movl %ebp, (%rsp)
callq 0x124cd
testl %eax, %eax
js 0x123ca
movl %eax, %ebp
callq 0x124cd
movl %eax, 0x4(%rsp)
testl %eax, %eax
js 0x123ca
decl %r15d
movq 0x10(%rsp,%r15,8), %rax
movq %r12, %r15
movq (%r15), %r15
testq %r15, %r15
je 0x11ffe
cmpq %rax, 0x8(%r15)
jne 0x11fee
jmp 0x12001
xorl %r15d, %r15d
testq %r15, %r15
je 0x12482
addq $0x20, %r15
movq %r15, %r13
movq (%r13), %r13
testq %r13, %r13
je 0x12022
cmpq %r14, 0x8(%r13)
jne 0x12011
jmp 0x12093
leaq 0x17747(%rip), %rsi     # 0x29770
movq (%rsi), %rax
movl $0x28, (%rax)
movq 0x8(%rax), %r13
leaq 0x28(%r13), %rcx
cmpq 0x10(%rax), %rcx
jae 0x12046
movq %rcx, 0x8(%rax)
jmp 0x12053
movl $0x28, %edi
callq 0x17978
movq %rax, %r13
movq %r14, 0x8(%r13)
movl %ebx, 0x10(%r13)
movl %ebp, 0x14(%r13)
movl $0x0, 0x18(%r13)
movq $0x0, 0x20(%r13)
movq %r15, %rax
movq (%r15), %r15
testq %r15, %r15
je 0x1208c
movl %ebp, %ecx
subl 0x14(%r15), %ecx
jne 0x12088
movl %ebx, %ecx
subl 0x10(%r15), %ecx
testl %ecx, %ecx
jg 0x1206f
movq %r15, (%r13)
movq %r13, (%rax)
movl 0x4(%rsp), %eax
addl %eax, 0x18(%r13)
callq 0x12586
testq %rax, %rax
je 0x123ca
movq %rax, %rbx
callq 0x12586
testq %rax, %rax
je 0x123ca
movq %rax, %rbp
callq 0x124cd
testl %eax, %eax
js 0x123ce
movl %eax, %r12d
callq 0x124cd
testl %eax, %eax
js 0x123ce
movl %eax, %r15d
cmpb $0x3f, (%rbx)
movl (%rsp), %eax
je 0x121bd
movq 0x20(%r13), %r14
testq %r14, %r14
je 0x12113
cmpq %rbx, 0x8(%r14)
jne 0x1210e
cmpq %rbp, 0x10(%r14)
jne 0x1210e
cmpl %r12d, 0x18(%r14)
jne 0x1210e
cmpl %r15d, 0x1c(%r14)
je 0x121b2
movq (%r14), %r14
jmp 0x120ed
leaq 0x17656(%rip), %rsi     # 0x29770
movq (%rsi), %rax
movl $0x28, (%rax)
movq 0x8(%rax), %r14
leaq 0x28(%r14), %rcx
cmpq 0x10(%rax), %rcx
jae 0x12137
movq %rcx, 0x8(%rax)
jmp 0x12144
movl $0x28, %edi
callq 0x17978
movq %rax, %r14
addq $0x20, %r13
movq %rbx, 0x8(%r14)
movq %rbp, 0x10(%r14)
movl %r12d, 0x18(%r14)
movl %r15d, 0x1c(%r14)
movl $0x0, 0x20(%r14)
movq (%r13), %rax
testq %rax, %rax
je 0x121a3
movq %r13, %r12
movq %rax, %r13
movq 0x8(%rax), %rsi
movq %rbx, %rdi
callq 0x3110
testl %eax, %eax
jg 0x12195
movq 0x10(%r13), %rsi
movq %rbp, %rdi
callq 0x3110
testl %eax, %eax
jg 0x12195
cmpl %r15d, 0x1c(%r13)
jge 0x121a8
movq (%r13), %rax
movq %r13, %r12
testq %rax, %rax
jne 0x12169
jmp 0x121ab
movq %r13, %r12
jmp 0x121ab
movq %r13, %rax
movq %rax, (%r14)
movq %r14, (%r12)
movl 0x4(%rsp), %eax
addl %eax, 0x20(%r14)
movl (%rsp), %eax
incl %eax
cmpl 0xc(%rsp), %eax
leaq 0x1ab26(%rip), %r12     # 0x2ccf0
leaq 0x1759f(%rip), %r13     # 0x29770
movl %eax, %ebp
jne 0x11f90
callq 0x124cd
testl %eax, %eax
js 0x123c6
je 0x123ef
movl %eax, %r14d
xorl %ebp, %ebp
callq 0x124cd
movb $0x1, %cl
testl %eax, %eax
js 0x123fa
movl %eax, %ebx
callq 0x124cd
testl %eax, %eax
js 0x123ca
movl %eax, %r15d
callq 0x124cd
testl %eax, %eax
js 0x123ce
movl %eax, %r12d
callq 0x124cd
testl %eax, %eax
js 0x123ce
testl %ebx, %ebx
je 0x1238e
movl %eax, %r13d
decl %ebx
movq 0x10(%rsp,%rbx,8), %rax
leaq 0x1aaa8(%rip), %rbx     # 0x2ccf0
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x12258
cmpq %rax, 0x8(%rbx)
jne 0x12248
jmp 0x1225a
xorl %ebx, %ebx
testq %rbx, %rbx
je 0x124a1
movslq 0x10(%rbx), %rax
cmpq %rax, %rbp
jl 0x12362
testl %eax, %eax
je 0x122aa
leal (,%rbp,2), %eax
movl %eax, 0x10(%rbx)
leal (,%rbp,8), %eax
leal (%rax,%rax,2), %edi
leaq 0x174e1(%rip), %rsi     # 0x29770
movq (%rsi), %rcx
movl %edi, (%rcx)
movq 0x8(%rcx), %rax
movslq %edi, %rdx
addq %rax, %rdx
cmpq 0x10(%rcx), %rdx
jae 0x122eb
movq %rdx, 0x8(%rcx)
jmp 0x122f0
leal (,%rbp,2), %eax
cmpq $0xc8, %rbp
movl $0xc8, %ecx
cmovbl %ecx, %eax
movl %eax, 0x10(%rbx)
shll $0x2, %eax
leal (%rax,%rax,2), %edi
leaq 0x174a0(%rip), %rsi     # 0x29770
movq (%rsi), %rcx
movl %edi, (%rcx)
movq 0x8(%rcx), %rax
movslq %edi, %rdx
addq %rax, %rdx
cmpq 0x10(%rcx), %rdx
jae 0x12320
movq %rdx, 0x8(%rcx)
jmp 0x12325
callq 0x17978
cmpl $0x0, 0x14(%rbx)
jle 0x12325
xorl %ecx, %ecx
xorl %edx, %edx
movq 0x18(%rbx), %rsi
movl 0x8(%rsi,%rcx), %edi
movl %edi, 0x8(%rax,%rcx)
movq (%rsi,%rcx), %rsi
movq %rsi, (%rax,%rcx)
incq %rdx
movslq 0x14(%rbx), %rsi
addq $0xc, %rcx
cmpq %rsi, %rdx
jl 0x122fa
jmp 0x12325
callq 0x17978
movq %rax, 0x18(%rbx)
movslq 0x14(%rbx), %rax
cmpl 0x10(%rbx), %eax
jge 0x12362
leaq (,%rax,4), %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x18(%rbx), %rdx
movl $0x0, 0x8(%rdx,%rcx)
movq $0x0, (%rdx,%rcx)
incq %rax
movslq 0x10(%rbx), %rdx
addq $0xc, %rcx
cmpq %rdx, %rax
jl 0x1233e
movq 0x18(%rbx), %rax
leaq (,%rbp,2), %rcx
addq %rbp, %rcx
movl %r15d, (%rax,%rcx,4)
movl %r12d, 0x4(%rax,%rcx,4)
addl %r13d, 0x8(%rax,%rcx,4)
movslq 0x14(%rbx), %rax
cmpq %rax, %rbp
jl 0x1238e
leal 0x1(%rbp), %eax
movl %eax, 0x14(%rbx)
incq %rbp
movb $0x1, %al
xorl %ecx, %ecx
cmpq %r14, %rbp
leaq 0x1a951(%rip), %r12     # 0x2ccf0
jne 0x121f1
movl $0x1, %ebx
leaq 0x173bf(%rip), %r13     # 0x29770
jmp 0x123e5
xorl %eax, %eax
xorl %ecx, %ecx
xorl %ebx, %ebx
jmp 0x123e5
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movb $0x1, %cl
xorl %eax, %eax
jmp 0x123e5
xorl %eax, %eax
jmp 0x123de
xorl %eax, %eax
jmp 0x123d7
xorl %eax, %eax
leaq 0x1a919(%rip), %r12     # 0x2ccf0
leaq 0x17392(%rip), %r13     # 0x29770
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movb $0x1, %cl
testb %al, %al
jne 0x11ecc
jmp 0x1240a
movb $0x1, %al
xorl %ecx, %ecx
movl $0x1, %ebx
jmp 0x123e5
xorl %eax, %eax
leaq 0x1736d(%rip), %r13     # 0x29770
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x123e5
movl 0x8(%rsp), %edi
movl %ecx, %ebp
callq 0x30f0
testb %bpl, %bpl
jne 0x1244f
movq 0x1a8cf(%rip), %r14     # 0x2ccf0
testq %r14, %r14
je 0x1244a
leaq 0x93(%rip), %rbx        # 0x124c0
movq 0x18(%r14), %rdi
movl 0x14(%r14), %esi
movl $0xc, %edx
movq %rbx, %rcx
callq 0x3070
movq (%r14), %r14
testq %r14, %r14
jne 0x1242d
movl $0x1, %ebx
movl %ebx, %eax
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xdcd6(%rip), %rdi      # 0x20140
leaq 0xdcf5(%rip), %rsi      # 0x20166
leaq 0xdcfe(%rip), %rcx      # 0x20176
movl $0xcb, %edx
callq 0x30d0
leaq 0xbe59(%rip), %rdi      # 0x1e2e2
leaq 0xdcd6(%rip), %rsi      # 0x20166
leaq 0xdcec(%rip), %rcx      # 0x20183
movl $0x5c, %edx
callq 0x30d0
leaq 0xbe3a(%rip), %rdi      # 0x1e2e2
leaq 0xdcb7(%rip), %rsi      # 0x20166
leaq 0xdce6(%rip), %rcx      # 0x2019c
movl $0x74, %edx
callq 0x30d0