// // EditorUI::applySpecialOffset from 0x70d568 to 0x70d678 (272 bytes) // // 3 xrefs: // > EditorUI::findSnapObject @ 0x48509a // > EditorUI::findSnapObject @ 0x485174 // > EditorUI::ccTouchEnded @ 0x6f0f34 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:57:42 +0000 // cocos2d::CCPoint *__fastcall EditorUI::applySpecialOffset( cocos2d::CCPoint *a1, int a2, float *a3, char **a4, cocos2d::CCPoint *a5) { const cocos2d::CCPoint *v9; // r0 const cocos2d::CCPoint *v10; // r0 float v11; // s15 float v12; // s15 float v14; // [sp+4h] [bp-18h] BYREF float v15; // [sp+8h] [bp-14h] float v16; // [sp+Ch] [bp-10h] BYREF float v17; // [sp+10h] [bp-Ch] if ( isSpecialSnapObject(a4[223]) ) { v9 = (const cocos2d::CCPoint *)(*((int (__fastcall **)(char **))*a4 + 24))(a4); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v16, v9); EditorUI::getGridSnappedPos((int)&v14, a2, &v16); if ( !cocos2d::CCPoint::equals(a5, (const cocos2d::CCPoint *)&unk_D2DBE0) ) cocos2d::CCPoint::operator=(&v14, a5); v10 = (const cocos2d::CCPoint *)(*((int (__fastcall **)(char **))*a4 + 24))(a4); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v16, v10); v11 = fabsf(*a3); if ( v11 > 0.0 ) { if ( fabsf((float)(v16 + v11) - v14) < fabsf((float)(v16 - v11) - v14) ) v11 = -v11; *a3 = v11; } v12 = fabsf(a3[1]); if ( v12 > 0.0 ) { if ( fabsf((float)(v17 + v12) - v15) < fabsf((float)(v17 - v12) - v15) ) v12 = -v12; a3[1] = v12; } } cocos2d::CCPoint::CCPoint(a1, (const cocos2d::CCPoint *)a3); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source