// File: /workspace/github_cpp_makefile_star2_O2/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, %rbp
movq %rdi, %rbx
xorps %xmm0, %xmm0
andq $0x0, 0x10(%rdi)
movups %xmm0, (%rdi)
leaq 0x41c(%rdi), %r14
leaq 0x420(%rdi), %rax
movq %rax, 0x8(%rsp)
leaq 0x424(%rdi), %r13
movapd 0x144b(%rip), %xmm0     # 0x3030
movupd %xmm0, 0x418(%rdi)
movq %rdx, 0x428(%rdi)
pushq $0x18
popq %rax
cmpq $0x418, %rax            # imm = 0x418
je 0x1c0a
andq $0x0, (%rbx,%rax)
addq $0x8, %rax
jmp 0x1bf7
testq %rbp, %rbp
je 0x1c23
leaq 0x1505(%rip), %rsi      # 0x311b
movq %rbp, %rdi
callq 0x1160
movq %rax, %r12
jmp 0x1c2d
movq 0x339e(%rip), %rax      # 0x4fc8
movq (%rax), %r12
testq %r12, %r12
je 0x1d63
leaq 0x14f0(%rip), %rsi      # 0x312d
leaq 0x5(%rsp), %rdx
movq %r12, %rdi
xorl %eax, %eax
callq 0x11e0
cmpl $0x1, %eax
jne 0x1d4e
leaq 0x14d5(%rip), %rdi      # 0x3131
leaq 0x5(%rsp), %rsi
pushq $0x3
popq %rdx
callq 0x1140
testl %eax, %eax
jne 0x1d4e
leaq 0x14d9(%rip), %rsi      # 0x3151
movq %r12, %rdi
movq %r14, %rdx
movq 0x8(%rsp), %rcx
movq %r13, %r8
xorl %eax, %eax
callq 0x11e0
cmpl $0x3, %eax
jne 0x1d80
cmpl $0x0, (%r14)
jle 0x1d80
movq 0x8(%rsp), %rax
cmpl $0x0, (%rax)
jle 0x1d80
movq %r12, %rdi
callq 0x1080
movslq 0x420(%rbx), %rax
movslq 0x41c(%rbx), %rsi
imulq %rax, %rsi
movq %rbx, %rdi
callq 0x242a
xorl %ebp, %ebp
leaq 0x10(%rsp), %r13
movq 0x8(%rsp), %rax
cmpl (%rax), %ebp
jge 0x1d13
xorl %r15d, %r15d
cmpl (%r14), %r15d
jge 0x1d0f
movq %r12, %rdi
callq 0x1080
cmpl $-0x1, %eax
je 0x1d2a
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x10(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x251c
incl %r15d
jmp 0x1ce3
incl %ebp
jmp 0x1cd7
movq %r12, %rdi
callq 0x1110
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x329f(%rip), %rax      # 0x4fd0
movq (%rax), %rcx
leaq 0x143b(%rip), %rdi      # 0x3176
pushq $0x17
popq %rsi
pushq $0x1
popq %rdx
callq 0x1200
pushq $0x1
popq %rdi
callq 0x1170
movq 0x327b(%rip), %rax      # 0x4fd0
movq (%rax), %rcx
leaq 0x13d5(%rip), %rdi      # 0x3134
pushq $0x1c
jmp 0x1d3d
movq 0x3266(%rip), %rax      # 0x4fd0
movq (%rax), %rdi
leaq 0x13a9(%rip), %rsi      # 0x311d
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1190
jmp 0x1d46
movq 0x3249(%rip), %rax      # 0x4fd0
movq (%rax), %rcx
leaq 0x13c9(%rip), %rdi      # 0x315a
pushq $0x1b
jmp 0x1d3d
jmp 0x1d97
movq %rax, %r14
movq %rbx, %rdi
callq 0x265e
movq %r14, %rdi
callq 0x11d0