{"type": "func", "start": 4298687736, "end": 4298687916, "name": "CustomSFXWidget::onPlayback", "pseudocode": "// \n// CustomSFXWidget::onPlayback from 0x10038c4f8 to 0x10038c5ac (180 bytes)\n// \n// 2 xrefs:\n// > CustomSFXWidget::downloadSFXFinished @ 0x10038d9a4\n// > CustomSFXWidget::init @ 0x10038b7e0\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:03:35 +0000\n// \n\nvoid __fastcall CustomSFXWidget::onPlayback(__int64 a1)\n{\n  __int64 v2; // x0\n  __int64 v3; // x0\n  __int64 v4; // x20\n  std::string *v5; // x1\n  std::string v6; // [xsp+0h] [xbp-40h] BYREF\n  void *__p[2]; // [xsp+18h] [xbp-28h] BYREF\n  char v8; // [xsp+2Fh] [xbp-11h]\n\n  if ( *(_QWORD *)(a1 + 336) )\n  {\n    v2 = FMODAudioEngine::sharedEngine();\n    FMODAudioEngine::stopAllEffects(v2);\n    v3 = *(_QWORD *)(a1 + 480);\n    if ( !v3\n      || ((*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 24LL))(v3, *(_QWORD *)(a1 + 336)) & 1) == 0 )\n    {\n      v4 = FMODAudioEngine::sharedEngine();\n      MusicDownloadManager::sharedState();\n      MusicDownloadManager::pathForSFX(*(unsigned int *)(*(_QWORD *)(a1 + 336) + 56LL), &v6);\n      if ( (v6.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )\n        v5 = &v6;\n      else\n        v5 = (std::string *)v6.__r_.__value_.__r.__words[0];\n      sub_100009900(__p, (char *)v5);\n      FMODAudioEngine::playEffectAsync(v4, (__int64)__p);\n      if ( v8 < 0 )\n        operator delete(__p[0]);\n      if ( SHIBYTE(v6.__r_.__value_.__r.__words[2]) < 0 )\n        operator delete(v6.__r_.__value_.__l.__data_);\n    }\n  }\n}", "assembly": "; \n; CustomSFXWidget::onPlayback from 0x10038c4f8 to 0x10038c5ac (180 bytes)\n; \n; 2 xrefs:\n; > CustomSFXWidget::downloadSFXFinished @ 0x10038d9a4\n; > CustomSFXWidget::init @ 0x10038b7e0\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:03:35 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x10038c4f8\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x4, 0x10038c4fc\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8, 0x10038c500\nADD             X29, SP, #0x40                                         ; +0xc, 0x10038c504\nLDR             X8, [X0,#0x150]                                        ; +0x10, 0x10038c508\nCBZ             X8, loc_10038C59C                                      ; +0x14, 0x10038c50c\nMOV             X19, X0                                                ; +0x18, 0x10038c510\nBL              FMODAudioEngine__sharedEngine                          ; +0x1c, 0x10038c514\nBL              FMODAudioEngine__stopAllEffects                        ; +0x20, 0x10038c518\nLDR             X0, [X19,#0x1E0]                                       ; +0x24, 0x10038c51c\nCBZ             X0, loc_10038C538                                      ; +0x28, 0x10038c520\nLDR             X1, [X19,#0x150]                                       ; +0x2c, 0x10038c524\nLDR             X8, [X0]                                               ; +0x30, 0x10038c528\nLDR             X8, [X8,#0x18]                                         ; +0x34, 0x10038c52c\nBLR             X8                                                     ; +0x38, 0x10038c530\nTBNZ            W0, #0, loc_10038C59C                                  ; +0x3c, 0x10038c534\nBL              FMODAudioEngine__sharedEngine                          ; +0x40, 0x10038c538\nMOV             X20, X0                                                ; +0x44, 0x10038c53c\nBL              MusicDownloadManager__sharedState                      ; +0x48, 0x10038c540\nLDR             X8, [X19,#0x150]                                       ; +0x4c, 0x10038c544\nLDR             W1, [X8,#0x38]                                         ; +0x50, 0x10038c548\nMOV             X19, SP                                                ; +0x54, 0x10038c54c\nMOV             X8, SP                                                 ; +0x58, 0x10038c550\nBL              MusicDownloadManager__pathForSFX                       ; +0x5c, 0x10038c554\nLDRSB           W8, [SP,#0x40+var_29]                                  ; +0x60, 0x10038c558\nLDR             X9, [SP,#0x40+var_40]                                  ; +0x64, 0x10038c55c\nCMP             W8, #0                                                 ; +0x68, 0x10038c560\nCSEL            X1, X9, X19, LT; __s                                   ; +0x6c, 0x10038c564\nADD             X0, SP, #0x40+__p; int                                 ; +0x70, 0x10038c568\nBL              sub_100009900                                          ; +0x74, 0x10038c56c\nADD             X1, SP, #0x40+__p                                      ; +0x78, 0x10038c570\nMOV             X0, X20                                                ; +0x7c, 0x10038c574\nBL              FMODAudioEngine__playEffectAsync                       ; +0x80, 0x10038c578\nLDRSB           W8, [SP,#0x40+var_11]                                  ; +0x84, 0x10038c57c\nTBZ             W8, #0x1F, loc_10038C58C                               ; +0x88, 0x10038c580\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x8c, 0x10038c584\nBL              __ZdlPv; operator delete(void *)                       ; +0x90, 0x10038c588\nLDRSB           W8, [SP,#0x40+var_29]                                  ; +0x94, 0x10038c58c\nTBZ             W8, #0x1F, loc_10038C59C                               ; +0x98, 0x10038c590\nLDR             X0, [SP,#0x40+var_40]; __p                             ; +0x9c, 0x10038c594\nBL              __ZdlPv; operator delete(void *)                       ; +0xa0, 0x10038c598\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xa4, 0x10038c59c\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xa8, 0x10038c5a0\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xac, 0x10038c5a4\nRET                                                                    ; +0xb0, 0x10038c5a8", "xrefs": ["CustomSFXWidget::downloadSFXFinished @ 0x10038d9a4", "CustomSFXWidget::init @ 0x10038b7e0"], "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"}