{"type": "func", "start": 5372890768, "end": 5372890892, "name": "SetGroupIDLayer::updateEditorLayerID", "pseudocode": "// \n// SetGroupIDLayer::updateEditorLayerID from 0x1403fce90 to 0x1403fcf0c (124 bytes)\n// \n// 4 xrefs:\n// > SetGroupIDLayer::onArrow @ 0x1403fb1ff\n// > SetGroupIDLayer::textChanged @ 0x1403fbd52\n// > SetGroupIDLayer::onNextFreeEditorLayer1 @ 0x1403fd01a\n// > <???> @ 0x1406d8540\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::updateEditorLayerID(SetGroupIDLayer *a1)\n{\n  GameObject *m_targetObject; // rcx\n  unsigned int i; // edi\n  struct cocos2d::CCObject *v4; // rax\n\n  m_targetObject = a1->m_targetObject;\n  if ( m_targetObject )\n  {\n    m_targetObject->m_editorLayer = a1->m_editorLayerValue;\n  }\n  else\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(a1->m_targetObjects); HIWORD(v4[21].m_uIndexInArray) = a1->m_editorLayerValue )\n      v4 = cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, i++);\n  }\n}", "assembly": "; \n; SetGroupIDLayer::updateEditorLayerID from 0x1403fce90 to 0x1403fcf0c (124 bytes)\n; \n; 4 xrefs:\n; > SetGroupIDLayer::onArrow @ 0x1403fb1ff\n; > SetGroupIDLayer::textChanged @ 0x1403fbd52\n; > SetGroupIDLayer::onNextFreeEditorLayer1 @ 0x1403fd01a\n; > <???> @ 0x1406d8540\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, 0x1403fce90\nsub     rsp, 20h                                                       ; +0x2, 0x1403fce92\nmov     rbx, rcx                                                       ; +0x6, 0x1403fce96\nmov     rcx, [rcx+288h]                                                ; +0x9, 0x1403fce99\ntest    rcx, rcx                                                       ; +0x10, 0x1403fcea0\njz      short loc_1403FCEB9                                            ; +0x13, 0x1403fcea3\nmovzx   eax, word ptr [rbx+2E8h]                                       ; +0x15, 0x1403fcea5\nmov     [rcx+4BAh], ax                                                 ; +0x1c, 0x1403fceac\nadd     rsp, 20h                                                       ; +0x23, 0x1403fceb3\npop     rbx                                                            ; +0x27, 0x1403fceb7\nretn                                                                   ; +0x28, 0x1403fceb8\nmov     rcx, [rbx+290h]                                                ; +0x29, 0x1403fceb9\nmov     [rsp+28h+arg_0], rdi                                           ; +0x30, 0x1403fcec0\nxor     edi, edi                                                       ; +0x35, 0x1403fcec5\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x37, 0x1403fcec7\ntest    eax, eax                                                       ; +0x3d, 0x1403fcecd\njz      short loc_1403FCF01                                            ; +0x3f, 0x1403fcecf\nmov     rcx, [rbx+290h]                                                ; +0x41, 0x1403fced1\nmov     edx, edi                                                       ; +0x48, 0x1403fced8\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x4a, 0x1403fceda\nmovzx   ecx, word ptr [rbx+2E8h]                                       ; +0x50, 0x1403fcee0\ninc     edi                                                            ; +0x57, 0x1403fcee7\nmov     [rax+4BAh], cx                                                 ; +0x59, 0x1403fcee9\nmov     rcx, [rbx+290h]                                                ; +0x60, 0x1403fcef0\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x67, 0x1403fcef7\ncmp     edi, eax                                                       ; +0x6d, 0x1403fcefd\njb      short loc_1403FCED1                                            ; +0x6f, 0x1403fceff\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x71, 0x1403fcf01\nadd     rsp, 20h                                                       ; +0x76, 0x1403fcf06\npop     rbx                                                            ; +0x7a, 0x1403fcf0a\nretn                                                                   ; +0x7b, 0x1403fcf0b", "xrefs": ["SetGroupIDLayer::onArrow @ 0x1403fb1ff", "SetGroupIDLayer::textChanged @ 0x1403fbd52", "SetGroupIDLayer::onNextFreeEditorLayer1 @ 0x1403fd01a", "<???> @ 0x1406d8540"], "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"}