{"type": "func", "start": 4295331652, "end": 4295331772, "name": "CustomizeObjectLayer::getButtonByTag", "pseudocode": "// \n// CustomizeObjectLayer::getButtonByTag from 0x100058f44 to 0x100058fbc (120 bytes)\n// \n// 3 xrefs:\n// > CustomizeObjectLayer::onNextColorChannel @ 0x1000587a4\n// > CustomizeObjectLayer::updateCurrentSelection @ 0x1000589c0\n// > CustomizeObjectLayer::colorSetupClosed @ 0x100058ce8\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 10:57:47 +0000\n// \n\n__int64 __fastcall CustomizeObjectLayer::getButtonByTag(__int64 a1, int a2)\n{\n  __int64 v4; // x21\n  __int64 v5; // x22\n\n  if ( !(unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 704)) )\n    return 0;\n  v4 = 0;\n  while ( 1 )\n  {\n    v5 = sub_1002E75A0(*(_QWORD *)(a1 + 704), v4);\n    if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5) == a2 )\n      break;\n    v4 = (unsigned int)(v4 + 1);\n    if ( (unsigned int)v4 >= (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 704)) )\n      return 0;\n  }\n  return v5;\n}", "assembly": "; \n; CustomizeObjectLayer::getButtonByTag from 0x100058f44 to 0x100058fbc (120 bytes)\n; \n; 3 xrefs:\n; > CustomizeObjectLayer::onNextColorChannel @ 0x1000587a4\n; > CustomizeObjectLayer::updateCurrentSelection @ 0x1000589c0\n; > CustomizeObjectLayer::colorSetupClosed @ 0x100058ce8\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 10:57:47 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100058f44\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100058f48\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100058f4c\nADD             X29, SP, #0x20                                         ; +0xc, 0x100058f50\nMOV             X19, X1                                                ; +0x10, 0x100058f54\nMOV             X20, X0                                                ; +0x14, 0x100058f58\nLDR             X0, [X0,#0x2C0]                                        ; +0x18, 0x100058f5c\nBL              sub_1002E757C                                          ; +0x1c, 0x100058f60\nCBZ             W0, loc_100058FA4                                      ; +0x20, 0x100058f64\nMOV             W21, #0                                                ; +0x24, 0x100058f68\nLDR             X0, [X20,#0x2C0]                                       ; +0x28, 0x100058f6c\nMOV             X1, X21                                                ; +0x2c, 0x100058f70\nBL              sub_1002E75A0                                          ; +0x30, 0x100058f74\nMOV             X22, X0                                                ; +0x34, 0x100058f78\nLDR             X8, [X0]                                               ; +0x38, 0x100058f7c\nLDR             X8, [X8,#0x40]                                         ; +0x3c, 0x100058f80\nBLR             X8                                                     ; +0x40, 0x100058f84\nCMP             W0, W19                                                ; +0x44, 0x100058f88\nB.EQ            loc_100058FA8                                          ; +0x48, 0x100058f8c\nADD             W21, W21, #1                                           ; +0x4c, 0x100058f90\nLDR             X0, [X20,#0x2C0]                                       ; +0x50, 0x100058f94\nBL              sub_1002E757C                                          ; +0x54, 0x100058f98\nCMP             W21, W0                                                ; +0x58, 0x100058f9c\nB.CC            loc_100058F6C                                          ; +0x5c, 0x100058fa0\nMOV             X22, #0                                                ; +0x60, 0x100058fa4\nMOV             X0, X22                                                ; +0x64, 0x100058fa8\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x68, 0x100058fac\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x6c, 0x100058fb0\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x70, 0x100058fb4\nRET                                                                    ; +0x74, 0x100058fb8", "xrefs": ["CustomizeObjectLayer::onNextColorChannel @ 0x1000587a4", "CustomizeObjectLayer::updateCurrentSelection @ 0x1000589c0", "CustomizeObjectLayer::colorSetupClosed @ 0x100058ce8"], "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"}