{"type": "func", "start": 783516, "end": 783590, "name": "sub_BF49C", "pseudocode": "// \n// sub_BF49C from 0xbf49c to 0xbf4e6 (74 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_BF49C(int a1, int a2, char *a3, signed int a4, _DWORD *a5)\n{\n  if ( a3 && a4 >= 1 )\n    sub_BE420(\n      a3,\n      a4,\n      \"%s PCM wave writer (default filename = %s)\",\n      *((const char **)&unk_E5EB8 + 2 * a2 + 1),\n      \"fmodoutput.wav\");\n  if ( a5 )\n    *a5 = a2;\n  return 0;\n}", "assembly": "; \n; sub_BF49C from 0xbf49c to 0xbf4e6 (74 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            {R4-R7,LR}                                             ; +0x0, 0xbf49c\nADD             R7, SP, #0xC                                           ; +0x2, 0xbf49e\nPUSH.W          {R8}                                                   ; +0x4, 0xbf4a0\nSUB             SP, SP, #8                                             ; +0x8, 0xbf4a4\nLDR.W           R8, [R7,#-0x10+arg_0]                                  ; +0xa, 0xbf4a6\nMOV             R4, R1                                                 ; +0xe, 0xbf4aa\nCBZ             R2, loc_BF4D2                                          ; +0x10, 0xbf4ac\nCMP             R3, #1                                                 ; +0x12, 0xbf4ae\nBLT             loc_BF4D2                                              ; +0x14, 0xbf4b0\nLDR             R0, =(aFmodoutputWav - 0xBF4BA); \"fmodoutput.wav\" ...  ; +0x16, 0xbf4b2\nMOV             R1, R3                                                 ; +0x18, 0xbf4b4\nADD             R0, PC; \"fmodoutput.wav\"                               ; +0x1a, 0xbf4b6\nSTR             R0, [SP,#8+var_8]                                      ; +0x1c, 0xbf4b8\nLDR             R0, =(unk_E5EB8 - 0xBF4C2)                             ; +0x1e, 0xbf4ba\nLDR             R6, =(aSPcmWaveWriter - 0xBF4C8); \"%s PCM wave writer (default filename = \"... ... ; +0x20, 0xbf4bc\nADD             R0, PC; unk_E5EB8                                      ; +0x22, 0xbf4be\nADD.W           R0, R0, R4,LSL#3                                       ; +0x24, 0xbf4c0\nADD             R6, PC; \"%s PCM wave writer (default filename = \"...   ; +0x28, 0xbf4c4\nLDR             R5, [R0,#4]                                            ; +0x2a, 0xbf4c6\nMOV             R0, R2                                                 ; +0x2c, 0xbf4c8\nMOV             R2, R6                                                 ; +0x2e, 0xbf4ca\nMOV             R3, R5                                                 ; +0x30, 0xbf4cc\nBL              sub_BE420                                              ; +0x32, 0xbf4ce\nCMP.W           R8, #0                                                 ; +0x36, 0xbf4d2\nIT NE                                                                  ; +0x3a, 0xbf4d6\nSTRNE.W         R4, [R8]                                               ; +0x3c, 0xbf4d8\nMOVS            R0, #0                                                 ; +0x40, 0xbf4dc\nADD             SP, SP, #8                                             ; +0x42, 0xbf4de\nPOP.W           {R8}                                                   ; +0x44, 0xbf4e0\nPOP             {R4-R7,PC}                                             ; +0x48, 0xbf4e4", "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"}