{"type": "func", "start": 366500, "end": 366540, "name": "sub_597A4", "pseudocode": "// \n// sub_597A4 from 0x597a4 to 0x597cc (40 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::setStreamBufferSize @ 0xb89f0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:40:47 +0000\n// \n\nint __fastcall sub_597A4(int a1, int a2, unsigned int a3)\n{\n  int result; // r0\n\n  if ( !a2 )\n    return 31;\n  result = 31;\n  if ( a3 <= 8 && ((1 << a3) & 0x116) != 0 )\n  {\n    *(_DWORD *)(a1 + 69180) = a2;\n    *(_DWORD *)(a1 + 69184) = a3;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_597A4 from 0x597a4 to 0x597cc (40 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::setStreamBufferSize @ 0xb89f0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:40:47 +0000\n; \nPUSH            {R4,R6,R7,LR}                                          ; +0x0, 0x597a4\nADD             R7, SP, #8                                             ; +0x2, 0x597a6\nCBZ             R1, loc_597C8                                          ; +0x4, 0x597a8\nMOV             R3, R0                                                 ; +0x6, 0x597aa\nMOVS            R0, #0x1F                                              ; +0x8, 0x597ac\nCMP             R2, #8                                                 ; +0xa, 0x597ae\nBHI             locret_597C6                                           ; +0xc, 0x597b0\nMOVS            R4, #1                                                 ; +0xe, 0x597b2\nLSLS            R4, R2                                                 ; +0x10, 0x597b4\nTST.W           R4, #0x116                                             ; +0x12, 0x597b6\nITTTT NE                                                               ; +0x16, 0x597ba\nLDRNE           R0, =0x10E3C                                           ; +0x18, 0x597bc\nADDNE           R0, R3                                                 ; +0x1a, 0x597be\nSTRDNE.W        R1, R2, [R0]                                           ; +0x1c, 0x597c0\nMOVNE           R0, #0                                                 ; +0x20, 0x597c4\nPOP             {R4,R6,R7,PC}                                          ; +0x22, 0x597c6\nMOVS            R0, #0x1F                                              ; +0x24, 0x597c8\nPOP             {R4,R6,R7,PC}                                          ; +0x26, 0x597ca", "xrefs": ["FMOD::System::setStreamBufferSize @ 0xb89f0"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}