{"type": "func", "start": 4299831252, "end": 4299831396, "name": "EditButtonBar::onDotClicked", "pseudocode": "// \n// EditButtonBar::onDotClicked from 0x1004a37d4 to 0x1004a3864 (144 bytes)\n// \n// 1 xrefs:\n// > EditButtonBar::loadFromItems @ 0x1004a354c\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 11:06:03 +0000\n// \n\n__int64 __fastcall EditButtonBar::onDotClicked(__int64 a1, __int64 a2)\n{\n  int v4; // w21\n  __int64 result; // x0\n  __n128 v6; // q0\n  __int64 v7; // x0\n  __int64 v8; // x1\n\n  v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n  result = BoomScrollLayer::getRelativePageForNum(*(_QWORD *)(a1 + 344), *(_DWORD *)(*(_QWORD *)(a1 + 344) + 588LL));\n  if ( v4 != (_DWORD)result )\n  {\n    if ( *(_BYTE *)(a1 + 328) == 1 )\n    {\n      v7 = EditorSFXManager::sharedState(v6);\n      EditorSFXManager::playAction_1(v7, 278);\n    }\n    v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n    return EditButtonBar::goToPage(a1, v8);\n  }\n  return result;\n}", "assembly": "; \n; EditButtonBar::onDotClicked from 0x1004a37d4 to 0x1004a3864 (144 bytes)\n; \n; 1 xrefs:\n; > EditButtonBar::loadFromItems @ 0x1004a354c\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 11:06:03 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1004a37d4\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1004a37d8\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1004a37dc\nADD             X29, SP, #0x20                                         ; +0xc, 0x1004a37e0\nMOV             X20, X1                                                ; +0x10, 0x1004a37e4\nMOV             X19, X0                                                ; +0x14, 0x1004a37e8\nLDR             X8, [X1]                                               ; +0x18, 0x1004a37ec\nLDR             X8, [X8,#0x40]                                         ; +0x1c, 0x1004a37f0\nMOV             X0, X1                                                 ; +0x20, 0x1004a37f4\nBLR             X8                                                     ; +0x24, 0x1004a37f8\nMOV             X21, X0                                                ; +0x28, 0x1004a37fc\nLDR             X0, [X19,#0x158]                                       ; +0x2c, 0x1004a3800\nLDR             W1, [X0,#0x24C]                                        ; +0x30, 0x1004a3804\nBL              BoomScrollLayer__getRelativePageForNum                 ; +0x34, 0x1004a3808\nCMP             W21, W0                                                ; +0x38, 0x1004a380c\nB.NE            loc_1004A3824                                          ; +0x3c, 0x1004a3810\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x40, 0x1004a3814\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x44, 0x1004a3818\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x48, 0x1004a381c\nRET                                                                    ; +0x4c, 0x1004a3820\nLDRB            W8, [X19,#0x148]                                       ; +0x50, 0x1004a3824\nCMP             W8, #1                                                 ; +0x54, 0x1004a3828\nB.NE            loc_1004A383C                                          ; +0x58, 0x1004a382c\nBL              EditorSFXManager__sharedState                          ; +0x5c, 0x1004a3830\nMOV             W1, #0x116                                             ; +0x60, 0x1004a3834\nBL              EditorSFXManager__playAction_1                         ; +0x64, 0x1004a3838\nLDR             X8, [X20]                                              ; +0x68, 0x1004a383c\nLDR             X8, [X8,#0x40]                                         ; +0x6c, 0x1004a3840\nMOV             X0, X20                                                ; +0x70, 0x1004a3844\nBLR             X8                                                     ; +0x74, 0x1004a3848\nMOV             X1, X0                                                 ; +0x78, 0x1004a384c\nMOV             X0, X19                                                ; +0x7c, 0x1004a3850\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x80, 0x1004a3854\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x84, 0x1004a3858\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x88, 0x1004a385c\nB               EditButtonBar__goToPage                                ; +0x8c, 0x1004a3860", "xrefs": ["EditButtonBar::loadFromItems @ 0x1004a354c"], "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"}