// // sub_10046CBBC from 0x10046cbbc to 0x10046d4a0 (2276 bytes) // // 1 xrefs: // > sub_10046CAD8 @ 0x10046cb6c // // 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:35 +0000 // __int64 __fastcall sub_10046CBBC(__int64 a1, __int64 a2, __int64 a3) { __int64 v4; // x20 __int64 v5; // x0 double WinSize; // d0 void *v7; // x22 void *v8; // x0 void *v9; // x0 std::string *v10; // x0 unsigned int v11; // w21 unsigned __int8 v12; // w8 __int64 v13; // x25 const char *p_p; // x8 void *v15; // x0 const std::string::value_type *CString; // x0 unsigned int v17; // w21 unsigned __int8 v18; // w8 __int64 v19; // x25 const char *v20; // x8 void *v21; // x0 const std::string::value_type *v22; // x0 unsigned int v23; // w21 unsigned __int8 v24; // w8 __int64 v25; // x25 const char *v26; // x8 void *v27; // x0 const std::string::value_type *v28; // x0 std::string *v29; // x1 char *v30; // x21 __int64 v31; // x22 __int64 v32; // x0 __int64 v33; // x22 __int64 v34; // x8 void *v35; // x22 double v36; // d0 void *v37; // x22 __int64 v38; // x22 __int64 v39; // x0 void *v40; // x21 void *v41; // x21 double v42; // d0 void *v43; // x21 void *v44; // x21 double v45; // d0 __int64 v47; // [xsp+0h] [xbp-100h] float32x2_t v48; // [xsp+18h] [xbp-E8h] BYREF std::string v49; // [xsp+20h] [xbp-E0h] BYREF float32x2_t v50; // [xsp+38h] [xbp-C8h] BYREF float32x2_t v51; // [xsp+40h] [xbp-C0h] BYREF void *v52[2]; // [xsp+48h] [xbp-B8h] BYREF char v53; // [xsp+5Fh] [xbp-A1h] void *v54[2]; // [xsp+60h] [xbp-A0h] BYREF char v55; // [xsp+77h] [xbp-89h] void *__p; // [xsp+78h] [xbp-88h] BYREF __int64 v57; // [xsp+80h] [xbp-80h] unsigned __int8 v58; // [xsp+8Fh] [xbp-71h] std::string v59; // [xsp+90h] [xbp-70h] BYREF __int64 v60; // [xsp+A8h] [xbp-58h] BYREF v4 = SetupTriggerPopup::init(a1, a2, a3, 1, 300.0, 240.0, 0.0); if ( !(_DWORD)v4 ) return v4; (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1360LL))(a1); v5 = cocos2d::CCDirector::sharedDirector(); WinSize = cocos2d::CCDirector::getWinSize(v5, &v60); v7 = cocos2d::CCLabelBMFont::create_1("Setup Animation", "goldFont.fnt", WinSize); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v7); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v7 + 160LL))(v7, 0.7); sub_1000262BC( (float *)&v59, *(float *)&v60 * 0.5, (float)((float)(*((float *)&v60 + 1) * 0.5) + (float)(*(float *)(a1 + 736) * 0.5)) + -18.0); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v7 + 184LL))(v7, &v59); v8 = ButtonSprite::create_1((__int64)"OK", 40, 0, 1, (__int64)"goldFont.fnt", (__int64)"GJ_button_01.png", 0.8, 30.0); v9 = CCMenuItemSpriteExtra::create((__int64)v8, 0, a1, 1368, 1); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v9); v10 = (std::string *)sub_100009900( &v59, "Animates certain objects. Can also be used to activate animate on trigger objects.\n" "The Animation ID specifies the animation:"); std::string::append(v10, "\nBig Beast: "); v11 = 0; do { while ( 1 ) { sub_10042B1C4(v11, 918, &__p); v12 = v58; if ( (v58 & 0x80u) == 0 ) v13 = v58; else v13 = v57; if ( v13 ) { if ( v11 ) { std::string::append(&v59, ", "); v12 = v58; } if ( (v12 & 0x80u) == 0 ) p_p = (const char *)&__p; else p_p = (const char *)__p; v15 = sub_1003065B0("%i: %s", v11, p_p); CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v15); std::string::append(&v59, CString); ++v11; v12 = v58; } if ( (v12 & 0x80) != 0 ) break; if ( !v13 ) goto LABEL_17; } operator delete(__p); } while ( v13 ); LABEL_17: std::string::append(&v59, "\n\nBat: "); v17 = 0; do { while ( 1 ) { sub_10042B1C4(v17, 1584, &__p); v18 = v58; if ( (v58 & 0x80u) == 0 ) v19 = v58; else v19 = v57; if ( v19 ) { if ( v17 ) { std::string::append(&v59, ", "); v18 = v58; } if ( (v18 & 0x80u) == 0 ) v20 = (const char *)&__p; else v20 = (const char *)__p; v21 = sub_1003065B0("%i: %s", v17, v20); v22 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v21); std::string::append(&v59, v22); ++v17; v18 = v58; } if ( (v18 & 0x80) != 0 ) break; if ( !v19 ) goto LABEL_32; } operator delete(__p); } while ( v19 ); LABEL_32: std::string::append(&v59, "\n\nSpikeball: "); v23 = 0; do { while ( 1 ) { sub_10042B1C4(v23, 2012, &__p); v24 = v58; if ( (v58 & 0x80u) == 0 ) v25 = v58; else v25 = v57; if ( v25 ) { if ( v23 ) { std::string::append(&v59, ", "); v24 = v58; } if ( (v24 & 0x80u) == 0 ) v26 = (const char *)&__p; else v26 = (const char *)__p; v27 = sub_1003065B0("%i: %s", v23, v26); v28 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v27); std::string::append(&v59, v28); ++v23; v24 = v58; } if ( (v24 & 0x80) != 0 ) break; if ( !v25 ) goto LABEL_47; } operator delete(__p); } while ( v25 ); LABEL_47: sub_100009900(v54, "Help"); if ( (v59.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v29 = &v59; else v29 = (std::string *)v59.__r_.__value_.__r.__words[0]; sub_100009900(v52, (char *)v29); v30 = InfoAlertButton::create((__int64)v54, (__int64)v52, 1.0); if ( v53 < 0 ) operator delete(v52[0]); if ( v55 < 0 ) operator delete(v54[0]); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v30); v31 = *(_QWORD *)(a1 + 552); sub_1000262BC( (float *)&v51, (float)((float)(*(float *)&v60 * 0.5) - (float)(*(float *)(a1 + 732) * 0.5)) + 18.0, (float)((float)(*((float *)&v60 + 1) * 0.5) + (float)(*(float *)(a1 + 736) * 0.5)) + -18.0); cocos2d::CCNode::convertToNodeSpace(v31, (__int64)&v51, &__p); (*(void (__fastcall **)(char *, void **))(*(_QWORD *)v30 + 184LL))(v30, &__p); sub_100009900(&__p, "Group ID"); sub_1000262BC((float *)&v51, *(float *)&v60 * 0.5, (float)(*((float *)&v60 + 1) * 0.5) + 40.0); BYTE4(v47) = 0; LODWORD(v47) = 0; v32 = IDNameInput::create(a1, a1 + 544, 1, 0, &__p, &v51, 6, 0, 1.0, v47); v33 = v32; if ( (char)v58 < 0 ) { operator delete(__p); if ( v33 ) goto LABEL_56; LABEL_58: v34 = 0; goto LABEL_59; } if ( !v32 ) goto LABEL_58; LABEL_56: v34 = *(_QWORD *)(v33 + 384); LABEL_59: *(_QWORD *)(a1 + 1016) = v34; sub_1000262BC((float *)&v51, *(float *)&v60 * 0.5, (float)(*((float *)&v60 + 1) * 0.5) + -25.0); v35 = cocos2d::CCLabelBMFont::create_1("Animation ID", "goldFont.fnt"); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v35); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v35 + 160LL))(v35, 0.65); sub_1000262BC((float *)&v50, 0.0, 30.0); *(float32x2_t *)&v36 = sub_100026318(&v51, &v50, (float32x2_t *)&__p); (*(void (__fastcall **)(void *, void **, double))(*(_QWORD *)v35 + 184LL))(v35, &__p, v36); sub_1000262CC((float *)&__p, 0.0, 0.0, 40.0, 40.0); v37 = cocos2d::extension::CCScale9Sprite::create((__int64)"square02b_small.png", (__int64)&__p); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v37 + 912LL))(v37, 100); BYTE2(__p) = 0; LOWORD(__p) = 0; (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v37 + 960LL))(v37, &__p); sub_1000262C4((float *)&__p, 50.0, 30.0); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v37 + 320LL))(v37, &__p); (*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v37, 0xFFFFFFFFLL); (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v37 + 184LL))(v37, &v51); *(_QWORD *)(a1 + 1024) = CCTextInputNode::create( (__int64)"Num", (__int64)"Thonburi", 24, (__int64)"bigFont.fnt", 50.0, 40.0); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584)); (*(void (__fastcall **)(_QWORD, float32x2_t *))(**(_QWORD **)(a1 + 1024) + 184LL))(*(_QWORD *)(a1 + 1024), &v51); CCTextInputNode::setMaxLabelScale(*(_QWORD *)(a1 + 1024), 0.6); CCTextInputNode::setMaxLabelWidth(*(_QWORD *)(a1 + 1024), 200.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1024) + 576LL) + 344LL))( *(_QWORD *)(*(_QWORD *)(a1 + 1024) + 576LL), 0); v38 = *(_QWORD *)(a1 + 1024); *(_DWORD *)(v38 + 592) = 6; sub_100009900(&v49, "0123456789"); CCTextInputNode::setAllowedChars(v38, &v49); if ( SHIBYTE(v49.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v49.__r_.__value_.__l.__data_); CCTextInputNode::setLabelPlaceholderColor(*(_QWORD *)(a1 + 1024), 15772280); CCTextInputNode::setLabelPlaceholderScale(*(_QWORD *)(a1 + 1024), 0.5); v39 = *(_QWORD *)(a1 + 1024); *(_QWORD *)(v39 + 584) = a1 + 544; *(_BYTE *)(v39 + 424) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v39 + 72LL))(v39, 1); cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), (__int64)&v51, &__p); v40 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"edit_leftBtn_001.png"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v40 + 160LL))(v40, 1.1); v41 = CCMenuItemSpriteExtra::create((__int64)v40, 0, a1, (__int64)sub_10046D570, 0); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v41); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v41 + 72LL))(v41, 1); sub_1000262BC((float *)&v48, -50.0, 0.0); *(float32x2_t *)&v42 = sub_100026318((float32x2_t *)&__p, &v48, &v50); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v41 + 184LL))(v41, &v50, v42); CCMenuItemSpriteExtra::setSizeMult((__int64)v41, 2.0); v43 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"edit_rightBtn_001.png"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v43 + 160LL))(v43, 1.1); v44 = CCMenuItemSpriteExtra::create((__int64)v43, 0, a1, (__int64)sub_10046D570, 0); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v44); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v44 + 72LL))(v44, 2); sub_1000262BC((float *)&v48, 50.0, 0.0); *(float32x2_t *)&v45 = sub_100026318((float32x2_t *)&__p, &v48, &v50); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v44 + 184LL))(v44, &v50, v45); CCMenuItemSpriteExtra::setSizeMult((__int64)v44, 2.0); sub_10046D5BC(a1); sub_10046D64C(a1); sub_1001ACE6C((float *)a1); *(_BYTE *)(a1 + 744) = 0; if ( SHIBYTE(v59.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v59.__r_.__value_.__l.__data_); return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source