// // SetGroupIDLayer::createTextInput from 0x1002ff6d0 to 0x1002ffb6b (1179 bytes) // // 5 xrefs: // > SetGroupIDLayer::init @ 0x1002fd8b6 // > SetGroupIDLayer::init @ 0x1002fd947 // > SetGroupIDLayer::init @ 0x1002fdc35 // > SetGroupIDLayer::init @ 0x1002fe4cf // > SetGroupIDLayer::init @ 0x1002fe542 // // 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 12:28:32 +0000 // _QWORD **__fastcall SetGroupIDLayer::createTextInput( __int64 a1, unsigned __int64 *a2, unsigned int a3, int a4, __int64 a5, unsigned int a6, float a7) { __int64 v8; // rbx __int64 v9; // rax __int64 v10; // r12 _QWORD **v11; // r12 __int64 v12; // r15 void **p_data; // rax const char *v14; // rsi __int64 v15; // rax const char *CString; // r13 size_t v17; // rax size_t v18; // rbx __int8 *v19; // r14 size_t v20; // r15 __int8 *v21; // r13 __int8 *v22; // rdi char *v23; // rbx void *v24; // rbx __int64 v25; // r14 unsigned __int8 *v26; // rbx void *v27; // rbx __int64 v28; // r14 unsigned __int64 v30[2]; // [rsp+0h] [rbp-C0h] BYREF float v31; // [rsp+10h] [rbp-B0h] BYREF std::string v32; // [rsp+18h] [rbp-A8h] BYREF std::string v33; // [rsp+30h] [rbp-90h] BYREF __int64 v34; // [rsp+48h] [rbp-78h] double v35; // [rsp+50h] [rbp-70h] BYREF double v36; // [rsp+58h] [rbp-68h] BYREF unsigned __int64 v37; // [rsp+60h] [rbp-60h] BYREF int v38; // [rsp+68h] [rbp-58h] unsigned int v39; // [rsp+6Ch] [rbp-54h] unsigned __int64 *v40; // [rsp+70h] [rbp-50h] __m128 __dst; // [rsp+78h] [rbp-48h] BYREF void *__p; // [rsp+88h] [rbp-38h] float v43; // [rsp+90h] [rbp-30h] unsigned int v44; // [rsp+94h] [rbp-2Ch] v39 = a6; v43 = a7; v38 = a4; v44 = a3; sub_100278270((__int64)v30, 0.0, 0.0, (__m128)0x42200000u, (__m128)0x42200000u); sub_1002787F0(&__dst, v30); v8 = cocos2d::extension::CCScale9Sprite::create_2("square02_small.png", &__dst); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 912LL))(v8, 100); sub_100278260(&v31, v43, 30.0); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v8 + 320LL))(v8, &v31); v34 = a1; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v34 + 584) + 464LL))( *(_QWORD *)(v34 + 584), v8, 0xFFFFFFFFLL); v9 = *(_QWORD *)v8; v40 = a2; (*(void (__fastcall **)(__int64, unsigned __int64 *))(v9 + 184))(v8, a2); if ( (*(_BYTE *)a5 & 1) != 0 ) v10 = *(_QWORD *)(a5 + 16); else v10 = a5 + 1; v11 = (_QWORD **)CCTextInputNode::create(v10, (__int64)"Thonburi", 0x18u, (__int64)"bigFont.fnt", v43, 40.0); v12 = v34; (*(void (__fastcall **)(_QWORD, _QWORD **, __int64))(**(_QWORD **)(v34 + 584) + 464LL))( *(_QWORD *)(v34 + 584), v11, 20); ((void (__fastcall *)(_QWORD **, unsigned __int64 *))(*v11)[23])(v11, v40); CCTextInputNode::setMaxLabelScale((__int64)v11, 0.60000002); CCTextInputNode::setMaxLabelWidth((__int64)v11, 40.0); (*(void (__fastcall **)(_QWORD *, _QWORD))(*v11[72] + 344LL))(v11[72], 0); *((_DWORD *)v11 + 148) = v38; if ( v44 == 7 ) { v32.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)22; strcpy(v32.__r_.__value_.__s.__data_, "0123456789-"); CCTextInputNode::setAllowedChars((__int64)v11, &v32); if ( (*(_BYTE *)&v32.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_10; p_data = (void **)&v32.__r_.__value_.__l.__data_; } else { v33.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)20; strcpy(v33.__r_.__value_.__s.__data_, "0123456789"); CCTextInputNode::setAllowedChars((__int64)v11, &v33); if ( (*(_BYTE *)&v33.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_10; p_data = (void **)&v33.__r_.__value_.__l.__data_; } operator delete(*p_data); LABEL_10: CCTextInputNode::setLabelPlaceholderColor((__int64)v11, 15772280); CCTextInputNode::setLabelPlaceholderScale((__int64)v11, 0.5); v11[73] = (_QWORD *)(v12 + 544); *((_BYTE *)v11 + 424) = 1; ((void (__fastcall *)(_QWORD **, _QWORD))(*v11)[9])(v11, v44); v14 = (const char *)v39; v15 = sub_10088E820("GJ_arrow_0%i_001.png", v30[0]); CString = (const char *)cocos2d::CCString::getCString(v15); v17 = strlen(CString); if ( v17 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v18 = v17; if ( v17 >= 0x17 ) { v20 = 26; if ( (v17 | 7) != 0x17 ) v20 = (v17 | 7) + 1; v19 = (__int8 *)operator new(v20); __p = v19; __dst.i64[0] = v20 + 1; v12 = v34; __dst.i64[1] = v18; goto LABEL_17; } __dst.i8[0] = 2 * v17; v19 = &__dst.i8[1]; if ( v17 ) { LABEL_17: v14 = CString; memmove(v19, CString, v18); } v21 = &__dst.i8[1]; v19[v18] = 0; v22 = &__dst.i8[1]; if ( (__dst.i8[0] & 1) != 0 ) v22 = (__int8 *)__p; v23 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v22, COERCE_DOUBLE(1056964608)); (*(void (__fastcall **)(char *, const char *, float))(*(_QWORD *)v23 + 160LL))(v23, v14, 0.69999999); v24 = CCMenuItemSpriteExtra::create((__int64)v23, 0, v12, (__int64)SetGroupIDLayer::onArrowLeft, 0); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v12 + 552) + 456LL))(*(_QWORD *)(v12 + 552), v24); v25 = *(_QWORD *)(v12 + 552); sub_100278250((float *)&v37, -45.0, 0.0); sub_100278350(&v36, v40, &v37); cocos2d::CCNode::convertToNodeSpace(&v35, v25, (unsigned int *)&v36); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v24 + 184LL))(v24, &v35); CCMenuItemSpriteExtra::setSizeMult((__int64)v24, 1.4); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v24 + 72LL))(v24, v44); if ( (__dst.i8[0] & 1) != 0 ) v21 = (__int8 *)__p; v26 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)v21, COERCE_DOUBLE(1068708659)); cocos2d::CCSprite::setFlipX(v26, 1u); (*(void (__fastcall **)(unsigned __int8 *, float))(*(_QWORD *)v26 + 160LL))(v26, 0.69999999); v27 = CCMenuItemSpriteExtra::create((__int64)v26, 0, v12, (__int64)SetGroupIDLayer::onArrowRight, 0); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v12 + 552) + 456LL))(*(_QWORD *)(v12 + 552), v27); v28 = *(_QWORD *)(v12 + 552); sub_100278250((float *)&v37, 45.0, 0.0); sub_100278350(&v36, v40, &v37); cocos2d::CCNode::convertToNodeSpace(&v35, v28, (unsigned int *)&v36); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v27 + 184LL))(v27, &v35); CCMenuItemSpriteExtra::setSizeMult((__int64)v27, 1.4); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v27 + 72LL))(v27, v44); if ( (__dst.i8[0] & 1) != 0 ) operator delete(__p); return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source