// // sub_1003050E8 from 0x1003050e8 to 0x10030522c (324 bytes) // // 2 xrefs: // > MenuLayer::init @ 0x100304acc // > sub_1003B67C0 @ 0x1003b67c8 // // 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:03:07 +0000 // double __fastcall sub_1003050E8(__int64 a1) { __int64 v2; // x0 __int64 v3; // x0 __int64 v4; // x20 __int64 v5; // x0 double result; // d0 __int64 v7; // x0 __int64 v8; // x0 __int64 v9; // x20 __int64 v10; // x0 void **v11; // x1 void *__p[2]; // [xsp+0h] [xbp-30h] BYREF __int64 v13; // [xsp+10h] [xbp-20h] v2 = GJAccountManager::sharedState(a1); if ( *(_DWORD *)(v2 + 352) <= *(_DWORD *)(v2 + 356) ) { v4 = 0; } else { v3 = GameManager::sharedState(v2); v4 = (unsigned int)GameManager::offlineModeEnabled(v3) ^ 1; } (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 464) + 344LL))(*(_QWORD *)(a1 + 464), v4); v5 = *(_QWORD *)(a1 + 472); if ( v5 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 344LL))(v5, v4); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 456) + 344LL))(*(_QWORD *)(a1 + 456), v4); v7 = *(_QWORD *)(a1 + 448); if ( v7 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 344LL))(v7, v4); v8 = *(_QWORD *)(a1 + 480); if ( v8 ) v8 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 344LL))(v8, (unsigned int)v4 ^ 1); if ( (_DWORD)v4 ) { v9 = *(_QWORD *)(a1 + 456); v10 = GJAccountManager::sharedState(v8); if ( *(char *)(v10 + 351) < 0 ) { sub_1000097D0(__p, *(void **)(v10 + 328), *(_QWORD *)(v10 + 336)); } else { *(_OWORD *)__p = *(_OWORD *)(v10 + 328); v13 = *(_QWORD *)(v10 + 344); } if ( v13 >= 0 ) v11 = __p; else v11 = (void **)__p[0]; (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v9 + 928LL))(v9, v11); if ( SHIBYTE(v13) < 0 ) operator delete(__p[0]); *(_QWORD *)&result = cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 456), 70.0, 0.7, 0.0).n128_u64[0]; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source