{"type": "func", "start": 312906, "end": 312934, "name": "sub_4C64A", "pseudocode": "// \n// sub_4C64A from 0x4c64a to 0x4c666 (28 bytes)\n// \n// 5 xrefs:\n// > sub_54C30 @ 0x54cb6\n// > sub_640F0 @ 0x64230\n// > sub_65494 @ 0x6566e\n// > sub_65494 @ 0x65770\n// > FMOD::Channel::getCurrentSound @ 0xad608\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_4C64A(int a1, _DWORD *a2)\n{\n  int v2; // r0\n\n  if ( !a2 )\n    return 31;\n  v2 = *(_DWORD *)(a1 + 332);\n  if ( v2 )\n  {\n    *a2 = *(_DWORD *)(v2 + 20);\n    return 0;\n  }\n  else\n  {\n    *a2 = 0;\n    return 30;\n  }\n}", "assembly": "; \n; sub_4C64A from 0x4c64a to 0x4c666 (28 bytes)\n; \n; 5 xrefs:\n; > sub_54C30 @ 0x54cb6\n; > sub_640F0 @ 0x64230\n; > sub_65494 @ 0x6566e\n; > sub_65494 @ 0x65770\n; > FMOD::Channel::getCurrentSound @ 0xad608\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\nCBZ             R1, loc_4C65A                                          ; +0x0, 0x4c64a\nLDR.W           R0, [R0,#0x14C]                                        ; +0x2, 0x4c64c\nCBZ             R0, loc_4C65E                                          ; +0x6, 0x4c650\nLDR             R0, [R0,#0x14]                                         ; +0x8, 0x4c652\nSTR             R0, [R1]                                               ; +0xa, 0x4c654\nMOVS            R0, #0                                                 ; +0xc, 0x4c656\nBX              LR                                                     ; +0xe, 0x4c658\nMOVS            R0, #0x1F                                              ; +0x10, 0x4c65a\nBX              LR                                                     ; +0x12, 0x4c65c\nMOVS            R0, #0                                                 ; +0x14, 0x4c65e\nSTR             R0, [R1]                                               ; +0x16, 0x4c660\nMOVS            R0, #0x1E                                              ; +0x18, 0x4c662\nBX              LR                                                     ; +0x1a, 0x4c664", "xrefs": ["sub_54C30 @ 0x54cb6", "sub_640F0 @ 0x64230", "sub_65494 @ 0x6566e", "sub_65494 @ 0x65770", "FMOD::Channel::getCurrentSound @ 0xad608"], "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"}