// File: /workspace/github_cpp_makefile_star2_O3/leobru[P]ACPUfont/splitter.cc
// Function: Picture::Picture(char const*, char const*)
Picture(const char * fname, const char * p) :
        currun(0),
        width(-1), height(-1), full(-1), postproc(p) {
        for (FILE ** it = runs; it != runs+128; ++it) *it = NULL;
	FILE * f = fname ? fopen(fname, "r") : stdin;
	if (!f) {
            fprintf(stderr, "Cannot open %s\n", fname);
            exit(1);
	}
	char magic[3];
	if (1 != fscanf(f, "%2s", magic) || strcmp("P5", magic)) {
            fprintf(stderr, "Want to see binary PGM (P5)\n");
            exit(1);
	}
	if (3 != fscanf(f, "%d %d %d",
                        const_cast<int*>(&width),
                        const_cast<int*>(&height),
                        const_cast<int*>(&full))
            || width <= 0 || height <= 0) {
            fprintf(stderr, "Could not parse PGM header\n");
            exit(1);
	}
	getc(f); // consume linefeed
	reserve(height*width);
	for (int i = 0; i < height; ++i)
            for (int j = 0; j < width; ++j) {
		int pixel = getc(f);
		if (pixel == EOF) {
                    fprintf(stderr, "File ended prematurely\n");
                    exit(1);
		}
		push_back(pixel);
            }
	fclose (f);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movapd 0x116e(%rip), %xmm0     # 0x3030
movupd %xmm0, 0x418(%rdi)
movq %rdx, 0x428(%rdi)
addq $0x18, %rdi
movl $0x400, %edx            # imm = 0x400
xorl %esi, %esi
callq 0x10c0
testq %r15, %r15
je 0x1efa
leaq 0x122e(%rip), %rsi      # 0x311b
movq %r15, %rdi
callq 0x1140
movq %rax, %r14
jmp 0x1f04
movq 0x30c7(%rip), %rax      # 0x4fc8
movq (%rax), %r14
testq %r14, %r14
je 0x204a
leaq 0x1219(%rip), %rsi      # 0x312d
leaq 0x5(%rsp), %rdx
movq %r14, %rdi
xorl %eax, %eax
callq 0x11c0
cmpl $0x1, %eax
jne 0x2045
movzwl 0x5(%rsp), %eax
xorl $0x3550, %eax           # imm = 0x3550
movzbl 0x7(%rsp), %ecx
orw %ax, %cx
jne 0x2045
leaq 0x41c(%rbx), %r15
leaq 0x420(%rbx), %rcx
leaq 0x424(%rbx), %r8
leaq 0x11f1(%rip), %rsi      # 0x3151
movq %r14, %rdi
movq %r15, %rdx
movq %rcx, 0x8(%rsp)
xorl %eax, %eax
callq 0x11c0
cmpl $0x3, %eax
jne 0x2052
cmpl $0x0, (%r15)
jle 0x2052
movq 0x8(%rsp), %rax
cmpl $0x0, (%rax)
jle 0x2052
movq %r14, %rdi
callq 0x1070
movslq 0x420(%rbx), %rax
movslq 0x41c(%rbx), %rsi
imulq %rax, %rsi
movq %rbx, %rdi
callq 0x27a8
movq 0x8(%rsp), %rax
movl (%rax), %ecx
testl %ecx, %ecx
jle 0x2029
movl 0x41c(%rbx), %eax
xorl %ebp, %ebp
leaq 0x10(%rsp), %r13
testl %eax, %eax
jle 0x2023
xorl %r12d, %r12d
movq %r14, %rdi
callq 0x1070
cmpl $-0x1, %eax
je 0x2040
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x10(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2006
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2011
movq %rbx, %rdi
movq %r13, %rdx
callq 0x2860
incl %r12d
movl (%r15), %eax
cmpl %eax, %r12d
jl 0x1fd4
movq 0x8(%rsp), %rcx
movl (%rcx), %ecx
incl %ebp
cmpl %ecx, %ebp
jl 0x1fcd
movq %r14, %rdi
callq 0x1100
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x124a
callq 0x1225
movq %r15, %rdi
callq 0x1294
callq 0x126f
jmp 0x2059
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2070
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x1120
movq %r14, %rdi
callq 0x11b0