// // SetGroupIDLayer::updateEditorLabel from 0x100315dd0 to 0x100315ed0 (256 bytes) // // 4 xrefs: // > SetGroupIDLayer::init @ 0x100313c55 // > SetGroupIDLayer::onNextFreeEditorLayer1 @ 0x100314a54 // > SetGroupIDLayer::onPaste @ 0x10031675a // > SetGroupIDLayer::onArrow @ 0x100316ae0 // // 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::updateEditorLabel(SetGroupIDLayer *a1) { __m128 v1; // xmm0 cocos2d::CCString *v2; // rax const char *CString; // r15 CCTextInputNode *m_editorLayerInput; // r14 size_t v5; // rax size_t v6; // r12 char *v7; // r13 size_t v8; // r14 char v9; // [rsp+0h] [rbp-50h] CCTextInputNode *v10; // [rsp+8h] [rbp-48h] _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] a1->m_editorLayerEdited = 1; if ( a1->m_editorLayerValue < 0 ) { CString = ""; } else { v2 = (cocos2d::CCString *)sub_1007AB580("%i", v9); CString = cocos2d::CCString::getCString(v2); } m_editorLayerInput = a1->m_editorLayerInput; v5 = strlen(CString); if ( v5 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(*(double *)v1.i64); v6 = v5; if ( v5 >= 0x17 ) { v10 = a1->m_editorLayerInput; v8 = 26; if ( (v5 | 7) != 0x17 ) v8 = (v5 | 7) + 1; v7 = (char *)operator new(v8); __p = v7; __dst[0] = v8 + 1; m_editorLayerInput = v10; __dst[1] = v6; goto LABEL_11; } LOBYTE(__dst[0]) = 2 * v5; v7 = (char *)__dst + 1; if ( v5 ) LABEL_11: memmove(v7, CString, v6); v7[v6] = 0; CCTextInputNode::setString(m_editorLayerInput, (__int64)__dst, v1); if ( (__dst[0] & 1) != 0 ) operator delete(__p); a1->m_editorLayerEdited = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source