Apple SMC API in Swift