{"type": "func", "start": 374164, "end": 374248, "name": "sub_5B594", "pseudocode": "// \n// sub_5B594 from 0x5b594 to 0x5b5e8 (84 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::getRecordPosition @ 0xba254\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:48 +0000\n// \n\nint __fastcall sub_5B594(int a1, int a2, _DWORD *a3)\n{\n  int result; // r0\n  int v7; // r0\n  int v8; // r1\n  int v9; // r1\n  bool v10; // zf\n\n  result = sub_5B0B8(a1);\n  if ( !result )\n  {\n    if ( a2 < 0 || *(_DWORD *)(a1 + 1144) <= a2 )\n    {\n      return 31;\n    }\n    else\n    {\n      v7 = *(_DWORD *)(a1 + 1156);\n      if ( a3 )\n      {\n        v8 = *(_DWORD *)(v7 + 44 * a2 + 40);\n        if ( v8 )\n          v9 = *(_DWORD *)(v8 + 48);\n        else\n          v9 = 0;\n        *a3 = v9;\n      }\n      v10 = *(unsigned __int8 *)(v7 + 44 * a2 + 20) << 31 == 0;\n      result = 0;\n      if ( v10 )\n        return 80;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_5B594 from 0x5b594 to 0x5b5e8 (84 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::getRecordPosition @ 0xba254\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:48 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x5b594\nADD             R7, SP, #0xC                                           ; +0x2, 0x5b596\nPUSH.W          {R11}                                                  ; +0x4, 0x5b598\nMOV             R5, R2                                                 ; +0x8, 0x5b59c\nMOV             R4, R1                                                 ; +0xa, 0x5b59e\nMOV             R6, R0                                                 ; +0xc, 0x5b5a0\nBL              sub_5B0B8                                              ; +0xe, 0x5b5a2\nCBNZ            R0, loc_5B5E2                                          ; +0x12, 0x5b5a6\nCMP             R4, #0                                                 ; +0x14, 0x5b5a8\nBMI             loc_5B5E0                                              ; +0x16, 0x5b5aa\nLDR.W           R0, [R6,#0x478]                                        ; +0x18, 0x5b5ac\nCMP             R0, R4                                                 ; +0x1c, 0x5b5b0\nBLE             loc_5B5E0                                              ; +0x1e, 0x5b5b2\nLDR.W           R0, [R6,#0x484]                                        ; +0x20, 0x5b5b4\nCBZ             R5, loc_5B5CC                                          ; +0x24, 0x5b5b8\nMOVS            R1, #0x2C ; ','                                        ; +0x26, 0x5b5ba\nMLA             R1, R4, R1, R0                                         ; +0x28, 0x5b5bc\nLDR             R1, [R1,#0x28]                                         ; +0x2c, 0x5b5c0\nCMP             R1, #0                                                 ; +0x2e, 0x5b5c2\nITE NE                                                                 ; +0x30, 0x5b5c4\nLDRNE           R1, [R1,#0x30]                                         ; +0x32, 0x5b5c6\nMOVEQ           R1, #0                                                 ; +0x34, 0x5b5c8\nSTR             R1, [R5]                                               ; +0x36, 0x5b5ca\nMOVS            R1, #0x2C ; ','                                        ; +0x38, 0x5b5cc\nMLA             R0, R4, R1, R0                                         ; +0x3a, 0x5b5ce\nLDRB            R0, [R0,#0x14]                                         ; +0x3e, 0x5b5d2\nLSLS            R0, R0, #0x1F                                          ; +0x40, 0x5b5d4\nMOV.W           R0, #0                                                 ; +0x42, 0x5b5d6\nIT EQ                                                                  ; +0x46, 0x5b5da\nMOVEQ           R0, #0x50 ; 'P'                                        ; +0x48, 0x5b5dc\nB               loc_5B5E2                                              ; +0x4a, 0x5b5de\nMOVS            R0, #0x1F                                              ; +0x4c, 0x5b5e0\nPOP.W           {R11}                                                  ; +0x4e, 0x5b5e2\nPOP             {R4-R7,PC}                                             ; +0x52, 0x5b5e6", "xrefs": ["FMOD::System::getRecordPosition @ 0xba254"], "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"}