if
(
exists boolean of values of entries whose
(
key of it = "Unmap"
)
of dictionaries of values of entries whose
(
key of it = "IOStorageFeatures"
)
of
(
dictionaries of nodes of nodes of nodes of it; dictionaries of it
)
of
(
if
(
name of it = "SATA"
)
then
(
nodes of nodes of it
)
else
(
nodes of nodes of nodes of nodes of it
)
)
of nodes whose
(
(
name of it = "SATA"
)
OR
(
name of it starts with "RP"
)
)
of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry
)
then
(
(
(
boolean of values of it
)
as string
)
of entries whose
(
key of it = "Unmap"
)
of dictionaries of values of entries whose
(
key of it = "IOStorageFeatures"
)
of
(
dictionaries of nodes of nodes of nodes of it; dictionaries of it
)
of
(
if
(
name of it = "SATA"
)
then
(
nodes of nodes of it
)
else
(
nodes of nodes of nodes of nodes of it
)
)
of nodes whose
(
(
name of it = "SATA"
)
OR
(
name of it starts with "RP"
)
)
of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry
)
else
(
"No Trim Support"
)
if (exists boolean of values of entries whose (key of it = "Unmap") of dictionaries of values of entries whose (key of it = "IOStorageFeatures") of (dictionaries of nodes of nodes of nodes of it; dictionaries of it) of (if (name of it = "SATA") then (nodes of nodes of it) else (nodes of nodes of nodes of nodes of it)) of nodes whose ((name of it = "SATA") OR (name of it starts with "RP")) of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (((boolean of values of it) as string) of entries whose (key of it = "Unmap") of dictionaries of values of entries whose (key of it = "IOStorageFeatures") of (dictionaries of nodes of nodes of nodes of it; dictionaries of it) of (if (name of it = "SATA") then (nodes of nodes of it) else (nodes of nodes of nodes of nodes of it)) of nodes whose ((name of it = "SATA") OR (name of it starts with "RP")) of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("No Trim Support")