// // GJBaseGameLayer::recordHitboxTrailState from 0x9b871c to 0x9b89ac (656 bytes) // // 3 xrefs: // > GJBaseGameLayer::recordHitboxTrail @ 0x9b89cc // > GJBaseGameLayer::recordHitboxTrail @ 0x9b89fc // > @ 0x9c208 // // This function is hookable on this platform (idp: arm, 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 12:58:24 +0000 // __int64 __fastcall GJBaseGameLayer::recordHitboxTrailState(__int64 *a1, _BYTE *a2, void **a3, int *a4) { const cocos2d::CCRect *v8; // x0 float v9; // s0 float v10; // s8 float v11; // s0 long double v12; // q0 float (__fastcall *v13)(_BYTE *, long double); // x1 float v14; // s0 __int64 v15; // x1 __int64 (__fastcall *v16)(__int64 *); // x1 int v17; // w0 char *v18; // x20 int v19; // w26 unsigned __int64 v20; // x19 char *v21; // x20 char *v22; // x19 __int64 v24; // x19 char v25[8]; // [xsp+78h] [xbp+78h] BYREF char v26[8]; // [xsp+80h] [xbp+80h] BYREF float v27; // [xsp+88h] [xbp+88h] char v28[8]; // [xsp+90h] [xbp+90h] BYREF float v29; // [xsp+98h] [xbp+98h] float v30; // [xsp+9Ch] [xbp+9Ch] char v31; // [xsp+A0h] [xbp+A0h] v8 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a2 + 1328LL))(a2); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v26, v8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28); cocos2d::CCRect::getMidX((cocos2d::CCRect *)v26); v10 = v9; cocos2d::CCRect::getMidY((cocos2d::CCRect *)v26); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, v10, v11); *(__n128 *)&v12 = cocos2d::CCPoint::operator=(v28, v25); v13 = *(float (__fastcall **)(_BYTE *, long double))(*(_QWORD *)a2 + 1576LL); v29 = v27; v14 = v13(a2, v12); v15 = *a1; v31 = a2[2365]; v16 = *(__int64 (__fastcall **)(__int64 *))(v15 + 1336); v30 = v14; v17 = v16(a1); v18 = (char *)*a3; v19 = v17; v20 = 0xCCCCCCCCCCCCCCCDLL * (((_BYTE *)a3[1] - (_BYTE *)*a3) >> 2); if ( (int)v20 <= 0 ) goto LABEL_7; if ( v17 > (int)v20 ) { v21 = &v18[20 * (int)v20 - 20]; if ( !(unsigned __int8)cocos2d::CCPoint::equals((cocos2d::CCPoint *)v21, (const cocos2d::CCPoint *)v28) || *((float *)v21 + 3) != v30 ) { LABEL_8: v22 = (char *)a3[1]; if ( v22 == a3[2] ) { std::vector::__push_back_slow_path(a3, (cocos2d::CCPoint *)v28); } else { if ( v22 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)a3[1], (const cocos2d::CCPoint *)v28); *((float *)v22 + 2) = v29; *((float *)v22 + 3) = v30; v22[16] = v31; v22 = (char *)a3[1]; } a3[1] = v22 + 20; } goto LABEL_12; } } else { v21 = &v18[20 * ((v17 + *a4 - 1) % v17)]; if ( !(unsigned __int8)cocos2d::CCPoint::equals((cocos2d::CCPoint *)v21, (const cocos2d::CCPoint *)v28) || *((float *)v21 + 3) != v30 ) { goto LABEL_17; } } if ( *((float *)v21 + 2) != v29 || v21[16] != v31 ) { LABEL_7: if ( v19 > (int)v20 ) goto LABEL_8; LABEL_17: v24 = (__int64)*a3 + 20 * *a4; cocos2d::CCPoint::operator=(v24, v28); *(float *)(v24 + 8) = v29; *(float *)(v24 + 12) = v30; *(_BYTE *)(v24 + 16) = v31; *a4 = (*a4 + 1) % v19; LABEL_12: *((_BYTE *)a1 + 13904) = 1; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source