//
// GJScaleControl::applyFocusedInput from 0xbd0478 to 0xbd0520 (168 bytes)
//
// 3 xrefs:
// > EditorUI::keyDown @ 0xbd6cf0
// > EditorUI::handleAction @ 0xbd8ac8
// > ??> @ 0x52780
//
// 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:37 +0000
//
__int64 __fastcall GJScaleControl::applyFocusedInput(GJScaleControl *this)
{
__int64 v2; // x1
unsigned int v3; // w19
__int64 v4; // x0
unsigned int v5; // w19
__int64 v6; // x0
unsigned int v7; // w19
v2 = *((_QWORD *)this + 61);
if ( v2 && (v3 = *(unsigned __int8 *)(v2 + 460), *(_BYTE *)(v2 + 460)) )
{
GJScaleControl::onApplyScale(this, *((cocos2d::CCObject **)this + 64));
return v3;
}
else
{
v4 = *((_QWORD *)this + 62);
if ( v4 && (v5 = *(unsigned __int8 *)(v4 + 460), *(_BYTE *)(v4 + 460)) )
{
GJScaleControl::onApplyScale(this, *((cocos2d::CCObject **)this + 65));
return v5;
}
else
{
v6 = *((_QWORD *)this + 63);
if ( !v6 )
return 0;
v7 = *(unsigned __int8 *)(v6 + 460);
if ( !*(_BYTE *)(v6 + 460) )
return v7;
GJScaleControl::onApplyScale(this, *((cocos2d::CCObject **)this + 66));
return v7;
}
}
}