// // PlayerObject::togglePlayerScale from 0x1404fecb0 to 0x1404ff363 (1715 bytes) // // 10 xrefs: // > GJBaseGameLayer::setupLevelStart @ 0x140319498 // > GJBaseGameLayer::setupLevelStart @ 0x1403194b7 // > GJBaseGameLayer::collisionCheckObjects @ 0x14031c95f // > GJBaseGameLayer::collisionCheckObjects @ 0x14031c9e6 // > MenuGameLayer::resetPlayer @ 0x140470e56 // > MenuGameLayer::resetPlayer @ 0x140471550 // > PlayerObject::resetObject @ 0x1404f564c // > PlayerObject::copyAttributes @ 0x1404feb8e // > PlayerObject::loadFromCheckpoint @ 0x140501021 // > @ 0x14092a680 // // 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=5 _UNKNOWN **__fastcall PlayerObject::togglePlayerScale(__int64 a1, char a2, char a3) { _UNKNOWN **result; // rax float v6; // xmm0_4 int v7; // edx __int64 v8; // rax float v9; // xmm1_4 float v10; // xmm0_4 _BYTE *v11; // rbx _BYTE *v12; // rcx __int64 v13; // rdx cocos2d::CCMotionStreak *v14; // rcx __int64 v15; // rdi struct cocos2d::CCObject *v16; // rax float v17; // xmm6_4 __int64 v18; // rax struct cocos2d::CCActionInterval *v19; // rax int *v20; // rbx char v21; // al char v22; // cl __int64 v23; // rdi __int64 v24; // rdi const struct cocos2d::CCPoint *v25; // rax const struct cocos2d::CCPoint *v26; // rbx __int64 v27; // rcx __int64 v28; // rax float v29; // xmm6_4 float v30; // xmm7_4 float v31; // xmm9_4 float v32; // xmm6_4 float v33; // xmm0_4 __int64 v34; // rax __int64 v35; // rbx __int64 v36; // rax __int64 v37; // rdx __int64 v38; // r8 const struct cocos2d::CCPoint *v39; // rax const struct cocos2d::CCPoint *v40; // rax _BYTE v41[4]; // [rsp+50h] [rbp-98h] BYREF float v42; // [rsp+54h] [rbp-94h] void *v43; // [rsp+58h] [rbp-90h] BYREF _BYTE v44[8]; // [rsp+60h] [rbp-88h] BYREF _BYTE v45[8]; // [rsp+68h] [rbp-80h] BYREF _BYTE v46[96]; // [rsp+70h] [rbp-78h] BYREF _UNKNOWN *retaddr; // [rsp+E8h] [rbp+0h] BYREF void *v48; // [rsp+F0h] [rbp+8h] BYREF __int16 v49; // [rsp+108h] [rbp+20h] result = &retaddr; v6 = *(float *)(a1 + 2552); if ( v6 == 1.0 && !a2 ) return result; if ( a2 ) { if ( v6 != 1.0 ) return result; *(_DWORD *)(a1 + 2552) = 1058642330; if ( !*(_BYTE *)(a1 + 2752) ) goto LABEL_24; if ( *(_BYTE *)(a1 + 2499) ) { PlayerObject::updatePlayerRollFrame(a1, 0); goto LABEL_24; } if ( *(_BYTE *)(a1 + 2501) || *(_BYTE *)(a1 + 2500) || *(_BYTE *)(a1 + 2508) ) goto LABEL_24; v7 = 0; LABEL_23: PlayerObject::updatePlayerFrame(a1, v7); goto LABEL_24; } if ( *(_BYTE *)(a1 + 2936) ) *(_DWORD *)(a1 + 2808) = 2; *(_DWORD *)(a1 + 2552) = 1065353216; if ( !*(_BYTE *)(a1 + 2752) ) goto LABEL_24; if ( *(_BYTE *)(a1 + 2499) ) { v8 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v48 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v48); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v8 = qword_14090BFD0; } PlayerObject::updatePlayerRollFrame(a1, *(_DWORD *)(v8 + 772) - *(_DWORD *)(v8 + 776)); goto LABEL_24; } if ( !*(_BYTE *)(a1 + 2501) && !*(_BYTE *)(a1 + 2500) && !*(_BYTE *)(a1 + 2508) ) { v7 = *(_DWORD *)(a1 + 1568); goto LABEL_23; } LABEL_24: v9 = *(float *)(a1 + 2552); *(float *)(a1 + 916) = v9; *(float *)(a1 + 920) = v9; cocos2d::CCParticleSystem::loadScaledDefaults(*(cocos2d::CCParticleSystem **)(a1 + 2320), v9); cocos2d::CCParticleSystem::loadScaledDefaults(*(cocos2d::CCParticleSystem **)(a1 + 2328), *(float *)(a1 + 2552)); cocos2d::CCParticleSystem::loadScaledDefaults(*(cocos2d::CCParticleSystem **)(a1 + 2240), *(float *)(a1 + 2552)); cocos2d::CCParticleSystem::loadScaledDefaults(*(cocos2d::CCParticleSystem **)(a1 + 2264), *(float *)(a1 + 2552)); cocos2d::CCParticleSystem::loadScaledDefaults(*(cocos2d::CCParticleSystem **)(a1 + 2248), *(float *)(a1 + 2552)); cocos2d::CCParticleSystem::loadScaledDefaults(*(cocos2d::CCParticleSystem **)(a1 + 2256), *(float *)(a1 + 2552)); cocos2d::CCParticleSystem::loadScaledDefaults(*(cocos2d::CCParticleSystem **)(a1 + 2272), *(float *)(a1 + 2552)); cocos2d::CCParticleSystem::loadScaledDefaults(*(cocos2d::CCParticleSystem **)(a1 + 2280), *(float *)(a1 + 2552)); cocos2d::CCParticleSystem::loadScaledDefaults(*(cocos2d::CCParticleSystem **)(a1 + 2288), *(float *)(a1 + 2552)); cocos2d::CCParticleSystem::loadScaledDefaults(*(cocos2d::CCParticleSystem **)(a1 + 2296), *(float *)(a1 + 2552)); cocos2d::CCParticleSystem::loadScaledDefaults(*(cocos2d::CCParticleSystem **)(a1 + 2304), *(float *)(a1 + 2552)); v10 = 1.0; if ( *(_BYTE *)(a1 + 2500) ) v10 = 0.80000001; cocos2d::CCMotionStreak::setStroke( *(cocos2d::CCMotionStreak **)(a1 + 1960), (float)(*(float *)(a1 + 2348) * *(float *)(a1 + 2552)) * v10); v11 = (_BYTE *)(a1 + 2028); if ( *(_BYTE *)(a1 + 2028) || (v12 = (_BYTE *)(a1 + 2028), *(_BYTE *)(a1 + 2500)) ) { *(_DWORD *)(*(_QWORD *)(a1 + 1976) + 432LL) = *(_DWORD *)(a1 + 2552); v12 = (_BYTE *)(a1 + 2028); } v13 = *(_QWORD *)(a1 + 1848); if ( v13 ) { *(_DWORD *)(v13 + 336) = *(_DWORD *)(a1 + 2552); v11 = v12; } v14 = *(cocos2d::CCMotionStreak **)(a1 + 1968); if ( v14 ) sub_1404E4520(v14, *(_DWORD *)(a1 + 2356), a1); v15 = *(_QWORD *)(a1 + 3128); v16 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v15 + 320), 6); if ( v16 ) { (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v16 + 88LL))(v16); cocos2d::CCDictionary::removeObjectForKey(*(cocos2d::CCDictionary **)(v15 + 320), 6); v11 = (_BYTE *)(a1 + 2028); } v17 = *(float *)(a1 + 2552); if ( !*v11 || *(_BYTE *)(a1 + 2025) ) goto LABEL_47; v18 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v48 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v48); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v18 = qword_14090BFD0; } if ( *(_BYTE *)(*(_QWORD *)(v18 + 560) + 13085LL) ) { LABEL_47: (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 120LL))(a1); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 136LL))(a1); } else { v19 = cocos2d::CCScaleTo::create(0.5, v17, v17); v20 = (int *)cocos2d::CCEaseElasticOut::create(v19); (*(void (__fastcall **)(int *, __int64))(*(_QWORD *)v20 + 64LL))(v20, 6); cocos2d::CCDictionary::setObject( *(cocos2d::CCDictionary **)(*(_QWORD *)(a1 + 3128) + 320LL), (struct cocos2d::CCObject *)v20, v20[18]); (*(void (__fastcall **)(int *, __int64))(*(_QWORD *)v20 + 80LL))(v20, a1); if ( *(float *)(a1 + 2552) == 1.0 ) { v21 = 0; v22 = -1; } else { v21 = -1; v22 = 0; } LOBYTE(v49) = v21; HIBYTE(v49) = v22; if ( !a3 ) { LOBYTE(v48) = v21; BYTE1(v48) = v22; v23 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v43 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v43); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v23 = qword_14090BFD0; } v24 = *(_QWORD *)(v23 + 560); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, (const struct cocos2d::CCPoint *)(a1 + 2568)); v26 = v25; v28 = cocos2d::CCDirector::sharedDirector(v27); cocos2d::CCDirector::getWinSize(v28, v41); v29 = *(float *)v26; v30 = *(float *)v26 - 50.0; v31 = (float)((float)((float)rand() / 32767.0) * (float)((float)(v29 + 100.0) - v30)) + v30; v32 = v42 + 50.0; v33 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(v24 + 4296) + 168LL))(*(_QWORD *)(v24 + 4296)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v43, v31, (float)(v32 / v33) + *(float *)(v24 + 1044)); BYTE2(v48) = -106; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, v26); v35 = v34; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, (const struct cocos2d::CCPoint *)&v43); GJBaseGameLayer::lightningFlash(v24, v36, v35, (__int64)&v48, 1084227584, 1056964608, 0, 1, 1065353216); LOWORD(v48) = v49; BYTE2(v48) = -106; PlayerObject::spawnPortalCircle(a1, (__int64)&v48); PlayerObject::spawnScaleCircle((float *)a1, v37, v38); } } if ( *(_BYTE *)(a1 + 2499) && *(_BYTE *)(a1 + 1840) && !*(_BYTE *)(a1 + 2610) && !*(_BYTE *)(a1 + 2540) ) { *(_WORD *)(a1 + 1840) = 0; *(_BYTE *)(a1 + 1648) = 0; *(_DWORD *)(a1 + 1832) = 0; PlayerObject::runBallRotation(a1, 1.0); } v39 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, v39); PlayerObject::placeStreakPoint(a1, v40); return (_UNKNOWN **)PlayerObject::updateRobotAnimationSpeed(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source