{"type": "func", "start": 4297482376, "end": 4297482556, "name": "GJSongBrowser::FLAlert_Clicked", "pseudocode": "// \n// GJSongBrowser::FLAlert_Clicked from 0x100266088 to 0x10026613c (180 bytes)\n// \n// 2 xrefs:\n// > sub_10026613C @ 0x100266140\n// > <???> @ 0x1007d1690\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 __fastcall GJSongBrowser::FLAlert_Clicked(GJSongBrowser *a1, FLAlertLayer *a2, bool a3)\n{\n  _BOOL4 v3; // w20\n  MusicDownloadManager *v6; // x0\n  cocos2d::CCArray *DownloadedSongs; // x20\n  unsigned int v9; // w21\n  __int64 v10; // x22\n  MusicDownloadManager *v11; // x0\n  MusicDownloadManager *v12; // x0\n\n  v3 = a3;\n  if ( ((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) == 1 && v3 )\n  {\n    v6 = MusicDownloadManager::sharedState();\n    DownloadedSongs = MusicDownloadManager::getDownloadedSongs(v6);\n    if ( (unsigned int)sub_10024A36C((__int64)DownloadedSongs) )\n    {\n      v9 = 0;\n      do\n      {\n        v10 = sub_10024A388((__int64)DownloadedSongs, v9);\n        v11 = MusicDownloadManager::sharedState();\n        MusicDownloadManager::deleteSong(v11, *(_DWORD *)(v10 + 316));\n        ++v9;\n      }\n      while ( v9 < (unsigned int)sub_10024A36C((__int64)DownloadedSongs) );\n    }\n    v12 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::clearUnusedSongs(v12);\n    ((void (__fastcall *)(GJSongBrowser *, _QWORD))a1->exitLayer)(a1, 0);\n  }\n}", "assembly": "; \n; GJSongBrowser::FLAlert_Clicked from 0x100266088 to 0x10026613c (180 bytes)\n; \n; 2 xrefs:\n; > sub_10026613C @ 0x100266140\n; > <???> @ 0x1007d1690\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100266088\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10026608c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100266090\nADD             X29, SP, #0x20                                         ; +0xc, 0x100266094\nMOV             X20, X2                                                ; +0x10, 0x100266098\nMOV             X19, X0                                                ; +0x14, 0x10026609c\nLDR             X8, [X1]                                               ; +0x18, 0x1002660a0\nLDR             X8, [X8,#0x40]                                         ; +0x1c, 0x1002660a4\nMOV             X0, X1                                                 ; +0x20, 0x1002660a8\nBLR             X8                                                     ; +0x24, 0x1002660ac\nCMP             W0, #1                                                 ; +0x28, 0x1002660b0\nCCMP            W20, #0, #4, EQ                                        ; +0x2c, 0x1002660b4\nB.NE            loc_1002660CC                                          ; +0x30, 0x1002660b8\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x34, 0x1002660bc\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x38, 0x1002660c0\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x3c, 0x1002660c4\nRET                                                                    ; +0x40, 0x1002660c8\nBL              MusicDownloadManager__sharedState                      ; +0x44, 0x1002660cc\nBL              MusicDownloadManager__getDownloadedSongs               ; +0x48, 0x1002660d0\nMOV             X20, X0                                                ; +0x4c, 0x1002660d4\nBL              sub_10024A36C                                          ; +0x50, 0x1002660d8\nCBZ             W0, loc_100266114                                      ; +0x54, 0x1002660dc\nMOV             W21, #0                                                ; +0x58, 0x1002660e0\nMOV             X0, X20                                                ; +0x5c, 0x1002660e4\nMOV             X1, X21                                                ; +0x60, 0x1002660e8\nBL              sub_10024A388                                          ; +0x64, 0x1002660ec\nMOV             X22, X0                                                ; +0x68, 0x1002660f0\nBL              MusicDownloadManager__sharedState                      ; +0x6c, 0x1002660f4\nLDR             W1, [X22,#0x13C]                                       ; +0x70, 0x1002660f8\nBL              MusicDownloadManager__deleteSong                       ; +0x74, 0x1002660fc\nADD             W21, W21, #1                                           ; +0x78, 0x100266100\nMOV             X0, X20                                                ; +0x7c, 0x100266104\nBL              sub_10024A36C                                          ; +0x80, 0x100266108\nCMP             W21, W0                                                ; +0x84, 0x10026610c\nB.CC            loc_1002660E4                                          ; +0x88, 0x100266110\nBL              MusicDownloadManager__sharedState                      ; +0x8c, 0x100266114\nBL              MusicDownloadManager__clearUnusedSongs                 ; +0x90, 0x100266118\nLDR             X8, [X19]                                              ; +0x94, 0x10026611c\nLDR             X2, [X8,#0x518]                                        ; +0x98, 0x100266120\nMOV             X0, X19                                                ; +0x9c, 0x100266124\nMOV             X1, #0                                                 ; +0xa0, 0x100266128\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xa4, 0x10026612c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xa8, 0x100266130\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xac, 0x100266134\nBR              X2                                                     ; +0xb0, 0x100266138", "xrefs": ["sub_10026613C @ 0x100266140", "<???> @ 0x1007d1690"], "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"}