// // cocos2d::CCLayerMultiplex::initWithLayers from 0x1004ad8c0 to 0x1004ad9d8 (280 bytes) // // 1 xrefs: // > sub_1004AD680 @ 0x1004ad83e // // 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 12:30:57 +0000 // bool __fastcall cocos2d::CCLayerMultiplex::initWithLayers(__int64 a1, __int64 a2, unsigned int *a3) { __int64 v3; // rax __int64 v5; // rax __int64 v6; // rbx __int64 v7; // rax unsigned __int64 v8; // rcx __int64 *v9; // rax __int64 v10; // rsi __int64 *v11; // rax __int64 v12; // rax _QWORD v14[6]; // [rsp+0h] [rbp-30h] BYREF v14[0] = v3; v5 = cocos2d::CCDirector::sharedDirector(); v6 = v5; if ( v5 ) { cocos2d::CCDirector::getWinSize(v14, v5); (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)a1 + 320LL))(a1, v14); *(_WORD *)(a1 + 360) = 0; v7 = sub_1007FEC20(5); *(_QWORD *)(a1 + 408) = v7; cocos2d::CCObject::retain(v7); sub_1007FEBF0(*(_QWORD *)(a1 + 408), a2); v8 = *a3; if ( v8 > 0x28 ) goto LABEL_5; while ( 1 ) { v9 = (__int64 *)(*((_QWORD *)a3 + 2) + v8); *a3 = v8 + 8; v10 = *v9; if ( !*v9 ) break; while ( 1 ) { sub_1007FEBF0(*(_QWORD *)(a1 + 408), v10); v8 = *a3; if ( v8 <= 0x28 ) break; LABEL_5: v11 = *((__int64 **)a3 + 1); *((_QWORD *)a3 + 1) = v11 + 1; v10 = *v11; if ( !*v11 ) goto LABEL_8; } } LABEL_8: *(_DWORD *)(a1 + 404) = 0; v12 = sub_1007FEFE0(*(_QWORD *)(a1 + 408), 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v12); } return v6 != 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source