// // GJSmartTemplate::smartObjectToType from 0xb0c6c4 to 0xb0c968 (676 bytes) // // 12 xrefs: // > EditorUI::addObjectsToSmartTemplate @ 0x7cbdb8 // > GJSmartTemplate::offsetForObject @ 0xb0c9b8 // > GJSmartTemplate::keyFromNeighbors @ 0xb0dc7c // > GJSmartTemplate::keyFromNeighbors @ 0xb0dcec // > GJSmartTemplate::keyFromNeighbors @ 0xb0dd38 // > GJSmartTemplate::keyFromNeighbors @ 0xb0dd88 // > GJSmartTemplate::keyFromNeighbors @ 0xb0ddd8 // > GJSmartTemplate::keyFromNeighbors @ 0xb0de1c // > GJSmartTemplate::keyFromNeighbors @ 0xb0de54 // > GJSmartTemplate::keyFromNeighbors @ 0xb0de8c // > GJSmartTemplate::keyFromNeighbors @ 0xb0dec4 // > @ 0xe7d30 // // 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:01:26 +0000 // __int64 __fastcall GJSmartTemplate::smartObjectToType(_DWORD *a1, cocos2d::CCPoint *this) { int v4; // w1 unsigned int v5; // w20 float v7; // s0 _BOOL4 v8; // w0 float v9; // s8 float v10; // s8 float v11; // s8 float v12; // s8 if ( !a1 ) { LABEL_10: v5 = 48; LABEL_7: cocos2d::CCPoint::equals(this, (const cocos2d::CCPoint *)&unk_155E0E0); return v5; } v4 = a1[257]; if ( v4 == 2896 ) { v5 = 48; switch ( a1[271] ) { case 0: case 7: v5 = 50; break; case 1: case 5: v5 = 52; break; case 2: case 4: v5 = 51; break; case 3: case 6: v5 = 53; break; default: goto LABEL_7; } goto LABEL_7; } if ( v4 != 2897 ) { if ( v4 == 2895 ) v5 = 49; else v5 = 48; goto LABEL_7; } v7 = fabsf((*(float (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 368LL))(a1)); v8 = v7 == 270.0 || v7 == 90.0; switch ( a1[271] ) { case 0: case 7: v5 = 54; if ( !v8 ) goto LABEL_37; v5 = 69; goto LABEL_19; case 1: case 5: v5 = 65; if ( v8 ) { v5 = 73; goto LABEL_25; } LABEL_37: if ( !(unsigned __int8)cocos2d::CCPoint::equals(this, (const cocos2d::CCPoint *)&unk_155E0E0) ) { v12 = *(float *)this; if ( v12 > *(float *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 192LL))(a1) ) { if ( v5 == 54 ) v5 = 55; else v5 = 66; } } break; case 2: case 4: v5 = 56; if ( !v8 ) goto LABEL_33; v5 = 71; LABEL_19: if ( !(unsigned __int8)cocos2d::CCPoint::equals(this, (const cocos2d::CCPoint *)&unk_155E0E0) ) { v9 = *((float *)this + 1); if ( v9 < *(float *)((*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 192LL))(a1) + 4) ) { if ( v5 == 69 ) return 70; else return 72; } } return v5; case 3: case 6: v5 = 67; if ( v8 ) { v5 = 75; LABEL_25: if ( !(unsigned __int8)cocos2d::CCPoint::equals(this, (const cocos2d::CCPoint *)&unk_155E0E0) ) { v10 = *((float *)this + 1); if ( v10 > *(float *)((*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 192LL))(a1) + 4) ) { if ( v5 == 73 ) v5 = 74; else v5 = 76; } } } else { LABEL_33: if ( !(unsigned __int8)cocos2d::CCPoint::equals(this, (const cocos2d::CCPoint *)&unk_155E0E0) ) { v11 = *(float *)this; if ( v11 < *(float *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 192LL))(a1) ) { if ( v5 == 56 ) v5 = 57; else v5 = 68; } } } break; default: goto LABEL_10; } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source