I am not trying to do anything shady with taxes - all I care about is keeping my Canadian PR, which I can if I am employed by a Canadian company, even if working in the US.
So if I work for a Canadian company and my paycheck comes from them, it will get to my hands already after the discounts for federal and provincial Canadian taxes.
And I do know I won't be double-taxed, so come time to do my taxes in the US, I will get credit for what was withheld in Canada.
So I don't understand how my employer would withhold social security and medicare if they would be Canadian.
My question pertains to what I specified in the original question.
I believe we got sidetracked.
My main question is if it would be a problem for the company I work for in the US to have me employed through their Canadian branch if the IRS were to ever audit them for any reason.
As I said, I'm a PR in both countries and I don't mind paying whatever taxes - I just don't want to cause trouble for my employer, and I want to keep both PRs.
If you say the answer is "there would be no problems for your employer", then could you please clarify when the US taxes will be discounted? Because if my paycheck is coming from the Canadian payroll, then it's being discounted at the source for Federal and Provincial taxes, so at what point would it be discounted for City and State (NYC/NY) + SS and Medicare here?
I appreciate the patience but please kindly address the point about whether all this would be a problem for my employer, and then if not, how so. Thanks.