{"type": "func", "start": 355144, "end": 355186, "name": "sub_56B48", "pseudocode": "// \n// sub_56B48 from 0x56b48 to 0x56b72 (42 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x56b46\n// > FMOD::ChannelI::validate @ 0x4a28a\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_56B48(unsigned int a1, _DWORD *a2)\n{\n  int result; // r0\n  int v4; // r2\n\n  if ( !a2 )\n    return 31;\n  result = 0;\n  *a2 = 0;\n  if ( a1 > 7 )\n    return 31;\n  v4 = *((_DWORD *)off_E8000 + a1 + 75);\n  *a2 = v4;\n  if ( !v4 )\n    return 31;\n  return result;\n}", "assembly": "; \n; sub_56B48 from 0x56b48 to 0x56b72 (42 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x56b46\n; > FMOD::ChannelI::validate @ 0x4a28a\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\nCBZ             R1, loc_56B54                                          ; +0x0, 0x56b48\nMOV             R2, R0                                                 ; +0x2, 0x56b4a\nMOVS            R0, #0                                                 ; +0x4, 0x56b4c\nCMP             R2, #7                                                 ; +0x6, 0x56b4e\nSTR             R0, [R1]                                               ; +0x8, 0x56b50\nBLS             loc_56B58                                              ; +0xa, 0x56b52\nMOVS            R0, #0x1F                                              ; +0xc, 0x56b54\nBX              LR                                                     ; +0xe, 0x56b56\nLDR             R3, =(off_E6144 - 0x56B5E)                             ; +0x10, 0x56b58\nADD             R3, PC; off_E6144                                      ; +0x12, 0x56b5a\nLDR             R3, [R3]; off_E8000                                    ; +0x14, 0x56b5c\nLDR             R3, [R3]; dword_F2488                                  ; +0x16, 0x56b5e\nADD.W           R2, R3, R2,LSL#2                                       ; +0x18, 0x56b60\nLDR.W           R2, [R2,#0x12C]                                        ; +0x1c, 0x56b64\nSTR             R2, [R1]                                               ; +0x20, 0x56b68\nCMP             R2, #0                                                 ; +0x22, 0x56b6a\nIT EQ                                                                  ; +0x24, 0x56b6c\nMOVEQ           R0, #0x1F                                              ; +0x26, 0x56b6e\nBX              LR                                                     ; +0x28, 0x56b70", "xrefs": ["<???> @ 0x56b46", "FMOD::ChannelI::validate @ 0x4a28a"], "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"}