// File: /workspace/github_cpp_makefile_star2_O1/sun98[P]Mini-DFS/datanode.cpp
// Function: DataServer::locate()
void DataServer::locate()
{
    std::string filePath = name_ + "/" + std::to_string(fid) + " " + std::to_string(offset);
    std::ifstream is(filePath);
    if (is)
        bufSize = 1;
    else
        bufSize = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2a8, %rsp            # imm = 0x2A8
movq %rdi, %rbx
leaq -0x78(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rdi), %rsi
movq 0x8(%rdi), %rdx
addq %rsi, %rdx
leaq -0x88(%rbp), %r14
movq %r14, %rdi
callq 0x4fce
leaq 0x4b57(%rip), %rsi      # 0x902e
movq %r14, %rdi
callq 0x34e0
movl 0xa0(%rbx), %r14d
movl %r14d, %r15d
negl %r15d
cmovsl %r14d, %r15d
movl $0x1, %r12d
cmpl $0xa, %r15d
jb 0x4546
movl $0x4, %r12d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r15d, %ecx
cmpl $0x63, %ecx
jbe 0x453d
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x4543
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x4546
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r12d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x450a
addl $-0x3, %r12d
jmp 0x4546
addl $-0x2, %r12d
jmp 0x4546
decl %r12d
shrl $0x1f, %r14d
leal (%r12,%r14), %esi
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x48(%rbp), %rdi
movl $0x2d, %edx
callq 0x32f0
addq -0x48(%rbp), %r14
movq %r14, %rdi
movl %r12d, %esi
movl %r15d, %edx
callq 0x4f4d
movq -0x88(%rbp), %rcx
movq -0x80(%rbp), %r8
movq -0x40(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r13, %rcx
je 0x4597
movq -0x78(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x45b4
movl $0xf, %esi
leaq -0x38(%rbp), %rdi
cmpq %rdi, -0x48(%rbp)
je 0x45af
movq -0x38(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x45c6
movq -0x48(%rbp), %rsi
leaq -0x88(%rbp), %rdi
callq 0x3100
jmp 0x45d3
leaq -0x48(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x32c0
leaq -0x98(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x45fd
movq %rsi, -0xa8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x98(%rbp)
jmp 0x4603
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0xa0(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x4c48(%rip), %rsi      # 0x9271
leaq -0xa8(%rbp), %rdi
callq 0x34e0
leaq -0x2c0(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4665
movq %rsi, %r13
movq %rdx, -0x2d0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x2c0(%rbp)
jmp 0x466e
movups (%rcx), %xmm0
movq %rsi, %r13
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x2c8(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0xa8(%rbx), %r14d
movl %r14d, %r15d
negl %r15d
cmovsl %r14d, %r15d
movl $0x1, %r12d
cmpl $0xa, %r15d
jb 0x46ef
movl $0x4, %r12d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r15d, %ecx
cmpl $0x63, %ecx
jbe 0x46e6
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x46ec
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x46ef
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r12d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x46b3
addl $-0x3, %r12d
jmp 0x46ef
addl $-0x2, %r12d
jmp 0x46ef
decl %r12d
shrl $0x1f, %r14d
leal (%r12,%r14), %esi
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x68(%rbp), %rdi
movl $0x2d, %edx
callq 0x32f0
addq -0x68(%rbp), %r14
movq %r14, %rdi
movl %r12d, %esi
movl %r15d, %edx
callq 0x4f4d
movq -0x2d0(%rbp), %rcx
movq -0x2c8(%rbp), %r8
movq -0x60(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r13, %rcx
je 0x4746
movq -0x2c0(%rbp), %rsi
cmpq %rsi, %rax
leaq -0x58(%rbp), %r14
jbe 0x4763
movl $0xf, %esi
cmpq %r14, -0x68(%rbp)
je 0x475e
movq -0x58(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x4775
movq -0x68(%rbp), %rsi
leaq -0x2d0(%rbp), %rdi
callq 0x3100
jmp 0x4782
leaq -0x68(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x32c0
leaq -0xb8(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x47ac
movq %rsi, -0xc8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xb8(%rbp)
jmp 0x47b2
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0xc0(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq -0x68(%rbp), %rdi
cmpq %r14, %rdi
je 0x47df
callq 0x3270
movq -0x2d0(%rbp), %rdi
cmpq %r13, %rdi
leaq -0x78(%rbp), %r14
je 0x47f4
callq 0x3270
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4809
callq 0x3270
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x481b
callq 0x3270
movq -0x88(%rbp), %rdi
cmpq %r14, %rdi
je 0x482c
callq 0x3270
leaq -0x2d0(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
movl $0x8, %edx
callq 0x3420
leaq -0x2d0(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
xorl %ecx, %ecx
testb $0x5, -0x2b0(%rbp,%rax)
sete %cl
movl %ecx, 0xa4(%rbx)
callq 0x30c0
leaq -0xb8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x487f
callq 0x3270
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0xb8(%rbp), %rax
movq -0x10(%rax), %rdi
jmp 0x4909
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r14, %rdi
je 0x48b7
callq 0x3270
jmp 0x48b7
movq %rax, %rbx
movq -0x2d0(%rbp), %rdi
cmpq %r13, %rdi
je 0x48cd
callq 0x3270
jmp 0x48cd
movq %rax, %rbx
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x48e7
callq 0x3270
jmp 0x48e7
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x48fe
callq 0x3270
jmp 0x48fe
movq %rax, %rbx
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x4913
callq 0x3270
movq %rbx, %rdi
callq 0x34a0
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
jne 0x490e
jmp 0x4913