{"type": "func", "start": 4301998784, "end": 4301998946, "name": "EditButtonBar::onDotClicked", "pseudocode": "// \n// EditButtonBar::onDotClicked from 0x1006b4ac0 to 0x1006b4b62 (162 bytes)\n// \n// 1 xrefs:\n// > EditButtonBar::loadFromItems @ 0x1006b47ef\n// \n// This function is hookable on this platform (idp: pc, 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:35:26 +0000\n// \n\nunsigned __int64 __fastcall EditButtonBar::onDotClicked(__int64 a1, __int64 a2)\n{\n  int v3; // r15d\n  __int64 v4; // rdi\n  unsigned __int64 result; // rax\n  __int64 v6; // rax\n  int v7; // r14d\n\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n  v4 = *(_QWORD *)(a1 + 344);\n  result = BoomScrollLayer::getRelativePageForNum(v4, *(_DWORD *)(v4 + 588));\n  if ( v3 != (_DWORD)result )\n  {\n    if ( *(_BYTE *)(a1 + 328) == 1 )\n    {\n      v6 = EditorSFXManager::sharedState(v4);\n      EditorSFXManager::playAction_1(v6, 278);\n    }\n    v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n    BoomScrollLayer::getTotalPages(*(_QWORD *)(a1 + 344));\n    BoomScrollLayer::instantMoveToPage(*(_QWORD *)(a1 + 344), v7 - 1);\n    BoomScrollLayer::instantMoveToPage(*(_QWORD *)(a1 + 344), v7);\n    return EditButtonBar::updateDotState(a1);\n  }\n  return result;\n}", "assembly": "; \n; EditButtonBar::onDotClicked from 0x1006b4ac0 to 0x1006b4b62 (162 bytes)\n; \n; 1 xrefs:\n; > EditButtonBar::loadFromItems @ 0x1006b47ef\n; \n; This function is hookable on this platform (idp: pc, 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:35:26 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006b4ac0\nmov     rbp, rsp                                                       ; +0x1, 0x1006b4ac1\npush    r15                                                            ; +0x4, 0x1006b4ac4\npush    r14                                                            ; +0x6, 0x1006b4ac6\npush    rbx                                                            ; +0x8, 0x1006b4ac8\npush    rax                                                            ; +0x9, 0x1006b4ac9\nmov     r14, rsi                                                       ; +0xa, 0x1006b4aca\nmov     rbx, rdi                                                       ; +0xd, 0x1006b4acd\nmov     rax, [rsi]                                                     ; +0x10, 0x1006b4ad0\nmov     rdi, rsi                                                       ; +0x13, 0x1006b4ad3\ncall    qword ptr [rax+40h]                                            ; +0x16, 0x1006b4ad6\nmov     r15d, eax                                                      ; +0x19, 0x1006b4ad9\nmov     rdi, [rbx+158h]                                                ; +0x1c, 0x1006b4adc\nmov     esi, [rdi+24Ch]                                                ; +0x23, 0x1006b4ae3\ncall    BoomScrollLayer__getRelativePageForNum                         ; +0x29, 0x1006b4ae9\ncmp     r15d, eax                                                      ; +0x2e, 0x1006b4aee\njnz     short loc_1006B4AFE                                            ; +0x31, 0x1006b4af1\nadd     rsp, 8                                                         ; +0x33, 0x1006b4af3\npop     rbx                                                            ; +0x37, 0x1006b4af7\npop     r14                                                            ; +0x38, 0x1006b4af8\npop     r15                                                            ; +0x3a, 0x1006b4afa\npop     rbp                                                            ; +0x3c, 0x1006b4afc\nretn                                                                   ; +0x3d, 0x1006b4afd\ncmp     byte ptr [rbx+148h], 1                                         ; +0x3e, 0x1006b4afe\njnz     short loc_1006B4B19                                            ; +0x45, 0x1006b4b05\ncall    EditorSFXManager__sharedState                                  ; +0x47, 0x1006b4b07\nmov     rdi, rax                                                       ; +0x4c, 0x1006b4b0c\nmov     esi, 116h                                                      ; +0x4f, 0x1006b4b0f\ncall    EditorSFXManager__playAction_1                                 ; +0x54, 0x1006b4b14\nmov     rax, [r14]                                                     ; +0x59, 0x1006b4b19\nmov     rdi, r14                                                       ; +0x5c, 0x1006b4b1c\ncall    qword ptr [rax+40h]                                            ; +0x5f, 0x1006b4b1f\nmov     r14d, eax                                                      ; +0x62, 0x1006b4b22\nmov     rdi, [rbx+158h]                                                ; +0x65, 0x1006b4b25\ncall    BoomScrollLayer__getTotalPages                                 ; +0x6c, 0x1006b4b2c\nmov     rdi, [rbx+158h]                                                ; +0x71, 0x1006b4b31\nlea     esi, [r14-1]                                                   ; +0x78, 0x1006b4b38\ncall    BoomScrollLayer__instantMoveToPage                             ; +0x7c, 0x1006b4b3c\nmov     rdi, [rbx+158h]                                                ; +0x81, 0x1006b4b41\nmov     esi, r14d                                                      ; +0x88, 0x1006b4b48\ncall    BoomScrollLayer__instantMoveToPage                             ; +0x8b, 0x1006b4b4b\nmov     rdi, rbx                                                       ; +0x90, 0x1006b4b50\nadd     rsp, 8                                                         ; +0x93, 0x1006b4b53\npop     rbx                                                            ; +0x97, 0x1006b4b57\npop     r14                                                            ; +0x98, 0x1006b4b58\npop     r15                                                            ; +0x9a, 0x1006b4b5a\npop     rbp                                                            ; +0x9c, 0x1006b4b5c\njmp     EditButtonBar__updateDotState                                  ; +0x9d, 0x1006b4b5d", "xrefs": ["EditButtonBar::loadFromItems @ 0x1006b47ef"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}