{"type": "func", "start": 369564, "end": 369630, "name": "sub_5A39C", "pseudocode": "// \n// sub_5A39C from 0x5a39c to 0x5a3de (66 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::getDSPInfoByType @ 0xb9b54\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_5A39C(int a1, int a2, _DWORD *a3, _DWORD *a4)\n{\n  int result; // r0\n  _DWORD *v7; // [sp+4h] [bp-Ch] BYREF\n\n  v7 = a4;\n  if ( !*(_DWORD *)(a1 + 68272) )\n    return 67;\n  if ( !a3 )\n    return 31;\n  *a3 = 0;\n  result = 31;\n  if ( (unsigned int)a2 >= 2 && a2 <= 36 )\n  {\n    v7 = nullptr;\n    result = sub_51BCE(*(_DWORD *)(a1 + 68272), a2, &v7);\n    if ( !result )\n      *a3 = *v7;\n  }\n  return result;\n}", "assembly": "; \n; sub_5A39C from 0x5a39c to 0x5a3de (66 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::getDSPInfoByType @ 0xb9b54\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            {R2-R4,R6,R7,LR}                                       ; +0x0, 0x5a39c\nADD             R7, SP, #0x10                                          ; +0x2, 0x5a39e\nLDR             R3, =0x10AB0                                           ; +0x4, 0x5a3a0\nMOV             R4, R2                                                 ; +0x6, 0x5a3a2\nMOV             R2, R0                                                 ; +0x8, 0x5a3a4\nLDR             R0, [R0,R3]                                            ; +0xa, 0x5a3a6\nCBZ             R0, loc_5A3D4                                          ; +0xc, 0x5a3a8\nCBZ             R4, loc_5A3D8                                          ; +0xe, 0x5a3aa\nMOVS            R0, #0                                                 ; +0x10, 0x5a3ac\nCMP             R1, #2                                                 ; +0x12, 0x5a3ae\nSTR             R0, [R4]                                               ; +0x14, 0x5a3b0\nMOV.W           R0, #0x1F                                              ; +0x16, 0x5a3b2\nBCC             loc_5A3DA                                              ; +0x1a, 0x5a3b6\nCMP             R1, #0x24 ; '$'                                        ; +0x1c, 0x5a3b8\nBGT             loc_5A3DA                                              ; +0x1e, 0x5a3ba\nADDS            R0, R2, R3                                             ; +0x20, 0x5a3bc\nMOVS            R2, #0                                                 ; +0x22, 0x5a3be\nSTR             R2, [SP,#8+var_4]                                      ; +0x24, 0x5a3c0\nADD             R2, SP, #8+var_4                                       ; +0x26, 0x5a3c2\nLDR             R0, [R0]                                               ; +0x28, 0x5a3c4\nBL              sub_51BCE                                              ; +0x2a, 0x5a3c6\nCBNZ            R0, loc_5A3DA                                          ; +0x2e, 0x5a3ca\nLDR             R1, [SP,#8+var_4]                                      ; +0x30, 0x5a3cc\nLDR             R1, [R1]                                               ; +0x32, 0x5a3ce\nSTR             R1, [R4]                                               ; +0x34, 0x5a3d0\nB               loc_5A3DA                                              ; +0x36, 0x5a3d2\nMOVS            R0, #0x43 ; 'C'                                        ; +0x38, 0x5a3d4\nB               loc_5A3DA                                              ; +0x3a, 0x5a3d6\nMOVS            R0, #0x1F                                              ; +0x3c, 0x5a3d8\nADD             SP, SP, #8                                             ; +0x3e, 0x5a3da\nPOP             {R4,R6,R7,PC}                                          ; +0x40, 0x5a3dc", "xrefs": ["FMOD::System::getDSPInfoByType @ 0xb9b54"], "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"}