//
// DS_Dictionary::decodeObjectForKey from 0x1001ec0d8 to 0x1001ec154 (124 bytes)
//
// 2 xrefs:
// > DS_Dictionary::getObjectForKey @ 0x1001eb7e0
// > DS_Dictionary::getDictForKey @ 0x1001ebfa0
//
// This function is hookable on this platform (idp: arm, 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 11:00:35 +0000
//
__int64 __fastcall DS_Dictionary::decodeObjectForKey(__int64 a1, const char *a2, char a3, __int64 IntegerForKey)
{
__int64 v6; // x0
__int64 result; // x0
__int64 v8; // x8
if ( (a3 & 1) == 0 && !(unsigned int)DS_Dictionary::stepIntoSubDictWithKey(a1, a2) )
return 0;
if ( (_DWORD)IntegerForKey == -1 )
IntegerForKey = DS_Dictionary::getIntegerForKey(a1, "kCEK");
v6 = ObjectDecoder::sharedDecoder();
result = ObjectDecoder::getDecodedObject(v6, IntegerForKey, a1);
v8 = *(_QWORD *)(a1 + 216);
if ( (unsigned __int64)(v8 - *(_QWORD *)(a1 + 208)) >= 9 )
*(_QWORD *)(a1 + 216) = v8 - 8;
return result;
}