Decompose/Break down uniqueIdentifier

Does anyone know how to decompose the uniqueIdentifier in Toybox.System.DeviceSettings into the app's UUID and device ID? I only know that uniqueIdentifier is the combination of these two, but I have no idea about how they are composed.