// // PlayerObject::updatePlayerBirdFrame from 0x14039e2e0 to 0x14039e580 (672 bytes) // // 3 xrefs: // > MenuGameLayer::resetPlayer @ 0x140332d0e // > PlayerObject::toggleBirdMode @ 0x14039a930 // > @ 0x1406d677c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=1 void PlayerObject::updatePlayerBirdFrame(PlayerObject *a1, int a2) { int v3; // eax int v4; // r15d GameManager *v5; // rcx cocos2d::CCString *v6; // rax const char *CString; // rdi cocos2d::CCString *v8; // rax const char *v9; // rsi cocos2d::CCString *v10; // rax const char *v11; // rbp cocos2d::CCString *v12; // rax const char *v13; // r14 cocos2d::CCSprite *m_vehicleSprite; // rcx cocos2d::CCSprite_vtbl *v15; // rbx cocos2d::CCSpriteFrameCache *v16; // rax struct cocos2d::CCSpriteFrame *v17; // rax cocos2d::CCSprite_vtbl *v18; // rbx __int64 v19; // rcx cocos2d::CCSpriteFrameCache *v20; // rax struct cocos2d::CCSpriteFrame *v21; // rax cocos2d::CCSprite_vtbl *v22; // rbx __int64 v23; // rcx cocos2d::CCSpriteFrameCache *v24; // rax struct cocos2d::CCSpriteFrame *v25; // rax cocos2d::CCSprite_vtbl *v26; // rbx __int64 v27; // rcx cocos2d::CCSpriteFrameCache *v28; // rax struct cocos2d::CCSpriteFrame *v29; // rax const struct cocos2d::CCSize *v30; // rax double v31; // xmm0_8 cocos2d::CCSprite_vtbl *v32; // rbx const cocos2d::CCPoint *v33; // rax cocos2d::CCSprite_vtbl *v34; // rbx const cocos2d::CCPoint *v35; // rax cocos2d::CCString *v36; // rax const char *v37; // rax size_t v38; // r8 __int128 v39; // [rsp+20h] [rbp-48h] BYREF __int64 v40; // [rsp+30h] [rbp-38h] __int64 v41; // [rsp+38h] [rbp-30h] cocos2d::CCSize v42; // [rsp+70h] [rbp+8h] BYREF void *v43; // [rsp+80h] [rbp+18h] v3 = 149; if ( a2 < 149 ) v3 = a2; v4 = 1; if ( v3 > 1 ) v4 = v3; v5 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v43 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v43); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v5 = (GameManager *)qword_1406C2ED8; } GameManager::loadIcon(v5, v4, 3, a1->m_iconRequestID); 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); m_vehicleSprite = a1->m_vehicleSprite; v15 = m_vehicleSprite->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v16 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(m_vehicleSprite); v17 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v16, CString); v15->setDisplayFrame(a1->m_vehicleSprite, v17); v18 = a1->m_vehicleSpriteSecondary->__vftable; v20 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v19); v21 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v20, v9); v18->setDisplayFrame(a1->m_vehicleSpriteSecondary, v21); v22 = a1->m_birdVehicle->__vftable; v24 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v23); v25 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v24, v11); v22->setDisplayFrame(a1->m_birdVehicle, v25); v26 = a1->m_vehicleGlow->__vftable; v28 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v27); v29 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v28, v13); v26->setDisplayFrame(a1->m_vehicleGlow, v29); v30 = a1->m_vehicleSprite->getContentSize(a1->m_vehicleSprite); v31 = cocos2d::CCSize::CCSize(&v42, v30); v32 = a1->m_vehicleSpriteSecondary->__vftable; cocos2d::CCPoint::CCPoint(*(float *)&v31, v42.width * 0.5); v32->setPosition_0(a1->m_vehicleSpriteSecondary, v33); v34 = a1->m_birdVehicle->__vftable; v35 = a1->m_vehicleSpriteSecondary->getPosition_0(a1->m_vehicleSpriteSecondary); v34->setPosition_0(a1->m_birdVehicle, v35); v36 = cocos2d::CCString::createWithFormat("bird_%02d_extra_001.png", v4); v37 = cocos2d::CCString::getCString(v36); v39 = 0; v40 = 0; v41 = 0; v38 = -1; do ++v38; while ( v37[v38] ); sub_14003A930(&v39, v37, v38); PlayerObject::updateShipSpriteExtra(a1, &v39); }
GD Web Decomp Icon

GD Web Decomp

Raw Source