// // sub_18006E890 from 0x18006e890 to 0x18006e982 (242 bytes) // // 6 xrefs: // > cocos2d::CCFileUtils::getPathForFilename @ 0x1800703b3 // > cocos2d::CCTMXMapInfo::startElement @ 0x1800b06cf // > cocos2d::CCTMXMapInfo::startElement @ 0x1800b06e7 // > cocos2d::CCTMXMapInfo::startElement @ 0x1800b103f // > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1058 // > @ 0x1801b4170 // // 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 // __int64 __fastcall sub_18006E890(unsigned __int8 **a1, unsigned __int8 *a2, unsigned __int64 a3) { unsigned __int8 *v4; // rdi __int64 v5; // rsi unsigned __int8 *v6; // rbp unsigned __int8 *v7; // r14 unsigned __int8 *i; // rcx __int64 v9; // rax unsigned __int8 *v10; // rbx __int64 v11; // rax _BYTE v13[256]; // [rsp+20h] [rbp-128h] BYREF v4 = a2; v5 = -1; do ++v5; while ( a2[v5] ); v6 = (unsigned __int8 *)a1; if ( (unsigned __int64)a1[3] > 0xF ) v6 = *a1; v7 = a1[2]; if ( v5 && v7 ) { memset(v13, 0, sizeof(v13)); for ( i = &v4[v5]; v4 != i; v13[v9] = 1 ) v9 = *v4++; if ( (unsigned __int64)(v7 - 1) < a3 ) a3 = (unsigned __int64)(v7 - 1); v10 = &v6[a3]; if ( v13[*v10] ) return v10 - v6; while ( v10 != v6 ) { v11 = *--v10; if ( v13[v11] ) return v10 - v6; } } return -1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source