// // PlayerObject::toggleBirdMode from 0x1002c6b00 to 0x1002c6d80 (640 bytes) // // 5 xrefs: // > GJBaseGameLayer::switchToFlyMode @ 0x100281d8c // > PlayerObject::switchedToMode @ 0x1002c3ce0 // > PlayerObject::switchedToMode @ 0x1002c3d68 // > PlayerObject::copyAttributes @ 0x1002ca078 // > MenuGameLayer::resetPlayer @ 0x1004426a0 // // 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:02:33 +0000 // void __fastcall PlayerObject::toggleBirdMode(__int64 a1, int a2, char a3) { __int64 v3; // x29 __int64 v4; // x30 _DWORD *v8; // x0 __int64 v9; // x0 __int64 v10; // x22 __int64 v11; // x22 int8x8_t v12; // d3 __n128 v13; // q0 float32x2_t v14; // [xsp+0h] [xbp-40h] BYREF float v15; // [xsp+8h] [xbp-38h] int v16; // [xsp+Ch] [xbp-34h] __int64 v17; // [xsp+30h] [xbp-10h] __int64 v18; // [xsp+38h] [xbp-8h] if ( *(unsigned __int8 *)(a1 + 2418) == a2 ) return; v17 = v3; v18 = v4; *(_QWORD *)(a1 + 1960) = *(_QWORD *)(a1 + 2624); *(_BYTE *)(a1 + 2418) = a2; if ( a2 ) PlayerObject::switchedToMode(a1, 19); *(_WORD *)(a1 + 1784) = 0; *(_BYTE *)(a1 + 1640) = 0; *(_DWORD *)(a1 + 1776) = 0; *(double *)(a1 + 2392) = *(double *)(a1 + 2392) * 0.5; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)a1 + 360LL))(a1, 0.0); *(_BYTE *)(a1 + 2500) = 0; *(_BYTE *)(a1 + 2425) = 0; *(_BYTE *)(a1 + 1971) = 0; v8 = sub_1002C3C70(a1); if ( *(_BYTE *)(a1 + 2418) != 1 ) { PlayerObject::resetPlayerIcon(a1); if ( !a2 ) return; goto LABEL_14; } v9 = GameManager::sharedState(v8); PlayerObject::updatePlayerBirdFrame(a1, (unsigned int)(*(_DWORD *)(v9 + 752) - *(_DWORD *)(v9 + 756))); PlayerObject::stopPlatformerJumpAnimation(a1); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 1800) + 160LL))(*(_QWORD *)(a1 + 1800), 0.55); v10 = *(_QWORD *)(a1 + 1800); sub_1000262BC((float *)&v14, 0.0, 5.0); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v10 + 184LL))(v10, &v14); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1832) + 344LL))(*(_QWORD *)(a1 + 1832), 1); v11 = *(_QWORD *)(a1 + 1832); sub_1000262BC((float *)&v14, 0.0, -7.0); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v11 + 184LL))(v11, &v14); PlayerObject::updatePlayerGlow(a1); v12.i16[0] = *(_WORD *)(a1 + 2605); v12.i8[2] = *(_BYTE *)(a1 + 2607); v12.i32[1] = (unsigned __int32)v12.i32[0] >> 8; v14 = vdiv_f32(vcvt_f32_u32((uint32x2_t)vand_s8(v12, (int8x8_t)0xFF000000FFLL)), (float32x2_t)vdup_n_s32(0x437F0000u)); v15 = (float)v12.u8[2] / 255.0; v16 = 1065353216; (*(void (__fastcall **)(_QWORD, float32x2_t *))(**(_QWORD **)(a1 + 2168) + 1360LL))(*(_QWORD *)(a1 + 2168), &v14); (*(void (__fastcall **)(_QWORD, float32x2_t *))(**(_QWORD **)(a1 + 2168) + 1392LL))(*(_QWORD *)(a1 + 2168), &v14); if ( (*(_BYTE *)(a1 + 1787) & 1) == 0 ) cocos2d::CCParticleSystem::resetSystem(*(_QWORD *)(a1 + 2168)); if ( *(_BYTE *)(a1 + 1974) == 1 ) cocos2d::CCParticleSystem::stopSystem(*(_QWORD *)(a1 + 2160)); *(_BYTE *)(a1 + 1974) = 0; if ( (a3 & 1) == 0 ) PlayerObject::spawnPortalCircle(a1, 51455); PlayerObject::activateStreak(a1); GJActionManager::stopInternalAction(*(_QWORD *)(a1 + 3032), 6); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)a1 + 128LL))(a1, *(float *)(a1 + 2472)); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)a1 + 144LL))(a1, *(float *)(a1 + 2472)); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1848) + 344LL))(*(_QWORD *)(a1 + 1848), 1); if ( a2 ) { LABEL_14: PlayerObject::updatePlayerArt(a1, v13); sub_1002C28E0(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source