//
// EditorUI::angleChanged from 0x1402027a0 to 0x1402028bb (283 bytes)
//
// 4 xrefs:
// > ??> @ 0x140751790
// > ??> @ 0x1408a3efc
// > ??> @ 0x1408a3f0c
// > ??> @ 0x14091af18
//
// This function is hookable on this platform (idp: pc, 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 11:28:13 +0000
//
unsigned int __fastcall EditorUI::angleChanged(__int64 a1, float a2, char a3)
{
__int64 v4; // rcx
double v6; // xmm0_8
float v7; // xmm6_4
__int64 *v8; // rdi
__int64 v9; // rsi
unsigned int result; // eax
cocos2d::CCPoint *v11; // rax
char v12; // [rsp+60h] [rbp+8h] BYREF
v4 = *(_QWORD *)(a1 + 1144);
if ( v4 )
{
v6 = (*(double (**)(void))(*(_QWORD *)v4 + 392LL))();
v7 = *(float *)&v6;
*(float *)&v6 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1144) + 376LL))(*(_QWORD *)(a1 + 1144));
v8 = *(__int64 **)(a1 + 1144);
v9 = *v8;
if ( *(float *)&v6 == v7 )
{
(*(void (__fastcall **)(_QWORD))(v9 + 360))(*(_QWORD *)(a1 + 1144));
return (*(__int64 (__fastcall **)(__int64 *))(v9 + 352))(v8);
}
else
{
(*(void (__fastcall **)(_QWORD))(v9 + 376))(*(_QWORD *)(a1 + 1144));
(*(void (__fastcall **)(__int64 *))(v9 + 368))(v8);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1144) + 392LL))(*(_QWORD *)(a1 + 1144));
return (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1144) + 384LL))(*(_QWORD *)(a1 + 1144));
}
}
else
{
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 520));
if ( result )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, (const struct cocos2d::CCPoint *)(a1 + 392));
return EditorUI::rotateObjects(a1 - 424, *(cocos2d::CCArray **)(a1 + 520), a2, v11, a3);
}
}
return result;
}