{"type": "func", "start": 4594892, "end": 4594946, "name": "CustomizeObjectLayer::getButtonByTag", "pseudocode": "// \n// CustomizeObjectLayer::getButtonByTag from 0x461ccc to 0x461d02 (54 bytes)\n// \n// 3 xrefs:\n// > CustomizeObjectLayer::colorSetupClosed @ 0x462042\n// > CustomizeObjectLayer::onNextColorChannel @ 0x4620b0\n// > CustomizeObjectLayer::updateCurrentSelection @ 0x462102\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\nButtonSprite *CustomizeObjectLayer::getButtonByTag(CustomizeObjectLayer *a1, int a2)\n{\n  unsigned int i; // r5\n  ButtonSprite *v5; // r4\n\n  for ( i = 0; ; ++i )\n  {\n    if ( i >= cocos2d::CCArray::count(a1->m_colorButtons) )\n      return nullptr;\n    v5 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(a1->m_colorButtons, i);\n    if ( v5->getTag(v5) == a2 )\n      break;\n  }\n  return v5;\n}", "assembly": "; \n; CustomizeObjectLayer::getButtonByTag from 0x461ccc to 0x461d02 (54 bytes)\n; \n; 3 xrefs:\n; > CustomizeObjectLayer::colorSetupClosed @ 0x462042\n; > CustomizeObjectLayer::onNextColorChannel @ 0x4620b0\n; > CustomizeObjectLayer::updateCurrentSelection @ 0x462102\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            {R3-R7,LR}                                             ; +0x0, 0x461ccc\nMOV             R6, R0                                                 ; +0x2, 0x461cce\nMOV             R7, R1                                                 ; +0x4, 0x461cd0\nMOVS            R5, #0                                                 ; +0x6, 0x461cd2\nLDR.W           R0, [R6,#0x208]; this                                  ; +0x8, 0x461cd4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xc, 0x461cd8\nCMP             R5, R0                                                 ; +0x10, 0x461cdc\nBCS             loc_461CFA                                             ; +0x12, 0x461cde\nMOV             R1, R5; unsigned int                                   ; +0x14, 0x461ce0\nLDR.W           R0, [R6,#0x208]; this                                  ; +0x16, 0x461ce2\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x1a, 0x461ce6\nLDR             R3, [R0]                                               ; +0x1e, 0x461cea\nMOV             R4, R0                                                 ; +0x20, 0x461cec\nLDR             R3, [R3,#0x20]                                         ; +0x22, 0x461cee\nBLX             R3                                                     ; +0x24, 0x461cf0\nCMP             R0, R7                                                 ; +0x26, 0x461cf2\nBEQ             loc_461CFE                                             ; +0x28, 0x461cf4\nADDS            R5, #1                                                 ; +0x2a, 0x461cf6\nB               loc_461CD4                                             ; +0x2c, 0x461cf8\nMOVS            R0, #0                                                 ; +0x2e, 0x461cfa\nPOP             {R3-R7,PC}                                             ; +0x30, 0x461cfc\nMOV             R0, R4                                                 ; +0x32, 0x461cfe\nPOP             {R3-R7,PC}                                             ; +0x34, 0x461d00", "xrefs": ["CustomizeObjectLayer::colorSetupClosed @ 0x462042", "CustomizeObjectLayer::onNextColorChannel @ 0x4620b0", "CustomizeObjectLayer::updateCurrentSelection @ 0x462102"], "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"}