// // GJGroundLayer::createLine from 0x1403875e0 to 0x1403877c0 (480 bytes) // // 2 xrefs: // > GJGroundLayer::init @ 0x140386e65 // > @ 0x140922b68 // // This function is hookable on this platform (idp: pc, 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 11:31:08 +0000 // __int64 __fastcall GJGroundLayer::createLine(__int64 *a1, int a2) { __int64 v3; // rcx int v4; // edi int v6; // eax float v7; // xmm6_4 __int64 v8; // rax cocos2d::CCString *v9; // rax const char *CString; // rax struct cocos2d::CCSprite *v11; // rax __int64 v12; // rcx __int64 *v13; // rdi __int64 v14; // rbx __int64 v15; // rax __int64 *v16; // rdi __int64 v17; // rbx __int64 v18; // rax __int64 result; // rax __int64 (__fastcall ***v20)(_QWORD, __int64); // rcx __int64 v21; // [rsp+40h] [rbp+8h] BYREF float v22; // [rsp+50h] [rbp+18h] BYREF v3 = a1[54]; v4 = 0; if ( v3 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 512LL))(v3); a1[54] = 0; } v6 = 1; if ( a2 >= 1 ) v6 = a2; if ( v6 >= 3 ) { *((_DWORD *)a1 + 112) = 3; } else { *((_DWORD *)a1 + 112) = v6; if ( v6 == 1 ) { v7 = 0.5; goto LABEL_11; } } v7 = 0.2; LABEL_11: v8 = cocos2d::CCDirector::sharedDirector(v3); cocos2d::CCDirector::getWinSize(v8, &v22); LOBYTE(v4) = *((_DWORD *)a1 + 112) != 1; v9 = cocos2d::CCString::createWithFormat("floorLine_%02d_001.png", v4 + 1); CString = cocos2d::CCString::getCString(v9); v11 = cocos2d::CCSprite::createWithSpriteFrameName(CString); v12 = *a1; a1[54] = (__int64)v11; (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSprite *, __int64))(v12 + 456))(a1, v11, 5); v13 = (__int64 *)a1[54]; v14 = *v13; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, v22 * 0.5, v7); (*(void (__fastcall **)(__int64 *, __int64))(v14 + 184))(v13, v15); v16 = (__int64 *)a1[54]; v17 = *v16; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, 0.5, 1.0); (*(void (__fastcall **)(__int64 *, __int64))(v17 + 288))(v16, v18); result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1[54] + 64LL))(a1[54], 2); if ( *((_BYTE *)a1 + 441) ) { v20 = (__int64 (__fastcall ***)(_QWORD, __int64))(a1[54] + 344); v21 = 0x100000302LL; result = (**v20)(v20, 0x100000302LL); } if ( *((int *)a1 + 112) > 1 ) result = (*(__int64 (**)(void))(*(_QWORD *)a1[54] + 120LL))(); if ( *((_DWORD *)a1 + 112) == 3 ) return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1[54] + 136LL))(a1[54]); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source