{"type": "func", "start": 5370248080, "end": 5370248244, "name": "EditButtonBar::onDotClicked", "pseudocode": "// \n// EditButtonBar::onDotClicked from 0x140177b90 to 0x140177c34 (164 bytes)\n// \n// 3 xrefs:\n// > EditButtonBar::loadFromItems @ 0x1401777f9\n// > <???> @ 0x140918614\n// > <???> @ 0x140918620\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 11:27:33 +0000\n// \n\n__int64 __fastcall EditButtonBar::onDotClicked(__int64 a1, __int64 a2)\n{\n  __int64 v4; // rcx\n  int v5; // ebx\n  cocos2d::CCArray *v6; // rcx\n  signed int v7; // r8d\n  __int64 result; // rax\n  __int64 v9; // rax\n  int v10; // eax\n\n  v4 = *(_QWORD *)(a1 + 344);\n  v5 = *(_DWORD *)(v4 + 588);\n  if ( *(_BYTE *)(v4 + 456) )\n    v6 = *(cocos2d::CCArray **)(v4 + 448);\n  else\n    v6 = *(cocos2d::CCArray **)(v4 + 480);\n  v7 = cocos2d::CCArray::count(v6);\n  if ( v5 <= 0 )\n  {\n    for ( ; v5 < 0; v5 += v7 )\n      ;\n  }\n  else\n  {\n    v5 %= v7;\n  }\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  if ( (_DWORD)result != v5 )\n  {\n    if ( *(_BYTE *)(a1 + 332) )\n    {\n      v9 = EditorSFXManager::sharedState();\n      EditorSFXManager::playAction(v9, 278);\n    }\n    v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n    return EditButtonBar::goToPage(a1, v10);\n  }\n  return result;\n}", "assembly": "; \n; EditButtonBar::onDotClicked from 0x140177b90 to 0x140177c34 (164 bytes)\n; \n; 3 xrefs:\n; > EditButtonBar::loadFromItems @ 0x1401777f9\n; > <???> @ 0x140918614\n; > <???> @ 0x140918620\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 11:27:33 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140177b90\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140177b95\npush    rdi                                                            ; +0xa, 0x140177b9a\nsub     rsp, 20h                                                       ; +0xb, 0x140177b9b\nmov     rdi, rcx                                                       ; +0xf, 0x140177b9f\nmov     rsi, rdx                                                       ; +0x12, 0x140177ba2\nmov     rcx, [rcx+158h]                                                ; +0x15, 0x140177ba5\ncmp     byte ptr [rcx+1C8h], 0                                         ; +0x1c, 0x140177bac\nmov     ebx, [rcx+24Ch]                                                ; +0x23, 0x140177bb3\njz      short loc_140177BC4                                            ; +0x29, 0x140177bb9\nmov     rcx, [rcx+1C0h]                                                ; +0x2b, 0x140177bbb\njmp     short loc_140177BCB                                            ; +0x32, 0x140177bc2\nmov     rcx, [rcx+1E0h]                                                ; +0x34, 0x140177bc4\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3b, 0x140177bcb\nmov     r8d, eax                                                       ; +0x41, 0x140177bd1\ntest    ebx, ebx                                                       ; +0x44, 0x140177bd4\njle     short loc_140177BE2                                            ; +0x46, 0x140177bd6\nmov     eax, ebx                                                       ; +0x48, 0x140177bd8\ncdq                                                                    ; +0x4a, 0x140177bda\nidiv    r8d                                                            ; +0x4b, 0x140177bdb\nmov     ebx, edx                                                       ; +0x4e, 0x140177bde\njmp     short loc_140177BE9                                            ; +0x50, 0x140177be0\njns     short loc_140177BE9                                            ; +0x52, 0x140177be2\nadd     ebx, r8d                                                       ; +0x54, 0x140177be4\njs      short loc_140177BE4                                            ; +0x57, 0x140177be7\nmov     rax, [rsi]                                                     ; +0x59, 0x140177be9\nmov     rcx, rsi                                                       ; +0x5c, 0x140177bec\ncall    qword ptr [rax+38h]                                            ; +0x5f, 0x140177bef\ncmp     eax, ebx                                                       ; +0x62, 0x140177bf2\njz      short loc_140177C24                                            ; +0x64, 0x140177bf4\ncmp     byte ptr [rdi+14Ch], 0                                         ; +0x66, 0x140177bf6\njz      short loc_140177C11                                            ; +0x6d, 0x140177bfd\ncall    EditorSFXManager__sharedState                                  ; +0x6f, 0x140177bff\nmov     rcx, rax                                                       ; +0x74, 0x140177c04\nmov     edx, 116h                                                      ; +0x77, 0x140177c07\ncall    EditorSFXManager__playAction                                   ; +0x7c, 0x140177c0c\nmov     rax, [rsi]                                                     ; +0x81, 0x140177c11\nmov     rcx, rsi                                                       ; +0x84, 0x140177c14\ncall    qword ptr [rax+38h]                                            ; +0x87, 0x140177c17\nmov     edx, eax                                                       ; +0x8a, 0x140177c1a\nmov     rcx, rdi                                                       ; +0x8c, 0x140177c1c\ncall    EditButtonBar__goToPage                                        ; +0x8f, 0x140177c1f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x94, 0x140177c24\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x99, 0x140177c29\nadd     rsp, 20h                                                       ; +0x9e, 0x140177c2e\npop     rdi                                                            ; +0xa2, 0x140177c32\nretn                                                                   ; +0xa3, 0x140177c33", "xrefs": ["EditButtonBar::loadFromItems @ 0x1401777f9", "<???> @ 0x140918614", "<???> @ 0x140918620"], "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"}