{"type": "func", "start": 5373166160, "end": 5373166481, "name": "MoreSearchLayer::toggleSongNodes", "pseudocode": "// \n// MoreSearchLayer::toggleSongNodes from 0x140440250 to 0x140440391 (321 bytes)\n// \n// 2 xrefs:\n// > MoreSearchLayer::onSongMode @ 0x14044020d\n// > <???> @ 0x140927050\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:32:21 +0000\n// \n\nunsigned int __fastcall MoreSearchLayer::toggleSongNodes(cocos2d::CCArray **a1, char a2, char 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  unsigned int result; // eax\n  unsigned __int8 v14; // di\n  struct cocos2d::CCObject *v15; // rax\n\n  v4 = 0;\n  for ( i = 0; i < cocos2d::CCArray::count(a1[90]); ++i )\n  {\n    v8 = cocos2d::CCArray::objectAtIndex(a1[90], i);\n    if ( a2 || a3 )\n      v9 = 0;\n    else\n      LOBYTE(v9) = 1;\n    (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v8 + 336LL))(v8, v9);\n  }\n  for ( j = 0; j < cocos2d::CCArray::count(a1[91]); ++j )\n  {\n    v11 = cocos2d::CCArray::objectAtIndex(a1[91], j);\n    if ( !a2 || a3 )\n      v12 = 0;\n    else\n      LOBYTE(v12) = 1;\n    (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v11 + 336LL))(v11, v12);\n  }\n  result = cocos2d::CCArray::count(a1[89]);\n  if ( result )\n  {\n    v14 = a3 ^ 1;\n    do\n    {\n      v15 = cocos2d::CCArray::objectAtIndex(a1[89], v4);\n      (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v15 + 336LL))(v15, v14);\n      ++v4;\n      result = cocos2d::CCArray::count(a1[89]);\n    }\n    while ( v4 < result );\n  }\n  return result;\n}", "assembly": "; \n; MoreSearchLayer::toggleSongNodes from 0x140440250 to 0x140440391 (321 bytes)\n; \n; 2 xrefs:\n; > MoreSearchLayer::onSongMode @ 0x14044020d\n; > <???> @ 0x140927050\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:32:21 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140440250\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140440255\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x14044025a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x14044025f\npush    r14                                                            ; +0x14, 0x140440264\nsub     rsp, 20h                                                       ; +0x16, 0x140440266\nmov     rbx, rcx                                                       ; +0x1a, 0x14044026a\nxor     ebp, ebp                                                       ; +0x1d, 0x14044026d\nmov     rcx, [rcx+2D0h]                                                ; +0x1f, 0x14044026f\nmov     esi, ebp                                                       ; +0x26, 0x140440276\nmovzx   edi, r8b                                                       ; +0x28, 0x140440278\nmovzx   r14d, dl                                                       ; +0x2c, 0x14044027c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x30, 0x140440280\ntest    eax, eax                                                       ; +0x36, 0x140440286\njz      short loc_1404402CE                                            ; +0x38, 0x140440288\nnop     word ptr [rax+rax+00h]                                         ; +0x3a, 0x14044028a\nmov     rcx, [rbx+2D0h]                                                ; +0x40, 0x140440290\nmov     edx, esi                                                       ; +0x47, 0x140440297\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x49, 0x140440299\nmov     rcx, rax                                                       ; +0x4f, 0x14044029f\ntest    r14b, r14b                                                     ; +0x52, 0x1404402a2\njnz     short loc_1404402B0                                            ; +0x55, 0x1404402a5\ntest    dil, dil                                                       ; +0x57, 0x1404402a7\njnz     short loc_1404402B0                                            ; +0x5a, 0x1404402aa\nmov     dl, 1                                                          ; +0x5c, 0x1404402ac\njmp     short loc_1404402B2                                            ; +0x5e, 0x1404402ae\nxor     edx, edx                                                       ; +0x60, 0x1404402b0\nmov     rax, [rax]                                                     ; +0x62, 0x1404402b2\ncall    qword ptr [rax+150h]                                           ; +0x65, 0x1404402b5\nmov     rcx, [rbx+2D0h]                                                ; +0x6b, 0x1404402bb\ninc     esi                                                            ; +0x72, 0x1404402c2\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x74, 0x1404402c4\ncmp     esi, eax                                                       ; +0x7a, 0x1404402ca\njb      short loc_140440290                                            ; +0x7c, 0x1404402cc\nmov     rcx, [rbx+2D8h]                                                ; +0x7e, 0x1404402ce\nmov     esi, ebp                                                       ; +0x85, 0x1404402d5\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x87, 0x1404402d7\ntest    eax, eax                                                       ; +0x8d, 0x1404402dd\njz      short loc_14044031F                                            ; +0x8f, 0x1404402df\nmov     rcx, [rbx+2D8h]                                                ; +0x91, 0x1404402e1\nmov     edx, esi                                                       ; +0x98, 0x1404402e8\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x9a, 0x1404402ea\nmov     rcx, rax                                                       ; +0xa0, 0x1404402f0\ntest    r14b, r14b                                                     ; +0xa3, 0x1404402f3\njz      short loc_140440301                                            ; +0xa6, 0x1404402f6\ntest    dil, dil                                                       ; +0xa8, 0x1404402f8\njnz     short loc_140440301                                            ; +0xab, 0x1404402fb\nmov     dl, 1                                                          ; +0xad, 0x1404402fd\njmp     short loc_140440303                                            ; +0xaf, 0x1404402ff\nxor     edx, edx                                                       ; +0xb1, 0x140440301\nmov     rax, [rax]                                                     ; +0xb3, 0x140440303\ncall    qword ptr [rax+150h]                                           ; +0xb6, 0x140440306\nmov     rcx, [rbx+2D8h]                                                ; +0xbc, 0x14044030c\ninc     esi                                                            ; +0xc3, 0x140440313\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xc5, 0x140440315\ncmp     esi, eax                                                       ; +0xcb, 0x14044031b\njb      short loc_1404402E1                                            ; +0xcd, 0x14044031d\nmov     rcx, [rbx+2C8h]                                                ; +0xcf, 0x14044031f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xd6, 0x140440326\ntest    eax, eax                                                       ; +0xdc, 0x14044032c\njz      short loc_140440376                                            ; +0xde, 0x14044032e\nxor     dil, 1                                                         ; +0xe0, 0x140440330\nnop     dword ptr [rax+00h]                                            ; +0xe4, 0x140440334\nnop     dword ptr [rax+rax+00000000h]                                  ; +0xe8, 0x140440338\nmov     rcx, [rbx+2C8h]                                                ; +0xf0, 0x140440340\nmov     edx, ebp                                                       ; +0xf7, 0x140440347\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xf9, 0x140440349\nmovzx   edx, dil                                                       ; +0xff, 0x14044034f\nmov     rcx, [rax]                                                     ; +0x103, 0x140440353\nmov     r8, [rcx+150h]                                                 ; +0x106, 0x140440356\nmov     rcx, rax                                                       ; +0x10d, 0x14044035d\ncall    r8                                                             ; +0x110, 0x140440360\nmov     rcx, [rbx+2C8h]                                                ; +0x113, 0x140440363\ninc     ebp                                                            ; +0x11a, 0x14044036a\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x11c, 0x14044036c\ncmp     ebp, eax                                                       ; +0x122, 0x140440372\njb      short loc_140440340                                            ; +0x124, 0x140440374\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x126, 0x140440376\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x12b, 0x14044037b\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x130, 0x140440380\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x135, 0x140440385\nadd     rsp, 20h                                                       ; +0x13a, 0x14044038a\npop     r14                                                            ; +0x13e, 0x14044038e\nretn                                                                   ; +0x140, 0x140440390", "xrefs": ["MoreSearchLayer::onSongMode @ 0x14044020d", "<???> @ 0x140927050"], "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"}