{"type": "func", "start": 4298970656, "end": 4298970865, "name": "FMODAudioEngine::playEffect", "pseudocode": "// \n// FMODAudioEngine::playEffect from 0x1003d1620 to 0x1003d16f1 (209 bytes)\n// \n// 30 xrefs:\n// > PlayLayer::destroyPlayer @ 0x100087f52\n// > EditLevelLayer::onPlay @ 0x1001de82a\n// > MapSelectLayer::checkTouchMonster @ 0x10025344d\n// > CCMenuItemSpriteExtra::activate @ 0x10026347c\n// > CCMenuItemSpriteExtra::selected @ 0x1002635d4\n// > LevelAreaInnerLayer::onDoor @ 0x1002671c3\n// > LevelInfoLayer::onPlay @ 0x1002ac6b4\n// > GJPathPage::playUnlockAnimation @ 0x1002ebbf9\n// > GJShopLayer::dialogClosed @ 0x100312825\n// > AnimatedShopKeeper::playReactAnimation @ 0x100312c37\n// > GJWorldNode::playStep1 @ 0x1003ae17b\n// > PauseLayer::onQuit @ 0x1003c31bc\n// > FMODAudioEngine::playEffect_1 @ 0x1003d15db\n// > LevelPage::onPlay @ 0x1004224ca\n// > SecretLayer5::onSubmit @ 0x10046ff28\n// > SecretLayer5::animateHead @ 0x100470cd8\n// > SecretLayer5::showSuccessAnimation @ 0x10047162b\n// > SecretLayer5::showSuccessAnimation @ 0x1004716a6\n// > SecretLayer5::showSuccessAnimation @ 0x10047171e\n// > SecretLayer5::showSuccessAnimation @ 0x10047178d\n// > SecretLayer5::showFailAnimation @ 0x100471c8f\n// > SecretLayer5::showFailAnimation @ 0x100471d1b\n// > SecretLayer5::playWinSFX @ 0x100472005\n// > EndLevelLayer::onReplay @ 0x1004baebc\n// > EndLevelLayer::onMenu @ 0x1004bafef\n// > EndLevelLayer::onRestartCheckpoint @ 0x1004bb15c\n// > RetryLevelLayer::onMenu @ 0x1004f7f9d\n// > MenuGameLayer::destroyPlayer @ 0x1004f9e3c\n// > GauntletSelectLayer::playUnlockAnimation @ 0x1005a06f4\n// > AchievementNotifier::showNextAchievement @ 0x1008aa56b\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:29:39 +0000\n// \n\n__int64 __fastcall FMODAudioEngine::playEffect(__int64 a1, __int64 a2, __m128 a3, float a4, float a5)\n{\n  unsigned __int64 v5; // rdx\n  const void *v6; // rsi\n  __int64 result; // rax\n  unsigned int v8; // ebx\n  __int128 v9; // [rsp+50h] [rbp-30h] BYREF\n  void *__p; // [rsp+60h] [rbp-20h]\n  float v11; // [rsp+6Ch] [rbp-14h]\n  float v12; // [rsp+70h] [rbp-10h]\n  unsigned __int32 v13; // [rsp+74h] [rbp-Ch]\n\n  if ( (*(_BYTE *)a2 & 1) != 0 )\n  {\n    v5 = *(_QWORD *)(a2 + 8);\n    v6 = *(const void **)(a2 + 16);\n    v11 = a5;\n    v12 = a4;\n    v13 = a3.i32[0];\n    sub_10001AD30(&v9, v6, v5);\n    a3 = (__m128)v13;\n    a4 = v12;\n    a5 = v11;\n  }\n  else\n  {\n    __p = *(void **)(a2 + 16);\n    v9 = *(_OWORD *)a2;\n  }\n  result = FMODAudioEngine::playEffectAdvanced(a1, &v9, 0, 0, 0, 0, a3, a4, a5, 0.0, 0.0, 0, 0, 0, 0, 0, 0, 0, 0, 0);\n  if ( (v9 & 1) != 0 )\n  {\n    v8 = result;\n    operator delete(__p);\n    return v8;\n  }\n  return result;\n}", "assembly": "; \n; FMODAudioEngine::playEffect from 0x1003d1620 to 0x1003d16f1 (209 bytes)\n; \n; 30 xrefs:\n; > PlayLayer::destroyPlayer @ 0x100087f52\n; > EditLevelLayer::onPlay @ 0x1001de82a\n; > MapSelectLayer::checkTouchMonster @ 0x10025344d\n; > CCMenuItemSpriteExtra::activate @ 0x10026347c\n; > CCMenuItemSpriteExtra::selected @ 0x1002635d4\n; > LevelAreaInnerLayer::onDoor @ 0x1002671c3\n; > LevelInfoLayer::onPlay @ 0x1002ac6b4\n; > GJPathPage::playUnlockAnimation @ 0x1002ebbf9\n; > GJShopLayer::dialogClosed @ 0x100312825\n; > AnimatedShopKeeper::playReactAnimation @ 0x100312c37\n; > GJWorldNode::playStep1 @ 0x1003ae17b\n; > PauseLayer::onQuit @ 0x1003c31bc\n; > FMODAudioEngine::playEffect_1 @ 0x1003d15db\n; > LevelPage::onPlay @ 0x1004224ca\n; > SecretLayer5::onSubmit @ 0x10046ff28\n; > SecretLayer5::animateHead @ 0x100470cd8\n; > SecretLayer5::showSuccessAnimation @ 0x10047162b\n; > SecretLayer5::showSuccessAnimation @ 0x1004716a6\n; > SecretLayer5::showSuccessAnimation @ 0x10047171e\n; > SecretLayer5::showSuccessAnimation @ 0x10047178d\n; > SecretLayer5::showFailAnimation @ 0x100471c8f\n; > SecretLayer5::showFailAnimation @ 0x100471d1b\n; > SecretLayer5::playWinSFX @ 0x100472005\n; > EndLevelLayer::onReplay @ 0x1004baebc\n; > EndLevelLayer::onMenu @ 0x1004bafef\n; > EndLevelLayer::onRestartCheckpoint @ 0x1004bb15c\n; > RetryLevelLayer::onMenu @ 0x1004f7f9d\n; > MenuGameLayer::destroyPlayer @ 0x1004f9e3c\n; > GauntletSelectLayer::playUnlockAnimation @ 0x1005a06f4\n; > AchievementNotifier::showNextAchievement @ 0x1008aa56b\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:29:39 +0000\n; \npush    rbp                                                            ; +0x0, 0x1003d1620\nmov     rbp, rsp                                                       ; +0x1, 0x1003d1621\npush    rbx                                                            ; +0x4, 0x1003d1624\nsub     rsp, 78h                                                       ; +0x5, 0x1003d1625\ntest    byte ptr [rsi], 1                                              ; +0x9, 0x1003d1629\njnz     short loc_1003D163F                                            ; +0xc, 0x1003d162c\nmov     rax, [rsi+10h]                                                 ; +0xe, 0x1003d162e\nmov     [rbp+__p], rax                                                 ; +0x12, 0x1003d1632\nmovups  xmm3, xmmword ptr [rsi]                                        ; +0x16, 0x1003d1636\nmovaps  [rbp+var_30], xmm3                                             ; +0x19, 0x1003d1639\njmp     short loc_1003D1677                                            ; +0x1d, 0x1003d163d\nmov     rdx, [rsi+8]                                                   ; +0x1f, 0x1003d163f\nmov     rsi, [rsi+10h]                                                 ; +0x23, 0x1003d1643\nlea     rax, [rbp+var_30]                                              ; +0x27, 0x1003d1647\nmov     rbx, rdi                                                       ; +0x2b, 0x1003d164b\nmov     rdi, rax                                                       ; +0x2e, 0x1003d164e\nmovss   [rbp+var_14], xmm2                                             ; +0x31, 0x1003d1651\nmovss   [rbp+var_10], xmm1                                             ; +0x36, 0x1003d1656\nmovss   [rbp+var_C], xmm0                                              ; +0x3b, 0x1003d165b\ncall    sub_10001AD30                                                  ; +0x40, 0x1003d1660\nmovss   xmm0, [rbp+var_C]                                              ; +0x45, 0x1003d1665\nmovss   xmm1, [rbp+var_10]                                             ; +0x4a, 0x1003d166a\nmovss   xmm2, [rbp+var_14]                                             ; +0x4f, 0x1003d166f\nmov     rdi, rbx                                                       ; +0x54, 0x1003d1674\nmov     [rsp+80h+var_40], 0                                            ; +0x57, 0x1003d1677\nmov     [rsp+80h+var_48], 0                                            ; +0x5f, 0x1003d167f\nmov     [rsp+80h+var_50], 0                                            ; +0x67, 0x1003d1687\nmov     [rsp+80h+var_58], 0                                            ; +0x6f, 0x1003d168f\nmov     [rsp+80h+var_60], 0                                            ; +0x77, 0x1003d1697\nmov     [rsp+80h+var_68], 0                                            ; +0x7f, 0x1003d169f\nmov     [rsp+80h+var_70], 0                                            ; +0x87, 0x1003d16a7\nmov     [rsp+80h+var_78], 0                                            ; +0x8f, 0x1003d16af\nmov     [rsp+80h+var_80], 0                                            ; +0x97, 0x1003d16b7\nlea     rsi, [rbp+var_30]                                              ; +0x9e, 0x1003d16be\nxorps   xmm3, xmm3                                                     ; +0xa2, 0x1003d16c2\nxorps   xmm4, xmm4                                                     ; +0xa5, 0x1003d16c5\nxor     edx, edx                                                       ; +0xa8, 0x1003d16c8\nxor     ecx, ecx                                                       ; +0xaa, 0x1003d16ca\nxor     r8d, r8d                                                       ; +0xac, 0x1003d16cc\nxor     r9d, r9d                                                       ; +0xaf, 0x1003d16cf\ncall    FMODAudioEngine__playEffectAdvanced                            ; +0xb2, 0x1003d16d2\ntest    byte ptr [rbp+var_30], 1                                       ; +0xb7, 0x1003d16d7\njz      short loc_1003D16EA                                            ; +0xbb, 0x1003d16db\nmov     rdi, [rbp+__p]; __p                                            ; +0xbd, 0x1003d16dd\nmov     ebx, eax                                                       ; +0xc1, 0x1003d16e1\ncall    __ZdlPv; operator delete(void *)                               ; +0xc3, 0x1003d16e3\nmov     eax, ebx                                                       ; +0xc8, 0x1003d16e8\nadd     rsp, 78h                                                       ; +0xca, 0x1003d16ea\npop     rbx                                                            ; +0xce, 0x1003d16ee\npop     rbp                                                            ; +0xcf, 0x1003d16ef\nretn                                                                   ; +0xd0, 0x1003d16f0", "xrefs": ["PlayLayer::destroyPlayer @ 0x100087f52", "EditLevelLayer::onPlay @ 0x1001de82a", "MapSelectLayer::checkTouchMonster @ 0x10025344d", "CCMenuItemSpriteExtra::activate @ 0x10026347c", "CCMenuItemSpriteExtra::selected @ 0x1002635d4", "LevelAreaInnerLayer::onDoor @ 0x1002671c3", "LevelInfoLayer::onPlay @ 0x1002ac6b4", "GJPathPage::playUnlockAnimation @ 0x1002ebbf9", "GJShopLayer::dialogClosed @ 0x100312825", "AnimatedShopKeeper::playReactAnimation @ 0x100312c37", "GJWorldNode::playStep1 @ 0x1003ae17b", "PauseLayer::onQuit @ 0x1003c31bc", "FMODAudioEngine::playEffect_1 @ 0x1003d15db", "LevelPage::onPlay @ 0x1004224ca", "SecretLayer5::onSubmit @ 0x10046ff28", "SecretLayer5::animateHead @ 0x100470cd8", "SecretLayer5::showSuccessAnimation @ 0x10047162b", "SecretLayer5::showSuccessAnimation @ 0x1004716a6", "SecretLayer5::showSuccessAnimation @ 0x10047171e", "SecretLayer5::showSuccessAnimation @ 0x10047178d", "SecretLayer5::showFailAnimation @ 0x100471c8f", "SecretLayer5::showFailAnimation @ 0x100471d1b", "SecretLayer5::playWinSFX @ 0x100472005", "EndLevelLayer::onReplay @ 0x1004baebc", "EndLevelLayer::onMenu @ 0x1004bafef", "EndLevelLayer::onRestartCheckpoint @ 0x1004bb15c", "RetryLevelLayer::onMenu @ 0x1004f7f9d", "MenuGameLayer::destroyPlayer @ 0x1004f9e3c", "GauntletSelectLayer::playUnlockAnimation @ 0x1005a06f4", "AchievementNotifier::showNextAchievement @ 0x1008aa56b"], "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"}