//
// GJTransformControl::refreshControl from 0x10015a020 to 0x10015a17c (348 bytes)
//
// 4 xrefs:
// > EditorUI::moveObjectCall_1 @ 0x10015cef4
// > EditorUI::ccTouchMoved @ 0x100161b04
// > EditorUI::ccTouchEnded @ 0x1001622f8
// > LevelEditorLayer::handleAction @ 0x1003fc3ac
//
// 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 10:59:43 +0000
//
__int64 __fastcall GJTransformControl::refreshControl(_QWORD *a1)
{
double v2; // d0
__int64 v3; // x20
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x0
double *v8; // x0
double v9; // d0
double v10; // d0
__int64 v11; // x0
double *v12; // x0
double v13; // d0
__int64 v14; // x20
double v15; // d0
double v16; // d0
__int64 v18; // [xsp+8h] [xbp-38h] BYREF
__int64 v19; // [xsp+10h] [xbp-30h] BYREF
float32x2_t v20; // [xsp+18h] [xbp-28h] BYREF
float32x2_t v21; // [xsp+20h] [xbp-20h] BYREF
float32x2_t v22; // [xsp+28h] [xbp-18h] BYREF
sub_1000262EC(&v22);
v3 = a1[55];
if ( v3 )
{
v4 = sub_1002E75A0(a1[64], 0);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 192LL))(v4);
cocos2d::CCNode::convertToWorldSpace(&v21, a1, v5);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v3 + 104LL))(v3, &v21);
v6 = sub_1002E75A0(a1[64], 0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v6 + 184LL))(v6, &unk_1009F3FA0);
v7 = sub_1002E75A0(a1[53], 0);
v8 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7);
v9 = sub_10002630C(&v22, v8);
GJTransformControl::updateButtons(a1, 0, 1, v9);
GJTransformControl::updateButtons(a1, 0, 0, v10);
v11 = sub_1002E75A0(a1[53], 0);
v12 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 192LL))(v11);
sub_1000262F4(&v21, v12);
*(float32x2_t *)&v13 = sub_10002632C(&v22, &v21, &v20);
v14 = (*(__int64 (__fastcall **)(_QWORD, double))(*(_QWORD *)a1[55] + 120LL))(a1[55], v13);
v15 = sub_1000262F4(&v18, (double *)&v20);
sub_100160908(&v19, v14, &v18, a1[53], v15);
GJTransformControl::updateButtons(a1, 0, 1, v16);
}
return GJTransformControl::updateButtons(a1, 0, 0, v2);
}