{"type": "func", "start": 4298980320, "end": 4298980403, "name": "FMODAudioEngine::lengthForSound", "pseudocode": "// \n// FMODAudioEngine::lengthForSound from 0x1003d3be0 to 0x1003d3c33 (83 bytes)\n// \n// 2 xrefs:\n// > SetupSFXPopup::createSFXWidget @ 0x1004b31cb\n// > SetupSFXPopup::onClose @ 0x1004b34b8\n// \n// This function is hookable on this platform (idp: pc, 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 12:29:40 +0000\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_1003D9FD0(a1 + 360) )\n    return 0;\n  v3 = a2;\n  return *(unsigned int *)(sub_1003DA260(a1 + 360, a2, &unk_100A09642, &v3, v4) + 72);\n}", "assembly": "; \n; FMODAudioEngine::lengthForSound from 0x1003d3be0 to 0x1003d3c33 (83 bytes)\n; \n; 2 xrefs:\n; > SetupSFXPopup::createSFXWidget @ 0x1004b31cb\n; > SetupSFXPopup::onClose @ 0x1004b34b8\n; \n; This function is hookable on this platform (idp: pc, 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 12:29:40 +0000\n; \npush    rbp                                                            ; +0x0, 0x1003d3be0\nmov     rbp, rsp                                                       ; +0x1, 0x1003d3be1\npush    r14                                                            ; +0x4, 0x1003d3be4\npush    rbx                                                            ; +0x6, 0x1003d3be6\nsub     rsp, 10h                                                       ; +0x7, 0x1003d3be7\nmov     rbx, rsi                                                       ; +0xb, 0x1003d3beb\nmov     r14, rdi                                                       ; +0xe, 0x1003d3bee\nadd     r14, 168h                                                      ; +0x11, 0x1003d3bf1\nmov     rdi, r14                                                       ; +0x18, 0x1003d3bf8\ncall    sub_1003D9FD0                                                  ; +0x1b, 0x1003d3bfb\ntest    rax, rax                                                       ; +0x20, 0x1003d3c00\njz      short loc_1003D3C28                                            ; +0x23, 0x1003d3c03\nmov     [rbp+var_20], rbx                                              ; +0x25, 0x1003d3c05\nlea     rdx, unk_100A09642                                             ; +0x29, 0x1003d3c09\nlea     rcx, [rbp+var_20]                                              ; +0x30, 0x1003d3c10\nlea     r8, [rbp+var_11]                                               ; +0x34, 0x1003d3c14\nmov     rdi, r14                                                       ; +0x38, 0x1003d3c18\nmov     rsi, rbx                                                       ; +0x3b, 0x1003d3c1b\ncall    sub_1003DA260                                                  ; +0x3e, 0x1003d3c1e\nmov     eax, [rax+48h]                                                 ; +0x43, 0x1003d3c23\njmp     short loc_1003D3C2A                                            ; +0x46, 0x1003d3c26\nxor     eax, eax                                                       ; +0x48, 0x1003d3c28\nadd     rsp, 10h                                                       ; +0x4a, 0x1003d3c2a\npop     rbx                                                            ; +0x4e, 0x1003d3c2e\npop     r14                                                            ; +0x4f, 0x1003d3c2f\npop     rbp                                                            ; +0x51, 0x1003d3c31\nretn                                                                   ; +0x52, 0x1003d3c32", "xrefs": ["SetupSFXPopup::createSFXWidget @ 0x1004b31cb", "SetupSFXPopup::onClose @ 0x1004b34b8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}