// // GJSmartTemplate::rotateKey from 0x100006248 to 0x10000658c (836 bytes) // // 1 xrefs: // > GJSmartTemplate::scanForPrefab @ 0x100005a00 // // 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 // __n128 __usercall GJSmartTemplate::rotateKey@( std::string *__return_ptr a1@, std::string *this@, int a3@) { SmartBlockType v4; // w20 SmartBlockType v5; // w24 SmartBlockType v6; // w25 SmartBlockType v7; // w23 SmartBlockType v8; // w22 SmartBlockType v9; // w28 SmartBlockType v10; // w26 SmartBlockType v11; // w21 std::string::reference v12; // x0 SmartBlockType v13; // w9 SmartBlockType v14; // w10 SmartBlockType v15; // w11 SmartBlockType v16; // w12 SmartBlockType v17; // w13 SmartBlockType v18; // w14 SmartBlockType v19; // w15 SmartBlockType v20; // w16 SmartBlockType v21; // w27 SmartBlockType v22; // w19 unsigned int v23; // w21 unsigned int v24; // w21 unsigned int v25; // w21 unsigned int v26; // w21 unsigned int v27; // w21 unsigned int v28; // w21 unsigned int v29; // w21 unsigned int v30; // w21 unsigned int v31; // w21 __n128 result; // q0 if ( a3 ) { v4 = *std::string::at(this, 0); v5 = *std::string::at(this, 1u); v6 = *std::string::at(this, 2u); v7 = *std::string::at(this, 3u); v8 = *std::string::at(this, 4u); v9 = *std::string::at(this, 5u); v10 = *std::string::at(this, 6u); v11 = *std::string::at(this, 7u); v12 = std::string::at(this, 8u); if ( a3 == 180 ) v13 = v6; else v13 = v7; if ( a3 == 180 ) v14 = v5; else v14 = v8; if ( a3 == 180 ) v15 = v8; else v15 = v6; if ( a3 == 180 ) v16 = v7; else v16 = v5; if ( a3 == 180 ) v17 = *v12; else v17 = v11; if ( a3 == 180 ) v18 = v11; else v18 = v9; if ( a3 == 180 ) v19 = v10; else v19 = *v12; if ( a3 == 180 ) v20 = v9; else v20 = v10; if ( a3 == 270 ) { v21 = *v12; } else { v8 = v13; v7 = v14; v5 = v15; v6 = v16; v10 = v17; v21 = v18; } if ( a3 == 270 ) { v22 = v11; } else { v9 = v19; v22 = v20; } if ( a3 >= 1 && (v4 & 0xFFFFFFFE) != 0x30 ) { v23 = a3 + 90; do { v4 = GJSmartTemplate::rotateBlockType90(v4); v23 -= 90; } while ( v23 > 0x5A ); } if ( a3 >= 1 && (v8 & 0xFFFFFFFE) != 0x30 ) { v24 = a3 + 90; do { v8 = GJSmartTemplate::rotateBlockType90(v8); v24 -= 90; } while ( v24 > 0x5A ); } if ( a3 >= 1 && (v7 & 0xFFFFFFFE) != 0x30 ) { v25 = a3 + 90; do { v7 = GJSmartTemplate::rotateBlockType90(v7); v25 -= 90; } while ( v25 > 0x5A ); } if ( a3 >= 1 && (v5 & 0xFFFFFFFE) != 0x30 ) { v26 = a3 + 90; do { v5 = GJSmartTemplate::rotateBlockType90(v5); v26 -= 90; } while ( v26 > 0x5A ); } if ( a3 >= 1 && (v6 & 0xFFFFFFFE) != 0x30 ) { v27 = a3 + 90; do { v6 = GJSmartTemplate::rotateBlockType90(v6); v27 -= 90; } while ( v27 > 0x5A ); } if ( a3 >= 1 && (v10 & 0xFFFFFFFE) != 0x30 ) { v28 = a3 + 90; do { v10 = GJSmartTemplate::rotateBlockType90(v10); v28 -= 90; } while ( v28 > 0x5A ); } if ( a3 >= 1 && (v21 & 0xFFFFFFFE) != 0x30 ) { v29 = a3 + 90; do { v21 = GJSmartTemplate::rotateBlockType90(v21); v29 -= 90; } while ( v29 > 0x5A ); } if ( a3 >= 1 && (v9 & 0xFFFFFFFE) != 0x30 ) { v30 = a3 + 90; do { v9 = GJSmartTemplate::rotateBlockType90(v9); v30 -= 90; } while ( v30 > 0x5A ); } if ( a3 >= 1 && (v22 & 0xFFFFFFFE) != 0x30 ) { v31 = a3 + 90; do { v22 = GJSmartTemplate::rotateBlockType90(v22); v31 -= 90; } while ( v31 > 0x5A ); } GJSmartTemplate::keyFromNeighbors_1(v4, v8, v7, v5, v6, v10, v21, v9, a1, v22); } else { result = *(__n128 *)&this->__r_.__value_.__l.__data_; *a1 = *this; *(_OWORD *)&this->__r_.__value_.__r.__words[1] = 0u; this->__r_.__value_.__r.__words[0] = 0; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source