{"type": "func", "start": 4299056816, "end": 4299056899, "name": "FMODAudioEngine::lengthForSound", "pseudocode": "// \n// FMODAudioEngine::lengthForSound from 0x1003e66b0 to 0x1003e6703 (83 bytes)\n// \n// 2 xrefs:\n// > SetupSFXPopup::createSFXWidget @ 0x1004ba0d9\n// > SetupSFXPopup::onClose @ 0x1004ba3b8\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 v3; // [rsp+0h] [rbp-20h] BYREF\n  _BYTE v4[17]; // [rsp+Fh] [rbp-11h] BYREF\n\n  if ( !sub_1003EC6B0(a1 + 360) )\n    return 0;\n  v3 = a2;\n  return *(unsigned int *)(sub_1003EC940(a1 + 360, a2, &unk_10081B0A2, &v3, v4) + 72);\n}", "assembly": "; \n; FMODAudioEngine::lengthForSound from 0x1003e66b0 to 0x1003e6703 (83 bytes)\n; \n; 2 xrefs:\n; > SetupSFXPopup::createSFXWidget @ 0x1004ba0d9\n; > SetupSFXPopup::onClose @ 0x1004ba3b8\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, 0x1003e66b0\nmov     rbp, rsp                                                       ; +0x1, 0x1003e66b1\npush    r14                                                            ; +0x4, 0x1003e66b4\npush    rbx                                                            ; +0x6, 0x1003e66b6\nsub     rsp, 10h                                                       ; +0x7, 0x1003e66b7\nmov     rbx, rsi                                                       ; +0xb, 0x1003e66bb\nmov     r14, rdi                                                       ; +0xe, 0x1003e66be\nadd     r14, 168h                                                      ; +0x11, 0x1003e66c1\nmov     rdi, r14                                                       ; +0x18, 0x1003e66c8\ncall    sub_1003EC6B0                                                  ; +0x1b, 0x1003e66cb\ntest    rax, rax                                                       ; +0x20, 0x1003e66d0\njz      short loc_1003E66F8                                            ; +0x23, 0x1003e66d3\nmov     [rbp+var_20], rbx                                              ; +0x25, 0x1003e66d5\nlea     rdx, unk_10081B0A2                                             ; +0x29, 0x1003e66d9\nlea     rcx, [rbp+var_20]                                              ; +0x30, 0x1003e66e0\nlea     r8, [rbp+var_11]                                               ; +0x34, 0x1003e66e4\nmov     rdi, r14                                                       ; +0x38, 0x1003e66e8\nmov     rsi, rbx                                                       ; +0x3b, 0x1003e66eb\ncall    sub_1003EC940                                                  ; +0x3e, 0x1003e66ee\nmov     eax, [rax+48h]                                                 ; +0x43, 0x1003e66f3\njmp     short loc_1003E66FA                                            ; +0x46, 0x1003e66f6\nxor     eax, eax                                                       ; +0x48, 0x1003e66f8\nadd     rsp, 10h                                                       ; +0x4a, 0x1003e66fa\npop     rbx                                                            ; +0x4e, 0x1003e66fe\npop     r14                                                            ; +0x4f, 0x1003e66ff\npop     rbp                                                            ; +0x51, 0x1003e6701\nretn                                                                   ; +0x52, 0x1003e6702", "xrefs": ["SetupSFXPopup::createSFXWidget @ 0x1004ba0d9", "SetupSFXPopup::onClose @ 0x1004ba3b8"], "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"}