// // sub_180021920 from 0x180021920 to 0x180021a09 (233 bytes) // // 3 xrefs: // > DS_Dictionary::setRectForKey @ 0x18001fe4c // > DS_Dictionary::setVec2ForKey @ 0x180020d21 // > @ 0x1801b8ee4 // // 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:21:28 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall sub_180021920(__int64 a1, __int64 a2) { __int64 v3; // rbx void *v4; // rsi unsigned __int64 v5; // rdi size_t v6; // rdi v3 = a1 + 24; *(_OWORD *)a2 = 0; *(_QWORD *)(a2 + 16) = 0; *(_QWORD *)(a2 + 24) = 15; *(_BYTE *)a2 = 0; if ( (*(_DWORD *)(a1 + 136) & 0x22) == 2 || !std::streambuf::pptr(a1 + 24) ) { if ( (*(_BYTE *)(v3 + 112) & 4) != 0 || !std::streambuf::gptr(v3) ) { v6 = 0; v4 = nullptr; } else { v4 = (void *)std::streambuf::eback(v3); v6 = std::streambuf::egptr(v3) - (_QWORD)v4; } } else { v4 = (void *)std::streambuf::pbase(v3); v5 = std::streambuf::pptr(v3); if ( v5 < *(_QWORD *)(v3 + 104) ) v5 = *(_QWORD *)(v3 + 104); v6 = v5 - (_QWORD)v4; std::streambuf::epptr(v3); } if ( v4 ) sub_1800101E0((void **)a2, v4, v6); return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source