// // sub_1004D254C from 0x1004d254c to 0x1004d2670 (292 bytes) // // 2 xrefs: // > sub_1004CF9C0 @ 0x1004d0f9c // > EditorSoundConfigInfoLayer::likedItem @ 0x1004d3a14 // // 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:29 +0000 // void __fastcall sub_1004D254C(_QWORD *a1) { __int64 v1; // x8 int v3; // w20 __int64 v4; // x0 __int64 v5; // x0 char *v6; // x20 __int64 v7; // x21 __int64 v8; // x0 __int64 v9; // x0 __int64 v10; // x20 void **v11; // x1 void *__p[2]; // [xsp+8h] [xbp-38h] BYREF char v13; // [xsp+1Fh] [xbp-21h] v1 = a1[136]; if ( v1 ) { if ( (*(_BYTE *)(v1 + 497) & 1) != 0 ) { v3 = 1; } else if ( GameLevelManager::sharedState() ) { v4 = GameLevelManager::sharedState(); v3 = sub_1000CC360(v4, 5, *(unsigned int *)(a1[136] + 316LL), 0); } else { v3 = 0; } v5 = a1[141]; if ( v5 ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 1056LL))(v5, v3 ^ 1u); if ( v3 ) v6 = "GJ_like2Btn2_001.png"; else v6 = "GJ_like2Btn_001.png"; v7 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)a1[141] + 1072LL))(a1[141]); v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, v6); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 1160LL))(v7, v9); } v10 = a1[142]; if ( v10 ) { GameToolbox::intToShortString(*(unsigned int *)(a1[136] + 348LL), __p); if ( v13 >= 0 ) v11 = __p; else v11 = (void **)__p[0]; (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v10 + 928LL))(v10, v11); if ( v13 < 0 ) operator delete(__p[0]); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source