{"type": "func", "start": 5373042560, "end": 5373042701, "name": "SetupGradientPopup::updateZLayerButtons", "pseudocode": "// \n// SetupGradientPopup::updateZLayerButtons from 0x140421f80 to 0x14042200d (141 bytes)\n// \n// 7 xrefs:\n// > SetupGradientPopup::init @ 0x140421a63\n// > SetupGradientPopup::onZLayer @ 0x140421f22\n// > SetupGradientPopup::onZLayer @ 0x140421f7b\n// > <???> @ 0x1406a067c\n// > <???> @ 0x1406a068c\n// > <???> @ 0x1406d95b4\n// > <???> @ 0x1406d95c0\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::updateZLayerButtons(SetupGradientPopup *a1)\n{\n  unsigned int i; // esi\n  ButtonSprite *v3; // rbx\n  int v4; // eax\n  const char *v5; // rdx\n\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_layerButtons); ++i )\n  {\n    v3 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(a1->m_layerButtons, i);\n    v4 = v3->getTag(v3);\n    v5 = \"GJ_button_02.png\";\n    if ( v4 != a1->m_blendingLayer )\n      v5 = \"GJ_button_04.png\";\n    ButtonSprite::updateBGImage(v3, v5);\n  }\n}", "assembly": "; \n; SetupGradientPopup::updateZLayerButtons from 0x140421f80 to 0x14042200d (141 bytes)\n; \n; 7 xrefs:\n; > SetupGradientPopup::init @ 0x140421a63\n; > SetupGradientPopup::onZLayer @ 0x140421f22\n; > SetupGradientPopup::onZLayer @ 0x140421f7b\n; > <???> @ 0x1406a067c\n; > <???> @ 0x1406a068c\n; > <???> @ 0x1406d95b4\n; > <???> @ 0x1406d95c0\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\nmov     [rsp+arg_10], rsi                                              ; +0x0, 0x140421f80\npush    rdi                                                            ; +0x5, 0x140421f85\nsub     rsp, 20h                                                       ; +0x6, 0x140421f86\nmov     rdi, rcx                                                       ; +0xa, 0x140421f8a\nxor     esi, esi                                                       ; +0xd, 0x140421f8d\nmov     rcx, [rcx+3B8h]                                                ; +0xf, 0x140421f8f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x16, 0x140421f96\ntest    eax, eax                                                       ; +0x1c, 0x140421f9c\njz      short loc_140422002                                            ; +0x1e, 0x140421f9e\nmov     [rsp+28h+arg_0], rbx                                           ; +0x20, 0x140421fa0\nmov     [rsp+28h+arg_8], rbp                                           ; +0x25, 0x140421fa5\nlea     rbp, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x2a, 0x140421faa\nmov     rcx, [rdi+3B8h]                                                ; +0x31, 0x140421fb1\nmov     edx, esi                                                       ; +0x38, 0x140421fb8\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x3a, 0x140421fba\nmov     rcx, rax                                                       ; +0x40, 0x140421fc0\nmov     rbx, rax                                                       ; +0x43, 0x140421fc3\nmov     rdx, [rax]                                                     ; +0x46, 0x140421fc6\ncall    qword ptr [rdx+38h]                                            ; +0x49, 0x140421fc9\ncmp     eax, [rdi+3C0h]                                                ; +0x4c, 0x140421fcc\nlea     rdx, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x52, 0x140421fd2\nmov     rcx, rbx                                                       ; +0x59, 0x140421fd9\ncmovnz  rdx, rbp                                                       ; +0x5c, 0x140421fdc\ncall    ButtonSprite__updateBGImage                                    ; +0x60, 0x140421fe0\nmov     rcx, [rdi+3B8h]                                                ; +0x65, 0x140421fe5\ninc     esi                                                            ; +0x6c, 0x140421fec\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x6e, 0x140421fee\ncmp     esi, eax                                                       ; +0x74, 0x140421ff4\njb      short loc_140421FB1                                            ; +0x76, 0x140421ff6\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x78, 0x140421ff8\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7d, 0x140421ffd\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x82, 0x140422002\nadd     rsp, 20h                                                       ; +0x87, 0x140422007\npop     rdi                                                            ; +0x8b, 0x14042200b\nretn                                                                   ; +0x8c, 0x14042200c", "xrefs": ["SetupGradientPopup::init @ 0x140421a63", "SetupGradientPopup::onZLayer @ 0x140421f22", "SetupGradientPopup::onZLayer @ 0x140421f7b", "<???> @ 0x1406a067c", "<???> @ 0x1406a068c", "<???> @ 0x1406d95b4", "<???> @ 0x1406d95c0"], "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"}