{"type": "func", "start": 564556, "end": 564664, "name": "sub_89D4C", "pseudocode": "// \n// sub_89D4C from 0x89d4c to 0x89db8 (108 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x89d4a\n// > sub_61F94 @ 0x61faa\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\nint __fastcall sub_89D4C(_DWORD *a1)\n{\n  int i; // r5\n  int v3; // r0\n  int v4; // r0\n  int v5; // r5\n  int v6; // r1\n\n  if ( a1[4] )\n  {\n    for ( i = 0; i < a1[2]; ++i )\n    {\n      v3 = *(_DWORD *)(a1[4] + 4 * i);\n      if ( v3 )\n      {\n        (*(void (__fastcall **)(int))(*(_DWORD *)v3 + 12))(v3);\n        v4 = *(_DWORD *)(a1[4] + 4 * i);\n        (*(void (__fastcall **)(int))(*(_DWORD *)v4 + 8))(v4);\n      }\n    }\n    a1[2] = 0;\n    a1[4] = 0;\n  }\n  v5 = sub_BD8B8(a1 + 7);\n  if ( !v5 )\n  {\n    v6 = a1[6];\n    if ( v6 )\n    {\n      sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v6, \"../../src/fmod_dsp_codecpool.cpp\", 353, 1);\n      a1[6] = 0;\n    }\n  }\n  return v5;\n}", "assembly": "; \n; sub_89D4C from 0x89d4c to 0x89db8 (108 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x89d4a\n; > sub_61F94 @ 0x61faa\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\nPUSH            {R2-R5,R7,LR}                                          ; +0x0, 0x89d4c\nADD             R7, SP, #0x10                                          ; +0x2, 0x89d4e\nMOV             R4, R0                                                 ; +0x4, 0x89d50\nLDR             R0, [R0,#0x10]                                         ; +0x6, 0x89d52\nCBZ             R0, loc_89D82                                          ; +0x8, 0x89d54\nMOVS            R5, #0                                                 ; +0xa, 0x89d56\nLDR             R0, [R4,#8]                                            ; +0xc, 0x89d58\nCMP             R5, R0                                                 ; +0xe, 0x89d5a\nBGE             loc_89D7C                                              ; +0x10, 0x89d5c\nLDR             R0, [R4,#0x10]                                         ; +0x12, 0x89d5e\nLDR.W           R0, [R0,R5,LSL#2]                                      ; +0x14, 0x89d60\nCBZ             R0, loc_89D78                                          ; +0x18, 0x89d64\nLDR             R1, [R0]                                               ; +0x1a, 0x89d66\nLDR             R1, [R1,#0xC]                                          ; +0x1c, 0x89d68\nBLX             R1                                                     ; +0x1e, 0x89d6a\nLDR             R0, [R4,#0x10]                                         ; +0x20, 0x89d6c\nLDR.W           R0, [R0,R5,LSL#2]                                      ; +0x22, 0x89d6e\nLDR             R1, [R0]                                               ; +0x26, 0x89d72\nLDR             R1, [R1,#8]                                            ; +0x28, 0x89d74\nBLX             R1                                                     ; +0x2a, 0x89d76\nADDS            R5, #1                                                 ; +0x2c, 0x89d78\nB               loc_89D58                                              ; +0x2e, 0x89d7a\nMOVS            R0, #0                                                 ; +0x30, 0x89d7c\nSTR             R0, [R4,#8]                                            ; +0x32, 0x89d7e\nSTR             R0, [R4,#0x10]                                         ; +0x34, 0x89d80\nADD.W           R0, R4, #0x1C                                          ; +0x36, 0x89d82\nBL              sub_BD8B8                                              ; +0x3a, 0x89d86\nMOV             R5, R0                                                 ; +0x3e, 0x89d8a\nCBNZ            R0, loc_89DB2                                          ; +0x40, 0x89d8c\nLDR             R1, [R4,#0x18]                                         ; +0x42, 0x89d8e\nCBZ             R1, loc_89DB2                                          ; +0x44, 0x89d90\nLDR             R0, =(off_E6144 - 0x89D9E)                             ; +0x46, 0x89d92\nMOVS            R2, #1                                                 ; +0x48, 0x89d94\nMOVW            R3, #0x161                                             ; +0x4a, 0x89d96\nADD             R0, PC; off_E6144                                      ; +0x4e, 0x89d9a\nLDR             R0, [R0]; off_E8000                                    ; +0x50, 0x89d9c\nLDR             R0, [R0]; dword_F2488                                  ; +0x52, 0x89d9e\nLDR.W           R0, [R0,#(dword_F25D4 - 0xF2488)]                      ; +0x54, 0x89da0\nSTR             R2, [SP,#8+var_8]                                      ; +0x58, 0x89da4\nLDR             R2, =(aSrcFmodDspCode - 0x89DAC); \"../../src/fmod_dsp_codecpool.cpp\" ... ; +0x5a, 0x89da6\nADD             R2, PC; \"../../src/fmod_dsp_codecpool.cpp\"             ; +0x5c, 0x89da8\nBL              sub_BD7AC                                              ; +0x5e, 0x89daa\nMOVS            R0, #0                                                 ; +0x62, 0x89dae\nSTR             R0, [R4,#0x18]                                         ; +0x64, 0x89db0\nMOV             R0, R5                                                 ; +0x66, 0x89db2\nADD             SP, SP, #8                                             ; +0x68, 0x89db4\nPOP             {R4,R5,R7,PC}                                          ; +0x6a, 0x89db6", "xrefs": ["<???> @ 0x89d4a", "sub_61F94 @ 0x61faa"], "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"}