// // sub_1004A8F6C from 0x1004a8f6c to 0x1004a9058 (236 bytes) // // 1 xrefs: // > RateDemonLayer::init @ 0x1004a8d58 // // 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:06:06 +0000 // __int64 __fastcall sub_1004A8F6C(__int64 result) { _QWORD *v1; // x19 __int64 v2; // x0 char v3; // w8 __int64 v4; // x8 char *v5; // x0 void *__p[2]; // [xsp+8h] [xbp-28h] BYREF char v7; // [xsp+1Fh] [xbp-11h] if ( *(_DWORD *)(result + 716) != -1 ) { v1 = (_QWORD *)result; v2 = GameLevelManager::sharedState(); result = GameLevelManager::rateDemon( v2, *((_DWORD *)v1 + 178), *((_DWORD *)v1 + 179), *((unsigned __int8 *)v1 + 720)); v3 = *((_BYTE *)v1 + 720); if ( (_DWORD)result && (v1[90] & 1) != 0 ) { *(_QWORD *)(GameLevelManager::sharedState() + 1360) = v1 + 84; v4 = v1[91]; if ( v4 ) *(_QWORD *)(v4 + 664) = 0; sub_100009900(__p, "Sending rating..."); v5 = UploadActionPopup::create((__int64)(v1 + 83), (__int64)__p); v1[91] = v5; if ( v7 < 0 ) { operator delete(__p[0]); v5 = (char *)v1[91]; } result = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v5 + 1312LL))(v5); v3 = *((_BYTE *)v1 + 720); } if ( (v3 & 1) == 0 ) { (*(void (__fastcall **)(_QWORD *, _QWORD))(*v1 + 1072LL))(v1, 0); (*(void (__fastcall **)(_QWORD *, __int64))(*v1 + 528LL))(v1, 1); result = v1[92]; if ( result ) return (**(__int64 (__fastcall ***)(__int64))result)(result); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source