// // EditorUI::getSnapAngle from 0x10015d7b8 to 0x10015d86c (180 bytes) // // 2 xrefs: // > EditorUI::transformObjectCall_1 @ 0x10015d60c // > EditorUI::transformObjectCall_1 @ 0x10015d638 // // 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:44 +0000 // __int64 __fastcall EditorUI::getSnapAngle(__int64 result, __int64 a2, __int64 a3) { __int64 v4; // x19 __int64 v6; // x21 __int64 v7; // x0 float v8; // s0 v4 = result; if ( a3 && (result = sub_1002E757C(a3), (_DWORD)result) ) { result = sub_1002E757C(a3); if ( (_DWORD)result ) { v6 = 0; do { v7 = sub_1002E75A0(a3, v6); result = LevelEditorLayer::rotationForSlopeNearObject(*(_QWORD *)(v4 + 1440), v7); if ( v8 != -1.0 ) break; v6 = (unsigned int)(v6 + 1); result = sub_1002E757C(a3); } while ( (unsigned int)v6 < (unsigned int)result ); } } else if ( a2 ) { return LevelEditorLayer::rotationForSlopeNearObject(*(_QWORD *)(v4 + 1440), a2); } return result; }