// // PlayerObject::updatePlayerBirdFrame from 0x1404fc640 to 0x1404fc8e2 (674 bytes) // // 3 xrefs: // > MenuGameLayer::resetPlayer @ 0x1404711aa // > PlayerObject::toggleBirdMode @ 0x1404f8be1 // > @ 0x14092a470 // // 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 // // Hidden C++ exception states: #wind=1 __int64 __fastcall PlayerObject::updatePlayerBirdFrame(__int64 a1, int a2) { int v3; // eax unsigned int v4; // r12d __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 cocos2d::CCString *v12; // rax const char *v13; // r15 _QWORD *v14; // rcx __int64 v15; // rdi _QWORD *v16; // rbx __int64 v17; // rdx cocos2d::CCSpriteFrameCache *v18; // rax struct cocos2d::CCSpriteFrame *v19; // rax __int64 v20; // rdi __int64 v21; // rbx __int64 v22; // rdx __int64 v23; // rcx cocos2d::CCSpriteFrameCache *v24; // rax struct cocos2d::CCSpriteFrame *v25; // rax __int64 v26; // rdi __int64 v27; // rbx __int64 v28; // rdx __int64 v29; // rcx cocos2d::CCSpriteFrameCache *v30; // rax struct cocos2d::CCSpriteFrame *v31; // rax __int64 v32; // rdi __int64 v33; // rbx __int64 v34; // rdx __int64 v35; // rcx cocos2d::CCSpriteFrameCache *v36; // rax struct cocos2d::CCSpriteFrame *v37; // rax const struct cocos2d::CCSize *v38; // rax __int64 v39; // rdi __int64 v40; // rbx __int64 v41; // rax __int64 v42; // rdi __int64 v43; // rbx __int64 v44; // rax cocos2d::CCString *v45; // rax const char *v46; // rax size_t v47; // r8 __int128 v49; // [rsp+20h] [rbp-58h] BYREF __int64 v50; // [rsp+30h] [rbp-48h] __int64 v51; // [rsp+38h] [rbp-40h] float v52; // [rsp+80h] [rbp+8h] BYREF float v53; // [rsp+84h] [rbp+Ch] void *v54; // [rsp+90h] [rbp+18h] BYREF v3 = 149; if ( a2 < 149 ) v3 = a2; v4 = 1; if ( v3 > 1 ) v4 = v3; v5 = (__int64 *)qword_14090BFD0; if ( !qword_14090BFD0 ) { v54 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v54); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v5 = (__int64 *)qword_14090BFD0; } GameManager::loadIcon(v5, v4, 3u, *(_DWORD *)(a1 + 3068)); v6 = cocos2d::CCString::createWithFormat("bird_%02d_001.png", v4); CString = cocos2d::CCString::getCString(v6); v8 = cocos2d::CCString::createWithFormat("bird_%02d_2_001.png", v4); v9 = cocos2d::CCString::getCString(v8); v10 = cocos2d::CCString::createWithFormat("bird_%02d_3_001.png", v4); v11 = cocos2d::CCString::getCString(v10); v12 = cocos2d::CCString::createWithFormat("bird_%02d_glow_001.png", v4); v13 = cocos2d::CCString::getCString(v12); v14 = *(_QWORD **)(a1 + 1888); v15 = *v14; v16 = v14; v18 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v14, v17); v19 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v18, CString); (*(void (__fastcall **)(_QWORD *, struct cocos2d::CCSpriteFrame *))(v15 + 1008))(v16, v19); v20 = **(_QWORD **)(a1 + 1896); v21 = *(_QWORD *)(a1 + 1896); v24 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v23, v22); v25 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v24, v9); (*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(v20 + 1008))(v21, v25); v26 = **(_QWORD **)(a1 + 1904); v27 = *(_QWORD *)(a1 + 1904); v30 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v29, v28); v31 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v30, v11); (*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(v26 + 1008))(v27, v31); v32 = **(_QWORD **)(a1 + 1920); v33 = *(_QWORD *)(a1 + 1920); v36 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v35, v34); v37 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v36, v13); (*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(v32 + 1008))(v33, v37); v38 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1888) + 320LL))(*(_QWORD *)(a1 + 1888)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v52, v38); v39 = **(_QWORD **)(a1 + 1896); v40 = *(_QWORD *)(a1 + 1896); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v54, v52 * 0.5, v53 * 0.5); (*(void (__fastcall **)(__int64, __int64))(v39 + 184))(v40, v41); v42 = **(_QWORD **)(a1 + 1904); v43 = *(_QWORD *)(a1 + 1904); v44 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1896) + 200LL))(*(_QWORD *)(a1 + 1896)); (*(void (__fastcall **)(__int64, __int64))(v42 + 184))(v43, v44); v45 = cocos2d::CCString::createWithFormat("bird_%02d_extra_001.png", v4); v46 = cocos2d::CCString::getCString(v45); v49 = 0; v50 = 0; v51 = 0; v47 = -1; do ++v47; while ( v46[v47] ); sub_14003D230(&v49, v46, v47); return PlayerObject::updateShipSpriteExtra(a1, &v49); }
GD Web Decomp Icon

GD Web Decomp

Raw Source