{"type": "func", "start": 346884, "end": 346984, "name": "sub_54B04", "pseudocode": "// \n// sub_54B04 from 0x54b04 to 0x54b68 (100 bytes)\n// \n// 2 xrefs:\n// > sub_54A38 @ 0x54af0\n// > sub_57338 @ 0x5750e\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_54B04(_DWORD *a1)\n{\n  int v1; // r1\n  __int64 v3; // r0\n\n  v1 = a1[12];\n  if ( v1 )\n    sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v1, \"../../src/fmod_soundgroupi.cpp\", 183, 1);\n  j_FMOD_OS_CriticalSection_Enter(*(int *)((char *)&dword_10C + (_DWORD)off_E8000));\n  v3 = *(_QWORD *)a1;\n  *(_DWORD *)HIDWORD(v3) = v3;\n  *(_DWORD *)(*a1 + 4) = HIDWORD(v3);\n  *a1 = a1;\n  a1[1] = a1;\n  j_FMOD_OS_CriticalSection_Leave(*(int *)((char *)&dword_10C + (_DWORD)off_E8000));\n  sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), a1, \"../../src/fmod_soundgroupi.cpp\", 190, 1);\n  return 0;\n}", "assembly": "; \n; sub_54B04 from 0x54b04 to 0x54b68 (100 bytes)\n; \n; 2 xrefs:\n; > sub_54A38 @ 0x54af0\n; > sub_57338 @ 0x5750e\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; \nPUSH            {R2-R5,R7,LR}                                          ; +0x0, 0x54b04\nADD             R7, SP, #0x10                                          ; +0x2, 0x54b06\nLDR             R1, [R0,#0x30]                                         ; +0x4, 0x54b08\nMOV             R4, R0                                                 ; +0x6, 0x54b0a\nLDR             R5, =(off_E6144 - 0x54B12)                             ; +0x8, 0x54b0c\nADD             R5, PC; off_E6144                                      ; +0xa, 0x54b0e\nCBZ             R1, loc_54B28                                          ; +0xc, 0x54b10\nLDR             R0, [R5]; off_E8000                                    ; +0xe, 0x54b12\nMOVS            R2, #1                                                 ; +0x10, 0x54b14\nMOVS            R3, #0xB7                                              ; +0x12, 0x54b16\nLDR             R0, [R0]; dword_F2488                                  ; +0x14, 0x54b18\nLDR.W           R0, [R0,#(dword_F25D4 - 0xF2488)]                      ; +0x16, 0x54b1a\nSTR             R2, [SP,#8+var_8]                                      ; +0x1a, 0x54b1e\nLDR             R2, =(aSrcFmodSoundgr - 0x54B26); \"../../src/fmod_soundgroupi.cpp\" ... ; +0x1c, 0x54b20\nADD             R2, PC; \"../../src/fmod_soundgroupi.cpp\"               ; +0x1e, 0x54b22\nBL              sub_BD7AC                                              ; +0x20, 0x54b24\nLDR             R5, [R5]; off_E8000                                    ; +0x24, 0x54b28\nLDR             R0, [R5]; dword_F2488                                  ; +0x26, 0x54b2a\nLDR.W           R0, [R0,#(dword_F2594 - 0xF2488)]                      ; +0x28, 0x54b2c\nBLX             j_FMOD_OS_CriticalSection_Enter                        ; +0x2c, 0x54b30\nLDRD.W          R0, R1, [R4]                                           ; +0x30, 0x54b34\nSTR             R0, [R1]                                               ; +0x34, 0x54b38\nLDR             R0, [R4]                                               ; +0x36, 0x54b3a\nSTR             R1, [R0,#4]                                            ; +0x38, 0x54b3c\nSTRD.W          R4, R4, [R4]                                           ; +0x3a, 0x54b3e\nLDR             R0, [R5]; dword_F2488                                  ; +0x3e, 0x54b42\nLDR.W           R0, [R0,#(dword_F2594 - 0xF2488)]                      ; +0x40, 0x54b44\nBLX             j_FMOD_OS_CriticalSection_Leave                        ; +0x44, 0x54b48\nLDR             R0, [R5]; dword_F2488                                  ; +0x48, 0x54b4c\nMOVS            R1, #1                                                 ; +0x4a, 0x54b4e\nMOVS            R3, #0xBE                                              ; +0x4c, 0x54b50\nLDR.W           R0, [R0,#(dword_F25D4 - 0xF2488)]                      ; +0x4e, 0x54b52\nSTR             R1, [SP,#8+var_8]                                      ; +0x52, 0x54b56\nMOV             R1, R4                                                 ; +0x54, 0x54b58\nLDR             R2, =(aSrcFmodSoundgr - 0x54B60); \"../../src/fmod_soundgroupi.cpp\" ... ; +0x56, 0x54b5a\nADD             R2, PC; \"../../src/fmod_soundgroupi.cpp\"               ; +0x58, 0x54b5c\nBL              sub_BD7AC                                              ; +0x5a, 0x54b5e\nMOVS            R0, #0                                                 ; +0x5e, 0x54b62\nADD             SP, SP, #8                                             ; +0x60, 0x54b64\nPOP             {R4,R5,R7,PC}                                          ; +0x62, 0x54b66", "xrefs": ["sub_54A38 @ 0x54af0", "sub_57338 @ 0x5750e"], "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"}