{"type": "func", "start": 4296264860, "end": 4296264948, "name": "FMODAudioEngine::lengthForSound", "pseudocode": "// \n// FMODAudioEngine::lengthForSound from 0x10013cc9c to 0x10013ccf4 (88 bytes)\n// \n// 2 xrefs:\n// > SetupSFXPopup::createSFXWidget @ 0x100180acc\n// > SetupSFXPopup::onClose @ 0x100180d1c\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::lengthForSound(__int64 a1, __int64 a2)\n{\n  __int64 result; // x0\n  char v5; // [xsp+7h] [xbp-19h] BYREF\n  __int64 v6; // [xsp+8h] [xbp-18h] BYREF\n\n  result = sub_10013FF3C(a1 + 360);\n  if ( result )\n  {\n    v6 = a2;\n    return *(unsigned int *)(sub_100140034(a1 + 360, a2, &unk_100637FD3, &v6, &v5) + 72);\n  }\n  return result;\n}", "assembly": "; \n; FMODAudioEngine::lengthForSound from 0x10013cc9c to 0x10013ccf4 (88 bytes)\n; \n; 2 xrefs:\n; > SetupSFXPopup::createSFXWidget @ 0x100180acc\n; > SetupSFXPopup::onClose @ 0x100180d1c\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, #0x30                                          ; +0x0, 0x10013cc9c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10013cca0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10013cca4\nADD             X29, SP, #0x20                                         ; +0xc, 0x10013cca8\nMOV             X19, X1                                                ; +0x10, 0x10013ccac\nMOV             X20, X0                                                ; +0x14, 0x10013ccb0\nADD             X0, X0, #0x168                                         ; +0x18, 0x10013ccb4\nBL              sub_10013FF3C                                          ; +0x1c, 0x10013ccb8\nCBZ             X0, loc_10013CCE4                                      ; +0x20, 0x10013ccbc\nSTR             X19, [SP,#0x20+var_18]                                 ; +0x24, 0x10013ccc0\nADRL            X2, unk_100637FD3                                      ; +0x28, 0x10013ccc4\nADD             X0, X20, #0x168                                        ; +0x30, 0x10013cccc\nADD             X3, SP, #0x20+var_18                                   ; +0x34, 0x10013ccd0\nADD             X4, SP, #0x20+var_19                                   ; +0x38, 0x10013ccd4\nMOV             X1, X19                                                ; +0x3c, 0x10013ccd8\nBL              sub_100140034                                          ; +0x40, 0x10013ccdc\nLDR             W0, [X0,#0x48]                                         ; +0x44, 0x10013cce0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x48, 0x10013cce4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x4c, 0x10013cce8\nADD             SP, SP, #0x30 ; '0'                                    ; +0x50, 0x10013ccec\nRET                                                                    ; +0x54, 0x10013ccf0", "xrefs": ["SetupSFXPopup::createSFXWidget @ 0x100180acc", "SetupSFXPopup::onClose @ 0x100180d1c"], "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"}