{"type": "func", "start": 758988, "end": 759106, "name": "FMOD::System::createStream", "pseudocode": "// \n// FMOD::System::createStream from 0xb94cc to 0xb9542 (118 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::createStream @ 0xe0258\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::createStream(int a1, const void *a2, unsigned 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_5A2D4(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, (const char *)a2, a3, a4, a5);\n    sub_BAB40(v9, 1, a1, \"System::createStream\", v11);\n  }\n  return v9;\n}", "assembly": "; \n; FMOD::System::createStream from 0xb94cc to 0xb9542 (118 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::createStream @ 0xe0258\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, 0xb94cc\nADD             R7, SP, #0xC                                           ; +0x2, 0xb94ce\nPUSH.W          {R8-R10}                                               ; +0x4, 0xb94d0\nSUB             SP, SP, #0x110                                         ; +0x8, 0xb94d4\nMOV             R9, R1                                                 ; +0xa, 0xb94d6\nADD             R1, SP, #0x110+var_4                                   ; +0xc, 0xb94d8\nMOV             R8, R2                                                 ; +0xe, 0xb94da\nMOVS            R2, #0                                                 ; +0x10, 0xb94dc\nMOV             R6, R3                                                 ; +0x12, 0xb94de\nMOV             R4, R0                                                 ; +0x14, 0xb94e0\nBLX             j__ZN4FMOD7SystemI8validateEPNS_6SystemEPPS0_PNS_15SystemLockScopeE; FMOD::SystemI::validate(FMOD::System *,FMOD::SystemI**,FMOD::SystemLockScope *) ; +0x16, 0xb94e2\nLDR.W           R10, [R7,#-0x18+arg_0]                                 ; +0x1a, 0xb94e6\nMOV             R5, R0                                                 ; +0x1e, 0xb94ea\nCBNZ            R0, loc_B9502                                          ; +0x20, 0xb94ec\nLDR             R0, [SP,#0x110+var_4]                                  ; +0x22, 0xb94ee\nMOV             R1, R9                                                 ; +0x24, 0xb94f0\nMOV             R2, R8                                                 ; +0x26, 0xb94f2\nMOV             R3, R6                                                 ; +0x28, 0xb94f4\nSTR.W           R10, [SP,#0x110+var_110]                               ; +0x2a, 0xb94f6\nBL              sub_5A2D4                                              ; +0x2e, 0xb94fa\nMOV             R5, R0                                                 ; +0x32, 0xb94fe\nCBZ             R0, loc_B9536                                          ; +0x34, 0xb9500\nLDR             R0, =(off_E6144 - 0xB9508)                             ; +0x36, 0xb9502\nADD             R0, PC; off_E6144                                      ; +0x38, 0xb9504\nLDR             R0, [R0]; off_E8000                                    ; +0x3a, 0xb9506\nLDR             R0, [R0]; dword_F2488                                  ; +0x3c, 0xb9508\nLDRB            R0, [R0,#(dword_F249C - 0xF2488)]                      ; +0x3e, 0xb950a\nLSLS            R0, R0, #0x18                                          ; +0x40, 0xb950c\nBPL             loc_B9538                                              ; +0x42, 0xb950e\nSTRD.W          R6, R10, [SP,#0x110+var_110]                           ; +0x44, 0xb9510\nADD             R6, SP, #0x110+var_104                                 ; +0x48, 0xb9514\nMOV.W           R1, #0x100                                             ; +0x4a, 0xb9516\nMOV             R2, R9                                                 ; +0x4e, 0xb951a\nMOV             R0, R6                                                 ; +0x50, 0xb951c\nMOV             R3, R8                                                 ; +0x52, 0xb951e\nBL              sub_B945C                                              ; +0x54, 0xb9520\nSTR             R6, [SP,#0x110+var_110]                                ; +0x58, 0xb9524\nMOV             R0, R5                                                 ; +0x5a, 0xb9526\nLDR             R3, =(aSystemCreatest - 0xB9532); \"System::createStream\" ... ; +0x5c, 0xb9528\nMOVS            R1, #1                                                 ; +0x5e, 0xb952a\nMOV             R2, R4                                                 ; +0x60, 0xb952c\nADD             R3, PC; \"System::createStream\"                         ; +0x62, 0xb952e\nBL              sub_BAB40                                              ; +0x64, 0xb9530\nB               loc_B9538                                              ; +0x68, 0xb9534\nMOVS            R5, #0                                                 ; +0x6a, 0xb9536\nMOV             R0, R5                                                 ; +0x6c, 0xb9538\nADD             SP, SP, #0x110                                         ; +0x6e, 0xb953a\nPOP.W           {R8-R10}                                               ; +0x70, 0xb953c\nPOP             {R4-R7,PC}                                             ; +0x74, 0xb9540", "xrefs": ["FMOD::System::createStream @ 0xe0258"], "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"}