// // SetupRandTriggerPopup::updateTextInputLabel2 from 0x140441040 to 0x1404411e8 (424 bytes) // // 3 xrefs: // > SetupRandTriggerPopup::init @ 0x140440360 // > SetupRandTriggerPopup::onTargetID2Arrow @ 0x140440b9f // > @ 0x1406da3a0 // // 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 SetupRandTriggerPopup::updateTextInputLabel2(SetupRandTriggerPopup *a1) { cocos2d::CCString *v2; // rax const char *CString; // rax size_t v4; // r8 __int64 v5; // rdx __int64 v6; // rcx __int64 v7; // r8 __int64 v8; // r9 void **v9; // r15 char *v10; // rdi unsigned __int64 v11; // r14 __int64 v12; // rbx unsigned __int64 v13; // rsi char *v14; // rax __int128 v15; // [rsp+20h] [rbp-68h] BYREF unsigned __int64 v16; // [rsp+30h] [rbp-58h] __int64 v17; // [rsp+38h] [rbp-50h] void *Src[2]; // [rsp+48h] [rbp-40h] BYREF unsigned __int64 v19; // [rsp+58h] [rbp-30h] unsigned __int64 v20; // [rsp+60h] [rbp-28h] a1->m_disableTextDelegate = 1; v2 = cocos2d::CCString::createWithFormat("%i", a1->m_groupID2); CString = cocos2d::CCString::getCString(v2); *(_OWORD *)Src = 0; v19 = 0; v20 = 0; v4 = -1; do ++v4; while ( CString[v4] ); sub_14003A930(Src, CString, v4); v15 = 0; v16 = 0; v17 = 0; v9 = Src; v10 = (char *)Src[0]; v11 = v20; if ( v20 > 0xF ) v9 = (void **)Src[0]; v12 = 0x7FFFFFFFFFFFFFFFLL; v13 = v19; if ( v19 > 0x7FFFFFFFFFFFFFFFLL ) sub_140007B50(v6, v5, v7, v8); v17 = 15; if ( v19 > 0xF ) { if ( (v19 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL ) { v12 = v19 | 0xF; if ( (v19 | 0xF) < 0x16 ) v12 = 22; } *(_QWORD *)&v15 = sub_14003AA10(v12 + 1); v16 = v13; v17 = v12; memcpy((void *)v15, v9, v13 + 1); } else { v16 = v19; v15 = *(_OWORD *)v9; } CCTextInputNode::setString((__int64)a1->m_groupID2Input, &v15); a1->m_disableTextDelegate = 0; if ( v11 > 0xF ) { v14 = v10; if ( v11 + 1 >= 0x1000 ) { v10 = *((char **)v10 - 1); if ( (unsigned __int64)(v14 - v10 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v10); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source