// // sub_1001CA604 from 0x1001ca604 to 0x1001ca6f8 (244 bytes) // // 1 xrefs: // > GJShopLayer::init @ 0x1001c9d58 // // 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:20 +0000 // __int64 __fastcall sub_1001CA604(__int64 result, __int64 a2) { __int64 v2; // x19 __int64 v3; // x20 __int64 v4; // x0 __int64 v5; // x0 __int64 v6; // x20 int v7; // w22 int v8; // w23 int v9; // w21 char *v10; // x1 int Stat; // w21 int v12; // w22 _QWORD *v13; // x0 void *__p[2]; // [xsp+8h] [xbp-48h] BYREF char v15; // [xsp+1Fh] [xbp-31h] if ( (*(_BYTE *)(result + 432) & 1) == 0 ) { v2 = result; v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); v4 = GameStatsManager::sharedState(v3); result = GameStatsManager::isStoreItemUnlocked(v4, v3); if ( (result & 1) == 0 ) { v5 = GameStatsManager::sharedState(result); v6 = sub_1003C9D40(v5, v3); v7 = *(_DWORD *)(v6 + 352); v8 = *(_DWORD *)(v6 + 356); v9 = GameStatsManager::sharedState(v6); sub_1003C9F54(__p, v6); if ( v15 >= 0 ) v10 = (char *)__p; else v10 = (char *)__p[0]; Stat = GameStatsManager::getStat(v9, v10); v12 = v7 - v8; if ( v15 < 0 ) operator delete(__p[0]); if ( v12 <= Stat ) { v13 = (_QWORD *)PurchaseItemPopup::create(v6); v13[84] = v2 + 408; return (*(__int64 (__fastcall **)(_QWORD *))(*v13 + 1312LL))(v13); } else { return sub_1001CA948(v2, v6); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source