// // LevelPage::addSecretDoor from 0x1004857f0 to 0x10048595c (364 bytes) // // 1 xrefs: // > LevelPage::updateDynamicPage @ 0x100483c44 // // 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:05:48 +0000 // __int64 __fastcall LevelPage::addSecretDoor(__int64 *a1) { __int64 v2; // x0 __int64 result; // x0 __int64 v4; // x0 _BOOL4 UGV; // w20 __int64 v6; // x0 const char *v7; // x0 __int64 v8; // x0 __int64 v9; // x20 _WORD *v10; // x21 __n128 v11; // q0 float v12; // s2 bool v13; // cc __n128 v14; // q1 __int64 v15; // [xsp+8h] [xbp-28h] BYREF v2 = GameManager::sharedState(); result = GameManager::getUGV(v2, "6"); if ( (_DWORD)result ) { v4 = GameManager::sharedState(); UGV = GameManager::getUGV(v4, "8"); v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v6, &v15); if ( UGV ) v7 = "secretDoorBtn2_open_001.png"; else v7 = "secretDoorBtn2_closed_001.png"; a1[71] = (__int64)cocos2d::CCSprite::createWithSpriteFrameName((__int64)v7); v8 = GameManager::sharedState(); if ( !GameManager::getUGV(v8, "7") ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1[71] + 912LL))(a1[71], 0); v9 = cocos2d::CCMenu::create(); (*(void (__fastcall **)(__int64 *, __int64))(*a1 + 456))(a1, v9); v10 = CCMenuItemSpriteExtra::create(a1[71], 0, (__int64)a1, (__int64)sub_100485D8C, 0); v10[204] = 256; (*(void (__fastcall **)(__int64, _WORD *))(*(_QWORD *)v9 + 456LL))(v9, v10); v14.n128_f32[0] = (float)(*((float *)&v15 + 1) * 0.5) + -110.0; v12 = v14.n128_f32[0] + 30.0; v13 = v14.n128_f32[0] <= 128.0; v14.n128_u32[0] = 1126039552; if ( v13 ) v14.n128_f32[0] = v12; v11.n128_f32[0] = *(float *)&v15 * 0.5; (*(void (__fastcall **)(__int64, __n128, __n128))(*(_QWORD *)v9 + 200LL))(v9, v11, v14); CCMenuItemSpriteExtra::setSizeMult((__int64)v10, 2.0); sub_1002E74E0(a1[67]); return sub_1002E74E0(a1[67]); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source