// File: /workspace/github_c_makefile_star2_O2/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 $0x228, %rsp            # imm = 0x228
xorl %ebx, %ebx
xorl %esi, %esi
xorl %eax, %eax
callq 0x3160
testl %eax, %eax
js 0x110f5
movl %eax, %ebp
movl %eax, %edi
callq 0xce2c
callq 0x111a2
testl %eax, %eax
js 0x11109
cmpl $0x3f, %eax
ja 0x1115d
movl %ebp, 0xc(%rsp)
movl %eax, %r14d
xorl %r15d, %r15d
cmpq %r15, %r14
je 0x10d2c
callq 0x11247
movq %rax, 0x20(%rsp,%r15,8)
testq %rax, %rax
je 0x110e9
movq %rax, %rbx
movq %rax, %rdi
callq 0x10c00
testq %rax, %rax
jne 0x10d27
leaq 0x18a8f(%rip), %rsi     # 0x29770
movq (%rsi), %rcx
movl $0x28, (%rcx)
movq 0x8(%rcx), %rax
leaq 0x28(%rax), %rdx
cmpq 0x10(%rcx), %rdx
jae 0x10cfe
movq %rdx, 0x8(%rcx)
jmp 0x10d06
pushq $0x28
popq %rdi
callq 0x16438
movq %rbx, 0x8(%rax)
andq $0x0, 0x20(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq 0x1bfd3(%rip), %rcx     # 0x2ccf0
movq %rcx, (%rax)
movq %rax, 0x1bfc9(%rip)     # 0x2ccf0
incq %r15
jmp 0x10cb2
callq 0x111a2
testl %eax, %eax
js 0x110e9
movl %eax, %r13d
xorl %eax, %eax
movl %r13d, 0x18(%rsp)
cmpl %r13d, %eax
je 0x10f5a
movl %eax, 0x1c(%rsp)
callq 0x11247
testq %rax, %rax
je 0x110e9
movq %rax, %r14
callq 0x111a2
testl %eax, %eax
jle 0x110e9
movl %eax, %r15d
callq 0x111a2
testl %eax, %eax
js 0x110e9
movl %eax, %ebx
callq 0x111a2
testl %eax, %eax
js 0x110e9
movl %eax, %ebp
callq 0x111a2
movl %eax, 0x10(%rsp)
testl %eax, %eax
js 0x110e9
decl %r15d
movq 0x20(%rsp,%r15,8), %rdi
callq 0x10c00
testq %rax, %rax
je 0x11140
movq %rax, %r12
addq $0x20, %r12
movq %r12, %r15
movq (%r15), %r15
testq %r15, %r15
je 0x10dd4
cmpq %r14, 0x8(%r15)
jne 0x10dc0
movl 0x18(%r15), %eax
jmp 0x10e41
leaq 0x18995(%rip), %rsi     # 0x29770
movq (%rsi), %rax
movl $0x28, (%rax)
movq 0x8(%rax), %r15
leaq 0x28(%r15), %rcx
cmpq 0x10(%rax), %rcx
jae 0x10df8
movq %rcx, 0x8(%rax)
jmp 0x10e03
pushq $0x28
popq %rdi
callq 0x16438
movq %rax, %r15
movq %r14, 0x8(%r15)
movl %ebx, 0x10(%r15)
movl %ebp, 0x14(%r15)
andl $0x0, 0x18(%r15)
andq $0x0, 0x20(%r15)
movq %r12, %rax
movq (%r12), %r12
testq %r12, %r12
je 0x10e39
movl %ebp, %ecx
subl 0x14(%r12), %ecx
jne 0x10e35
movl %ebx, %ecx
subl 0x10(%r12), %ecx
testl %ecx, %ecx
jg 0x10e19
movq %r12, (%r15)
movq %r15, (%rax)
xorl %eax, %eax
addl 0x10(%rsp), %eax
movl %eax, 0x18(%r15)
callq 0x11247
testq %rax, %rax
je 0x110e9
movq %rax, %rbp
callq 0x11247
testq %rax, %rax
je 0x110e9
movq %rax, %rbx
callq 0x111a2
testl %eax, %eax
js 0x110e9
movl %eax, %r12d
callq 0x111a2
testl %eax, %eax
js 0x110e9
cmpb $0x3f, (%rbp)
je 0x10f4f
movl %eax, %r14d
addq $0x20, %r15
movq %r15, %r13
movq (%r13), %r13
testq %r13, %r13
je 0x10ec3
cmpq %rbp, 0x8(%r13)
jne 0x10e9c
cmpq %rbx, 0x10(%r13)
jne 0x10e9c
cmpl %r12d, 0x18(%r13)
jne 0x10e9c
cmpl %r14d, 0x1c(%r13)
jne 0x10e9c
movl 0x20(%r13), %eax
jmp 0x10f42
leaq 0x188a6(%rip), %rsi     # 0x29770
movq (%rsi), %rax
movl $0x28, (%rax)
movq 0x8(%rax), %r13
leaq 0x28(%r13), %rcx
cmpq 0x10(%rax), %rcx
jae 0x10ee7
movq %rcx, 0x8(%rax)
jmp 0x10ef2
pushq $0x28
popq %rdi
callq 0x16438
movq %rax, %r13
movq %rbp, 0x8(%r13)
movq %rbx, 0x10(%r13)
movl %r12d, 0x18(%r13)
movl %r14d, 0x1c(%r13)
andl $0x0, 0x20(%r13)
movq %r15, %r12
movq (%r15), %r15
testq %r15, %r15
je 0x10f38
movq 0x8(%r15), %rsi
movq %rbp, %rdi
callq 0x3110
testl %eax, %eax
jg 0x10f07
movq 0x10(%r15), %rsi
movq %rbx, %rdi
callq 0x3110
testl %eax, %eax
jg 0x10f07
cmpl %r14d, 0x1c(%r15)
jl 0x10f07
movq %r15, (%r13)
movq %r13, (%r12)
xorl %eax, %eax
addl 0x10(%rsp), %eax
movl %eax, 0x20(%r13)
movl 0x18(%rsp), %r13d
movl 0x1c(%rsp), %eax
incl %eax
jmp 0x10d43
callq 0x111a2
testl %eax, %eax
js 0x110e9
movl %eax, %eax
movq %rax, 0x10(%rsp)
xorl %r14d, %r14d
cmpq 0x10(%rsp), %r14
je 0x110e0
callq 0x111a2
testl %eax, %eax
js 0x110e9
movl %eax, %ebx
callq 0x111a2
testl %eax, %eax
js 0x110e9
movl %eax, %r15d
callq 0x111a2
testl %eax, %eax
js 0x110e9
movl %eax, %r12d
callq 0x111a2
testl %eax, %eax
js 0x110e9
testl %ebx, %ebx
je 0x11006
movl %eax, %r13d
decl %ebx
movq 0x20(%rsp,%rbx,8), %rdi
callq 0x10c00
testq %rax, %rax
je 0x1117c
movq %rax, %rbp
movslq 0x10(%rax), %rcx
cmpq %rcx, %r14
jge 0x1100e
movq 0x18(%rbp), %rax
imulq $0xc, %r14, %rcx
movl %r15d, (%rax,%rcx)
movl %r12d, 0x4(%rax,%rcx)
addl %r13d, 0x8(%rax,%rcx)
movslq 0x14(%rbp), %rax
cmpq %rax, %r14
jl 0x11006
leal 0x1(%r14), %eax
movl %eax, 0x14(%rbp)
incq %r14
jmp 0x10f71
leaq (%r14,%r14), %rax
testl %ecx, %ecx
je 0x1103f
movl %eax, 0x10(%rbp)
imull $0x18, %r14d, %edi
leaq 0x1874c(%rip), %rsi     # 0x29770
movq (%rsi), %rcx
movl %edi, (%rcx)
movq 0x8(%rcx), %rax
movslq %edi, %rdx
addq %rax, %rdx
cmpq 0x10(%rcx), %rdx
jae 0x11076
movq %rdx, 0x8(%rcx)
jmp 0x1107b
cmpq $0xc8, %r14
movl $0xc8, %ecx
cmovbl %ecx, %eax
movl %eax, 0x10(%rbp)
imull $0xc, %eax, %edi
leaq 0x18715(%rip), %rsi     # 0x29770
movq (%rsi), %rcx
movl %edi, (%rcx)
movq 0x8(%rcx), %rax
movslq %edi, %rdx
addq %rax, %rdx
cmpq 0x10(%rcx), %rdx
jae 0x110ab
movq %rdx, 0x8(%rcx)
jmp 0x110b0
callq 0x16438
xorl %edx, %edx
xorl %esi, %esi
movslq 0x14(%rbp), %rcx
cmpq %rcx, %rsi
jge 0x110a5
movq 0x18(%rbp), %rcx
movl 0x8(%rcx,%rdx), %edi
movl %edi, 0x8(%rax,%rdx)
movq (%rcx,%rdx), %rcx
movq %rcx, (%rax,%rdx)
incq %rsi
addq $0xc, %rdx
jmp 0x1107f
movq %rax, 0x18(%rbp)
jmp 0x110b8
callq 0x16438
movq %rax, 0x18(%rbp)
movslq 0x14(%rbp), %rcx
imulq $0xc, %rcx, %rax
movslq 0x10(%rbp), %rdx
cmpq %rdx, %rcx
jge 0x10fe0
movq 0x18(%rbp), %rdx
andl $0x0, 0x8(%rdx,%rax)
andq $0x0, (%rdx,%rax)
incq %rcx
addq $0xc, %rax
jmp 0x110bc
movl 0xc(%rsp), %ebp
jmp 0x10c92
movl 0xc(%rsp), %edi
callq 0x30f0
pushq $-0x1
popq %rbx
movl %ebx, %eax
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %ebp, %edi
callq 0x30f0
leaq 0x1bbd9(%rip), %r15     # 0x2ccf0
pushq $0x1
popq %rbx
leaq 0x74(%rip), %r14        # 0x11195
pushq $0xc
popq %rbp
movq (%r15), %r15
testq %r15, %r15
je 0x110f5
movq 0x18(%r15), %rdi
movl 0x14(%r15), %esi
movl %ebp, %edx
movq %r14, %rcx
callq 0x3070
jmp 0x11124
leaq 0xb19b(%rip), %rdi      # 0x1c2e2
leaq 0xd098(%rip), %rsi      # 0x1e1e6
leaq 0xd0ae(%rip), %rcx      # 0x1e203
pushq $0x5c
popq %rdx
callq 0x30d0
leaq 0xd05c(%rip), %rdi      # 0x1e1c0
leaq 0xd07b(%rip), %rsi      # 0x1e1e6
leaq 0xd084(%rip), %rcx      # 0x1e1f6
movl $0xcb, %edx
callq 0x30d0
leaq 0xb15f(%rip), %rdi      # 0x1c2e2
leaq 0xd05c(%rip), %rsi      # 0x1e1e6
leaq 0xd08b(%rip), %rcx      # 0x1e21c
pushq $0x74
jmp 0x11157