{"type": "func", "start": 5372864368, "end": 5372864509, "name": "SecretLayer5::playWinSFX", "pseudocode": "// \n// SecretLayer5::playWinSFX from 0x1403f6770 to 0x1403f67fd (141 bytes)\n// \n// 2 xrefs:\n// > SecretLayer5::showSuccessAnimation @ 0x1403f66c3\n// > <???> @ 0x1406d8264\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=2\nvoid SecretLayer5::playWinSFX(SecretLayer5 *a1)\n{\n  MusicDownloadManager *v1; // rax\n  _QWORD *v2; // rbx\n  __int64 v3; // r8\n  __int64 v4; // r9\n  int v5; // ecx\n  _QWORD v6[5]; // [rsp+30h] [rbp-28h] BYREF\n  FMODAudioEngine *v7; // [rsp+70h] [rbp+18h]\n\n  v1 = MusicDownloadManager::sharedState();\n  v2 = MusicDownloadManager::pathForSFX((__int64)v1, v6, 0x51F6u);\n  v5 = qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v7 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v5 = qword_1406C2E88;\n  }\n  FMODAudioEngine::playEffect(v5, (__int64)v2, v3, v4, 1060320051);\n}", "assembly": "; \n; SecretLayer5::playWinSFX from 0x1403f6770 to 0x1403f67fd (141 bytes)\n; \n; 2 xrefs:\n; > SecretLayer5::showSuccessAnimation @ 0x1403f66c3\n; > <???> @ 0x1406d8264\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    rbx                                                            ; +0x0, 0x1403f6770\nsub     rsp, 50h                                                       ; +0x2, 0x1403f6772\nlea     rax, [rsp+58h+var_28]                                          ; +0x6, 0x1403f6776\nmov     [rsp+58h+arg_8], rax                                           ; +0xb, 0x1403f677b\ncall    MusicDownloadManager__sharedState                              ; +0x10, 0x1403f6780\nmov     rcx, rax                                                       ; +0x15, 0x1403f6785\nmov     r8d, 51F6h                                                     ; +0x18, 0x1403f6788\nlea     rdx, [rsp+58h+var_28]                                          ; +0x1e, 0x1403f678e\ncall    MusicDownloadManager__pathForSFX                               ; +0x23, 0x1403f6793\nmov     rbx, rax                                                       ; +0x28, 0x1403f6798\nmov     rcx, cs:qword_1406C2E88                                        ; +0x2b, 0x1403f679b\ntest    rcx, rcx                                                       ; +0x32, 0x1403f67a2\njnz     short loc_1403F67D6                                            ; +0x35, 0x1403f67a5\nmov     ecx, 888h; Size                                                ; +0x37, 0x1403f67a7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3c, 0x1403f67ac\nmov     [rsp+58h+arg_10], rax                                          ; +0x41, 0x1403f67b1\nmov     rcx, rax                                                       ; +0x46, 0x1403f67b6\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x49, 0x1403f67b9\nnop                                                                    ; +0x4e, 0x1403f67be\nmov     cs:qword_1406C2E88, rax                                        ; +0x4f, 0x1403f67bf\nmov     rdx, [rax]                                                     ; +0x56, 0x1403f67c6\nmov     rcx, rax                                                       ; +0x59, 0x1403f67c9\ncall    qword ptr [rdx+48h]                                            ; +0x5c, 0x1403f67cc\nmov     rcx, cs:qword_1406C2E88                                        ; +0x5f, 0x1403f67cf\nmovss   xmm0, cs:dword_140622B74                                       ; +0x66, 0x1403f67d6\nmovss   [rsp+58h+var_38], xmm0                                         ; +0x6e, 0x1403f67de\nxorps   xmm3, xmm3                                                     ; +0x74, 0x1403f67e4\nmovss   xmm2, cs:flt_140622C24                                         ; +0x77, 0x1403f67e7\nmov     rdx, rbx                                                       ; +0x7f, 0x1403f67ef\ncall    FMODAudioEngine__playEffect                                    ; +0x82, 0x1403f67f2\nadd     rsp, 50h                                                       ; +0x87, 0x1403f67f7\npop     rbx                                                            ; +0x8b, 0x1403f67fb\nretn                                                                   ; +0x8c, 0x1403f67fc", "xrefs": ["SecretLayer5::showSuccessAnimation @ 0x1403f66c3", "<???> @ 0x1406d8264"], "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"}