{"type": "func", "start": 5372890368, "end": 5372890560, "name": "SetGroupIDLayer::onZLayer", "pseudocode": "// \n// SetGroupIDLayer::onZLayer from 0x1403fcd00 to 0x1403fcdc0 (192 bytes)\n// \n// 2 xrefs:\n// > SetGroupIDLayer::init @ 0x1403f971c\n// > <???> @ 0x1406d84f8\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::onZLayer(SetGroupIDLayer *a1, cocos2d::CCObject *a2)\n{\n  ZLayer v3; // eax\n  GameObject *m_targetObject; // rcx\n  unsigned int i; // edi\n  struct cocos2d::CCObject *v6; // rax\n\n  v3 = a2->getTag(a2);\n  m_targetObject = a1->m_targetObject;\n  a1->m_zLayerValue = v3;\n  if ( m_targetObject )\n  {\n    if ( !m_targetObject->m_zFixedZLayer )\n      m_targetObject->m_zLayer = v3;\n    a1->m_targetObject->m_updateParents = 1;\n    SetGroupIDLayer::updateZLayerButtons(a1);\n  }\n  else\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(a1->m_targetObjects); ++i )\n    {\n      v6 = cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, i);\n      if ( !LOBYTE(v6[20].m_uID) )\n        v6[20].m_nLuaID = a1->m_zLayerValue;\n      LOBYTE(v6[20].m_uUnknown) = 1;\n    }\n    SetGroupIDLayer::updateZLayerButtons(a1);\n  }\n}", "assembly": "; \n; SetGroupIDLayer::onZLayer from 0x1403fcd00 to 0x1403fcdc0 (192 bytes)\n; \n; 2 xrefs:\n; > SetGroupIDLayer::init @ 0x1403f971c\n; > <???> @ 0x1406d84f8\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, 0x1403fcd00\nsub     rsp, 20h                                                       ; +0x2, 0x1403fcd02\nmov     rax, [rdx]                                                     ; +0x6, 0x1403fcd06\nmov     rbx, rcx                                                       ; +0x9, 0x1403fcd09\nmov     rcx, rdx                                                       ; +0xc, 0x1403fcd0c\ncall    qword ptr [rax+38h]                                            ; +0xf, 0x1403fcd0f\nmov     rcx, [rbx+288h]                                                ; +0x12, 0x1403fcd12\nmov     [rbx+2F4h], eax                                                ; +0x19, 0x1403fcd19\ntest    rcx, rcx                                                       ; +0x1f, 0x1403fcd1f\njz      short loc_1403FCD4E                                            ; +0x22, 0x1403fcd22\ncmp     byte ptr [rcx+468h], 0                                         ; +0x24, 0x1403fcd24\njnz     short loc_1403FCD33                                            ; +0x2b, 0x1403fcd2b\nmov     [rcx+46Ch], eax                                                ; +0x2d, 0x1403fcd2d\nmov     rax, [rbx+288h]                                                ; +0x33, 0x1403fcd33\nmov     rcx, rbx                                                       ; +0x3a, 0x1403fcd3a\nmov     byte ptr [rax+484h], 1                                         ; +0x3d, 0x1403fcd3d\nadd     rsp, 20h                                                       ; +0x44, 0x1403fcd44\npop     rbx                                                            ; +0x48, 0x1403fcd48\njmp     SetGroupIDLayer__updateZLayerButtons                           ; +0x49, 0x1403fcd49\nmov     rcx, [rbx+290h]                                                ; +0x4e, 0x1403fcd4e\nmov     [rsp+28h+arg_0], rdi                                           ; +0x55, 0x1403fcd55\nxor     edi, edi                                                       ; +0x5a, 0x1403fcd5a\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x5c, 0x1403fcd5c\ntest    eax, eax                                                       ; +0x62, 0x1403fcd62\njz      short loc_1403FCDAE                                            ; +0x64, 0x1403fcd64\nnop     word ptr [rax+rax+00000000h]                                   ; +0x66, 0x1403fcd66\nmov     rcx, [rbx+290h]                                                ; +0x70, 0x1403fcd70\nmov     edx, edi                                                       ; +0x77, 0x1403fcd77\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x79, 0x1403fcd79\ncmp     byte ptr [rax+468h], 0                                         ; +0x7f, 0x1403fcd7f\njnz     short loc_1403FCD94                                            ; +0x86, 0x1403fcd86\nmov     ecx, [rbx+2F4h]                                                ; +0x88, 0x1403fcd88\nmov     [rax+46Ch], ecx                                                ; +0x8e, 0x1403fcd8e\nmov     byte ptr [rax+484h], 1                                         ; +0x94, 0x1403fcd94\ninc     edi                                                            ; +0x9b, 0x1403fcd9b\nmov     rcx, [rbx+290h]                                                ; +0x9d, 0x1403fcd9d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa4, 0x1403fcda4\ncmp     edi, eax                                                       ; +0xaa, 0x1403fcdaa\njb      short loc_1403FCD70                                            ; +0xac, 0x1403fcdac\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xae, 0x1403fcdae\nmov     rcx, rbx                                                       ; +0xb3, 0x1403fcdb3\nadd     rsp, 20h                                                       ; +0xb6, 0x1403fcdb6\npop     rbx                                                            ; +0xba, 0x1403fcdba\njmp     SetGroupIDLayer__updateZLayerButtons                           ; +0xbb, 0x1403fcdbb", "xrefs": ["SetGroupIDLayer::init @ 0x1403f971c", "<???> @ 0x1406d84f8"], "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"}