{"type": "func", "start": 508972, "end": 509106, "name": "sub_7C42C", "pseudocode": "// \n// sub_7C42C from 0x7c42c to 0x7c4b2 (134 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x7c42a\n// > sub_7B76C @ 0x7b770\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_7C42C(int a1, int a2, int a3)\n{\n  int v4; // r0\n  int v6; // r4\n  int i; // r6\n\n  v4 = *(_DWORD *)(a1 + 284);\n  if ( v4 && *(_DWORD *)(a1 + 280) )\n  {\n    v6 = 0;\n    for ( i = 0; i < v4; ++i )\n    {\n      (*(void (__fastcall **)(int, _DWORD, int, _DWORD, _DWORD, _DWORD, _DWORD))(*(_DWORD *)a3 + 132))(\n        a3,\n        *(_DWORD *)(*(_DWORD *)(a1 + 280) + v6 + 24),\n        2,\n        *(_DWORD *)(*(_DWORD *)(a1 + 280) + v6 + 16),\n        0,\n        0,\n        0);\n      v6 += 292;\n      v4 = *(_DWORD *)(a1 + 284);\n    }\n    sub_56690(a3);\n    sub_BD7AC(\n      *(int *)((char *)&dword_14C + (_DWORD)off_E8000),\n      *(_DWORD *)(a1 + 280),\n      \"../../src/fmod_codec_mpeg.cpp\",\n      1170,\n      1);\n    *(_DWORD *)(a1 + 280) = 0;\n  }\n  return 0;\n}", "assembly": "; \n; sub_7C42C from 0x7c42c to 0x7c4b2 (134 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x7c42a\n; > sub_7B76C @ 0x7b770\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            {R4-R7,LR}                                             ; +0x0, 0x7c42c\nADD             R7, SP, #0xC                                           ; +0x2, 0x7c42e\nPUSH.W          {R4-R10}                                               ; +0x4, 0x7c430\nMOV             R8, R0                                                 ; +0x8, 0x7c434\nLDR.W           R0, [R0,#0x11C]                                        ; +0xa, 0x7c436\nCBZ             R0, loc_7C4A8                                          ; +0xe, 0x7c43a\nLDR.W           R1, [R8,#0x118]                                        ; +0x10, 0x7c43c\nCBZ             R1, loc_7C4A8                                          ; +0x14, 0x7c440\nMOV             R10, R2                                                ; +0x16, 0x7c442\nMOV.W           R9, #0                                                 ; +0x18, 0x7c444\nMOVS            R4, #0                                                 ; +0x1c, 0x7c448\nMOVS            R6, #0                                                 ; +0x1e, 0x7c44a\nCMP             R6, R0                                                 ; +0x20, 0x7c44c\nBGE             loc_7C47C                                              ; +0x22, 0x7c44e\nLDR.W           R0, [R8,#0x118]                                        ; +0x24, 0x7c450\nMOVS            R2, #2                                                 ; +0x28, 0x7c454\nADD             R0, R4                                                 ; +0x2a, 0x7c456\nLDR             R3, [R0,#0x10]                                         ; +0x2c, 0x7c458\nLDR             R1, [R0,#0x18]                                         ; +0x2e, 0x7c45a\nLDR.W           R0, [R10]                                              ; +0x30, 0x7c45c\nLDR.W           R5, [R0,#0x84]                                         ; +0x34, 0x7c460\nMOV             R0, R10                                                ; +0x38, 0x7c464\nSTRD.W          R9, R9, [SP,#0x10+var_10]                              ; +0x3a, 0x7c466\nSTR.W           R9, [SP,#0x10+var_8]                                   ; +0x3e, 0x7c46a\nBLX             R5                                                     ; +0x42, 0x7c46e\nADD.W           R4, R4, #0x124                                         ; +0x44, 0x7c470\nADDS            R6, #1                                                 ; +0x48, 0x7c474\nLDR.W           R0, [R8,#0x11C]                                        ; +0x4a, 0x7c476\nB               loc_7C44C                                              ; +0x4e, 0x7c47a\nMOV             R0, R10                                                ; +0x50, 0x7c47c\nBL              sub_56690                                              ; +0x52, 0x7c47e\nLDR.W           R1, [R8,#0x118]                                        ; +0x56, 0x7c482\nMOVS            R2, #1                                                 ; +0x5a, 0x7c486\nLDR             R0, =(off_E6144 - 0x7C492)                             ; +0x5c, 0x7c488\nMOVW            R3, #0x492                                             ; +0x5e, 0x7c48a\nADD             R0, PC; off_E6144                                      ; +0x62, 0x7c48e\nLDR             R0, [R0]; off_E8000                                    ; +0x64, 0x7c490\nLDR             R0, [R0]; dword_F2488                                  ; +0x66, 0x7c492\nLDR.W           R0, [R0,#(dword_F25D4 - 0xF2488)]                      ; +0x68, 0x7c494\nSTR             R2, [SP,#0x10+var_10]                                  ; +0x6c, 0x7c498\nLDR             R2, =(aSrcFmodCodecMp - 0x7C4A0); \"../../src/fmod_codec_mpeg.cpp\" ... ; +0x6e, 0x7c49a\nADD             R2, PC; \"../../src/fmod_codec_mpeg.cpp\"                ; +0x70, 0x7c49c\nBL              sub_BD7AC                                              ; +0x72, 0x7c49e\nMOVS            R0, #0                                                 ; +0x76, 0x7c4a2\nSTR.W           R0, [R8,#0x118]                                        ; +0x78, 0x7c4a4\nMOVS            R0, #0                                                 ; +0x7c, 0x7c4a8\nADD             SP, SP, #0x10                                          ; +0x7e, 0x7c4aa\nPOP.W           {R8-R10}                                               ; +0x80, 0x7c4ac\nPOP             {R4-R7,PC}                                             ; +0x84, 0x7c4b0", "xrefs": ["<???> @ 0x7c42a", "sub_7B76C @ 0x7b770"], "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"}