{"type": "func", "start": 9976140, "end": 9976268, "name": "CustomizeObjectLayer::getButtonByTag", "pseudocode": "// \n// CustomizeObjectLayer::getButtonByTag from 0x98394c to 0x9839cc (128 bytes)\n// \n// 4 xrefs:\n// > CustomizeObjectLayer::colorSetupClosed @ 0x983d7c\n// > CustomizeObjectLayer::onNextColorChannel @ 0x983e14\n// > CustomizeObjectLayer::updateCurrentSelection @ 0x983e8c\n// > <???> @ 0xad0f8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:57:52 +0000\n// \n\n__int64 __fastcall CustomizeObjectLayer::getButtonByTag(cocos2d::CCArray **this, int a2)\n{\n  unsigned int v4; // w19\n  __int64 v5; // x20\n  bool v6; // cf\n  unsigned int v7; // w1\n\n  v4 = 0;\n  do\n  {\n    v6 = v4 >= (unsigned int)cocos2d::CCArray::count(*(this + 88));\n    v7 = v4++;\n    if ( v6 )\n      return 0;\n    v5 = cocos2d::CCArray::objectAtIndex(*(this + 88), v7);\n  }\n  while ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5) != a2 );\n  return v5;\n}", "assembly": "; \n; CustomizeObjectLayer::getButtonByTag from 0x98394c to 0x9839cc (128 bytes)\n; \n; 4 xrefs:\n; > CustomizeObjectLayer::colorSetupClosed @ 0x983d7c\n; > CustomizeObjectLayer::onNextColorChannel @ 0x983e14\n; > CustomizeObjectLayer::updateCurrentSelection @ 0x983e8c\n; > <???> @ 0xad0f8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:57:52 +0000\n; \nSTP             X29, X30, [SP,#-0x30+var_s0]!                          ; +0x0, 0x98394c\nMOV             X29, SP                                                ; +0x4, 0x983950\nSTP             X21, X22, [SP,#var_s20]                                ; +0x8, 0x983954\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x983958\nMOV             X21, X0                                                ; +0x10, 0x98395c\nMOV             W22, W1                                                ; +0x14, 0x983960\nMOV             W19, #0                                                ; +0x18, 0x983964\nB               loc_98398C                                             ; +0x1c, 0x983968\nLDR             X0, [X21,#0x2C0]; this                                 ; +0x20, 0x98396c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x24, 0x983970\nLDR             X1, [X0]                                               ; +0x28, 0x983974\nMOV             X20, X0                                                ; +0x2c, 0x983978\nLDR             X1, [X1,#0x40]                                         ; +0x30, 0x98397c\nBLR             X1                                                     ; +0x34, 0x983980\nCMP             W0, W22                                                ; +0x38, 0x983984\nB.EQ            loc_9839B8                                             ; +0x3c, 0x983988\nLDR             X0, [X21,#0x2C0]; this                                 ; +0x40, 0x98398c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x44, 0x983990\nCMP             W19, W0                                                ; +0x48, 0x983994\nMOV             W1, W19; unsigned int                                  ; +0x4c, 0x983998\nADD             W19, W19, #1                                           ; +0x50, 0x98399c\nB.CC            loc_98396C                                             ; +0x54, 0x9839a0\nMOV             X0, #0                                                 ; +0x58, 0x9839a4\nLDP             X19, X20, [SP,#var_s10]                                ; +0x5c, 0x9839a8\nLDP             X21, X22, [SP,#var_s20]                                ; +0x60, 0x9839ac\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x64, 0x9839b0\nRET                                                                    ; +0x68, 0x9839b4\nMOV             X0, X20                                                ; +0x6c, 0x9839b8\nLDP             X19, X20, [SP,#var_s10]                                ; +0x70, 0x9839bc\nLDP             X21, X22, [SP,#var_s20]                                ; +0x74, 0x9839c0\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x78, 0x9839c4\nRET                                                                    ; +0x7c, 0x9839c8", "xrefs": ["CustomizeObjectLayer::colorSetupClosed @ 0x983d7c", "CustomizeObjectLayer::onNextColorChannel @ 0x983e14", "CustomizeObjectLayer::updateCurrentSelection @ 0x983e8c", "<???> @ 0xad0f8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}