{"type": "func", "start": 5373163136, "end": 5373163881, "name": "MoreSearchLayer::updateAudioLabel", "pseudocode": "// \n// MoreSearchLayer::updateAudioLabel from 0x14043f680 to 0x14043f969 (745 bytes)\n// \n// 3 xrefs:\n// > MoreSearchLayer::selectSong @ 0x14043fd27\n// > MoreSearchLayer::onSongMode @ 0x140440215\n// > <???> @ 0x140927014\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=5\nvoid __fastcall MoreSearchLayer::updateAudioLabel(__int64 a1)\n{\n  __int64 v2; // rcx\n  cocos2d::CCString *v3; // rax\n  int v4; // esi\n  void *v5; // r8\n  int v6; // esi\n  __int64 v7; // rcx\n  cocos2d::CCString *v8; // rax\n  void *v9; // rcx\n  const char *v10; // r8\n  cocos2d::CCString *v11; // rax\n  const char *CString; // rax\n  void *v13; // [rsp+30h] [rbp-19h]\n  void *v14; // [rsp+30h] [rbp-19h]\n  void *Block[2]; // [rsp+38h] [rbp-11h] BYREF\n  __int64 v16; // [rsp+48h] [rbp-1h]\n  unsigned __int64 v17; // [rsp+50h] [rbp+7h]\n  void *v18[2]; // [rsp+58h] [rbp+Fh] BYREF\n  __int64 v19; // [rsp+68h] [rbp+1Fh]\n  unsigned __int64 v20; // [rsp+70h] [rbp+27h]\n  _QWORD v21[4]; // [rsp+78h] [rbp+2Fh] BYREF\n\n  v2 = *(_QWORD *)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v13 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v13);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v2 = *(_QWORD *)&qword_14090BFB0;\n  }\n  v16 = 11;\n  v17 = 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 ( v17 > 0xF )\n  {\n    v5 = Block[0];\n    if ( v17 + 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  v16 = 0;\n  v17 = 15;\n  LOBYTE(Block[0]) = 0;\n  if ( v4 >= 1 )\n  {\n    v7 = *(_QWORD *)&qword_14090BFB0;\n    if ( !*(_QWORD *)&qword_14090BFB0 )\n    {\n      v14 = operator new(0x690u);\n      *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v14);\n      (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n      v7 = *(_QWORD *)&qword_14090BFB0;\n    }\n    v19 = 11;\n    v20 = 15;\n    v18[0] = (void *)0x6C69665F676E6F73LL;\n    v18[1] = (void *)7497076;\n    v8 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v7 + 848), v18);\n    v6 = cocos2d::CCString::intValue(v8);\n    if ( v20 > 0xF )\n    {\n      v9 = v18[0];\n      if ( v20 + 1 >= 0x1000 )\n      {\n        v9 = *((void **)v18[0] - 1);\n        if ( (unsigned __int64)((char *)v18[0] - (char *)v9 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v9);\n    }\n  }\n  else\n  {\n    v6 = 1;\n  }\n  LevelTools::getAudioTitle(v21, (unsigned int)(v6 - 1));\n  v10 = (const char *)v21;\n  if ( v21[3] > 0xFu )\n    v10 = (const char *)v21[0];\n  v11 = cocos2d::CCString::createWithFormat(\"%02d: %s\", v6, v10);\n  CString = cocos2d::CCString::getCString(v11);\n  (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 664) + 360LL))(\n    *(_QWORD *)(a1 + 664) + 360LL,\n    CString);\n  if ( (float)(200.0\n             / *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 664) + 320LL))(*(_QWORD *)(a1 + 664))) <= 0.80000001 )\n    (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 664) + 320LL))(*(_QWORD *)(a1 + 664));\n  (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 664) + 160LL))(*(_QWORD *)(a1 + 664));\n  sub_14003D310((__int64)v21);\n}", "assembly": "; \n; MoreSearchLayer::updateAudioLabel from 0x14043f680 to 0x14043f969 (745 bytes)\n; \n; 3 xrefs:\n; > MoreSearchLayer::selectSong @ 0x14043fd27\n; > MoreSearchLayer::onSongMode @ 0x140440215\n; > <???> @ 0x140927014\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-8+arg_8], rsi                                             ; +0x0, 0x14043f680\nmov     [rsp-8+arg_10], rdi                                            ; +0x5, 0x14043f685\npush    rbp                                                            ; +0xa, 0x14043f68a\nlea     rbp, [rsp-57h]                                                 ; +0xb, 0x14043f68b\nsub     rsp, 0A0h                                                      ; +0x10, 0x14043f690\nmov     rax, cs:__security_cookie                                      ; +0x17, 0x14043f697\nxor     rax, rsp                                                       ; +0x1e, 0x14043f69e\nmov     [rbp+57h+var_8], rax                                           ; +0x21, 0x14043f6a1\nmov     rdi, rcx                                                       ; +0x25, 0x14043f6a5\nmov     rcx, cs:qword_14090BFB0                                        ; +0x28, 0x14043f6a8\ntest    rcx, rcx                                                       ; +0x2f, 0x14043f6af\njnz     short loc_14043F6E5                                            ; +0x32, 0x14043f6b2\nmov     ecx, 690h; Size                                                ; +0x34, 0x14043f6b4\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x39, 0x14043f6b9\nmov     [rbp+57h+var_70], rax                                          ; +0x3e, 0x14043f6be\nmov     rcx, rax                                                       ; +0x42, 0x14043f6c2\ncall    GameLevelManager__GameLevelManager                             ; +0x45, 0x14043f6c5\nnop                                                                    ; +0x4a, 0x14043f6ca\nmov     cs:qword_14090BFB0, rax                                        ; +0x4b, 0x14043f6cb\nmov     rcx, [rax]                                                     ; +0x52, 0x14043f6d2\nmov     rdx, [rcx+48h]                                                 ; +0x55, 0x14043f6d5\nmov     rcx, rax                                                       ; +0x59, 0x14043f6d9\ncall    rdx                                                            ; +0x5c, 0x14043f6dc\nmov     rcx, cs:qword_14090BFB0                                        ; +0x5e, 0x14043f6de\nxorps   xmm0, xmm0                                                     ; +0x65, 0x14043f6e5\nmovups  xmmword ptr [rbp+57h+Block], xmm0                              ; +0x68, 0x14043f6e8\nmov     [rbp+57h+var_58], 0Bh                                          ; +0x6c, 0x14043f6ec\nmov     [rbp+57h+var_50], 0Fh                                          ; +0x74, 0x14043f6f4\nmovsd   xmm0, cs:qword_140790130                                       ; +0x7c, 0x14043f6fc\nmovsd   [rbp+57h+Block], xmm0                                          ; +0x84, 0x14043f704\nmovzx   eax, cs:word_140790138                                         ; +0x89, 0x14043f709\nmov     word ptr [rbp+57h+Block+8], ax                                 ; +0x90, 0x14043f710\nmovzx   eax, cs:byte_14079013A                                         ; +0x94, 0x14043f714\nmov     byte ptr [rbp+57h+Block+0Ah], al                               ; +0x9b, 0x14043f71b\nmov     byte ptr [rbp+57h+Block+0Bh], 0                                ; +0x9e, 0x14043f71e\nlea     rdx, [rbp+57h+Block]                                           ; +0xa2, 0x14043f722\nmov     rcx, [rcx+350h]                                                ; +0xa6, 0x14043f726\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 &) ; +0xad, 0x14043f72d\nmov     rcx, rax                                                       ; +0xb3, 0x14043f733\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0xb6, 0x14043f736\nmov     esi, eax                                                       ; +0xbc, 0x14043f73c\nmov     rdx, [rbp+57h+var_50]                                          ; +0xbe, 0x14043f73e\ncmp     rdx, 0Fh                                                       ; +0xc2, 0x14043f742\njbe     short loc_14043F792                                            ; +0xc6, 0x14043f746\ninc     rdx                                                            ; +0xc8, 0x14043f748\nmov     r8, [rbp+57h+Block]                                            ; +0xcb, 0x14043f74b\nmov     rcx, r8                                                        ; +0xcf, 0x14043f74f\ncmp     rdx, 1000h                                                     ; +0xd2, 0x14043f752\njb      short loc_14043F78A                                            ; +0xd9, 0x14043f759\nadd     rdx, 27h ; '''                                                 ; +0xdb, 0x14043f75b\nmov     r8, [r8-8]                                                     ; +0xdf, 0x14043f75f\nsub     rcx, r8                                                        ; +0xe3, 0x14043f763\nsub     rcx, 8                                                         ; +0xe6, 0x14043f766\ncmp     rcx, 1Fh                                                       ; +0xea, 0x14043f76a\njbe     short loc_14043F78A                                            ; +0xee, 0x14043f76e\nmov     [rsp+0A0h+Reserved], 0; Reserved                               ; +0xf0, 0x14043f770\nxor     r9d, r9d; LineNo                                               ; +0xf9, 0x14043f779\nxor     r8d, r8d; FileName                                             ; +0xfc, 0x14043f77c\nxor     edx, edx; FunctionName                                         ; +0xff, 0x14043f77f\nxor     ecx, ecx; Expression                                           ; +0x101, 0x14043f781\ncall    cs:_invoke_watson                                              ; +0x103, 0x14043f783\nalign 2                                                                ; +0x109, 0x14043f789\nmov     rcx, r8; Block                                                 ; +0x10a, 0x14043f78a\ncall    j_j_free                                                       ; +0x10d, 0x14043f78d\nmov     [rbp+57h+var_58], 0                                            ; +0x112, 0x14043f792\nmov     [rbp+57h+var_50], 0Fh                                          ; +0x11a, 0x14043f79a\nmov     byte ptr [rbp+57h+Block], 0                                    ; +0x122, 0x14043f7a2\ncmp     esi, 1                                                         ; +0x126, 0x14043f7a6\njge     short loc_14043F7B5                                            ; +0x129, 0x14043f7a9\nmov     esi, 1                                                         ; +0x12b, 0x14043f7ab\njmp     loc_14043F89C                                                  ; +0x130, 0x14043f7b0\nmov     rcx, cs:qword_14090BFB0                                        ; +0x135, 0x14043f7b5\ntest    rcx, rcx                                                       ; +0x13c, 0x14043f7bc\njnz     short loc_14043F7F2                                            ; +0x13f, 0x14043f7bf\nmov     ecx, 690h; Size                                                ; +0x141, 0x14043f7c1\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x146, 0x14043f7c6\nmov     [rbp+57h+var_70], rax                                          ; +0x14b, 0x14043f7cb\nmov     rcx, rax                                                       ; +0x14f, 0x14043f7cf\ncall    GameLevelManager__GameLevelManager                             ; +0x152, 0x14043f7d2\nnop                                                                    ; +0x157, 0x14043f7d7\nmov     cs:qword_14090BFB0, rax                                        ; +0x158, 0x14043f7d8\nmov     rcx, [rax]                                                     ; +0x15f, 0x14043f7df\nmov     rdx, [rcx+48h]                                                 ; +0x162, 0x14043f7e2\nmov     rcx, rax                                                       ; +0x166, 0x14043f7e6\ncall    rdx                                                            ; +0x169, 0x14043f7e9\nmov     rcx, cs:qword_14090BFB0                                        ; +0x16b, 0x14043f7eb\nxorps   xmm0, xmm0                                                     ; +0x172, 0x14043f7f2\nmovups  xmmword ptr [rbp+57h+var_48], xmm0                             ; +0x175, 0x14043f7f5\nmov     [rbp+57h+var_38], 0Bh                                          ; +0x179, 0x14043f7f9\nmov     [rbp+57h+var_30], 0Fh                                          ; +0x181, 0x14043f801\nmovsd   xmm0, cs:qword_140790130                                       ; +0x189, 0x14043f809\nmovsd   [rbp+57h+var_48], xmm0                                         ; +0x191, 0x14043f811\nmovzx   eax, cs:word_140790138                                         ; +0x196, 0x14043f816\nmov     word ptr [rbp+57h+var_48+8], ax                                ; +0x19d, 0x14043f81d\nmovzx   eax, cs:byte_14079013A                                         ; +0x1a1, 0x14043f821\nmov     byte ptr [rbp+57h+var_48+0Ah], al                              ; +0x1a8, 0x14043f828\nmov     byte ptr [rbp+57h+var_48+0Bh], 0                               ; +0x1ab, 0x14043f82b\nlea     rdx, [rbp+57h+var_48]                                          ; +0x1af, 0x14043f82f\nmov     rcx, [rcx+350h]                                                ; +0x1b3, 0x14043f833\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 &) ; +0x1ba, 0x14043f83a\nmov     rcx, rax                                                       ; +0x1c0, 0x14043f840\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x1c3, 0x14043f843\nmov     esi, eax                                                       ; +0x1c9, 0x14043f849\nmov     rdx, [rbp+57h+var_30]                                          ; +0x1cb, 0x14043f84b\ncmp     rdx, 0Fh                                                       ; +0x1cf, 0x14043f84f\njbe     short loc_14043F89C                                            ; +0x1d3, 0x14043f853\ninc     rdx                                                            ; +0x1d5, 0x14043f855\nmov     rcx, [rbp+57h+var_48]; Block                                   ; +0x1d8, 0x14043f858\nmov     rax, rcx                                                       ; +0x1dc, 0x14043f85c\ncmp     rdx, 1000h                                                     ; +0x1df, 0x14043f85f\njb      short loc_14043F897                                            ; +0x1e6, 0x14043f866\nadd     rdx, 27h ; '''                                                 ; +0x1e8, 0x14043f868\nmov     rcx, [rcx-8]                                                   ; +0x1ec, 0x14043f86c\nsub     rax, rcx                                                       ; +0x1f0, 0x14043f870\nsub     rax, 8                                                         ; +0x1f3, 0x14043f873\ncmp     rax, 1Fh                                                       ; +0x1f7, 0x14043f877\njbe     short loc_14043F897                                            ; +0x1fb, 0x14043f87b\nmov     [rsp+0A0h+Reserved], 0; Reserved                               ; +0x1fd, 0x14043f87d\nxor     r9d, r9d; LineNo                                               ; +0x206, 0x14043f886\nxor     r8d, r8d; FileName                                             ; +0x209, 0x14043f889\nxor     edx, edx; FunctionName                                         ; +0x20c, 0x14043f88c\nxor     ecx, ecx; Expression                                           ; +0x20e, 0x14043f88e\ncall    cs:_invoke_watson                                              ; +0x210, 0x14043f890\ndb 0CCh                                                                ; +0x216, 0x14043f896\ncall    j_j_free                                                       ; +0x217, 0x14043f897\nlea     edx, [rsi-1]                                                   ; +0x21c, 0x14043f89c\nlea     rcx, [rbp+57h+var_28]                                          ; +0x21f, 0x14043f89f\ncall    LevelTools__getAudioTitle                                      ; +0x223, 0x14043f8a3\nnop                                                                    ; +0x228, 0x14043f8a8\nlea     r8, [rbp+57h+var_28]                                           ; +0x229, 0x14043f8a9\ncmp     [rbp+57h+var_10], 0Fh                                          ; +0x22d, 0x14043f8ad\ncmova   r8, [rbp+57h+var_28]                                           ; +0x232, 0x14043f8b2\nmov     edx, esi                                                       ; +0x237, 0x14043f8b7\nlea     rcx, a02dS; \"%02d: %s\"                                         ; +0x239, 0x14043f8b9\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x240, 0x14043f8c0\nmov     rcx, rax                                                       ; +0x246, 0x14043f8c6\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x249, 0x14043f8c9\nmov     rcx, [rdi+298h]                                                ; +0x24f, 0x14043f8cf\nadd     rcx, 168h                                                      ; +0x256, 0x14043f8d6\nmov     rdx, [rcx]                                                     ; +0x25d, 0x14043f8dd\nmov     r8, [rdx]                                                      ; +0x260, 0x14043f8e0\nmov     rdx, rax                                                       ; +0x263, 0x14043f8e3\ncall    r8                                                             ; +0x266, 0x14043f8e6\nmov     rcx, [rdi+298h]                                                ; +0x269, 0x14043f8e9\nmov     rax, [rcx]                                                     ; +0x270, 0x14043f8f0\ncall    qword ptr [rax+140h]                                           ; +0x273, 0x14043f8f3\nmovss   xmm0, cs:dword_1408358F4                                       ; +0x279, 0x14043f8f9\ndivss   xmm0, dword ptr [rax]                                          ; +0x281, 0x14043f901\nmovss   xmm1, cs:dword_140834FE8                                       ; +0x285, 0x14043f905\ncomiss  xmm0, xmm1                                                     ; +0x28d, 0x14043f90d\nja      short loc_14043F92E                                            ; +0x290, 0x14043f910\nmov     rcx, [rdi+298h]                                                ; +0x292, 0x14043f912\nmov     rax, [rcx]                                                     ; +0x299, 0x14043f919\ncall    qword ptr [rax+140h]                                           ; +0x29c, 0x14043f91c\nmovss   xmm1, cs:dword_1408358F4                                       ; +0x2a2, 0x14043f922\ndivss   xmm1, dword ptr [rax]                                          ; +0x2aa, 0x14043f92a\nmov     rcx, [rdi+298h]                                                ; +0x2ae, 0x14043f92e\nmov     rax, [rcx]                                                     ; +0x2b5, 0x14043f935\ncall    qword ptr [rax+0A0h]                                           ; +0x2b8, 0x14043f938\nnop                                                                    ; +0x2be, 0x14043f93e\nlea     rcx, [rbp+57h+var_28]                                          ; +0x2bf, 0x14043f93f\ncall    sub_14003D310                                                  ; +0x2c3, 0x14043f943\nmov     rcx, [rbp+57h+var_8]                                           ; +0x2c8, 0x14043f948\nxor     rcx, rsp; StackCookie                                          ; +0x2cc, 0x14043f94c\ncall    __security_check_cookie                                        ; +0x2cf, 0x14043f94f\nlea     r11, [rsp+0A0h+var_s0]                                         ; +0x2d4, 0x14043f954\nmov     rsi, [r11+18h]                                                 ; +0x2dc, 0x14043f95c\nmov     rdi, [r11+20h]                                                 ; +0x2e0, 0x14043f960\nmov     rsp, r11                                                       ; +0x2e4, 0x14043f964\npop     rbp                                                            ; +0x2e7, 0x14043f967\nretn                                                                   ; +0x2e8, 0x14043f968", "xrefs": ["MoreSearchLayer::selectSong @ 0x14043fd27", "MoreSearchLayer::onSongMode @ 0x140440215", "<???> @ 0x140927014"], "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"}