{"type": "func", "start": 4296771176, "end": 4296771384, "name": "FMODAudioEngine::playEffect", "pseudocode": "// \n// FMODAudioEngine::playEffect from 0x1001b8668 to 0x1001b8738 (208 bytes)\n// \n// 28 xrefs:\n// > LevelInfoLayer::onPlay @ 0x100029e80\n// > SecretLayer5::onSubmit @ 0x10007d7cc\n// > SecretLayer5::animateHead @ 0x10007e118\n// > SecretLayer5::showSuccessAnimation @ 0x10007e8e8\n// > SecretLayer5::showSuccessAnimation @ 0x10007e938\n// > SecretLayer5::showSuccessAnimation @ 0x10007e980\n// > SecretLayer5::showSuccessAnimation @ 0x10007e9c8\n// > SecretLayer5::showFailAnimation @ 0x10007ee3c\n// > SecretLayer5::showFailAnimation @ 0x10007eea0\n// > sub_10007F0DC @ 0x10007f11c\n// > EditLevelLayer::onPlay @ 0x100110480\n// > PlayLayer::destroyPlayer @ 0x100147fdc\n// > FMODAudioEngine::playEffect_1 @ 0x1001b8620\n// > PauseLayer::onQuit @ 0x1001c1168\n// > GJShopLayer::dialogClosed @ 0x1001cbf20\n// > sub_1001CC218 @ 0x1001cc2b0\n// > sub_1002487E0 @ 0x100248844\n// > GauntletSelectLayer::playUnlockAnimation @ 0x100255c60\n// > CCMenuItemSpriteExtra::activate @ 0x1002b03f0\n// > CCMenuItemSpriteExtra::selected @ 0x1002b04b8\n// > AchievementNotifier::showNextAchievement @ 0x1002b31c4\n// > EndLevelLayer::onReplay @ 0x100393b5c\n// > sub_100393BF4 @ 0x100393ca0\n// > EndLevelLayer::onRestartCheckpoint @ 0x100393e04\n// > LevelAreaInnerLayer::onDoor @ 0x1003e4a74\n// > MenuGameLayer::destroyPlayer @ 0x100442c70\n// > GJPathPage::playUnlockAnimation @ 0x10046109c\n// > LevelPage::onPlay @ 0x100484458\n// \n// This function is hookable on this platform (idp: arm, 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 11:00:11 +0000\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 0x1001b8668 to 0x1001b8738 (208 bytes)\n; \n; 28 xrefs:\n; > LevelInfoLayer::onPlay @ 0x100029e80\n; > SecretLayer5::onSubmit @ 0x10007d7cc\n; > SecretLayer5::animateHead @ 0x10007e118\n; > SecretLayer5::showSuccessAnimation @ 0x10007e8e8\n; > SecretLayer5::showSuccessAnimation @ 0x10007e938\n; > SecretLayer5::showSuccessAnimation @ 0x10007e980\n; > SecretLayer5::showSuccessAnimation @ 0x10007e9c8\n; > SecretLayer5::showFailAnimation @ 0x10007ee3c\n; > SecretLayer5::showFailAnimation @ 0x10007eea0\n; > sub_10007F0DC @ 0x10007f11c\n; > EditLevelLayer::onPlay @ 0x100110480\n; > PlayLayer::destroyPlayer @ 0x100147fdc\n; > FMODAudioEngine::playEffect_1 @ 0x1001b8620\n; > PauseLayer::onQuit @ 0x1001c1168\n; > GJShopLayer::dialogClosed @ 0x1001cbf20\n; > sub_1001CC218 @ 0x1001cc2b0\n; > sub_1002487E0 @ 0x100248844\n; > GauntletSelectLayer::playUnlockAnimation @ 0x100255c60\n; > CCMenuItemSpriteExtra::activate @ 0x1002b03f0\n; > CCMenuItemSpriteExtra::selected @ 0x1002b04b8\n; > AchievementNotifier::showNextAchievement @ 0x1002b31c4\n; > EndLevelLayer::onReplay @ 0x100393b5c\n; > sub_100393BF4 @ 0x100393ca0\n; > EndLevelLayer::onRestartCheckpoint @ 0x100393e04\n; > LevelAreaInnerLayer::onDoor @ 0x1003e4a74\n; > MenuGameLayer::destroyPlayer @ 0x100442c70\n; > GJPathPage::playUnlockAnimation @ 0x10046109c\n; > LevelPage::onPlay @ 0x100484458\n; \n; This function is hookable on this platform (idp: arm, 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 11:00:11 +0000\n; \nSUB             SP, SP, #0x80                                          ; +0x0, 0x1001b8668\nSTP             D11, D10, [SP,#0x70+var_30]                            ; +0x4, 0x1001b866c\nSTP             D9, D8, [SP,#0x70+var_20]                              ; +0x8, 0x1001b8670\nSTP             X20, X19, [SP,#0x70+var_10]                            ; +0xc, 0x1001b8674\nSTP             X29, X30, [SP,#0x70+var_s0]                            ; +0x10, 0x1001b8678\nADD             X29, SP, #0x70                                         ; +0x14, 0x1001b867c\nFMOV            S8, S2                                                 ; +0x18, 0x1001b8680\nFMOV            S9, S1                                                 ; +0x1c, 0x1001b8684\nFMOV            S10, S0                                                ; +0x20, 0x1001b8688\nMOV             X19, X0                                                ; +0x24, 0x1001b868c\nLDRSB           W8, [X1,#0x17]                                         ; +0x28, 0x1001b8690\nTBNZ            W8, #0x1F, loc_1001B86AC                               ; +0x2c, 0x1001b8694\nLDR             Q0, [X1]                                               ; +0x30, 0x1001b8698\nSTR             Q0, [SP,#0x70+__p]                                     ; +0x34, 0x1001b869c\nLDR             X8, [X1,#0x10]                                         ; +0x38, 0x1001b86a0\nSTR             X8, [SP,#0x70+var_40]                                  ; +0x3c, 0x1001b86a4\nB               loc_1001B86BC                                          ; +0x40, 0x1001b86a8\nLDP             X8, X2, [X1]                                           ; +0x44, 0x1001b86ac\nADD             X0, SP, #0x70+__p; __dst                               ; +0x48, 0x1001b86b0\nMOV             X1, X8; __src                                          ; +0x4c, 0x1001b86b4\nBL              sub_1000097D0                                          ; +0x50, 0x1001b86b8\nSTR             WZR, [SP,#0x70+var_5C]                                 ; +0x54, 0x1001b86bc\nSTUR            XZR, [SP,#0x70+var_64]                                 ; +0x58, 0x1001b86c0\nADD             X1, SP, #0x70+__p                                      ; +0x5c, 0x1001b86c4\nFMOV            S3, WZR                                                ; +0x60, 0x1001b86c8\nFMOV            S4, WZR                                                ; +0x64, 0x1001b86cc\nSTRH            WZR, [SP,#0x70+var_68]                                 ; +0x68, 0x1001b86d0\nSTR             WZR, [SP,#0x70+var_6C]                                 ; +0x6c, 0x1001b86d4\nSTRB            WZR, [SP,#0x70+var_70]                                 ; +0x70, 0x1001b86d8\nMOV             X0, X19                                                ; +0x74, 0x1001b86dc\nFMOV            S0, S10                                                ; +0x78, 0x1001b86e0\nFMOV            S1, S9                                                 ; +0x7c, 0x1001b86e4\nFMOV            S2, S8                                                 ; +0x80, 0x1001b86e8\nMOV             W2, #0                                                 ; +0x84, 0x1001b86ec\nMOV             W3, #0                                                 ; +0x88, 0x1001b86f0\nMOV             W4, #0                                                 ; +0x8c, 0x1001b86f4\nMOV             W5, #0                                                 ; +0x90, 0x1001b86f8\nMOV             W6, #0                                                 ; +0x94, 0x1001b86fc\nMOV             W7, #0                                                 ; +0x98, 0x1001b8700\nBL              FMODAudioEngine__playEffectAdvanced                    ; +0x9c, 0x1001b8704\nMOV             X19, X0                                                ; +0xa0, 0x1001b8708\nLDRSB           W8, [SP,#0x70+var_40+7]                                ; +0xa4, 0x1001b870c\nTBZ             W8, #0x1F, loc_1001B871C                               ; +0xa8, 0x1001b8710\nLDR             X0, [SP,#0x70+__p]; __p                                ; +0xac, 0x1001b8714\nBL              __ZdlPv; operator delete(void *)                       ; +0xb0, 0x1001b8718\nMOV             X0, X19                                                ; +0xb4, 0x1001b871c\nLDP             X29, X30, [SP,#0x70+var_s0]                            ; +0xb8, 0x1001b8720\nLDP             X20, X19, [SP,#0x70+var_10]                            ; +0xbc, 0x1001b8724\nLDP             D9, D8, [SP,#0x70+var_20]                              ; +0xc0, 0x1001b8728\nLDP             D11, D10, [SP,#0x70+var_30]                            ; +0xc4, 0x1001b872c\nADD             SP, SP, #0x80                                          ; +0xc8, 0x1001b8730\nRET                                                                    ; +0xcc, 0x1001b8734", "xrefs": ["LevelInfoLayer::onPlay @ 0x100029e80", "SecretLayer5::onSubmit @ 0x10007d7cc", "SecretLayer5::animateHead @ 0x10007e118", "SecretLayer5::showSuccessAnimation @ 0x10007e8e8", "SecretLayer5::showSuccessAnimation @ 0x10007e938", "SecretLayer5::showSuccessAnimation @ 0x10007e980", "SecretLayer5::showSuccessAnimation @ 0x10007e9c8", "SecretLayer5::showFailAnimation @ 0x10007ee3c", "SecretLayer5::showFailAnimation @ 0x10007eea0", "sub_10007F0DC @ 0x10007f11c", "EditLevelLayer::onPlay @ 0x100110480", "PlayLayer::destroyPlayer @ 0x100147fdc", "FMODAudioEngine::playEffect_1 @ 0x1001b8620", "PauseLayer::onQuit @ 0x1001c1168", "GJShopLayer::dialogClosed @ 0x1001cbf20", "sub_1001CC218 @ 0x1001cc2b0", "sub_1002487E0 @ 0x100248844", "GauntletSelectLayer::playUnlockAnimation @ 0x100255c60", "CCMenuItemSpriteExtra::activate @ 0x1002b03f0", "CCMenuItemSpriteExtra::selected @ 0x1002b04b8", "AchievementNotifier::showNextAchievement @ 0x1002b31c4", "EndLevelLayer::onReplay @ 0x100393b5c", "sub_100393BF4 @ 0x100393ca0", "EndLevelLayer::onRestartCheckpoint @ 0x100393e04", "LevelAreaInnerLayer::onDoor @ 0x1003e4a74", "MenuGameLayer::destroyPlayer @ 0x100442c70", "GJPathPage::playUnlockAnimation @ 0x10046109c", "LevelPage::onPlay @ 0x100484458"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}