// // GJSmartTemplate::flipKey from 0x100006dcc to 0x100006fe0 (532 bytes) // // 4 xrefs: // > GJSmartTemplate::scanForPrefab @ 0x100005abc // > GJSmartTemplate::scanForPrefab @ 0x100005b8c // > GJSmartTemplate::scanForPrefab @ 0x100005c64 // > GJSmartTemplate::scanForPrefab @ 0x100005c78 // // 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 // void __usercall GJSmartTemplate::flipKey( std::string *__return_ptr a1@, std::string *this@, bool a3@, bool a4@) { SmartBlockType v7; // w24 SmartBlockType v8; // w25 SmartBlockType v9; // w27 SmartBlockType v10; // w28 SmartBlockType v11; // w19 SmartBlockType v12; // w23 SmartBlockType v13; // w26 SmartBlockType v14; // w8 SmartBlockType v15; // w9 SmartBlockType v16; // w22 SmartBlockType v17; // w28 SmartBlockType v18; // w9 SmartBlockType v19; // w8 std::string::value_type v20; // w24 std::string::value_type v21; // w25 std::string::value_type v22; // w26 std::string::value_type v23; // w27 std::string::value_type v24; // w28 std::string::value_type v25; // w23 std::string::value_type v26; // w22 std::string::value_type v27; // w0 SmartBlockType v28; // [xsp+Ch] [xbp-64h] SmartBlockType v29; // [xsp+10h] [xbp-60h] SmartBlockType v30; // [xsp+14h] [xbp-5Ch] std::string::value_type v31; // [xsp+14h] [xbp-5Ch] if ( a3 || a4 ) { v30 = *std::string::at(this, 0); v7 = *std::string::at(this, 1u); v8 = *std::string::at(this, 2u); v9 = *std::string::at(this, 3u); v10 = *std::string::at(this, 4u); v11 = *std::string::at(this, 5u); v12 = *std::string::at(this, 6u); v13 = *std::string::at(this, 7u); v14 = *std::string::at(this, 8u); v15 = v7; if ( a3 ) { v16 = v10; } else { v7 = v8; v8 = v15; v16 = v9; } if ( a3 ) { v17 = v12; } else { v9 = v10; v17 = v13; } if ( a3 ) v18 = v11; else v18 = v14; if ( a3 ) { v11 = v14; v19 = v13; } else { v19 = v12; } v28 = v18; v29 = v19; v31 = GJSmartTemplate::flipBlockType(v30, a3, a4); v20 = GJSmartTemplate::flipBlockType(v7, a3, a4); v21 = GJSmartTemplate::flipBlockType(v8, a3, a4); v22 = GJSmartTemplate::flipBlockType(v16, a3, a4); v23 = GJSmartTemplate::flipBlockType(v9, a3, a4); v24 = GJSmartTemplate::flipBlockType(v17, a3, a4); v25 = GJSmartTemplate::flipBlockType(v28, a3, a4); v26 = GJSmartTemplate::flipBlockType(v11, a3, a4); v27 = GJSmartTemplate::flipBlockType(v29, a3, a4); GJSmartTemplate::keyFromNeighbors_1(v31, v20, v21, v22, v23, v24, v25, v26, a1, v27); } else { *a1 = *this; *(_OWORD *)&this->__r_.__value_.__r.__words[1] = 0u; this->__r_.__value_.__r.__words[0] = 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source