{"type": "func", "start": 378852, "end": 379020, "name": "sub_5C7E4", "pseudocode": "// \n// sub_5C7E4 from 0x5c7e4 to 0x5c88c (168 bytes)\n// \n// 3 xrefs:\n// > sub_94374 @ 0x94394\n// > sub_E4924 @ 0xe493c\n// > sub_E4FD8 @ 0xe4ff0\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_5C7E4(int *a1)\n{\n  __int64 i; // x21\n  __int64 v3; // x0\n\n  if ( *((_QWORD *)a1 + 3) )\n  {\n    for ( i = 0; i < *a1; ++i )\n    {\n      v3 = *(_QWORD *)(*((_QWORD *)a1 + 3) + 8 * i);\n      if ( v3 )\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 32LL))(v3);\n    }\n    sub_E2D74(\n      *(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),\n      *((_QWORD *)a1 + 3),\n      \"../../src/fmod_channelpool.cpp\",\n      96,\n      1);\n  }\n  sub_E2D74(*(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000), a1, \"../../src/fmod_channelpool.cpp\", 99, 1);\n  return 0;\n}", "assembly": "; \n; sub_5C7E4 from 0x5c7e4 to 0x5c88c (168 bytes)\n; \n; 3 xrefs:\n; > sub_94374 @ 0x94394\n; > sub_E4924 @ 0xe493c\n; > sub_E4FD8 @ 0xe4ff0\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\nSTR             X21, [SP,#-0x10+var_20]!                               ; +0x0, 0x5c7e4\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x5c7e8\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x5c7ec\nADRP            X20, #off_10F7A0@PAGE                                  ; +0xc, 0x5c7f0\nLDR             X8, [X0,#0x18]                                         ; +0x10, 0x5c7f4\nLDR             X20, [X20,#off_10F7A0@PAGEOFF]; off_114000             ; +0x14, 0x5c7f8\nMOV             X19, X0                                                ; +0x18, 0x5c7fc\nADD             X29, SP, #0x20                                         ; +0x1c, 0x5c800\nCBZ             X8, loc_5C858                                          ; +0x20, 0x5c804\nMOV             X21, XZR                                               ; +0x24, 0x5c808\nLDRSW           X8, [X19]                                              ; +0x28, 0x5c80c\nCMP             X21, X8                                                ; +0x2c, 0x5c810\nB.GE            loc_5C838                                              ; +0x30, 0x5c814\nLDR             X8, [X19,#0x18]                                        ; +0x34, 0x5c818\nLDR             X0, [X8,X21,LSL#3]                                     ; +0x38, 0x5c81c\nCBZ             X0, loc_5C830                                          ; +0x3c, 0x5c820\nLDR             X8, [X0]                                               ; +0x40, 0x5c824\nLDR             X8, [X8,#0x20]                                         ; +0x44, 0x5c828\nBLR             X8                                                     ; +0x48, 0x5c82c\nADD             X21, X21, #1                                           ; +0x4c, 0x5c830\nB               loc_5C80C                                              ; +0x50, 0x5c834\nLDR             X8, [X20]; unk_11F800                                  ; +0x54, 0x5c838\nLDR             X1, [X19,#0x18]                                        ; +0x58, 0x5c83c\nADRL            X2, aSrcFmodChannel_0; \"../../src/fmod_channelpool.cpp\" ; +0x5c, 0x5c840\nLDR             X0, [X8,#(qword_11F9B0 - 0x11F800)]                    ; +0x64, 0x5c848\nMOV             W3, #0x60 ; '`'                                        ; +0x68, 0x5c84c\nMOV             W4, #1                                                 ; +0x6c, 0x5c850\nBL              sub_E2D74                                              ; +0x70, 0x5c854\nLDR             X8, [X20]; unk_11F800                                  ; +0x74, 0x5c858\nADRL            X2, aSrcFmodChannel_0; \"../../src/fmod_channelpool.cpp\" ; +0x78, 0x5c85c\nMOV             W3, #0x63 ; 'c'                                        ; +0x80, 0x5c864\nLDR             X0, [X8,#(qword_11F9B0 - 0x11F800)]                    ; +0x84, 0x5c868\nMOV             W4, #1                                                 ; +0x88, 0x5c86c\nMOV             X1, X19                                                ; +0x8c, 0x5c870\nBL              sub_E2D74                                              ; +0x90, 0x5c874\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x94, 0x5c878\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x98, 0x5c87c\nMOV             W0, WZR                                                ; +0x9c, 0x5c880\nLDR             X21, [SP+0x20+var_20],#0x30                            ; +0xa0, 0x5c884\nRET                                                                    ; +0xa4, 0x5c888", "xrefs": ["sub_94374 @ 0x94394", "sub_E4924 @ 0xe493c", "sub_E4FD8 @ 0xe4ff0"], "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"}