{"type": "func", "start": 280656, "end": 280768, "name": "sub_44850", "pseudocode": "// \n// sub_44850 from 0x44850 to 0x448c0 (112 bytes)\n// \n// 1 xrefs:\n// > sub_448E0 @ 0x4495c\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\nint __fastcall sub_44850(int a1, int a2)\n{\n  int result; // r0\n  _BYTE v4[256]; // [sp+18h] [bp-110h] BYREF\n\n  *(_DWORD *)(a1 + 316) = a2;\n  result = j_FMOD_OS_CriticalSection_Create(a1 + 312, 0);\n  if ( !result )\n  {\n    sub_BE420(v4, 256, \"FMOD nonblocking thread (%d)\", *(_DWORD *)(a1 + 316));\n    result = sub_BE65C(a1, v4, sub_444D8, a1, 4, 1, 0, 0, 1);\n    if ( !result )\n      *((_DWORD *)off_E8000 + *(_DWORD *)(a1 + 316) + 69) = *(_DWORD *)(a1 + 264);\n  }\n  return result;\n}", "assembly": "; \n; sub_44850 from 0x44850 to 0x448c0 (112 bytes)\n; \n; 1 xrefs:\n; > sub_448E0 @ 0x4495c\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\nPUSH            {R4-R7,LR}                                             ; +0x0, 0x44850\nADD             R7, SP, #0xC                                           ; +0x2, 0x44852\nPUSH.W          {R11}                                                  ; +0x4, 0x44854\nSUB             SP, SP, #0x118                                         ; +0x8, 0x44858\nSTR.W           R1, [R0,#0x13C]                                        ; +0xa, 0x4485a\nMOV             R4, R0                                                 ; +0xe, 0x4485e\nADD.W           R0, R0, #0x138                                         ; +0x10, 0x44860\nMOVS            R1, #0                                                 ; +0x14, 0x44864\nMOVS            R6, #0                                                 ; +0x16, 0x44866\nBLX             j_FMOD_OS_CriticalSection_Create                       ; +0x18, 0x44868\nCBNZ            R0, loc_448B8                                          ; +0x1c, 0x4486c\nLDR.W           R3, [R4,#0x13C]                                        ; +0x1e, 0x4486e\nADD             R5, SP, #0x118+var_100                                 ; +0x22, 0x44872\nLDR             R2, =(aFmodNonblockin - 0x44880); \"FMOD nonblocking thread (%d)\" ... ; +0x24, 0x44874\nMOV.W           R1, #0x100                                             ; +0x26, 0x44876\nMOV             R0, R5                                                 ; +0x2a, 0x4487a\nADD             R2, PC; \"FMOD nonblocking thread (%d)\"                 ; +0x2c, 0x4487c\nBL              sub_BE420                                              ; +0x2e, 0x4487e\nMOVS            R0, #1                                                 ; +0x32, 0x44882\nMOVS            R1, #4                                                 ; +0x34, 0x44884\nSTRD.W          R1, R0, [SP,#0x118+var_118]                            ; +0x36, 0x44886\nMOV             R1, R5                                                 ; +0x3a, 0x4488a\nSTRD.W          R6, R6, [SP,#0x118+var_110]                            ; +0x3c, 0x4488c\nMOV             R3, R4                                                 ; +0x40, 0x44890\nSTR             R0, [SP,#0x118+var_108]                                ; +0x42, 0x44892\nMOV             R0, R4                                                 ; +0x44, 0x44894\nLDR             R2, =(sub_444D8+1 - 0x4489C)                           ; +0x46, 0x44896\nADD             R2, PC; sub_444D8                                      ; +0x48, 0x44898\nBL              sub_BE65C                                              ; +0x4a, 0x4489a\nCBNZ            R0, loc_448B8                                          ; +0x4e, 0x4489e\nLDR.W           R1, [R4,#0x108]                                        ; +0x50, 0x448a0\nLDR.W           R2, [R4,#0x13C]                                        ; +0x54, 0x448a4\nLDR             R3, =(off_E6144 - 0x448AE)                             ; +0x58, 0x448a8\nADD             R3, PC; off_E6144                                      ; +0x5a, 0x448aa\nLDR             R3, [R3]; off_E8000                                    ; +0x5c, 0x448ac\nLDR             R3, [R3]; unk_F2488                                    ; +0x5e, 0x448ae\nADD.W           R2, R3, R2,LSL#2                                       ; +0x60, 0x448b0\nSTR.W           R1, [R2,#0x114]                                        ; +0x64, 0x448b4\nADD             SP, SP, #0x118                                         ; +0x68, 0x448b8\nPOP.W           {R11}                                                  ; +0x6a, 0x448ba\nPOP             {R4-R7,PC}                                             ; +0x6e, 0x448be", "xrefs": ["sub_448E0 @ 0x4495c"], "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"}