// // GJSmartTemplate::keyFromNeighbors from 0x1402b3b10 to 0x1402b3ef6 (998 bytes) // // 3 xrefs: // > EditorUI::addObjectsToSmartTemplate @ 0x1401162ce // > EditorUI::createSmartObjectsFromTemplate @ 0x1401172a6 // > @ 0x1406d23e4 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=1 __int64 __fastcall GJSmartTemplate::keyFromNeighbors( __int64 a1, __int64 a2, SmartGameObject *a3, SmartGameObject *a4, SmartGameObject *a5, SmartGameObject *a6, SmartGameObject *a7, SmartGameObject *a8, SmartGameObject *a9, SmartGameObject *a10, SmartGameObject *a11) { float v12; // xmm9_4 ObjectToolbox *v13; // rcx float v14; // xmm0_4 float v15; // xmm8_4 double v16; // xmm0_8 float v17; // xmm9_4 double v18; // xmm0_8 float v19; // xmm9_4 double v20; // xmm0_8 float v21; // xmm9_4 double v22; // xmm0_8 float v23; // xmm9_4 double v24; // xmm0_8 float v25; // xmm9_4 double v26; // xmm0_8 double v27; // xmm0_8 char v28; // r13 char v29; // r12 char v30; // r15 char v31; // r14 char v32; // si char v33; // di char v34; // bl cocos2d::CCPoint v35; // rax char v36; // al char v38; // [rsp+30h] [rbp-D8h] _BYTE v40[8]; // [rsp+80h] [rbp-88h] BYREF _BYTE v41[8]; // [rsp+88h] [rbp-80h] BYREF _BYTE v42[8]; // [rsp+90h] [rbp-78h] BYREF _BYTE v43[8]; // [rsp+98h] [rbp-70h] BYREF _BYTE v44[8]; // [rsp+A0h] [rbp-68h] BYREF _BYTE v45[8]; // [rsp+A8h] [rbp-60h] BYREF _BYTE v46[8]; // [rsp+B0h] [rbp-58h] BYREF _BYTE v47[8]; // [rsp+B8h] [rbp-50h] BYREF SmartGameObject *v48; // [rsp+C0h] [rbp-48h] __int64 v49; // [rsp+C8h] [rbp-40h] SmartGameObject *v50; // [rsp+D0h] [rbp-38h] __int64 v51; // [rsp+D8h] [rbp-30h] cocos2d::CCPoint v52; // [rsp+E0h] [rbp-28h] BYREF v48 = a4; v50 = a3; v49 = a2; v51 = a1; v12 = 30.0; ObjectToolbox::sharedState(); v14 = ObjectToolbox::gridNodeSizeForKey(v13, 0); v15 = v14; if ( v14 == 15.0 ) v12 = 15.0; cocos2d::CCPoint::CCPoint(v14, v12); v16 = cocos2d::CCPoint::operator+(a2, v40); v17 = 30.0; ObjectToolbox::sharedState(); if ( v15 == 15.0 ) v17 = 15.0; cocos2d::CCPoint::CCPoint(*(float *)&v16, -v17); v18 = cocos2d::CCPoint::operator+(a2, v41); v19 = 30.0; ObjectToolbox::sharedState(); if ( v15 == 15.0 ) v19 = 15.0; cocos2d::CCPoint::CCPoint(*(float *)&v18, v19); v20 = cocos2d::CCPoint::operator+(a2, v42); v21 = 30.0; ObjectToolbox::sharedState(); if ( v15 == 15.0 ) v21 = 15.0; cocos2d::CCPoint::CCPoint(*(float *)&v20, -v21); v22 = cocos2d::CCPoint::operator+(a2, v43); v23 = 30.0; ObjectToolbox::sharedState(); if ( v15 == 15.0 ) v23 = 15.0; cocos2d::CCPoint::CCPoint(*(float *)&v22, v23); v24 = cocos2d::CCPoint::operator+(a2, v44); v25 = 30.0; ObjectToolbox::sharedState(); if ( v15 == 15.0 ) v25 = 15.0; cocos2d::CCPoint::CCPoint(*(float *)&v24, -v25); v26 = cocos2d::CCPoint::operator+(a2, v45); ObjectToolbox::sharedState(); cocos2d::CCPoint::CCPoint(*(float *)&v26, 0.0); v27 = cocos2d::CCPoint::operator+(a2, v46); ObjectToolbox::sharedState(); cocos2d::CCPoint::CCPoint(*(float *)&v27, 0.0); cocos2d::CCPoint::operator+(a2, v47); v38 = GJSmartTemplate::smartObjectToType(a11, (cocos2d::CCPoint)v40); v28 = GJSmartTemplate::smartObjectToType(a10, (cocos2d::CCPoint)v41); v29 = GJSmartTemplate::smartObjectToType(a9, (cocos2d::CCPoint)v42); v30 = GJSmartTemplate::smartObjectToType(a8, (cocos2d::CCPoint)v43); v31 = GJSmartTemplate::smartObjectToType(a7, (cocos2d::CCPoint)v44); v32 = GJSmartTemplate::smartObjectToType(a6, (cocos2d::CCPoint)v45); v33 = GJSmartTemplate::smartObjectToType(a5, (cocos2d::CCPoint)v46); v34 = GJSmartTemplate::smartObjectToType(v48, (cocos2d::CCPoint)v47); cocos2d::CCPoint::CCPoint(&v52); v36 = GJSmartTemplate::smartObjectToType(v50, v35); *(_OWORD *)a1 = 0; *(_QWORD *)(a1 + 16) = 0; *(_QWORD *)(a1 + 24) = 15; *(_BYTE *)a1 = 0; sub_14003B190((void **)a1, v36); sub_14003B190((void **)a1, v34); sub_14003B190((void **)a1, v33); sub_14003B190((void **)a1, v32); sub_14003B190((void **)a1, v31); sub_14003B190((void **)a1, v30); sub_14003B190((void **)a1, v29); sub_14003B190((void **)a1, v28); sub_14003B190((void **)a1, v38); return a1; }