{"type": "func", "start": 4299047088, "end": 4299047297, "name": "FMODAudioEngine::playEffect", "pseudocode": "// \n// FMODAudioEngine::playEffect from 0x1003e40b0 to 0x1003e4181 (209 bytes)\n// \n// 31 xrefs:\n// > PlayLayer::destroyPlayer @ 0x1000ba47f\n// > EditLevelLayer::onPlay @ 0x1001fbefa\n// > MapSelectLayer::checkTouchMonster @ 0x10026943d\n// > CCMenuItemSpriteExtra::activate @ 0x100276ecc\n// > CCMenuItemSpriteExtra::selected @ 0x100277024\n// > LevelAreaInnerLayer::onDoor @ 0x10027abc3\n// > LevelInfoLayer::onPlay @ 0x1002bfa3f\n// > LevelInfoLayer::onPlayReplay @ 0x1002c457c\n// > GJPathPage::playUnlockAnimation @ 0x100300f19\n// > GJShopLayer::dialogClosed @ 0x100327115\n// > AnimatedShopKeeper::playReactAnimation @ 0x100327527\n// > GJWorldNode::playStep1 @ 0x1003c4ccb\n// > PauseLayer::onQuit @ 0x1003d79cc\n// > FMODAudioEngine::playEffect_1 @ 0x1003e406b\n// > LevelPage::onPlay @ 0x100434aba\n// > SecretLayer5::onSubmit @ 0x10047b5c8\n// > SecretLayer5::animateHead @ 0x10047c378\n// > SecretLayer5::showSuccessAnimation @ 0x10047cccb\n// > SecretLayer5::showSuccessAnimation @ 0x10047cd46\n// > SecretLayer5::showSuccessAnimation @ 0x10047cdbe\n// > SecretLayer5::showSuccessAnimation @ 0x10047ce2d\n// > SecretLayer5::showFailAnimation @ 0x10047d32f\n// > SecretLayer5::showFailAnimation @ 0x10047d3bb\n// > SecretLayer5::playWinSFX @ 0x10047d6a5\n// > EndLevelLayer::onReplay @ 0x1004c1edc\n// > EndLevelLayer::onMenu @ 0x1004c200f\n// > EndLevelLayer::onRestartCheckpoint @ 0x1004c215e\n// > RetryLevelLayer::onMenu @ 0x1004f910d\n// > MenuGameLayer::destroyPlayer @ 0x1004fafac\n// > GauntletSelectLayer::playUnlockAnimation @ 0x100573369\n// > AchievementNotifier::showNextAchievement @ 0x1007c2cdb\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\nunsigned int __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  unsigned int result; // eax\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_100006B70(&v9, v6, v5, *(double *)a3.i64);\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 0x1003e40b0 to 0x1003e4181 (209 bytes)\n; \n; 31 xrefs:\n; > PlayLayer::destroyPlayer @ 0x1000ba47f\n; > EditLevelLayer::onPlay @ 0x1001fbefa\n; > MapSelectLayer::checkTouchMonster @ 0x10026943d\n; > CCMenuItemSpriteExtra::activate @ 0x100276ecc\n; > CCMenuItemSpriteExtra::selected @ 0x100277024\n; > LevelAreaInnerLayer::onDoor @ 0x10027abc3\n; > LevelInfoLayer::onPlay @ 0x1002bfa3f\n; > LevelInfoLayer::onPlayReplay @ 0x1002c457c\n; > GJPathPage::playUnlockAnimation @ 0x100300f19\n; > GJShopLayer::dialogClosed @ 0x100327115\n; > AnimatedShopKeeper::playReactAnimation @ 0x100327527\n; > GJWorldNode::playStep1 @ 0x1003c4ccb\n; > PauseLayer::onQuit @ 0x1003d79cc\n; > FMODAudioEngine::playEffect_1 @ 0x1003e406b\n; > LevelPage::onPlay @ 0x100434aba\n; > SecretLayer5::onSubmit @ 0x10047b5c8\n; > SecretLayer5::animateHead @ 0x10047c378\n; > SecretLayer5::showSuccessAnimation @ 0x10047cccb\n; > SecretLayer5::showSuccessAnimation @ 0x10047cd46\n; > SecretLayer5::showSuccessAnimation @ 0x10047cdbe\n; > SecretLayer5::showSuccessAnimation @ 0x10047ce2d\n; > SecretLayer5::showFailAnimation @ 0x10047d32f\n; > SecretLayer5::showFailAnimation @ 0x10047d3bb\n; > SecretLayer5::playWinSFX @ 0x10047d6a5\n; > EndLevelLayer::onReplay @ 0x1004c1edc\n; > EndLevelLayer::onMenu @ 0x1004c200f\n; > EndLevelLayer::onRestartCheckpoint @ 0x1004c215e\n; > RetryLevelLayer::onMenu @ 0x1004f910d\n; > MenuGameLayer::destroyPlayer @ 0x1004fafac\n; > GauntletSelectLayer::playUnlockAnimation @ 0x100573369\n; > AchievementNotifier::showNextAchievement @ 0x1007c2cdb\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    rbp                                                            ; +0x0, 0x1003e40b0\nmov     rbp, rsp                                                       ; +0x1, 0x1003e40b1\npush    rbx                                                            ; +0x4, 0x1003e40b4\nsub     rsp, 78h                                                       ; +0x5, 0x1003e40b5\ntest    byte ptr [rsi], 1                                              ; +0x9, 0x1003e40b9\njnz     short loc_1003E40CF                                            ; +0xc, 0x1003e40bc\nmov     rax, [rsi+10h]                                                 ; +0xe, 0x1003e40be\nmov     [rbp+__p], rax                                                 ; +0x12, 0x1003e40c2\nmovups  xmm3, xmmword ptr [rsi]                                        ; +0x16, 0x1003e40c6\nmovaps  [rbp+var_30], xmm3                                             ; +0x19, 0x1003e40c9\njmp     short loc_1003E4107                                            ; +0x1d, 0x1003e40cd\nmov     rdx, [rsi+8]                                                   ; +0x1f, 0x1003e40cf\nmov     rsi, [rsi+10h]                                                 ; +0x23, 0x1003e40d3\nlea     rax, [rbp+var_30]                                              ; +0x27, 0x1003e40d7\nmov     rbx, rdi                                                       ; +0x2b, 0x1003e40db\nmov     rdi, rax                                                       ; +0x2e, 0x1003e40de\nmovss   [rbp+var_14], xmm2                                             ; +0x31, 0x1003e40e1\nmovss   [rbp+var_10], xmm1                                             ; +0x36, 0x1003e40e6\nmovss   [rbp+var_C], xmm0                                              ; +0x3b, 0x1003e40eb\ncall    sub_100006B70                                                  ; +0x40, 0x1003e40f0\nmovss   xmm0, [rbp+var_C]                                              ; +0x45, 0x1003e40f5\nmovss   xmm1, [rbp+var_10]                                             ; +0x4a, 0x1003e40fa\nmovss   xmm2, [rbp+var_14]                                             ; +0x4f, 0x1003e40ff\nmov     rdi, rbx                                                       ; +0x54, 0x1003e4104\nmov     [rsp+80h+var_40], 0                                            ; +0x57, 0x1003e4107\nmov     [rsp+80h+var_48], 0                                            ; +0x5f, 0x1003e410f\nmov     [rsp+80h+var_50], 0                                            ; +0x67, 0x1003e4117\nmov     [rsp+80h+var_58], 0                                            ; +0x6f, 0x1003e411f\nmov     [rsp+80h+var_60], 0                                            ; +0x77, 0x1003e4127\nmov     [rsp+80h+var_68], 0                                            ; +0x7f, 0x1003e412f\nmov     [rsp+80h+var_70], 0                                            ; +0x87, 0x1003e4137\nmov     [rsp+80h+var_78], 0                                            ; +0x8f, 0x1003e413f\nmov     [rsp+80h+var_80], 0                                            ; +0x97, 0x1003e4147\nlea     rsi, [rbp+var_30]                                              ; +0x9e, 0x1003e414e\nxorps   xmm3, xmm3                                                     ; +0xa2, 0x1003e4152\nxorps   xmm4, xmm4                                                     ; +0xa5, 0x1003e4155\nxor     edx, edx                                                       ; +0xa8, 0x1003e4158\nxor     ecx, ecx                                                       ; +0xaa, 0x1003e415a\nxor     r8d, r8d                                                       ; +0xac, 0x1003e415c\nxor     r9d, r9d                                                       ; +0xaf, 0x1003e415f\ncall    FMODAudioEngine__playEffectAdvanced                            ; +0xb2, 0x1003e4162\ntest    byte ptr [rbp+var_30], 1                                       ; +0xb7, 0x1003e4167\njz      short loc_1003E417A                                            ; +0xbb, 0x1003e416b\nmov     rdi, [rbp+__p]; __p                                            ; +0xbd, 0x1003e416d\nmov     ebx, eax                                                       ; +0xc1, 0x1003e4171\ncall    __ZdlPv; operator delete(void *)                               ; +0xc3, 0x1003e4173\nmov     eax, ebx                                                       ; +0xc8, 0x1003e4178\nadd     rsp, 78h                                                       ; +0xca, 0x1003e417a\npop     rbx                                                            ; +0xce, 0x1003e417e\npop     rbp                                                            ; +0xcf, 0x1003e417f\nretn                                                                   ; +0xd0, 0x1003e4180", "xrefs": ["PlayLayer::destroyPlayer @ 0x1000ba47f", "EditLevelLayer::onPlay @ 0x1001fbefa", "MapSelectLayer::checkTouchMonster @ 0x10026943d", "CCMenuItemSpriteExtra::activate @ 0x100276ecc", "CCMenuItemSpriteExtra::selected @ 0x100277024", "LevelAreaInnerLayer::onDoor @ 0x10027abc3", "LevelInfoLayer::onPlay @ 0x1002bfa3f", "LevelInfoLayer::onPlayReplay @ 0x1002c457c", "GJPathPage::playUnlockAnimation @ 0x100300f19", "GJShopLayer::dialogClosed @ 0x100327115", "AnimatedShopKeeper::playReactAnimation @ 0x100327527", "GJWorldNode::playStep1 @ 0x1003c4ccb", "PauseLayer::onQuit @ 0x1003d79cc", "FMODAudioEngine::playEffect_1 @ 0x1003e406b", "LevelPage::onPlay @ 0x100434aba", "SecretLayer5::onSubmit @ 0x10047b5c8", "SecretLayer5::animateHead @ 0x10047c378", "SecretLayer5::showSuccessAnimation @ 0x10047cccb", "SecretLayer5::showSuccessAnimation @ 0x10047cd46", "SecretLayer5::showSuccessAnimation @ 0x10047cdbe", "SecretLayer5::showSuccessAnimation @ 0x10047ce2d", "SecretLayer5::showFailAnimation @ 0x10047d32f", "SecretLayer5::showFailAnimation @ 0x10047d3bb", "SecretLayer5::playWinSFX @ 0x10047d6a5", "EndLevelLayer::onReplay @ 0x1004c1edc", "EndLevelLayer::onMenu @ 0x1004c200f", "EndLevelLayer::onRestartCheckpoint @ 0x1004c215e", "RetryLevelLayer::onMenu @ 0x1004f910d", "MenuGameLayer::destroyPlayer @ 0x1004fafac", "GauntletSelectLayer::playUnlockAnimation @ 0x100573369", "AchievementNotifier::showNextAchievement @ 0x1007c2cdb"], "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"}