{"type": "func", "start": 5369546224, "end": 5369546575, "name": "AutoBackupPopup::onSelectAll", "pseudocode": "// \n// AutoBackupPopup::onSelectAll from 0x1400cc5f0 to 0x1400cc74f (351 bytes)\n// \n// 4 xrefs:\n// > AutoBackupPopup::init @ 0x1400c9fc3\n// > <???> @ 0x140891120\n// > <???> @ 0x140891154\n// > <???> @ 0x140914078\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:26:23 +0000\n// \n\nunsigned __int64 __fastcall AutoBackupPopup::onSelectAll(__int64 a1)\n{\n  __int64 v2; // rcx\n  unsigned __int64 result; // rax\n  int v4; // ebp\n  __int64 v5; // rsi\n  __int64 v6; // r9\n  __int64 v7; // r8\n  unsigned __int64 v8; // rdi\n  __int64 v9; // rcx\n  __int64 v10; // rdx\n  __int64 v11; // r14\n  __int64 v12; // rcx\n  __int64 v13; // rcx\n  __int64 v14; // rcx\n  _BYTE v15[16]; // [rsp+20h] [rbp-28h] BYREF\n\n  v2 = *(_QWORD *)(a1 + 864);\n  result = *(_QWORD *)(a1 + 856);\n  if ( result != v2 )\n  {\n    v4 = *(_DWORD *)(a1 + 960);\n    v5 = (__int64)(v2 - result) / 168;\n    sub_1400CF730(a1 + 952);\n    v7 = *(_QWORD *)(a1 + 856);\n    v8 = 0;\n    v9 = *(_QWORD *)(a1 + 864) - v7;\n    result = (unsigned __int64)(v9 + ((unsigned __int128)(v9 * (__int128)(__int64)0xC30C30C30C30C30DuLL) >> 64)) >> 63;\n    v10 = v9 / 168;\n    if ( v9 / 168 )\n    {\n      v11 = 0;\n      do\n      {\n        if ( v4 != (_DWORD)v5 )\n          sub_1400CF4B0(a1 + 952, v15, v11 + v7);\n        v12 = *(_QWORD *)(a1 + 968);\n        if ( v8 < (*(_QWORD *)(a1 + 976) - v12) >> 3 )\n        {\n          LOBYTE(v10) = v4 != (_DWORD)v5;\n          CCMenuItemToggler::toggle(*(_QWORD *)(v12 + 8 * v8), v10);\n        }\n        v7 = *(_QWORD *)(a1 + 856);\n        ++v8;\n        v13 = *(_QWORD *)(a1 + 864) - v7;\n        v11 += 168;\n        result = (unsigned __int64)(v13 + ((unsigned __int128)(v13 * (__int128)(__int64)0xC30C30C30C30C30DuLL) >> 64)) >> 63;\n        v10 = v13 / 168;\n      }\n      while ( v8 < v13 / 168 );\n    }\n    v14 = *(_QWORD *)(a1 + 992);\n    if ( v14 )\n      return GJSelectionStrip::setCount(v14, *(unsigned int *)(a1 + 960), v7, v6);\n  }\n  return result;\n}", "assembly": "; \n; AutoBackupPopup::onSelectAll from 0x1400cc5f0 to 0x1400cc74f (351 bytes)\n; \n; 4 xrefs:\n; > AutoBackupPopup::init @ 0x1400c9fc3\n; > <???> @ 0x140891120\n; > <???> @ 0x140891154\n; > <???> @ 0x140914078\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:26:23 +0000\n; \npush    rbx                                                            ; +0x0, 0x1400cc5f0\nsub     rsp, 40h                                                       ; +0x2, 0x1400cc5f2\nmov     rbx, rcx                                                       ; +0x6, 0x1400cc5f6\nmov     rcx, [rcx+360h]                                                ; +0x9, 0x1400cc5f9\nmov     rax, [rbx+358h]                                                ; +0x10, 0x1400cc600\ncmp     rax, rcx                                                       ; +0x17, 0x1400cc607\njz      loc_1400CC749                                                  ; +0x1a, 0x1400cc60a\nsub     rcx, rax                                                       ; +0x20, 0x1400cc610\nmov     [rsp+48h+arg_0], rbp                                           ; +0x23, 0x1400cc613\nmov     ebp, [rbx+3C0h]                                                ; +0x28, 0x1400cc618\nmov     [rsp+48h+arg_8], rsi                                           ; +0x2e, 0x1400cc61e\nmov     [rsp+48h+arg_10], rdi                                          ; +0x33, 0x1400cc623\nmov     [rsp+48h+arg_18], r12                                          ; +0x38, 0x1400cc628\nmov     r12, 0C30C30C30C30C30Dh                                        ; +0x3d, 0x1400cc62d\nmov     rax, r12                                                       ; +0x47, 0x1400cc637\nmov     [rsp+48h+var_18], r15                                          ; +0x4a, 0x1400cc63a\nimul    rcx                                                            ; +0x4f, 0x1400cc63f\nlea     rsi, [rcx+rdx]                                                 ; +0x52, 0x1400cc642\nsar     rsi, 7                                                         ; +0x56, 0x1400cc646\nlea     rcx, [rbx+3B8h]                                                ; +0x5a, 0x1400cc64a\nmov     rax, rsi                                                       ; +0x61, 0x1400cc651\nshr     rax, 3Fh                                                       ; +0x64, 0x1400cc654\nadd     rsi, rax                                                       ; +0x68, 0x1400cc658\ncall    sub_1400CF730                                                  ; +0x6b, 0x1400cc65b\nmov     r8, [rbx+358h]                                                 ; +0x70, 0x1400cc660\nmov     rax, r12                                                       ; +0x77, 0x1400cc667\nmov     rcx, [rbx+360h]                                                ; +0x7a, 0x1400cc66a\nxor     edi, edi                                                       ; +0x81, 0x1400cc671\nsub     rcx, r8                                                        ; +0x83, 0x1400cc673\nimul    rcx                                                            ; +0x86, 0x1400cc676\nadd     rdx, rcx                                                       ; +0x89, 0x1400cc679\nsar     rdx, 7                                                         ; +0x8c, 0x1400cc67c\nmov     rax, rdx                                                       ; +0x90, 0x1400cc680\nshr     rax, 3Fh                                                       ; +0x93, 0x1400cc683\nadd     rdx, rax                                                       ; +0x97, 0x1400cc687\njz      loc_1400CC714                                                  ; +0x9a, 0x1400cc68a\nmov     [rsp+48h+var_10], r14                                          ; +0xa0, 0x1400cc690\nmov     r14d, edi                                                      ; +0xa5, 0x1400cc695\ncmp     ebp, esi                                                       ; +0xa8, 0x1400cc698\njz      short loc_1400CC6B0                                            ; +0xaa, 0x1400cc69a\nadd     r8, r14                                                        ; +0xac, 0x1400cc69c\nlea     rdx, [rsp+48h+var_28]                                          ; +0xaf, 0x1400cc69f\nlea     rcx, [rbx+3B8h]                                                ; +0xb4, 0x1400cc6a4\ncall    sub_1400CF4B0                                                  ; +0xbb, 0x1400cc6ab\nmov     rcx, [rbx+3C8h]                                                ; +0xc0, 0x1400cc6b0\nmov     rax, [rbx+3D0h]                                                ; +0xc7, 0x1400cc6b7\nsub     rax, rcx                                                       ; +0xce, 0x1400cc6be\nsar     rax, 3                                                         ; +0xd1, 0x1400cc6c1\ncmp     rdi, rax                                                       ; +0xd5, 0x1400cc6c5\njnb     short loc_1400CC6D8                                            ; +0xd8, 0x1400cc6c8\nmov     rcx, [rcx+rdi*8]                                               ; +0xda, 0x1400cc6ca\ncmp     ebp, esi                                                       ; +0xde, 0x1400cc6ce\nsetnz   dl                                                             ; +0xe0, 0x1400cc6d0\ncall    CCMenuItemToggler__toggle                                      ; +0xe3, 0x1400cc6d3\nmov     r8, [rbx+358h]                                                 ; +0xe8, 0x1400cc6d8\nmov     rax, r12                                                       ; +0xef, 0x1400cc6df\nmov     rcx, [rbx+360h]                                                ; +0xf2, 0x1400cc6e2\ninc     rdi                                                            ; +0xf9, 0x1400cc6e9\nsub     rcx, r8                                                        ; +0xfc, 0x1400cc6ec\nadd     r14, 0A8h                                                      ; +0xff, 0x1400cc6ef\nimul    rcx                                                            ; +0x106, 0x1400cc6f6\nadd     rdx, rcx                                                       ; +0x109, 0x1400cc6f9\nsar     rdx, 7                                                         ; +0x10c, 0x1400cc6fc\nmov     rax, rdx                                                       ; +0x110, 0x1400cc700\nshr     rax, 3Fh                                                       ; +0x113, 0x1400cc703\nadd     rdx, rax                                                       ; +0x117, 0x1400cc707\ncmp     rdi, rdx                                                       ; +0x11a, 0x1400cc70a\njb      short loc_1400CC698                                            ; +0x11d, 0x1400cc70d\nmov     r14, [rsp+48h+var_10]                                          ; +0x11f, 0x1400cc70f\nmov     rcx, [rbx+3E0h]                                                ; +0x124, 0x1400cc714\nmov     r15, [rsp+48h+var_18]                                          ; +0x12b, 0x1400cc71b\nmov     r12, [rsp+48h+arg_18]                                          ; +0x130, 0x1400cc720\nmov     rdi, [rsp+48h+arg_10]                                          ; +0x135, 0x1400cc725\nmov     rsi, [rsp+48h+arg_8]                                           ; +0x13a, 0x1400cc72a\nmov     rbp, [rsp+48h+arg_0]                                           ; +0x13f, 0x1400cc72f\ntest    rcx, rcx                                                       ; +0x144, 0x1400cc734\njz      short loc_1400CC749                                            ; +0x147, 0x1400cc737\nmov     edx, [rbx+3C0h]                                                ; +0x149, 0x1400cc739\nadd     rsp, 40h                                                       ; +0x14f, 0x1400cc73f\npop     rbx                                                            ; +0x153, 0x1400cc743\njmp     GJSelectionStrip__setCount                                     ; +0x154, 0x1400cc744\nadd     rsp, 40h                                                       ; +0x159, 0x1400cc749\npop     rbx                                                            ; +0x15d, 0x1400cc74d\nretn                                                                   ; +0x15e, 0x1400cc74e", "xrefs": ["AutoBackupPopup::init @ 0x1400c9fc3", "<???> @ 0x140891120", "<???> @ 0x140891154", "<???> @ 0x140914078"], "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"}