{"type": "func", "start": 5372890896, "end": 5372891020, "name": "SetGroupIDLayer::updateEditorLayerID2", "pseudocode": "// \n// SetGroupIDLayer::updateEditorLayerID2 from 0x1403fcf10 to 0x1403fcf8c (124 bytes)\n// \n// 4 xrefs:\n// > SetGroupIDLayer::onArrow @ 0x1403fb228\n// > SetGroupIDLayer::textChanged @ 0x1403fbe12\n// > SetGroupIDLayer::onNextFreeEditorLayer2 @ 0x1403fd0ba\n// > <???> @ 0x1406d854c\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::updateEditorLayerID2(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_editorLayer2 = a1->m_editorLayer2Value;\n  }\n  else\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(a1->m_targetObjects); LOWORD(v4[21].m_uUnknown) = a1->m_editorLayer2Value )\n      v4 = cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, i++);\n  }\n}", "assembly": "; \n; SetGroupIDLayer::updateEditorLayerID2 from 0x1403fcf10 to 0x1403fcf8c (124 bytes)\n; \n; 4 xrefs:\n; > SetGroupIDLayer::onArrow @ 0x1403fb228\n; > SetGroupIDLayer::textChanged @ 0x1403fbe12\n; > SetGroupIDLayer::onNextFreeEditorLayer2 @ 0x1403fd0ba\n; > <???> @ 0x1406d854c\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, 0x1403fcf10\nsub     rsp, 20h                                                       ; +0x2, 0x1403fcf12\nmov     rbx, rcx                                                       ; +0x6, 0x1403fcf16\nmov     rcx, [rcx+288h]                                                ; +0x9, 0x1403fcf19\ntest    rcx, rcx                                                       ; +0x10, 0x1403fcf20\njz      short loc_1403FCF39                                            ; +0x13, 0x1403fcf23\nmovzx   eax, word ptr [rbx+2ECh]                                       ; +0x15, 0x1403fcf25\nmov     [rcx+4BCh], ax                                                 ; +0x1c, 0x1403fcf2c\nadd     rsp, 20h                                                       ; +0x23, 0x1403fcf33\npop     rbx                                                            ; +0x27, 0x1403fcf37\nretn                                                                   ; +0x28, 0x1403fcf38\nmov     rcx, [rbx+290h]                                                ; +0x29, 0x1403fcf39\nmov     [rsp+28h+arg_0], rdi                                           ; +0x30, 0x1403fcf40\nxor     edi, edi                                                       ; +0x35, 0x1403fcf45\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x37, 0x1403fcf47\ntest    eax, eax                                                       ; +0x3d, 0x1403fcf4d\njz      short loc_1403FCF81                                            ; +0x3f, 0x1403fcf4f\nmov     rcx, [rbx+290h]                                                ; +0x41, 0x1403fcf51\nmov     edx, edi                                                       ; +0x48, 0x1403fcf58\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x4a, 0x1403fcf5a\nmovzx   ecx, word ptr [rbx+2ECh]                                       ; +0x50, 0x1403fcf60\ninc     edi                                                            ; +0x57, 0x1403fcf67\nmov     [rax+4BCh], cx                                                 ; +0x59, 0x1403fcf69\nmov     rcx, [rbx+290h]                                                ; +0x60, 0x1403fcf70\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x67, 0x1403fcf77\ncmp     edi, eax                                                       ; +0x6d, 0x1403fcf7d\njb      short loc_1403FCF51                                            ; +0x6f, 0x1403fcf7f\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x71, 0x1403fcf81\nadd     rsp, 20h                                                       ; +0x76, 0x1403fcf86\npop     rbx                                                            ; +0x7a, 0x1403fcf8a\nretn                                                                   ; +0x7b, 0x1403fcf8b", "xrefs": ["SetGroupIDLayer::onArrow @ 0x1403fb228", "SetGroupIDLayer::textChanged @ 0x1403fbe12", "SetGroupIDLayer::onNextFreeEditorLayer2 @ 0x1403fd0ba", "<???> @ 0x1406d854c"], "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"}