{"type": "func", "start": 758748, "end": 758866, "name": "FMOD::System::createSound", "pseudocode": "// \n// FMOD::System::createSound from 0xb93dc to 0xb9452 (118 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::createSound @ 0xe0248\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:41:44 +0000\n// \n\nint __fastcall FMOD::System::createSound(int a1, const void *a2, int a3, size_t *a4, _DWORD *a5)\n{\n  int v9; // r5\n  _BYTE v11[256]; // [sp+Ch] [bp-11Ch] BYREF\n  int v12; // [sp+10Ch] [bp-1Ch] BYREF\n\n  v9 = FMOD::SystemI::validate(a1, &v12, nullptr);\n  if ( !v9 )\n  {\n    v9 = sub_59F98(v12, a2, a3, a4, a5);\n    if ( !v9 )\n      return 0;\n  }\n  if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )\n  {\n    sub_B945C(v11, 256, a2, a3, a4, a5);\n    sub_BAB40(v9, 1, a1, \"System::createSound\", v11);\n  }\n  return v9;\n}", "assembly": "; \n; FMOD::System::createSound from 0xb93dc to 0xb9452 (118 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::createSound @ 0xe0248\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:41:44 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0xb93dc\nADD             R7, SP, #0xC                                           ; +0x2, 0xb93de\nPUSH.W          {R8-R10}                                               ; +0x4, 0xb93e0\nSUB             SP, SP, #0x110                                         ; +0x8, 0xb93e4\nMOV             R9, R1                                                 ; +0xa, 0xb93e6\nADD             R1, SP, #0x110+var_4                                   ; +0xc, 0xb93e8\nMOV             R8, R2                                                 ; +0xe, 0xb93ea\nMOVS            R2, #0                                                 ; +0x10, 0xb93ec\nMOV             R6, R3                                                 ; +0x12, 0xb93ee\nMOV             R4, R0                                                 ; +0x14, 0xb93f0\nBLX             j__ZN4FMOD7SystemI8validateEPNS_6SystemEPPS0_PNS_15SystemLockScopeE; FMOD::SystemI::validate(FMOD::System *,FMOD::SystemI**,FMOD::SystemLockScope *) ; +0x16, 0xb93f2\nLDR.W           R10, [R7,#-0x18+arg_0]                                 ; +0x1a, 0xb93f6\nMOV             R5, R0                                                 ; +0x1e, 0xb93fa\nCBNZ            R0, loc_B9412                                          ; +0x20, 0xb93fc\nLDR             R0, [SP,#0x110+var_4]                                  ; +0x22, 0xb93fe\nMOV             R1, R9                                                 ; +0x24, 0xb9400\nMOV             R2, R8                                                 ; +0x26, 0xb9402\nMOV             R3, R6                                                 ; +0x28, 0xb9404\nSTR.W           R10, [SP,#0x110+var_110]                               ; +0x2a, 0xb9406\nBL              sub_59F98                                              ; +0x2e, 0xb940a\nMOV             R5, R0                                                 ; +0x32, 0xb940e\nCBZ             R0, loc_B9446                                          ; +0x34, 0xb9410\nLDR             R0, =(off_E6144 - 0xB9418)                             ; +0x36, 0xb9412\nADD             R0, PC; off_E6144                                      ; +0x38, 0xb9414\nLDR             R0, [R0]; off_E8000                                    ; +0x3a, 0xb9416\nLDR             R0, [R0]; dword_F2488                                  ; +0x3c, 0xb9418\nLDRB            R0, [R0,#(dword_F249C - 0xF2488)]                      ; +0x3e, 0xb941a\nLSLS            R0, R0, #0x18                                          ; +0x40, 0xb941c\nBPL             loc_B9448                                              ; +0x42, 0xb941e\nSTRD.W          R6, R10, [SP,#0x110+var_110]                           ; +0x44, 0xb9420\nADD             R6, SP, #0x110+var_104                                 ; +0x48, 0xb9424\nMOV.W           R1, #0x100                                             ; +0x4a, 0xb9426\nMOV             R2, R9                                                 ; +0x4e, 0xb942a\nMOV             R0, R6                                                 ; +0x50, 0xb942c\nMOV             R3, R8                                                 ; +0x52, 0xb942e\nBL              sub_B945C                                              ; +0x54, 0xb9430\nSTR             R6, [SP,#0x110+var_110]                                ; +0x58, 0xb9434\nMOV             R0, R5                                                 ; +0x5a, 0xb9436\nLDR             R3, =(aSystemCreateso - 0xB9442); \"System::createSound\" ... ; +0x5c, 0xb9438\nMOVS            R1, #1                                                 ; +0x5e, 0xb943a\nMOV             R2, R4                                                 ; +0x60, 0xb943c\nADD             R3, PC; \"System::createSound\"                          ; +0x62, 0xb943e\nBL              sub_BAB40                                              ; +0x64, 0xb9440\nB               loc_B9448                                              ; +0x68, 0xb9444\nMOVS            R5, #0                                                 ; +0x6a, 0xb9446\nMOV             R0, R5                                                 ; +0x6c, 0xb9448\nADD             SP, SP, #0x110                                         ; +0x6e, 0xb944a\nPOP.W           {R8-R10}                                               ; +0x70, 0xb944c\nPOP             {R4-R7,PC}                                             ; +0x74, 0xb9450", "xrefs": ["FMOD::System::createSound @ 0xe0248"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}