// File: /workspace/github_cpp_makefile_star2_O1/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 0x1126(%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 0x1f42
leaq 0x11e6(%rip), %rsi      # 0x311b
movq %r15, %rdi
callq 0x1140
movq %rax, %r14
jmp 0x1f4c
movq 0x307f(%rip), %rax      # 0x4fc8
movq (%rax), %r14
testq %r14, %r14
je 0x2088
leaq 0x11d1(%rip), %rsi      # 0x312d
leaq 0x5(%rsp), %rdx
movq %r14, %rdi
xorl %eax, %eax
callq 0x11c0
cmpl $0x1, %eax
jne 0x2083
movzwl 0x5(%rsp), %eax
xorl $0x3550, %eax           # imm = 0x3550
movzbl 0x7(%rsp), %ecx
orw %ax, %cx
jne 0x2083
leaq 0x41c(%rbx), %r15
leaq 0x420(%rbx), %rcx
leaq 0x424(%rbx), %r8
leaq 0x11a9(%rip), %rsi      # 0x3151
movq %r14, %rdi
movq %r15, %rdx
movq %rcx, 0x8(%rsp)
xorl %eax, %eax
callq 0x11c0
cmpl $0x3, %eax
jne 0x2090
cmpl $0x0, (%r15)
jle 0x2090
movq 0x8(%rsp), %rax
cmpl $0x0, (%rax)
jle 0x2090
movq %r14, %rdi
callq 0x1070
movslq 0x420(%rbx), %rax
movslq 0x41c(%rbx), %rsi
imulq %rax, %rsi
movq %rbx, %rdi
callq 0x27e2
movq 0x8(%rsp), %rax
cmpl $0x0, (%rax)
jle 0x2067
xorl %ebp, %ebp
leaq 0x10(%rsp), %r13
cmpl $0x0, (%r15)
jle 0x205c
xorl %r12d, %r12d
movq %r14, %rdi
callq 0x1070
cmpl $-0x1, %eax
je 0x207e
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x10(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2049
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2054
movq %rbx, %rdi
movq %r13, %rdx
callq 0x2894
incl %r12d
cmpl (%r15), %r12d
jl 0x2017
incl %ebp
movq 0x8(%rsp), %rax
cmpl (%rax), %ebp
jl 0x200e
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 0x2097
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x20ae
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x1120
movq %r14, %rdi
callq 0x11b0