{"type": "func", "start": 5372892544, "end": 5372892679, "name": "SetGroupIDLayer::updateEditorLabel2", "pseudocode": "// \n// SetGroupIDLayer::updateEditorLabel2 from 0x1403fd580 to 0x1403fd607 (135 bytes)\n// \n// 5 xrefs:\n// > SetGroupIDLayer::init @ 0x1403f9e47\n// > SetGroupIDLayer::onArrow @ 0x1403fb21b\n// > SetGroupIDLayer::onPaste @ 0x1403fb847\n// > SetGroupIDLayer::onNextFreeEditorLayer2 @ 0x1403fd0c7\n// > <???> @ 0x1406d85a0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid SetGroupIDLayer::updateEditorLabel2(SetGroupIDLayer *a1)\n{\n  int m_editorLayer2Value; // edx\n  char *CString; // rax\n  cocos2d::CCString *v4; // rax\n  size_t v5; // r8\n  __int128 v6; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v7; // [rsp+30h] [rbp-18h]\n  __int64 v8; // [rsp+38h] [rbp-10h]\n\n  m_editorLayer2Value = a1->m_editorLayer2Value;\n  CString = byte_140518980;\n  a1->m_editorLayerEdited = 1;\n  if ( m_editorLayer2Value > -1 )\n  {\n    v4 = cocos2d::CCString::createWithFormat(\"%i\", m_editorLayer2Value);\n    CString = (char *)cocos2d::CCString::getCString(v4);\n  }\n  v6 = 0;\n  v7 = 0;\n  v5 = -1;\n  v8 = 0;\n  do\n    ++v5;\n  while ( CString[v5] );\n  sub_14003A930(&v6, CString, v5);\n  CCTextInputNode::setString((__int64)a1->m_editorLayer2Input, &v6);\n  a1->m_editorLayerEdited = 0;\n}", "assembly": "; \n; SetGroupIDLayer::updateEditorLabel2 from 0x1403fd580 to 0x1403fd607 (135 bytes)\n; \n; 5 xrefs:\n; > SetGroupIDLayer::init @ 0x1403f9e47\n; > SetGroupIDLayer::onArrow @ 0x1403fb21b\n; > SetGroupIDLayer::onPaste @ 0x1403fb847\n; > SetGroupIDLayer::onNextFreeEditorLayer2 @ 0x1403fd0c7\n; > <???> @ 0x1406d85a0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x1403fd580\nsub     rsp, 40h                                                       ; +0x2, 0x1403fd582\nmov     edx, [rcx+2ECh]                                                ; +0x6, 0x1403fd586\nlea     rax, byte_140518980                                            ; +0xc, 0x1403fd58c\nmov     byte ptr [rcx+2FDh], 1                                         ; +0x13, 0x1403fd593\nmov     rbx, rcx                                                       ; +0x1a, 0x1403fd59a\ncmp     edx, 0FFFFFFFFh                                                ; +0x1d, 0x1403fd59d\njle     short loc_1403FD5B8                                            ; +0x20, 0x1403fd5a0\nlea     rcx, aI_11; \"%i\"                                               ; +0x22, 0x1403fd5a2\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x29, 0x1403fd5a9\nmov     rcx, rax                                                       ; +0x2f, 0x1403fd5af\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x32, 0x1403fd5b2\nxor     ecx, ecx                                                       ; +0x38, 0x1403fd5b8\nxorps   xmm0, xmm0                                                     ; +0x3a, 0x1403fd5ba\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x3d, 0x1403fd5bd\nmov     [rsp+48h+var_18], rcx                                          ; +0x42, 0x1403fd5c2\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x47, 0x1403fd5c7\nmov     [rsp+48h+var_10], rcx                                          ; +0x4e, 0x1403fd5ce\ninc     r8                                                             ; +0x53, 0x1403fd5d3\ncmp     [rax+r8], cl                                                   ; +0x56, 0x1403fd5d6\njnz     short loc_1403FD5D3                                            ; +0x5a, 0x1403fd5da\nmov     rdx, rax                                                       ; +0x5c, 0x1403fd5dc\nlea     rcx, [rsp+48h+var_28]                                          ; +0x5f, 0x1403fd5df\ncall    sub_14003A930                                                  ; +0x64, 0x1403fd5e4\nmov     rcx, [rbx+2B0h]                                                ; +0x69, 0x1403fd5e9\nlea     rdx, [rsp+48h+var_28]                                          ; +0x70, 0x1403fd5f0\ncall    CCTextInputNode__setString                                     ; +0x75, 0x1403fd5f5\nmov     byte ptr [rbx+2FDh], 0                                         ; +0x7a, 0x1403fd5fa\nadd     rsp, 40h                                                       ; +0x81, 0x1403fd601\npop     rbx                                                            ; +0x85, 0x1403fd605\nretn                                                                   ; +0x86, 0x1403fd606", "xrefs": ["SetGroupIDLayer::init @ 0x1403f9e47", "SetGroupIDLayer::onArrow @ 0x1403fb21b", "SetGroupIDLayer::onPaste @ 0x1403fb847", "SetGroupIDLayer::onNextFreeEditorLayer2 @ 0x1403fd0c7", "<???> @ 0x1406d85a0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}