{"type": "func", "start": 370192, "end": 370234, "name": "sub_5A610", "pseudocode": "// \n// sub_5A610 from 0x5a610 to 0x5a63a (42 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::getChannel @ 0xb9ad4\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_5A610(int a1, int a2, unsigned int *a3)\n{\n  int result; // r0\n\n  result = 31;\n  if ( a2 >= 0 && a3 )\n  {\n    if ( *(_DWORD *)(a1 + 296) > a2 )\n    {\n      *a3 = (*(_DWORD *)(a1 + 68832) << 29) | ((a2 & 0xFFF) << 17) | (unsigned int)\"isconnectAll\";\n      return 0;\n    }\n    else\n    {\n      return 31;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_5A610 from 0x5a610 to 0x5a63a (42 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::getChannel @ 0xb9ad4\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\nMOV             R3, R0                                                 ; +0x0, 0x5a610\nMOVS            R0, #0x1F                                              ; +0x2, 0x5a612\nCMP             R1, #0                                                 ; +0x4, 0x5a614\nBMI             locret_5A638                                           ; +0x6, 0x5a616\nCBZ             R2, locret_5A638                                       ; +0x8, 0x5a618\nLDR.W           R0, [R3,#0x128]                                        ; +0xa, 0x5a61a\nCMP             R0, R1                                                 ; +0xe, 0x5a61e\nITT LE                                                                 ; +0x10, 0x5a620\nMOVLE           R0, #0x1F                                              ; +0x12, 0x5a622\nBXLE            LR                                                     ; +0x14, 0x5a624\nLDR             R0, =0x10CE0                                           ; +0x16, 0x5a626\nLDR             R0, [R3,R0]                                            ; +0x18, 0x5a628\nLSLS            R0, R0, #0x1D                                          ; +0x1a, 0x5a62a\nBFI.W           R0, R1, #0x11, #0xC                                    ; +0x1c, 0x5a62c\nLDR             R1, =(aDspDisconnecta+6); \"isconnectAll\" ...           ; +0x20, 0x5a630\nORRS            R0, R1                                                 ; +0x22, 0x5a632\nSTR             R0, [R2]                                               ; +0x24, 0x5a634\nMOVS            R0, #0                                                 ; +0x26, 0x5a636\nBX              LR                                                     ; +0x28, 0x5a638", "xrefs": ["FMOD::System::getChannel @ 0xb9ad4"], "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"}