//
// GameToolbox::addRThumbScrollButton from 0x69cc28 to 0x69ce00 (472 bytes)
//
// 3 xrefs:
// > AchievementsLayer::customSetup @ 0x732f84
// > LevelBrowserLayer::init @ 0x7f9e20
// > ??> @ 0xa9a38
//
// 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:50:40 +0000
//
__int64 __fastcall GameToolbox::addRThumbScrollButton(GameToolbox *this, cocos2d::CCLayer *a2)
{
cocos2d::CCDirector *v3; // x0
const char *v4; // x1
cocos2d::CCDirector **v5; // x20
void (__fastcall *v6)(cocos2d::CCDirector **, __int64 *); // x23
cocos2d::CCDirector *v7; // x0
float v8; // s0
const char *v9; // x1
__int64 v10; // x23
void (__fastcall *v11)(__int64, __int64 *); // x25
__int64 v12; // x26
const char *v13; // x1
__int64 v14; // x23
cocos2d::CCDirector **v15; // x0
__int64 (__fastcall *v16)(cocos2d::CCDirector **); // x1
void (__fastcall *v17)(__int64, __int64 *); // x20
__int64 v18; // x22
__int64 v20; // [xsp+60h] [xbp+60h] BYREF
_BYTE v21[8]; // [xsp+68h] [xbp+68h] BYREF
__int64 v22; // [xsp+70h] [xbp+70h] BYREF
v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
cocos2d::CCDirector::getWinSize(&v20, v3);
v5 = (cocos2d::CCDirector **)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"controllerBtn_RThumb_001.png",
v4);
(*(void (__fastcall **)(GameToolbox *, cocos2d::CCDirector **))(*(_QWORD *)this + 456LL))(this, v5);
v6 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v5 + 23);
v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v5);
cocos2d::CCDirector::getScreenRight(v7);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, v8 - 24.0, (float)(*((float *)&v20 + 1) * 0.5) + 80.0);
v6(v5, &v22);
v10 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_upBtn_001.png", v9);
(*(void (__fastcall **)(GameToolbox *, __int64))(*(_QWORD *)this + 456LL))(this, v10);
v11 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v10 + 184LL);
v12 = (*((__int64 (__fastcall **)(cocos2d::CCDirector **))*v5 + 24))(v5);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 0.0, 22.0);
cocos2d::CCPoint::operator+(&v22, v12);
v11(v10, &v22);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v10 + 160LL))(v10, 0.7);
v14 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_downBtn_001.png", v13);
(*(void (__fastcall **)(GameToolbox *, __int64))(*(_QWORD *)this + 456LL))(this, v14);
v15 = v5;
v16 = *((__int64 (__fastcall **)(cocos2d::CCDirector **))*v5 + 24);
v17 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v14 + 184LL);
v18 = v16(v15);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 0.0, -22.0);
cocos2d::CCPoint::operator+(&v22, v18);
v17(v14, &v22);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v14 + 160LL))(v14, 0.7);
return _stack_chk_guard;
}