{"type": "func", "start": 6443149728, "end": 6443149936, "name": "FMOD::SoundGroup::getNumSounds", "pseudocode": "// \n// FMOD::SoundGroup::getNumSounds from 0x1800aa9a0 to 0x1800aaa70 (208 bytes)\n// \n// 4 xrefs:\n// > FMOD_SoundGroup_GetNumSounds @ 0x1800c6469\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fbef8\n// > <???> @ 0x1801fbf04\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::SoundGroup::getNumSounds(__int64 a1, __int64 a2)\n{\n  int v3; // esi\n  unsigned int v4; // ebx\n  __int64 v6; // [rsp+30h] [rbp-128h] BYREF\n  __int64 v7; // [rsp+38h] [rbp-120h] BYREF\n  _BYTE v8[256]; // [rsp+40h] [rbp-118h] BYREF\n\n  v6 = 0;\n  v3 = a1;\n  v4 = sub_1800DE200(a1, &v7, &v6);\n  if ( (v4 || (v4 = sub_1800DDB50(v7, a2)) != 0) && *((char *)off_1801AED20 + 16) < 0 )\n  {\n    sub_1800F3020(v8, 256, a2);\n    sub_1800B20E0(v4, 6, v3, (unsigned int)\"SoundGroup::getNumSounds\", (__int64)v8);\n  }\n  if ( v6 )\n    sub_180102320(v6);\n  return v4;\n}", "assembly": "; \n; FMOD::SoundGroup::getNumSounds from 0x1800aa9a0 to 0x1800aaa70 (208 bytes)\n; \n; 4 xrefs:\n; > FMOD_SoundGroup_GetNumSounds @ 0x1800c6469\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fbef8\n; > <???> @ 0x1801fbf04\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, 0x1800aa9a0\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1800aa9a5\npush    rdi                                                            ; +0xa, 0x1800aa9aa\nsub     rsp, 150h                                                      ; +0xb, 0x1800aa9ab\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x1800aa9b2\nxor     rax, rsp                                                       ; +0x19, 0x1800aa9b9\nmov     [rsp+158h+var_18], rax                                         ; +0x1c, 0x1800aa9bc\nmov     rdi, rdx                                                       ; +0x24, 0x1800aa9c4\nmov     [rsp+158h+var_128], 0                                          ; +0x27, 0x1800aa9c7\nlea     rdx, [rsp+158h+var_120]                                        ; +0x30, 0x1800aa9d0\nmov     rsi, rcx                                                       ; +0x35, 0x1800aa9d5\nlea     r8, [rsp+158h+var_128]                                         ; +0x38, 0x1800aa9d8\ncall    sub_1800DE200                                                  ; +0x3d, 0x1800aa9dd\nmov     ebx, eax                                                       ; +0x42, 0x1800aa9e2\ntest    eax, eax                                                       ; +0x44, 0x1800aa9e4\njnz     short loc_1800AA9FB                                            ; +0x46, 0x1800aa9e6\nmov     rcx, [rsp+158h+var_120]                                        ; +0x48, 0x1800aa9e8\nmov     rdx, rdi                                                       ; +0x4d, 0x1800aa9ed\ncall    sub_1800DDB50                                                  ; +0x50, 0x1800aa9f0\nmov     ebx, eax                                                       ; +0x55, 0x1800aa9f5\ntest    eax, eax                                                       ; +0x57, 0x1800aa9f7\njz      short loc_1800AAA3A                                            ; +0x59, 0x1800aa9f9\nmov     rax, cs:off_1801AED20                                          ; +0x5b, 0x1800aa9fb\ntest    byte ptr [rax+10h], 80h                                        ; +0x62, 0x1800aaa02\njz      short loc_1800AAA3A                                            ; +0x66, 0x1800aaa06\nmov     r8, rdi                                                        ; +0x68, 0x1800aaa08\nlea     rcx, [rsp+158h+var_118]                                        ; +0x6b, 0x1800aaa0b\nmov     edx, 100h                                                      ; +0x70, 0x1800aaa10\ncall    sub_1800F3020                                                  ; +0x75, 0x1800aaa15\nlea     rax, [rsp+158h+var_118]                                        ; +0x7a, 0x1800aaa1a\nmov     r8, rsi                                                        ; +0x7f, 0x1800aaa1f\nlea     r9, aSoundgroupGetn_1; \"SoundGroup::getNumSounds\"              ; +0x82, 0x1800aaa22\nmov     [rsp+158h+var_138], rax                                        ; +0x89, 0x1800aaa29\nmov     edx, 6                                                         ; +0x8e, 0x1800aaa2e\nmov     ecx, ebx                                                       ; +0x93, 0x1800aaa33\ncall    sub_1800B20E0                                                  ; +0x95, 0x1800aaa35\nmov     rcx, [rsp+158h+var_128]                                        ; +0x9a, 0x1800aaa3a\ntest    rcx, rcx                                                       ; +0x9f, 0x1800aaa3f\njz      short loc_1800AAA49                                            ; +0xa2, 0x1800aaa42\ncall    sub_180102320                                                  ; +0xa4, 0x1800aaa44\nmov     eax, ebx                                                       ; +0xa9, 0x1800aaa49\nmov     rcx, [rsp+158h+var_18]                                         ; +0xab, 0x1800aaa4b\nxor     rcx, rsp; StackCookie                                          ; +0xb3, 0x1800aaa53\ncall    __security_check_cookie                                        ; +0xb6, 0x1800aaa56\nlea     r11, [rsp+158h+var_8]                                          ; +0xbb, 0x1800aaa5b\nmov     rbx, [r11+20h]                                                 ; +0xc3, 0x1800aaa63\nmov     rsi, [r11+28h]                                                 ; +0xc7, 0x1800aaa67\nmov     rsp, r11                                                       ; +0xcb, 0x1800aaa6b\npop     rdi                                                            ; +0xce, 0x1800aaa6e\nretn                                                                   ; +0xcf, 0x1800aaa6f", "xrefs": ["FMOD_SoundGroup_GetNumSounds @ 0x1800c6469", "<???> @ 0x180194348", "<???> @ 0x1801fbef8", "<???> @ 0x1801fbf04"], "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"}