// File: /workspace/github_cpp_makefile_star2_O3/ChaohuiYu[P]BPlusTree/commands.cpp
// Function: queryRecord(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void queryRecord(const string& relationName, const string& key) {
    if (!isRelationExist(relationName)) {
        cout << "Error: Relation " << relationName << " doesn't exist.\n";
        return;
    }

    if (isRelationInRelationInt(relationName)) {
        if (!is_number(key)) {
            cout << "Error: Key " << key << " is not a number.\n";
            return;
        }
        relationNameToRelationInt[relationName]->queryRid(stoi(key));
    }
    else if (isRelationInRelationStr(relationName)) {
        relationNameToRelationStr[relationName]->queryRid(key.substr(1, 10));
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x4853
testb %al, %al
je 0x500e
leaq 0xb249(%rip), %rdi      # 0x101b8
movq %r14, %rsi
callq 0x5fae
leaq 0xb242(%rip), %rcx      # 0x101c0
cmpq %rcx, %rax
je 0x5049
movq %rbx, %rdi
callq 0x4b7b
testb %al, %al
je 0x50c3
leaq 0xb21a(%rip), %rdi      # 0x101b8
movq %r14, %rsi
callq 0x571a
movq (%rax), %r14
movq (%rbx), %r15
callq 0x2060
movq %rax, %rbx
movl (%rax), %ebp
movl $0x0, (%rax)
leaq 0x28(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x2240
cmpq %r15, (%r12)
je 0x510d
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x5119
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x5119
testl %ecx, %ecx
jne 0x4ff8
movl %ebp, (%rbx)
movq %r14, %rdi
movl %eax, %esi
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x64de
movq 0xafbb(%rip), %rbx      # 0xffd0
leaq 0x62f1(%rip), %rsi      # 0xb30d
movl $0x10, %edx
movq %rbx, %rdi
callq 0x2220
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x2220
leaq 0x6437(%rip), %rsi      # 0xb476
movl $0x10, %edx
jmp 0x50f9
leaq 0xb198(%rip), %rdi      # 0x101e8
movq %r14, %rsi
callq 0x5ff4
leaq 0xb191(%rip), %rcx      # 0x101f0
cmpq %rcx, %rax
je 0x50b6
leaq 0xb17d(%rip), %rdi      # 0x101e8
movq %r14, %rsi
callq 0x5796
movq (%rax), %r14
leaq 0x8(%rsp), %r15
movl $0x1, %edx
movl $0xa, %ecx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2200
movq %r14, %rdi
movq %r15, %rsi
callq 0x6e76
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x50b6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21e0
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0xaf06(%rip), %r14      # 0xffd0
leaq 0x62ca(%rip), %rsi      # 0xb39b
movl $0xb, %edx
movq %r14, %rdi
callq 0x2220
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0x2220
leaq 0x62b3(%rip), %rsi      # 0xb3a7
movl $0x12, %edx
movq %rax, %rdi
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2220
leaq 0x61b9(%rip), %rdi      # 0xb2cd
callq 0x2120
leaq 0x61ad(%rip), %rdi      # 0xb2cd
callq 0x2250
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x514f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21e0
jmp 0x514f
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x514f
movl %ebp, (%rbx)
movq %r14, %rdi
callq 0x22e0