{"type": "func", "start": 4296259564, "end": 4296259772, "name": "FMODAudioEngine::playEffect", "pseudocode": "// \n// FMODAudioEngine::playEffect from 0x10013b7ec to 0x10013b8bc (208 bytes)\n// \n// 28 xrefs:\n// > LevelInfoLayer::onPlay @ 0x1000266c0\n// > SecretLayer5::onSubmit @ 0x100075018\n// > SecretLayer5::animateHead @ 0x100075964\n// > SecretLayer5::showSuccessAnimation @ 0x100076134\n// > SecretLayer5::showSuccessAnimation @ 0x100076184\n// > SecretLayer5::showSuccessAnimation @ 0x1000761cc\n// > SecretLayer5::showSuccessAnimation @ 0x100076214\n// > SecretLayer5::showFailAnimation @ 0x100076688\n// > SecretLayer5::showFailAnimation @ 0x1000766ec\n// > SecretLayer5::playWinSFX @ 0x100076968\n// > EditLevelLayer::onPlay @ 0x1000ea3c8\n// > PlayLayer::destroyPlayer @ 0x10011ed74\n// > FMODAudioEngine::playEffect_1 @ 0x10013b7a4\n// > PauseLayer::onQuit @ 0x100143748\n// > GJShopLayer::dialogClosed @ 0x10014d620\n// > AnimatedShopKeeper::playReactAnimation @ 0x10014d9b0\n// > RetryLevelLayer::onMenu @ 0x1001b3aa0\n// > GauntletSelectLayer::playUnlockAnimation @ 0x1001c00e8\n// > CCMenuItemSpriteExtra::activate @ 0x1002139f0\n// > CCMenuItemSpriteExtra::selected @ 0x100213ab8\n// > AchievementNotifier::showNextAchievement @ 0x100216704\n// > EndLevelLayer::onReplay @ 0x1002f728c\n// > EndLevelLayer::onMenu @ 0x1002f73d0\n// > EndLevelLayer::onRestartCheckpoint @ 0x1002f7514\n// > LevelAreaInnerLayer::onDoor @ 0x1003462f8\n// > MenuGameLayer::destroyPlayer @ 0x10039b698\n// > GJPathPage::playUnlockAnimation @ 0x1003ba3e4\n// > LevelPage::onPlay @ 0x100403a90\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__int64 __fastcall FMODAudioEngine::playEffect(__int64 a1, __int64 a2, float a3, float a4, float a5)\n{\n  __int64 v9; // x19\n  void *__p[2]; // [xsp+20h] [xbp-50h] BYREF\n  __int64 v12; // [xsp+30h] [xbp-40h]\n\n  if ( *(char *)(a2 + 23) < 0 )\n  {\n    sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));\n  }\n  else\n  {\n    *(_OWORD *)__p = *(_OWORD *)a2;\n    v12 = *(_QWORD *)(a2 + 16);\n  }\n  v9 = FMODAudioEngine::playEffectAdvanced(\n         a1,\n         (__int128 *)__p,\n         0,\n         0,\n         0,\n         0,\n         0,\n         0,\n         a3,\n         a4,\n         a5,\n         0.0,\n         0.0,\n         0,\n         0,\n         0,\n         0,\n         0,\n         0,\n         0);\n  if ( SHIBYTE(v12) < 0 )\n    operator delete(__p[0]);\n  return v9;\n}", "assembly": "; \n; FMODAudioEngine::playEffect from 0x10013b7ec to 0x10013b8bc (208 bytes)\n; \n; 28 xrefs:\n; > LevelInfoLayer::onPlay @ 0x1000266c0\n; > SecretLayer5::onSubmit @ 0x100075018\n; > SecretLayer5::animateHead @ 0x100075964\n; > SecretLayer5::showSuccessAnimation @ 0x100076134\n; > SecretLayer5::showSuccessAnimation @ 0x100076184\n; > SecretLayer5::showSuccessAnimation @ 0x1000761cc\n; > SecretLayer5::showSuccessAnimation @ 0x100076214\n; > SecretLayer5::showFailAnimation @ 0x100076688\n; > SecretLayer5::showFailAnimation @ 0x1000766ec\n; > SecretLayer5::playWinSFX @ 0x100076968\n; > EditLevelLayer::onPlay @ 0x1000ea3c8\n; > PlayLayer::destroyPlayer @ 0x10011ed74\n; > FMODAudioEngine::playEffect_1 @ 0x10013b7a4\n; > PauseLayer::onQuit @ 0x100143748\n; > GJShopLayer::dialogClosed @ 0x10014d620\n; > AnimatedShopKeeper::playReactAnimation @ 0x10014d9b0\n; > RetryLevelLayer::onMenu @ 0x1001b3aa0\n; > GauntletSelectLayer::playUnlockAnimation @ 0x1001c00e8\n; > CCMenuItemSpriteExtra::activate @ 0x1002139f0\n; > CCMenuItemSpriteExtra::selected @ 0x100213ab8\n; > AchievementNotifier::showNextAchievement @ 0x100216704\n; > EndLevelLayer::onReplay @ 0x1002f728c\n; > EndLevelLayer::onMenu @ 0x1002f73d0\n; > EndLevelLayer::onRestartCheckpoint @ 0x1002f7514\n; > LevelAreaInnerLayer::onDoor @ 0x1003462f8\n; > MenuGameLayer::destroyPlayer @ 0x10039b698\n; > GJPathPage::playUnlockAnimation @ 0x1003ba3e4\n; > LevelPage::onPlay @ 0x100403a90\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             SP, SP, #0x80                                          ; +0x0, 0x10013b7ec\nSTP             D11, D10, [SP,#0x70+var_30]                            ; +0x4, 0x10013b7f0\nSTP             D9, D8, [SP,#0x70+var_20]                              ; +0x8, 0x10013b7f4\nSTP             X20, X19, [SP,#0x70+var_10]                            ; +0xc, 0x10013b7f8\nSTP             X29, X30, [SP,#0x70+var_s0]                            ; +0x10, 0x10013b7fc\nADD             X29, SP, #0x70                                         ; +0x14, 0x10013b800\nFMOV            S8, S2                                                 ; +0x18, 0x10013b804\nFMOV            S9, S1                                                 ; +0x1c, 0x10013b808\nFMOV            S10, S0                                                ; +0x20, 0x10013b80c\nMOV             X19, X0                                                ; +0x24, 0x10013b810\nLDRSB           W8, [X1,#0x17]                                         ; +0x28, 0x10013b814\nTBNZ            W8, #0x1F, loc_10013B830                               ; +0x2c, 0x10013b818\nLDR             Q0, [X1]                                               ; +0x30, 0x10013b81c\nSTR             Q0, [SP,#0x70+__p]                                     ; +0x34, 0x10013b820\nLDR             X8, [X1,#0x10]                                         ; +0x38, 0x10013b824\nSTR             X8, [SP,#0x70+var_40]                                  ; +0x3c, 0x10013b828\nB               loc_10013B840                                          ; +0x40, 0x10013b82c\nLDP             X8, X2, [X1]                                           ; +0x44, 0x10013b830\nADD             X0, SP, #0x70+__p; __dst                               ; +0x48, 0x10013b834\nMOV             X1, X8; __src                                          ; +0x4c, 0x10013b838\nBL              sub_1000097D0                                          ; +0x50, 0x10013b83c\nSTR             WZR, [SP,#0x70+var_5C]                                 ; +0x54, 0x10013b840\nSTUR            XZR, [SP,#0x70+var_64]                                 ; +0x58, 0x10013b844\nADD             X1, SP, #0x70+__p                                      ; +0x5c, 0x10013b848\nFMOV            S3, WZR                                                ; +0x60, 0x10013b84c\nFMOV            S4, WZR                                                ; +0x64, 0x10013b850\nSTRH            WZR, [SP,#0x70+var_68]                                 ; +0x68, 0x10013b854\nSTR             WZR, [SP,#0x70+var_6C]                                 ; +0x6c, 0x10013b858\nSTRB            WZR, [SP,#0x70+var_70]                                 ; +0x70, 0x10013b85c\nMOV             X0, X19                                                ; +0x74, 0x10013b860\nFMOV            S0, S10                                                ; +0x78, 0x10013b864\nFMOV            S1, S9                                                 ; +0x7c, 0x10013b868\nFMOV            S2, S8                                                 ; +0x80, 0x10013b86c\nMOV             W2, #0                                                 ; +0x84, 0x10013b870\nMOV             W3, #0                                                 ; +0x88, 0x10013b874\nMOV             W4, #0                                                 ; +0x8c, 0x10013b878\nMOV             W5, #0                                                 ; +0x90, 0x10013b87c\nMOV             W6, #0                                                 ; +0x94, 0x10013b880\nMOV             W7, #0                                                 ; +0x98, 0x10013b884\nBL              FMODAudioEngine__playEffectAdvanced                    ; +0x9c, 0x10013b888\nMOV             X19, X0                                                ; +0xa0, 0x10013b88c\nLDRSB           W8, [SP,#0x70+var_40+7]                                ; +0xa4, 0x10013b890\nTBZ             W8, #0x1F, loc_10013B8A0                               ; +0xa8, 0x10013b894\nLDR             X0, [SP,#0x70+__p]; __p                                ; +0xac, 0x10013b898\nBL              __ZdlPv; operator delete(void *)                       ; +0xb0, 0x10013b89c\nMOV             X0, X19                                                ; +0xb4, 0x10013b8a0\nLDP             X29, X30, [SP,#0x70+var_s0]                            ; +0xb8, 0x10013b8a4\nLDP             X20, X19, [SP,#0x70+var_10]                            ; +0xbc, 0x10013b8a8\nLDP             D9, D8, [SP,#0x70+var_20]                              ; +0xc0, 0x10013b8ac\nLDP             D11, D10, [SP,#0x70+var_30]                            ; +0xc4, 0x10013b8b0\nADD             SP, SP, #0x80                                          ; +0xc8, 0x10013b8b4\nRET                                                                    ; +0xcc, 0x10013b8b8", "xrefs": ["LevelInfoLayer::onPlay @ 0x1000266c0", "SecretLayer5::onSubmit @ 0x100075018", "SecretLayer5::animateHead @ 0x100075964", "SecretLayer5::showSuccessAnimation @ 0x100076134", "SecretLayer5::showSuccessAnimation @ 0x100076184", "SecretLayer5::showSuccessAnimation @ 0x1000761cc", "SecretLayer5::showSuccessAnimation @ 0x100076214", "SecretLayer5::showFailAnimation @ 0x100076688", "SecretLayer5::showFailAnimation @ 0x1000766ec", "SecretLayer5::playWinSFX @ 0x100076968", "EditLevelLayer::onPlay @ 0x1000ea3c8", "PlayLayer::destroyPlayer @ 0x10011ed74", "FMODAudioEngine::playEffect_1 @ 0x10013b7a4", "PauseLayer::onQuit @ 0x100143748", "GJShopLayer::dialogClosed @ 0x10014d620", "AnimatedShopKeeper::playReactAnimation @ 0x10014d9b0", "RetryLevelLayer::onMenu @ 0x1001b3aa0", "GauntletSelectLayer::playUnlockAnimation @ 0x1001c00e8", "CCMenuItemSpriteExtra::activate @ 0x1002139f0", "CCMenuItemSpriteExtra::selected @ 0x100213ab8", "AchievementNotifier::showNextAchievement @ 0x100216704", "EndLevelLayer::onReplay @ 0x1002f728c", "EndLevelLayer::onMenu @ 0x1002f73d0", "EndLevelLayer::onRestartCheckpoint @ 0x1002f7514", "LevelAreaInnerLayer::onDoor @ 0x1003462f8", "MenuGameLayer::destroyPlayer @ 0x10039b698", "GJPathPage::playUnlockAnimation @ 0x1003ba3e4", "LevelPage::onPlay @ 0x100403a90"], "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"}