// // sub_140373340 from 0x140373340 to 0x14037350e (462 bytes) // // 12 xrefs: // > GJEffectManager::saveToState @ 0x14036e748 // > GJEffectManager::saveToState @ 0x14036e90b // > GJEffectManager::loadFromState @ 0x14036ebef // > GJEffectManager::loadFromState @ 0x14036edec // > PlayerObject::saveToCheckpoint @ 0x1405002b4 // > PlayerObject::saveToCheckpoint @ 0x140500554 // > PlayerObject::loadFromCheckpoint @ 0x140500ace // > PlayerObject::loadFromCheckpoint @ 0x140500d64 // > sub_140514770 @ 0x140515329 // > PlayLayer::writePersistentSave @ 0x140518089 // > PlayLayer::loadPersistentCheckpoint @ 0x140518497 // > @ 0x140921f68 // // 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:00 +0000 // // Hidden C++ exception states: #wind=3 _QWORD *__fastcall sub_140373340(_QWORD *a1, _QWORD *a2) { __int64 *v3; // r12 __int64 *v4; // rbx __int64 *v5; // r13 void **v6; // rdi void **v7; // rcx __int64 v8; // rbp _DWORD *v9; // rdi _QWORD *v10; // r14 __int64 *i; // rbx _DWORD *v12; // rax void ***v13; // rax __int64 v14; // rsi void **v15; // rbx __int64 v16; // rcx _QWORD *v17; // rax unsigned __int64 v18; // rax if ( a1 != a2 ) { *(_DWORD *)a1 = *(_DWORD *)a2; v3 = (__int64 *)a2[1]; v4 = (__int64 *)*v3; v5 = a1 + 1; v6 = (void **)a1[1]; v7 = (void **)*v6; if ( *v6 == v6 ) { LABEL_5: v8 = 0; if ( v4 == v3 ) { v9 = nullptr; v10 = nullptr; } else { v9 = operator new(0x18u); v9[4] = *((_DWORD *)v4 + 4); v10 = v9; v8 = 1; for ( i = (__int64 *)*v4; i != v3; i = (__int64 *)*i ) { v12 = operator new(0x18u); v12[4] = *((_DWORD *)i + 4); *v10 = v12; *((_QWORD *)v12 + 1) = v10; v10 = v12; ++v8; } } v16 = *v5; if ( v8 ) { v17 = *(_QWORD **)(v16 + 8); *((_QWORD *)v9 + 1) = v17; *v17 = v9; *v10 = v16; *(_QWORD *)(v16 + 8) = v10; v5[1] += v8; } } else { while ( v4 != v3 ) { *((_DWORD *)v7 + 4) = *((_DWORD *)v4 + 4); v7 = (void **)*v7; v4 = (__int64 *)*v4; if ( v7 == v6 ) goto LABEL_5; } if ( v7 != v6 ) { v13 = (void ***)v7[1]; *v13 = v6; v6[1] = v13; v14 = 0; do { v15 = (void **)*v7; j_j_free(v7); v7 = v15; ++v14; } while ( v15 != v6 ); v5[1] -= v14; } } v18 = sub_14006A6B0((__int64)a1, a1[2]); sub_14006B5B0(a1, v18); } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source