// // cocos2d::extension::CCEditBoxImplAndroid::setText from 0xd1c81c to 0xd1cac0 (676 bytes) // // 2 xrefs: // > @ 0x4ec28 // > @ 0x15105c8 // // 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:07:09 +0000 // __int64 __fastcall cocos2d::extension::CCEditBoxImplAndroid::setText( cocos2d::extension::CCEditBoxImplAndroid *this, const char *a2) { size_t v3; // x0 __int64 v4; // x1 __int64 v5; // x2 int v6; // w0 char *v7; // x1 size_t v8; // x2 char *v9; // x1 float v10; // s8 const char *v12; // x1 cocos2d *v13; // x0 __int64 v14; // x24 __int64 v15; // x20 unsigned __int8 v16; // w3 size_t v17; // x3 unsigned __int64 v18; // x1 char *v19; // x0 char *v20; // x2 size_t v21; // x3 char v22; // w1 __int64 v23; // x2 _BYTE v25[8]; // [xsp+60h] [xbp+60h] BYREF float v26; // [xsp+68h] [xbp+68h] __int64 v27; // [xsp+70h] [xbp+70h] BYREF size_t v28; // [xsp+78h] [xbp+78h] void *v29; // [xsp+80h] [xbp+80h] if ( a2 ) { v3 = strlen(a2); std::string::assign((__int64 *)this + 7, a2, v3); v4 = *((_BYTE *)this + 56) >> 1; if ( (*((_BYTE *)this + 56) & 1) != 0 ) v4 = *((_QWORD *)this + 8); v5 = *((_QWORD *)this + 4); if ( v4 ) { (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v5 + 344LL))(*((_QWORD *)this + 4), 0); v27 = 0; v6 = *((_DWORD *)this + 11); v28 = 0; v29 = nullptr; if ( v6 ) { if ( (__int64 *)((char *)this + 56) != &v27 ) { if ( (*((_BYTE *)this + 56) & 1) != 0 ) { v7 = *((char **)this + 9); v8 = *((_QWORD *)this + 8); } else { v7 = (char *)this + 57; v8 = *((_BYTE *)this + 56) >> 1; } std::string::assign(&v27, v7, v8); } } else { v12 = (const char *)*((unsigned __int8 *)this + 56); v13 = (cocos2d::extension::CCEditBoxImplAndroid *)((char *)this + 57); if ( ((unsigned __int8)v12 & 1) != 0 ) v13 = *((cocos2d **)this + 9); v14 = cocos2d::cc_utf8_strlen(v13, v12); v15 = 0; if ( v14 > 0 ) { v16 = v27; LABEL_29: v17 = v16 >> 1; v19 = (char *)&v27 + 1; if ( 22 - v17 <= 2 ) { v18 = 22; LABEL_31: std::string::__grow_by_and_replace((__int64)&v27, v18, v17 + 3 - v18, v17, v17, 0, 3u, &word_11A63D0); goto LABEL_27; } while ( 1 ) { v20 = &v19[v17]; *(_WORD *)&v19[v17] = -26654; v21 = v17 + 3; v22 = v27; v20[2] = -113; if ( (v22 & 1) != 0 ) v28 = v21; else LOBYTE(v27) = 2 * v21; v19[v21] = 0; LABEL_27: if ( ++v15 == v14 ) break; v16 = v27; if ( (v27 & 1) == 0 ) goto LABEL_29; v17 = v28; v18 = (v27 & 0xFFFFFFFFFFFFFFFELL) - 1; if ( v18 - v28 <= 2 ) goto LABEL_31; v19 = (char *)v29; } } } if ( (v27 & 1) != 0 ) v9 = (char *)v29; else v9 = (char *)&v27 + 1; (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 3) + 1240LL))(*((_QWORD *)this + 3), v9); v10 = *((float *)this + 29) - 10.0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v25, (const cocos2d::CCRect *)(*((_QWORD *)this + 3) + 424LL)); if ( v10 < v26 ) { v23 = *((_QWORD *)this + 3); v26 = v10; (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v23 + 1136LL))(v23, v25); } if ( (v27 & 1) != 0 ) operator delete(v29); } else { (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v5 + 344LL))(*((_QWORD *)this + 4), 1); (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 3) + 1240LL))(*((_QWORD *)this + 3), &byte_11B8890); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source