//
// EditorUI::angleChanged from 0x140123120 to 0x14012323f (287 bytes)
//
// 5 xrefs:
// > ??> @ 0x140553230
// > ??> @ 0x140670544
// > ??> @ 0x140670578
// > ??> @ 0x14067058c
// > ??> @ 0x1406c9900
//
// 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 EditorUI::angleChanged(EditorUI *a1, float a2)
{
CCMenuItemSpriteExtra *m_rotateBtn; // rcx
double v4; // xmm0_8
bool v5; // zf
CCMenuItemSpriteExtra_vtbl *v6; // rbx
CCMenuItemSpriteExtra *v7; // rcx
CCMenuItemSpriteExtra_vtbl *v8; // rbx
cocos2d::CCPoint v9; // rax
cocos2d::CCPoint v10; // [rsp+50h] [rbp+8h] BYREF
m_rotateBtn = a1->m_rotateBtn;
if ( m_rotateBtn )
{
v4 = ((double (*)(void))m_rotateBtn->getRotationX)();
v5 = *(float *)&v4 == a1->m_rotateBtn->getRotationY(a1->m_rotateBtn);
v6 = a1->m_rotateBtn->__vftable;
if ( v5 )
{
((void (*)(void))v6->getRotation)();
((void (__fastcall *)(CCMenuItemSpriteExtra *))v6->setRotation)(a1->m_rotateBtn);
}
else
{
((void (*)(void))v6->getRotationX)();
((void (__fastcall *)(CCMenuItemSpriteExtra *))v6->setRotationX)(a1->m_rotateBtn);
v7 = a1->m_rotateBtn;
v8 = v7->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v7->getRotationY(v7);
((void (__fastcall *)(CCMenuItemSpriteExtra *))v8->setRotationY)(a1->m_rotateBtn);
}
}
else if ( cocos2d::CCArray::count((cocos2d::CCArray *)a1->FLAlertLayerProtocol::__vftable) )
{
cocos2d::CCPoint::CCPoint(&v10);
EditorUI::rotateObjects(
(EditorUI *)((char *)a1 - 424),
(cocos2d::CCArray *)a1->FLAlertLayerProtocol::__vftable,
a2,
v9);
}
}