// // sub_1004624A8 from 0x1004624a8 to 0x10046293c (1172 bytes) // // 1 xrefs: // > sub_10045F414 @ 0x10045f484 // // 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 11:05:30 +0000 // __int64 __fastcall sub_1004624A8(__int64 a1, int a2) { __int64 v3; // x19 __int64 v4; // x0 void *v5; // x0 void *v6; // x21 void *v7; // x0 __int64 v8; // x1 __int64 v9; // x2 __int64 v10; // x3 __int64 v11; // x4 __int64 v12; // x5 __int64 v13; // x6 __int64 v14; // x7 __int64 v15; // x22 void *v16; // x20 void *v17; // x21 double v18; // d0 void *v19; // x22 float32x2_t *v20; // x0 double v21; // d0 _QWORD *v22; // x22 double v23; // d0 _QWORD *v24; // x23 float32x2_t *v25; // x0 double v26; // d0 __int64 v27; // x0 __int64 v28; // x0 __int64 v29; // x0 __int64 v30; // x0 _OWORD *v31; // x0 _OWORD *v32; // x21 _OWORD *v33; // x0 char v34; // w0 __int64 v35; // x1 __int64 v36; // x2 __int64 v37; // x3 __int64 v38; // x4 __int64 v39; // x5 __int64 v40; // x6 __int64 v41; // x7 __int64 v42; // x0 _DWORD *v43; // x0 float32x2_t v45; // [xsp+18h] [xbp-58h] BYREF float32x2_t v46; // [xsp+20h] [xbp-50h] BYREF float32x2_t v47; // [xsp+28h] [xbp-48h] BYREF float32x2_t v48; // [xsp+30h] [xbp-40h] BYREF __int64 v49; // [xsp+38h] [xbp-38h] BYREF *(_DWORD *)(a1 + 660) = a2; FLAlertLayer::incrementForcePrio((_BYTE *)a1); LODWORD(v49) = 2097152000; v3 = cocos2d::CCLayerColor::initWithColor(a1, (__int64)&v49); if ( (_DWORD)v3 ) { *(_BYTE *)(a1 + 596) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1); v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v4, &v49); v5 = cocos2d::CCLayer::create(); *(_QWORD *)(a1 + 584) = v5; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v5); v6 = cocos2d::CCNode::create(); sub_1000262C4((float *)&v48, 100.0, 100.0); (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v6 + 320LL))(v6, &v48); v7 = CCMenuItemSpriteExtra::create((__int64)v6, 0, a1, (__int64)sub_10046293C, 0); v15 = sub_100270434((__int64)v7, v8, v9, v10, v11, v12, v13, v14, 0); *(_QWORD *)(a1 + 552) = v15; sub_1000262BC((float *)&v48, *(float *)&v49 * 0.5, *((float *)&v49 + 1) * 0.5); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v15 + 184LL))(v15, &v48); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 552), 10); sub_1000262BC((float *)&v48, 0.0, 10.0); v16 = cocos2d::CCNode::create(); (*(void (__fastcall **)(void *, void *))(*(_QWORD *)v16 + 320LL))(v16, &unk_1009F7648); (*(void (__fastcall **)(void *, void *))(*(_QWORD *)v6 + 456LL))(v6, v16); sub_1000262BC((float *)&v47, 50.0, 50.0); (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v16 + 184LL))(v16, &v47); v17 = cocos2d::CCLabelBMFont::create_1("Reward!", "goldFont.fnt"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v17 + 160LL))(v17, 0.65); (*(void (__fastcall **)(void *, void *, __int64))(*(_QWORD *)v16 + 464LL))(v16, v17, 22); sub_1000262BC((float *)&v46, 0.0, 40.0); *(float32x2_t *)&v18 = sub_100026318(&v48, &v46, &v47); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v17 + 184LL))(v17, &v47, v18); sub_1000262BC((float *)&v47, 0.0, -5.0); v19 = cocos2d::CCLabelBMFont::create_1("Reward!", "goldFont.fnt"); (*(void (__fastcall **)(void *))(*(_QWORD *)v17 + 168LL))(v17); (*(void (__fastcall **)(void *))(*(_QWORD *)v19 + 160LL))(v19); (*(void (__fastcall **)(void *, void *, __int64))(*(_QWORD *)v16 + 464LL))(v16, v19, 21); v20 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v17 + 192LL))(v17); *(float32x2_t *)&v21 = sub_100026318(v20, &v47, &v46); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v19 + 184LL))(v19, &v46, v21); (*(void (__fastcall **)(void *, void *))(*(_QWORD *)v19 + 1072LL))(v19, &unk_10076F070); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v19 + 1024LL))(v19, 50); v22 = GJChestSprite::create(6); (*(void (__fastcall **)(void *, _QWORD *, __int64))(*(_QWORD *)v16 + 464LL))(v16, v22, 22); (*(void (__fastcall **)(_QWORD *, float))(*v22 + 160LL))(v22, 0.6); sub_1000262BC((float *)&v45, 0.0, -6.0); *(float32x2_t *)&v23 = sub_100026318(&v48, &v45, &v46); (*(void (__fastcall **)(_QWORD *, float32x2_t *, double))(*v22 + 184LL))(v22, &v46, v23); v24 = GJChestSprite::create(6); (*(void (__fastcall **)(void *, _QWORD *, __int64))(*(_QWORD *)v16 + 464LL))(v16, v24, 21); (*(void (__fastcall **)(_QWORD *))(*v22 + 168LL))(v22); (*(void (__fastcall **)(_QWORD *))(*v24 + 160LL))(v24); v25 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD *))(*v22 + 192LL))(v22); *(float32x2_t *)&v26 = sub_100026318(v25, &v47, &v46); (*(void (__fastcall **)(_QWORD *, float32x2_t *, double))(*v24 + 184LL))(v24, &v46, v26); v27 = (*(__int64 (__fastcall **)(_QWORD *))(*v24 + 488LL))(v24); v28 = sub_1002E75A0(v27, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v28 + 960LL))(v28, &unk_10076F070); v29 = (*(__int64 (__fastcall **)(_QWORD *))(*v24 + 488LL))(v24); v30 = sub_1002E75A0(v29, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v30 + 912LL))(v30, 50); sub_1000262BC((float *)&v46, 0.0, 5.0); v31 = cocos2d::CCMoveBy::create((double *)&v46, 1.0); v32 = cocos2d::CCEaseInOut::create((__int64)v31, 2.0); sub_1000262BC((float *)&v46, 0.0, -5.0); v33 = cocos2d::CCMoveBy::create((double *)&v46, 1.0); v34 = (unsigned __int8)cocos2d::CCEaseInOut::create((__int64)v33, 2.0); v42 = sub_10021D420((__int64)v32, v35, v36, v37, v38, v39, v40, v41, v34); v43 = cocos2d::CCRepeatForever::create(v42); cocos2d::CCNode::runAction((__int64)v16, (__int64)v43); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source