A record label is banking on Tekashi 6ix9ine getting out of prison sooner than later and surviving all the snitching he did ... because it's investing big bucks on the rapper making music again.
Sources close to Tekashi tell TMZ ... he just cut a record deal worth more than $10 million with his former label -- 10K Projects.
Once 6ix9ine's a free man, our sources say he'll get the money in return for putting out 2 albums ... one in English and one in Spanish.
We broke the story ... Tekashi seems to believe him testifying against his old gang members will be forgotten once he's released from prison, and he -- and his tracks -- will be more popular than ever.
The reported best-case scenario for Tekashi69 is getting credit for time served and being released sometime in 2020 .... but it's far from a safe bet to say he'll have no trouble getting back to the studio.