{"type": "func", "start": 347468, "end": 347508, "name": "sub_54D4C", "pseudocode": "// \n// sub_54D4C from 0x54d4c to 0x54d74 (40 bytes)\n// \n// 1 xrefs:\n// > FMOD::SoundGroup::getName @ 0xb6c3c\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_54D4C(int a1, int a2, int a3)\n{\n  const char *v3; // r3\n\n  if ( !a2 )\n    return 31;\n  if ( a3 >= 256 )\n    a3 = 256;\n  v3 = *(const char **)(a1 + 48);\n  if ( !v3 )\n    v3 = \"(null)\";\n  sub_BE220(a2, v3, a3);\n  return 0;\n}", "assembly": "; \n; sub_54D4C from 0x54d4c to 0x54d74 (40 bytes)\n; \n; 1 xrefs:\n; > FMOD::SoundGroup::getName @ 0xb6c3c\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            {R7,LR}                                                ; +0x0, 0x54d4c\nMOV             R7, SP                                                 ; +0x2, 0x54d4e\nCBZ             R1, loc_54D70                                          ; +0x4, 0x54d50\nCMP.W           R2, #0x100                                             ; +0x6, 0x54d52\nIT GE                                                                  ; +0xa, 0x54d56\nMOVGE.W         R2, #0x100                                             ; +0xc, 0x54d58\nLDR             R3, [R0,#0x30]                                         ; +0x10, 0x54d5c\nCBNZ            R3, loc_54D64                                          ; +0x12, 0x54d5e\nLDR             R3, =(aNull - 0x54D66); \"(null)\" ...                   ; +0x14, 0x54d60\nADD             R3, PC; \"(null)\"                                       ; +0x16, 0x54d62\nMOV             R0, R1                                                 ; +0x18, 0x54d64\nMOV             R1, R3                                                 ; +0x1a, 0x54d66\nBL              sub_BE220                                              ; +0x1c, 0x54d68\nMOVS            R0, #0                                                 ; +0x20, 0x54d6c\nPOP             {R7,PC}                                                ; +0x22, 0x54d6e\nMOVS            R0, #0x1F                                              ; +0x24, 0x54d70\nPOP             {R7,PC}                                                ; +0x26, 0x54d72", "xrefs": ["FMOD::SoundGroup::getName @ 0xb6c3c"], "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"}