{"type": "func", "start": 6443138976, "end": 6443139202, "name": "FMOD::Sound::getNumSubSounds", "pseudocode": "// \n// FMOD::Sound::getNumSubSounds from 0x1800a7fa0 to 0x1800a8082 (226 bytes)\n// \n// 3 xrefs:\n// > FMOD_Sound_GetNumSubSounds @ 0x1800c6619\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fbaa8\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 FMOD::Sound::getNumSubSounds(__int64 a1, __int64 a2)\n{\n  int v3; // esi\n  unsigned int v4; // ebx\n  __int64 result; // rax\n  _DWORD *v6; // [rsp+30h] [rbp-128h] BYREF\n  _BYTE v7[256]; // [rsp+40h] [rbp-118h] BYREF\n\n  v3 = a1;\n  v4 = sub_1800E1460(a1, &v6, 0);\n  if ( !v4 )\n  {\n    if ( !v6[68] || v6[68] == 7 )\n    {\n      result = (*(__int64 (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v6 + 168LL))(v6, a2);\n      v4 = result;\n      if ( !(_DWORD)result )\n        return result;\n    }\n    else\n    {\n      v4 = 46;\n    }\n  }\n  if ( *((char *)off_1801AED20 + 16) < 0 )\n  {\n    sub_1800F3020(v7, 256, a2);\n    sub_1800B20E0(v4, 5, v3, (unsigned int)\"Sound::getNumSubSounds\", (__int64)v7);\n  }\n  return v4;\n}", "assembly": "; \n; FMOD::Sound::getNumSubSounds from 0x1800a7fa0 to 0x1800a8082 (226 bytes)\n; \n; 3 xrefs:\n; > FMOD_Sound_GetNumSubSounds @ 0x1800c6619\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fbaa8\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1800a7fa0\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1800a7fa5\npush    rdi                                                            ; +0xa, 0x1800a7faa\nsub     rsp, 150h                                                      ; +0xb, 0x1800a7fab\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x1800a7fb2\nxor     rax, rsp                                                       ; +0x19, 0x1800a7fb9\nmov     [rsp+158h+var_18], rax                                         ; +0x1c, 0x1800a7fbc\nmov     rdi, rdx                                                       ; +0x24, 0x1800a7fc4\nxor     r8d, r8d                                                       ; +0x27, 0x1800a7fc7\nlea     rdx, [rsp+158h+var_128]                                        ; +0x2a, 0x1800a7fca\nmov     rsi, rcx                                                       ; +0x2f, 0x1800a7fcf\ncall    sub_1800E1460                                                  ; +0x32, 0x1800a7fd2\nmov     ebx, eax                                                       ; +0x37, 0x1800a7fd7\ntest    eax, eax                                                       ; +0x39, 0x1800a7fd9\njnz     short loc_1800A8003                                            ; +0x3b, 0x1800a7fdb\nmov     rax, [rsp+158h+var_128]                                        ; +0x3d, 0x1800a7fdd\nmov     ecx, [rax+110h]                                                ; +0x42, 0x1800a7fe2\nnop                                                                    ; +0x48, 0x1800a7fe8\ntest    ecx, ecx                                                       ; +0x49, 0x1800a7fe9\njz      short loc_1800A8069                                            ; +0x4b, 0x1800a7feb\nmov     rax, [rsp+158h+var_128]                                        ; +0x4d, 0x1800a7fed\nmov     ecx, [rax+110h]                                                ; +0x52, 0x1800a7ff2\nnop                                                                    ; +0x58, 0x1800a7ff8\ncmp     ecx, 7                                                         ; +0x59, 0x1800a7ff9\njz      short loc_1800A8069                                            ; +0x5c, 0x1800a7ffc\nmov     ebx, 2Eh ; '.'                                                 ; +0x5e, 0x1800a7ffe\nmov     rax, cs:off_1801AED20                                          ; +0x63, 0x1800a8003\ntest    byte ptr [rax+10h], 80h                                        ; +0x6a, 0x1800a800a\njz      short loc_1800A8042                                            ; +0x6e, 0x1800a800e\nmov     r8, rdi                                                        ; +0x70, 0x1800a8010\nlea     rcx, [rsp+158h+var_118]                                        ; +0x73, 0x1800a8013\nmov     edx, 100h                                                      ; +0x78, 0x1800a8018\ncall    sub_1800F3020                                                  ; +0x7d, 0x1800a801d\nlea     rax, [rsp+158h+var_118]                                        ; +0x82, 0x1800a8022\nmov     r8, rsi                                                        ; +0x87, 0x1800a8027\nlea     r9, aSoundGetnumsub; \"Sound::getNumSubSounds\"                  ; +0x8a, 0x1800a802a\nmov     [rsp+158h+var_138], rax                                        ; +0x91, 0x1800a8031\nmov     edx, 5                                                         ; +0x96, 0x1800a8036\nmov     ecx, ebx                                                       ; +0x9b, 0x1800a803b\ncall    sub_1800B20E0                                                  ; +0x9d, 0x1800a803d\nmov     eax, ebx                                                       ; +0xa2, 0x1800a8042\nmov     rcx, [rsp+158h+var_18]                                         ; +0xa4, 0x1800a8044\nxor     rcx, rsp; StackCookie                                          ; +0xac, 0x1800a804c\ncall    __security_check_cookie                                        ; +0xaf, 0x1800a804f\nlea     r11, [rsp+158h+var_8]                                          ; +0xb4, 0x1800a8054\nmov     rbx, [r11+20h]                                                 ; +0xbc, 0x1800a805c\nmov     rsi, [r11+28h]                                                 ; +0xc0, 0x1800a8060\nmov     rsp, r11                                                       ; +0xc4, 0x1800a8064\npop     rdi                                                            ; +0xc7, 0x1800a8067\nretn                                                                   ; +0xc8, 0x1800a8068\nmov     rcx, [rsp+158h+var_128]                                        ; +0xc9, 0x1800a8069\nmov     rdx, rdi                                                       ; +0xce, 0x1800a806e\nmov     rax, [rcx]                                                     ; +0xd1, 0x1800a8071\ncall    qword ptr [rax+0A8h]                                           ; +0xd4, 0x1800a8074\nmov     ebx, eax                                                       ; +0xda, 0x1800a807a\ntest    eax, eax                                                       ; +0xdc, 0x1800a807c\njnz     short loc_1800A8003                                            ; +0xde, 0x1800a807e\njmp     short loc_1800A8044                                            ; +0xe0, 0x1800a8080", "xrefs": ["FMOD_Sound_GetNumSubSounds @ 0x1800c6619", "<???> @ 0x180194348", "<???> @ 0x1801fbaa8"], "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"}