// // AchievementsLayer::customSetup from 0x1400976c0 to 0x140097972 (690 bytes) // // 3 xrefs: // > @ 0x140719da8 // > @ 0x140912cc8 // > @ 0x140912cd4 // // 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:26:03 +0000 // __int64 __fastcall AchievementsLayer::customSetup(__int64 *a1) { __int64 v2; // rax char v3; // r15 __int64 v4; // rax const char *v5; // rsi float v6; // xmm6_4 __int64 v7; // r14 const char *v8; // rcx int v9; // eax cocos2d::CCObject *v10; // rax __int64 *v11; // rdi __int64 v12; // rbx __int64 v13; // rcx cocos2d::CCDirector *v14; // rax float v15; // xmm0_4 __int64 v16; // rax __int64 v17; // rax cocos2d::CCSprite *v18; // rax int v19; // ebx cocos2d::CCObject *v20; // rax __int64 *v21; // rdi __int64 v22; // rbx __int64 v23; // rcx cocos2d::CCDirector *v24; // rax float v25; // xmm0_4 __int64 v26; // rax __int64 v27; // rax struct cocos2d::CCLabelBMFont *v28; // rax __int64 v29; // rcx __int64 *v30; // rdi __int64 v31; // rbx __int64 v32; // rcx cocos2d::CCDirector *v33; // rax float v34; // xmm6_4 __int64 v35; // rcx cocos2d::CCDirector *v36; // rax float ScreenRight; // xmm1_4 __int64 v38; // rax __int64 *v39; // rdi __int64 v40; // rbx __int64 v41; // rax __int64 result; // rax char v43; // [rsp+60h] [rbp+8h] BYREF float v44; // [rsp+64h] [rbp+Ch] char v45; // [rsp+68h] [rbp+10h] BYREF char v46; // [rsp+70h] [rbp+18h] BYREF v2 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v2, &v43); v3 = *(_BYTE *)(cocos2d::CCApplication::sharedApplication() + 209); v4 = cocos2d::CCMenu::create(); v5 = "GJ_arrow_01_001.png"; v6 = v44 * 0.5; v7 = v4; v8 = "GJ_arrow_01_001.png"; if ( v3 ) v8 = "controllerBtn_DPad_Left_001.png"; v9 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName(v8); v10 = CCMenuItemSpriteExtra::create(v9, 0, (int)a1, (__int64)AchievementsLayer::onPrevPage); a1[78] = (__int64)v10; (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v7 + 464LL))(v7, v10); v11 = (__int64 *)a1[78]; v12 = *v11; v14 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v13); v15 = cocos2d::CCDirector::getScreenLeft(v14) + 24.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v45, v15, v6); cocos2d::CCNode::convertToNodeSpace(v7, &v46, v16); (*(void (__fastcall **)(__int64 *, __int64))(v12 + 184))(v11, v17); if ( v3 ) v5 = "controllerBtn_DPad_Right_001.png"; v18 = cocos2d::CCSprite::createWithSpriteFrameName(v5); v19 = (int)v18; if ( !v3 ) cocos2d::CCSprite::setFlipX(v18, 1); v20 = CCMenuItemSpriteExtra::create(v19, 0, (int)a1, (__int64)AchievementsLayer::onNextPage); a1[77] = (__int64)v20; (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v7 + 464LL))(v7, v20); v21 = (__int64 *)a1[77]; v22 = *v21; v24 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v23); v25 = cocos2d::CCDirector::getScreenRight(v24) - 24.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v45, v25, v6); cocos2d::CCNode::convertToNodeSpace(v7, &v46, v26); (*(void (__fastcall **)(__int64 *, __int64))(v22 + 184))(v21, v27); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1[72] + 456LL))(a1[72], v7, 10); v28 = cocos2d::CCLabelBMFont::create(" ", "goldFont.fnt"); v29 = a1[72]; a1[79] = (__int64)v28; (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v29 + 464LL))(v29, v28); v30 = (__int64 *)a1[79]; v31 = *v30; v33 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v32); v34 = cocos2d::CCDirector::getScreenTop(v33) - 4.0; v36 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v35); ScreenRight = cocos2d::CCDirector::getScreenRight(v36); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v45, (float)(ScreenRight - 7.0) - 0.0, v34); (*(void (__fastcall **)(__int64 *, __int64))(v31 + 184))(v30, v38); v39 = (__int64 *)a1[79]; v40 = *v39; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v45, 1.0, 1.0); (*(void (__fastcall **)(__int64 *, __int64))(v40 + 288))(v39, v41); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1[79] + 160LL))(a1[79]); result = AchievementsLayer::loadPage(a1, 0); if ( v3 ) return GameToolbox::addRThumbScrollButton(a1[72]); return result; }