{"type": "func", "start": 5369551312, "end": 5369551477, "name": "CustomSongWidget::FLAlert_Clicked", "pseudocode": "// \n// CustomSongWidget::FLAlert_Clicked from 0x1400cd9d0 to 0x1400cda75 (165 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14054ec50\n// > <???> @ 0x1406c8430\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\n// Hidden C++ exception states: #wind=1\nvoid CustomSongWidget::FLAlert_Clicked(CustomSongWidget *a1, FLAlertLayer *a2, bool a3)\n{\n  int v5; // eax\n  GameManager *v6; // rcx\n  void *v7; // [rsp+38h] [rbp+10h]\n\n  v5 = ((__int64 (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) - 1;\n  if ( v5 )\n  {\n    if ( v5 == 1 && a3 )\n      CustomSongWidget::deleteSong((CustomSongWidget *)((char *)a1 - 328));\n  }\n  else if ( a3 )\n  {\n    v6 = (GameManager *)qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v7 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00(v7);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v6 = (GameManager *)qword_1406C2ED8;\n    }\n    GameManager::setGameVariable(v6, \"0016\", 1);\n    CustomSongWidget::onDownload((CustomSongWidget *)((char *)a1 - 328), nullptr);\n  }\n}", "assembly": "; \n; CustomSongWidget::FLAlert_Clicked from 0x1400cd9d0 to 0x1400cda75 (165 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14054ec50\n; > <???> @ 0x1406c8430\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400cd9d0\npush    rdi                                                            ; +0x5, 0x1400cd9d5\nsub     rsp, 20h                                                       ; +0x6, 0x1400cd9d6\nmovzx   ebx, r8b                                                       ; +0xa, 0x1400cd9da\nmov     rdi, rcx                                                       ; +0xe, 0x1400cd9de\nmov     rax, [rdx]                                                     ; +0x11, 0x1400cd9e1\nmov     rcx, rdx                                                       ; +0x14, 0x1400cd9e4\ncall    qword ptr [rax+38h]                                            ; +0x17, 0x1400cd9e7\nsub     eax, 1                                                         ; +0x1a, 0x1400cd9ea\njz      short loc_1400CDA0E                                            ; +0x1d, 0x1400cd9ed\ncmp     eax, 1                                                         ; +0x1f, 0x1400cd9ef\njnz     short loc_1400CDA6A                                            ; +0x22, 0x1400cd9f2\ntest    bl, bl                                                         ; +0x24, 0x1400cd9f4\njz      short loc_1400CDA6A                                            ; +0x26, 0x1400cd9f6\nlea     rcx, [rdi-148h]                                                ; +0x28, 0x1400cd9f8\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x2f, 0x1400cd9ff\nadd     rsp, 20h                                                       ; +0x34, 0x1400cda04\npop     rdi                                                            ; +0x38, 0x1400cda08\njmp     CustomSongWidget__deleteSong                                   ; +0x39, 0x1400cda09\ntest    bl, bl                                                         ; +0x3e, 0x1400cda0e\njz      short loc_1400CDA6A                                            ; +0x40, 0x1400cda10\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x42, 0x1400cda12\ntest    rcx, rcx                                                       ; +0x49, 0x1400cda19\njnz     short loc_1400CDA4D                                            ; +0x4c, 0x1400cda1c\nmov     ecx, 668h; Size                                                ; +0x4e, 0x1400cda1e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x53, 0x1400cda23\nmov     [rsp+28h+arg_8], rax                                           ; +0x58, 0x1400cda28\nmov     rcx, rax                                                       ; +0x5d, 0x1400cda2d\ncall    sub_14017AB00                                                  ; +0x60, 0x1400cda30\nnop                                                                    ; +0x65, 0x1400cda35\nmov     cs:qword_1406C2ED8, rax                                        ; +0x66, 0x1400cda36\nmov     rdx, [rax]                                                     ; +0x6d, 0x1400cda3d\nmov     rcx, rax                                                       ; +0x70, 0x1400cda40\ncall    qword ptr [rdx+48h]                                            ; +0x73, 0x1400cda43\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x76, 0x1400cda46\nmov     r8b, 1                                                         ; +0x7d, 0x1400cda4d\nlea     rdx, a0016; \"0016\"                                             ; +0x80, 0x1400cda50\ncall    GameManager__setGameVariable                                   ; +0x87, 0x1400cda57\nlea     rcx, [rdi-148h]                                                ; +0x8c, 0x1400cda5c\nxor     edx, edx                                                       ; +0x93, 0x1400cda63\ncall    CustomSongWidget__onDownload                                   ; +0x95, 0x1400cda65\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9a, 0x1400cda6a\nadd     rsp, 20h                                                       ; +0x9f, 0x1400cda6f\npop     rdi                                                            ; +0xa3, 0x1400cda73\nretn                                                                   ; +0xa4, 0x1400cda74", "xrefs": ["<???> @ 0x14054ec50", "<???> @ 0x1406c8430"], "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"}