{"type": "func", "start": 5373163888, "end": 5373164201, "name": "MoreSearchLayer::audioNext", "pseudocode": "// \n// MoreSearchLayer::audioNext from 0x14043f970 to 0x14043faa9 (313 bytes)\n// \n// 2 xrefs:\n// > MoreSearchLayer::init @ 0x14043d120\n// > <???> @ 0x140927020\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\n// Hidden C++ exception states: #wind=2\nvoid __fastcall MoreSearchLayer::audioNext(__int64 a1)\n{\n  __int64 v2; // rcx\n  cocos2d::CCString *v3; // rax\n  int v4; // ebx\n  void *v5; // r8\n  void *v6; // [rsp+30h] [rbp-38h]\n  void *Block[2]; // [rsp+38h] [rbp-30h] BYREF\n  __int64 v8; // [rsp+48h] [rbp-20h]\n  unsigned __int64 v9; // [rsp+50h] [rbp-18h]\n\n  v2 = *(_QWORD *)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v6 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v6);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v2 = *(_QWORD *)&qword_14090BFB0;\n  }\n  v8 = 11;\n  v9 = 15;\n  Block[0] = (void *)0x6C69665F676E6F73LL;\n  Block[1] = (void *)7497076;\n  v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v2 + 848), Block);\n  v4 = cocos2d::CCString::intValue(v3);\n  if ( v9 > 0xF )\n  {\n    v5 = Block[0];\n    if ( v9 + 1 >= 0x1000 )\n    {\n      v5 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v5);\n  }\n  if ( v4 != 22 )\n    MoreSearchLayer::selectSong(a1, (unsigned int)(v4 + 1));\n}", "assembly": "; \n; MoreSearchLayer::audioNext from 0x14043f970 to 0x14043faa9 (313 bytes)\n; \n; 2 xrefs:\n; > MoreSearchLayer::init @ 0x14043d120\n; > <???> @ 0x140927020\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_8], rbx                                               ; +0x0, 0x14043f970\npush    rdi                                                            ; +0x5, 0x14043f975\nsub     rsp, 60h                                                       ; +0x6, 0x14043f976\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14043f97a\nxor     rax, rsp                                                       ; +0x11, 0x14043f981\nmov     [rsp+68h+var_10], rax                                          ; +0x14, 0x14043f984\nmov     rdi, rcx                                                       ; +0x19, 0x14043f989\nmov     rcx, cs:qword_14090BFB0                                        ; +0x1c, 0x14043f98c\ntest    rcx, rcx                                                       ; +0x23, 0x14043f993\njnz     short loc_14043F9CA                                            ; +0x26, 0x14043f996\nmov     ecx, 690h; Size                                                ; +0x28, 0x14043f998\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2d, 0x14043f99d\nmov     [rsp+68h+var_38], rax                                          ; +0x32, 0x14043f9a2\nmov     rcx, rax                                                       ; +0x37, 0x14043f9a7\ncall    GameLevelManager__GameLevelManager                             ; +0x3a, 0x14043f9aa\nnop                                                                    ; +0x3f, 0x14043f9af\nmov     cs:qword_14090BFB0, rax                                        ; +0x40, 0x14043f9b0\nmov     rcx, [rax]                                                     ; +0x47, 0x14043f9b7\nmov     rdx, [rcx+48h]                                                 ; +0x4a, 0x14043f9ba\nmov     rcx, rax                                                       ; +0x4e, 0x14043f9be\ncall    rdx                                                            ; +0x51, 0x14043f9c1\nmov     rcx, cs:qword_14090BFB0                                        ; +0x53, 0x14043f9c3\nxorps   xmm0, xmm0                                                     ; +0x5a, 0x14043f9ca\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x5d, 0x14043f9cd\nmov     [rsp+68h+var_20], 0Bh                                          ; +0x62, 0x14043f9d2\nmov     [rsp+68h+var_18], 0Fh                                          ; +0x6b, 0x14043f9db\nmovsd   xmm0, cs:qword_140790130                                       ; +0x74, 0x14043f9e4\nmovsd   [rsp+68h+Block], xmm0                                          ; +0x7c, 0x14043f9ec\nmovzx   eax, cs:word_140790138                                         ; +0x82, 0x14043f9f2\nmov     word ptr [rsp+68h+Block+8], ax                                 ; +0x89, 0x14043f9f9\nmovzx   eax, cs:byte_14079013A                                         ; +0x8e, 0x14043f9fe\nmov     byte ptr [rsp+68h+Block+0Ah], al                               ; +0x95, 0x14043fa05\nmov     byte ptr [rsp+68h+Block+0Bh], 0                                ; +0x99, 0x14043fa09\nlea     rdx, [rsp+68h+Block]                                           ; +0x9e, 0x14043fa0e\nmov     rcx, [rcx+350h]                                                ; +0xa3, 0x14043fa13\ncall    cs:?valueForKey@CCDictionary@cocos2d@@QEAAPEBVCCString@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::valueForKey(std::string const &) ; +0xaa, 0x14043fa1a\nmov     rcx, rax                                                       ; +0xb0, 0x14043fa20\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0xb3, 0x14043fa23\nmov     ebx, eax                                                       ; +0xb9, 0x14043fa29\nmov     rdx, [rsp+68h+var_18]                                          ; +0xbb, 0x14043fa2b\ncmp     rdx, 0Fh                                                       ; +0xc0, 0x14043fa30\njbe     short loc_14043FA81                                            ; +0xc4, 0x14043fa34\ninc     rdx                                                            ; +0xc6, 0x14043fa36\nmov     r8, [rsp+68h+Block]                                            ; +0xc9, 0x14043fa39\nmov     rcx, r8                                                        ; +0xce, 0x14043fa3e\ncmp     rdx, 1000h                                                     ; +0xd1, 0x14043fa41\njb      short loc_14043FA79                                            ; +0xd8, 0x14043fa48\nadd     rdx, 27h ; '''                                                 ; +0xda, 0x14043fa4a\nmov     r8, [r8-8]                                                     ; +0xde, 0x14043fa4e\nsub     rcx, r8                                                        ; +0xe2, 0x14043fa52\nsub     rcx, 8                                                         ; +0xe5, 0x14043fa55\ncmp     rcx, 1Fh                                                       ; +0xe9, 0x14043fa59\njbe     short loc_14043FA79                                            ; +0xed, 0x14043fa5d\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xef, 0x14043fa5f\nxor     r9d, r9d; LineNo                                               ; +0xf8, 0x14043fa68\nxor     r8d, r8d; FileName                                             ; +0xfb, 0x14043fa6b\nxor     edx, edx; FunctionName                                         ; +0xfe, 0x14043fa6e\nxor     ecx, ecx; Expression                                           ; +0x100, 0x14043fa70\ncall    cs:_invoke_watson                                              ; +0x102, 0x14043fa72\ndb 0CCh                                                                ; +0x108, 0x14043fa78\nmov     rcx, r8; Block                                                 ; +0x109, 0x14043fa79\ncall    j_j_free                                                       ; +0x10c, 0x14043fa7c\ncmp     ebx, 16h                                                       ; +0x111, 0x14043fa81\njz      short loc_14043FA91                                            ; +0x114, 0x14043fa84\nlea     edx, [rbx+1]                                                   ; +0x116, 0x14043fa86\nmov     rcx, rdi                                                       ; +0x119, 0x14043fa89\ncall    MoreSearchLayer__selectSong                                    ; +0x11c, 0x14043fa8c\nmov     rcx, [rsp+68h+var_10]                                          ; +0x121, 0x14043fa91\nxor     rcx, rsp; StackCookie                                          ; +0x126, 0x14043fa96\ncall    __security_check_cookie                                        ; +0x129, 0x14043fa99\nmov     rbx, [rsp+68h+arg_8]                                           ; +0x12e, 0x14043fa9e\nadd     rsp, 60h                                                       ; +0x133, 0x14043faa3\npop     rdi                                                            ; +0x137, 0x14043faa7\nretn                                                                   ; +0x138, 0x14043faa8", "xrefs": ["MoreSearchLayer::init @ 0x14043d120", "<???> @ 0x140927020"], "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"}