// // GJGroundLayer::init from 0x10002f2ec to 0x10002f74c (1120 bytes) // // 1 xrefs: // > GJGroundLayer::create @ 0x10002f29c // // 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 GJGroundLayer::init(__int64 a1, __int64 a2, __int64 a3) { __int64 v6; // x19 __int64 v7; // x0 __int64 v8; // x0 _QWORD *WinSize; // x0 __int64 v10; // x0 __int64 v11; // x22 __int64 v12; // x23 __int64 v13; // x0 __int64 v14; // x0 double v15; // d0 __int64 v16; // x24 __int64 v17; // x0 __int64 v18; // x0 double v19; // d0 __int64 v20; // x23 __int64 v21; // x0 float v22; // s2 __int64 v23; // x22 __int64 v24; // x0 _BYTE *v25; // x24 __int64 v26; // x0 __int64 CString; // x0 __int64 v28; // x21 __int64 v29; // x0 _BYTE *v30; // x23 float v32[2]; // [xsp+14h] [xbp-6Ch] BYREF unsigned __int16 v33; // [xsp+1Ch] [xbp-64h] BYREF unsigned __int8 v34; // [xsp+1Eh] [xbp-62h] __int64 v35; // [xsp+20h] [xbp-60h] BYREF __int64 v36; // [xsp+28h] [xbp-58h] BYREF v6 = cocos2d::CCLayer::init(); if ( (_DWORD)v6 ) { v7 = (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 320LL))(a1, &unk_1009F2598); v8 = cocos2d::CCDirector::sharedDirector(v7); WinSize = cocos2d::CCDirector::getWinSize(&v36, v8); v10 = GameManager::sharedState(WinSize); v11 = sub_1003B5AA4(v10, a2); *(_BYTE *)(a1 + 441) = 1; sub_10002F74C(a1, a3); v12 = cocos2d::CCSprite::createWithSpriteFrameName("groundSquareShadow_001.png"); sub_1000262BC((float *)&v35, 0.0, 1.0); v13 = (*(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v12 + 296LL))(v12, &v35); v14 = cocos2d::CCDirector::sharedDirector(v13); v15 = sub_100207EA8(v14); sub_1000262BC((float *)&v35, *(float *)&v15 + -1.0, 0.0); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v12 + 184LL))(v12, &v35); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v12, 6); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v12 + 72LL))(v12, 0); v16 = cocos2d::CCSprite::createWithSpriteFrameName("groundSquareShadow_001.png"); sub_1000262BC((float *)&v35, 1.0, 1.0); v17 = (*(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 296LL))(v16, &v35); v18 = cocos2d::CCDirector::sharedDirector(v17); v19 = sub_100207EB0(v18); sub_1000262BC((float *)&v35, *(float *)&v19 + 1.0, 0.0); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 184LL))(v16, &v35); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v16, 6); cocos2d::CCSprite::setFlipX(v16, 1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 72LL))(v16, 1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 912LL))(v12, 100); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 912LL))(v16, 100); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v12 + 128LL))(v12, 0.7); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v16 + 128LL))(v16, 0.7); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 1080LL))(v12, 0x30300000306LL); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 1080LL))(v16, 0x30300000306LL); *(_BYTE *)(a1 + 440) = 0; v34 = -1; v33 = 26112; v20 = cocos2d::CCSpriteBatchNode::create(v11, 29); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v20, 2); v21 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v20 + 896LL))(v20); (*(void (__fastcall **)(__int64 *__return_ptr))(*(_QWORD *)v21 + 144LL))(&v35); v22 = *((float *)&v35 + 1); v23 = (unsigned int)(int)(float)(ceilf(*(float *)&v36 / *(float *)&v35) + 1.0); *(_DWORD *)(a1 + 424) = v35; *(float *)(a1 + 444) = 128.0 - v22; v24 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v20 + 896LL))(v20); v25 = (_BYTE *)cocos2d::CCSprite::createWithTexture(v24, &unk_1009F25A0); *(_QWORD *)(a1 + 408) = v25; v25[559] = 1; sub_1000262BC(v32, 0.0, 0.0); (*(void (__fastcall **)(_BYTE *, float *))(*(_QWORD *)v25 + 184LL))(v25, v32); (*(void (__fastcall **)(_QWORD, unsigned __int16 *))(**(_QWORD **)(a1 + 408) + 960LL))(*(_QWORD *)(a1 + 408), &v33); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v20 + 456LL))(v20, *(_QWORD *)(a1 + 408)); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v20 + 912LL))(v20, 1); sub_10002F8E8(a1, v23, 1); GJGroundLayer::updateGround01Color(a1, v33 | ((unsigned __int64)v34 << 16)); if ( (int)a2 >= 8 ) { v26 = sub_1003065B0("groundSquare_%02d_2_001.png", a2); CString = cocos2d::CCString::getCString(v26); v28 = cocos2d::CCSpriteBatchNode::create(CString, 29); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v28, 3); v29 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v28 + 896LL))(v28); v30 = (_BYTE *)cocos2d::CCSprite::createWithTexture(v29, &unk_1009F25A0); *(_QWORD *)(a1 + 416) = v30; v30[559] = 1; sub_1000262BC(v32, 0.0, 0.0); (*(void (__fastcall **)(_BYTE *, float *))(*(_QWORD *)v30 + 184LL))(v30, v32); (*(void (__fastcall **)(_QWORD, unsigned __int16 *))(**(_QWORD **)(a1 + 416) + 960LL))( *(_QWORD *)(a1 + 416), &v33); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v28 + 456LL))(v28, *(_QWORD *)(a1 + 416)); sub_10002F8E8(a1, v23, 0); GJGroundLayer::updateGround01Color(a1, v33 | ((unsigned __int64)v34 << 16)); } } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source