// // GJSmartTemplate::keyFromNeighbors from 0x1403b9ff0 to 0x1403ba3d9 (1001 bytes) // // 3 xrefs: // > EditorUI::addObjectsToSmartTemplate @ 0x1401b5f00 // > EditorUI::createSmartObjectsFromTemplate @ 0x1401b6ce6 // > @ 0x140923da4 // // 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:31:26 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall GJSmartTemplate::keyFromNeighbors( __int64 a1, const struct cocos2d::CCPoint *a2, _DWORD *a3, _DWORD *a4, _DWORD *a5, _DWORD *a6, _DWORD *a7, _DWORD *a8, _DWORD *a9, _DWORD *a10, _DWORD *a11) { float v12; // xmm7_4 float v13; // xmm9_4 __int64 v14; // rcx double v15; // xmm0_8 float v16; // xmm8_4 float v17; // xmm9_4 __int64 v18; // rcx float v19; // xmm9_4 __int64 v20; // rcx float v21; // xmm9_4 __int64 v22; // rcx float v23; // xmm9_4 __int64 v24; // rcx float v25; // xmm9_4 __int64 v26; // rcx float v27; // xmm9_4 __int64 v28; // rcx __int64 v29; // rcx char v30; // r13 char v31; // r12 char v32; // r15 char v33; // r14 char v34; // si char v35; // di char v36; // bl float *v37; // rax char v38; // al char v40; // [rsp+30h] [rbp-D8h] _BYTE v42[8]; // [rsp+40h] [rbp-C8h] BYREF _BYTE v43[8]; // [rsp+48h] [rbp-C0h] BYREF _BYTE v44[8]; // [rsp+50h] [rbp-B8h] BYREF _BYTE v45[8]; // [rsp+58h] [rbp-B0h] BYREF _BYTE v46[8]; // [rsp+60h] [rbp-A8h] BYREF _BYTE v47[8]; // [rsp+68h] [rbp-A0h] BYREF _BYTE v48[8]; // [rsp+70h] [rbp-98h] BYREF _BYTE v49[8]; // [rsp+78h] [rbp-90h] BYREF float v50; // [rsp+80h] [rbp-88h] BYREF float v51; // [rsp+88h] [rbp-80h] BYREF float v52; // [rsp+90h] [rbp-78h] BYREF float v53; // [rsp+98h] [rbp-70h] BYREF float v54; // [rsp+A0h] [rbp-68h] BYREF float v55; // [rsp+A8h] [rbp-60h] BYREF float v56; // [rsp+B0h] [rbp-58h] BYREF float v57; // [rsp+B8h] [rbp-50h] BYREF _DWORD *v58; // [rsp+C0h] [rbp-48h] const struct cocos2d::CCPoint *v59; // [rsp+C8h] [rbp-40h] _DWORD *v60; // [rsp+D0h] [rbp-38h] __int64 v61; // [rsp+D8h] [rbp-30h] _BYTE v62[96]; // [rsp+E0h] [rbp-28h] BYREF v58 = a4; v60 = a3; v59 = a2; v61 = a1; v12 = 30.0; v13 = 30.0; ObjectToolbox::sharedState(a1); v15 = ObjectToolbox::gridNodeSizeForKey(v14, 0); v16 = *(float *)&v15; if ( *(float *)&v15 == 15.0 ) v13 = 15.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v42, v13, -v13); cocos2d::CCPoint::operator+(a2, &v50, v42); v17 = 30.0; ObjectToolbox::sharedState(v18); if ( v16 == 15.0 ) v17 = 15.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, -v17, -v17); cocos2d::CCPoint::operator+(a2, &v51, v43); v19 = 30.0; ObjectToolbox::sharedState(v20); if ( v16 == 15.0 ) v19 = 15.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, v19, v19); cocos2d::CCPoint::operator+(a2, &v52, v44); v21 = 30.0; ObjectToolbox::sharedState(v22); if ( v16 == 15.0 ) v21 = 15.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, -v21, v21); cocos2d::CCPoint::operator+(a2, &v53, v45); v23 = 30.0; ObjectToolbox::sharedState(v24); if ( v16 == 15.0 ) v23 = 15.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, v23, 0.0); cocos2d::CCPoint::operator+(a2, &v54, v46); v25 = 30.0; ObjectToolbox::sharedState(v26); if ( v16 == 15.0 ) v25 = 15.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, -v25, 0.0); cocos2d::CCPoint::operator+(a2, &v55, v47); v27 = 30.0; ObjectToolbox::sharedState(v28); if ( v16 == 15.0 ) v27 = 15.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v48, 0.0, -v27); cocos2d::CCPoint::operator+(a2, &v56, v48); ObjectToolbox::sharedState(v29); if ( v16 == 15.0 ) v12 = 15.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v49, 0.0, v12); cocos2d::CCPoint::operator+(a2, &v57, v49); v40 = GJSmartTemplate::smartObjectToType(a11, &v50); v30 = GJSmartTemplate::smartObjectToType(a10, &v51); v31 = GJSmartTemplate::smartObjectToType(a9, &v52); v32 = GJSmartTemplate::smartObjectToType(a8, &v53); v33 = GJSmartTemplate::smartObjectToType(a7, &v54); v34 = GJSmartTemplate::smartObjectToType(a6, &v55); v35 = GJSmartTemplate::smartObjectToType(a5, &v56); v36 = GJSmartTemplate::smartObjectToType(v58, &v57); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, v59); v38 = GJSmartTemplate::smartObjectToType(v60, v37); *(_OWORD *)a1 = 0; *(_QWORD *)(a1 + 16) = 0; *(_QWORD *)(a1 + 24) = 15; *(_BYTE *)a1 = 0; sub_14003DBD0((void **)a1, v38); sub_14003DBD0((void **)a1, v36); sub_14003DBD0((void **)a1, v35); sub_14003DBD0((void **)a1, v34); sub_14003DBD0((void **)a1, v33); sub_14003DBD0((void **)a1, v32); sub_14003DBD0((void **)a1, v31); sub_14003DBD0((void **)a1, v30); sub_14003DBD0((void **)a1, v40); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source