// // EditorUI::applySpecialOffset from 0xc00320 to 0xc004a4 (388 bytes) // // 4 xrefs: // > EditorUI::findSnapObject @ 0x7c76b8 // > EditorUI::findSnapObject @ 0x7c77f8 // > EditorUI::ccTouchEnded @ 0xbd6728 // > @ 0x63d90 // // 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::CCPoint *__usercall EditorUI::applySpecialOffset@( __int64 a1@, float *a2@, int *a3@, cocos2d::CCPoint *a4@, cocos2d::CCPoint *a5@) { const cocos2d::CCPoint *v11; // x0 const cocos2d::CCPoint *v12; // x0 float v13; // s0 float v14; // s0 float v15; // [xsp+58h] [xbp+58h] BYREF float v16; // [xsp+5Ch] [xbp+5Ch] float v17; // [xsp+60h] [xbp+60h] BYREF float v18; // [xsp+64h] [xbp+64h] if ( isSpecialSnapObject(a3[257]) ) { v11 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(int *))(*(_QWORD *)a3 + 192LL))(a3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, v11); EditorUI::getGridSnappedPos(a1, &v17, (__int64)&v15); if ( !(unsigned __int8)cocos2d::CCPoint::equals(a4, (const cocos2d::CCPoint *)&unk_155EAE0) ) cocos2d::CCPoint::operator=(&v15, a4); v12 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(int *))(*(_QWORD *)a3 + 192LL))(a3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, v12); v13 = fabsf(*a2); if ( v13 > 0.0 ) { if ( vabds_f32(v17 + v13, v15) < vabds_f32(v17 - v13, v15) ) v13 = -v13; *a2 = v13; } v14 = fabsf(a2[1]); if ( v14 > 0.0 ) { if ( vabds_f32(v18 + v14, v16) < vabds_f32(v18 - v14, v16) ) a2[1] = -v14; else a2[1] = v14; } } cocos2d::CCPoint::CCPoint(a5, (const cocos2d::CCPoint *)a2); return a5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source