// // SlideInLayer::init from 0x100279c40 to 0x100279fc8 (904 bytes) // // 1 xrefs: // > @ 0x100afc738 // // 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:27:41 +0000 // __int64 __fastcall SlideInLayer::init(__int64 a1, __int64 a2) { __int64 v3; // rax __int64 v4; // rax __int64 result; // rax unsigned int v6; // r12d __int64 v7; // rax __int64 v8; // rax double v9; // xmm0_8 char *v10; // r14 __int64 v11; // rdi __int64 v12; // rax __int64 v13; // rax double v14; // xmm0_8 double v15; // xmm1_8 __int64 v16; // r15 char *v17; // rax char *v18; // rax __int64 v19; // rdi int v20; // edx int v21; // ecx int v22; // r8d int v23; // r9d __int64 v24; // r14 std::string __str; // [rsp+0h] [rbp-50h] BYREF __int64 v26; // [rsp+1Ch] [rbp-34h] BYREF float v27; // [rsp+24h] [rbp-2Ch] float v28; // [rsp+28h] [rbp-28h] BYREF float v29; // [rsp+2Ch] [rbp-24h] *(_BYTE *)(a1 + 601) = 1; v3 = cocos2d::CCDirector::sharedDirector(a1, a2); v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3); cocos2d::CCTouchDispatcher::registerForcePrio(v4, a1, 2, 0); v28 = 0.0; result = cocos2d::CCLayerColor::initWithColor(a1, &v28); if ( (_BYTE)result ) { v6 = result; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1); v7 = cocos2d::CCDirector::sharedDirector(a1, 1); cocos2d::CCDirector::getWinSize(&v28, v7); v8 = cocos2d::CCLayer::create(); *(_QWORD *)(a1 + 544) = v8; v9 = (*(double (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v8); v10 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"pauseBG_001.png", v9); sub_100278250((float *)&v26, 0.5, 0.0); (*(void (__fastcall **)(char *, __int64 *))(*(_QWORD *)v10 + 296LL))(v10, &v26); sub_100278250((float *)&v26, v28 * 0.5, (float)(v29 * 0.5) + -240.0); (*(void (__fastcall **)(char *, __int64 *))(*(_QWORD *)v10 + 184LL))(v10, &v26); v11 = *(_QWORD *)(a1 + 544); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v11 + 464LL))(v11, v10, 4294967294LL); v12 = cocos2d::CCDirector::sharedDirector(v11, v10); *(float *)&v9 = sub_100479730(v12); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v10 + 128LL))(v10, *(float *)&v9); *(_QWORD *)&v14 = LODWORD(v29); v27 = v29; v13 = cocos2d::CCDirector::sharedDirector(v10, v10); *(float *)&v14 = sub_100479710(v13); *(_QWORD *)&v15 = LODWORD(v27); if ( *(float *)&v14 != 1.0 ) { *(float *)&v15 = (float)(v27 + -320.0) + 4.0; if ( *(float *)&v15 > 0.0 ) { LODWORD(v26) = -10870016; v27 = (float)(v27 + -320.0) + 4.0; v16 = cocos2d::CCLayerColor::create(&v26, v28, *(float *)&v15); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), v16, 4294967293LL); *(_QWORD *)&v15 = *(unsigned int *)((*(__int64 (__fastcall **)(char *))(*(_QWORD *)v10 + 192LL))(v10) + 4); *(float *)&v15 = (float)(*(float *)&v15 - v27) + 2.0; sub_100278250((float *)&v26, 0.0, *(float *)&v15); v14 = (*(double (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 184LL))(v16, &v26); } } v17 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"startBtn_001.png", v14); *(_QWORD *)(a1 + 560) = v17; v18 = (char *)CCMenuItemSpriteExtra::create((__int64)v17, 0, a1, 1321, 0); *(_QWORD *)(a1 + 568) = v18; *(_WORD *)&__str.__r_.__value_.__l.0 = 0; std::string::operator=((std::string *)(v18 + 416), &__str); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); (*(void (__fastcall **)(_QWORD, float, double))(**(_QWORD **)(a1 + 568) + 160LL))( *(_QWORD *)(a1 + 568), 0.85000002, v15); v19 = *(_QWORD *)(a1 + 568); *(_DWORD *)(v19 + 404) = 1062836634; v24 = sub_1008735E0(v19, 0, v20, v21, v22, v23); *(_QWORD *)(a1 + 552) = v24; sub_100278250((float *)&v26, v28 * 0.5, (float)(v29 * 0.5) + 210.0); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v24 + 184LL))(v24, &v26); sub_100278250((float *)&v26, 0.0, (float)((float)(v29 * 0.5) + -240.0) - (float)((float)(v29 + -480.0) * 0.5)); sub_100278300((_QWORD *)(a1 + 576), &v26); sub_100278250((float *)&v26, *(float *)(a1 + 576), *(float *)(a1 + 580) - v29); sub_100278300((_QWORD *)(a1 + 584), &v26); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1304LL))(a1); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), *(_QWORD *)(a1 + 552), 10); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1336LL))(a1, 1); return v6; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source