{"type": "func", "start": 4295296808, "end": 4295296928, "name": "CustomizeObjectLayer::getButtonByTag", "pseudocode": "// \n// CustomizeObjectLayer::getButtonByTag from 0x100050728 to 0x1000507a0 (120 bytes)\n// \n// 3 xrefs:\n// > CustomizeObjectLayer::onNextColorChannel @ 0x10004ff88\n// > CustomizeObjectLayer::updateCurrentSelection @ 0x1000501a4\n// > CustomizeObjectLayer::colorSetupClosed @ 0x1000504cc\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 *__fastcall CustomizeObjectLayer::getButtonByTag(CustomizeObjectLayer *a1, int a2)\n{\n  __int64 v4; // x21\n  ButtonSprite *v5; // x22\n\n  if ( !(unsigned int)sub_10024A36C(a1->m_colorButtons) )\n    return nullptr;\n  v4 = 0;\n  while ( 1 )\n  {\n    v5 = (ButtonSprite *)sub_10024A388(a1->m_colorButtons, v4);\n    if ( ((unsigned int (__fastcall *)(ButtonSprite *))v5->getTag)(v5) == a2 )\n      break;\n    v4 = (unsigned int)(v4 + 1);\n    if ( (unsigned int)v4 >= (unsigned int)sub_10024A36C(a1->m_colorButtons) )\n      return nullptr;\n  }\n  return v5;\n}", "assembly": "; \n; CustomizeObjectLayer::getButtonByTag from 0x100050728 to 0x1000507a0 (120 bytes)\n; \n; 3 xrefs:\n; > CustomizeObjectLayer::onNextColorChannel @ 0x10004ff88\n; > CustomizeObjectLayer::updateCurrentSelection @ 0x1000501a4\n; > CustomizeObjectLayer::colorSetupClosed @ 0x1000504cc\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100050728\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10005072c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100050730\nADD             X29, SP, #0x20                                         ; +0xc, 0x100050734\nMOV             X19, X1                                                ; +0x10, 0x100050738\nMOV             X20, X0                                                ; +0x14, 0x10005073c\nLDR             X0, [X0,#0x2A8]                                        ; +0x18, 0x100050740\nBL              sub_10024A36C                                          ; +0x1c, 0x100050744\nCBZ             W0, loc_100050788                                      ; +0x20, 0x100050748\nMOV             W21, #0                                                ; +0x24, 0x10005074c\nLDR             X0, [X20,#0x2A8]                                       ; +0x28, 0x100050750\nMOV             X1, X21                                                ; +0x2c, 0x100050754\nBL              sub_10024A388                                          ; +0x30, 0x100050758\nMOV             X22, X0                                                ; +0x34, 0x10005075c\nLDR             X8, [X0]                                               ; +0x38, 0x100050760\nLDR             X8, [X8,#0x40]                                         ; +0x3c, 0x100050764\nBLR             X8                                                     ; +0x40, 0x100050768\nCMP             W0, W19                                                ; +0x44, 0x10005076c\nB.EQ            loc_10005078C                                          ; +0x48, 0x100050770\nADD             W21, W21, #1                                           ; +0x4c, 0x100050774\nLDR             X0, [X20,#0x2A8]                                       ; +0x50, 0x100050778\nBL              sub_10024A36C                                          ; +0x54, 0x10005077c\nCMP             W21, W0                                                ; +0x58, 0x100050780\nB.CC            loc_100050750                                          ; +0x5c, 0x100050784\nMOV             X22, #0                                                ; +0x60, 0x100050788\nMOV             X0, X22                                                ; +0x64, 0x10005078c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x68, 0x100050790\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x6c, 0x100050794\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x70, 0x100050798\nRET                                                                    ; +0x74, 0x10005079c", "xrefs": ["CustomizeObjectLayer::onNextColorChannel @ 0x10004ff88", "CustomizeObjectLayer::updateCurrentSelection @ 0x1000501a4", "CustomizeObjectLayer::colorSetupClosed @ 0x1000504cc"], "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"}