{"type": "func", "start": 5372892256, "end": 5372892400, "name": "SetGroupIDLayer::updateZOrder", "pseudocode": "// \n// SetGroupIDLayer::updateZOrder from 0x1403fd460 to 0x1403fd4f0 (144 bytes)\n// \n// 3 xrefs:\n// > SetGroupIDLayer::onArrow @ 0x1403fb2d9\n// > SetGroupIDLayer::textChanged @ 0x1403fbed2\n// > <???> @ 0x1406d8588\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::updateZOrder(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_zOrder = a1->m_zOrderValue;\n    a1->m_targetObject->m_updateParents = 1;\n  }\n  else\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(a1->m_targetObjects); LOBYTE(v4[20].m_uUnknown) = 1 )\n    {\n      v4 = cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, i++);\n      v4[20].m_nTag = a1->m_zOrderValue;\n    }\n  }\n}", "assembly": "; \n; SetGroupIDLayer::updateZOrder from 0x1403fd460 to 0x1403fd4f0 (144 bytes)\n; \n; 3 xrefs:\n; > SetGroupIDLayer::onArrow @ 0x1403fb2d9\n; > SetGroupIDLayer::textChanged @ 0x1403fbed2\n; > <???> @ 0x1406d8588\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, 0x1403fd460\nsub     rsp, 20h                                                       ; +0x2, 0x1403fd462\nmov     rbx, rcx                                                       ; +0x6, 0x1403fd466\nmov     rcx, [rcx+288h]                                                ; +0x9, 0x1403fd469\ntest    rcx, rcx                                                       ; +0x10, 0x1403fd470\njz      short loc_1403FD495                                            ; +0x13, 0x1403fd473\nmov     eax, [rbx+2F0h]                                                ; +0x15, 0x1403fd475\nmov     [rcx+470h], eax                                                ; +0x1b, 0x1403fd47b\nmov     rax, [rbx+288h]                                                ; +0x21, 0x1403fd481\nmov     byte ptr [rax+484h], 1                                         ; +0x28, 0x1403fd488\nadd     rsp, 20h                                                       ; +0x2f, 0x1403fd48f\npop     rbx                                                            ; +0x33, 0x1403fd493\nretn                                                                   ; +0x34, 0x1403fd494\nmov     rcx, [rbx+290h]                                                ; +0x35, 0x1403fd495\nmov     [rsp+28h+arg_0], rdi                                           ; +0x3c, 0x1403fd49c\nxor     edi, edi                                                       ; +0x41, 0x1403fd4a1\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x43, 0x1403fd4a3\ntest    eax, eax                                                       ; +0x49, 0x1403fd4a9\njz      short loc_1403FD4E5                                            ; +0x4b, 0x1403fd4ab\nnop     dword ptr [rax]                                                ; +0x4d, 0x1403fd4ad\nmov     rcx, [rbx+290h]                                                ; +0x50, 0x1403fd4b0\nmov     edx, edi                                                       ; +0x57, 0x1403fd4b7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x59, 0x1403fd4b9\nmov     ecx, [rbx+2F0h]                                                ; +0x5f, 0x1403fd4bf\ninc     edi                                                            ; +0x65, 0x1403fd4c5\nmov     [rax+470h], ecx                                                ; +0x67, 0x1403fd4c7\nmov     byte ptr [rax+484h], 1                                         ; +0x6d, 0x1403fd4cd\nmov     rcx, [rbx+290h]                                                ; +0x74, 0x1403fd4d4\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x7b, 0x1403fd4db\ncmp     edi, eax                                                       ; +0x81, 0x1403fd4e1\njb      short loc_1403FD4B0                                            ; +0x83, 0x1403fd4e3\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x85, 0x1403fd4e5\nadd     rsp, 20h                                                       ; +0x8a, 0x1403fd4ea\npop     rbx                                                            ; +0x8e, 0x1403fd4ee\nretn                                                                   ; +0x8f, 0x1403fd4ef", "xrefs": ["SetGroupIDLayer::onArrow @ 0x1403fb2d9", "SetGroupIDLayer::textChanged @ 0x1403fbed2", "<???> @ 0x1406d8588"], "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"}