//
// EditorUI::setDpadStep from 0xbe06fc to 0xbe07f4 (248 bytes)
//
// 4 xrefs:
// > EditorUI::createDpadMoveMenu @ 0xbe0fa8
// > EditorUI::nextDpadStep @ 0xbe2190
// > EditorUI::onDpadStep @ 0xbe21dc
// > ??> @ 0xa1fb0
//
// 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 13:03:45 +0000
//
__int64 __fastcall EditorUI::setDpadStep(__int64 this, unsigned int a2)
{
cocos2d::CCArray **v2; // x19
signed int v4; // w20
__int64 v5; // x21
int v6; // w1
void (__fastcall *v7)(__int64, _QWORD); // x22
unsigned int v8; // w0
signed int i; // w20
__int64 v10; // x0
ButtonSprite *v11; // x0
const char *v13; // x1
if ( *(_QWORD *)(this + 1592) && a2 <= 8 )
{
v2 = (cocos2d::CCArray **)this;
v4 = 0;
*(_DWORD *)(this + 1600) = a2;
while ( v4 < (int)cocos2d::CCArray::count(v2[201]) )
{
v5 = cocos2d::CCArray::objectAtIndex(v2[201], v4);
v6 = v4++;
v7 = *(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 72LL);
v8 = EditorUI::selectedMoveCommand((EditorUI *)v2, v6);
v7(v5, v8);
}
for ( i = 0; i < (int)cocos2d::CCArray::count(v2[202]); ++i )
{
v10 = cocos2d::CCArray::objectAtIndex(v2[202], i);
v11 = (ButtonSprite *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 1072LL))(v10);
if ( a2 == i )
v13 = "GJ_button_02.png";
else
v13 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v11, v13);
}
return EditorUI::updateDpadStepLabel((EditorUI *)v2);
}
return this;
}