{"type": "func", "start": 347512, "end": 347574, "name": "sub_54D78", "pseudocode": "// \n// sub_54D78 from 0x54d78 to 0x54db6 (62 bytes)\n// \n// 1 xrefs:\n// > FMOD::SoundGroup::getNumSounds @ 0xb6cb8\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:45 +0000\n// \n\nint __fastcall sub_54D78(int a1, int *a2)\n{\n  if ( !a2 )\n    return 31;\n  j_FMOD_OS_CriticalSection_Enter(*(int *)((char *)&dword_10C + (_DWORD)off_E8000));\n  *a2 = sub_4A15C((_DWORD *)(a1 + 20));\n  j_FMOD_OS_CriticalSection_Leave(*(int *)((char *)&dword_10C + (_DWORD)off_E8000));\n  return 0;\n}", "assembly": "; \n; sub_54D78 from 0x54d78 to 0x54db6 (62 bytes)\n; \n; 1 xrefs:\n; > FMOD::SoundGroup::getNumSounds @ 0xb6cb8\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:45 +0000\n; \nCBZ             R1, loc_54DB2                                          ; +0x0, 0x54d78\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x54d7a\nADD             R7, SP, #0xC                                           ; +0x4, 0x54d7c\nPUSH.W          {R11}                                                  ; +0x6, 0x54d7e\nMOV             R5, R0                                                 ; +0xa, 0x54d82\nLDR             R0, =(off_E6144 - 0x54D8C)                             ; +0xc, 0x54d84\nMOV             R4, R1                                                 ; +0xe, 0x54d86\nADD             R0, PC; off_E6144                                      ; +0x10, 0x54d88\nLDR             R6, [R0]; off_E8000                                    ; +0x12, 0x54d8a\nLDR             R0, [R6]; dword_F2488                                  ; +0x14, 0x54d8c\nLDR.W           R0, [R0,#(dword_F2594 - 0xF2488)]                      ; +0x16, 0x54d8e\nBLX             j_FMOD_OS_CriticalSection_Enter                        ; +0x1a, 0x54d92\nADD.W           R0, R5, #0x14                                          ; +0x1e, 0x54d96\nBL              sub_4A15C                                              ; +0x22, 0x54d9a\nSTR             R0, [R4]                                               ; +0x26, 0x54d9e\nLDR             R0, [R6]; dword_F2488                                  ; +0x28, 0x54da0\nLDR.W           R0, [R0,#(dword_F2594 - 0xF2488)]                      ; +0x2a, 0x54da2\nBLX             j_FMOD_OS_CriticalSection_Leave                        ; +0x2e, 0x54da6\nMOVS            R0, #0                                                 ; +0x32, 0x54daa\nPOP.W           {R11}                                                  ; +0x34, 0x54dac\nPOP             {R4-R7,PC}                                             ; +0x38, 0x54db0\nMOVS            R0, #0x1F                                              ; +0x3a, 0x54db2\nBX              LR                                                     ; +0x3c, 0x54db4", "xrefs": ["FMOD::SoundGroup::getNumSounds @ 0xb6cb8"], "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"}