I think in the second amendment "the people" are quite clearly the citizens so they can secure their own "free" state. Where the first amendment is about limiting what the government can do so they can't make laws against free speech.
People is only used in one specific part… ok?
How does that square your idea of 1A with SCOTUS being very recently clear on 2A not immediately applying to non-citizens?