{"type": "func", "start": 313624, "end": 313728, "name": "sub_4C918", "pseudocode": "// \n// sub_4C918 from 0x4c918 to 0x4c980 (104 bytes)\n// \n// 3 xrefs:\n// > sub_79B94 @ 0x79bac\n// > sub_BEAC8 @ 0xbead2\n// > sub_BEFA8 @ 0xbefb2\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:41 +0000\n// \n\nint __fastcall sub_4C918(_DWORD *a1)\n{\n  int i; // r6\n  int v3; // r0\n\n  if ( a1[4] )\n  {\n    for ( i = 0; i < *a1; ++i )\n    {\n      v3 = *(_DWORD *)(a1[4] + 4 * i);\n      if ( v3 )\n        (*(void (__fastcall **)(int))(*(_DWORD *)v3 + 16))(v3);\n    }\n    sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), a1[4], \"../../src/fmod_channelpool.cpp\", 96, 1);\n  }\n  sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), a1, \"../../src/fmod_channelpool.cpp\", 99, 1);\n  return 0;\n}", "assembly": "; \n; sub_4C918 from 0x4c918 to 0x4c980 (104 bytes)\n; \n; 3 xrefs:\n; > sub_79B94 @ 0x79bac\n; > sub_BEAC8 @ 0xbead2\n; > sub_BEFA8 @ 0xbefb2\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:41 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x4c918\nADD             R7, SP, #0xC                                           ; +0x2, 0x4c91a\nPUSH.W          {R11}                                                  ; +0x4, 0x4c91c\nSUB             SP, SP, #8                                             ; +0x8, 0x4c920\nMOV             R4, R0                                                 ; +0xa, 0x4c922\nLDR             R0, [R0,#0x10]                                         ; +0xc, 0x4c924\nLDR             R5, =(off_E6144 - 0x4C92C)                             ; +0xe, 0x4c926\nADD             R5, PC; off_E6144                                      ; +0x10, 0x4c928\nCBZ             R0, loc_4C95E                                          ; +0x12, 0x4c92a\nMOVS            R6, #0                                                 ; +0x14, 0x4c92c\nLDR             R0, [R4]                                               ; +0x16, 0x4c92e\nCMP             R6, R0                                                 ; +0x18, 0x4c930\nBGE             loc_4C946                                              ; +0x1a, 0x4c932\nLDR             R0, [R4,#0x10]                                         ; +0x1c, 0x4c934\nLDR.W           R0, [R0,R6,LSL#2]                                      ; +0x1e, 0x4c936\nCBZ             R0, loc_4C942                                          ; +0x22, 0x4c93a\nLDR             R1, [R0]                                               ; +0x24, 0x4c93c\nLDR             R1, [R1,#0x10]                                         ; +0x26, 0x4c93e\nBLX             R1                                                     ; +0x28, 0x4c940\nADDS            R6, #1                                                 ; +0x2a, 0x4c942\nB               loc_4C92E                                              ; +0x2c, 0x4c944\nLDR             R0, [R5]; off_E8000                                    ; +0x2e, 0x4c946\nMOVS            R2, #1                                                 ; +0x30, 0x4c948\nLDR             R1, [R4,#0x10]                                         ; +0x32, 0x4c94a\nMOVS            R3, #0x60 ; '`'                                        ; +0x34, 0x4c94c\nLDR             R0, [R0]; unk_F2488                                    ; +0x36, 0x4c94e\nLDR.W           R0, [R0,#(dword_F25D4 - 0xF2488)]                      ; +0x38, 0x4c950\nSTR             R2, [SP,#8+var_8]                                      ; +0x3c, 0x4c954\nLDR             R2, =(aSrcFmodChannel_0 - 0x4C95C); \"../../src/fmod_channelpool.cpp\" ... ; +0x3e, 0x4c956\nADD             R2, PC; \"../../src/fmod_channelpool.cpp\"               ; +0x40, 0x4c958\nBL              sub_BD7AC                                              ; +0x42, 0x4c95a\nLDR             R0, [R5]; off_E8000                                    ; +0x46, 0x4c95e\nMOVS            R1, #1                                                 ; +0x48, 0x4c960\nMOVS            R3, #0x63 ; 'c'                                        ; +0x4a, 0x4c962\nLDR             R0, [R0]; unk_F2488                                    ; +0x4c, 0x4c964\nLDR.W           R0, [R0,#(dword_F25D4 - 0xF2488)]                      ; +0x4e, 0x4c966\nSTR             R1, [SP,#8+var_8]                                      ; +0x52, 0x4c96a\nMOV             R1, R4                                                 ; +0x54, 0x4c96c\nLDR             R2, =(aSrcFmodChannel_0 - 0x4C974); \"../../src/fmod_channelpool.cpp\" ... ; +0x56, 0x4c96e\nADD             R2, PC; \"../../src/fmod_channelpool.cpp\"               ; +0x58, 0x4c970\nBL              sub_BD7AC                                              ; +0x5a, 0x4c972\nMOVS            R0, #0                                                 ; +0x5e, 0x4c976\nADD             SP, SP, #8                                             ; +0x60, 0x4c978\nPOP.W           {R11}                                                  ; +0x62, 0x4c97a\nPOP             {R4-R7,PC}                                             ; +0x66, 0x4c97e", "xrefs": ["sub_79B94 @ 0x79bac", "sub_BEAC8 @ 0xbead2", "sub_BEFA8 @ 0xbefb2"], "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"}