// // sub_10002F74C from 0x10002f74c to 0x10002f8e8 (412 bytes) // // 1 xrefs: // > GJGroundLayer::init @ 0x10002f368 // // 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_10002F74C(__int64 a1, int a2) { __int64 v4; // x0 int v5; // w8 float v6; // s8 __int64 v7; // x0 int v8; // w8 __int64 v9; // x0 __int64 CString; // x0 __int64 v11; // x0 __int64 v12; // x20 __int64 v13; // x20 __int64 result; // x0 float v15; // [xsp+10h] [xbp-30h] BYREF __int64 v16; // [xsp+18h] [xbp-28h] BYREF v4 = *(_QWORD *)(a1 + 432); if ( v4 ) { v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 520LL))(v4); *(_QWORD *)(a1 + 432) = 0; } if ( a2 <= 1 ) v5 = 1; else v5 = a2; if ( a2 <= 1 ) v6 = 0.5; else v6 = 0.2; if ( v5 >= 3 ) v5 = 3; *(_DWORD *)(a1 + 448) = v5; v7 = cocos2d::CCDirector::sharedDirector(v4); cocos2d::CCDirector::getWinSize(&v16, v7); v8 = 1; if ( *(_DWORD *)(a1 + 448) != 1 ) v8 = 2; v9 = sub_1003065B0("floorLine_%02d_001.png", v8); CString = cocos2d::CCString::getCString(v9); v11 = cocos2d::CCSprite::createWithSpriteFrameName(CString); *(_QWORD *)(a1 + 432) = v11; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v11, 5); v12 = *(_QWORD *)(a1 + 432); sub_1000262BC(&v15, *(float *)&v16 * 0.5, v6); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v12 + 184LL))(v12, &v15); v13 = *(_QWORD *)(a1 + 432); sub_1000262BC(&v15, 0.5, 1.0); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v13 + 296LL))(v13, &v15); result = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 432) + 72LL))(*(_QWORD *)(a1 + 432), 2); if ( *(_BYTE *)(a1 + 441) == 1 ) result = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 432) + 1080LL))( *(_QWORD *)(a1 + 432), 0x100000302LL); if ( *(int *)(a1 + 448) >= 2 ) { result = (*(__int64 (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 432) + 128LL))( *(_QWORD *)(a1 + 432), (float)(*(float *)&v16 + 10.0) / *(float *)(*(_QWORD *)(a1 + 432) + 432LL)); if ( *(_DWORD *)(a1 + 448) == 3 ) return (*(__int64 (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 432) + 144LL))(*(_QWORD *)(a1 + 432), 2.0); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source