{"type": "func", "start": 328248, "end": 328312, "name": "sub_50238", "pseudocode": "// \n// sub_50238 from 0x50238 to 0x50278 (64 bytes)\n// \n// 11 xrefs:\n// > FMOD_Memory_GetStats @ 0x5019c\n// > sub_579DC @ 0x57a18\n// > FMOD::ChannelI::validate @ 0x594b8\n// > sub_5D9B4 @ 0x5dad0\n// > sub_6712C @ 0x67154\n// > FMOD::SystemI::validate @ 0x69f28\n// > sub_6A544 @ 0x6a5a0\n// > sub_AAE14 @ 0xaae34\n// > FMOD::DSPI::validate @ 0xc98b4\n// > FMOD::Sound::release @ 0xd80cc\n// > FMOD::Sound::setSoundGroup @ 0xd95a4\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 sub_50238(_QWORD *a1, __int64 a2)\n{\n  __int64 result; // x0\n\n  result = 28;\n  if ( a2 && !*a1 )\n  {\n    result = sub_7BB84(a2);\n    if ( !(_DWORD)result )\n      *a1 = a2;\n  }\n  return result;\n}", "assembly": "; \n; sub_50238 from 0x50238 to 0x50278 (64 bytes)\n; \n; 11 xrefs:\n; > FMOD_Memory_GetStats @ 0x5019c\n; > sub_579DC @ 0x57a18\n; > FMOD::ChannelI::validate @ 0x594b8\n; > sub_5D9B4 @ 0x5dad0\n; > sub_6712C @ 0x67154\n; > FMOD::SystemI::validate @ 0x69f28\n; > sub_6A544 @ 0x6a5a0\n; > sub_AAE14 @ 0xaae34\n; > FMOD::DSPI::validate @ 0xc98b4\n; > FMOD::Sound::release @ 0xd80cc\n; > FMOD::Sound::setSoundGroup @ 0xd95a4\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x50238\nMOV             X20, X0                                                ; +0x4, 0x5023c\nMOV             W0, #0x1C                                              ; +0x8, 0x50240\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0xc, 0x50244\nADD             X29, SP, #0x10                                         ; +0x10, 0x50248\nCBZ             X1, loc_5026C                                          ; +0x14, 0x5024c\nLDR             X8, [X20]                                              ; +0x18, 0x50250\nCBNZ            X8, loc_5026C                                          ; +0x1c, 0x50254\nMOV             X0, X1                                                 ; +0x20, 0x50258\nMOV             X19, X1                                                ; +0x24, 0x5025c\nBL              sub_7BB84                                              ; +0x28, 0x50260\nCBNZ            W0, loc_5026C                                          ; +0x2c, 0x50264\nSTR             X19, [X20]                                             ; +0x30, 0x50268\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x34, 0x5026c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x38, 0x50270\nRET                                                                    ; +0x3c, 0x50274", "xrefs": ["FMOD_Memory_GetStats @ 0x5019c", "sub_579DC @ 0x57a18", "FMOD::ChannelI::validate @ 0x594b8", "sub_5D9B4 @ 0x5dad0", "sub_6712C @ 0x67154", "FMOD::SystemI::validate @ 0x69f28", "sub_6A544 @ 0x6a5a0", "sub_AAE14 @ 0xaae34", "FMOD::DSPI::validate @ 0xc98b4", "FMOD::Sound::release @ 0xd80cc", "FMOD::Sound::setSoundGroup @ 0xd95a4"], "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"}