{"type": "func", "start": 5372893488, "end": 5372893629, "name": "SetGroupIDLayer::updateZLayerButtons", "pseudocode": "// \n// SetGroupIDLayer::updateZLayerButtons from 0x1403fd930 to 0x1403fd9bd (141 bytes)\n// \n// 7 xrefs:\n// > SetGroupIDLayer::init @ 0x1403f9e57\n// > SetGroupIDLayer::onPaste @ 0x1403fb857\n// > SetGroupIDLayer::onZLayer @ 0x1403fcd49\n// > SetGroupIDLayer::onZLayer @ 0x1403fcdbb\n// > <???> @ 0x14069e5d4\n// > <???> @ 0x14069e5e4\n// > <???> @ 0x1406d85e8\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::updateZLayerButtons(SetGroupIDLayer *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_zLayerButtons); ++i )\n  {\n    v3 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(a1->m_zLayerButtons, i);\n    v4 = v3->getTag(v3);\n    v5 = \"GJ_button_04.png\";\n    if ( a1->m_zLayerValue == v4 )\n      v5 = \"GJ_button_02.png\";\n    ButtonSprite::updateBGImage(v3, v5);\n  }\n}", "assembly": "; \n; SetGroupIDLayer::updateZLayerButtons from 0x1403fd930 to 0x1403fd9bd (141 bytes)\n; \n; 7 xrefs:\n; > SetGroupIDLayer::init @ 0x1403f9e57\n; > SetGroupIDLayer::onPaste @ 0x1403fb857\n; > SetGroupIDLayer::onZLayer @ 0x1403fcd49\n; > SetGroupIDLayer::onZLayer @ 0x1403fcdbb\n; > <???> @ 0x14069e5d4\n; > <???> @ 0x14069e5e4\n; > <???> @ 0x1406d85e8\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, 0x1403fd930\npush    rdi                                                            ; +0x5, 0x1403fd935\nsub     rsp, 20h                                                       ; +0x6, 0x1403fd936\nmov     rdi, rcx                                                       ; +0xa, 0x1403fd93a\nxor     esi, esi                                                       ; +0xd, 0x1403fd93d\nmov     rcx, [rcx+298h]                                                ; +0xf, 0x1403fd93f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x16, 0x1403fd946\ntest    eax, eax                                                       ; +0x1c, 0x1403fd94c\njz      short loc_1403FD9B2                                            ; +0x1e, 0x1403fd94e\nmov     [rsp+28h+arg_0], rbx                                           ; +0x20, 0x1403fd950\nmov     [rsp+28h+arg_8], rbp                                           ; +0x25, 0x1403fd955\nlea     rbp, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x2a, 0x1403fd95a\nmov     rcx, [rdi+298h]                                                ; +0x31, 0x1403fd961\nmov     edx, esi                                                       ; +0x38, 0x1403fd968\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x3a, 0x1403fd96a\nmov     rcx, rax                                                       ; +0x40, 0x1403fd970\nmov     rbx, rax                                                       ; +0x43, 0x1403fd973\nmov     rdx, [rax]                                                     ; +0x46, 0x1403fd976\ncall    qword ptr [rdx+38h]                                            ; +0x49, 0x1403fd979\ncmp     [rdi+2F4h], eax                                                ; +0x4c, 0x1403fd97c\nlea     rdx, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x52, 0x1403fd982\nmov     rcx, rbx                                                       ; +0x59, 0x1403fd989\ncmovz   rdx, rbp                                                       ; +0x5c, 0x1403fd98c\ncall    ButtonSprite__updateBGImage                                    ; +0x60, 0x1403fd990\nmov     rcx, [rdi+298h]                                                ; +0x65, 0x1403fd995\ninc     esi                                                            ; +0x6c, 0x1403fd99c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x6e, 0x1403fd99e\ncmp     esi, eax                                                       ; +0x74, 0x1403fd9a4\njb      short loc_1403FD961                                            ; +0x76, 0x1403fd9a6\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x78, 0x1403fd9a8\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7d, 0x1403fd9ad\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x82, 0x1403fd9b2\nadd     rsp, 20h                                                       ; +0x87, 0x1403fd9b7\npop     rdi                                                            ; +0x8b, 0x1403fd9bb\nretn                                                                   ; +0x8c, 0x1403fd9bc", "xrefs": ["SetGroupIDLayer::init @ 0x1403f9e57", "SetGroupIDLayer::onPaste @ 0x1403fb857", "SetGroupIDLayer::onZLayer @ 0x1403fcd49", "SetGroupIDLayer::onZLayer @ 0x1403fcdbb", "<???> @ 0x14069e5d4", "<???> @ 0x14069e5e4", "<???> @ 0x1406d85e8"], "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"}