{"type": "func", "start": 5373042416, "end": 5373042560, "name": "SetupGradientPopup::onZLayer", "pseudocode": "// \n// SetupGradientPopup::onZLayer from 0x140421ef0 to 0x140421f80 (144 bytes)\n// \n// 2 xrefs:\n// > SetupGradientPopup::init @ 0x1404219d9\n// > <???> @ 0x1406d95b4\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 SetupGradientPopup::onZLayer(SetupGradientPopup *a1, cocos2d::CCObject *a2)\n{\n  int v3; // eax\n  EffectGameObject *m_gameObject; // rcx\n  unsigned int i; // edi\n  struct cocos2d::CCObject *v6; // rax\n\n  v3 = a2->getTag(a2);\n  m_gameObject = a1->m_gameObject;\n  a1->m_blendingLayer = v3;\n  if ( m_gameObject )\n  {\n    LODWORD(m_gameObject[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable) = v3;\n    SetupGradientPopup::updateZLayerButtons(a1);\n  }\n  else\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(a1->m_gameObjects); v6[33].m_uID = a1->m_blendingLayer )\n      v6 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, i++);\n    SetupGradientPopup::updateZLayerButtons(a1);\n  }\n}", "assembly": "; \n; SetupGradientPopup::onZLayer from 0x140421ef0 to 0x140421f80 (144 bytes)\n; \n; 2 xrefs:\n; > SetupGradientPopup::init @ 0x1404219d9\n; > <???> @ 0x1406d95b4\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, 0x140421ef0\nsub     rsp, 20h                                                       ; +0x2, 0x140421ef2\nmov     rax, [rdx]                                                     ; +0x6, 0x140421ef6\nmov     rbx, rcx                                                       ; +0x9, 0x140421ef9\nmov     rcx, rdx                                                       ; +0xc, 0x140421efc\ncall    qword ptr [rax+38h]                                            ; +0xf, 0x140421eff\nmov     rcx, [rbx+290h]                                                ; +0x12, 0x140421f02\nmov     [rbx+3C0h], eax                                                ; +0x19, 0x140421f09\ntest    rcx, rcx                                                       ; +0x1f, 0x140421f0f\njz      short loc_140421F27                                            ; +0x22, 0x140421f12\nmov     [rcx+740h], eax                                                ; +0x24, 0x140421f14\nmov     rcx, rbx                                                       ; +0x2a, 0x140421f1a\nadd     rsp, 20h                                                       ; +0x2d, 0x140421f1d\npop     rbx                                                            ; +0x31, 0x140421f21\njmp     SetupGradientPopup__updateZLayerButtons                        ; +0x32, 0x140421f22\nmov     rcx, [rbx+298h]                                                ; +0x37, 0x140421f27\nmov     [rsp+28h+arg_0], rdi                                           ; +0x3e, 0x140421f2e\nxor     edi, edi                                                       ; +0x43, 0x140421f33\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x45, 0x140421f35\ntest    eax, eax                                                       ; +0x4b, 0x140421f3b\njz      short loc_140421F6E                                            ; +0x4d, 0x140421f3d\nnop                                                                    ; +0x4f, 0x140421f3f\nmov     rcx, [rbx+298h]                                                ; +0x50, 0x140421f40\nmov     edx, edi                                                       ; +0x57, 0x140421f47\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x59, 0x140421f49\nmov     ecx, [rbx+3C0h]                                                ; +0x5f, 0x140421f4f\ninc     edi                                                            ; +0x65, 0x140421f55\nmov     [rax+740h], ecx                                                ; +0x67, 0x140421f57\nmov     rcx, [rbx+298h]                                                ; +0x6d, 0x140421f5d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x74, 0x140421f64\ncmp     edi, eax                                                       ; +0x7a, 0x140421f6a\njb      short loc_140421F40                                            ; +0x7c, 0x140421f6c\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x7e, 0x140421f6e\nmov     rcx, rbx                                                       ; +0x83, 0x140421f73\nadd     rsp, 20h                                                       ; +0x86, 0x140421f76\npop     rbx                                                            ; +0x8a, 0x140421f7a\njmp     $+5                                                            ; +0x8b, 0x140421f7b", "xrefs": ["SetupGradientPopup::init @ 0x1404219d9", "<???> @ 0x1406d95b4"], "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"}