// File: /workspace/github_cpp_makefile_star2_O1/Overv[P]pqpp/./pq.hpp
// Function: pq::connection::get_rows[abi:cxx11](std::unique_ptr<pg_result, std::function<void (pg_result*)>>&&)
vector<row_t> get_rows(unique_ptr<PGresult, function<void(PGresult*)>>&& res) {
            int status = PQresultStatus(res.get());

            if (status == PGRES_COMMAND_OK) {
                return vector<row_t>();
            } else if (status == PGRES_TUPLES_OK) {
                // Determine columns in result
                map<string, int> columnIds;

                int columnCount = PQnfields(res.get());
                for (int c = 0; c < columnCount; c++) {
                    columnIds.emplace(PQfname(res.get(), c), c);
                }

                // Extract rows
                vector<row_t> rows;

                int rowCount = PQntuples(res.get());
                for (int r = 0; r < rowCount; r++) {
                    row_t row;

                    for (auto& column : columnIds) {
                        string val = PQgetvalue(res.get(), r, column.second);
                        bool isNull = PQgetisnull(res.get(), r, column.second);

                        row.emplace(column.first, value(val, isNull));
                    }

                    rows.push_back(row);
                }

                return rows;
            } else {
                throw runtime_error(PQerrorMessage(conn.get()));
            }
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, (%rsp)
movq 0x20(%rdx), %rdi
callq 0x23c0
cmpl $0x2, %eax
je 0x37e9
cmpl $0x1, %eax
jne 0x39b2
xorps %xmm0, %xmm0
movq (%rsp), %rax
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
jmp 0x39a0
leaq 0x90(%rsp), %rcx
movl $0x0, (%rcx)
xorl %eax, %eax
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
movq 0x20(%r14), %rdi
callq 0x2100
movl %eax, %ebx
movl $0x0, 0x10(%rsp)
testl %eax, %eax
jle 0x385e
xorl %esi, %esi
leaq 0x88(%rsp), %r15
leaq 0x58(%rsp), %r12
leaq 0x10(%rsp), %r13
movq 0x20(%r14), %rdi
callq 0x2240
movq %rax, 0x58(%rsp)
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x3c2a
movl 0x10(%rsp), %esi
incl %esi
movl %esi, 0x10(%rsp)
cmpl %ebx, %esi
jl 0x3834
xorps %xmm0, %xmm0
movq (%rsp), %rax
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq 0x20(%r14), %rdi
callq 0x2210
testl %eax, %eax
jle 0x398f
leaq 0x58(%rsp), %r15
leaq 0x10(%rsp), %r13
xorl %ebx, %ebx
movl %eax, 0xc(%rsp)
movl $0x0, 0x60(%rsp)
xorl %ecx, %ecx
movq %rcx, 0x68(%rsp)
leaq 0x60(%rsp), %rax
movq %rax, 0x70(%rsp)
movq %rax, 0x78(%rsp)
movq %rcx, 0x80(%rsp)
movq 0xa0(%rsp), %rbp
leaq 0x90(%rsp), %rax
cmpq %rax, %rbp
je 0x396d
movq 0x20(%r14), %rdi
movl 0x40(%rbp), %edx
movl %ebx, %esi
callq 0x2110
leaq 0x38(%rsp), %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x2330
movq 0x20(%r14), %rdi
movl 0x40(%rbp), %edx
movl %ebx, %esi
callq 0x23a0
movl %eax, %r12d
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x3550
leaq 0x20(%rbp), %rsi
testl %r12d, %r12d
setne 0x30(%rsp)
movq %r15, %rdi
movq %r13, %rdx
callq 0x3e4c
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x3949
callq 0x2180
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x395d
callq 0x2180
movq %rbp, %rdi
callq 0x2310
movq %rax, %rbp
jmp 0x38bf
movq (%rsp), %rdi
movq %r15, %rsi
callq 0x3bfe
movq %r15, %rdi
callq 0x3670
incl %ebx
movl 0xc(%rsp), %eax
cmpl %eax, %ebx
jne 0x3891
leaq 0x88(%rsp), %rdi
callq 0x4546
movq (%rsp), %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x2130
movq %rax, %r14
movq (%rbx), %rdi
callq 0x22f0
movq %r14, %rdi
movq %rax, %rsi
callq 0x20f0
movq 0x560f(%rip), %rsi      # 0x8fe8
movq 0x55f8(%rip), %rdx      # 0x8fd8
movq %r14, %rdi
callq 0x21f0
movq %rax, %rbx
movq %r14, %rdi
callq 0x22e0
jmp 0x3a5c
movq %rax, %rbx
jmp 0x3a46
jmp 0x39fe
jmp 0x3a39
movq %rax, %rbx
jmp 0x3a4f
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x3a21
callq 0x2180
jmp 0x3a21
jmp 0x3a1e
movq %rax, %rbx
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x3a3c
callq 0x2180
jmp 0x3a3c
jmp 0x3a39
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x3670
movq (%rsp), %rdi
callq 0x3002
leaq 0x88(%rsp), %rdi
callq 0x4546
movq %rbx, %rdi
callq 0x2200