{"type": "func", "start": 5372738096, "end": 5372738199, "name": "SecretRewardsLayer::fadeInOutMusic", "pseudocode": "// \n// SecretRewardsLayer::fadeInOutMusic from 0x1403d7a30 to 0x1403d7a97 (103 bytes)\n// \n// 2 xrefs:\n// > SecretRewardsLayer::onGoldChest @ 0x1403d774e\n// > <???> @ 0x1406d7dc0\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 SecretRewardsLayer::fadeInOutMusic(SecretRewardsLayer *a1)\n{\n  int v1; // r8d\n  FMODAudioEngine *v2; // rcx\n  FMODAudioEngine *v3; // [rsp+48h] [rbp+10h]\n\n  v2 = (FMODAudioEngine *)qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v3 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v3);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v2 = (FMODAudioEngine *)qword_1406C2E88;\n  }\n  FMODAudioEngine::fadeMusic(v2, 2.0, v1, 0.2, 1.0);\n}", "assembly": "; \n; SecretRewardsLayer::fadeInOutMusic from 0x1403d7a30 to 0x1403d7a97 (103 bytes)\n; \n; 2 xrefs:\n; > SecretRewardsLayer::onGoldChest @ 0x1403d774e\n; > <???> @ 0x1406d7dc0\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\nsub     rsp, 38h                                                       ; +0x0, 0x1403d7a30\nmov     rcx, cs:qword_1406C2E88                                        ; +0x4, 0x1403d7a34\ntest    rcx, rcx                                                       ; +0xb, 0x1403d7a3b\njnz     short loc_1403D7A6F                                            ; +0xe, 0x1403d7a3e\nmov     ecx, 888h; Size                                                ; +0x10, 0x1403d7a40\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x15, 0x1403d7a45\nmov     [rsp+38h+arg_8], rax                                           ; +0x1a, 0x1403d7a4a\nmov     rcx, rax                                                       ; +0x1f, 0x1403d7a4f\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x22, 0x1403d7a52\nnop                                                                    ; +0x27, 0x1403d7a57\nmov     cs:qword_1406C2E88, rax                                        ; +0x28, 0x1403d7a58\nmov     rdx, [rax]                                                     ; +0x2f, 0x1403d7a5f\nmov     rcx, rax                                                       ; +0x32, 0x1403d7a62\ncall    qword ptr [rdx+48h]                                            ; +0x35, 0x1403d7a65\nmov     rcx, cs:qword_1406C2E88                                        ; +0x38, 0x1403d7a68\nmovss   xmm0, cs:flt_140622C24                                         ; +0x3f, 0x1403d7a6f\nmovss   [rsp+38h+var_18], xmm0                                         ; +0x47, 0x1403d7a77\nmovss   xmm3, cs:dword_140622A74                                       ; +0x4d, 0x1403d7a7d\nmovss   xmm1, cs:width                                                 ; +0x55, 0x1403d7a85\ncall    FMODAudioEngine__fadeMusic                                     ; +0x5d, 0x1403d7a8d\nadd     rsp, 38h                                                       ; +0x62, 0x1403d7a92\nretn                                                                   ; +0x66, 0x1403d7a96", "xrefs": ["SecretRewardsLayer::onGoldChest @ 0x1403d774e", "<???> @ 0x1406d7dc0"], "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"}