//
// EditorUI::angleChanged from 0x10004e560 to 0x10004e666 (262 bytes)
//
// 2 xrefs:
// > sub_10004E670 @ 0x10004e67c
// > ??> @ 0x1008b0630
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall EditorUI::angleChanged(EditorUI *a1, float a2)
{
cocos2d::CCPoint v2; // xmm1_8
GameObject *m_selectedObject; // rdi
float v5; // xmm0_4
GameObject *v6; // r14
GameObject_vtbl *v7; // rax
float v8; // xmm0_4
GameObject *v9; // rbx
double v10; // xmm0_8
cocos2d::CCArray *m_selectedObjects; // r14
double v12; // xmm0_8
_BYTE v13[8]; // [rsp+8h] [rbp-28h] BYREF
float v14; // [rsp+10h] [rbp-20h]
float v15; // [rsp+14h] [rbp-1Ch]
v15 = a2;
m_selectedObject = a1->m_selectedObject;
if ( m_selectedObject )
{
v14 = ((float (__fastcall *)(GameObject *))m_selectedObject->getRotationX)(m_selectedObject);
v5 = ((float (__fastcall *)(GameObject *))a1->m_selectedObject->getRotationY)(a1->m_selectedObject);
v6 = a1->m_selectedObject;
v7 = v6->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
if ( v14 == v5 )
{
*(float *)&v12 = ((float (__fastcall *)(GameObject *))v7->getRotation)(v6) + v15;
((void (__fastcall *)(GameObject *, double))v6->setRotation)(v6, v12);
}
else
{
v8 = ((float (__fastcall *)(GameObject *))v7->getRotationX)(v6);
((void (__fastcall *)(GameObject *, float))v6->setRotationX)(v6, v8 + v15);
v9 = a1->m_selectedObject;
*(float *)&v10 = ((float (__fastcall *)(GameObject *))v9->getRotationY)(v9) + v15;
((void (__fastcall *)(GameObject *, double))v9->setRotationY)(v9, v10);
}
}
else if ( (unsigned int)sub_100720070(a1->m_selectedObjects) )
{
m_selectedObjects = a1->m_selectedObjects;
sub_10028CC60(v13);
EditorUI::rotateObjects(a1, m_selectedObjects, v15, v2);
}
}