// // sub_642030 from 0x642030 to 0x64224c (540 bytes) // // 14 xrefs: // > GameObject::addGlow @ 0x64240c // > GameObject::getColorFrame @ 0x642bdc // > GameObject::getGlowFrame @ 0x642ce4 // > GameObject::playShineEffect @ 0x644ae0 // > GameObject::playShineEffect @ 0x6450d4 // > GameObject::playShineEffect @ 0x645184 // > GameObject::playShineEffect @ 0x64541c // > GameObject::playShineEffect @ 0x645498 // > GameObject::addColorSprite @ 0x6488c8 // > GameObject::addColorSprite @ 0x648974 // > GameObject::addColorSprite @ 0x648a34 // > GameObject::addColorSprite @ 0x648c34 // > GameObject::addColorSprite @ 0x648df4 // > GameObject::addColorSprite @ 0x648ef8 // // 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 __usercall sub_642030@(char *a1@, char *a2@, char *a3@, __int64 a4@) { __int64 v7; // x19 void *v8; // x0 char *v9; // x0 unsigned int *v11; // x1 int v12; // w2 unsigned int *v13; // x1 int v14; // w2 char *v15; // [xsp+48h] [xbp+48h] BYREF __int64 v16; // [xsp+50h] [xbp+50h] BYREF sub_D153B8(a4, a1); sub_D153B8((int)&v15, a2); sub_D153B8((int)&v16, a3); while ( 1 ) { v7 = sub_D1641C(a4, v15); if ( v7 == -1 ) break; sub_D1861C(a4, v7, *((_QWORD *)v15 - 3), v16, *(_QWORD *)(v16 - 24)); } v8 = (void *)(v16 - 24); if ( (__int64 *)(v16 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)(v16 - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *(_DWORD *)(v16 - 8); *(_DWORD *)(v16 - 8) = v12 - 1; } if ( v12 <= 0 ) operator delete(v8); } v9 = v15 - 24; if ( v15 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)(v15 - 8); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *((_DWORD *)v15 - 2); *((_DWORD *)v15 - 2) = v14 - 1; } if ( v14 <= 0 ) operator delete(v9); } return a4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source