// // AchievementsLayer::customSetup from 0x732d30 to 0x732fe4 (692 bytes) // // 2 xrefs: // > @ 0xab4f0 // > @ 0x142a2b8 // // 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 12:52:37 +0000 // __int64 __fastcall AchievementsLayer::customSetup(AchievementsLayer *this) { cocos2d::CCDirector *v2; // x0 PlatformToolbox *WinSize; // x0 cocos2d::CCMenu *isControllerConnected; // x0 int v5; // w24 const char *v6; // x1 cocos2d::CCNode *v7; // x21 float v8; // s8 char *v9; // x0 __int64 v10; // x0 __int64 v11; // x0 cocos2d::CCDirector **v12; // x25 void (__fastcall *v13)(cocos2d::CCDirector **, __int64 *); // x26 cocos2d::CCDirector *v14; // x0 float v15; // s0 const char *v16; // x1 cocos2d::CCSprite *v17; // x25 __int64 v18; // x0 cocos2d::CCDirector **v19; // x25 void (__fastcall *v20)(cocos2d::CCDirector **, __int64 *); // x26 cocos2d::CCDirector *v21; // x0 float v22; // s0 const char *v23; // x2 __int64 v24; // x0 cocos2d::CCDirector **v25; // x21 void (__fastcall *v26)(cocos2d::CCDirector **, __int64 *); // x23 cocos2d::CCDirector *v27; // x0 cocos2d::CCDirector *ScreenRight; // x0 float v29; // s0 float v30; // s8 cocos2d::CCDirector *v31; // x0 float v32; // s0 __int64 v33; // x21 void (__fastcall *v34)(__int64, __int64 *); // x23 cocos2d::CCLayer *v35; // x1 __int64 v37; // [xsp+60h] [xbp+60h] BYREF _BYTE v38[8]; // [xsp+68h] [xbp+68h] BYREF __int64 v39; // [xsp+70h] [xbp+70h] BYREF v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); WinSize = (PlatformToolbox *)cocos2d::CCDirector::getWinSize(&v37, v2); isControllerConnected = (cocos2d::CCMenu *)PlatformToolbox::isControllerConnected(WinSize); v5 = (unsigned __int8)isControllerConnected; v7 = (cocos2d::CCNode *)cocos2d::CCMenu::create(isControllerConnected); v8 = *((float *)&v37 + 1) * 0.5; if ( v5 ) v9 = "controllerBtn_DPad_Left_001.png"; else v9 = "GJ_arrow_01_001.png"; v10 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v9, v6); v11 = CCMenuItemSpriteExtra::create(v10, 0, (__int64)this, (__int64)AchievementsLayer::onPrevPage, 0); *((_QWORD *)this + 77) = v11; (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v7 + 456LL))(v7, v11); v12 = *((cocos2d::CCDirector ***)this + 77); v13 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v12 + 23); v14 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v12); cocos2d::CCDirector::getScreenLeft(v14); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, v15 + 24.0, v8); cocos2d::CCNode::convertToNodeSpace(&v39, v7, (const cocos2d::CCPoint *)v38); v13(v12, &v39); if ( v5 ) { v17 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"controllerBtn_DPad_Right_001.png", v16); } else { v17 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_01_001.png", v16); cocos2d::CCSprite::setFlipX(v17, 1); } v18 = CCMenuItemSpriteExtra::create((__int64)v17, 0, (__int64)this, (__int64)AchievementsLayer::onNextPage, 0); *((_QWORD *)this + 76) = v18; (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v7 + 456LL))(v7, v18); v19 = *((cocos2d::CCDirector ***)this + 76); v20 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v19 + 23); v21 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v19); cocos2d::CCDirector::getScreenRight(v21); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, v22 - 24.0, v8); cocos2d::CCNode::convertToNodeSpace(&v39, v7, (const cocos2d::CCPoint *)v38); v20(v19, &v39); (*(void (__fastcall **)(_QWORD, cocos2d::CCNode *, __int64))(**((_QWORD **)this + 72) + 464LL))( *((_QWORD *)this + 72), v7, 10); v24 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "goldFont.fnt", v23); *((_QWORD *)this + 78) = v24; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 72) + 456LL))(*((_QWORD *)this + 72), v24); v25 = *((cocos2d::CCDirector ***)this + 78); v26 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v25 + 23); v27 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v25); ScreenRight = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v27); v30 = v29; v31 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenRight); cocos2d::CCDirector::getScreenTop(v31); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, v30 - 7.0, v32 - 4.0); v26(v25, &v39); v33 = *((_QWORD *)this + 78); v34 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v33 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, 1.0, 1.0); v34(v33, &v39); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 78) + 160LL))(*((_QWORD *)this + 78), 0.6); AchievementsLayer::loadPage(this, 0); if ( v5 ) GameToolbox::addRThumbScrollButton(*((GameToolbox **)this + 72), v35); return _stack_chk_guard; }