{"type": "func", "start": 4300906480, "end": 4300906562, "name": "GameObject::parentForZLayer", "pseudocode": "// \n// GameObject::parentForZLayer from 0x1005a9ff0 to 0x1005aa042 (82 bytes)\n// \n// 2 xrefs:\n// > ParticleGameObject::addMainSpriteToParent @ 0x1001b1b34\n// > GameObject::playDestroyObjectAnim @ 0x10025f33e\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\ncocos2d::CCNode *__fastcall GameObject::parentForZLayer(GameObject *a1, int a2, bool a3, int a4)\n{\n  _BOOL8 m_editorEnabled; // r13\n  GameManager *v7; // rax\n\n  m_editorEnabled = a1->m_editorEnabled;\n  v7 = GameManager::sharedState();\n  return GJBaseGameLayer::parentForZLayer(\n           *((GJBaseGameLayer **)&v7->m_playLayer + m_editorEnabled),\n           a2,\n           a3,\n           a4,\n           a1->m_isUIObject);\n}", "assembly": "; \n; GameObject::parentForZLayer from 0x1005a9ff0 to 0x1005aa042 (82 bytes)\n; \n; 2 xrefs:\n; > ParticleGameObject::addMainSpriteToParent @ 0x1001b1b34\n; > GameObject::playDestroyObjectAnim @ 0x10025f33e\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    rbp                                                            ; +0x0, 0x1005a9ff0\nmov     rbp, rsp                                                       ; +0x1, 0x1005a9ff1\npush    r15                                                            ; +0x4, 0x1005a9ff4\npush    r14                                                            ; +0x6, 0x1005a9ff6\npush    r13                                                            ; +0x8, 0x1005a9ff8\npush    r12                                                            ; +0xa, 0x1005a9ffa\npush    rbx                                                            ; +0xc, 0x1005a9ffc\npush    rax                                                            ; +0xd, 0x1005a9ffd\nmov     ebx, ecx                                                       ; +0xe, 0x1005a9ffe\nmov     r14d, edx                                                      ; +0x10, 0x1005aa000\nmov     r15d, esi                                                      ; +0x13, 0x1005aa003\nmov     r12, rdi                                                       ; +0x16, 0x1005aa006\nmovzx   r13d, byte ptr [rdi+289h]                                      ; +0x19, 0x1005aa009\ncall    GameManager__sharedState                                       ; +0x21, 0x1005aa011\nmovzx   r8d, byte ptr [r12+541h]                                       ; +0x26, 0x1005aa016\nmov     rdi, [rax+r13*8+1F8h]                                          ; +0x2f, 0x1005aa01f\nmov     esi, r15d                                                      ; +0x37, 0x1005aa027\nmov     edx, r14d                                                      ; +0x3a, 0x1005aa02a\nmov     ecx, ebx                                                       ; +0x3d, 0x1005aa02d\nadd     rsp, 8                                                         ; +0x3f, 0x1005aa02f\npop     rbx                                                            ; +0x43, 0x1005aa033\npop     r12                                                            ; +0x44, 0x1005aa034\npop     r13                                                            ; +0x46, 0x1005aa036\npop     r14                                                            ; +0x48, 0x1005aa038\npop     r15                                                            ; +0x4a, 0x1005aa03a\npop     rbp                                                            ; +0x4c, 0x1005aa03c\njmp     GJBaseGameLayer__parentForZLayer                               ; +0x4d, 0x1005aa03d", "xrefs": ["ParticleGameObject::addMainSpriteToParent @ 0x1001b1b34", "GameObject::playDestroyObjectAnim @ 0x10025f33e"], "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"}