// // sub_1800B2DB0 from 0x1800b2db0 to 0x1800b2eab (251 bytes) // // 5 xrefs: // > cocos2d::CCTMXMapInfo::startElement @ 0x1800b4002 // > cocos2d::CCTMXMapInfo::startElement @ 0x1800b401e // > cocos2d::CCTMXMapInfo::startElement @ 0x1800b49c3 // > cocos2d::CCTMXMapInfo::startElement @ 0x1800b49e0 // > @ 0x1801c2760 // // 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:22:20 +0000 // __int64 __fastcall sub_1800B2DB0(char *Src, const char *a2, unsigned __int64 a3) { unsigned __int8 *v5; // rbx size_t v6; // rax size_t v7; // rsi char *v8; // rdi __int64 v9; // rax unsigned __int64 v10; // rax unsigned __int8 *i; // rcx __int64 v13; // rax char *v14; // rax __int64 v15; // rcx _BYTE v16[296]; // [rsp+20h] [rbp-128h] BYREF v5 = (unsigned __int8 *)a2; v6 = strlen(a2); v7 = v6; v8 = Src; if ( *((_QWORD *)Src + 3) > 0xFu ) v8 = *(char **)Src; if ( v6 ) { v9 = *((_QWORD *)Src + 2); if ( v9 ) { v10 = v9 - 1; if ( v10 < a3 ) a3 = v10; if ( a3 + 1 + v7 >= 0x10 ) return sub_1800E4900(v8, a3 + 1, v5, v7); memset(v16, 0, 0x100u); for ( i = &v5[v7]; v5 != i; v16[v13] = 1 ) v13 = *v5++; v14 = &v8[a3]; if ( v16[(unsigned __int8)v8[a3]] ) return v14 - v8; while ( v14 != v8 ) { v15 = (unsigned __int8)*--v14; if ( v16[v15] ) return v14 - v8; } } } return -1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source