// // SetGroupIDLayer::createTextInput from 0x140590d90 to 0x140591222 (1170 bytes) // // 6 xrefs: // > SetGroupIDLayer::init @ 0x14058f13e // > SetGroupIDLayer::init @ 0x14058f1d5 // > SetGroupIDLayer::init @ 0x14058f5a7 // > SetGroupIDLayer::init @ 0x14058fe00 // > SetGroupIDLayer::init @ 0x14058fe74 // > @ 0x14092ccb4 // // This function is hookable on this platform (idp: pc, 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:34:32 +0000 // // Hidden C++ exception states: #wind=2 char *__fastcall SetGroupIDLayer::createTextInput( __int64 a1, __int64 a2, unsigned int a3, __int64 a4, _QWORD *a5, float a6, int a7) { __int64 v10; // rax _QWORD *v11; // rbx __int64 v12; // rdx size_t v13; // rdi __int64 v14; // rdx __int64 v15; // rcx _QWORD *v16; // r8 char *v17; // rsi __int64 v18; // xmm0_8 __int64 v19; // rax cocos2d::CCString *v20; // rax const char *CString; // rax const char *v22; // rcx struct cocos2d::CCSprite *v23; // rax int v24; // ebx cocos2d::CCObject *v25; // rdi __int64 v26; // rax __int64 v27; // rbx __int64 v28; // rax const char *v29; // rcx cocos2d::CCSprite *v30; // rbx cocos2d::CCObject *v31; // rdi __int64 v32; // rax __int64 v33; // rbx __int64 v34; // rax int v36; // [rsp+38h] [rbp-A1h] BYREF __int128 v37; // [rsp+40h] [rbp-99h] BYREF __int64 v38; // [rsp+50h] [rbp-89h] __int64 v39; // [rsp+58h] [rbp-81h] _BYTE v40[8]; // [rsp+60h] [rbp-79h] BYREF _BYTE v41[8]; // [rsp+68h] [rbp-71h] BYREF _BYTE v42[16]; // [rsp+70h] [rbp-69h] BYREF _QWORD *v43; // [rsp+80h] [rbp-59h] __int128 v44; // [rsp+88h] [rbp-51h] BYREF __int128 v45; // [rsp+98h] [rbp-41h] v43 = a5; v36 = a7; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v42, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v37, (const struct cocos2d::CCRect *)v42); v11 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02_small.png", v10); LOBYTE(v12) = 100; (*(void (__fastcall **)(_QWORD *, __int64))(v11[40] + 40LL))(v11 + 40, v12); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v41, a6, 30.0); (*(void (__fastcall **)(_QWORD *, _BYTE *))(*v11 + 312LL))(v11, v41); v13 = -1; (*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v11, 0xFFFFFFFFLL); (*(void (__fastcall **)(_QWORD *, __int64))(*v11 + 184LL))(v11, a2); v16 = a5; if ( a5[3] > 0xFu ) v16 = (_QWORD *)*a5; v17 = CCTextInputNode::create(v15, v14, (__int64)v16); (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v17, 20); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v17 + 184LL))(v17, a2); *((_DWORD *)v17 + 141) = 1058642330; CCTextInputNode::refreshLabel((__int64)v17); *((_DWORD *)v17 + 140) = 1109393408; CCTextInputNode::refreshLabel((__int64)v17); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v17 + 74) + 336LL))(*((_QWORD *)v17 + 74), 0); *((_DWORD *)v17 + 152) = 6; v39 = 15; if ( a3 == 7 ) { v38 = 11; v18 = 0x3736353433323130LL; *((_QWORD *)&v37 + 1) = 2963768; } else { v37 = 0; v38 = 10; v18 = *(_QWORD *)"0123456789"; strcpy((char *)&v37 + 8, "89"); } *(_QWORD *)&v37 = v18; CCTextInputNode::setAllowedChars((__int64)v17, (void **)&v37); *((_WORD *)v17 + 286) = -21896; v17[574] = -16; CCTextInputNode::refreshLabel((__int64)v17); *((_DWORD *)v17 + 142) = 1056964608; CCTextInputNode::refreshLabel((__int64)v17); v19 = a1 + 544; if ( !a1 ) v19 = 0; *((_QWORD *)v17 + 75) = v19; v17[424] = 1; (*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v17 + 64LL))(v17, a3); v20 = cocos2d::CCString::createWithFormat("GJ_arrow_0%i_001.png", v36); CString = cocos2d::CCString::getCString(v20); v44 = 0; v45 = 0; do ++v13; while ( CString[v13] ); sub_14003D230(&v44, CString, v13); v22 = (const char *)&v44; if ( *((_QWORD *)&v45 + 1) > 0xFu ) v22 = (const char *)v44; v23 = cocos2d::CCSprite::createWithSpriteFrameName(v22); v24 = (int)v23; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v23 + 160LL))(v23); v25 = CCMenuItemSpriteExtra::create(v24, 0, a1, (__int64)SetGroupIDLayer::onArrowLeft); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v25); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, -45.0, 0.0); cocos2d::CCPoint::operator+(a2, &v36, v26); v27 = *(_QWORD *)v25; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), &v37, &v36); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v27 + 184))(v25, v28); *((_DWORD *)v25 + 93) = 1068708659; (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v25 + 64LL))(v25, a3); v29 = (const char *)&v44; if ( *((_QWORD *)&v45 + 1) > 0xFu ) v29 = (const char *)v44; v30 = cocos2d::CCSprite::createWithSpriteFrameName(v29); cocos2d::CCSprite::setFlipX(v30, 1); (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v30 + 160LL))(v30); v31 = CCMenuItemSpriteExtra::create((int)v30, 0, a1, (__int64)SetGroupIDLayer::onArrowRight); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v31); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, 45.0, 0.0); cocos2d::CCPoint::operator+(a2, &v36, v32); v33 = *(_QWORD *)v31; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v40, &v36); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v33 + 184))(v31, v34); *((_DWORD *)v31 + 93) = 1068708659; (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v31 + 64LL))(v31, a3); sub_14003D310((__int64)&v44); sub_14003D310((__int64)a5); return v17; }
GD Web Decomp Icon

GD Web Decomp

Raw Source