// File: /workspace/github_cpp_makefile_star2_O3/wenleix[P]EdgePPR/src/CreateObjGraph.cpp
// Function: readNewPaper(_IO_FILE*)
Publication* readNewPaper(FILE* file) {
    if (fgets(lineBuf, MaxLineLen, file) == NULL)
        return NULL;

    Publication *p = new Publication();
    p->title = string(ParseAttrLine(lineBuf, "Title"));
    p->id = atoi(ParseNextLine(file, "ID"));
    p->authors = string(ParseNextLine(file, "Authors"));
    p->year = atoi(ParseNextLine(file, "Year"));
    p->forum = string(ParseNextLine(file, "Conf"));		//	TODO: hmm
    p->refs.resize(atoi(ParseNextLine(file, "NumRef")));

    istringstream iss(ParseNextLine(file, "Refs"));
    for (int i = 0; i < p->refs.size(); i++) {
    	iss >> p->refs[i];
//        assert((iss >> p->refs[i]) != NULL);
    }

    assert(fgets(lineBuf, MaxLineLen, file) != NULL);
    lineBuf[strlen(lineBuf) - 1] = 0;   //  Delete the last '\n'
    assert(lineBuf[0] == 0);

    char yearbuf[100];
    sprintf(yearbuf, "@%d", p->year);
    p->conf = p->forum + yearbuf;

    return p;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdi, %r14
leaq 0x6988(%rip), %rdi      # 0x9170
movl $0xf4240, %esi          # imm = 0xF4240
movq %r14, %rdx
callq 0x2200
testq %rax, %rax
je 0x2af0
movl $0xa8, %edi
callq 0x2170
movq %rax, %rbx
addq $0x10, %rax
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rbx)
movaps %xmm0, 0x30(%rbx)
movaps %xmm0, 0x40(%rbx)
movaps %xmm0, 0x50(%rbx)
movaps %xmm0, 0x60(%rbx)
movaps %xmm0, 0x70(%rbx)
movaps %xmm0, 0x10(%rbx)
movaps %xmm0, 0x80(%rbx)
movq %rax, (%rbx)
xorl %eax, %eax
movq %rax, 0x8(%rbx)
leaq 0x20(%rbx), %r15
leaq 0x30(%rbx), %rcx
movq %rcx, 0x20(%rbx)
movb %al, 0x30(%rbx)
leaq 0x58(%rbx), %rcx
movq %rcx, 0x48(%rbx)
movb %al, 0x58(%rbx)
leaq 0x78(%rbx), %rcx
movq %rcx, 0x68(%rbx)
movb %al, 0x78(%rbx)
movups %xmm0, 0x90(%rbx)
movq %rax, 0xa0(%rbx)
leaq 0x68f8(%rip), %rdi      # 0x9170
leaq 0x38da(%rip), %rsi      # 0x6159
callq 0x271f
leaq 0x88(%rsp), %r12
leaq 0x20(%rsp), %rdx
movq %r12, %rdi
movq %rax, %rsi
callq 0x2080
movq %rbx, %rdi
movq %r12, %rsi
callq 0x21a0
movq (%r12), %rdi
leaq 0x98(%rsp), %rbp
cmpq %rbp, %rdi
je 0x28bd
callq 0x2150
leaq 0x48(%rbx), %r12
leaq 0x3897(%rip), %rsi      # 0x615f
movq %r14, %rdi
callq 0x2781
movq %rax, %rdi
callq 0x21f0
movl %eax, 0x88(%rbx)
leaq 0x387d(%rip), %rsi      # 0x6162
movq %r14, %rdi
callq 0x2781
leaq 0x88(%rsp), %r13
leaq 0x20(%rsp), %rdx
movq %r13, %rdi
movq %rax, %rsi
callq 0x2080
movq %r15, %rdi
movq %r13, %rsi
callq 0x21a0
movq (%r13), %rdi
cmpq %rbp, %rdi
je 0x291e
callq 0x2150
leaq 0x90(%rbx), %r15
leaq 0x383e(%rip), %rsi      # 0x616a
movq %r14, %rdi
callq 0x2781
movq %rax, %rdi
callq 0x21f0
movl %eax, 0x40(%rbx)
leaq 0x3829(%rip), %rsi      # 0x616f
movq %r14, %rdi
callq 0x2781
leaq 0x88(%rsp), %r13
leaq 0x20(%rsp), %rdx
movq %r13, %rdi
movq %rax, %rsi
callq 0x2080
movq %r12, %rdi
movq %r13, %rsi
callq 0x21a0
movq (%r13), %rdi
cmpq %rbp, %rdi
je 0x297f
callq 0x2150
leaq 0x37ee(%rip), %rsi      # 0x6174
movq %r14, %rdi
callq 0x2781
movq %rax, %rdi
callq 0x21f0
movslq %eax, %rsi
movq %r15, %rdi
callq 0x389c
leaq 0x37d3(%rip), %rsi      # 0x617b
movq %r14, %rdi
callq 0x2781
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
movq %rax, %rsi
callq 0x2080
leaq 0x88(%rsp), %rdi
leaq 0x20(%rsp), %rsi
movl $0x8, %edx
callq 0x2240
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29ea
callq 0x2150
movq 0x90(%rbx), %rsi
cmpq %rsi, 0x98(%rbx)
je 0x2a34
xorl %r12d, %r12d
leaq 0x88(%rsp), %r15
xorl %r13d, %r13d
addq %r12, %rsi
movq %r15, %rdi
callq 0x20e0
incq %r13
movq 0x90(%rbx), %rsi
movq 0x98(%rbx), %rax
subq %rsi, %rax
sarq $0x2, %rax
addq $0x4, %r12
cmpq %r13, %rax
ja 0x2a08
leaq 0x6735(%rip), %r15      # 0x9170
movq %r15, %rdi
movl $0xf4240, %esi          # imm = 0xF4240
movq %r14, %rdx
callq 0x2200
testq %rax, %rax
je 0x2b07
movq %r15, %rdi
callq 0x20a0
movb $0x0, -0x1(%rax,%r15)
cmpb $0x0, 0x6707(%rip)      # 0x9170
jne 0x2b26
movl 0x40(%rbx), %edx
leaq 0x3739(%rip), %rsi      # 0x61b2
leaq 0x20(%rsp), %rdi
xorl %eax, %eax
callq 0x2030
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x48(%rbx), %rsi
movq 0x50(%rbx), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x3a66
movq %rsp, %rdi
leaq 0x20(%rsp), %rsi
callq 0x2280
movq %rbx, %rdi
addq $0x68, %rdi
movq %rsp, %r14
movq %r14, %rsi
callq 0x21a0
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x2acd
callq 0x2150
movq 0x6504(%rip), %rsi      # 0x8fd8
leaq 0x88(%rsp), %rdi
callq 0x21c0
leaq 0x100(%rsp), %rdi
callq 0x2060
jmp 0x2af2
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x35f8(%rip), %rdi      # 0x6106
leaq 0x3549(%rip), %rsi      # 0x605e
leaq 0x3664(%rip), %rcx      # 0x6180
movl $0x78, %edx
callq 0x20f0
leaq 0x3675(%rip), %rdi      # 0x61a2
leaq 0x352a(%rip), %rsi      # 0x605e
leaq 0x3645(%rip), %rcx      # 0x6180
movl $0x7a, %edx
callq 0x20f0
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2b7a
callq 0x2150
jmp 0x2b7a
jmp 0x2b77
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b9b
callq 0x2150
jmp 0x2b9b
movq %rax, %rbx
jmp 0x2b9b
movq %rax, %rbx
movq 0x6457(%rip), %rsi      # 0x8fd8
leaq 0x88(%rsp), %rdi
callq 0x21c0
leaq 0x100(%rsp), %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x2250