{"type": "func", "start": 5373428832, "end": 5373428980, "name": "SFXBrowser::onToggleCompactMode", "pseudocode": "// \n// SFXBrowser::onToggleCompactMode from 0x140480460 to 0x1404804f4 (148 bytes)\n// \n// 2 xrefs:\n// > SFXBrowser::init @ 0x14047f173\n// > <???> @ 0x1406db9e4\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\nvoid SFXBrowser::onToggleCompactMode(SFXBrowser *a1, cocos2d::CCObject *a2)\n{\n  bool v3; // al\n  int v4; // ecx\n  void *v5; // [rsp+30h] [rbp+8h]\n\n  if ( a1->m_searchResult )\n  {\n    if ( !qword_1406C2ED8 )\n    {\n      v5 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v5);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    }\n    v3 = GameManager::toggleGameVariable((GameManager *)a1, \"0148\");\n    a1->m_compactMode = v3;\n    v4 = 20;\n    if ( v3 )\n      v4 = 40;\n    a1->m_cellAmount = v4;\n    a1->m_searchResult->m_startIndex = 0;\n    SFXBrowser::setupList(a1, a1->m_searchResult);\n  }\n}", "assembly": "; \n; SFXBrowser::onToggleCompactMode from 0x140480460 to 0x1404804f4 (148 bytes)\n; \n; 2 xrefs:\n; > SFXBrowser::init @ 0x14047f173\n; > <???> @ 0x1406db9e4\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x140480460\nsub     rsp, 20h                                                       ; +0x2, 0x140480462\nmov     rbx, rcx                                                       ; +0x6, 0x140480466\ncmp     qword ptr [rcx+298h], 0                                        ; +0x9, 0x140480469\njz      short loc_1404804EE                                            ; +0x11, 0x140480471\ncmp     cs:qword_1406C2ED8, 0                                          ; +0x13, 0x140480473\njnz     short loc_1404804A5                                            ; +0x1b, 0x14048047b\nmov     ecx, 668h; Size                                                ; +0x1d, 0x14048047d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x22, 0x140480482\nmov     [rsp+28h+arg_0], rax                                           ; +0x27, 0x140480487\nmov     rcx, rax                                                       ; +0x2c, 0x14048048c\ncall    sub_14017AB00                                                  ; +0x2f, 0x14048048f\nnop                                                                    ; +0x34, 0x140480494\nmov     cs:qword_1406C2ED8, rax                                        ; +0x35, 0x140480495\nmov     rdx, [rax]                                                     ; +0x3c, 0x14048049c\nmov     rcx, rax                                                       ; +0x3f, 0x14048049f\ncall    qword ptr [rdx+48h]                                            ; +0x42, 0x1404804a2\nlea     rdx, a0148; \"0148\"                                             ; +0x45, 0x1404804a5\ncall    GameManager__toggleGameVariable                                ; +0x4c, 0x1404804ac\nmov     [rbx+317h], al                                                 ; +0x51, 0x1404804b1\nmov     ecx, 14h                                                       ; +0x57, 0x1404804b7\nmov     edx, 28h ; '('                                                 ; +0x5c, 0x1404804bc\ntest    al, al                                                         ; +0x61, 0x1404804c1\ncmovnz  ecx, edx                                                       ; +0x63, 0x1404804c3\nmov     [rbx+310h], ecx                                                ; +0x66, 0x1404804c6\nmov     rax, [rbx+298h]                                                ; +0x6c, 0x1404804cc\nmov     dword ptr [rax+58h], 0                                         ; +0x73, 0x1404804d3\nmov     rdx, [rbx+298h]                                                ; +0x7a, 0x1404804da\nmov     rcx, rbx                                                       ; +0x81, 0x1404804e1\nadd     rsp, 20h                                                       ; +0x84, 0x1404804e4\npop     rbx                                                            ; +0x88, 0x1404804e8\njmp     SFXBrowser__setupList                                          ; +0x89, 0x1404804e9\nadd     rsp, 20h                                                       ; +0x8e, 0x1404804ee\npop     rbx                                                            ; +0x92, 0x1404804f2\nretn                                                                   ; +0x93, 0x1404804f3", "xrefs": ["SFXBrowser::init @ 0x14047f173", "<???> @ 0x1406db9e4"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}