//
// GameToolbox::addRThumbScrollButton from 0x140065120 to 0x1400652bd (413 bytes)
//
// 3 xrefs:
// > AchievementsLayer::customSetup @ 0x140082298
// > LevelBrowserLayer::init @ 0x1402c9fdd
// > ??> @ 0x1406c5d84
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GameToolbox::addRThumbScrollButton(cocos2d::CCLayer *a1)
{
cocos2d::CCDirector *v2; // rax
struct cocos2d::CCSprite *v3; // r14
cocos2d::CCSprite_vtbl *v4; // rbx
__int64 v5; // rcx
cocos2d::CCDirector *v6; // rax
float v7; // xmm0_4
const cocos2d::CCPoint *v8; // rax
struct cocos2d::CCSprite *v9; // rdi
__int64 v10; // rax
struct cocos2d::CCSprite *v11; // rdi
__int64 v12; // rax
float v13; // [rsp+54h] [rbp+Ch]
cocos2d::CCPoint v14; // [rsp+58h] [rbp+10h] BYREF
cocos2d::CCPoint v15; // [rsp+60h] [rbp+18h] BYREF
v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(v2);
v3 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_RThumb_001.png");
a1->addChild_1(a1, v3);
v4 = v3->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);
v7 = cocos2d::CCDirector::getScreenRight(v6) - 24.0;
cocos2d::CCPoint::CCPoint(&v14, v7, (float)(v13 * 0.5) + 80.0);
v4->setPosition_0(v3, v8);
v9 = cocos2d::CCSprite::createWithSpriteFrameName("edit_upBtn_001.png");
a1->addChild_1(a1, v9);
cocos2d::CCPoint::CCPoint(&v15, 0.0, 22.0);
v10 = (__int64)v3->getPosition_0(v3);
cocos2d::CCPoint::operator+(v10, &v14);
v9->setPosition_0(v9, &v14);
((void (__fastcall *)(struct cocos2d::CCSprite *))v9->setScale_0)(v9);
v11 = cocos2d::CCSprite::createWithSpriteFrameName("edit_downBtn_001.png");
a1->addChild_1(a1, v11);
cocos2d::CCPoint::CCPoint(&v15, 0.0, -22.0);
v12 = (__int64)v3->getPosition_0(v3);
cocos2d::CCPoint::operator+(v12, &v14);
v11->setPosition_0(v11, &v14);
((void (__fastcall *)(struct cocos2d::CCSprite *))v11->setScale_0)(v11);
}