// // sub_1800AE760 from 0x1800ae760 to 0x1800ae931 (465 bytes) // // 5 xrefs: // > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1dac // > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1e77 // > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1f6c // > cocos2d::CCTMXMapInfo::startElement @ 0x1800b20b7 // > @ 0x1801b83f4 // // 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 // // Hidden C++ exception states: #wind=3 __int64 __fastcall sub_1800AE760(__int64 a1, _QWORD *a2, unsigned __int8 a3) { int v3; // r15d __int64 v5; // rsi unsigned int v6; // ebx char v7; // r14 __int64 v8; // r12 __int64 v9; // rax __int64 v10; // rdx _BYTE *v11; // rax __int64 v12; // rax __int64 v13; // rax __int64 v14; // r8 unsigned __int64 v15; // rcx unsigned __int64 v16; // rdx _QWORD *v17; // rax __int64 v18; // rax int i; // r9d __int64 v20; // rax unsigned int v22; // [rsp+20h] [rbp-48h] char v25; // [rsp+88h] [rbp+20h] v3 = a3; v5 = a1; v6 = 0; v22 = 0; v7 = 0; v25 = 0; v8 = a1; v9 = std::ios::rdbuf(a1 + *(int *)(*(_QWORD *)a1 + 4LL)); if ( v9 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 8LL))(v9); LOBYTE(v10) = 1; if ( !(unsigned __int8)std::istream::_Ipfx(v5, v10) ) goto LABEL_21; a2[2] = 0; v11 = a2; if ( a2[3] > 0xFu ) v11 = (_BYTE *)*a2; *v11 = 0; v12 = std::ios::rdbuf(v5 + *(int *)(*(_QWORD *)v5 + 4LL)); try { for ( i = std::streambuf::sgetc(v12); ; i = std::streambuf::snextc(v18) ) { if ( i == -1 ) { v6 = 1; goto LABEL_13; } if ( i == v3 ) { v7 = 1; v25 = 1; v13 = std::ios::rdbuf(v5 + *(int *)(*(_QWORD *)v5 + 4LL)); std::streambuf::sbumpc(v13); goto LABEL_26; } v15 = a2[2]; if ( v15 >= 0x7FFFFFFFFFFFFFFFLL ) break; v16 = a2[3]; if ( v15 >= v16 ) { sub_1800162D0(a2, 1u, 0, i); } else { a2[2] = v15 + 1; v17 = a2; if ( v16 > 0xF ) v17 = (_QWORD *)*a2; *((_BYTE *)v17 + v15) = i; *((_BYTE *)v17 + v15 + 1) = 0; } v7 = 1; v25 = 1; v18 = std::ios::rdbuf(v5 + *(int *)(*(_QWORD *)v5 + 4LL)); } v6 = 2; LABEL_13: v22 = v6; } catch ( ... ) { LOBYTE(v14) = 1; std::ios::setstate(a1 + *(int *)(*(_QWORD *)a1 + 4LL), 4, v14); v5 = a1; v6 = v22; v7 = v25; v8 = a1; } LABEL_26: if ( !v7 ) LABEL_21: v6 |= 2u; std::ios::setstate(v5 + *(int *)(*(_QWORD *)v5 + 4LL), v6, 0); v20 = std::ios::rdbuf(v8 + *(int *)(*(_QWORD *)v8 + 4LL)); if ( v20 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v20 + 16LL))(v20); return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source