If I had that book, I would give it to you.
If I had that book, I would give it to you. - I don't have the book, but if iI did have it, I would give it to you.
If I had had that book, I would have given it to you.
If I had had that book, I would have given it to you. - I didn't have the book, but if I had the book, I would've given it to you.
Are both the interpretations correct?