// // cocos2d::CCTMXMapInfo::textHandler from 0xb3b804 to 0xb3b9e4 (480 bytes) // // 3 xrefs: // > `non-virtual thunk to'cocos2d::CCTMXMapInfo::textHandler @ 0xb3b9e8 // > @ 0x79f98 // > @ 0x121b3a0 // // 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 // void cocos2d::CCTMXMapInfo::textHandler(cocos2d::CCTMXMapInfo *a1, void *a2, const char *a3, int a4) { char *v5; // x0 void *v6; // x0 size_t v7; // x0 char *v8; // x0 unsigned int *v9; // x1 int v10; // w2 unsigned int *v11; // x1 int v12; // w2 unsigned int *v13; // x1 int v14; // w2 char *v16; // [xsp+48h] [xbp+48h] __int64 v17; // [xsp+68h] [xbp+68h] BYREF char *v18; // [xsp+70h] [xbp+70h] BYREF sub_D153B8((int)&v18, (char *)a3); sub_D14F84(&v17, &v18, 0, a4); v5 = v18 - 24; if ( v18 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)(v18 - 8); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *((_DWORD *)v18 - 2); *((_DWORD *)v18 - 2) = v14 - 1; } if ( v14 <= 0 ) operator delete(v5); } if ( BYTE4(a1[1].cocos2d::CCSAXDelegator::__vftable) ) { sub_D153B8((int)&v18, *(char **)&a1[2].m_uAutoReleaseCount); sub_D15E14(&v18, &v17); v16 = v18; v7 = strlen(v18); sub_D1798C(&a1[2].m_uAutoReleaseCount, v16, v7); v8 = v18 - 24; if ( v18 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v9 = (unsigned int *)(v18 - 8); do v10 = __ldaxr(v9); while ( __stlxr(v10 - 1, v9) ); } else { v10 = *((_DWORD *)v18 - 2); *((_DWORD *)v18 - 2) = v10 - 1; } if ( v10 <= 0 ) operator delete(v8); } } v6 = (void *)(v17 - 24); if ( (__int64 *)(v17 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)(v17 - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *(_DWORD *)(v17 - 8); *(_DWORD *)(v17 - 8) = v12 - 1; } if ( v12 <= 0 ) operator delete(v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source