// // GJGroundLayer::createLine from 0x91696c to 0x916b70 (516 bytes) // // 2 xrefs: // > GJGroundLayer::init @ 0x916c64 // > @ 0xde4f0 // // 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:57:19 +0000 // __int64 __fastcall GJGroundLayer::createLine(GJGroundLayer *this, int a2) { cocos2d::CCDirector *v3; // x0 float v4; // s1 cocos2d::CCDirector *v5; // x0 cocos2d::CCString *v6; // x0 cocos2d::CCSprite *CString; // x0 const char *v8; // x1 __int64 v9; // x0 __int64 v10; // x23 void (__fastcall *v11)(__int64, _BYTE *); // x24 __int64 v12; // x23 void (__fastcall *v13)(__int64, _BYTE *); // x24 int v15; // [xsp+50h] [xbp+50h] float v16; // [xsp+50h] [xbp+50h] __int64 v17; // [xsp+68h] [xbp+68h] BYREF _BYTE v18[8]; // [xsp+70h] [xbp+70h] BYREF v3 = *((cocos2d::CCDirector **)this + 54); if ( v3 ) { v15 = a2; v3 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(cocos2d::CCDirector *))(*(_QWORD *)v3 + 520LL))(v3); *((_QWORD *)this + 54) = 0; a2 = v15; } *((_DWORD *)this + 112) = a2; if ( a2 > 3 ) { v3 = (cocos2d::CCDirector *)((char *)&dword_0 + 3); *((_DWORD *)this + 112) = (unsigned int)&dword_0 + 3; } else { if ( a2 <= 0 ) a2 = 1; *((_DWORD *)this + 112) = a2; if ( a2 == 1 ) { v4 = 0.5; goto LABEL_10; } } v4 = 0.2; LABEL_10: v16 = v4; v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v3); cocos2d::CCDirector::getWinSize(&v17, v5); if ( *((_DWORD *)this + 112) == 1 ) v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"floorLine_%02d_001.png", (_BYTE *)&dword_0 + 1); else v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"floorLine_%02d_001.png", (_BYTE *)&dword_0 + 2); CString = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v6); v9 = cocos2d::CCSprite::createWithSpriteFrameName(CString, v8); *((_QWORD *)this + 54) = v9; (*(void (__fastcall **)(GJGroundLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v9, 5); v10 = *((_QWORD *)this + 54); v11 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v10 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, *(float *)&v17 * 0.5, v16); v11(v10, v18); v12 = *((_QWORD *)this + 54); v13 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v12 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 0.5, 1.0); v13(v12, v18); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 54) + 72LL))(*((_QWORD *)this + 54), 2); if ( *((_BYTE *)this + 441) ) (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 54) + 1080LL))(*((_QWORD *)this + 54), 0x100000302LL); if ( *((int *)this + 112) > 1 ) { (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 54) + 128LL))( *((_QWORD *)this + 54), (float)(*(float *)&v17 + 10.0) / *(float *)(*((_QWORD *)this + 54) + 432LL)); if ( *((_DWORD *)this + 112) == 3 ) (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 54) + 144LL))(*((_QWORD *)this + 54), 2.0); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source