Products designed here, products manufactured here, and brands headquartered here โ three separate things, because they're three separate questions.
For devices, the assembly country; for processors, the country where the wafer is fabricated. The manufacturing location can vary by batch โ every product's own page carries a source note.
The country where the product's engineering and design work was carried out.