{"type": "func", "start": 782248, "end": 782314, "name": "sub_BEFA8", "pseudocode": "// \n// sub_BEFA8 from 0xbefa8 to 0xbefea (66 bytes)\n// \n// 0 xrefs:\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_BEFA8(int a1)\n{\n  _DWORD *v2; // r0\n  _DWORD *v3; // r1\n\n  v2 = *(_DWORD **)(a1 + 32);\n  if ( v2 )\n  {\n    sub_4C918(v2);\n    *(_DWORD *)(a1 + 32) = 0;\n  }\n  v3 = *(_DWORD **)(a1 + 816);\n  if ( v3 )\n  {\n    sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v3);\n    *(_DWORD *)(a1 + 816) = 0;\n  }\n  return sub_B290C(a1);\n}", "assembly": "; \n; sub_BEFA8 from 0xbefa8 to 0xbefea (66 bytes)\n; \n; 0 xrefs:\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            {R2-R4,R6,R7,LR}                                       ; +0x0, 0xbefa8\nADD             R7, SP, #0x10                                          ; +0x2, 0xbefaa\nMOV             R4, R0                                                 ; +0x4, 0xbefac\nLDR             R0, [R0,#0x20]                                         ; +0x6, 0xbefae\nCBZ             R0, loc_BEFBA                                          ; +0x8, 0xbefb0\nBL              sub_4C918                                              ; +0xa, 0xbefb2\nMOVS            R0, #0                                                 ; +0xe, 0xbefb6\nSTR             R0, [R4,#0x20]                                         ; +0x10, 0xbefb8\nLDR.W           R1, [R4,#0x330]                                        ; +0x12, 0xbefba\nCBZ             R1, loc_BEFE0                                          ; +0x16, 0xbefbe\nLDR             R0, =(off_E6144 - 0xBEFCA)                             ; +0x18, 0xbefc0\nMOVS            R2, #1                                                 ; +0x1a, 0xbefc2\nMOVS            R3, #0x78 ; 'x'                                        ; +0x1c, 0xbefc4\nADD             R0, PC; off_E6144                                      ; +0x1e, 0xbefc6\nLDR             R0, [R0]; off_E8000                                    ; +0x20, 0xbefc8\nLDR             R0, [R0]; dword_F2488                                  ; +0x22, 0xbefca\nLDR.W           R0, [R0,#(dword_F25D4 - 0xF2488)]                      ; +0x24, 0xbefcc\nSTR             R2, [SP,#8+var_8]                                      ; +0x28, 0xbefd0\nLDR             R2, =(aSrcFmodOutputS - 0xBEFD8); \"../../src/fmod_output_software.cpp\" ... ; +0x2a, 0xbefd2\nADD             R2, PC; \"../../src/fmod_output_software.cpp\"           ; +0x2c, 0xbefd4\nBL              sub_BD7AC                                              ; +0x2e, 0xbefd6\nMOVS            R0, #0                                                 ; +0x32, 0xbefda\nSTR.W           R0, [R4,#0x330]                                        ; +0x34, 0xbefdc\nMOV             R0, R4                                                 ; +0x38, 0xbefe0\nPOP.W           {R2-R4,R6,R7,LR}                                       ; +0x3a, 0xbefe2\nB.W             sub_B290C                                              ; +0x3e, 0xbefe6", "xrefs": [], "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"}