{"type": "func", "start": 4298126356, "end": 4298126536, "name": "GJSongBrowser::FLAlert_Clicked", "pseudocode": "// \n// GJSongBrowser::FLAlert_Clicked from 0x100303414 to 0x1003034c8 (180 bytes)\n// \n// 2 xrefs:\n// > sub_1003034C8 @ 0x1003034cc\n// > <???> @ 0x10092a190\n// \n// This function is hookable on this platform (idp: arm, 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:03:06 +0000\n// \n\n__int64 __fastcall GJSongBrowser::FLAlert_Clicked(__int64 a1, __int64 a2, int a3)\n{\n  __int64 result; // x0\n  __int64 v7; // x0\n  __int64 DownloadedSongs; // x20\n  unsigned int v10; // w21\n  __int64 v11; // x22\n  __int64 v12; // x0\n  __int64 v13; // x0\n\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n  if ( (_DWORD)result == 1 && a3 != 0 )\n  {\n    v7 = MusicDownloadManager::sharedState();\n    DownloadedSongs = MusicDownloadManager::getDownloadedSongs(v7);\n    if ( (unsigned int)sub_1002E757C(DownloadedSongs) )\n    {\n      v10 = 0;\n      do\n      {\n        v11 = sub_1002E75A0(DownloadedSongs, v10);\n        v12 = MusicDownloadManager::sharedState();\n        MusicDownloadManager::deleteSong(v12, *(unsigned int *)(v11 + 316));\n        ++v10;\n      }\n      while ( v10 < (unsigned int)sub_1002E757C(DownloadedSongs) );\n    }\n    v13 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::clearUnusedSongs(v13);\n    return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1320LL))(a1, 0);\n  }\n  return result;\n}", "assembly": "; \n; GJSongBrowser::FLAlert_Clicked from 0x100303414 to 0x1003034c8 (180 bytes)\n; \n; 2 xrefs:\n; > sub_1003034C8 @ 0x1003034cc\n; > <???> @ 0x10092a190\n; \n; This function is hookable on this platform (idp: arm, 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:03:06 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100303414\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100303418\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10030341c\nADD             X29, SP, #0x20                                         ; +0xc, 0x100303420\nMOV             X20, X2                                                ; +0x10, 0x100303424\nMOV             X19, X0                                                ; +0x14, 0x100303428\nLDR             X8, [X1]                                               ; +0x18, 0x10030342c\nLDR             X8, [X8,#0x40]                                         ; +0x1c, 0x100303430\nMOV             X0, X1                                                 ; +0x20, 0x100303434\nBLR             X8                                                     ; +0x24, 0x100303438\nCMP             W0, #1                                                 ; +0x28, 0x10030343c\nCCMP            W20, #0, #4, EQ                                        ; +0x2c, 0x100303440\nB.NE            loc_100303458                                          ; +0x30, 0x100303444\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x34, 0x100303448\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x38, 0x10030344c\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x3c, 0x100303450\nRET                                                                    ; +0x40, 0x100303454\nBL              MusicDownloadManager__sharedState                      ; +0x44, 0x100303458\nBL              MusicDownloadManager__getDownloadedSongs               ; +0x48, 0x10030345c\nMOV             X20, X0                                                ; +0x4c, 0x100303460\nBL              sub_1002E757C                                          ; +0x50, 0x100303464\nCBZ             W0, loc_1003034A0                                      ; +0x54, 0x100303468\nMOV             W21, #0                                                ; +0x58, 0x10030346c\nMOV             X0, X20                                                ; +0x5c, 0x100303470\nMOV             X1, X21                                                ; +0x60, 0x100303474\nBL              sub_1002E75A0                                          ; +0x64, 0x100303478\nMOV             X22, X0                                                ; +0x68, 0x10030347c\nBL              MusicDownloadManager__sharedState                      ; +0x6c, 0x100303480\nLDR             W1, [X22,#0x13C]                                       ; +0x70, 0x100303484\nBL              MusicDownloadManager__deleteSong                       ; +0x74, 0x100303488\nADD             W21, W21, #1                                           ; +0x78, 0x10030348c\nMOV             X0, X20                                                ; +0x7c, 0x100303490\nBL              sub_1002E757C                                          ; +0x80, 0x100303494\nCMP             W21, W0                                                ; +0x84, 0x100303498\nB.CC            loc_100303470                                          ; +0x88, 0x10030349c\nBL              MusicDownloadManager__sharedState                      ; +0x8c, 0x1003034a0\nBL              MusicDownloadManager__clearUnusedSongs                 ; +0x90, 0x1003034a4\nLDR             X8, [X19]                                              ; +0x94, 0x1003034a8\nLDR             X2, [X8,#0x528]                                        ; +0x98, 0x1003034ac\nMOV             X0, X19                                                ; +0x9c, 0x1003034b0\nMOV             X1, #0                                                 ; +0xa0, 0x1003034b4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xa4, 0x1003034b8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xa8, 0x1003034bc\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xac, 0x1003034c0\nBR              X2                                                     ; +0xb0, 0x1003034c4", "xrefs": ["sub_1003034C8 @ 0x1003034cc", "<???> @ 0x10092a190"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}