// // GJPathRewardPopup::init from 0x6d1c50 to 0x6d1f9e (846 bytes) // // 1 xrefs: // > GJPathRewardPopup::create @ 0x6d2044 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:57:03 +0000 // int __fastcall GJPathRewardPopup::init(GJPathRewardPopup *this, int a2) { int v3; // r3 cocos2d::CCDirector *v4; // r0 cocos2d::CCLayer *WinSize; // r0 int v6; // r0 int v7; // r3 cocos2d::CCNode *v8; // r0 int v9; // r7 void (__fastcall *v10)(int, _BYTE *); // r5 cocos2d::CCMenu *v11; // r0 int v12; // r0 float v13; // r1 float v14; // s15 int v15; // r5 void (__fastcall *v16)(int, _BYTE *); // r8 cocos2d::CCNode *v17; // r0 cocos2d::CCNode *v18; // r5 void (__fastcall *v19)(cocos2d::CCNode *, _BYTE *); // r7 const char *v20; // r2 int v21; // r7 void (__fastcall *v22)(int, _BYTE *); // r11 const char *v23; // r2 int v24; // r10 void (__fastcall *v25)(int, int); // r9 int v26; // r0 void (__fastcall *v27)(int, _BYTE *); // r9 int v28; // r0 int v29; // r1 cocos2d::CCSprite *v30; // r10 void (__fastcall *v31)(cocos2d::CCSprite *, _BYTE *); // r9 int v32; // r1 cocos2d::CCSprite *v33; // r9 void (__fastcall *v34)(cocos2d::CCSprite *, int); // r8 int v35; // r0 void (__fastcall *v36)(cocos2d::CCSprite *, _BYTE *); // r8 int v37; // r0 cocos2d::CCArray *v38; // r0 int v39; // r0 cocos2d::CCArray *v40; // r0 int v41; // r0 const cocos2d::CCPoint *v42; // r2 cocos2d::CCEaseInOut *v43; // r0 float v44; // r2 cocos2d::CCSequence *v45; // r7 const cocos2d::CCPoint *v46; // r2 cocos2d::CCEaseInOut *v47; // r0 float v48; // r2 cocos2d::CCFiniteTimeAction *v49; // r0 cocos2d::CCRepeatForever *v50; // r0 cocos2d::CCActionInterval *v51; // r1 cocos2d::CCAction *v52; // r0 int v54; // [sp+Ch] [bp-48h] float v55[2]; // [sp+1Ch] [bp-38h] BYREF _BYTE v56[8]; // [sp+24h] [bp-30h] BYREF _BYTE v57[8]; // [sp+2Ch] [bp-28h] BYREF int (__fastcall *v58)(GJPathRewardPopup *, cocos2d::CCObject *); // [sp+34h] [bp-20h] int v59; // [sp+38h] [bp-1Ch] _BYTE v60[8]; // [sp+3Ch] [bp-18h] BYREF _BYTE v61[8]; // [sp+44h] [bp-10h] BYREF *((_DWORD *)this + 130) = a2; FLAlertLayer::incrementForcePrio(this); v61[0] = 0; v61[1] = 0; v61[2] = 0; v61[3] = 125; v54 = cocos2d::CCLayerColor::initWithColor(this, v61); if ( v54 ) { v3 = *(_DWORD *)this; *((_BYTE *)this + 468) = 1; (*(void (__fastcall **)(GJPathRewardPopup *, int))(v3 + 500))(this, 1); v4 = (cocos2d::CCDirector *)(*(int (__fastcall **)(GJPathRewardPopup *, int))(*(_DWORD *)this + 536))(this, 1); cocos2d::CCDirector::sharedDirector(v4); WinSize = (cocos2d::CCLayer *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v55); v6 = cocos2d::CCLayer::create(WinSize); v7 = *(_DWORD *)this; *((_DWORD *)this + 115) = v6; v8 = (cocos2d::CCNode *)(*(int (__fastcall **)(GJPathRewardPopup *, int))(v7 + 228))(this, v6); v9 = cocos2d::CCNode::create(v8); v10 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v61, 100.0, 100.0); v10(v9, v61); v58 = GJPathRewardPopup::onClaim; v59 = 0; v11 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v9, 0, (int)this, (int)GJPathRewardPopup::onClaim, 0); v12 = cocos2d::CCMenu::create(v11, nullptr); v13 = v55[0] * 0.5; v14 = v55[1] * 0.5; *((_DWORD *)this + 111) = v12; v15 = v12; v16 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v12 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, v13, v14); v16(v15, v61); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 111), 10); v17 = (cocos2d::CCNode *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, 0.0, 10.0); v18 = (cocos2d::CCNode *)cocos2d::CCNode::create(v17); (*(void (__fastcall **)(cocos2d::CCNode *, void *))(*(_DWORD *)v18 + 160))(v18, &unk_D2D970); (*(void (__fastcall **)(int, cocos2d::CCNode *))(*(_DWORD *)v9 + 228))(v9, v18); v19 = *(void (__fastcall **)(cocos2d::CCNode *, _BYTE *))(*(_DWORD *)v18 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, 50.0, 50.0); v19(v18, v61); v21 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Reward!", "goldFont.fnt", v20); (*(void (__fastcall **)(int, int))(*(_DWORD *)v21 + 80))(v21, 1059481190); (*(void (__fastcall **)(cocos2d::CCNode *, int, int))(*(_DWORD *)v18 + 232))(v18, v21, 22); v22 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v21 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, 0.0, 40.0); cocos2d::CCPoint::operator+(v60, v56, v61); v22(v21, v60); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, 0.0, -5.0); v24 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Reward!", "goldFont.fnt", v23); v25 = *(void (__fastcall **)(int, int))(*(_DWORD *)v24 + 80); v26 = (*(int (__fastcall **)(int))(*(_DWORD *)v21 + 84))(v21); v25(v24, v26); (*(void (__fastcall **)(cocos2d::CCNode *, int, int))(*(_DWORD *)v18 + 232))(v18, v24, 21); v27 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v24 + 92); v28 = (*(int (__fastcall **)(int))(*(_DWORD *)v21 + 96))(v21); cocos2d::CCPoint::operator+(v61, v28, v57); v27(v24, v61); (*(void (__fastcall **)(int, void *))(*(_DWORD *)v24 + 536))(v24, &unk_BEFE7B); (*(void (__fastcall **)(int, int))(*(_DWORD *)v24 + 512))(v24, 50); v30 = GJChestSprite::create((GJChestSprite *)&byte_6, v29); (*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCSprite *, int))(*(_DWORD *)v18 + 232))(v18, v30, 22); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v30 + 80))(v30, 1058642330); v31 = *(void (__fastcall **)(cocos2d::CCSprite *, _BYTE *))(*(_DWORD *)v30 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, 0.0, -6.0); cocos2d::CCPoint::operator+(v60, v56, v61); v31(v30, v60); v33 = GJChestSprite::create((GJChestSprite *)&byte_6, v32); (*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCSprite *, int))(*(_DWORD *)v18 + 232))(v18, v33, 21); v34 = *(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v33 + 80); v35 = (*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v30 + 84))(v30); v34(v33, v35); v36 = *(void (__fastcall **)(cocos2d::CCSprite *, _BYTE *))(*(_DWORD *)v33 + 92); v37 = (*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v30 + 96))(v30); cocos2d::CCPoint::operator+(v61, v37, v57); v36(v33, v61); v38 = (cocos2d::CCArray *)(*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v33 + 244))(v33); v39 = cocos2d::CCArray::objectAtIndex(v38, 0); (*(void (__fastcall **)(int, void *))(*(_DWORD *)v39 + 480))(v39, &unk_BEFE7B); v40 = (cocos2d::CCArray *)(*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v33 + 244))(v33); v41 = cocos2d::CCArray::objectAtIndex(v40, 0); (*(void (__fastcall **)(int, int))(*(_DWORD *)v41 + 456))(v41, 50); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, 0.0, 5.0); v43 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveBy::create((cocos2d::CCMoveBy *)0x3F800000, COERCE_FLOAT(v61), v42); v45 = (cocos2d::CCSequence *)cocos2d::CCEaseInOut::create(v43, (cocos2d::CCActionInterval *)0x40000000, v44); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, 0.0, -5.0); v47 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveBy::create((cocos2d::CCMoveBy *)0x3F800000, COERCE_FLOAT(v61), v46); v49 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCEaseInOut::create(v47, (cocos2d::CCActionInterval *)0x40000000, v48); v50 = (cocos2d::CCRepeatForever *)cocos2d::CCSequence::create(v45, v49, 0); v52 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v50, v51); cocos2d::CCNode::runAction(v18, v52); } return v54; }
GD Web Decomp Icon

GD Web Decomp

Raw Source