// // PlayerObject::updatePlayerDartFrame from 0x1404fcd50 to 0x1404fcf7d (557 bytes) // // 3 xrefs: // > MenuGameLayer::resetPlayer @ 0x140471205 // > PlayerObject::toggleDartMode @ 0x1404f9351 // > @ 0x14092a494 // // This function is hookable on this platform (idp: pc, 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:33:23 +0000 // __int64 __fastcall PlayerObject::updatePlayerDartFrame(__int64 a1, int a2) { int v3; // eax unsigned int v4; // r15d __int64 *v5; // rcx cocos2d::CCString *v6; // rax const char *CString; // rsi cocos2d::CCString *v8; // rax const char *v9; // rbp cocos2d::CCString *v10; // rax const char *v11; // r14 _QWORD *v12; // rcx __int64 v13; // rdi _QWORD *v14; // rbx __int64 v15; // rdx cocos2d::CCSpriteFrameCache *v16; // rax struct cocos2d::CCSpriteFrame *v17; // rax __int64 v18; // rdi __int64 v19; // rbx __int64 v20; // rdx __int64 v21; // rcx cocos2d::CCSpriteFrameCache *v22; // rax struct cocos2d::CCSpriteFrame *v23; // rax __int64 v24; // rdi __int64 v25; // rbx __int64 v26; // rdx __int64 v27; // rcx cocos2d::CCSpriteFrameCache *v28; // rax struct cocos2d::CCSpriteFrame *v29; // rax const struct cocos2d::CCSize *v30; // rax __int64 v31; // rdi __int64 v32; // rbx __int64 v33; // rax cocos2d::CCString *v34; // rax const char *v35; // rax size_t v36; // r8 __int128 v38; // [rsp+20h] [rbp-48h] BYREF __int64 v39; // [rsp+30h] [rbp-38h] __int64 v40; // [rsp+38h] [rbp-30h] float v41; // [rsp+70h] [rbp+8h] BYREF float v42; // [rsp+74h] [rbp+Ch] void *v43; // [rsp+80h] [rbp+18h] BYREF v3 = 96; if ( a2 < 96 ) v3 = a2; v4 = 1; if ( v3 > 1 ) v4 = v3; v5 = (__int64 *)qword_14090BFD0; if ( !qword_14090BFD0 ) { v43 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v43); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v5 = (__int64 *)qword_14090BFD0; } GameManager::loadIcon(v5, v4, 4u, *(_DWORD *)(a1 + 3068)); v6 = cocos2d::CCString::createWithFormat("dart_%02d_001.png", v4); CString = cocos2d::CCString::getCString(v6); v8 = cocos2d::CCString::createWithFormat("dart_%02d_2_001.png", v4); v9 = cocos2d::CCString::getCString(v8); v10 = cocos2d::CCString::createWithFormat("dart_%02d_glow_001.png", v4); v11 = cocos2d::CCString::getCString(v10); v12 = *(_QWORD **)(a1 + 1856); v13 = *v12; v14 = v12; v16 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v12, v15); v17 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v16, CString); (*(void (__fastcall **)(_QWORD *, struct cocos2d::CCSpriteFrame *))(v13 + 1008))(v14, v17); v18 = **(_QWORD **)(a1 + 1864); v19 = *(_QWORD *)(a1 + 1864); v22 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v21, v20); v23 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v22, v9); (*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(v18 + 1008))(v19, v23); v24 = **(_QWORD **)(a1 + 1880); v25 = *(_QWORD *)(a1 + 1880); v28 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v27, v26); v29 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v28, v11); (*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(v24 + 1008))(v25, v29); v30 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1856) + 320LL))(*(_QWORD *)(a1 + 1856)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v41, v30); v31 = **(_QWORD **)(a1 + 1864); v32 = *(_QWORD *)(a1 + 1864); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v43, v41 * 0.5, v42 * 0.5); (*(void (__fastcall **)(__int64, __int64))(v31 + 184))(v32, v33); v34 = cocos2d::CCString::createWithFormat("dart_%02d_extra_001.png", v4); v35 = cocos2d::CCString::getCString(v34); v38 = 0; v39 = 0; v40 = 0; v36 = -1; do ++v36; while ( v35[v36] ); sub_14003D230(&v38, v35, v36); return PlayerObject::updatePlayerSpriteExtra(a1, &v38); }
GD Web Decomp Icon

GD Web Decomp

Raw Source