// // sub_10002F8E8 from 0x10002f8e8 to 0x10002fac0 (472 bytes) // // 4 xrefs: // > GJGroundLayer::init @ 0x10002f638 // > GJGroundLayer::init @ 0x10002f710 // > sub_10002FCF4 @ 0x10002fda0 // > sub_10002FCF4 @ 0x10002fdb0 // // 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 10:57:30 +0000 // __int64 __fastcall sub_10002F8E8(__int64 result, int a2, int a3) { __int64 v3; // x8 __int64 v4; // x19 __int64 v7; // x22 __int64 v8; // x24 __int64 v9; // x0 unsigned int v10; // w25 int v11; // w23 __int64 v12; // x0 float *v13; // x25 float v14; // s1 int v15; // w20 __int64 v16; // x0 float v17; // [xsp+8h] [xbp-48h] BYREF v3 = 416; if ( a3 ) v3 = 408; v4 = *(_QWORD *)(result + v3); if ( v4 ) { v7 = result; v8 = sub_1002E736C(result); if ( (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 488LL))(v4) ) { v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 488LL))(v4); sub_1002E7570(v8, v9); } result = sub_1002E757C(v8); if ( (_DWORD)result != a2 ) { v10 = sub_1002E757C(v8); result = sub_1002E757C(v8); v11 = result; if ( v10 >= a2 ) { if ( (int)result - a2 >= 1 ) { v15 = result - a2 + 1; do { result = sub_1002E757C(v8); if ( !(_DWORD)result ) break; v16 = sub_1002E75B0(v8); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v4 + 552LL))(v4, v16, 1); result = sub_1002E7648(v8, 1); --v15; } while ( v15 > 1 ); } } else if ( (int)result < a2 ) { do { v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1072LL))(v4); v13 = (float *)cocos2d::CCSprite::createWithTexture_1(v12); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v4 + 456LL))(v4, v13); v14 = 0.0; if ( a3 ) v14 = -*(float *)(v7 + 444); sub_1000262BC(&v17, v13[108] * (float)v11, v14); (*(void (__fastcall **)(float *, float *))(*(_QWORD *)v13 + 184LL))(v13, &v17); sub_1000262BC(&v17, 0.0, 1.0); (*(void (__fastcall **)(float *, float *))(*(_QWORD *)v13 + 296LL))(v13, &v17); result = (*(__int64 (__fastcall **)(float *, void *))(*(_QWORD *)v13 + 960LL))(v13, &unk_10075C6EC); ++v11; } while ( a2 != v11 ); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source