{"type": "func", "start": 782756, "end": 782830, "name": "sub_BF1A4", "pseudocode": "// \n// sub_BF1A4 from 0xbf1a4 to 0xbf1ee (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_BF1A4(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_E5E90 + 2 * a2 + 1),\n      \"fmodoutput.wav\");\n  if ( a5 )\n    *a5 = a2;\n  return 0;\n}", "assembly": "; \n; sub_BF1A4 from 0xbf1a4 to 0xbf1ee (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, 0xbf1a4\nADD             R7, SP, #0xC                                           ; +0x2, 0xbf1a6\nPUSH.W          {R8}                                                   ; +0x4, 0xbf1a8\nSUB             SP, SP, #8                                             ; +0x8, 0xbf1ac\nLDR.W           R8, [R7,#-0x10+arg_0]                                  ; +0xa, 0xbf1ae\nMOV             R4, R1                                                 ; +0xe, 0xbf1b2\nCBZ             R2, loc_BF1DA                                          ; +0x10, 0xbf1b4\nCMP             R3, #1                                                 ; +0x12, 0xbf1b6\nBLT             loc_BF1DA                                              ; +0x14, 0xbf1b8\nLDR             R0, =(aFmodoutputWav - 0xBF1C2); \"fmodoutput.wav\" ...  ; +0x16, 0xbf1ba\nMOV             R1, R3                                                 ; +0x18, 0xbf1bc\nADD             R0, PC; \"fmodoutput.wav\"                               ; +0x1a, 0xbf1be\nSTR             R0, [SP,#8+var_8]                                      ; +0x1c, 0xbf1c0\nLDR             R0, =(unk_E5E90 - 0xBF1CA)                             ; +0x1e, 0xbf1c2\nLDR             R6, =(aSPcmWaveWriter - 0xBF1D0); \"%s PCM wave writer (default filename = \"... ... ; +0x20, 0xbf1c4\nADD             R0, PC; unk_E5E90                                      ; +0x22, 0xbf1c6\nADD.W           R0, R0, R4,LSL#3                                       ; +0x24, 0xbf1c8\nADD             R6, PC; \"%s PCM wave writer (default filename = \"...   ; +0x28, 0xbf1cc\nLDR             R5, [R0,#4]                                            ; +0x2a, 0xbf1ce\nMOV             R0, R2                                                 ; +0x2c, 0xbf1d0\nMOV             R2, R6                                                 ; +0x2e, 0xbf1d2\nMOV             R3, R5                                                 ; +0x30, 0xbf1d4\nBL              sub_BE420                                              ; +0x32, 0xbf1d6\nCMP.W           R8, #0                                                 ; +0x36, 0xbf1da\nIT NE                                                                  ; +0x3a, 0xbf1de\nSTRNE.W         R4, [R8]                                               ; +0x3c, 0xbf1e0\nMOVS            R0, #0                                                 ; +0x40, 0xbf1e4\nADD             SP, SP, #8                                             ; +0x42, 0xbf1e6\nPOP.W           {R8}                                                   ; +0x44, 0xbf1e8\nPOP             {R4-R7,PC}                                             ; +0x48, 0xbf1ec", "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"}