{"type": "func", "start": 4301256096, "end": 4301256274, "name": "GJSongBrowser::FLAlert_Clicked", "pseudocode": "// \n// GJSongBrowser::FLAlert_Clicked from 0x1005ff5a0 to 0x1005ff652 (178 bytes)\n// \n// 2 xrefs:\n// > sub_1005FF660 @ 0x1005ff66c\n// > <???> @ 0x10097d958\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  MusicDownloadManager *v3; // rax\n  cocos2d::CCArray *DownloadedSongs; // r14\n  unsigned int v5; // r15d\n  __int64 v6; // r12\n  MusicDownloadManager *v7; // rax\n  MusicDownloadManager *v8; // rax\n\n  if ( !(!a3 | (((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) != 1)) )\n  {\n    v3 = MusicDownloadManager::sharedState();\n    DownloadedSongs = MusicDownloadManager::getDownloadedSongs(v3);\n    if ( (unsigned int)sub_100720070(DownloadedSongs) )\n    {\n      v5 = 0;\n      do\n      {\n        v6 = sub_1007200C0(DownloadedSongs, v5);\n        v7 = MusicDownloadManager::sharedState();\n        MusicDownloadManager::deleteSong(v7, *(_DWORD *)(v6 + 316));\n        ++v5;\n      }\n      while ( v5 < (unsigned int)sub_100720070(DownloadedSongs) );\n    }\n    v8 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::clearUnusedSongs(v8);\n    ((void (__fastcall *)(GJSongBrowser *, _QWORD))a1->exitLayer)(a1, 0);\n  }\n}", "assembly": "; \n; GJSongBrowser::FLAlert_Clicked from 0x1005ff5a0 to 0x1005ff652 (178 bytes)\n; \n; 2 xrefs:\n; > sub_1005FF660 @ 0x1005ff66c\n; > <???> @ 0x10097d958\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\npush    rbp                                                            ; +0x0, 0x1005ff5a0\nmov     rbp, rsp                                                       ; +0x1, 0x1005ff5a1\npush    r15                                                            ; +0x4, 0x1005ff5a4\npush    r14                                                            ; +0x6, 0x1005ff5a6\npush    r12                                                            ; +0x8, 0x1005ff5a8\npush    rbx                                                            ; +0xa, 0x1005ff5aa\nmov     r14d, edx                                                      ; +0xb, 0x1005ff5ab\nmov     rbx, rdi                                                       ; +0xe, 0x1005ff5ae\nxor     r14b, 1                                                        ; +0x11, 0x1005ff5b1\nmov     rax, [rsi]                                                     ; +0x15, 0x1005ff5b5\nmov     rdi, rsi                                                       ; +0x18, 0x1005ff5b8\ncall    qword ptr [rax+40h]                                            ; +0x1b, 0x1005ff5bb\ncmp     eax, 1                                                         ; +0x1e, 0x1005ff5be\nsetnz   al                                                             ; +0x21, 0x1005ff5c1\nor      al, r14b                                                       ; +0x24, 0x1005ff5c4\njnz     loc_1005FF649                                                  ; +0x27, 0x1005ff5c7\ncall    MusicDownloadManager__sharedState                              ; +0x2d, 0x1005ff5cd\nmov     rdi, rax                                                       ; +0x32, 0x1005ff5d2\ncall    MusicDownloadManager__getDownloadedSongs                       ; +0x35, 0x1005ff5d5\nmov     r14, rax                                                       ; +0x3a, 0x1005ff5da\nmov     rdi, rax                                                       ; +0x3d, 0x1005ff5dd\ncall    sub_100720070                                                  ; +0x40, 0x1005ff5e0\ntest    eax, eax                                                       ; +0x45, 0x1005ff5e5\njz      short loc_1005FF623                                            ; +0x47, 0x1005ff5e7\nxor     r15d, r15d                                                     ; +0x49, 0x1005ff5e9\nnop     dword ptr [rax+00h]                                            ; +0x4c, 0x1005ff5ec\nmov     rdi, r14                                                       ; +0x50, 0x1005ff5f0\nmov     esi, r15d                                                      ; +0x53, 0x1005ff5f3\ncall    sub_1007200C0                                                  ; +0x56, 0x1005ff5f6\nmov     r12, rax                                                       ; +0x5b, 0x1005ff5fb\ncall    MusicDownloadManager__sharedState                              ; +0x5e, 0x1005ff5fe\nmov     esi, [r12+13Ch]                                                ; +0x63, 0x1005ff603\nmov     rdi, rax; __ec                                                 ; +0x6b, 0x1005ff60b\ncall    MusicDownloadManager__deleteSong                               ; +0x6e, 0x1005ff60e\ninc     r15d                                                           ; +0x73, 0x1005ff613\nmov     rdi, r14                                                       ; +0x76, 0x1005ff616\ncall    sub_100720070                                                  ; +0x79, 0x1005ff619\ncmp     r15d, eax                                                      ; +0x7e, 0x1005ff61e\njb      short loc_1005FF5F0                                            ; +0x81, 0x1005ff621\ncall    MusicDownloadManager__sharedState                              ; +0x83, 0x1005ff623\nmov     rdi, rax                                                       ; +0x88, 0x1005ff628\ncall    MusicDownloadManager__clearUnusedSongs                         ; +0x8b, 0x1005ff62b\nmov     rax, [rbx]                                                     ; +0x90, 0x1005ff630\nmov     rax, [rax+518h]                                                ; +0x93, 0x1005ff633\nmov     rdi, rbx                                                       ; +0x9a, 0x1005ff63a\nxor     esi, esi                                                       ; +0x9d, 0x1005ff63d\npop     rbx                                                            ; +0x9f, 0x1005ff63f\npop     r12                                                            ; +0xa0, 0x1005ff640\npop     r14                                                            ; +0xa2, 0x1005ff642\npop     r15                                                            ; +0xa4, 0x1005ff644\npop     rbp                                                            ; +0xa6, 0x1005ff646\njmp     rax                                                            ; +0xa7, 0x1005ff647\npop     rbx                                                            ; +0xa9, 0x1005ff649\npop     r12                                                            ; +0xaa, 0x1005ff64a\npop     r14                                                            ; +0xac, 0x1005ff64c\npop     r15                                                            ; +0xae, 0x1005ff64e\npop     rbp                                                            ; +0xb0, 0x1005ff650\nretn                                                                   ; +0xb1, 0x1005ff651", "xrefs": ["sub_1005FF660 @ 0x1005ff66c", "<???> @ 0x10097d958"], "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"}