// // SetGroupIDLayer::updateOrderChannelLabel from 0x100315a40 to 0x100315b55 (277 bytes) // // 3 xrefs: // > SetGroupIDLayer::init @ 0x100313ba6 // > SetGroupIDLayer::onNextFreeOrderChannel @ 0x100315c88 // > SetGroupIDLayer::onArrow @ 0x100316c12 // // 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 SetGroupIDLayer::updateOrderChannelLabel(SetGroupIDLayer *a1) { __m128 v1; // xmm0 CCTextInputNode *m_channelInput; // r13 cocos2d::CCString *v3; // rax const char *CString; // r12 size_t v5; // rax size_t v6; // r15 char *v7; // r13 void **v8; // r14 size_t v9; // r14 _WORD v10[8]; // [rsp+0h] [rbp-60h] BYREF char v11; // [rsp+10h] [rbp-50h] BYREF CCTextInputNode *v12; // [rsp+18h] [rbp-48h] _QWORD __dst[2]; // [rsp+20h] [rbp-40h] BYREF char *v14; // [rsp+30h] [rbp-30h] BYREF a1->m_editorLayerEdited = 1; m_channelInput = a1->m_channelInput; if ( !a1->m_channelValue ) { v8 = (void **)&v11; v10[0] = 0; CCTextInputNode::setString(m_channelInput, (__int64)v10, v1); if ( (v10[0] & 1) == 0 ) goto LABEL_14; goto LABEL_13; } v3 = (cocos2d::CCString *)sub_1007AB580("%i", v10[0]); CString = cocos2d::CCString::getCString(v3); v5 = strlen(CString); if ( v5 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(*(double *)v1.i64); v6 = v5; v12 = m_channelInput; if ( v5 >= 0x17 ) { v9 = 26; if ( (v5 | 7) != 0x17 ) v9 = (v5 | 7) + 1; v7 = (char *)operator new(v9); v14 = v7; __dst[0] = v9 + 1; __dst[1] = v6; goto LABEL_11; } LOBYTE(__dst[0]) = 2 * v5; v7 = (char *)__dst + 1; if ( v5 ) LABEL_11: memmove(v7, CString, v6); v8 = (void **)&v14; v7[v6] = 0; CCTextInputNode::setString(v12, (__int64)__dst, v1); if ( (__dst[0] & 1) != 0 ) LABEL_13: operator delete(*v8); LABEL_14: a1->m_editorLayerEdited = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source