// // DS_Dictionary::getArrayForKey from 0x10015fe80 to 0x10015ffe5 (357 bytes) // // 8 xrefs: // > GJRewardItem::createWithCoder @ 0x100055e44 // > GJRewardItem::dataLoaded @ 0x100055ebd // > DS_Dictionary::getObjectForKey @ 0x10016036b // > DS_Dictionary::getDictForKey @ 0x1001611a4 // > GameLevelManager::dataLoaded @ 0x1005502ba // > GameLevelManager::dataLoaded @ 0x100550f53 // > LocalLevelManager::dataLoaded @ 0x1006cb0ed // > LocalLevelManager::dataLoaded @ 0x1006cbb91 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:25:07 +0000 // __int64 __fastcall DS_Dictionary::getArrayForKey(__int64 a1, char *a2, int a3) { unsigned int v3; // r13d int v4; // r13d int v5; // r15d char *v6; // rsi __int64 ObjectForKey; // rax __int64 v9; // [rsp+0h] [rbp-50h] BYREF __int64 v10; // [rsp+8h] [rbp-48h] _QWORD v11[2]; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] if ( !a3 && !DS_Dictionary::stepIntoSubDictWithKey(a1, a2) ) return sub_1007FE900(a1); v10 = sub_1007FE900(a1); DS_Dictionary::removeKey_1(a1, "_isArr"); v11[0] = sub_1007185E0(*(_QWORD *)(a1 + 216) - 8LL); if ( sub_100718020(v11) ) { v3 = 0; do { v9 = sub_1007183B0(v11); v11[0] = sub_1007183B0(&v9); --v3; } while ( sub_100718020(v11) ); if ( v3 >= 0x80000001 ) { v4 = -v3; v5 = 0; do { DS_Dictionary::getKey(v11, a1, v5); v6 = (char *)v11 + 1; if ( (v11[0] & 1) != 0 ) v6 = (char *)__p; ObjectForKey = DS_Dictionary::getObjectForKey(a1, v6); if ( ObjectForKey ) sub_1007FEBF0(v10, ObjectForKey); if ( (v11[0] & 1) != 0 ) operator delete(__p); ++v5; } while ( v4 != v5 ); } } if ( *(_QWORD *)(a1 + 216) - *(_QWORD *)(a1 + 208) >= 9u ) *(_QWORD *)(a1 + 216) -= 8LL; return v10; }