// // SetupAnimationPopup::init from 0xa99724 to 0xa9a1c8 (2724 bytes) // // 2 xrefs: // > SetupAnimationPopup::create @ 0xa9a41c // > @ 0x71368 // // 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 13:00:45 +0000 // __int64 __fastcall SetupAnimationPopup::init(cocos2d::CCNode **this, EffectGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w27 cocos2d::CCDirector *v7; // x0 cocos2d::CCDirector *v8; // x0 const char *v9; // x2 __int64 v10; // x19 void (__fastcall *v11)(__int64, __int64 *); // x23 const char *v12; // x6 __int64 v13; // x0 __int64 v14; // x0 unsigned int i; // w20 char *v16; // x2 cocos2d::CCString *v17; // x0 size_t v18; // x0 unsigned int v19; // w20 char *v20; // x2 cocos2d::CCString *v21; // x0 size_t v22; // x0 unsigned int v23; // w20 char *v24; // x2 cocos2d::CCString *v25; // x0 size_t v26; // x0 const char *v27; // x1 size_t v28; // x0 __int64 v29; // x21 void (__fastcall *v30)(__int64, __int64 *); // x23 cocos2d::CCNode *v31; // x26 __int64 v32; // x21 cocos2d::CCNode *v33; // x0 float v34; // s2 const char *v35; // x2 __int64 v36; // x21 void (__fastcall *v37)(__int64, __int64 *); // x28 __int64 v38; // x21 void (__fastcall *v39)(__int64, __int64 *); // x2 void (__fastcall *v40)(__int64, __int64 *); // x28 const char *v41; // x4 __int64 v42; // x0 __int64 v43; // x3 __int64 v44; // x21 const char *v45; // x1 __int64 v46; // x19 __int64 v47; // x19 void (__fastcall *v48)(__int64, __int64 *); // x26 const char *v49; // x1 __int64 v50; // x19 __int64 v51; // x19 void (__fastcall *v52)(__int64, __int64 *); // x23 char v53; // w0 char *CString; // [xsp+88h] [xbp+78h] char *v55; // [xsp+88h] [xbp+78h] char *v56; // [xsp+88h] [xbp+78h] char *v57; // [xsp+88h] [xbp+78h] int v58; // [xsp+98h] [xbp+88h] __int64 v59; // [xsp+A0h] [xbp+90h] BYREF _BYTE v60[8]; // [xsp+A8h] [xbp+98h] BYREF __int64 v61; // [xsp+B0h] [xbp+A0h] BYREF _BYTE v62[8]; // [xsp+B8h] [xbp+A8h] BYREF __int64 v63[2]; // [xsp+C0h] [xbp+B0h] BYREF __int64 v64[2]; // [xsp+D0h] [xbp+C0h] BYREF void *v65; // [xsp+E0h] [xbp+D0h] __int64 v66[2]; // [xsp+E8h] [xbp+D8h] BYREF void *v67; // [xsp+F8h] [xbp+E8h] __int64 v68[2]; // [xsp+100h] [xbp+F0h] BYREF void *v69; // [xsp+110h] [xbp+100h] __int64 v70[2]; // [xsp+118h] [xbp+108h] BYREF void *v71; // [xsp+128h] [xbp+118h] __int64 v72; // [xsp+130h] [xbp+120h] BYREF __int64 v73; // [xsp+138h] [xbp+128h] void *v74; // [xsp+140h] [xbp+130h] v4 = SetupTriggerPopup::init((SetupTriggerPopup *)this, a2, a3, 300.0, 240.0, 1, 0.0); v5 = v4; if ( !v4 ) return v5; v7 = (cocos2d::CCDirector *)(*((__int64 (__fastcall **)(cocos2d::CCNode **))*this + 170))(this); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(&v59, v8); v10 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Setup Animation", "goldFont.fnt", v9); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v10); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v10 + 160LL))(v10, 0.7); v11 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v10 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v63, *(float *)&v59 * 0.5, (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v59 + 1) * 0.5)) - 18.0); v11(v10, v63); v13 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&qword_28, 0, 1, 0.8, "goldFont.fnt", "GJ_button_01.png", v12, 30.0); v14 = CCMenuItemSpriteExtra::create(v13, 0, (__int64)this, 1368, 1); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v14); v64[0] = 0; v64[1] = 0; v65 = nullptr; std::string::__init( v64, "Animates certain objects. Can also be used to activate animate on trigger objects.\n" "The Animation ID specifies the animation:", 0x8Cu); std::string::append((__int64)v64, "\nBig Beast: ", 0x14u); for ( i = 0; ; ++i ) { AnimatedGameObject::animationForID((AnimatedGameObject *)i, 918, &v72); if ( (v72 & 1) == 0 ) { if ( !((int)(unsigned __int8)v72 >> 1) ) goto LABEL_13; if ( !i ) { v16 = (char *)&v72 + 1; goto LABEL_8; } LABEL_10: std::string::append((__int64)v64, ", ", 2u); v16 = (char *)&v72 + 1; if ( (v72 & 1) == 0 ) goto LABEL_8; goto LABEL_7; } if ( !v73 ) break; if ( i ) goto LABEL_10; LABEL_7: v16 = (char *)v74; LABEL_8: v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i: %s", (const char *)i, v16); CString = (char *)cocos2d::CCString::getCString(v17); v18 = strlen(CString); std::string::append((__int64)v64, CString, v18); if ( (v72 & 1) != 0 ) operator delete(v74); } operator delete(v74); LABEL_13: std::string::append((__int64)v64, "\n\nBat: ", 0xFu); v19 = 0; while ( 2 ) { AnimatedGameObject::animationForID((AnimatedGameObject *)v19, 1584, &v72); if ( (v72 & 1) == 0 ) { if ( !((int)(unsigned __int8)v72 >> 1) ) goto LABEL_23; if ( v19 ) { LABEL_20: std::string::append((__int64)v64, ", ", 2u); v20 = (char *)&v72 + 1; if ( (v72 & 1) != 0 ) LABEL_17: v20 = (char *)v74; } else { v20 = (char *)&v72 + 1; } v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i: %s", (const char *)v19, v20); v55 = (char *)cocos2d::CCString::getCString(v21); v22 = strlen(v55); std::string::append((__int64)v64, v55, v22); ++v19; if ( (v72 & 1) != 0 ) operator delete(v74); continue; } break; } if ( v73 ) { if ( !v19 ) goto LABEL_17; goto LABEL_20; } operator delete(v74); LABEL_23: std::string::append((__int64)v64, "\n\nSpikeball: ", 0x15u); v23 = 0; while ( 2 ) { AnimatedGameObject::animationForID((AnimatedGameObject *)v23, 2012, &v72); if ( (v72 & 1) == 0 ) { if ( !((int)(unsigned __int8)v72 >> 1) ) goto LABEL_33; if ( v23 ) { LABEL_30: std::string::append((__int64)v64, ", ", 2u); v24 = (char *)&v72 + 1; if ( (v72 & 1) != 0 ) LABEL_27: v24 = (char *)v74; } else { v24 = (char *)&v72 + 1; } v25 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i: %s", (const char *)v23, v24); v56 = (char *)cocos2d::CCString::getCString(v25); v26 = strlen(v56); std::string::append((__int64)v64, v56, v26); ++v23; if ( (v72 & 1) != 0 ) operator delete(v74); continue; } break; } if ( v73 ) { if ( !v23 ) goto LABEL_27; goto LABEL_30; } operator delete(v74); LABEL_33: v66[0] = 0; v66[1] = 0; v67 = nullptr; std::string::__init(v66, "Help", 4u); v27 = (char *)v64 + 1; if ( (v64[0] & 1) != 0 ) v27 = (const char *)v65; v57 = (char *)v27; v68[0] = 0; v68[1] = 0; v69 = nullptr; v28 = strlen(v27); std::string::__init(v68, v57, v28); v29 = InfoAlertButton::create((char *)v66, (char *)v68, 1.0); if ( (v68[0] & 1) != 0 ) operator delete(v69); if ( (v66[0] & 1) != 0 ) operator delete(v67); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v29); v30 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v29 + 184LL); v31 = *(this + 69); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v62, 18.0 - (float)((float)(*((float *)this + 183) * 0.5) - (float)(*(float *)&v59 * 0.5)), (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v59 + 1) * 0.5)) - 18.0); cocos2d::CCNode::convertToNodeSpace(v63, v31, (const cocos2d::CCPoint *)v62); v30(v29, v63); v70[0] = 0; v70[1] = 0; v71 = nullptr; std::string::__init(v70, "Group ID", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v63, *(float *)&v59 * 0.5, (float)(*((float *)&v59 + 1) * 0.5) + 40.0); v32 = IDNameInput::create(this, this + 68, 1, 0, v70, v63, 6, 0, 1.0, 0, 0); if ( (v70[0] & 1) != 0 ) operator delete(v71); if ( v32 ) v33 = *(cocos2d::CCNode **)(v32 + 384); else v33 = nullptr; v34 = *((float *)&v59 + 1); *(this + 127) = v33; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, *(float *)&v59 * 0.5, (float)(v34 * 0.5) + -25.0); v36 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Animation ID", "goldFont.fnt", v35); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v36); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v36 + 160LL))(v36, 0.65); v37 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v36 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, 0.0, 30.0); cocos2d::CCPoint::operator+(v63, v60); v37(v36, v63); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v63, 0.0, 0.0, 40.0, 40.0); v38 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v63); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v38 + 912LL))(v38, 100); v39 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v38 + 960LL); LOWORD(v63[0]) = 0; BYTE2(v63[0]) = 0; v39(v38, v63); v40 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v38 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v63, 50.0, 30.0); v40(v38, v63); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v38, 0xFFFFFFFFLL); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v38 + 184LL))(v38, v60); v42 = CCTextInputNode::create( (CCTextInputNode *)"Num", 50.0, 40.0, "Thonburi", (const char *)&off_18, "bigFont.fnt", v41); v43 = (__int64)*(this + 73); *(this + 128) = (cocos2d::CCNode *)v42; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v43 + 464LL))(v43, v42, 20); (*(void (__fastcall **)(_QWORD, _BYTE *))(*(_QWORD *)*(this + 128) + 184LL))(*(this + 128), v60); CCTextInputNode::setMaxLabelScale(*(this + 128), 0.6); CCTextInputNode::setMaxLabelWidth(*(this + 128), 200.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)*(this + 128) + 72) + 344LL))( *((_QWORD *)*(this + 128) + 72), 0); *((_DWORD *)*(this + 128) + 148) = 6; v72 = 0; v44 = (__int64)*(this + 128); v73 = 0; v74 = nullptr; std::string::__init(&v72, "0123456789", 0xAu); CCTextInputNode::setAllowedChars(v44, (__int64)&v72); if ( (v72 & 1) != 0 ) operator delete(v74); LOWORD(v58) = -21896; BYTE2(v58) = -16; CCTextInputNode::setLabelPlaceholderColor((__int64)*(this + 128), v58); CCTextInputNode::setLabelPlaceholderScale(*(this + 128), 0.5); *((_QWORD *)*(this + 128) + 73) = this + 68; *((_BYTE *)*(this + 128) + 424) = 1; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 128) + 72LL))(*(this + 128), 1); cocos2d::CCNode::convertToNodeSpace(&v61, *(this + 69), (const cocos2d::CCPoint *)v60); v46 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_leftBtn_001.png", v45); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v46 + 160LL))(v46, 1.1); v47 = CCMenuItemSpriteExtra::create(v46, 0, (__int64)this, (__int64)SetupAnimationPopup::onAnimationIDArrow, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v47); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v47 + 72LL))(v47, 1); v48 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v47 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, -50.0, 0.0); cocos2d::CCPoint::operator+(v63, &v61); v48(v47, v63); CCMenuItemSpriteExtra::setSizeMult(v47, 2.0); v50 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_rightBtn_001.png", v49); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 160LL))(v50, 1.1); v51 = CCMenuItemSpriteExtra::create(v50, 0, (__int64)this, (__int64)SetupAnimationPopup::onAnimationIDArrow, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v51); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v51 + 72LL))(v51, 2); v52 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v51 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, 50.0, 0.0); cocos2d::CCPoint::operator+(v63, &v61); v52(v51, v63); CCMenuItemSpriteExtra::setSizeMult(v51, 2.0); SetupAnimationPopup::updateTextInputLabel((SetupAnimationPopup *)this); SetupAnimationPopup::updateAnimationTextInputLabel((SetupAnimationPopup *)this); SetupTriggerPopup::createMultiTriggerItemsDefault((SetupTriggerPopup *)this); v53 = v64[0]; *((_BYTE *)this + 744) = 0; if ( (v53 & 1) != 0 ) operator delete(v65); return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source