{"type": "func", "start": 5371949136, "end": 5371949454, "name": "MoreSearchLayer::toggleSongNodes", "pseudocode": "// \n// MoreSearchLayer::toggleSongNodes from 0x140317050 to 0x14031718e (318 bytes)\n// \n// 2 xrefs:\n// > MoreSearchLayer::onSongMode @ 0x140317016\n// > <???> @ 0x1406d4988\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\nvoid MoreSearchLayer::toggleSongNodes(MoreSearchLayer *a1, bool a2, bool a3)\n{\n  unsigned int v4; // ebp\n  unsigned int i; // esi\n  struct cocos2d::CCObject *v8; // rax\n  __int64 v9; // rdx\n  unsigned int j; // esi\n  struct cocos2d::CCObject *v11; // rax\n  __int64 v12; // rdx\n  bool v13; // di\n  struct cocos2d::CCObject *v14; // rax\n\n  v4 = 0;\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_normalSongNodes); ++i )\n  {\n    v8 = cocos2d::CCArray::objectAtIndex(a1->m_normalSongNodes, i);\n    if ( a2 || a3 )\n      v9 = 0;\n    else\n      LOBYTE(v9) = 1;\n    ((void (__fastcall *)(struct cocos2d::CCObject *, __int64))v8->__vftable[4].update)(v8, v9);\n  }\n  for ( j = 0; j < cocos2d::CCArray::count(a1->m_customSongNodes); ++j )\n  {\n    v11 = cocos2d::CCArray::objectAtIndex(a1->m_customSongNodes, j);\n    if ( !a2 || a3 )\n      v12 = 0;\n    else\n      LOBYTE(v12) = 1;\n    ((void (__fastcall *)(struct cocos2d::CCObject *, __int64))v11->__vftable[4].update)(v11, v12);\n  }\n  if ( cocos2d::CCArray::count(a1->m_commonSongNodes) )\n  {\n    v13 = !a3;\n    do\n    {\n      v14 = cocos2d::CCArray::objectAtIndex(a1->m_commonSongNodes, v4);\n      ((void (__fastcall *)(struct cocos2d::CCObject *, bool))v14->__vftable[4].update)(v14, v13);\n      ++v4;\n    }\n    while ( v4 < cocos2d::CCArray::count(a1->m_commonSongNodes) );\n  }\n}", "assembly": "; \n; MoreSearchLayer::toggleSongNodes from 0x140317050 to 0x14031718e (318 bytes)\n; \n; 2 xrefs:\n; > MoreSearchLayer::onSongMode @ 0x140317016\n; > <???> @ 0x1406d4988\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140317050\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140317055\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x14031705a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x14031705f\npush    r14                                                            ; +0x14, 0x140317064\nsub     rsp, 20h                                                       ; +0x16, 0x140317066\nmov     rbx, rcx                                                       ; +0x1a, 0x14031706a\nxor     ebp, ebp                                                       ; +0x1d, 0x14031706d\nmov     rcx, [rcx+2B8h]                                                ; +0x1f, 0x14031706f\nmov     esi, ebp                                                       ; +0x26, 0x140317076\nmovzx   edi, r8b                                                       ; +0x28, 0x140317078\nmovzx   r14d, dl                                                       ; +0x2c, 0x14031707c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x30, 0x140317080\ntest    eax, eax                                                       ; +0x36, 0x140317086\njz      short loc_1403170CE                                            ; +0x38, 0x140317088\nnop     word ptr [rax+rax+00h]                                         ; +0x3a, 0x14031708a\nmov     rcx, [rbx+2B8h]                                                ; +0x40, 0x140317090\nmov     edx, esi                                                       ; +0x47, 0x140317097\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x49, 0x140317099\nmov     rcx, rax                                                       ; +0x4f, 0x14031709f\ntest    r14b, r14b                                                     ; +0x52, 0x1403170a2\njnz     short loc_1403170B0                                            ; +0x55, 0x1403170a5\ntest    dil, dil                                                       ; +0x57, 0x1403170a7\njnz     short loc_1403170B0                                            ; +0x5a, 0x1403170aa\nmov     dl, 1                                                          ; +0x5c, 0x1403170ac\njmp     short loc_1403170B2                                            ; +0x5e, 0x1403170ae\nxor     edx, edx                                                       ; +0x60, 0x1403170b0\nmov     rax, [rax]                                                     ; +0x62, 0x1403170b2\ncall    qword ptr [rax+140h]                                           ; +0x65, 0x1403170b5\nmov     rcx, [rbx+2B8h]                                                ; +0x6b, 0x1403170bb\ninc     esi                                                            ; +0x72, 0x1403170c2\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x74, 0x1403170c4\ncmp     esi, eax                                                       ; +0x7a, 0x1403170ca\njb      short loc_140317090                                            ; +0x7c, 0x1403170cc\nmov     rcx, [rbx+2C0h]                                                ; +0x7e, 0x1403170ce\nmov     esi, ebp                                                       ; +0x85, 0x1403170d5\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x87, 0x1403170d7\ntest    eax, eax                                                       ; +0x8d, 0x1403170dd\njz      short loc_14031711F                                            ; +0x8f, 0x1403170df\nmov     rcx, [rbx+2C0h]                                                ; +0x91, 0x1403170e1\nmov     edx, esi                                                       ; +0x98, 0x1403170e8\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x9a, 0x1403170ea\nmov     rcx, rax                                                       ; +0xa0, 0x1403170f0\ntest    r14b, r14b                                                     ; +0xa3, 0x1403170f3\njz      short loc_140317101                                            ; +0xa6, 0x1403170f6\ntest    dil, dil                                                       ; +0xa8, 0x1403170f8\njnz     short loc_140317101                                            ; +0xab, 0x1403170fb\nmov     dl, 1                                                          ; +0xad, 0x1403170fd\njmp     short loc_140317103                                            ; +0xaf, 0x1403170ff\nxor     edx, edx                                                       ; +0xb1, 0x140317101\nmov     rax, [rax]                                                     ; +0xb3, 0x140317103\ncall    qword ptr [rax+140h]                                           ; +0xb6, 0x140317106\nmov     rcx, [rbx+2C0h]                                                ; +0xbc, 0x14031710c\ninc     esi                                                            ; +0xc3, 0x140317113\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xc5, 0x140317115\ncmp     esi, eax                                                       ; +0xcb, 0x14031711b\njb      short loc_1403170E1                                            ; +0xcd, 0x14031711d\nmov     rcx, [rbx+2B0h]                                                ; +0xcf, 0x14031711f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xd6, 0x140317126\ntest    eax, eax                                                       ; +0xdc, 0x14031712c\njz      short loc_140317173                                            ; +0xde, 0x14031712e\nxor     dil, 1                                                         ; +0xe0, 0x140317130\nnop     dword ptr [rax+00h]                                            ; +0xe4, 0x140317134\nnop     dword ptr [rax+rax+00000000h]                                  ; +0xe8, 0x140317138\nmov     rcx, [rbx+2B0h]                                                ; +0xf0, 0x140317140\nmov     edx, ebp                                                       ; +0xf7, 0x140317147\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xf9, 0x140317149\nmovzx   edx, dil                                                       ; +0xff, 0x14031714f\nmov     rcx, rax                                                       ; +0x103, 0x140317153\nmov     r8, [rax]                                                      ; +0x106, 0x140317156\ncall    qword ptr [r8+140h]                                            ; +0x109, 0x140317159\nmov     rcx, [rbx+2B0h]                                                ; +0x110, 0x140317160\ninc     ebp                                                            ; +0x117, 0x140317167\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x119, 0x140317169\ncmp     ebp, eax                                                       ; +0x11f, 0x14031716f\njb      short loc_140317140                                            ; +0x121, 0x140317171\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x123, 0x140317173\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x128, 0x140317178\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x12d, 0x14031717d\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x132, 0x140317182\nadd     rsp, 20h                                                       ; +0x137, 0x140317187\npop     r14                                                            ; +0x13b, 0x14031718b\nretn                                                                   ; +0x13d, 0x14031718d", "xrefs": ["MoreSearchLayer::onSongMode @ 0x140317016", "<???> @ 0x1406d4988"], "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"}