{"type": "func", "start": 378720, "end": 378852, "name": "sub_5C760", "pseudocode": "// \n// sub_5C760 from 0x5c760 to 0x5c7e4 (132 bytes)\n// \n// 3 xrefs:\n// > sub_93B20 @ 0x942ac\n// > sub_E47E0 @ 0xe4854\n// > sub_E4ED0 @ 0xe4f40\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\n__int64 __fastcall sub_5C760(__int64 a1, __int64 a2, __int64 a3, int a4)\n{\n  __int64 v8; // x0\n\n  if ( a4 < 0 )\n    return 31;\n  if ( a4 )\n  {\n    v8 = sub_E2AC4(\n           *(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),\n           (unsigned int)(8 * a4),\n           \"../../src/fmod_channelpool.cpp\",\n           56,\n           0);\n    *(_QWORD *)(a1 + 24) = v8;\n    if ( !v8 )\n      return 38;\n  }\n  *(_DWORD *)a1 = a4;\n  *(_QWORD *)(a1 + 8) = a2;\n  *(_QWORD *)(a1 + 16) = a3;\n  return 0;\n}", "assembly": "; \n; sub_5C760 from 0x5c760 to 0x5c7e4 (132 bytes)\n; \n; 3 xrefs:\n; > sub_93B20 @ 0x942ac\n; > sub_E47E0 @ 0xe4854\n; > sub_E4ED0 @ 0xe4f40\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x5c760\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x5c764\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x5c768\nADD             X29, SP, #0x20                                         ; +0xc, 0x5c76c\nTBNZ            W3, #0x1F, loc_5C7C8                                   ; +0x10, 0x5c770\nMOV             W20, W3                                                ; +0x14, 0x5c774\nMOV             X19, X2                                                ; +0x18, 0x5c778\nMOV             X22, X1                                                ; +0x1c, 0x5c77c\nMOV             X21, X0                                                ; +0x20, 0x5c780\nCBZ             W3, loc_5C7B8                                          ; +0x24, 0x5c784\nADRP            X8, #off_10F7A0@PAGE                                   ; +0x28, 0x5c788\nLDR             X8, [X8,#off_10F7A0@PAGEOFF]; off_114000               ; +0x2c, 0x5c78c\nADRP            X2, #aSrcFmodChannel_0@PAGE; \"../../src/fmod_channelpool.cpp\" ; +0x30, 0x5c790\nLSL             W1, W20, #3                                            ; +0x34, 0x5c794\nADD             X2, X2, #aSrcFmodChannel_0@PAGEOFF; \"../../src/fmod_channelpool.cpp\" ; +0x38, 0x5c798\nLDR             X8, [X8]; unk_11F800                                   ; +0x3c, 0x5c79c\nMOV             W3, #0x38 ; '8'                                        ; +0x40, 0x5c7a0\nMOV             W4, WZR                                                ; +0x44, 0x5c7a4\nLDR             X0, [X8,#(qword_11F9B0 - 0x11F800)]                    ; +0x48, 0x5c7a8\nBL              sub_E2AC4                                              ; +0x4c, 0x5c7ac\nSTR             X0, [X21,#0x18]                                        ; +0x50, 0x5c7b0\nCBZ             X0, loc_5C7D0                                          ; +0x54, 0x5c7b4\nMOV             W0, WZR                                                ; +0x58, 0x5c7b8\nSTR             W20, [X21]                                             ; +0x5c, 0x5c7bc\nSTP             X22, X19, [X21,#8]                                     ; +0x60, 0x5c7c0\nB               loc_5C7D4                                              ; +0x64, 0x5c7c4\nMOV             W0, #0x1F                                              ; +0x68, 0x5c7c8\nB               loc_5C7D4                                              ; +0x6c, 0x5c7cc\nMOV             W0, #0x26 ; '&'                                        ; +0x70, 0x5c7d0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x74, 0x5c7d4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x78, 0x5c7d8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x7c, 0x5c7dc\nRET                                                                    ; +0x80, 0x5c7e0", "xrefs": ["sub_93B20 @ 0x942ac", "sub_E47E0 @ 0xe4854", "sub_E4ED0 @ 0xe4f40"], "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"}