// // ReviewChoiceSheet::init from 0xc4151c to 0xc41d10 (2036 bytes) // // 2 xrefs: // > ReviewChoiceSheet::create @ 0xc41fb4 // > @ 0xa1e30 // // 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:04:57 +0000 // __int64 __fastcall ReviewChoiceSheet::init( __int64 a1, __int64 a2, int a3, char *a4, char *a5, __int64 *a6, _QWORD *a7, unsigned __int8 a8, char *a9) { int v16; // w26 __int64 v17; // x0 cocos2d::CCDirector *v18; // x0 cocos2d::CCDirector *v20; // x0 __int64 v21; // x0 __int64 v22; // x2 __int64 v23; // x2 float v24; // s8 float v25; // s0 float v26; // s9 float v27; // s0 float v28; // s0 float v29; // s9 float v30; // s8 size_t v31; // x0 const char *v32; // x1 __int64 v33; // x21 char v34; // w0 float v35; // s8 __int64 v36; // x0 __int64 v37; // x1 __int64 v38; // x27 void (__fastcall *v39)(__int64, __int64 *); // x28 const char *v40; // x6 float v41; // s8 __int64 v42; // x1 __int64 v43; // x26 unsigned __int64 v44; // x28 char v45; // w2 __int64 v46; // x1 ButtonSprite *v47; // x0 __int64 v48; // x0 __int64 v49; // x25 __int64 v50; // x1 cocos2d::CCNode *v51; // x21 void (__fastcall *v52)(__int64, __int64 *); // x27 __int64 v53; // x26 void (__fastcall *v54)(__int64, __int64 *); // x27 void (__fastcall *v55)(__int64, __int64 *); // x2 void (__fastcall *v56)(__int64, __int64 *); // x27 int v57; // w2 __int64 v58; // x3 const char *v59; // x4 __int64 InputNode; // x26 void (__fastcall *v61)(__int64, __int64 *); // x27 __int64 v62; // x26 size_t v63; // x0 size_t v64; // x0 _DWORD *v65; // x28 cocos2d::CCNode *v66; // [xsp+90h] [xbp+90h] cocos2d::CCNode *v67; // [xsp+98h] [xbp+98h] cocos2d::CCNode *v68; // [xsp+98h] [xbp+98h] cocos2d::CCNode *v69; // [xsp+98h] [xbp+98h] char *v70; // [xsp+A0h] [xbp+A0h] unsigned __int8 v71; // [xsp+ACh] [xbp+ACh] __int64 v72; // [xsp+B8h] [xbp+B8h] BYREF _BYTE v73[8]; // [xsp+C0h] [xbp+C0h] BYREF __int64 v74[2]; // [xsp+C8h] [xbp+C8h] BYREF __int64 v75[2]; // [xsp+D8h] [xbp+D8h] BYREF void *v76; // [xsp+E8h] [xbp+E8h] __int64 v77; // [xsp+F0h] [xbp+F0h] BYREF __int64 v78; // [xsp+F8h] [xbp+F8h] void *v79; // [xsp+100h] [xbp+100h] v16 = a8; if ( !a2 ) return 0; v17 = a6[1]; if ( *a6 == v17 ) return 0; v18 = (cocos2d::CCDirector *)(0xAAAAAAAAAAAAAAABLL * ((v17 - *a6) >> 3)); if ( v18 != (cocos2d::CCDirector *)((__int64)(a7[1] - *a7) >> 3) ) return 0; v20 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v18); cocos2d::CCDirector::getWinSize(&v72, v20); v21 = a6[1]; v22 = *a6; if ( v16 ) { v23 = (v21 - v22) >> 3; v24 = (float)(unsigned __int64)(0x5555555555555562LL * v23 + 141); FLAlertLayer::keyboardRaise((FLAlertLayer *)(0x555555555555555CLL * v23), v24, (float)(290.0 - v24) * 0.5); v26 = v25; } else { v26 = 0.0; v24 = (float)(unsigned __int64)(0x5555555555555562LL * ((v21 - v22) >> 3) + 94); } v71 = SetupTriggerPopup::init((SetupTriggerPopup *)a1, nullptr, nullptr, 320.0, v24, 1u, v26); if ( v71 ) { v27 = *((float *)&v72 + 1); *(_QWORD *)(a1 + 1016) = a2; v28 = v26 + (float)(v27 * 0.5); *(_DWORD *)(a1 + 1024) = a3; v77 = 0; v29 = *(float *)&v72 * 0.5; v78 = 0; v79 = nullptr; v30 = v28 + (float)(v24 * 0.5); v31 = strlen(a4); std::string::__init(&v77, a4, v31); SetupTriggerPopup::addTitle(a1, (__int64)&v77); if ( (v77 & 1) != 0 ) operator delete(v79); v67 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_closeBtn_001.png", v32); (*(void (__fastcall **)(float))(*(_QWORD *)v67 + 160LL))(0.8); v33 = CCMenuItemSpriteExtra::create((__int64)v67, 0, a1, 1368, 1); CCMenuItemSpriteExtra::setSizeMult(v33, 1.5); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v33); v68 = *(cocos2d::CCNode **)(*(_QWORD *)v33 + 184LL); v66 = *(cocos2d::CCNode **)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, (float)(v29 - 160.0) + 6.0, v30 - 10.0); cocos2d::CCNode::convertToNodeSpace(v74, v66, (const cocos2d::CCPoint *)v73); ((void (__fastcall *)(__int64, __int64 *))v68)(v33, v74); if ( a9 && *a9 ) { v75[0] = 0; v75[1] = 0; v76 = nullptr; v63 = strlen(a4); std::string::__init(v75, a4, v63); v77 = 0; v78 = 0; v79 = nullptr; v64 = strlen(a9); std::string::__init(&v77, a9, v64); v65 = (_DWORD *)InfoAlertButton::create((char *)v75, (char *)&v77, 0.6); if ( (v77 & 1) != 0 ) operator delete(v79); if ( (v75[0] & 1) != 0 ) operator delete(v76); v65[138] = 1061997773; (*(void (__fastcall **)(_QWORD, _DWORD *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v65); v69 = *(cocos2d::CCNode **)(a1 + 552); v70 = *(char **)(*(_QWORD *)v65 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, (float)(v29 + 160.0) - 22.0, v30 - 22.0); cocos2d::CCNode::convertToNodeSpace(v74, v69, (const cocos2d::CCPoint *)v73); ((void (__fastcall *)(_DWORD *, __int64 *))v70)(v65, v74); } v34 = *a5; v77 = 0; v78 = 0; v79 = nullptr; v35 = v30 - 52.0; if ( (v34 & 1) != 0 ) { std::string::__init(&v77, *((void **)a5 + 2), *((_QWORD *)a5 + 1)); } else { v36 = *(_QWORD *)a5; v37 = *((_QWORD *)a5 + 1); v79 = *((void **)a5 + 2); v77 = v36; v78 = v37; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v74, 0.5, 0.5); v38 = TextArea::create((char *)&v77, "chatFont.fnt", (const cocos2d::CCPoint *)v74, 0, 0, 1.0, 350.0, 20.0); if ( (v77 & 1) != 0 ) operator delete(v79); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v38 + 160LL))(v38, 0.8); v39 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v38 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v74, v29, v35); v39(v38, v74); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v38, 1); v41 = v35 - 40.0; if ( v16 ) { cocos2d::CCRect::CCRect((cocos2d::CCRect *)v74, 0.0, 0.0, 40.0, 40.0); v53 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v74); v54 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v53 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v74, 280.0, 26.0); v54(v53, v74); v55 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v53 + 960LL); LOWORD(v74[0]) = 13405; BYTE2(v74[0]) = 31; v55(v53, v74); v56 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v53 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v74, v29, v41 - 6.0); v56(v53, v74); (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v53, 0); InputNode = GameToolbox::createInputNode( (GameToolbox *)"Case note (optional)", 268.0, 26.0, (const char *)off_F8 + 7, v57, v58, v59); *(_QWORD *)(a1 + 1032) = InputNode; v61 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)InputNode + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v74, v29, v41 - 6.0); v61(InputNode, v74); CCTextInputNode::setMaxLabelScale(*(CCTextInputNode **)(a1 + 1032), 0.9); CCTextInputNode::setMaxLabelWidth(*(CCTextInputNode **)(a1 + 1032), 264.0); v62 = *(_QWORD *)(a1 + 1032); v77 = 0; v78 = 0; v79 = nullptr; std::string::__init(&v77, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 .,!?'\"-:;()/", 0x4Bu); CCTextInputNode::setAllowedChars(v62, (__int64)&v77); if ( (v77 & 1) != 0 ) operator delete(v79); CCTextInputNode::setLabelPlaceholderScale(*(CCTextInputNode **)(a1 + 1032), 0.8); *(_QWORD *)(*(_QWORD *)(a1 + 1032) + 584LL) = a1 + 544; (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 1032), 5); v41 = v41 - 47.0; } v42 = *a6; if ( 0xAAAAAAAAAAAAAAABLL * ((a6[1] - *a6) >> 3) ) { v43 = 0; v44 = 0; do { v45 = *(_BYTE *)(v42 + v43); v46 = v42 + v43; v47 = (ButtonSprite *)(v46 + 1); if ( (v45 & 1) != 0 ) v47 = *(ButtonSprite **)(v46 + 16); v43 += 24; v48 = ButtonSprite::create( v47, (const char *)&qword_F0, 0, 1, 0.55, "bigFont.fnt", *(const char **)(*a7 + 8 * v44), v40, 30.0); v49 = CCMenuItemSpriteExtra::create(v48, 0, a1, (__int64)ReviewChoiceSheet::onChoice, 0); CCMenuItemSpriteExtra::setSizeMult(v49, 1.1); v50 = (unsigned int)v44++; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v49 + 72LL))(v49, v50); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v49); v51 = *(cocos2d::CCNode **)(a1 + 552); v52 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v49 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, v29, v41); cocos2d::CCNode::convertToNodeSpace(v74, v51, (const cocos2d::CCPoint *)v73); v52(v49, v74); v42 = *a6; v41 = v41 - 38.0; } while ( v44 < 0xAAAAAAAAAAAAAAABLL * ((a6[1] - *a6) >> 3) ); } } else { return 0; } return v71; }
GD Web Decomp Icon

GD Web Decomp

Raw Source