// // SetupRandTriggerPopup::updateTextInputLabel2 from 0x1005e62d0 to 0x1005e63fa (298 bytes) // // 2 xrefs: // > SetupRandTriggerPopup::init @ 0x1005e5ab1 // > SetupRandTriggerPopup::onTargetID2Arrow @ 0x1005e60f1 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall SetupRandTriggerPopup::updateTextInputLabel2(SetupRandTriggerPopup *a1) { __m128 v1; // xmm0 cocos2d::CCString *v2; // rax const char *CString; // r15 size_t v4; // rax size_t v5; // r14 __int8 *v6; // r12 size_t v7; // r13 CCTextInputNode *m_groupID2Input; // r14 __int8 v9; // r12 __m128 v10; // [rsp+0h] [rbp-60h] BYREF void *__p; // [rsp+10h] [rbp-50h] __m128 __dst; // [rsp+20h] [rbp-40h] BYREF void *v13; // [rsp+30h] [rbp-30h] a1->m_disableTextDelegate = 1; v2 = (cocos2d::CCString *)sub_1007AB580("%i", v10.i8[0]); CString = cocos2d::CCString::getCString(v2); v4 = strlen(CString); if ( v4 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(*(double *)v1.i64); v5 = v4; if ( v4 >= 0x17 ) { v7 = 26; if ( (v4 | 7) != 0x17 ) v7 = (v4 | 7) + 1; v6 = (__int8 *)operator new(v7); v13 = v6; __dst.i64[0] = v7 + 1; __dst.i64[1] = v5; goto LABEL_8; } __dst.i8[0] = 2 * v4; v6 = &__dst.i8[1]; if ( v4 ) LABEL_8: memmove(v6, CString, v5); v6[v5] = 0; m_groupID2Input = a1->m_groupID2Input; v9 = __dst.i8[0]; if ( (__dst.i8[0] & 1) != 0 ) { sub_100006B70(&v10, v13, __dst.u64[1], *(double *)v1.i64); } else { __p = v13; v1 = __dst; v10 = __dst; } CCTextInputNode::setString(m_groupID2Input, (__int64)&v10, v1); if ( (v10.i8[0] & 1) != 0 ) operator delete(__p); a1->m_disableTextDelegate = 0; if ( (v9 & 1) != 0 ) operator delete(v13); }
GD Web Decomp Icon

GD Web Decomp

Raw Source