//
// EditorUI::getSnapAngle from 0xc00dbc to 0xc00e64 (168 bytes)
//
// 4 xrefs:
// > EditorUI::transformObject @ 0xc0114c
// > EditorUI::transformObjectCall @ 0xc018bc
// > EditorUI::transformObjectCall @ 0xc01abc
// > ??> @ 0xd4da0
//
// 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:48 +0000
//
cocos2d::CCArray *__fastcall EditorUI::getSnapAngle(cocos2d::CCArray *this, GameObject *a2, cocos2d::CCArray *a3)
{
__int64 v4; // x21
unsigned int v5; // w19
GameObject *v6; // x0
float v7; // s0
bool v8; // cf
GameObject *v9; // [xsp+38h] [xbp+38h]
v4 = (__int64)this;
if ( a3 && (v9 = a2, this = (cocos2d::CCArray *)cocos2d::CCArray::count(a3), a2 = v9, (_DWORD)this) )
{
v5 = 0;
do
{
v8 = v5 >= (unsigned int)cocos2d::CCArray::count(a3);
this = a3;
if ( v8 )
break;
v6 = (GameObject *)cocos2d::CCArray::objectAtIndex(a3, v5++);
this = (cocos2d::CCArray *)LevelEditorLayer::rotationForSlopeNearObject(*(LevelEditorLayer **)(v4 + 1440), v6);
}
while ( v7 == -1.0 );
}
else if ( a2 )
{
return (cocos2d::CCArray *)LevelEditorLayer::rotationForSlopeNearObject(*(LevelEditorLayer **)(v4 + 1440), a2);
}
return this;
}