Last active
August 29, 2015 14:15
-
-
Save OdNairy/9e1f00283cd1189490ce to your computer and use it in GitHub Desktop.
Objective-c FOR-IN construction decompiled .
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSFastEnumerationState traitsListEnumerationState; | |
id traitsListObjectsPtr; | |
NSUInteger traitStorageListsCount = [traitStorageLists countByEnumeratingWithState:&traitsListEnumerationState objects:&traitsListObjectsPtr count:16LL]; | |
int* v77 = 0LL; | |
long v28 = 0LL; | |
if (traitStorageListsCount){ | |
v28 = *v77; | |
do { | |
for(size_t i = 0; i< traitStorageListsCount; ++i){ | |
/* if (*v77 != v28){ | |
// There are compiler-only logic to handle mutation though the enumeration. | |
// objc_enumerationMutation(traitStorageLists); | |
}*/ | |
NSObject* enumeratedObject = traitsListEnumerationState.itemsPtr[i]; | |
NSObject* topLevelObject = [(id)enumeratedObject topLevelObject]; | |
[topLevelObject _setTraitStorageList:enumeratedObject]; | |
} | |
traitStorageListsCount = [traitStorageLists countByEnumeratingWithState:&traitsListEnumerationState objects:&traitsListObjectsPtr count:16LL]; | |
}while (traitStorageListsCount > 0); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(NSObject* obj in traitStorageLists){ | |
obj.topLevelObject.traitStorageList = obj; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment