// File: /workspace/github_c_makefile_star2_O3/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 0x12263
movl %eax, %ebp
movl %eax, %edi
callq 0xdb7c
callq 0x122e1
testl %eax, %eax
js 0x12218
movl %ebp, (%rsp)
cmpl $0x3f, %eax
ja 0x122b5
testl %eax, %eax
je 0x11df0
movl %eax, %r14d
xorl %r15d, %r15d
callq 0x1238d
movq %rax, 0x10(%rsp,%r15,8)
testq %rax, %rax
je 0x12256
movq %rax, %rbx
leaq 0x1bf6e(%rip), %rax     # 0x2dcf0
movq (%rax), %rax
testq %rax, %rax
je 0x11d92
cmpq %rbx, 0x8(%rax)
jne 0x11d82
jmp 0x11de4
leaq 0x189d7(%rip), %rsi     # 0x2a770
movq (%rsi), %rcx
movl $0x28, (%rcx)
movq 0x8(%rcx), %rax
leaq 0x28(%rax), %rdx
cmpq 0x10(%rcx), %rdx
jae 0x11db6
movq %rdx, 0x8(%rcx)
jmp 0x11dc0
movl $0x28, %edi
callq 0x17800
movq %rbx, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
movq 0x1bf16(%rip), %rcx     # 0x2dcf0
movq %rcx, (%rax)
movq %rax, 0x1bf0c(%rip)     # 0x2dcf0
incq %r15
cmpq %r14, %r15
jne 0x11d65
callq 0x122e1
movl %eax, 0xc(%rsp)
testl %eax, %eax
js 0x12256
je 0x12050
xorl %eax, %eax
movl %eax, 0x8(%rsp)
callq 0x1238d
testq %rax, %rax
je 0x12256
movq %rax, %r14
callq 0x122e1
testl %eax, %eax
jle 0x12256
movl %eax, %r15d
callq 0x122e1
testl %eax, %eax
js 0x12256
movl %eax, %ebx
callq 0x122e1
testl %eax, %eax
js 0x12256
movl %eax, %ebp
callq 0x122e1
movl %eax, 0x4(%rsp)
testl %eax, %eax
js 0x12256
decl %r15d
movq 0x10(%rsp,%r15,8), %rax
leaq 0x1be84(%rip), %r15     # 0x2dcf0
movq (%r15), %r15
testq %r15, %r15
je 0x12277
cmpq %rax, 0x8(%r15)
jne 0x11e6c
addq $0x20, %r15
movq %r15, %r12
movq (%r12), %r12
testq %r12, %r12
je 0x11e9c
cmpq %r14, 0x8(%r12)
jne 0x11e85
movl 0x18(%r12), %eax
jmp 0x11f15
leaq 0x188cd(%rip), %rsi     # 0x2a770
movq (%rsi), %rax
movl $0x28, (%rax)
movq 0x8(%rax), %r12
leaq 0x28(%r12), %rcx
cmpq 0x10(%rax), %rcx
jae 0x11ec1
movq %rcx, 0x8(%rax)
jmp 0x11ece
movl $0x28, %edi
callq 0x17800
movq %rax, %r12
movq %r14, 0x8(%r12)
movl %ebx, 0x10(%r12)
movl %ebp, 0x14(%r12)
movl $0x0, 0x18(%r12)
movq $0x0, 0x20(%r12)
movq %r15, %rax
movq (%r15), %r15
testq %r15, %r15
je 0x11f0c
movl %ebp, %ecx
subl 0x14(%r15), %ecx
jne 0x11f08
movl %ebx, %ecx
subl 0x10(%r15), %ecx
testl %ecx, %ecx
jg 0x11eef
movq %r15, (%r12)
movq %r12, (%rax)
xorl %eax, %eax
addl 0x4(%rsp), %eax
movl %eax, 0x18(%r12)
callq 0x1238d
testq %rax, %rax
je 0x12256
movq %rax, %r13
callq 0x1238d
testq %rax, %rax
je 0x12256
movq %rax, %r14
callq 0x122e1
testl %eax, %eax
js 0x12256
movl %eax, %r15d
callq 0x122e1
testl %eax, %eax
js 0x12256
movl %eax, %ebp
cmpb $0x3f, (%r13)
movl 0x8(%rsp), %eax
je 0x1203d
movq 0x20(%r12), %rbx
testq %rbx, %rbx
je 0x11f98
cmpq %r13, 0x8(%rbx)
jne 0x11f93
cmpq %r14, 0x10(%rbx)
jne 0x11f93
cmpl %r15d, 0x18(%rbx)
jne 0x11f93
cmpl %ebp, 0x1c(%rbx)
je 0x1204b
movq (%rbx), %rbx
jmp 0x11f73
leaq 0x187d1(%rip), %rsi     # 0x2a770
movq (%rsi), %rax
movl $0x28, (%rax)
movq 0x8(%rax), %rbx
leaq 0x28(%rbx), %rcx
cmpq 0x10(%rax), %rcx
jae 0x11fbc
movq %rcx, 0x8(%rax)
jmp 0x11fc9
movl $0x28, %edi
callq 0x17800
movq %rax, %rbx
addq $0x20, %r12
movq %r13, 0x8(%rbx)
movq %r14, 0x10(%rbx)
movl %r15d, 0x18(%rbx)
movl %ebp, 0x1c(%rbx)
movl $0x0, 0x20(%rbx)
movq (%r12), %rax
testq %rax, %rax
je 0x12026
movq %r12, %r15
movq %r15, %r12
movq %rax, %r15
movq 0x8(%rax), %rsi
movq %r13, %rdi
callq 0x3110
testl %eax, %eax
jg 0x1201b
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x3110
testl %eax, %eax
jg 0x1201b
cmpl %ebp, 0x1c(%r15)
jge 0x12029
movq (%r15), %rax
testq %rax, %rax
jne 0x11fef
movq %r15, %r12
xorl %r15d, %r15d
movq %r15, (%rbx)
movq %rbx, (%r12)
xorl %eax, %eax
addl 0x4(%rsp), %eax
movl %eax, 0x20(%rbx)
movl 0x8(%rsp), %eax
incl %eax
cmpl 0xc(%rsp), %eax
jne 0x11e09
jmp 0x12050
movl 0x20(%rbx), %eax
jmp 0x12032
callq 0x122e1
testl %eax, %eax
js 0x12256
je 0x12208
movl %eax, %r14d
xorl %r13d, %r13d
callq 0x122e1
testl %eax, %eax
js 0x12256
movl %eax, %ebx
callq 0x122e1
testl %eax, %eax
js 0x12256
movl %eax, %ebp
callq 0x122e1
testl %eax, %eax
js 0x12256
movl %eax, %r15d
callq 0x122e1
testl %eax, %eax
js 0x12256
testl %ebx, %ebx
je 0x121fc
movl %eax, %r12d
decl %ebx
movq 0x10(%rsp,%rbx,8), %rax
leaq 0x1bc33(%rip), %rbx     # 0x2dcf0
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x12296
cmpq %rax, 0x8(%rbx)
jne 0x120bd
movslq 0x10(%rbx), %rcx
cmpq %rcx, %r13
jl 0x121d0
leaq (,%r13,2), %rax
testl %ecx, %ecx
je 0x12118
movl %eax, 0x10(%rbx)
leal (,%r13,8), %eax
leal (%rax,%rax,2), %edi
leaq 0x18673(%rip), %rsi     # 0x2a770
movq (%rsi), %rcx
movl %edi, (%rcx)
movq 0x8(%rcx), %rax
movslq %edi, %rdx
addq %rax, %rdx
cmpq 0x10(%rcx), %rdx
jae 0x12152
movq %rdx, 0x8(%rcx)
jmp 0x12157
cmpq $0xc8, %r13
movl $0xc8, %ecx
cmovbl %ecx, %eax
movl %eax, 0x10(%rbx)
shll $0x2, %eax
leal (%rax,%rax,2), %edi
leaq 0x18639(%rip), %rsi     # 0x2a770
movq (%rsi), %rcx
movl %edi, (%rcx)
movq 0x8(%rcx), %rax
movslq %edi, %rdx
addq %rax, %rdx
cmpq 0x10(%rcx), %rdx
jae 0x1218c
movq %rdx, 0x8(%rcx)
jmp 0x12191
callq 0x17800
movl 0x14(%rbx), %ecx
testl %ecx, %ecx
jle 0x12186
xorl %edx, %edx
xorl %esi, %esi
movq 0x18(%rbx), %rcx
movl 0x8(%rcx,%rdx), %edi
movl %edi, 0x8(%rax,%rdx)
movq (%rcx,%rdx), %rcx
movq %rcx, (%rax,%rdx)
incq %rsi
movslq 0x14(%rbx), %rcx
addq $0xc, %rdx
cmpq %rcx, %rsi
jl 0x12162
movq %rax, 0x18(%rbx)
jmp 0x12198
callq 0x17800
movq %rax, 0x18(%rbx)
movl 0x14(%rbx), %ecx
cmpl 0x10(%rbx), %ecx
jge 0x121d0
movslq %ecx, %rax
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 0x121ac
movq 0x18(%rbx), %rax
leaq (,%r13,2), %rcx
addq %r13, %rcx
movl %ebp, (%rax,%rcx,4)
movl %r15d, 0x4(%rax,%rcx,4)
addl %r12d, 0x8(%rax,%rcx,4)
movslq 0x14(%rbx), %rax
cmpq %rax, %r13
jl 0x121fc
leal 0x1(%r13), %eax
movl %eax, 0x14(%rbx)
incq %r13
cmpq %r14, %r13
jne 0x12069
callq 0x122e1
testl %eax, %eax
movl (%rsp), %ebp
jns 0x11d4e
movl %ebp, %edi
callq 0x30f0
movq 0x1baca(%rip), %r15     # 0x2dcf0
movl $0x1, %ebx
testq %r15, %r15
je 0x12263
leaq 0x9d(%rip), %r14        # 0x122d4
movq 0x18(%r15), %rdi
movl 0x14(%r15), %esi
movl $0xc, %edx
movq %r14, %rcx
callq 0x3070
movq (%r15), %r15
testq %r15, %r15
jne 0x12237
jmp 0x12263
movl (%rsp), %edi
callq 0x30f0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc064(%rip), %rdi      # 0x1e2e2
leaq 0xdf61(%rip), %rsi      # 0x201e6
leaq 0xdf77(%rip), %rcx      # 0x20203
movl $0x5c, %edx
callq 0x30d0
leaq 0xc045(%rip), %rdi      # 0x1e2e2
leaq 0xdf42(%rip), %rsi      # 0x201e6
leaq 0xdf71(%rip), %rcx      # 0x2021c
movl $0x74, %edx
callq 0x30d0
leaq 0xdf04(%rip), %rdi      # 0x201c0
leaq 0xdf23(%rip), %rsi      # 0x201e6
leaq 0xdf2c(%rip), %rcx      # 0x201f6
movl $0xcb, %edx
callq 0x30d0