The first three kanji are ateji (当て字).
小(お)賀(が)玉(たま)の木(き) or 小賀玉(オガタマ)の木(キ) • (ogatama no ki) ←をがたまのき (wogatamanoki)?