{"type": "func", "start": 4302136096, "end": 4302136274, "name": "GJSongBrowser::FLAlert_Clicked", "pseudocode": "// \n// GJSongBrowser::FLAlert_Clicked from 0x1006d6320 to 0x1006d63d2 (178 bytes)\n// \n// 2 xrefs:\n// > sub_1006D63E0 @ 0x1006d63ec\n// > <???> @ 0x100b90f58\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 12:35:40 +0000\n// \n\nchar __fastcall GJSongBrowser::FLAlert_Clicked(__int64 a1, __int64 a2, char a3, double a4)\n{\n  char result; // al\n  __int64 v5; // rax\n  __int64 DownloadedSongs; // r14\n  unsigned int v7; // r15d\n  std::error_code *v8; // rax\n  __int64 v9; // rax\n\n  result = a3 ^ 1 | ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 1);\n  if ( !result )\n  {\n    v5 = MusicDownloadManager::sharedState();\n    DownloadedSongs = MusicDownloadManager::getDownloadedSongs(v5, a4);\n    if ( (unsigned int)sub_1007FEF90(DownloadedSongs) )\n    {\n      v7 = 0;\n      do\n      {\n        sub_1007FEFE0(DownloadedSongs, v7);\n        v8 = (std::error_code *)MusicDownloadManager::sharedState();\n        MusicDownloadManager::deleteSong(v8);\n        ++v7;\n      }\n      while ( v7 < (unsigned int)sub_1007FEF90(DownloadedSongs) );\n    }\n    v9 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::clearUnusedSongs(v9, a4);\n    return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1320LL))(a1, 0);\n  }\n  return result;\n}", "assembly": "; \n; GJSongBrowser::FLAlert_Clicked from 0x1006d6320 to 0x1006d63d2 (178 bytes)\n; \n; 2 xrefs:\n; > sub_1006D63E0 @ 0x1006d63ec\n; > <???> @ 0x100b90f58\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 12:35:40 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006d6320\nmov     rbp, rsp                                                       ; +0x1, 0x1006d6321\npush    r15                                                            ; +0x4, 0x1006d6324\npush    r14                                                            ; +0x6, 0x1006d6326\npush    r12                                                            ; +0x8, 0x1006d6328\npush    rbx                                                            ; +0xa, 0x1006d632a\nmov     r14d, edx                                                      ; +0xb, 0x1006d632b\nmov     rbx, rdi                                                       ; +0xe, 0x1006d632e\nxor     r14b, 1                                                        ; +0x11, 0x1006d6331\nmov     rax, [rsi]                                                     ; +0x15, 0x1006d6335\nmov     rdi, rsi                                                       ; +0x18, 0x1006d6338\ncall    qword ptr [rax+40h]                                            ; +0x1b, 0x1006d633b\ncmp     eax, 1                                                         ; +0x1e, 0x1006d633e\nsetnz   al                                                             ; +0x21, 0x1006d6341\nor      al, r14b                                                       ; +0x24, 0x1006d6344\njnz     loc_1006D63C9                                                  ; +0x27, 0x1006d6347\ncall    MusicDownloadManager__sharedState                              ; +0x2d, 0x1006d634d\nmov     rdi, rax                                                       ; +0x32, 0x1006d6352\ncall    MusicDownloadManager__getDownloadedSongs                       ; +0x35, 0x1006d6355\nmov     r14, rax                                                       ; +0x3a, 0x1006d635a\nmov     rdi, rax                                                       ; +0x3d, 0x1006d635d\ncall    sub_1007FEF90                                                  ; +0x40, 0x1006d6360\ntest    eax, eax                                                       ; +0x45, 0x1006d6365\njz      short loc_1006D63A3                                            ; +0x47, 0x1006d6367\nxor     r15d, r15d                                                     ; +0x49, 0x1006d6369\nnop     dword ptr [rax+00h]                                            ; +0x4c, 0x1006d636c\nmov     rdi, r14                                                       ; +0x50, 0x1006d6370\nmov     esi, r15d                                                      ; +0x53, 0x1006d6373\ncall    sub_1007FEFE0                                                  ; +0x56, 0x1006d6376\nmov     r12, rax                                                       ; +0x5b, 0x1006d637b\ncall    MusicDownloadManager__sharedState                              ; +0x5e, 0x1006d637e\nmov     esi, [r12+13Ch]                                                ; +0x63, 0x1006d6383\nmov     rdi, rax; __ec                                                 ; +0x6b, 0x1006d638b\ncall    MusicDownloadManager__deleteSong                               ; +0x6e, 0x1006d638e\ninc     r15d                                                           ; +0x73, 0x1006d6393\nmov     rdi, r14                                                       ; +0x76, 0x1006d6396\ncall    sub_1007FEF90                                                  ; +0x79, 0x1006d6399\ncmp     r15d, eax                                                      ; +0x7e, 0x1006d639e\njb      short loc_1006D6370                                            ; +0x81, 0x1006d63a1\ncall    MusicDownloadManager__sharedState                              ; +0x83, 0x1006d63a3\nmov     rdi, rax                                                       ; +0x88, 0x1006d63a8\ncall    MusicDownloadManager__clearUnusedSongs                         ; +0x8b, 0x1006d63ab\nmov     rax, [rbx]                                                     ; +0x90, 0x1006d63b0\nmov     rax, [rax+528h]                                                ; +0x93, 0x1006d63b3\nmov     rdi, rbx                                                       ; +0x9a, 0x1006d63ba\nxor     esi, esi                                                       ; +0x9d, 0x1006d63bd\npop     rbx                                                            ; +0x9f, 0x1006d63bf\npop     r12                                                            ; +0xa0, 0x1006d63c0\npop     r14                                                            ; +0xa2, 0x1006d63c2\npop     r15                                                            ; +0xa4, 0x1006d63c4\npop     rbp                                                            ; +0xa6, 0x1006d63c6\njmp     rax                                                            ; +0xa7, 0x1006d63c7\npop     rbx                                                            ; +0xa9, 0x1006d63c9\npop     r12                                                            ; +0xaa, 0x1006d63ca\npop     r14                                                            ; +0xac, 0x1006d63cc\npop     r15                                                            ; +0xae, 0x1006d63ce\npop     rbp                                                            ; +0xb0, 0x1006d63d0\nretn                                                                   ; +0xb1, 0x1006d63d1", "xrefs": ["sub_1006D63E0 @ 0x1006d63ec", "<???> @ 0x100b90f58"], "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"}